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

#include <MRViewer/MRPlaneWidget.h>

Inheritance diagram for MR::PlaneWidget:

Public Member Functions

void updatePlane (const Plane3f &plane, bool updateCameraRotation=true)
void updateBox (const Box3f &box, bool updateCameraRotation=true)
void definePlane ()
 defines plane, adds plane object to scene
void undefinePlane ()
 undefines plane, removes PlaneObject from scene
void setLocalMode (bool on)
bool isInLocalMode () const
void setLocalShift (float shift)
float getLocalShift () const
const Plane3fgetPlane () const
 returns plane
const std::shared_ptr< ObjectMesh > & getPlaneObject () const
 returns plane object
void setOnPlaneUpdateCallback (OnPlaneUpdateCallback callback)
const Box3f & box () const
 returns box which is used to calculate size and position of the visualized plane part
bool importPlaneMode () const
 returns the flag importPlaneMode_, if it is true you can use a plain object from the scene
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: