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

PhysicsObject Class Reference

#include <physicsObject.h>

Inheritance diagram for PhysicsObject:

TypedReferenceCount TypedObject ReferenceCount BaseParticle OrientedParticle PointParticle ZSpinParticle List of all members.

Public Member Functions

virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

TypeHandle get_class_type ()
void init_type ()

Private Member Functions

 PhysicsObject (const PhysicsObject &copy)
virtual ~PhysicsObject (void)
const PhysicsObject & operator= (const PhysicsObject &other)
INLINE void set_mass (float)
INLINE float get_mass (void) const
INLINE void set_position (const LPoint3f &pos)
INLINE void set_position (float x, float y, float z)
INLINE LPoint3f get_position (void) const
INLINE void set_position_HandOfGod (const LPoint3f &pos)
INLINE void set_last_position (const LPoint3f &pos)
INLINE LPoint3f get_last_position (void) const
INLINE void set_velocity (const LVector3f &vel)
INLINE void set_velocity (float x, float y, float z)
INLINE LVector3f get_velocity (void) const
INLINE void set_active (bool flag)
INLINE bool get_active (void) const
INLINE void set_oriented (bool flag)
INLINE bool get_oriented (void) const
INLINE void set_terminal_velocity (float tv)
INLINE float get_terminal_velocity (void) const
INLINE void set_orientation (const LOrientationf &orientation)
INLINE LOrientationf get_orientation (void) const
INLINE void set_rotation (const LVector3f &rotation)
INLINE LVector3f get_rotation (void) const
virtual LMatrix4f get_inertial_tensor (void) const
virtual LMatrix4f get_lcs (void) const
virtual PhysicsObject * make_copy (void) const

Private Attributes

LPoint3f _position
LPoint3f _last_position
LVector3f _velocity
LOrientationf _orientation
LVector3f _rotation
float _terminal_velocity
float _mass
bool _process_me
bool _oriented
PUBLISHED __pad0__: PhysicsObject(void)

Static Private Attributes

const float _default_terminal_velocity
TypeHandle _type_handle

Constructor & Destructor Documentation

PhysicsObject::PhysicsObject const PhysicsObject &  copy  )  [private]
 

Definition at line 48 of file physicsObject.cxx.

References operator=().

Referenced by make_copy().

PhysicsObject::~PhysicsObject void   )  [private, virtual]
 

Definition at line 58 of file physicsObject.cxx.


Member Function Documentation

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

Reimplemented from TypedReferenceCount.

Definition at line 104 of file physicsObject.h.

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

INLINE bool PhysicsObject::get_active void   )  const [private]
 

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

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

Reimplemented from ReferenceCount.

Definition at line 93 of file physicsObject.h.

LMatrix4f PhysicsObject::get_inertial_tensor void   )  const [private, virtual]
 

Definition at line 114 of file physicsObject.cxx.

Referenced by AngularEulerIntegrator::child_integrate().

INLINE LPoint3f PhysicsObject::get_last_position void   )  const [private]
 

LMatrix4f PhysicsObject::get_lcs void   )  const [private, virtual]
 

Definition at line 98 of file physicsObject.cxx.

References _orientation, _oriented, and _position.

Referenced by ActorNode::update_transform().

INLINE float PhysicsObject::get_mass void   )  const [private]
 

Referenced by LinearEulerIntegrator::child_integrate().

INLINE LOrientationf PhysicsObject::get_orientation void   )  const [private]
 

Referenced by AngularEulerIntegrator::child_integrate().

INLINE bool PhysicsObject::get_oriented void   )  const [private]
 

Referenced by ActorNode::transform_changed().

INLINE LPoint3f PhysicsObject::get_position void   )  const [private]
 

Referenced by LinearEulerIntegrator::child_integrate(), LinearSourceForce::get_child_vector(), LinearSinkForce::get_child_vector(), LinearNoiseForce::get_child_vector(), LinearCylinderVortexForce::get_child_vector(), LinearIntegrator::integrate(), and main().

INLINE LVector3f PhysicsObject::get_rotation void   )  const [private]
 

Referenced by AngularEulerIntegrator::child_integrate().

INLINE float PhysicsObject::get_terminal_velocity void   )  const [private]
 

Referenced by LinearEulerIntegrator::child_integrate().

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

Reimplemented from TypedReferenceCount.

Definition at line 101 of file physicsObject.h.

References ReferenceCount::get_class_type().

