MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::AncillaryLabel Struct Reference

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
 
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.
 
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< 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: