#include <rdIntegCallback.h>
Inheritance diagram for rdIntegCallback:

Public Member Functions | |
| rdIntegCallback (rdModel *aModel) | |
| Default constructor. | |
| virtual | ~rdIntegCallback () |
| Destructor. | |
| void | setStepInterval (int aStepInterval) |
| Set the step interval. | |
| int | getStepInterval () const |
| Get the step interval. | |
| 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 | |
| int | _stepInterval |
| Step interval. | |
Private Member Functions | |
| void | setNull () |
| Set NULL values for member variables. | |
Integration callbacks are registered with a model and provide a set of methods that the model calls at various stages of an integration. The methods are begin(), which is called at the beginning of an integration, step(), which is called after each successful integration step, and end(), which is called at the completion of an integration. These methods provide low-level access for performing analysis, animating simulations, etc.
On a final note, it is possible to register many integration callbacks with a model and no attempt is made to ensure that the the actions of registered callbacks are compatible. Ensuring compatibility is left to the user.
|
|
Default constructor. Note that this constructor adds the callback to the model. Derived classes should not also add themselves to the model.
|
|
||||||||||||||||||||||||||||
|
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.
Reimplemented in rdmAnimationCallback. |
|
||||||||||||||||||||||||||||
|
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.
Reimplemented in rdmAnimationCallback. |
|
|
Get the step interval. The step interval is used to specify how many integration steps must go by before the rdIntegCallback::step() method is executed. Specifically, unless the step number divided by the step interval has no remainder (i.e., (step stepInterval) == 0), the step method is not executed.
|
|
|
Set the step interval. The step interval is used to specify how many integration steps must go by before the rdIntegCallback::step() method is executed. Specifically, unless the step number divided by the step interval has no remainder (i.e., (step stepInterval) == 0), the step method is not executed.
|
|
||||||||||||||||||||||||||||||||||||
|
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.
Reimplemented in rdmAnimationCallback. |
1.3