MeshLib C++ Docs
Loading...
Searching...
No Matches

Helper class to manage ancillary labels used by plugins. More...

#include <MRViewer/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
AncillaryLabeloperator= (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.
void make (Object &parent, const PositionedText &text, bool depthTest=false)
 Make not-pickable ancillary object, link it to parent object, and set label text.
void reset ()
 detach owned object from parent, stops owning it
 ~AncillaryLabel ()
 detach owned object from parent, stops owning it
void setText (const PositionedText &text)
 Set label text.
void resetText ()
 Reset label text.
void setDepthTest (bool depthTest)
 Set depth test.
void setPosition (const Vector3f &pos)
 Set text position.

Static Public Member Functions

static std::shared_ptr< ObjectLabelmakeDetached (const PositionedText &text, bool depthTest=false)
 Make not-pickable ancillary object without parent object, and set label text.

Public Attributes

std::shared_ptr< ObjectLabelobj

Detailed Description

Helper class to manage ancillary labels used by plugins.


The documentation for this struct was generated from the following file: