VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtOsgAnimationModel Class Reference

A model of an animation (osg::Sequence in this case) More...

Inheritance diagram for makVrv::DtOsgAnimationModel:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtOsgAnimationModel (DtDe &de, DtUniqueID id)
 CTOR.
virtual ~DtOsgAnimationModel ()
 DTOR.
virtual std::string className () const
 Get the class name of the model instance owner.
virtual void setDuration (double seconds)
 Set the duration of the effect.
virtual void setOrientation (int vtx, const DtTaitBryan &ori)
 Set the orientation of the model.
virtual void setPosition (int vtx, const DtVector &pos)
 Set the position of the model.
virtual void stop ()
 Stop playing the animation.
virtual void start ()
 Start playing the animation.
virtual void pause ()
 Freeze the animation.
virtual void resume ()
 Resume the animation.
virtual void setLoopMode (bool loopOn)
 Set whether the animation loops after it's done.
virtual void setReverseAnimation (bool reverse)
 Set whether the animation should play in reverse or not.
virtual void setVisible (bool isVisible)
 Override to call setVisible on the scene connector.
virtual void setSolid (bool solid)
 Set the geometry to be solid.

Protected Member Functions

virtual void addToScene (const DtUniqueID &id, int modelSet, int visualizerType)
 Add the animation to the scene, as part of the scene object with the specified unique ID.
virtual void removeFromScene ()
 Remove the animation from the scene.

Protected Attributes

DtOsgSceneConnectormySceneConnector
double myDuration

Detailed Description

A model of an animation (osg::Sequence in this case)


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual std::string makVrv::DtOsgAnimationModel::className ( ) const [virtual]

Get the class name of the model instance owner.

This is used to control how model instances are created.

Implements makVrv::DtAnimationModel.

virtual void makVrv::DtOsgAnimationModel::setDuration ( double  seconds) [virtual]

Set the duration of the effect.

Implements makVrv::DtAnimationModel.

virtual void makVrv::DtOsgAnimationModel::setOrientation ( int  vtx,
const DtTaitBryan &  ori 
) [virtual]

Set the orientation of the model.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgAnimationModel::setPosition ( int  vtx,
const DtVector pos 
) [virtual]

Set the position of the model.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgAnimationModel::stop ( ) [virtual]

Stop playing the animation.

Implements makVrv::DtAnimationModel.

virtual void makVrv::DtOsgAnimationModel::start ( ) [virtual]

Start playing the animation.

Implements makVrv::DtAnimationModel.

virtual void makVrv::DtOsgAnimationModel::pause ( ) [virtual]

Freeze the animation.

Implements makVrv::DtAnimationModel.

virtual void makVrv::DtOsgAnimationModel::resume ( ) [virtual]

Resume the animation.

Implements makVrv::DtAnimationModel.

virtual void makVrv::DtOsgAnimationModel::setLoopMode ( bool  loopOn) [virtual]

Set whether the animation loops after it's done.

Implements makVrv::DtAnimationModel.

virtual void makVrv::DtOsgAnimationModel::setReverseAnimation ( bool  reverse) [virtual]

Set whether the animation should play in reverse or not.

Implements makVrv::DtAnimationModel.

virtual void makVrv::DtOsgAnimationModel::setVisible ( bool  isVisible) [virtual]

Override to call setVisible on the scene connector.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgAnimationModel::setSolid ( bool  solid) [virtual]

Set the geometry to be solid.

Implements makVrv::DtModel.

virtual void makVrv::DtOsgAnimationModel::addToScene ( const DtUniqueID id,
int  modelSet,
int  visualizerType 
) [protected, virtual]

Add the animation to the scene, as part of the scene object with the specified unique ID.

Implements makVrv::DtModel.

virtual void makVrv::DtOsgAnimationModel::removeFromScene ( ) [protected, virtual]

Remove the animation from the scene.

Implements makVrv::DtModel.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)