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

Physical Class Reference

#include <physical.h>

Inheritance diagram for Physical:

TypedReferenceCount TypedObject ReferenceCount Baseball ParticleSystem List of all members.

Public Member Functions

virtual TypeHandle get_type (void) const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type (void)
void init_type (void)

Public Attributes

INLINE const pvector< PT(PhysicsObject) > get_object_vector )(void) const
INLINE const pvector< PT(LinearForce) > get_linear_forces )(void) const
INLINE const pvector< PT(AngularForce) > get_angular_forces )(void) const

Protected Member Functions

 Physical (const Physical &copy)
virtual ~Physical (void)
INLINE PhysicsManagerget_physics_manager (void) const
INLINE PhysicalNodeget_physical_node (void) const
INLINE PhysicsObjectget_phys_body (void) const
INLINE void clear_linear_forces (void)
INLINE void clear_angular_forces (void)
INLINE void clear_physics_objects (void)
INLINE void add_linear_force (LinearForce *f)
INLINE void add_angular_force (AngularForce *f)
INLINE void add_physics_object (PhysicsObject *po)
INLINE void remove_linear_force (LinearForce *f)
INLINE void remove_angular_force (AngularForce *f)
INLINE int get_num_linear_forces (void) const
INLINE PT (LinearForce) get_linear_force(int index) const
INLINE int get_num_angular_forces (void) const
INLINE PT (AngularForce) get_angular_force(int index) const

Protected Attributes

pvector< PT(PhysicsObject_physics_objects )
pvector< PT(LinearForce_linear_forces )
pvector< PT(AngularForce_angular_forces )
PhysicsObject_phys_body
PUBLISHED __pad0__: Physical(int ttl_objects = 1
PUBLISHED bool pre_alloc = false)

Private Attributes

PhysicsManager_physics_manager
PhysicalNode_physical_node

Static Private Attributes

TypeHandle _type_handle

Friends

class PhysicsManager
class PhysicalNode

Constructor & Destructor Documentation

Physical::Physical const Physical &  copy  )  [protected]
 

Definition at line 74 of file physical.cxx.

References _angular_forces, _linear_forces, _phys_body, _physics_manager, _physics_objects, and NULL.

Physical::~Physical void   )  [protected, virtual]
 

Definition at line 114 of file physical.cxx.

References _physics_manager, NULL, and PhysicsManager::remove_physical().


Member Function Documentation

INLINE void Physical::add_angular_force AngularForce f  )  [protected]
 

INLINE void Physical::add_linear_force LinearForce f  )  [protected]
 

INLINE void Physical::add_physics_object PhysicsObject po  )  [protected]
 

INLINE void Physical::clear_angular_forces void   )  [protected]
 

INLINE void Physical::clear_linear_forces void   )  [protected]
 

INLINE void Physical::clear_physics_objects void   )  [protected]
 

virtual TypeHandle Physical::force_init_type void   )  [inline, virtual]
 

Reimplemented from TypedReferenceCount.

Definition at line 105 of file physical.h.

References ReferenceCount::get_class_type(), and TypedReferenceCount::init_type().

TypeHandle Physical::get_class_type void   )  [inline, static]
 

Reimplemented from ReferenceCount.

Definition at line 94 of file physical.h.

INLINE int Physical::get_num_angular_forces void   )  const [protected]
 

INLINE int Physical::get_num_linear_forces void   )  const [protected]
 

INLINE PhysicsObject* Physical::get_phys_body void   )  const [protected]
 

Referenced by ActorNode::ActorNode().

INLINE PhysicalNode* Physical::get_physical_node void   )  const [protected]
 

Referenced by ParticleSystem::birth_particle(), PhysicsManager::do_physics(), BaseIntegrator::precompute_angular_matrices(), BaseIntegrator::precompute_linear_matrices(), and ParticleSystem::spawn_child_system().

INLINE PhysicsManager* Physical::get_physics_manager void   )  const [protected]
 

Referenced by ParticleSystem::spawn_child_system().

virtual TypeHandle Physical::get_type void   )  const [inline, virtual]
 

Reimplemented from TypedReferenceCount.

Definition at line 102 of file physical.h.

References ReferenceCount::get_class_type().

void Physical::init_type void   )  [inline, static]
 

Reimplemented from TypedReferenceCount.

Definition at line 97 of file physical.h.

References TypedObject::get_class_type(), TypedReferenceCount::init_type(), and register_type().

Referenced by init_libphysics().

INLINE Physical::PT AngularForce   )  const [protected]
 

INLINE Physical::PT LinearForce   )  const [protected]
 

INLINE void Physical::remove_angular_force AngularForce f  )  [protected]
 

INLINE void Physical::remove_linear_force LinearForce f  )  [protected]
 


Friends And Related Function Documentation

friend class PhysicalNode [friend]
 

Definition at line 91 of file physical.h.

Referenced by ParticleSystem::spawn_child_system().

friend class PhysicsManager [friend]
 

Definition at line 90 of file physical.h.


Member Data Documentation

PUBLISHED Physical::__pad0__ [protected]
 

Reimplemented from TypedReferenceCount.

Reimplemented in ParticleSystem.

Definition at line 61 of file physical.h.

pvector< PT(AngularForce) Physical::_angular_forces) [protected]
 

Definition at line 51 of file physical.h.

Referenced by Physical().

pvector< PT(LinearForce) Physical::_linear_forces) [protected]
 

Definition at line 50 of file physical.h.

Referenced by Physical().

PhysicsObject* Physical::_phys_body [protected]
 

Definition at line 58 of file physical.h.

Referenced by main(), and Physical().

PhysicalNode* Physical::_physical_node [private]
 

Definition at line 45 of file physical.h.

PhysicsManager* Physical::_physics_manager [private]
 

Definition at line 44 of file physical.h.

Referenced by Physical(), and ~Physical().

pvector< PT(PhysicsObject) Physical::_physics_objects) [protected]
 

Definition at line 49 of file physical.h.

Referenced by ParticleSystem::birth_particle(), ParticleSystem::kill_particle(), Physical(), ParticleSystem::resize_pool(), and ParticleSystem::update().

TypeHandle Physical::_type_handle [static, private]
 

Reimplemented from TypedReferenceCount.

Definition at line 24 of file physical.cxx.

INLINE const pvector< PT(AngularForce) > Physical::get_angular_forces)(void) const
 

Referenced by AngularEulerIntegrator::child_integrate(), and BaseIntegrator::precompute_angular_matrices().

INLINE const pvector< PT(LinearForce) > Physical::get_linear_forces)(void) const
 

Referenced by LinearEulerIntegrator::child_integrate(), and BaseIntegrator::precompute_linear_matrices().

INLINE const pvector< PT(PhysicsObject) > Physical::get_object_vector)(void) const
 

Referenced by LinearEulerIntegrator::child_integrate(), AngularEulerIntegrator::child_integrate(), and LinearIntegrator::integrate().

PUBLISHED bool Physical::pre_alloc = false) [protected]
 

Definition at line 61 of file physical.h.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:13:08 2003 for Panda by doxygen1.3