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

ZSpinParticle Class Reference

#include <zSpinParticle.h>

Inheritance diagram for ZSpinParticle:

BaseParticle PhysicsObject TypedReferenceCount TypedObject ReferenceCount List of all members.

Public Member Functions

 ZSpinParticle (void)
 ZSpinParticle (const ZSpinParticle &copy)
virtual ~ZSpinParticle (void)
virtual PhysicsObjectmake_copy (void) const
virtual void init (void)
virtual void update (void)
virtual void die (void)
virtual float get_theta (void) const
INLINE void set_initial_angle (float t)
INLINE float get_initial_angle (void) const
INLINE void set_final_angle (float t)
INLINE float get_final_angle (void) const
INLINE void set_angular_velocity (float v)
INLINE float get_angular_velocity (void) const
INLINE void enable_angular_velocity (bool bEnabled)
INLINE bool get_angular_velocity_enabled (void) const

Private Attributes

float _initial_angle
float _final_angle
float _cur_angle
float _angular_velocity
bool _bUseAngularVelocity

Constructor & Destructor Documentation

ZSpinParticle::ZSpinParticle void   ) 
 

Definition at line 27 of file zSpinParticle.cxx.

References _angular_velocity, _bUseAngularVelocity, _cur_angle, _final_angle, and _initial_angle.

Referenced by make_copy().

ZSpinParticle::ZSpinParticle const ZSpinParticle &  copy  ) 
 

Definition at line 42 of file zSpinParticle.cxx.

References _angular_velocity, _bUseAngularVelocity, _cur_angle, _final_angle, and _initial_angle.

ZSpinParticle::~ZSpinParticle void   )  [virtual]
 

Definition at line 57 of file zSpinParticle.cxx.


Member Function Documentation

void ZSpinParticle::die void   )  [virtual]
 

Implements BaseParticle.

Definition at line 113 of file zSpinParticle.cxx.

INLINE void ZSpinParticle::enable_angular_velocity bool  bEnabled  ) 
 

Referenced by ZSpinParticleFactory::populate_child_particle().

INLINE float ZSpinParticle::get_angular_velocity void   )  const
 

INLINE bool ZSpinParticle::get_angular_velocity_enabled void   )  const
 

INLINE float ZSpinParticle::get_final_angle void   )  const
 

INLINE float ZSpinParticle::get_initial_angle void   )  const
 

float ZSpinParticle::get_theta void   )  const [virtual]
 

Reimplemented from BaseParticle.

Definition at line 122 of file zSpinParticle.cxx.

References _cur_angle.

void ZSpinParticle::init void   )  [virtual]
 

Implements BaseParticle.

Definition at line 76 of file zSpinParticle.cxx.

PhysicsObject * ZSpinParticle::make_copy void   )  const [virtual]
 

Implements BaseParticle.

Definition at line 66 of file zSpinParticle.cxx.

References ZSpinParticle().

INLINE void ZSpinParticle::set_angular_velocity float  v  ) 
 

Referenced by ZSpinParticleFactory::populate_child_particle().

INLINE void ZSpinParticle::set_final_angle float  t  ) 
 

Referenced by ZSpinParticleFactory::populate_child_particle().

INLINE void ZSpinParticle::set_initial_angle float  t  ) 
 

Referenced by ZSpinParticleFactory::populate_child_particle().

void ZSpinParticle::update void   )  [virtual]
 

Implements BaseParticle.

Definition at line 85 of file zSpinParticle.cxx.

References _angular_velocity, _cur_angle, _final_angle, _initial_angle, BaseParticle::get_age(), and BaseParticle::get_parameterized_age().


Member Data Documentation

float ZSpinParticle::_angular_velocity [private]
 

Definition at line 37 of file zSpinParticle.h.

Referenced by update(), and ZSpinParticle().

bool ZSpinParticle::_bUseAngularVelocity [private]
 

Definition at line 38 of file zSpinParticle.h.

Referenced by ZSpinParticle().

float ZSpinParticle::_cur_angle [private]
 

Definition at line 36 of file zSpinParticle.h.

Referenced by get_theta(), update(), and ZSpinParticle().

float ZSpinParticle::_final_angle [private]
 

Definition at line 35 of file zSpinParticle.h.

Referenced by update(), and ZSpinParticle().

float ZSpinParticle::_initial_angle [private]
 

Definition at line 34 of file zSpinParticle.h.

Referenced by update(), and ZSpinParticle().


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