INLINE LVector3f PhysicsObject::get_velocity void   )  const [private]
 

Referenced by LinearEulerIntegrator::child_integrate(), LinearFrictionForce::get_child_vector(), and LinearCylinderVortexForce::get_child_vector().

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

Reimplemented from TypedReferenceCount.

Definition at line 96 of file physicsObject.h.

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

Referenced by init_libphysics().

PhysicsObject * PhysicsObject::make_copy void   )  const [private, virtual]
 

Reimplemented in BaseParticle, OrientedParticle, PointParticle, and ZSpinParticle.

Definition at line 87 of file physicsObject.cxx.

References PhysicsObject().

const PhysicsObject & PhysicsObject::operator= const PhysicsObject &  other  )  [private]
 

Definition at line 67 of file physicsObject.cxx.

References _last_position, _mass, _orientation, _oriented, _position, _process_me, _rotation, _terminal_velocity, and _velocity.

Referenced by PhysicsObject().

INLINE void PhysicsObject::set_active bool  flag  )  [private]
 

Referenced by ActorNode::ActorNode().

INLINE void PhysicsObject::set_last_position const LPoint3f &  pos  )  [private]
 

Referenced by LinearIntegrator::integrate().

INLINE void PhysicsObject::set_mass float   )  [private]
 

Referenced by main().

INLINE void PhysicsObject::set_orientation const LOrientationf &  orientation  )  [private]
 

Referenced by AngularEulerIntegrator::child_integrate(), and ActorNode::transform_changed().

INLINE void PhysicsObject::set_oriented bool  flag  )  [private]
 

Referenced by OrientedParticle::OrientedParticle(), and PointParticle::PointParticle().

INLINE void PhysicsObject::set_position float  x,
float  y,
float  z
[private]
 

INLINE void PhysicsObject::set_position const LPoint3f &  pos  )  [private]
 

Referenced by LinearEulerIntegrator::child_integrate(), main(), and ActorNode::transform_changed().

INLINE void PhysicsObject::set_position_HandOfGod const LPoint3f &  pos  )  [private]
 

INLINE void PhysicsObject::set_rotation const LVector3f &  rotation  )  [private]
 

Referenced by AngularEulerIntegrator::child_integrate().

INLINE void PhysicsObject::set_terminal_velocity float  tv  )  [private]
 

INLINE void PhysicsObject::set_velocity float  x,
float  y,
float  z
[private]
 

INLINE void PhysicsObject::set_velocity const LVector3f &  vel  )  [private]
 

Referenced by LinearEulerIntegrator::child_integrate(), and main().


Member Data Documentation

PUBLISHED PhysicsObject::__pad0__ [private]
 

Reimplemented from TypedReferenceCount.

Definition at line 50 of file physicsObject.h.

const float PhysicsObject::_default_terminal_velocity [static, private]
 

Initial value:

  config_physics.GetFloat("default_terminal_velocity", 400.0f)

Definition at line 48 of file config_physics.cxx.

Referenced by BaseParticleFactory::BaseParticleFactory().

LPoint3f PhysicsObject::_last_position [private]
 

Reimplemented in BaseParticle.

Definition at line 36 of file physicsObject.h.

Referenced by operator=().

float PhysicsObject::_mass [private]
 

Definition at line 44 of file physicsObject.h.

Referenced by operator=().

LOrientationf PhysicsObject::_orientation [private]
 

Definition at line 40 of file physicsObject.h.

Referenced by get_lcs(), and operator=().

bool PhysicsObject::_oriented [private]
 

Definition at line 47 of file physicsObject.h.

Referenced by get_lcs(), and operator=().

LPoint3f PhysicsObject::_position [private]
 

Definition at line 35 of file physicsObject.h.

Referenced by get_lcs(), and operator=().

bool PhysicsObject::_process_me [private]
 

Definition at line 46 of file physicsObject.h.

Referenced by operator=().

LVector3f PhysicsObject::_rotation [private]
 

Definition at line 41 of file physicsObject.h.

Referenced by operator=().

float PhysicsObject::_terminal_velocity [private]
 

Definition at line 43 of file physicsObject.h.

Referenced by operator=().

TypeHandle PhysicsObject::_type_handle [static, private]
 

Reimplemented from TypedReferenceCount.

Definition at line 21 of file physicsObject.cxx.

LVector3f PhysicsObject::_velocity [private]
 

Definition at line 37 of file physicsObject.h.

Referenced by operator=().


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