23 #ifndef QGLVIEWER_CONSTRAINT_H 24 #define QGLVIEWER_CONSTRAINT_H 214 void setTranslationConstraint(
Type type,
const Vec& direction);
217 void setTranslationConstraintDirection(
const Vec& direction);
246 void setRotationConstraint(
Type type,
const Vec& direction);
247 void setRotationConstraintType(
Type type);
248 void setRotationConstraintDirection(
const Vec& direction);
259 Vec rotationConstraintDirection()
const {
return rotationConstraintDir_; };
285 virtual void constrainTranslation(
Vec& translation,
Frame*
const frame);
286 virtual void constrainRotation (
Quaternion& rotation,
Frame*
const frame);
305 virtual void constrainTranslation(
Vec& translation,
Frame*
const frame);
306 virtual void constrainRotation (
Quaternion& rotation,
Frame*
const frame);
326 virtual void constrainTranslation(
Vec& translation,
Frame*
const frame);
327 virtual void constrainRotation (
Quaternion& rotation,
Frame*
const frame);
330 const Camera* camera()
const {
return camera_; };
338 #endif // QGLVIEWER_CONSTRAINT_H
Vec rotationConstraintDir_
Vec translationConstraintDirection() const
const Camera *const camera_
Vec translationConstraintDir_
An abstract class for Frame Constraints defined by an axis or a plane.
An AxisPlaneConstraint defined in the Frame local coordinate system.
virtual void constrainTranslation(Vec &translation, Frame *const frame)
Type translationConstraintType() const
virtual ~AxisPlaneConstraint()
Type rotationConstraintType() const
The Vec class represents 3D positions and 3D vectors.
virtual ~LocalConstraint()
virtual ~WorldConstraint()
Type translationConstraintType_
A perspective or orthographic camera.
virtual void constrainRotation(Quaternion &rotation, Frame *const frame)
The Quaternion class represents 3D rotations and orientations.
Type rotationConstraintType_
void setTranslationConstraintType(Type type)
The Frame class represents a coordinate system, defined by a position and an orientation.
virtual void constrainTranslation(Vec &translation, Frame *const frame)
virtual void constrainRotation(Quaternion &rotation, Frame *const frame)
An AxisPlaneConstraint defined in the world coordinate system.
An interface class for Frame constraints.
virtual ~CameraConstraint()
An AxisPlaneConstraint defined in the camera coordinate system.