Panda3D
 All Classes Functions Variables Enumerations
angularIntegrator.h
1 // Filename: angularIntegrator.h
2 // Created by: charles (09Aug00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef ANGULARINTEGRATOR_H
16 #define ANGULARINTEGRATOR_H
17 
18 #include "baseIntegrator.h"
19 #include "angularForce.h"
20 #include "configVariableDouble.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : BaseAngularIntegrator
24 // Description : Pure virtual base class for physical modeling.
25 // Takes physically modelable objects and applies
26 // forces to them.
27 ////////////////////////////////////////////////////////////////////
28 class EXPCL_PANDAPHYSICS AngularIntegrator : public BaseIntegrator {
29 PUBLISHED:
30  virtual ~AngularIntegrator();
31 public:
32 
33  void integrate(Physical *physical, AngularForceVector &forces,
34  PN_stdfloat dt);
35 
36 PUBLISHED:
37  virtual void output(ostream &out) const;
38  virtual void write(ostream &out, unsigned int indent=0) const;
39 
40 protected:
42 
43 private:
44  static ConfigVariableDouble _max_angular_dt;
45 
46  // this allows baseAngularIntegrator to censor/modify data that the
47  // actual integration function receives.
48  virtual void child_integrate(Physical *physical, AngularForceVector &forces,
49  PN_stdfloat dt) = 0;
50 };
51 
52 #endif // ANGULARINTEGRATOR_H
virtual void output(ostream &out) const
Write a string representation of this instance to <out>.
pure virtual integrator class that holds cached matrix information that really should be common to an...
This is a convenience class to specialize ConfigVariable as a floating-point type.
Defines a set of physically modeled attributes.
Definition: physical.h:40
Pure virtual base class for physical modeling.
virtual void write(ostream &out, unsigned int indent=0) const
Write a string representation of this instance to <out>.