Panda3D
Public Types | Public Member Functions | Protected Member Functions
BaseIntegrator Class Reference

pure virtual integrator class that holds cached matrix information that really should be common to any possible child implementation. More...

#include "baseIntegrator.h"

Inheritance diagram for BaseIntegrator:
ReferenceCount MemoryBase AngularIntegrator LinearIntegrator AngularEulerIntegrator LinearEulerIntegrator

List of all members.

Public Types

typedef pvector< PT(AngularForce)> AngularForceVector
typedef pvector< PT(LinearForce)> LinearForceVector
typedef epvector< LMatrix4MatrixVector

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.

Detailed Description

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.


Constructor & Destructor Documentation

destructor

Definition at line 35 of file baseIntegrator.cxx.

constructor

Definition at line 26 of file baseIntegrator.cxx.


Member Function Documentation

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().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations