Helper class to manage ancillary labels used by plugins. More...
#include <MRAncillaryLabels.h>
Public Member Functions | |
| AncillaryLabel ()=default | |
| AncillaryLabel (AncillaryLabel &&b) noexcept=default | |
| since this uniquely owns an ancillary object, we provide only move operations, not copy | |
| AncillaryLabel & | operator= (AncillaryLabel &&b) |
| AncillaryLabel (Object &parent, const PositionedText &text, bool depthTest=false) | |
| Make not-pickable ancillary object, link it to parent object, and set label text. | |
| MRVIEWER_API void | make (Object &parent, const PositionedText &text, bool depthTest=false) |
| Make not-pickable ancillary object, link it to parent object, and set label text. | |
| MRVIEWER_API void | reset () |
| detach owned object from parent, stops owning it | |
| ~AncillaryLabel () | |
| detach owned object from parent, stops owning it | |
| MRVIEWER_API void | setText (const PositionedText &text) |
| Set label text. | |
| MRVIEWER_API void | resetText () |
| Reset label text. | |
| MRVIEWER_API void | setDepthTest (bool depthTest) |
| Set depth test. | |
| MRVIEWER_API void | setPosition (const Vector3f &pos) |
| Set text position. | |
Static Public Member Functions | |
| static MRVIEWER_API std::shared_ptr< ObjectLabel > | makeDetached (const PositionedText &text, bool depthTest=false) |
| Make not-pickable ancillary object without parent object, and set label text. | |
Public Attributes | |
| std::shared_ptr< ObjectLabel > | obj |
Helper class to manage ancillary labels used by plugins.