Panda3D
|
An individual, physically-modelable particle abstract base class. More...
#include "baseParticle.h"
Public Member Functions | |
virtual void | die ()=0 |
PN_stdfloat | get_age () const |
bool | get_alive () const |
int | get_index () const |
PN_stdfloat | get_lifespan () const |
PN_stdfloat | get_parameterized_age () const |
PN_stdfloat | get_parameterized_vel () const |
virtual PN_stdfloat | get_theta () const |
for spriteParticleRenderer | |
virtual void | init ()=0 |
virtual PhysicsObject * | make_copy () const =0 |
dynamic copy. | |
virtual void | output (ostream &out) const |
Write a string representation of this instance to <out>. | |
void | set_age (PN_stdfloat age) |
void | set_alive (bool alive) |
void | set_index (int index) |
void | set_lifespan (PN_stdfloat lifespan) |
virtual void | update ()=0 |
virtual void | write (ostream &out, int indent=0) const |
Write a string representation of this instance to <out>. | |
Protected Member Functions | |
BaseParticle (PN_stdfloat lifespan=1.0f, bool alive=false) | |
Default Constructor. | |
BaseParticle (const BaseParticle ©) | |
Copy Constructor. | |
virtual | ~BaseParticle () |
Default Destructor. |
An individual, physically-modelable particle abstract base class.
Definition at line 26 of file baseParticle.h.
BaseParticle::BaseParticle | ( | PN_stdfloat | lifespan = 1.0f , |
bool | alive = false |
||
) | [protected] |
Default Constructor.
Definition at line 23 of file baseParticle.cxx.
BaseParticle::BaseParticle | ( | const BaseParticle & | copy | ) | [protected] |
Copy Constructor.
Definition at line 33 of file baseParticle.cxx.
BaseParticle::~BaseParticle | ( | ) | [protected, virtual] |
Default Destructor.
Definition at line 46 of file baseParticle.cxx.
PN_stdfloat BaseParticle::get_theta | ( | ) | const [virtual] |
for spriteParticleRenderer
Reimplemented in ZSpinParticle.
Definition at line 55 of file baseParticle.cxx.
virtual PhysicsObject* BaseParticle::make_copy | ( | ) | const [pure virtual] |
dynamic copy.
Reimplemented from PhysicsObject.
Implemented in OrientedParticle, PointParticle, and ZSpinParticle.
void BaseParticle::output | ( | ostream & | out | ) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from PhysicsObject.
Reimplemented in OrientedParticle, PointParticle, and ZSpinParticle.
Definition at line 66 of file baseParticle.cxx.
void BaseParticle::write | ( | ostream & | out, |
int | indent = 0 |
||
) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented in OrientedParticle, PointParticle, and ZSpinParticle.
Definition at line 79 of file baseParticle.cxx.