VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
DtScriptAnimationModel Class Reference
Inheritance diagram for DtScriptAnimationModel:
Inheritance graph
[legend]

Public Member Functions

 DtScriptAnimationModel (const DtScriptVrfObject *vrfObject)
 DtScriptAnimationModel (const DtScriptAnimationModel &orig)
DtScriptAnimationModeloperator= (const DtScriptAnimationModel &orig)
 ~DtScriptAnimationModel ()
bool operator== (const DtScriptAnimationModel &orig)
virtual const DtAnimationModelanimationModel () 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.
DtVrfObjectvrfObject () 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 DtAsciiSerializablecreator ()
 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

DtSimManagermySimManager
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 ()

Constructor & Destructor Documentation

DtScriptAnimationModel::DtScriptAnimationModel ( const DtScriptVrfObject vrfObject)
DtScriptAnimationModel::DtScriptAnimationModel ( const DtScriptAnimationModel orig)
DtScriptAnimationModel::~DtScriptAnimationModel ( )

Member Function Documentation

DtScriptAnimationModel& DtScriptAnimationModel::operator= ( const DtScriptAnimationModel orig)
bool DtScriptAnimationModel::operator== ( const DtScriptAnimationModel orig)
virtual void DtScriptAnimationModel::setAnimationModelFile ( const std::string &  )
virtual

Script API functions.

////////////////////////////////////! Sets the animated movement object to use as the model. Needs to be already loaded into the simulation

virtual const std::string& DtScriptAnimationModel::animationModelFile ( ) const
virtual

Script API functions.

////////////////////////////////////! Sets the animated movement object to use as the model. Needs to be already loaded into the simulation

virtual void DtScriptAnimationModel::setTimeScale ( double  )
virtual

Sets the time scale of the animation model. Default is 1.

virtual double DtScriptAnimationModel::timeScale ( ) const
virtual

Script API functions.

////////////////////////////////////! Sets the animated movement object to use as the model. Needs to be already loaded into the simulation

virtual void DtScriptAnimationModel::setFrameTime ( double  )
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 double DtScriptAnimationModel::frameTime ( ) const
virtual

Script API functions.

////////////////////////////////////! Sets the animated movement object to use as the model. Needs to be already loaded into the simulation

virtual int DtScriptAnimationModel::numAnimationFrames ( ) const
virtual

Returns the number of animation frames.

virtual void DtScriptAnimationModel::setClampType ( int  )
virtual

Sets how to clamp the entity. See scriptedMovementObject.h.

virtual int DtScriptAnimationModel::clampType ( ) const
virtual

Script API functions.

////////////////////////////////////! Sets the animated movement object to use as the model. Needs to be already loaded into the simulation

virtual void DtScriptAnimationModel::setCompletionRule ( int  )
virtual

Sets what to do with the entity after movement is complete. See scriptedMovementObject.h.

virtual int DtScriptAnimationModel::completionRule ( ) const
virtual

Script API functions.

////////////////////////////////////! Sets the animated movement object to use as the model. Needs to be already loaded into the simulation

virtual void DtScriptAnimationModel::init ( void *  userData)
virtual

Save as sim manager.

Reimplemented from DtAsciiSerializable.

virtual void DtScriptAnimationModel::setTimeDeltaFromPreviousRow ( int  forRow,
double  timeDelta 
)
virtual

Sets the time delta for the current row from the previous row. Does not effect any other row.

virtual void DtScriptAnimationModel::setTransitionSpeed ( double  )
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 double DtScriptAnimationModel::transitionSpeed ( ) const
virtual

Returns current transitionspeed.

virtual void DtScriptAnimationModel::setAnimationFrame ( int  )
virtual

Sets the frame to animate from.

virtual int DtScriptAnimationModel::animationFrame ( ) const
virtual

The animation frame currently on.

virtual double DtScriptAnimationModel::elapsedAnimationTime ( ) const
virtual

Returns the amount of animation time elapsed.

virtual bool DtScriptAnimationModel::isFinished ( ) const
virtual

Returns true if the animation is finished.

virtual int DtScriptAnimationModel::addAnimationRow ( double  deltaTime,
double  lateral,
double  range,
double  altitude,
double  headingOffset = 0,
double  pitchOffset = 0,
double  rollOffset = 0 
)
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 double DtScriptAnimationModel::speed ( int  ) const
virtual

Returns the current speed (meters/second) at the given frame.

virtual DtLocation3D DtScriptAnimationModel::location ( int  ) const
virtual

Returns the location at the given frame.

virtual void DtScriptAnimationModel::orientation ( int  frame,
double &  heading,
double &  pitch,
double &  roll 
) const
virtual

Returns topographic heading, pitch and roll.

virtual DtVector3D DtScriptAnimationModel::rotationalVelocity ( int  ) const
virtual

Returns rotational velocity at given frame.

virtual DtVector3D DtScriptAnimationModel::acceleration ( int  ) const
virtual

Returns acceleration (local) at given frame.

virtual DtVector3D DtScriptAnimationModel::velocity ( int  ) const
virtual

Returns velocity (local) at given frame.

virtual const DtAnimationModel& DtScriptAnimationModel::animationModel ( ) const
virtual

Script API functions above.

////////////////////////////////////! Returns the animation model for this class

virtual DtString DtScriptAnimationModel::serialize ( )
virtual

Inherited from DtAsciiSerializable. Returns a string serialized version of this class.

Implements DtAsciiSerializable.

bool DtScriptAnimationModel::deserialize ( const DtString data)
virtual

Inherited from DtAsciiSerializable.

Returns true if it could fill its members with the data contained in the string. False otherwise.

Implements DtAsciiSerializable.

virtual DtString DtScriptAnimationModel::objectType ( ) const
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 DtAsciiSerializable* DtScriptAnimationModel::creator ( )
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 void DtScriptAnimationModel::reset ( )
virtual

Resets state of the animation model.

Member Data Documentation

DtSimManager* DtScriptAnimationModel::mySimManager
protected
boost::shared_ptr<DtScriptVrfObject> DtScriptAnimationModel::mySharedObject
protected
DtAnimationModel DtScriptAnimationModel::myAnimationModel
protected
std::string DtScriptAnimationModel::myAnimationModelFile
protected

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

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)