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

#include <MRViewer/MRRenderNameObject.h>

Inheritance diagram for MR::RenderNameObject:

Public Member Functions

 RenderNameObject (const VisualObject &object)
void renderUi (const UiRenderParams &params) override
virtual ImGuiMeasurementIndicators::Text getObjectNameText (const VisualObject &object, ViewportId viewportId) const
 The text displayed as the clickable object name.
virtual ImGuiMeasurementIndicators::Text getObjectNameExtraText (const VisualObject &object, ViewportId viewportId) const
Public Member Functions inherited from MR::IRenderObject
virtual ~IRenderObject ()=default
virtual bool render (const ModelRenderParams &params)=0
 Returns true if something was rendered, or false if nothing to render.
virtual void renderPicker (const ModelBaseRenderParams &params, unsigned geomId)=0
virtual size_t heapBytes () const =0
 returns the amount of memory this object occupies on heap
virtual size_t glBytes () const =0
 returns the amount of memory this object allocated in OpenGL
virtual void forceBindAll ()
 binds all data for this render object, not to bind ever again (until object becomes dirty)

Public Attributes

Vector3f nameUiPoint
 The line attachment point.
bool nameUiPointIsRelativeToBoundingBoxCenter = true
Vector3f nameUiLocalOffset
 Which way the name is moved relative to the point, in model space. The length is respected.
Vector2f nameUiScreenOffset
std::optional< Vector3f > nameUiRotateToScreenPlaneAroundSphereCenter
bool nameUiRotateLocalOffset90Degrees = false

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