MeshLib Documentation
Loading...
Searching...
No Matches
MR::ObjectTransformWidget Class Reference

#include <MRObjectTransformWidget.h>

+ Inheritance diagram for MR::ObjectTransformWidget:

Classes

class  ChangeXfAction
 

Public Types

enum  AxisTransformMode { AxisTranslation , AxisScaling , UniformScaling }
 

Public Member Functions

MRVIEWER_API void create (const Box3f &box, const AffineXf3f &xf, std::shared_ptr< ITransformControls > controls={})
 
MRVIEWER_API void reset ()
 
ControlBit getTransformModeMask (ViewportId id={}) const
 
MRVIEWER_API void setTransformMode (ControlBit mask, ViewportId id={})
 
AxisTransformMode getAxisTransformMode () const
 
void setAxisTransformMode (AxisTransformMode mode)
 
std::shared_ptr< ObjectgetRootObject () const
 
std::shared_ptr< ITransformControlsgetControls () const
 
template<typename T >
std::shared_ptr< T > getControlsAs () const
 
MRVIEWER_API void setControlsXf (const AffineXf3f &xf, ViewportId id={})
 
MRVIEWER_API AffineXf3f getControlsXf (ViewportId id={}) const
 
MRVIEWER_API void followObjVisibility (const std::weak_ptr< Object > &obj)
 
void setScaleTooltipCallback (std::function< void(float)> callback)
 
void setTranslateTooltipCallback (std::function< void(float)> callback)
 
void setRotateTooltipCallback (std::function< void(float)> callback)
 
void setStopModifyCallback (std::function< void()> callback)
 
void setStartModifyCallback (std::function< void()> callback)
 
void setAddXfCallback (std::function< void(const AffineXf3f &)> callback)
 
void setApproveXfCallback (std::function< bool(const AffineXf3f &)> callback)
 
- Public Member Functions inherited from MR::MultiListener< MouseDownListener, MouseMoveListener, MouseUpListener, PreDrawListener, PostDrawListener >
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 ()
 

Member Enumeration Documentation

◆ AxisTransformMode

Enumerator
AxisTranslation 
AxisScaling 
UniformScaling 

Member Function Documentation

◆ create()

MRVIEWER_API void MR::ObjectTransformWidget::create ( const Box3f & box,
const AffineXf3f & xf,
std::shared_ptr< ITransformControls > controls = {} )

◆ followObjVisibility()

MRVIEWER_API void MR::ObjectTransformWidget::followObjVisibility ( const std::weak_ptr< Object > & obj)

◆ getAxisTransformMode()

AxisTransformMode MR::ObjectTransformWidget::getAxisTransformMode ( ) const
inline

◆ getControls()

std::shared_ptr< ITransformControls > MR::ObjectTransformWidget::getControls ( ) const
inline

◆ getControlsAs()

template<typename T >
std::shared_ptr< T > MR::ObjectTransformWidget::getControlsAs ( ) const
inline

◆ getControlsXf()

MRVIEWER_API AffineXf3f MR::ObjectTransformWidget::getControlsXf ( ViewportId id = {}) const

◆ getRootObject()

std::shared_ptr< Object > MR::ObjectTransformWidget::getRootObject ( ) const
inline

◆ getTransformModeMask()

ControlBit MR::ObjectTransformWidget::getTransformModeMask ( ViewportId id = {}) const
inline

◆ reset()

MRVIEWER_API void MR::ObjectTransformWidget::reset ( )

◆ setAddXfCallback()

void MR::ObjectTransformWidget::setAddXfCallback ( std::function< void(const AffineXf3f &)> callback)
inline

◆ setApproveXfCallback()

void MR::ObjectTransformWidget::setApproveXfCallback ( std::function< bool(const AffineXf3f &)> callback)
inline

◆ setAxisTransformMode()

void MR::ObjectTransformWidget::setAxisTransformMode ( AxisTransformMode mode)
inline

◆ setControlsXf()

MRVIEWER_API void MR::ObjectTransformWidget::setControlsXf ( const AffineXf3f & xf,
ViewportId id = {} )

◆ setRotateTooltipCallback()

void MR::ObjectTransformWidget::setRotateTooltipCallback ( std::function< void(float)> callback)
inline

◆ setScaleTooltipCallback()

void MR::ObjectTransformWidget::setScaleTooltipCallback ( std::function< void(float)> callback)
inline

◆ setStartModifyCallback()

void MR::ObjectTransformWidget::setStartModifyCallback ( std::function< void()> callback)
inline

◆ setStopModifyCallback()

void MR::ObjectTransformWidget::setStopModifyCallback ( std::function< void()> callback)
inline

◆ setTransformMode()

MRVIEWER_API void MR::ObjectTransformWidget::setTransformMode ( ControlBit mask,
ViewportId id = {} )

◆ setTranslateTooltipCallback()

void MR::ObjectTransformWidget::setTranslateTooltipCallback ( std::function< void(float)> callback)
inline

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