Panda3D
linearEulerIntegrator.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file linearEulerIntegrator.h
10  * @author charles
11  * @date 2000-06-13
12  */
13 
14 #ifndef LINEAREULERINTEGRATOR_H
15 #define LINEAREULERINTEGRATOR_H
16 
17 #include "linearIntegrator.h"
18 
19 /**
20  * Performs Euler integration on a vector of physically modelable objects
21  * given a quantum dt.
22  */
23 class EXPCL_PANDA_PHYSICS LinearEulerIntegrator : public LinearIntegrator {
24 PUBLISHED:
26  virtual ~LinearEulerIntegrator();
27 
28  virtual void output(std::ostream &out) const;
29  virtual void write(std::ostream &out, int indent=0) const;
30 
31 private:
32  virtual void child_integrate(Physical *physical,
33  LinearForceVector& forces,
34  PN_stdfloat dt);
35 };
36 
37 #endif // EULERINTEGRATOR_H
Pure virtual base class for physical modeling.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition: indent.cxx:20
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
Performs Euler integration on a vector of physically modelable objects given a quantum dt.
Defines a set of physically modeled attributes.
Definition: physical.h:37
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.