Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

rdmAnimationCallback Class Reference

A class for generating an animation sequence in Maya based on a forward dynamic simulation. More...

#include <rdmAnimationCallback.h>

Inheritance diagram for rdmAnimationCallback:

rdIntegCallback rdCallback rdObject List of all members.

Public Member Functions

 rdmAnimationCallback (rdModel *aModel)
 Default constructor.

virtual ~rdmAnimationCallback ()
 Destructor.

virtual void begin (int aStep, double aDT, double aT, double *aX, double *aY, void *aClientData=NULL)
 This method is called at the beginning of an integration and is intended to be used for any initializations that are necessary.

virtual void step (double *aXPrev, double *aYPrev, int aStep, double aDT, double aT, double *aX, double *aY, void *aClientData=NULL)
 This method is called after each successful integration time step and is intended to be used for conducting analyses, driving animations, etc.

virtual void end (int aStep, double aDT, double aT, double *aX, double *aY, void *aClientData=NULL)
 This method is called after an integration has been completed and is intended to be used for performing any finalizations necessary.


Protected Attributes

rdPtrArray _transforms

Private Member Functions

void setNull ()
 Set NULL values for member variables.


Detailed Description

A class for generating an animation sequence in Maya based on a forward dynamic simulation.

Author:
Frank C. Anderson
Version:
1.0


Constructor & Destructor Documentation

rdmAnimationCallback::rdmAnimationCallback rdModel aModel  ) 
 

Default constructor.

Note that this constructor adds the callback to the model. Derived classes should not also add themselves to the model.

Parameters:
aModel Model to which the callback mthods apply.


Member Function Documentation

void rdmAnimationCallback::begin int  aStep,
double  aDT,
double  aT,
double *  aX,
double *  aY,
void *  aClientData = NULL
[virtual]
 

This method is called at the beginning of an integration and is intended to be used for any initializations that are necessary.

Override this method in derived classes.

Parameters:
aStep Number of integrations steps that have been completed.
aDT Size of the integration time step that will be attempted.
aT Current time in the integration.
aX Current control values.
aY Current states.
aClientData General use pointer for sending in client data.

Reimplemented from rdIntegCallback.

void rdmAnimationCallback::end int  aStep,
double  aDT,
double  aT,
double *  aX,
double *  aY,
void *  aClientData = NULL
[virtual]
 

This method is called after an integration has been completed and is intended to be used for performing any finalizations necessary.

Override this method in derived classes.

Parameters:
aStep Number of integrations steps that have been completed.
aDT Size of the time step that WAS just completed.
aT Current time in the integration.
aX Current control values.
aY Current states.
aClientData General use pointer for sending in client data.

Reimplemented from rdIntegCallback.

void rdmAnimationCallback::step double *  aXPrev,
double *  aYPrev,
int  aStep,
double  aDT,
double  aT,
double *  aX,
double *  aY,
void *  aClientData = NULL
[virtual]
 

This method is called after each successful integration time step and is intended to be used for conducting analyses, driving animations, etc.

Override this method in derived classes.

Parameters:
aXPrev Control values at the previous time step.
aYPrev State values at the previous time step.
aStep Number of integrations steps that have been completed.
aDT Size of the time step that WAS just completed.
aT Current time in the integration.
aX Current control values.
aY Current states.
aClientData General use pointer for sending in client data.

Reimplemented from rdIntegCallback.


The documentation for this class was generated from the following files:
Generated on Wed Aug 20 02:17:11 2003 for Simulation Software by doxygen1.3