![]() |
VR-Forces 4.3.1 Class Documentation
|

Public Member Functions | |
| DtScriptAnimationModel (const DtScriptVrfObject *vrfObject) | |
| DtScriptAnimationModel (const DtScriptAnimationModel &orig) | |
| DtScriptAnimationModel & | operator= (const DtScriptAnimationModel &orig) |
| ~DtScriptAnimationModel () | |
| bool | operator== (const DtScriptAnimationModel &orig) |
| virtual const DtAnimationModel & | animationModel () const |
| Script API functions above. | |
| virtual DtString | serialize () |
| Inherited from DtAsciiSerializable. Returns a string serialized version of this class. | |
| bool | deserialize (const DtString &data) |
| Inherited from DtAsciiSerializable. | |
| virtual DtString | objectType () const |
| Should return the string name of this object. | |
| DtVrfObject * | vrfObject () const |
| Returns the vrf object referenced by mySharedObject. | |
| virtual void | reset () |
| Resets state of the animation model. | |
| virtual void | setAnimationModelFile (const std::string &) |
| Script API functions. | |
| virtual const std::string & | animationModelFile () const |
| Script API functions. | |
| virtual void | setTimeScale (double) |
| Sets the time scale of the animation model. Default is 1. | |
| virtual double | timeScale () const |
| Script API functions. | |
| virtual void | setFrameTime (double) |
| Sets the time for each frame to be the specified time, regardless of what the file says. | |
| virtual double | frameTime () const |
| Script API functions. | |
| virtual int | numAnimationFrames () const |
| Returns the number of animation frames. | |
| virtual void | setClampType (int) |
| Sets how to clamp the entity. See scriptedMovementObject.h. | |
| virtual int | clampType () const |
| Script API functions. | |
| virtual void | setCompletionRule (int) |
| Sets what to do with the entity after movement is complete. See scriptedMovementObject.h. | |
| virtual int | completionRule () const |
| Script API functions. | |
| virtual void | init (void *userData) |
| Save as sim manager. | |
| virtual void | setTimeDeltaFromPreviousRow (int forRow, double timeDelta) |
| Sets the time delta for the current row from the previous row. Does not effect any other row. | |
| virtual void | setTransitionSpeed (double) |
| Sets the speed to use to transition into this animation. | |
| virtual double | transitionSpeed () const |
| Returns current transitionspeed. | |
| virtual void | setAnimationFrame (int) |
| Sets the frame to animate from. | |
| virtual int | animationFrame () const |
| The animation frame currently on. | |
| virtual double | elapsedAnimationTime () const |
| Returns the amount of animation time elapsed. | |
| virtual bool | isFinished () const |
| Returns true if the animation is finished. | |
| virtual int | addAnimationRow (double deltaTime, double lateral, double range, double altitude, double headingOffset=0, double pitchOffset=0, double rollOffset=0) |
| Adds a new data row into the system. | |
| virtual double | speed (int) const |
| Returns the current speed (meters/second) at the given frame. | |
| virtual DtLocation3D | location (int) const |
| Returns the location at the given frame. | |
| virtual void | orientation (int frame, double &heading, double &pitch, double &roll) const |
| Returns topographic heading, pitch and roll. | |
| virtual DtVector3D | rotationalVelocity (int) const |
| Returns rotational velocity at given frame. | |
| virtual DtVector3D | acceleration (int) const |
| Returns acceleration (local) at given frame. | |
| virtual DtVector3D | velocity (int) const |
| Returns velocity (local) at given frame. | |
Public Member Functions inherited from DtAsciiSerializable | |
| DtAsciiSerializable () | |
| The implementer of this interface should be sure to create a creator function to create an empty object that returns a pointer to this interface. | |
| DtAsciiSerializable (const DtAsciiSerializable &orig) | |
| virtual | ~DtAsciiSerializable () |
| virtual std::string | objectTypeC () const |
| Returns a std::string version of the objectType. | |
Static Public Member Functions | |
| static DtAsciiSerializable * | creator () |
| Inherited from DtAsciiSerializable. Returns a new object of this type with default values. | |
Static Public Member Functions inherited from DtObjectDebugger< DtScriptAnimationModel > | |
| static DtObjectCounter::CounterType | ObjectCount () |
| static const DtObjectContainer * | ObjectContainer () |
Protected Attributes | |
| DtSimManager * | mySimManager |
| boost::shared_ptr < DtScriptVrfObject > | mySharedObject |
| DtAnimationModel | myAnimationModel |
| std::string | myAnimationModelFile |
Additional Inherited Members | |
Protected Member Functions inherited from DtObjectDebugger< DtAsciiSerializable > | |
| DtObjectDebugger () | |
| DtObjectDebugger (const DtObjectDebugger &) | |
| ~DtObjectDebugger () | |
Protected Member Functions inherited from DtObjectDebugger< DtScriptAnimationModel > | |
| DtObjectDebugger () | |
| DtObjectDebugger (const DtObjectDebugger &) | |
| ~DtObjectDebugger () | |
| DtScriptAnimationModel::DtScriptAnimationModel | ( | const DtScriptVrfObject * | vrfObject | ) |
| DtScriptAnimationModel::DtScriptAnimationModel | ( | const DtScriptAnimationModel & | orig | ) |
| DtScriptAnimationModel::~DtScriptAnimationModel | ( | ) |
| DtScriptAnimationModel& DtScriptAnimationModel::operator= | ( | const DtScriptAnimationModel & | orig | ) |
| bool DtScriptAnimationModel::operator== | ( | const DtScriptAnimationModel & | orig | ) |
|
virtual |
Script API functions.
////////////////////////////////////Sets the animated movement object to use as the model. Needs to be already loaded into the simulation
|
virtual |
Script API functions.
////////////////////////////////////Sets the animated movement object to use as the model. Needs to be already loaded into the simulation
|
virtual |
Sets the time scale of the animation model. Default is 1.
|
virtual |
Script API functions.
////////////////////////////////////Sets the animated movement object to use as the model. Needs to be already loaded into the simulation
|
virtual |
Sets the time for each frame to be the specified time, regardless of what the file says.
To reset back to original time scale set to 0
|
virtual |
Script API functions.
////////////////////////////////////Sets the animated movement object to use as the model. Needs to be already loaded into the simulation
|
virtual |
Returns the number of animation frames.
|
virtual |
Sets how to clamp the entity. See scriptedMovementObject.h.
|
virtual |
Script API functions.
////////////////////////////////////Sets the animated movement object to use as the model. Needs to be already loaded into the simulation
|
virtual |
Sets what to do with the entity after movement is complete. See scriptedMovementObject.h.
|
virtual |
Script API functions.
////////////////////////////////////Sets the animated movement object to use as the model. Needs to be already loaded into the simulation
|
virtual |
Save as sim manager.
Reimplemented from DtAsciiSerializable.
|
virtual |
Sets the time delta for the current row from the previous row. Does not effect any other row.
|
virtual |
Sets the speed to use to transition into this animation.
Will skip over frames until the desired speed is met, speeding up the animation to get to that point. Speed is in meters/second and is only used if the calculation animation frame is 0
|
virtual |
Returns current transitionspeed.
|
virtual |
Sets the frame to animate from.
|
virtual |
The animation frame currently on.
|
virtual |
Returns the amount of animation time elapsed.
|
virtual |
Returns true if the animation is finished.
|
virtual |
Adds a new data row into the system.
The offsets are lateral distance, range and altitude distance from the entities starting position. The orientation is heading, pitch, roll from the starting orientation. If no time is given the current frame time is used or the last two frames (if they exist) difference will be used as the delta for the new frame. The row number of the newly added row is returned
|
virtual |
Returns the current speed (meters/second) at the given frame.
|
virtual |
Returns the location at the given frame.
|
virtual |
Returns topographic heading, pitch and roll.
|
virtual |
Returns rotational velocity at given frame.
|
virtual |
Returns acceleration (local) at given frame.
|
virtual |
Returns velocity (local) at given frame.
|
virtual |
Script API functions above.
//////////////////////////////////// Returns the animation model for this class
|
virtual |
Inherited from DtAsciiSerializable. Returns a string serialized version of this class.
Implements DtAsciiSerializable.
Inherited from DtAsciiSerializable.
Returns true if it could fill its members with the data contained in the string. False otherwise.
Implements DtAsciiSerializable.
|
virtual |
Should return the string name of this object.
The object name should not be part of the serialization unless you want it to be, but you should take it into account when implementing both functions.
Implements DtAsciiSerializable.
|
static |
Inherited from DtAsciiSerializable. Returns a new object of this type with default values.
| DtVrfObject* DtScriptAnimationModel::vrfObject | ( | ) | const |
Returns the vrf object referenced by mySharedObject.
|
virtual |
Resets state of the animation model.
|
protected |
|
protected |
|
protected |
|
protected |