Helper class that draws ImGui label.
More...
#include <MRAncillaryLabels.h>
Helper class that draws ImGui label.
◆ AncillaryImGuiLabel()
MR::AncillaryImGuiLabel::AncillaryImGuiLabel |
( |
| ) |
|
|
default |
◆ getPivot()
Vector2f MR::AncillaryImGuiLabel::getPivot |
( |
| ) |
const |
|
inline |
Pivot point { 0, 0 } for top left corner, { 0.5f, 0.5f } for center (default), { 1, 1 } for bottom right corner. { -0.7f, 1.7f } looks ok next to a point (label to up and right from the point)
◆ make() [1/3]
MRVIEWER_API void MR::AncillaryImGuiLabel::make |
( |
const PositionedText & | text | ) |
|
Make label in world space coordinates.
◆ make() [2/3]
Make label in parent space coordinates, follows parent worldXf.
◆ make() [3/3]
MRVIEWER_API void MR::AncillaryImGuiLabel::make |
( |
std::shared_ptr< Object > | parent, |
|
|
const PositionedText & | text ) |
Make label in parent space coordinates, follows parent worldXf Note: label should be deleted or reset if parent is deleted or removed from scene
◆ reset()
MRVIEWER_API void MR::AncillaryImGuiLabel::reset |
( |
| ) |
|
◆ setPivot()
void MR::AncillaryImGuiLabel::setPivot |
( |
Vector2f | pivot | ) |
|
|
inline |
The documentation for this class was generated from the following file: