Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

gfx::LookAtCameraManipulator Class Reference

Inheritance diagram for gfx::LookAtCameraManipulator:

Inheritance graph
[legend]
Collaboration diagram for gfx::LookAtCameraManipulator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LookAtCameraManipulator (Real alpha=90, Real theta=10, Real d=5, Real targetx=0, Real targety=0, Real targetz=0)
virtual ~LookAtCameraManipulator ()
void setAlpha (Real alpha)
void setTheta (Real theta)
void setD (Real d)
Real getAlpha () const
Real getTheta () const
Real getD () const
void setTarget (Real targetx, Real targety, Real targetz)
Point3 getTarget () const
void trackingEnable ()
void trackingDisable ()
bool trackingEnabled () const
virtual void setNode (osg::Node *)
virtual const osg::Node * getNode () const
virtual osg::Node * getNode ()
virtual void home (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
virtual void init (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
virtual bool handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &us)
virtual osg::Matrixd getMatrix () const
virtual osg::Matrixd getInverseMatrix () const
virtual void setByMatrix (const osg::Matrixd &matrix)
virtual void setByInverseMatrix (const osg::Matrixd &matrix)

Protected Member Functions

osg::Vec3 calcPos () const

Protected Attributes

osg::Vec3 target
bool tracking
Real alpha
Real theta
Real d
Real halpha
Real htheta
Real hd
Real x
Real y
Real ialpha
Real itheta
Real id
osg::Vec3 itarget

Detailed Description

OSG Specific Camera manipulator for looking at specific points
Todo:
reimplement (as this is broken since switch to Producer)

Definition at line 37 of file LookAtCameraManipulator.


Constructor & Destructor Documentation

gfx::LookAtCameraManipulator::LookAtCameraManipulator Real  alpha = 90,
Real  theta = 10,
Real  d = 5,
Real  targetx = 0,
Real  targety = 0,
Real  targetz = 0
 

virtual gfx::LookAtCameraManipulator::~LookAtCameraManipulator  )  [virtual]
 


Member Function Documentation

osg::Vec3 gfx::LookAtCameraManipulator::calcPos  )  const [protected]
 

Real gfx::LookAtCameraManipulator::getAlpha  )  const [inline]
 

Definition at line 46 of file LookAtCameraManipulator.

Real gfx::LookAtCameraManipulator::getD  )  const [inline]
 

Definition at line 48 of file LookAtCameraManipulator.

virtual osg::Matrixd gfx::LookAtCameraManipulator::getInverseMatrix  )  const [virtual]
 

virtual osg::Matrixd gfx::LookAtCameraManipulator::getMatrix  )  const [virtual]
 

virtual osg::Node* gfx::LookAtCameraManipulator::getNode  )  [virtual]
 

Return node if attached.

virtual const osg::Node* gfx::LookAtCameraManipulator::getNode  )  const [virtual]
 

Return node if attached.

Point3 gfx::LookAtCameraManipulator::getTarget  )  const [inline]
 

Definition at line 58 of file LookAtCameraManipulator.

References base::Point3, and target.

Real gfx::LookAtCameraManipulator::getTheta  )  const [inline]
 

Definition at line 47 of file LookAtCameraManipulator.

virtual bool gfx::LookAtCameraManipulator::handle const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  us
[virtual]
 

handle events, return true if handled, false otherwise.

virtual void gfx::LookAtCameraManipulator::home const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  us
[virtual]
 

Move the camera to the default position. May be ignored by manipulators if home functionality is not appropriate.

virtual void gfx::LookAtCameraManipulator::init const osgGA::GUIEventAdapter &  ea,
osgGA::GUIActionAdapter &  us
[virtual]
 

Start/restart the manipulator.

void gfx::LookAtCameraManipulator::setAlpha Real  alpha  )  [inline]
 

Definition at line 43 of file LookAtCameraManipulator.

virtual void gfx::LookAtCameraManipulator::setByInverseMatrix const osg::Matrixd &  matrix  )  [virtual]
 

virtual void gfx::LookAtCameraManipulator::setByMatrix const osg::Matrixd &  matrix  )  [virtual]
 

void gfx::LookAtCameraManipulator::setD Real  d  )  [inline]
 

Definition at line 45 of file LookAtCameraManipulator.

virtual void gfx::LookAtCameraManipulator::setNode osg::Node *   )  [virtual]
 

Attach a node to the manipulator. Automatically detaches previously attached node. setNode(NULL) detaches previously nodes. Is ignored by manipulators which do not require a reference model.

void gfx::LookAtCameraManipulator::setTarget Real  targetx,
Real  targety,
Real  targetz
[inline]
 

Definition at line 51 of file LookAtCameraManipulator.

References target.

void gfx::LookAtCameraManipulator::setTheta Real  theta  )  [inline]
 

Definition at line 44 of file LookAtCameraManipulator.

void gfx::LookAtCameraManipulator::trackingDisable  )  [inline]
 

Definition at line 65 of file LookAtCameraManipulator.

References tracking.

void gfx::LookAtCameraManipulator::trackingEnable  )  [inline]
 

Definition at line 64 of file LookAtCameraManipulator.

References tracking.

bool gfx::LookAtCameraManipulator::trackingEnabled  )  const [inline]
 

Definition at line 67 of file LookAtCameraManipulator.

References tracking.


Member Data Documentation

Real gfx::LookAtCameraManipulator::alpha [protected]
 

Definition at line 102 of file LookAtCameraManipulator.

Real gfx::LookAtCameraManipulator::d [protected]
 

Definition at line 104 of file LookAtCameraManipulator.

Real gfx::LookAtCameraManipulator::halpha [protected]
 

Definition at line 106 of file LookAtCameraManipulator.

Real gfx::LookAtCameraManipulator::hd [protected]
 

Definition at line 108 of file LookAtCameraManipulator.

Real gfx::LookAtCameraManipulator::htheta [protected]
 

Definition at line 107 of file LookAtCameraManipulator.

Real gfx::LookAtCameraManipulator::ialpha [protected]
 

Definition at line 112 of file LookAtCameraManipulator.

Real gfx::LookAtCameraManipulator::id [protected]
 

Definition at line 112 of file LookAtCameraManipulator.

osg::Vec3 gfx::LookAtCameraManipulator::itarget [protected]
 

Definition at line 113 of file LookAtCameraManipulator.

Real gfx::LookAtCameraManipulator::itheta [protected]
 

Definition at line 112 of file LookAtCameraManipulator.

osg::Vec3 gfx::LookAtCameraManipulator::target [protected]
 

Definition at line 99 of file LookAtCameraManipulator.

Referenced by getTarget(), and setTarget().

Real gfx::LookAtCameraManipulator::theta [protected]
 

Definition at line 103 of file LookAtCameraManipulator.

bool gfx::LookAtCameraManipulator::tracking [protected]
 

Definition at line 100 of file LookAtCameraManipulator.

Referenced by trackingDisable(), trackingEnable(), and trackingEnabled().

Real gfx::LookAtCameraManipulator::x [protected]
 

Definition at line 111 of file LookAtCameraManipulator.

Real gfx::LookAtCameraManipulator::y [protected]
 

Definition at line 111 of file LookAtCameraManipulator.


The documentation for this class was generated from the following file:
Generated on Thu Jul 29 16:39:51 2004 for OpenSim by doxygen 1.3.6