PhysicsUpdateCB Class Reference

This update callback binds physics to 3D by setting a 3D transform to a geom's matrix. More...

#include <PhysicsUpdateCB.h>

Inheritance diagram for PhysicsUpdateCB:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 PhysicsUpdateCB (Physics::Geom *pGeom)
virtual void operator() (osg::Node *pNode, osg::NodeVisitor *pNV)
Physics::GeomgetGeom ()
const Physics::GeomgetGeom () const
void setGeom (Physics::Geom *pGeom)
osg::Matrix getLTWCamMatrix () const
 Gets local-to-world camera matrix (assumes the geom is in world coordinates). Used essentially for manipulators.
osg::Matrix getWTLCamMatrix () const
 Gets world-to-local camera matrix (assumes the geom is in world coordinates). Used essentially for manipulators.

Protected Attributes

Physics::GeompGeom


Detailed Description

This update callback binds physics to 3D by setting a 3D transform to a geom's matrix.

Warning : this callback must be put on an osg::MatrixTransform, and it assumes the node is in world coordinates (the osg::MatrixTransform must not be a descendant of a non-identity transform).

Definition at line 37 of file PhysicsUpdateCB.h.


Constructor & Destructor Documentation

PhysicsUpdateCB::PhysicsUpdateCB ( Physics::Geom pGeom  )  [inline]

Definition at line 39 of file PhysicsUpdateCB.h.

References ASSERT.


Member Function Documentation

const Physics::Geom* PhysicsUpdateCB::getGeom (  )  const [inline]

Definition at line 46 of file PhysicsUpdateCB.h.

References pGeom.

Physics::Geom* PhysicsUpdateCB::getGeom (  )  [inline]

Definition at line 45 of file PhysicsUpdateCB.h.

References pGeom.

Referenced by C3DPhy::C3DPhy().

osg::Matrix PhysicsUpdateCB::getLTWCamMatrix (  )  const [inline]

Gets local-to-world camera matrix (assumes the geom is in world coordinates). Used essentially for manipulators.

Definition at line 51 of file PhysicsUpdateCB.h.

References Physics::Geom::getMatrix(), and pGeom.

osg::Matrix PhysicsUpdateCB::getWTLCamMatrix (  )  const [inline]

Gets world-to-local camera matrix (assumes the geom is in world coordinates). Used essentially for manipulators.

Definition at line 53 of file PhysicsUpdateCB.h.

References Physics::Geom::getMatrix(), and pGeom.

virtual void PhysicsUpdateCB::operator() ( osg::Node *  pNode,
osg::NodeVisitor *  pNV 
) [inline, virtual]

Reimplemented in PhysicsDebugUpdateCB.

Definition at line 40 of file PhysicsUpdateCB.h.

References Physics::Geom::getMatrix(), and pGeom.

void PhysicsUpdateCB::setGeom ( Physics::Geom pGeom  )  [inline]

Definition at line 48 of file PhysicsUpdateCB.h.


Member Data Documentation


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

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