Panda3D
|
pure virtual integrator class that holds cached matrix information that really should be common to any possible child implementation. More...
#include "baseIntegrator.h"
Public Types | |
typedef pvector< PT(AngularForce)> | AngularForceVector |
typedef pvector< PT(LinearForce)> | LinearForceVector |
typedef epvector< LMatrix4 > | MatrixVector |
Public Member Functions | |
virtual | ~BaseIntegrator () |
destructor | |
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>. | |
virtual void | write_precomputed_angular_matrices (ostream &out, unsigned int indent=0) const |
Write a string representation of this instance to <out>. | |
virtual void | write_precomputed_linear_matrices (ostream &out, unsigned int indent=0) const |
Write a string representation of this instance to <out>. | |
Protected Member Functions | |
BaseIntegrator () | |
constructor | |
const MatrixVector & | get_precomputed_angular_matrices () const |
const MatrixVector & | get_precomputed_linear_matrices () const |
void | precompute_angular_matrices (Physical *physical, const AngularForceVector &forces) |
effectively caches the xform matrices between the physical's node and every force acting on it so that each PhysicsObject in the set held by the Physical doesn't have to wrt. | |
void | precompute_linear_matrices (Physical *physical, const LinearForceVector &forces) |
effectively caches the xform matrices between the physical's node and every force acting on it so that each PhysicsObject in the set held by the Physical doesn't have to wrt. |
pure virtual integrator class that holds cached matrix information that really should be common to any possible child implementation.
Definition at line 36 of file baseIntegrator.h.
BaseIntegrator::~BaseIntegrator | ( | ) | [virtual] |
destructor
Definition at line 35 of file baseIntegrator.cxx.
BaseIntegrator::BaseIntegrator | ( | ) | [protected] |
constructor
Definition at line 26 of file baseIntegrator.cxx.
void BaseIntegrator::output | ( | ostream & | out | ) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented in LinearIntegrator, AngularIntegrator, AngularEulerIntegrator, and LinearEulerIntegrator.
Definition at line 156 of file baseIntegrator.cxx.
void BaseIntegrator::precompute_angular_matrices | ( | Physical * | physical, |
const AngularForceVector & | forces | ||
) | [protected] |
effectively caches the xform matrices between the physical's node and every force acting on it so that each PhysicsObject in the set held by the Physical doesn't have to wrt.
Definition at line 103 of file baseIntegrator.cxx.
References TransformState::get_mat(), NodePath::get_parent(), and NodePath::get_transform().
void BaseIntegrator::precompute_linear_matrices | ( | Physical * | physical, |
const LinearForceVector & | forces | ||
) | [protected] |
effectively caches the xform matrices between the physical's node and every force acting on it so that each PhysicsObject in the set held by the Physical doesn't have to wrt.
Definition at line 47 of file baseIntegrator.cxx.
References TransformState::get_mat(), NodePath::get_parent(), and NodePath::get_transform().
void BaseIntegrator::write | ( | ostream & | out, |
unsigned int | indent = 0 |
||
) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented in LinearIntegrator, AngularIntegrator, AngularEulerIntegrator, and LinearEulerIntegrator.
Definition at line 207 of file baseIntegrator.cxx.
References write_precomputed_angular_matrices(), and write_precomputed_linear_matrices().
void BaseIntegrator::write_precomputed_angular_matrices | ( | ostream & | out, |
unsigned int | indent = 0 |
||
) | const [virtual] |
Write a string representation of this instance to <out>.
Definition at line 188 of file baseIntegrator.cxx.
Referenced by write().
void BaseIntegrator::write_precomputed_linear_matrices | ( | ostream & | out, |
unsigned int | indent = 0 |
||
) | const [virtual] |
Write a string representation of this instance to <out>.
Definition at line 169 of file baseIntegrator.cxx.
Referenced by write().