#include <Integrator.h>
Inheritance diagram for CIntegrator:
Public Methods | |
CIntegrator () | |
CIntegrator (CVectorField *vectorField, CInterpolator *interpolator, float dt) | |
Constructor with pointer to vectorfield, pointer to interpolator and dt as parameters. | |
virtual | ~CIntegrator () |
virtual CSamplePoint * | ComputeNext (CSamplePoint *lastPoint)=0 |
Makes one integration-step and returns pointer to new samplepoint. | |
CSamplePoint * | ComputeLast (CSamplePoint *nextPoint) |
Makes one integration-step in the other direction and returns pointer to new samplepoint. | |
virtual void | SetDt (float dt) |
Sets time-step value(should be little for obtaining good results). | |
void | SetInterpolator (CInterpolator *interpolator) |
Sets pointer to integrator. | |
void | SetVectorField (CVectorField *vectorField) |
Sets pointer to vectorfield the integrator operates on. | |
Protected Attributes | |
float | m_Dt |
CInterpolator * | m_Interpolator |
CVectorField * | m_VectorField |
CIntegrator is the base class for all discrete operators like Euler-Op which approximate an integration of a streamline with stepsize dt