Panda3D
|
Pure virtual base class for physical modeling. More...
#include "linearIntegrator.h"
Public Member Functions | |
virtual | ~LinearIntegrator () |
destructor | |
void | integrate (Physical *physical, LinearForceVector &forces, PN_stdfloat dt) |
parent integration routine, hands off to child virtual. | |
virtual void | output (ostream &out) const |
Write a string representation of this instance to <out>. | |
virtual void | write (ostream &out, unsigned int indent=0) const |
Write a string representation of this instance to <out>. | |
Protected Member Functions | |
LinearIntegrator () | |
constructor |
Pure virtual base class for physical modeling.
Takes physically modelable objects and applies forces to them.
Definition at line 29 of file linearIntegrator.h.
LinearIntegrator::~LinearIntegrator | ( | ) | [virtual] |
destructor
Definition at line 39 of file linearIntegrator.cxx.
LinearIntegrator::LinearIntegrator | ( | ) | [protected] |
constructor
Definition at line 30 of file linearIntegrator.cxx.
void LinearIntegrator::integrate | ( | Physical * | physical, |
LinearForceVector & | forces, | ||
PN_stdfloat | dt | ||
) |
parent integration routine, hands off to child virtual.
Definition at line 49 of file linearIntegrator.cxx.
References PhysicsObject::get_position(), and PhysicsObject::set_last_position().
void LinearIntegrator::output | ( | ostream & | out | ) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from BaseIntegrator.
Reimplemented in LinearEulerIntegrator.
Definition at line 82 of file linearIntegrator.cxx.
void LinearIntegrator::write | ( | ostream & | out, |
unsigned int | indent = 0 |
||
) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from BaseIntegrator.
Reimplemented in LinearEulerIntegrator.
Definition at line 95 of file linearIntegrator.cxx.