Widget for visualizing the direction.
More...
#include <MRDirectionWidget.h>
|
class | ChangeBaseAction |
| history action for changing the base. It should be added to the history stack by user code More...
|
|
class | ChangeDirAction |
| history action for changing the direction. It should be added to the history stack by user code More...
|
|
class | ChangeLengthAction |
| history action for changing the length. It should be added to the history stack by user code More...
|
|
class | ChangeVisibleAction |
| history action for changing the visible. It should be added to the history stack by user code More...
|
|
|
using | OnDirectionChangedCallback = std::function<void( const Vector3f&, bool )> |
| This callback is invoked every time when the direction is changed by mouse.
|
|
Widget for visualizing the direction.
◆ OnDirectionChangedCallback
This callback is invoked every time when the direction is changed by mouse.
◆ create()
Creates a new widget for visualizing the direction and adds it to scene subscribes to viewer events
- Parameters
-
dir | initial direction |
base | initial base of the arrow |
length | length of the arrow |
onDirectionChanged | callback for the direction change |
◆ getBase()
MRVIEWER_API const Vector3f & MR::DirectionWidget::getBase |
( |
| ) |
const |
Returns the base of the widget.
◆ getColor()
MRVIEWER_API const Color & MR::DirectionWidget::getColor |
( |
| ) |
const |
Returns the color of the widget.
◆ getDirection()
MRVIEWER_API const Vector3f & MR::DirectionWidget::getDirection |
( |
| ) |
const |
Returns the direction of the widget.
◆ getParentPtr()
MRVIEWER_API const VisualObject * MR::DirectionWidget::getParentPtr |
( |
| ) |
const |
Returns pointer to parent object.
◆ isMouseBlocked()
bool MR::DirectionWidget::isMouseBlocked |
( |
| ) |
const |
|
inline |
Block or allow mouse editing (allowed by default)
◆ reset()
MRVIEWER_API void MR::DirectionWidget::reset |
( |
| ) |
|
Removes the widget from the scene unsubscribes from viewer events
◆ setColor()
MRVIEWER_API void MR::DirectionWidget::setColor |
( |
const Color & | color | ) |
|
Sets the color of the widget.
◆ setMouseBlocked()
void MR::DirectionWidget::setMouseBlocked |
( |
bool | blocked | ) |
|
|
inline |
◆ setOnDirectionChangedCallback()
Manually set callback function.
◆ setVisible()
MRVIEWER_API void MR::DirectionWidget::setVisible |
( |
bool | visible | ) |
|
Sets the visibility of the widget.
◆ updateArrow()
MRVIEWER_API void MR::DirectionWidget::updateArrow |
( |
const Vector3f & | base, |
|
|
float | length ) |
Updates the base and the length of the arrow.
◆ updateBase()
MRVIEWER_API void MR::DirectionWidget::updateBase |
( |
const Vector3f & | base | ) |
|
Updates the base of the arrow.
◆ updateDirection()
MRVIEWER_API void MR::DirectionWidget::updateDirection |
( |
const Vector3f & | dir | ) |
|
Updates the direction of the arrow.
◆ updateLength()
MRVIEWER_API void MR::DirectionWidget::updateLength |
( |
float | length | ) |
|
Updates the length of the arrow.
The documentation for this class was generated from the following file: