Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/physics/linearIntegrator.h

Go to the documentation of this file.
00001 // Filename: linearIntegrator.h
00002 // Created by:  charles (13Jun00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef LINEARINTEGRATOR_H
00020 #define LINEARINTEGRATOR_H
00021 
00022 #include "physicsObject.h"
00023 #include "baseIntegrator.h"
00024 #include "linearForce.h"
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //       Class : LinearIntegrator
00028 // Description : Pure virtual base class for physical modeling.
00029 //               Takes physically modelable objects and applies
00030 //               forces to them.
00031 ////////////////////////////////////////////////////////////////////
00032 class EXPCL_PANDAPHYSICS LinearIntegrator : public BaseIntegrator {
00033 private:
00034   static const float _max_linear_dt;
00035 
00036   // this allows baseLinearIntegrator to censor/modify data that the
00037   // actual integration function receives.
00038   virtual void child_integrate(Physical *physical, pvector< PT(LinearForce) > &forces,
00039                                float dt) = 0;
00040 
00041 protected:
00042   LinearIntegrator(void);
00043 
00044 public:
00045   virtual ~LinearIntegrator(void);
00046 
00047   void integrate(Physical *physical, pvector< PT(LinearForce) > &forces,
00048                  float dt);
00049 };
00050 
00051 #endif // LINEARINTEGRATOR_H

Generated on Fri May 2 00:42:56 2003 for Panda by doxygen1.3