An AxisPlaneConstraint defined in the world coordinate system. More...
#include <QGLViewer/constraint.h>
Public Member Functions | |
virtual void | constrainRotation (Quaternion &rotation, Frame *const frame) |
virtual void | constrainTranslation (Vec &translation, Frame *const frame) |
virtual | ~WorldConstraint () |
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.
virtual qglviewer::WorldConstraint::~WorldConstraint | ( | ) | [inline, virtual] |
Virtual destructor. Empty.
Definition at line 303 of file constraint.h.
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 207 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 173 of file constraint.cpp.