![]() |
VR-Forces Developer's Guide
|
A model of an animation (osg::Sequence in this case)

Public Member Functions | |
| DtOsgAnimationModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOsgAnimationModel () |
| virtual const std::string & | className () const |
| virtual void | setModelDefinition (const std::string &str) override |
| virtual const std::string & | modelDefinition () |
| virtual void | setDuration (double seconds) |
| virtual void | setOrientation (int vtx, const DtTaitBryan &ori) |
| virtual void | setPosition (int vtx, const DtVector &pos) |
| virtual void | stop () |
| virtual void | start () |
| virtual void | pause () |
| virtual void | resume () |
| virtual void | setLoopMode (bool loopOn) |
| virtual void | setReverseAnimation (bool reverse) |
| virtual void | setVisible (bool isVisible) |
| virtual void | setIsSupportModel (bool isSupport) |
| virtual void | backgroundLoad (DtBackgroundLoadContext &context) override |
| virtual void | foregroundLoad () override |
Public Member Functions inherited from makVrv::DtAnimationModel | |
| DtAnimationModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtAnimationModel () |
| virtual bool | supportsMultithreadedLoad () |
Public Member Functions inherited from makVrv::DtModel | |
| DtModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtModel () |
| virtual DtModelInstance * | createModelInstance (const std::string &modelDefName, bool realize) |
| virtual DtModelInstance * | createModelInstance (const DtModelDefinition &definition, bool realize) |
| virtual const std::string & | modelDefinitionName () |
| virtual void | saveModelToFile (const std::string &filename) |
| virtual DtUniqueID | uniqueId () const |
| unsigned int | transformSize () const |
| virtual const DtVector & | position (int vtx=0) const |
| virtual void | removePosition (int vtx) |
| virtual void | setPositionOffset (const DtVector &positionOffset) |
| virtual const DtVector & | positionOffset () const |
| virtual void | setPositionAndOrientation (int vtx, const DtVector &positionOffset, const DtTaitBryan &orientation) |
| virtual const DtTaitBryan & | orientation (int vtx=0) const |
| virtual void | setOrientationOffset (const DtTaitBryan &orientationOffset) |
| virtual const DtTaitBryan & | orientationOffset () const |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | getBlendColor (float &r, float &g, float &b, float &a) |
| virtual bool | colorBlendingEnabled () const |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | enableLighting (bool l) |
| virtual DtModelSetId | modelSet () const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| virtual void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| virtual void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
| DtDe & | de () |
| virtual void | setModelInstance (DtModelInstance *modelInstance) |
| virtual void | promoteBackgroundModelInstance (const DtModelDefinition &defintion) |
| virtual bool | visible () const |
| virtual void | setSensorMask (unsigned int sensorMask) |
| virtual unsigned int | getSensorMask () const |
| DtUniqueID | sceneObjectId () const |
| virtual void | addedToSceneObjectAsProp (const DtUniqueID &sceneObj) |
| virtual void | addedToSceneObject (const DtUniqueID &sceneObj, DtModelSetId modelSet, int visualizerType) |
| virtual void | setElementId (DtElementID id) |
| virtual void | removedFromSceneObject () |
| virtual void | setSolid (bool isSolid) |
| virtual bool | isProp () |
| virtual void | updateMinLastFrameDistance (float distance) |
| virtual void | resetLastFrameDistance () |
| virtual float | minLastFrameDistance () const |
| virtual DtModelInstance * | modelInstance () |
| virtual const DtModelInstance * | modelInstance () const |
| int | visualizerType () const |
| virtual bool | isActivelyBackgroundLoading () |
| virtual DtLoaderHandle * | getLoadQueueHandle () |
Protected Member Functions | |
| virtual void | addToScene (const DtUniqueID &id, DtModelSetId modelSet, int visualizerType) |
| virtual void | removeFromScene () |
| osg::Node * | loadNode (const std::string &filenameParam, const std::string &resourcePathList) |
Protected Member Functions inherited from makVrv::DtModel | |
| virtual void | addToSceneAsProp (const DtUniqueID &sceneObjectId) |
| virtual void | initializeModelInstance () |
| void | slot_modelInstanceChanged (DtModelInstance *instance) |
| virtual void | waitAndClearLoadHandle () |
| virtual void | removedFromLoadQueue () |
| virtual void | setDoneBackgroundLoading () |
| virtual void | setActivelyBackgroundLoading () |
Protected Attributes | |
| DtOsgSceneConnector * | mySceneConnector |
| double | myDuration |
Protected Attributes inherited from makVrv::DtModel | |
| DtLoaderHandle * | myInLoadQueueHandle |
| DtDe & | myDe |
| const DtUniqueID | myUniqueId |
| DtUniqueID | myElementId |
| DtUniqueID | myParentSceneObjectID |
| DtModelInstance * | myBackgroundModelInstance |
| TransformList | myTransforms |
| DtModelInstance * | myModelInstance |
| DtModelSetId | myModelSet |
| int | myVisualizerType |
| bool | myContributesToBound |
| bool | myIsPropFlag |
| bool | myColorBlendingEnabled |
| bool | myVisibleFlag |
| float | myBlendColor [4] |
| unsigned int | mySensorMask |
| DtVector | myPositionOffset |
| DtTaitBryan | myOrientationOffset |
| std::string | myModelDefinitionName |
| float | myMinLastFrameDistance |
| bool | myRequireModelInstance |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtModel | |
| boost::signalslib::signal < void(DtModel *)> | signal_modelToBeDestroyed |
| boost::signalslib::signal < void(DtModel *)> | signal_modelChanged |
| boost::signalslib::signal < bool(DtModel *, bool), SlotReturnOR > | signal_visibilityChangeRequested |
| boost::signalslib::signal < void(DtModelInstance *, DtModel *)> | signal_modelInstanceCreated |
| boost::signalslib::signal < void(DtModelInstance *, DtModel *)> | signal_modelInstanceToBeDestroyed |
Protected Types inherited from makVrv::DtModel | |
| typedef std::vector < ObjectTransform > | TransformList |
Static Protected Attributes inherited from makVrv::DtModel | |
| static bool | theInittedState |
| makVrv::DtOsgAnimationModel::DtOsgAnimationModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Get the class name of the model instance owner. This is used to control how model instances are created.
Implements makVrv::DtAnimationModel.
|
overridevirtual |
Set the model definition.
Reimplemented from makVrv::DtModel.
|
inlinevirtual |
|
virtual |
Set the duration of the effect.
Implements makVrv::DtAnimationModel.
|
virtual |
Set the orientation of the model.
Reimplemented from makVrv::DtModel.
|
virtual |
Set the position of the model.
Reimplemented from makVrv::DtModel.
|
virtual |
Stop playing the animation.
Implements makVrv::DtAnimationModel.
|
virtual |
Start playing the animation.
Implements makVrv::DtAnimationModel.
|
virtual |
Freeze the animation.
Implements makVrv::DtAnimationModel.
|
virtual |
Resume the animation.
Implements makVrv::DtAnimationModel.
|
virtual |
Set whether the animation loops after it's done.
Implements makVrv::DtAnimationModel.
|
virtual |
Set whether the animation should play in reverse or not.
Implements makVrv::DtAnimationModel.
|
virtual |
Override to call setVisible on the scene connector.
Reimplemented from makVrv::DtModel.
|
virtual |
Set whether the model is part of the support group (whether or not other scene objects can ground clamp to this model)
Implements makVrv::DtModel.
|
overridevirtual |
multi-threaded loading functions
The chunk of loading that can safely happen in the background. The context provides the DtModelDefinition lease and modelLoadingMutex, both of which are set up by the caller (DtBackgroundLoadAsyncTask or DtBackgroundLoader::timedForegroundLoad) before this is called.
Reimplemented from makVrv::DtModel.
|
overridevirtual |
the chunk of loading that must happen happen in the foreground, adding to scene graph etc.
Reimplemented from makVrv::DtModel.
|
protectedvirtual |
Add the animation to the scene, as part of the scene object with the specified unique ID.
Implements makVrv::DtModel.
|
protectedvirtual |
Remove the animation from the scene.
Implements makVrv::DtModel.
|
protected |
Try to load a filename as a node.
|
protected |
|
protected |