Helper class to manage ancillary labels used by plugins.
More...
#include <MRAncillaryLabels.h>
|
| AncillaryLabel ()=default |
|
| AncillaryLabel (AncillaryLabel &&b) noexcept |
| 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 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.
|
|
Helper class to manage ancillary labels used by plugins.
◆ AncillaryLabel() [1/3]
MR::AncillaryLabel::AncillaryLabel |
( |
| ) |
|
|
default |
◆ AncillaryLabel() [2/3]
since this uniquely owns an ancillary object, we provide only move operations, not copy
◆ AncillaryLabel() [3/3]
MR::AncillaryLabel::AncillaryLabel |
( |
Object & | parent, |
|
|
const PositionedText & | text, |
|
|
bool | depthTest = false ) |
|
inlineexplicit |
Make not-pickable ancillary object, link it to parent object, and set label text.
◆ ~AncillaryLabel()
MR::AncillaryLabel::~AncillaryLabel |
( |
| ) |
|
|
inline |
detach owned object from parent, stops owning it
◆ make()
MRVIEWER_API void MR::AncillaryLabel::make |
( |
Object & | parent, |
|
|
const PositionedText & | text, |
|
|
bool | depthTest = false ) |
Make not-pickable ancillary object, link it to parent object, and set label text.
◆ makeDetached()
static MRVIEWER_API std::shared_ptr< ObjectLabel > MR::AncillaryLabel::makeDetached |
( |
const PositionedText & | text, |
|
|
bool | depthTest = false ) |
|
static |
Make not-pickable ancillary object without parent object, and set label text.
◆ operator=()
◆ reset()
MRVIEWER_API void MR::AncillaryLabel::reset |
( |
| ) |
|
detach owned object from parent, stops owning it
◆ resetText()
MRVIEWER_API void MR::AncillaryLabel::resetText |
( |
| ) |
|
◆ setDepthTest()
MRVIEWER_API void MR::AncillaryLabel::setDepthTest |
( |
bool | depthTest | ) |
|
◆ setPosition()
MRVIEWER_API void MR::AncillaryLabel::setPosition |
( |
const Vector3f & | pos | ) |
|
◆ setText()
MRVIEWER_API void MR::AncillaryLabel::setText |
( |
const PositionedText & | text | ) |
|
◆ obj
The documentation for this struct was generated from the following file: