Public Member Functions | List of all members
qglviewer::WorldConstraint Class Reference

An AxisPlaneConstraint defined in the world coordinate system. More...

#include <QGLViewer/constraint.h>

Inheritance diagram for qglviewer::WorldConstraint:
Inheritance graph
[legend]

Public Member Functions

virtual void constrainRotation (Quaternion &rotation, Frame *const frame)
 
virtual void constrainTranslation (Vec &translation, Frame *const frame)
 
virtual ~WorldConstraint ()
 
- Public Member Functions inherited from qglviewer::AxisPlaneConstraint
 AxisPlaneConstraint ()
 
virtual ~AxisPlaneConstraint ()
 
void setTranslationConstraint (Type type, const Vec &direction)
 
void setTranslationConstraintType (Type type)
 
void setTranslationConstraintDirection (const Vec &direction)
 
Type translationConstraintType () const
 
Vec translationConstraintDirection () const
 
void setRotationConstraint (Type type, const Vec &direction)
 
void setRotationConstraintType (Type type)
 
void setRotationConstraintDirection (const Vec &direction)
 
Type rotationConstraintType () const
 
Vec rotationConstraintDirection () const
 
- Public Member Functions inherited from qglviewer::Constraint
virtual ~Constraint ()
 

Additional Inherited Members

- Public Types inherited from qglviewer::AxisPlaneConstraint
enum  Type { FREE, AXIS, PLANE, FORBIDDEN }
 

Detailed Description

An AxisPlaneConstraint defined in the world coordinate system.

The translationConstraintDirection() and rotationConstraintDirection() are expressed in world coordinate system.

See the constrainedFrame and multiView examples for an illustration.

Definition at line 299 of file constraint.h.

Constructor & Destructor Documentation

virtual qglviewer::WorldConstraint::~WorldConstraint ( )
inlinevirtual

Virtual destructor. Empty.

Definition at line 303 of file constraint.h.

Member Function Documentation

void WorldConstraint::constrainRotation ( Quaternion rotation,
Frame *const  frame 
)
virtual

When rotationConstraintType() is AxisPlaneConstraint::AXIS, constrain rotation to be a rotation around an axis whose direction is defined in the world coordinate system by rotationConstraintDirection().

Reimplemented from qglviewer::AxisPlaneConstraint.

Definition at line 208 of file constraint.cpp.

void WorldConstraint::constrainTranslation ( Vec translation,
Frame *const  frame 
)
virtual

Depending on translationConstraintType(), constrain translation to be along an axis or limited to a plane defined in the world coordinate system by translationConstraintDirection().

Reimplemented from qglviewer::AxisPlaneConstraint.

Definition at line 174 of file constraint.cpp.


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


octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Wed Jun 5 2019 19:26:39