![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Navigation/GlToolTargetOverlay.h>
Overlay for displaying the distance and orientation of a tool with respect to a target position. More...
Overlay for displaying the distance and orientation of a tool with respect to a target position.
Public Member Functions | |
void | render (const GL::Viewport &viewport) override |
render the overlay with the given width and height | |
void | setToolPoints (vec2 start, vec2 end) |
void | setVisParams (int fontSize, int textOffset, int topMargin, int whiskerMargin, double barHeightInMM, double barWidthInMM) |
![]() | |
GlOverlay (int widthHint, int heightHint, int minWidthHint, int minHeightHint) | |
Instantiate a new GlOverlay with the given size hints. | |
virtual void | setVisible (bool visible) |
Set overlay visibility. | |
virtual bool | visible () const |
Return overlay visibility. | |
virtual void | setSizeHint (int width, int height) |
Sets the preferred size of the overlay for a DPI scaling of 1.0. | |
virtual int | sizeHintWidth () const |
Gets the preferred width of the overlay. | |
virtual int | sizeHintHeight () const |
Gets the preferred height of the overlay. | |
virtual void | setMinimalSizeHint (int width, int height) |
Sets the minimal size of the overlay for a DPI scaling of 1.0. | |
virtual int | minimalSizeHintWidth () const |
Gets the minimal width of the overlay. | |
virtual int | minimalSizeHintHeight () const |
Gets the minimal height of the overlay. | |
virtual void | update () |
updates any intermediate data the overlay uses for rendering | |
Additional Inherited Members | |
![]() | |
Signal< int, int > | m_sizeChangedSignal |
Signal emitted when the size hint has changed. | |
Signal< int, int > | m_minSizeChangedSignal |
Signal emitted when the minimum size hint has changed. | |
![]() | |
bool | m_visible = true |
Overlay visibility. | |
int | m_sizeHintWidth = 0 |
int | m_sizeHintHeight = 0 |
int | m_minSizeHintWidth = 0 |
int | m_minSizeHintHeight = 0 |
|
overridevirtual |
render the overlay with the given width and height
Implements GlOverlay.