MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::ViewportGlobalBasis Class Reference

Class to unify Global Basis control. More...

#include <MRViewer/MRViewportGlobalBasis.h>

Public Member Functions

 ViewportGlobalBasis ()
 Constructs default global basis object.
float getAxesLength (ViewportId id={}) const
 Returns length of axis (all are the same)
float getAxesWidth (ViewportId id={}) const
 Returns width of axis (all are the same)
void setAxesProps (float length, float width, ViewportId id={})
 Sets length and width for all axes.
void setColors (const Color &xColor, const Color &yColor, const Color &zColor, const Color &labelColors)
 Sets colors for each axis of this object.
const std::vector< std::shared_ptr< VisualObject > > & axesChildren () const
 Simple accessor to visual children (useful for pickers or box calculations)
bool getRedrawFlag (ViewportMask vpMask) const
 returns true if any of its children requires redraw
void resetRedrawFlag () const
 reset redraw flag for all children
void draw (const Viewport &vp) const
 Draw this object into given viewport.
void setVisible (bool on, ViewportMask vpMask=ViewportMask::all())
 Set visibility for all child objects.
void setVisibilityMask (ViewportMask vpMask)
bool isVisible (ViewportMask vpMask=ViewportMask::any()) const
 returns true if object is present and visible
ViewportMask getVisibilityMask () const
void setGridVisible (bool on, ViewportMask vpMask=ViewportMask::all())
 Set visibility for grid objects.
void setGridVisibilityMask (ViewportMask vpMask)
bool isGridVisible (ViewportMask vpMask=ViewportMask::any()) const
 returns true if grid is present and visible
ViewportMask getGridVisibilityMask () const
void resetConnections ()
 clears connections of this structure (by default it changes colors on theme change and change font size on rescale)

Detailed Description

Class to unify Global Basis control.


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