Public Member Functions | Private Attributes | List of all members
qglviewer::CameraConstraint Class Reference

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

#include <QGLViewer/constraint.h>

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

Public Member Functions

const Cameracamera () const
 
 CameraConstraint (const Camera *const camera)
 
virtual void constrainRotation (Quaternion &rotation, Frame *const frame)
 
virtual void constrainTranslation (Vec &translation, Frame *const frame)
 
virtual ~CameraConstraint ()
 
- 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 ()
 

Private Attributes

const Camera *const camera_
 

Additional Inherited Members

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

Detailed Description

An AxisPlaneConstraint defined in the camera coordinate system.

The translationConstraintDirection() and rotationConstraintDirection() are expressed in the associated camera() coordinate system.

See the constrainedFrame and constrainedCamera examples for an illustration.

Definition at line 319 of file constraint.h.

Constructor & Destructor Documentation

CameraConstraint::CameraConstraint ( const Camera *const  camera)
explicit

Creates a CameraConstraint, whose constrained directions are defined in the camera coordinate system.

Definition at line 235 of file constraint.cpp.

virtual qglviewer::CameraConstraint::~CameraConstraint ( )
inlinevirtual

Virtual destructor. Empty.

Definition at line 324 of file constraint.h.

Member Function Documentation

const Camera* qglviewer::CameraConstraint::camera ( ) const
inline

Returns the associated Camera. Set using the CameraConstraint constructor.

Definition at line 330 of file constraint.h.

void CameraConstraint::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 camera() coordinate system by rotationConstraintDirection().

Reimplemented from qglviewer::AxisPlaneConstraint.

Definition at line 270 of file constraint.cpp.

void CameraConstraint::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 camera() coordinate system by translationConstraintDirection().

Reimplemented from qglviewer::AxisPlaneConstraint.

Definition at line 242 of file constraint.cpp.

Member Data Documentation

const Camera* const qglviewer::CameraConstraint::camera_
private

Definition at line 330 of file constraint.h.


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


octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Mon Jun 10 2019 14:00:25