openscenegraph
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osgSim::DOFTransform Class Reference
Inheritance diagram for osgSim::DOFTransform:
osg::Transform osg::Group osg::Node osg::Object osg::Referenced

Public Types

enum  MultOrder {
  PRH, PHR, HPR, HRP,
  RPH, RHP
}
 
- Public Types inherited from osg::Transform
enum  ReferenceFrame { RELATIVE_RF, ABSOLUTE_RF, ABSOLUTE_RF_INHERIT_VIEWPOINT }
 
- Public Types inherited from osg::Node
typedef std::vector< Group * > ParentList
 
typedef unsigned int NodeMask
 
typedef std::vector< std::string > DescriptionList
 
- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 

Public Member Functions

 DOFTransform ()
 
 DOFTransform (const DOFTransform &dof, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
 META_Node (osgSim, DOFTransform)
 
virtual void traverse (osg::NodeVisitor &nv)
 
void setMinHPR (const osg::Vec3 &hpr)
 
const osg::Vec3getMinHPR () const
 
void setMaxHPR (const osg::Vec3 &hpr)
 
const osg::Vec3getMaxHPR () const
 
void setIncrementHPR (const osg::Vec3 &hpr)
 
const osg::Vec3getIncrementHPR () const
 
void setCurrentHPR (const osg::Vec3 &hpr)
 
const osg::Vec3getCurrentHPR () const
 
void updateCurrentHPR (const osg::Vec3 &hpr)
 
void setMinTranslate (const osg::Vec3 &translate)
 
const osg::Vec3getMinTranslate () const
 
void setMaxTranslate (const osg::Vec3 &translate)
 
const osg::Vec3getMaxTranslate () const
 
void setIncrementTranslate (const osg::Vec3 &translate)
 
const osg::Vec3getIncrementTranslate () const
 
void setCurrentTranslate (const osg::Vec3 &translate)
 
const osg::Vec3getCurrentTranslate () const
 
void updateCurrentTranslate (const osg::Vec3 &translate)
 
void setMinScale (const osg::Vec3 &scale)
 
const osg::Vec3getMinScale () const
 
void setMaxScale (const osg::Vec3 &scale)
 
const osg::Vec3getMaxScale () const
 
void setIncrementScale (const osg::Vec3 &scale)
 
const osg::Vec3getIncrementScale () const
 
void setCurrentScale (const osg::Vec3 &scale)
 
const osg::Vec3getCurrentScale () const
 
void updateCurrentScale (const osg::Vec3 &scale)
 
void setPutMatrix (const osg::Matrix &put)
 
const osg::MatrixgetPutMatrix () const
 
void setInversePutMatrix (const osg::Matrix &inversePut)
 
const osg::MatrixgetInversePutMatrix () const
 
void setLimitationFlags (unsigned long flags)
 
unsigned long getLimitationFlags () const
 
void setHPRMultOrder (MultOrder order)
 
MultOrder getHPRMultOrder () const
 
void setAnimationOn (bool do_animate)
 
bool getAnimationOn () const
 
void animate (float deltaTime)
 
virtual bool computeLocalToWorldMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const
 
virtual bool computeWorldToLocalMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const
 
- Public Member Functions inherited from osg::Transform
 Transform ()
 
 Transform (const Transform &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
 META_Node (osg, Transform)
 
virtual TransformasTransform ()
 
virtual const TransformasTransform () const
 
virtual MatrixTransformasMatrixTransform ()
 
virtual const MatrixTransformasMatrixTransform () const
 
virtual PositionAttitudeTransformasPositionAttitudeTransform ()
 
virtual const
PositionAttitudeTransform
asPositionAttitudeTransform () const
 
void setReferenceFrame (ReferenceFrame rf)
 
ReferenceFrame getReferenceFrame () const
 
virtual BoundingSphere computeBound () const
 
- Public Member Functions inherited from osg::Group
 Group ()
 
 Group (const Group &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
 META_Node (osg, Group)
 
virtual GroupasGroup ()
 
virtual const GroupasGroup () const
 
virtual bool addChild (Node *child)
 
virtual bool insertChild (unsigned int index, Node *child)
 
bool removeChild (Node *child)
 
bool removeChild (unsigned int pos, unsigned int numChildrenToRemove=1)
 
virtual bool removeChildren (unsigned int pos, unsigned int numChildrenToRemove)
 
virtual bool replaceChild (Node *origChild, Node *newChild)
 
unsigned int getNumChildren () const
 
virtual bool setChild (unsigned int i, Node *node)
 
NodegetChild (unsigned int i)
 
const NodegetChild (unsigned int i) const
 
bool containsNode (const Node *node) const
 
unsigned int getChildIndex (const Node *node) const
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
virtual void resizeGLObjectBuffers (unsigned int maxSize)
 
virtual void releaseGLObjects (osg::State *=0) const
 
- Public Member Functions inherited from osg::Node
 Node ()
 
 Node (const Node &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
virtual ObjectcloneType () const
 
virtual Objectclone (const CopyOp &copyop) const
 
virtual bool isSameKindAs (const Object *obj) const
 
virtual const char * libraryName () const
 
virtual const char * className () const
 
virtual CameraasCamera ()
 
virtual const CameraasCamera () const
 
virtual SwitchasSwitch ()
 
virtual const SwitchasSwitch () const
 
virtual GeodeasGeode ()
 
virtual const GeodeasGeode () const
 
virtual osgTerrain::TerrainasTerrain ()
 
virtual const osgTerrain::TerrainasTerrain () const
 
virtual void accept (NodeVisitor &nv)
 
virtual void ascend (NodeVisitor &nv)
 
const ParentListgetParents () const
 
ParentList getParents ()
 
GroupgetParent (unsigned int i)
 
const GroupgetParent (unsigned int i) const
 
unsigned int getNumParents () const
 
NodePathList getParentalNodePaths (osg::Node *haltTraversalAtNode=0) const
 
MatrixList getWorldMatrices (const osg::Node *haltTraversalAtNode=0) const
 
void setUpdateCallback (NodeCallback *nc)
 
NodeCallbackgetUpdateCallback ()
 
const NodeCallbackgetUpdateCallback () const
 
void addUpdateCallback (NodeCallback *nc)
 
void removeUpdateCallback (NodeCallback *nc)
 
unsigned int getNumChildrenRequiringUpdateTraversal () const
 
void setEventCallback (NodeCallback *nc)
 
NodeCallbackgetEventCallback ()
 
const NodeCallbackgetEventCallback () const
 
void addEventCallback (NodeCallback *nc)
 
void removeEventCallback (NodeCallback *nc)
 
unsigned int getNumChildrenRequiringEventTraversal () const
 
void setCullCallback (NodeCallback *nc)
 
NodeCallbackgetCullCallback ()
 
const NodeCallbackgetCullCallback () const
 
void addCullCallback (NodeCallback *nc)
 
void removeCullCallback (NodeCallback *nc)
 
void setCullingActive (bool active)
 
bool getCullingActive () const
 
unsigned int getNumChildrenWithCullingDisabled () const
 
bool isCullingActive () const
 
unsigned int getNumChildrenWithOccluderNodes () const
 
bool containsOccluderNodes () const
 
void setNodeMask (NodeMask nm)
 
NodeMask getNodeMask () const
 
void setStateSet (osg::StateSet *stateset)
 
osg::StateSetgetOrCreateStateSet ()
 
osg::StateSetgetStateSet ()
 
const osg::StateSetgetStateSet () const
 
void setDescriptions (const DescriptionList &descriptions)
 
DescriptionListgetDescriptions ()
 
const DescriptionListgetDescriptions () const
 
const std::string & getDescription (unsigned int i) const
 
std::string & getDescription (unsigned int i)
 
unsigned int getNumDescriptions () const
 
void addDescription (const std::string &desc)
 
void setInitialBound (const osg::BoundingSphere &bsphere)
 
const BoundingSpheregetInitialBound () const
 
void dirtyBound ()
 
const BoundingSpheregetBound () const
 
void setComputeBoundingSphereCallback (ComputeBoundingSphereCallback *callback)
 
ComputeBoundingSphereCallbackgetComputeBoundingSphereCallback ()
 
const
ComputeBoundingSphereCallback
getComputeBoundingSphereCallback () const
 
- Public Member Functions inherited from osg::Object
 Object ()
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
virtual void setName (const std::string &name)
 
void setName (const char *name)
 
const std::string & getName () const
 
void setDataVariance (DataVariance dv)
 
DataVariance getDataVariance () const
 
virtual void computeDataVariance ()
 
void setUserDataContainer (osg::UserDataContainer *udc)
 
osg::UserDataContainergetUserDataContainer ()
 
const osg::UserDataContainergetUserDataContainer () const
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
virtual ReferencedgetUserData ()
 
virtual const ReferencedgetUserData () const
 
template<typename T >
bool getUserValue (const std::string &name, T &value) const
 
template<typename T >
void setUserValue (const std::string &name, const T &value)
 
template<typename T >
BoolValueObject
UCharValueObject
UShortValueObject
UIntValueObject
DoubleValueObject
Vec3fValueObject
Vec2dValueObject
Vec4dValueObject
PlaneValueObject
MatrixdValueObject bool 
getUserValue (const std::string &name, T &value) const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Protected Member Functions

virtual ~DOFTransform ()
 
- Protected Member Functions inherited from osg::Transform
virtual ~Transform ()
 
- Protected Member Functions inherited from osg::Group
virtual ~Group ()
 
virtual void childRemoved (unsigned int, unsigned int)
 
virtual void childInserted (unsigned int)
 
- Protected Member Functions inherited from osg::Node
virtual ~Node ()
 
void addParent (osg::Group *node)
 
void removeParent (osg::Group *node)
 
void setNumChildrenRequiringUpdateTraversal (unsigned int num)
 
void setNumChildrenRequiringEventTraversal (unsigned int num)
 
void setNumChildrenWithCullingDisabled (unsigned int num)
 
void setNumChildrenWithOccluderNodes (unsigned int num)
 
- Protected Member Functions inherited from osg::Object
virtual ~Object ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

unsigned int _previousTraversalNumber
 
double _previousTime
 
osg::Vec3 _minHPR
 
osg::Vec3 _maxHPR
 
osg::Vec3 _currentHPR
 
osg::Vec3 _incrementHPR
 
osg::Vec3 _minTranslate
 
osg::Vec3 _maxTranslate
 
osg::Vec3 _currentTranslate
 
osg::Vec3 _incrementTranslate
 
osg::Vec3 _minScale
 
osg::Vec3 _maxScale
 
osg::Vec3 _currentScale
 
osg::Vec3 _incrementScale
 
osg::Matrix _Put
 
osg::Matrix _inversePut
 
unsigned long _limitationFlags
 
bool _animationOn
 
unsigned short _increasingFlags
 
MultOrder _multOrder
 
- Protected Attributes inherited from osg::Transform
ReferenceFrame _referenceFrame
 
- Protected Attributes inherited from osg::Group
NodeList _children
 
- Protected Attributes inherited from osg::Node
BoundingSphere _initialBound
 
ref_ptr
< ComputeBoundingSphereCallback
_computeBoundCallback
 
BoundingSphere _boundingSphere
 
bool _boundingSphereComputed
 
ParentList _parents
 
ref_ptr< NodeCallback_updateCallback
 
unsigned int _numChildrenRequiringUpdateTraversal
 
ref_ptr< NodeCallback_eventCallback
 
unsigned int _numChildrenRequiringEventTraversal
 
ref_ptr< NodeCallback_cullCallback
 
bool _cullingActive
 
unsigned int _numChildrenWithCullingDisabled
 
unsigned int _numChildrenWithOccluderNodes
 
NodeMask _nodeMask
 
ref_ptr< StateSet_stateset
 
- Protected Attributes inherited from osg::Object
std::string _name
 
DataVariance _dataVariance
 
osg::UserDataContainer_userDataContainer
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 

Detailed Description

DOFTransform - encapsulates Multigen DOF behavior

Member Enumeration Documentation

Enumerator
PRH 
PHR 
HPR 
HRP 
RPH 
RHP 

Constructor & Destructor Documentation

osgSim::DOFTransform::DOFTransform ( )

constructor

osgSim::DOFTransform::DOFTransform ( const DOFTransform dof,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)

copy constructor

virtual osgSim::DOFTransform::~DOFTransform ( )
inlineprotectedvirtual

Member Function Documentation

void osgSim::DOFTransform::animate ( float  deltaTime)
virtual bool osgSim::DOFTransform::computeLocalToWorldMatrix ( osg::Matrix matrix,
osg::NodeVisitor nv 
) const
virtual

Reimplemented from osg::Transform.

virtual bool osgSim::DOFTransform::computeWorldToLocalMatrix ( osg::Matrix matrix,
osg::NodeVisitor nv 
) const
virtual

Reimplemented from osg::Transform.

bool osgSim::DOFTransform::getAnimationOn ( ) const
inline
const osg::Vec3& osgSim::DOFTransform::getCurrentHPR ( ) const
inline
const osg::Vec3& osgSim::DOFTransform::getCurrentScale ( ) const
inline
const osg::Vec3& osgSim::DOFTransform::getCurrentTranslate ( ) const
inline
MultOrder osgSim::DOFTransform::getHPRMultOrder ( ) const
inline
const osg::Vec3& osgSim::DOFTransform::getIncrementHPR ( ) const
inline
const osg::Vec3& osgSim::DOFTransform::getIncrementScale ( ) const
inline
const osg::Vec3& osgSim::DOFTransform::getIncrementTranslate ( ) const
inline
const osg::Matrix& osgSim::DOFTransform::getInversePutMatrix ( ) const
inline
unsigned long osgSim::DOFTransform::getLimitationFlags ( ) const
inline
const osg::Vec3& osgSim::DOFTransform::getMaxHPR ( ) const
inline
const osg::Vec3& osgSim::DOFTransform::getMaxScale ( ) const
inline
const osg::Vec3& osgSim::DOFTransform::getMaxTranslate ( ) const
inline
const osg::Vec3& osgSim::DOFTransform::getMinHPR ( ) const
inline
const osg::Vec3& osgSim::DOFTransform::getMinScale ( ) const
inline
const osg::Vec3& osgSim::DOFTransform::getMinTranslate ( ) const
inline
const osg::Matrix& osgSim::DOFTransform::getPutMatrix ( ) const
inline
osgSim::DOFTransform::META_Node ( osgSim  ,
DOFTransform   
)
void osgSim::DOFTransform::setAnimationOn ( bool  do_animate)
void osgSim::DOFTransform::setCurrentHPR ( const osg::Vec3 hpr)
inline
void osgSim::DOFTransform::setCurrentScale ( const osg::Vec3 scale)
inline
void osgSim::DOFTransform::setCurrentTranslate ( const osg::Vec3 translate)
inline
void osgSim::DOFTransform::setHPRMultOrder ( MultOrder  order)
inline
void osgSim::DOFTransform::setIncrementHPR ( const osg::Vec3 hpr)
inline
void osgSim::DOFTransform::setIncrementScale ( const osg::Vec3 scale)
inline
void osgSim::DOFTransform::setIncrementTranslate ( const osg::Vec3 translate)
inline
void osgSim::DOFTransform::setInversePutMatrix ( const osg::Matrix inversePut)
inline
void osgSim::DOFTransform::setLimitationFlags ( unsigned long  flags)
inline
void osgSim::DOFTransform::setMaxHPR ( const osg::Vec3 hpr)
inline
void osgSim::DOFTransform::setMaxScale ( const osg::Vec3 scale)
inline
void osgSim::DOFTransform::setMaxTranslate ( const osg::Vec3 translate)
inline
void osgSim::DOFTransform::setMinHPR ( const osg::Vec3 hpr)
inline
void osgSim::DOFTransform::setMinScale ( const osg::Vec3 scale)
inline
void osgSim::DOFTransform::setMinTranslate ( const osg::Vec3 translate)
inline
void osgSim::DOFTransform::setPutMatrix ( const osg::Matrix put)
inline
virtual void osgSim::DOFTransform::traverse ( osg::NodeVisitor )
virtual

Traverse downwards : calls children's accept method with NodeVisitor.

Reimplemented from osg::Group.

void osgSim::DOFTransform::updateCurrentHPR ( const osg::Vec3 hpr)
void osgSim::DOFTransform::updateCurrentScale ( const osg::Vec3 scale)
void osgSim::DOFTransform::updateCurrentTranslate ( const osg::Vec3 translate)

Member Data Documentation

bool osgSim::DOFTransform::_animationOn
protected
osg::Vec3 osgSim::DOFTransform::_currentHPR
protected
osg::Vec3 osgSim::DOFTransform::_currentScale
protected
osg::Vec3 osgSim::DOFTransform::_currentTranslate
protected
unsigned short osgSim::DOFTransform::_increasingFlags
protected

flags indicating whether value is incerasing or decreasing in animation bits form right to left, 1 means increasing while 0 is decreasing 0 = x translation 1 = y translation 2 = z translation 3 = pitch 4 = roll 5 = yaw 6 = x scale 7 = y scale 8 = z scale

osg::Vec3 osgSim::DOFTransform::_incrementHPR
protected
osg::Vec3 osgSim::DOFTransform::_incrementScale
protected
osg::Vec3 osgSim::DOFTransform::_incrementTranslate
protected
osg::Matrix osgSim::DOFTransform::_inversePut
protected
unsigned long osgSim::DOFTransform::_limitationFlags
protected
osg::Vec3 osgSim::DOFTransform::_maxHPR
protected
osg::Vec3 osgSim::DOFTransform::_maxScale
protected
osg::Vec3 osgSim::DOFTransform::_maxTranslate
protected
osg::Vec3 osgSim::DOFTransform::_minHPR
protected
osg::Vec3 osgSim::DOFTransform::_minScale
protected
osg::Vec3 osgSim::DOFTransform::_minTranslate
protected
MultOrder osgSim::DOFTransform::_multOrder
protected
double osgSim::DOFTransform::_previousTime
protected
unsigned int osgSim::DOFTransform::_previousTraversalNumber
protected
osg::Matrix osgSim::DOFTransform::_Put
protected

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