#include <PhysicsUpdateCB.h>

Public Member Functions | |
| PhysicsUpdateCB (Physics::Geom *pGeom) | |
| virtual void | operator() (osg::Node *pNode, osg::NodeVisitor *pNV) |
| Physics::Geom * | getGeom () |
| const Physics::Geom * | getGeom () 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::Geom * | pGeom |
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.
| PhysicsUpdateCB::PhysicsUpdateCB | ( | Physics::Geom * | pGeom | ) | [inline] |
| const Physics::Geom* PhysicsUpdateCB::getGeom | ( | ) | const [inline] |
| Physics::Geom* PhysicsUpdateCB::getGeom | ( | ) | [inline] |
| 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.
Physics::Geom* PhysicsUpdateCB::pGeom [protected] |
Definition at line 56 of file PhysicsUpdateCB.h.
Referenced by getGeom(), getLTWCamMatrix(), getWTLCamMatrix(), operator()(), and PhysicsDebugUpdateCB::operator()().
1.5.9