15 #ifndef BASEINTEGRATOR_H 16 #define BASEINTEGRATOR_H 18 #include "pandabase.h" 19 #include "pointerTo.h" 20 #include "referenceCount.h" 23 #include "linearForce.h" 24 #include "angularForce.h" 39 typedef epvector<LMatrix4> MatrixVector;
46 virtual void output(ostream &out)
const;
47 virtual void write_precomputed_linear_matrices(ostream &out,
48 unsigned int indent=0)
const;
49 virtual void write_precomputed_angular_matrices(ostream &out,
50 unsigned int indent=0)
const;
51 virtual void write(ostream &out,
unsigned int indent=0)
const;
56 INLINE
const MatrixVector &get_precomputed_linear_matrices()
const;
57 INLINE
const MatrixVector &get_precomputed_angular_matrices()
const;
59 void precompute_linear_matrices(
Physical *physical,
60 const LinearForceVector &forces);
61 void precompute_angular_matrices(
Physical *physical,
62 const AngularForceVector &forces);
69 MatrixVector _precomputed_linear_matrices;
70 MatrixVector _precomputed_angular_matrices;
73 #include "baseIntegrator.I" 75 #endif // BASEINTEGRATOR_H
pure virtual integrator class that holds cached matrix information that really should be common to an...
Defines a set of physically modeled attributes.
A base class for all things that want to be reference-counted.