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

#include <MRObjectTransformWidget.h>

+ Inheritance diagram for MR::TransformControls:

Classes

struct  VisualParams
 

Public Member Functions

MRVIEWER_API void setVisualParams (const VisualParams &params)
 
const VisualParamsgetVisualParams () const
 
virtual MRVIEWER_API ~TransformControls ()
 
virtual MRVIEWER_API void init (std::shared_ptr< Object > parent) override
 
virtual MRVIEWER_API void update () override
 
virtual float getRadius () const override
 
MRVIEWER_API void setRadius (float radius)
 
float getWidth () const
 
MRVIEWER_API void setWidth (float width)
 
virtual MRVIEWER_API void updateTranslation (Axis ax, const Vector3f &startMove, const Vector3f &endMove) override
 
virtual MRVIEWER_API void updateRotation (Axis ax, const AffineXf3f &xf, float startAngle, float endAngle) override
 
- Public Member Functions inherited from MR::ITransformControls
virtual ~ITransformControls ()=default
 
const Vector3f & getCenter () const
 
MRVIEWER_API void setCenter (const Vector3f &center)
 
void setTransformModesValidator (TransformModesValidator validator)
 
void setPickThrough (bool on)
 
bool getPickThrough () const
 
ControlBit getHoveredControl () const
 
void hover ()
 
void stopModify ()
 
MRVIEWER_API void updateVisualTransformMode (ControlBit showMask, ViewportMask viewportMask, const AffineXf3f &xf)
 

Static Public Member Functions

static MRVIEWER_API TransformModesValidator ThresholdDotValidator (float thresholdDot)
 

Additional Inherited Members

Constructor & Destructor Documentation

◆ ~TransformControls()

virtual MRVIEWER_API MR::TransformControls::~TransformControls ( )
virtual

Member Function Documentation

◆ getRadius()

virtual float MR::TransformControls::getRadius ( ) const
inlineoverridevirtual

Reimplemented from MR::ITransformControls.

◆ getVisualParams()

const VisualParams & MR::TransformControls::getVisualParams ( ) const
inline

◆ getWidth()

float MR::TransformControls::getWidth ( ) const
inline

◆ init()

virtual MRVIEWER_API void MR::TransformControls::init ( std::shared_ptr< Object > parent)
overridevirtual

◆ setRadius()

MRVIEWER_API void MR::TransformControls::setRadius ( float radius)

◆ setVisualParams()

MRVIEWER_API void MR::TransformControls::setVisualParams ( const VisualParams & params)

◆ setWidth()

MRVIEWER_API void MR::TransformControls::setWidth ( float width)

◆ ThresholdDotValidator()

static MRVIEWER_API TransformModesValidator MR::TransformControls::ThresholdDotValidator ( float thresholdDot)
static

◆ update()

virtual MRVIEWER_API void MR::TransformControls::update ( )
overridevirtual

◆ updateRotation()

virtual MRVIEWER_API void MR::TransformControls::updateRotation ( Axis ax,
const AffineXf3f & xf,
float startAngle,
float endAngle )
overridevirtual

◆ updateTranslation()

virtual MRVIEWER_API void MR::TransformControls::updateTranslation ( Axis ax,
const Vector3f & startMove,
const Vector3f & endMove )
overridevirtual

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