![]() |
VR-Forces 4.10 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. More... | |
| virtual DtString | serialize () |
| Inherited from DtAsciiSerializable. Returns a string serialized version of this class. More... | |
| bool | deserialize (const DtString &data) |
| Inherited from DtAsciiSerializable. More... | |
| virtual DtString | objectType () const |
| Should return the string name of this object. More... | |
| const DtVrfObject * | vrfObject () const |
| Returns the vrf object referenced by mySharedObject. More... | |
| virtual void | reset () |
| Resets state of the animation model. More... | |
| virtual void | setAnimationModelFile (const std::string &) |
| Script API functions. More... | |
| virtual const std::string & | animationModelFile () const |
| virtual void | setTimeScale (double) |
| Sets the time scale of the animation model. Default is 1. More... | |
| virtual double | timeScale () const |
| virtual void | setFrameTime (double) |
| Sets the time for each frame to be the specified time, regardless of what the file says. More... | |
| virtual double | frameTime () const |
| virtual int | numAnimationFrames () const |
| Returns the number of animation frames. More... | |
| virtual void | setClampType (int) |
| Sets how to clamp the entity. See scriptedMovementObject.h. More... | |
| virtual int | clampType () const |
| virtual void | setCompletionRule (int) |
| Sets what to do with the entity after movement is complete. See scriptedMovementObject.h. More... | |
| virtual int | completionRule () const |
| virtual void | init (void *userData) |
| Save as sim manager. More... | |
| 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. More... | |
| virtual void | setTransitionSpeed (double) |
| Sets the speed to use to transition into this animation. More... | |
| virtual double | transitionSpeed () const |
| Returns current transitionspeed. More... | |
| virtual void | setAnimationFrame (int) |
| Sets the frame to animate from. More... | |
| virtual int | animationFrame () const |
| The animation frame currently on. More... | |
| virtual double | elapsedAnimationTime () const |
| Returns the amount of animation time elapsed. More... | |
| virtual bool | isFinished () const |
| Returns true if the animation is finished. More... | |
| 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. More... | |
| virtual double | speed (int) const |
| Returns the current speed (meters/second) at the given frame. More... | |
| virtual DtLocation3D | location (int) const |
| Returns the location at the given frame. More... | |
| virtual void | orientation (int frame, double &heading, double &pitch, double &roll) const |
| Returns topographic heading, pitch and roll. More... | |
| virtual DtVector3D | rotationalVelocity (int) const |
| Returns rotational velocity at given frame. More... | |
| virtual DtVector3D | acceleration (int) const |
| Returns acceleration (local) at given frame. More... | |
| virtual DtVector3D | velocity (int) const |
| Returns velocity (local) at given frame. More... | |
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. More... | |
| DtAsciiSerializable (const DtAsciiSerializable &orig) | |
| virtual | ~DtAsciiSerializable () |
| virtual std::string | objectTypeC () const |
| Returns a std::string version of the objectType. More... | |
Static Public Member Functions | |
| static DtAsciiSerializable * | creator () |
| Inherited from DtAsciiSerializable. Returns a new object of this type with default values. More... | |
Protected Attributes | |
| DtSimManager * | mySimManager |
| boost::shared_ptr < DtScriptVrfObject > | mySharedObject |
| DtAnimationModel | myAnimationModel |
| std::string | myAnimationModelFile |
| 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 |
|
virtual |
Sets the time scale of the animation model. Default is 1.
|
virtual |
|
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 |
|
virtual |
Returns the number of animation frames.
|
virtual |
Sets how to clamp the entity. See scriptedMovementObject.h.
|
virtual |
|
virtual |
Sets what to do with the entity after movement is complete. See scriptedMovementObject.h.
|
virtual |
|
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
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.
| const DtVrfObject* DtScriptAnimationModel::vrfObject | ( | ) | const |
Returns the vrf object referenced by mySharedObject.
|
virtual |
Resets state of the animation model.
|
protected |
|
protected |
|
protected |
|
protected |