FixedManipulator Class Reference

A manipulator which position is driven from outside, and that use an "EyePos, Dir, Up" frame to set the viewpoint. More...

#include <FixedManipulator.h>

List of all members.

Public Member Functions

 FixedManipulator ()
 FixedManipulator (const osg::Vec3 &EyePos, const osg::Vec3 &Dir, const osg::Vec3 &Up)
 FixedManipulator (const osg::Matrix &matrix)
void setByFrame (const osg::Vec3 &EyePos, const osg::Vec3 &Dir, const osg::Vec3 &Up)
 Vectors Dir & Up do not need to be normalized.
virtual void setByMatrix (const osg::Matrix &matrix)
virtual void setByInverseMatrix (const osg::Matrix &matrix)
virtual osg::Matrix getMatrix () const
virtual osg::Matrix getInverseMatrix () const

Protected Member Functions

void switchLeftRightFrame ()
 Going from right to left-handed, or conversely (Invert Y and Z).

Protected Attributes

osg::Vec3 EyePos
osg::Vec3 Dir
osg::Vec3 Up
 Defines a frame and a reference point (The last vector, named 'Right', is = Up^Dir).


Detailed Description

A manipulator which position is driven from outside, and that use an "EyePos, Dir, Up" frame to set the viewpoint.

Can be used as a base class for other manipulators using the "EyePos, Dir, Up" frame. Dev Note : Internally, the FixedManipulator uses a left-hand coordinate system ; use SwitchLeftRightFrame() to switch internal vectors when needed.

Author:
Sukender

Definition at line 39 of file FixedManipulator.h.


Constructor & Destructor Documentation

FixedManipulator::FixedManipulator (  )  [inline]

Definition at line 41 of file FixedManipulator.h.

References Dir, EyePos, and Up.

FixedManipulator::FixedManipulator ( const osg::Vec3 &  EyePos,
const osg::Vec3 &  Dir,
const osg::Vec3 &  Up 
) [inline]

Definition at line 50 of file FixedManipulator.h.

References setByFrame().

FixedManipulator::FixedManipulator ( const osg::Matrix &  matrix  )  [inline]

Definition at line 51 of file FixedManipulator.h.

References setByMatrix().


Member Function Documentation

virtual osg::Matrix FixedManipulator::getInverseMatrix (  )  const [inline, virtual]

Definition at line 81 of file FixedManipulator.h.

References Dir, EyePos, and Up.

Referenced by getMatrix().

virtual osg::Matrix FixedManipulator::getMatrix (  )  const [inline, virtual]

Definition at line 79 of file FixedManipulator.h.

References getInverseMatrix().

void FixedManipulator::setByFrame ( const osg::Vec3 &  EyePos,
const osg::Vec3 &  Dir,
const osg::Vec3 &  Up 
) [inline]

Vectors Dir & Up do not need to be normalized.

Definition at line 54 of file FixedManipulator.h.

References switchLeftRightFrame().

Referenced by FixedManipulator().

virtual void FixedManipulator::setByInverseMatrix ( const osg::Matrix &  matrix  )  [inline, virtual]

Definition at line 74 of file FixedManipulator.h.

References setByMatrix().

virtual void FixedManipulator::setByMatrix ( const osg::Matrix &  matrix  )  [inline, virtual]

Definition at line 64 of file FixedManipulator.h.

References Dir, EyePos, switchLeftRightFrame(), and Up.

Referenced by FixedManipulator(), and setByInverseMatrix().

void FixedManipulator::switchLeftRightFrame (  )  [inline, protected]

Going from right to left-handed, or conversely (Invert Y and Z).

Definition at line 103 of file FixedManipulator.h.

References Dir, EyePos, and Up.

Referenced by setByFrame(), and setByMatrix().


Member Data Documentation

osg::Vec3 FixedManipulator::Dir [protected]

osg::Vec3 FixedManipulator::EyePos [protected]

osg::Vec3 FixedManipulator::Up [protected]

Defines a frame and a reference point (The last vector, named 'Right', is = Up^Dir).

Definition at line 100 of file FixedManipulator.h.

Referenced by FixedManipulator(), getInverseMatrix(), setByMatrix(), and switchLeftRightFrame().


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

Generated on Sun Jan 17 11:39:28 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9