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

panda/src/physics/linearSourceForce.h

Go to the documentation of this file.
00001 // Filename: linearSourceForce.h
00002 // Created by:  charles (21Jun00)
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 LINEARSOURCEFORCE_H
00020 #define LINEARSOURCEFORCE_H
00021 
00022 #include "linearDistanceForce.h"
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //       Class : LinearSourceForce
00026 // Description : Repellant force.
00027 ////////////////////////////////////////////////////////////////////
00028 class EXPCL_PANDAPHYSICS LinearSourceForce : public LinearDistanceForce {
00029 private:
00030   virtual LVector3f get_child_vector(const PhysicsObject *po);
00031   virtual LinearForce *make_copy(void);
00032 
00033 PUBLISHED:
00034   LinearSourceForce(const LPoint3f& p, FalloffType f, float r, float a = 1.0f,
00035               bool mass = true);
00036   LinearSourceForce(void);
00037   LinearSourceForce(const LinearSourceForce &copy);
00038   virtual ~LinearSourceForce(void);
00039 
00040 public:
00041   static TypeHandle get_class_type(void) {
00042     return _type_handle;
00043   }
00044   static void init_type(void) {
00045     LinearDistanceForce::init_type();
00046     register_type(_type_handle, "LinearSourceForce",
00047                   LinearDistanceForce::get_class_type());
00048   }
00049   virtual TypeHandle get_type(void) const {
00050     return get_class_type();
00051   }
00052   virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00053 
00054 private:
00055   static TypeHandle _type_handle;
00056 };
00057 
00058 #endif // LINEARSOURCEFORCE_H

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