libQGLViewer
Version 2.5.1
|
An AxisPlaneConstraint defined in the Frame local coordinate system. More...
Public Member Functions | |
virtual | ~LocalConstraint () |
virtual void | constrainTranslation (Vec &translation, Frame *const frame) |
virtual void | constrainRotation (Quaternion &rotation, Frame *const frame) |
![]() | |
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 |
![]() | |
virtual | ~Constraint () |
Additional Inherited Members | |
![]() | |
enum | Type { FREE, AXIS, PLANE, FORBIDDEN } |
An AxisPlaneConstraint defined in the Frame local coordinate system.
The translationConstraintDirection() and rotationConstraintDirection() are expressed in the Frame local coordinate system (see Frame::referenceFrame()).
See the constrainedFrame example for an illustration.
|
virtual |
Virtual destructor. Empty.
|
virtual |
When rotationConstraintType() is AxisPlaneConstraint::AXIS, constrain rotation
to be a rotation around an axis whose direction is defined in the Frame local coordinate system by rotationConstraintDirection().
Reimplemented from AxisPlaneConstraint.
Depending on translationConstraintType(), constrain translation
to be along an axis or limited to a plane defined in the Frame local coordinate system by translationConstraintDirection().
Reimplemented from AxisPlaneConstraint.