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

#include <MRPlaneWidget.h>

+ Inheritance diagram for MR::PlaneWidget:

Public Member Functions

MRVIEWER_API void updatePlane (const Plane3f &plane, bool updateCameraRotation=true)
 
MRVIEWER_API void updateBox (const Box3f &box, bool updateCameraRotation=true)
 
MRVIEWER_API void definePlane ()
 defines plane, adds plane object to scene
 
MRVIEWER_API void undefinePlane ()
 undefines plane, removes PlaneObject from scene
 
MRVIEWER_API void setLocalMode (bool on)
 
bool isInLocalMode () const
 
void setLocalShift (float shift)
 
float getLocalShift () const
 
MRVIEWER_API const Plane3f & getPlane () const
 returns plane
 
MRVIEWER_API const std::shared_ptr< ObjectMesh > & getPlaneObject () const
 returns plane object
 
MRVIEWER_API void setOnPlaneUpdateCallback (OnPlaneUpdateCallback callback)
 
MRVIEWER_API const Box3f & box () const
 returns box which is used to calculate size and position of the visualized plane part
 
MRVIEWER_API bool importPlaneMode () const
 returns the flag importPlaneMode_, if it is true you can use a plain object from the scene
 
MRVIEWER_API void setImportPlaneMode (bool val)
 sets the flag importPlaneMode_, if it is true you can use a plain object from the scene
 
bool getShowPlaneByDefault () const
 returns the flag that is true if the plane is shown by default
 
void setShowPlaneByDefault (bool val)
 sets the flag that is true if the plane is shown by default
 
- Public Member Functions inherited from MR::MultiListener< DragStartListener, DragListener, DragEndListener, NameTagClickListener >
virtual ~MultiListener ()=default
 
virtual void connect (Viewer *viewer, int group=0, boost::signals2::connect_position pos=boost::signals2::connect_position::at_back)
 
virtual void disconnect ()
 

Detailed Description

Visual widget to draw a plane present in scene (ancillary), subscribes to viewer events


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