CameraConstraint Class Reference

A translation/rotation Constraint defined with respect to the camera coordinate system. More...

#include <constraint.h>

Inherits AxisPlaneConstraint.

List of all members.

Public Member Functions

 CameraConstraint (const Camera *const cam)
virtual ~CameraConstraint ()
virtual void constrainTranslation (Vec &, Frame *const )
virtual void constrainRotation (Quaternion &, Frame *const )
const Cameracamera () const


Detailed Description

A translation/rotation Constraint defined with respect to the camera coordinate system.


Constructor & Destructor Documentation

CameraConstraint const Camera *const   cam  )  [explicit]
 

Translation and Rotation constraints are set to FREE.

virtual ~CameraConstraint  )  [inline, virtual]
 

Virtual empty destructor.


Member Function Documentation

const Camera* camera  )  const [inline]
 

Returns the associated Camera, set using the CameraConstraint constructor.

void constrainRotation Quaternion rot,
Frame const
[virtual]
 

Constrain the rotation trans with a plane or an axis direction defined with respect to the current camera coordinate system.

Implements AxisPlaneConstraint.

void constrainTranslation Vec trans,
Frame const
[virtual]
 

Constrain the translation trans with a plane or an axis direction defined with respect to the current camera coordinate system.

Implements AxisPlaneConstraint.


Generated on Mon Jun 14 10:10:16 2004 for libQGLViewer by doxygen 1.3.4