|
| ParticleSystem (const ParticleSystem ©) |
| Copy Constructor.
|
|
| ParticleSystem (int pool_size=0) |
| Default Constructor.
|
|
| ~ParticleSystem () |
| You get the ankles and I'll get the wrists.
|
|
void | add_spawn_template (ParticleSystem *ps) |
|
void | clear_floor_z () |
|
void | clear_spawn_templates () |
|
void | clear_to_initial () |
| Resets the system to its start state by resizing to 0, then resizing back to current size.
|
|
virtual TypeHandle | force_init_type () |
|
bool | get_active_system_flag () const |
|
PN_stdfloat | get_birth_rate () const |
|
BaseParticleEmitter * | get_emitter () const |
|
BaseParticleFactory * | get_factory () const |
|
PN_stdfloat | get_floor_z () const |
|
bool | get_i_was_spawned_flag () const |
|
int | get_litter_size () const |
|
int | get_litter_spread () const |
|
int | get_living_particles () const |
|
bool | get_local_velocity_flag () const |
|
int | get_pool_size () const |
|
NodePath | get_render_parent () const |
|
BaseParticleRenderer * | get_renderer () const |
|
PN_stdfloat | get_soft_birth_rate () const |
|
bool | get_spawn_on_death_flag () const |
|
PandaNode * | get_spawn_render_node () const |
|
NodePath | get_spawn_render_node_path () const |
|
PN_stdfloat | get_system_age () const |
|
bool | get_system_grows_older_flag () const |
|
PN_stdfloat | get_system_lifespan () const |
|
PN_stdfloat | get_tics_since_birth () const |
|
virtual TypeHandle | get_type () const |
|
void | induce_labor () |
| Forces the birth of a particle litter this frame by resetting _tics_since_birth.
|
|
virtual void | output (std::ostream &out) const |
| Write a string representation of this instance to <out>.
|
|
void | render () |
| Populates an attached GeomNode structure with the particle geometry for rendering.
|
|
void | set_active_system_flag (bool a) |
|
void | set_birth_rate (PN_stdfloat new_br) |
|
void | set_emitter (BaseParticleEmitter *e) |
|
void | set_factory (BaseParticleFactory *f) |
|
void | set_floor_z (PN_stdfloat z) |
|
void | set_litter_size (int new_ls) |
|
void | set_litter_spread (int new_ls) |
|
void | set_local_velocity_flag (bool lv) |
|
void | set_pool_size (int size) |
|
void | set_render_parent (const NodePath &node) |
|
void | set_render_parent (PandaNode *node) |
|
void | set_renderer (BaseParticleRenderer *r) |
|
void | set_soft_birth_rate (PN_stdfloat new_br) |
|
void | set_spawn_on_death_flag (bool sod) |
|
void | set_spawn_render_node (PandaNode *node) |
|
void | set_spawn_render_node_path (const NodePath &node) |
|
void | set_system_age (PN_stdfloat age) |
|
void | set_system_grows_older_flag (bool sgo) |
|
void | set_system_lifespan (PN_stdfloat sl) |
|
void | set_template_system_flag (bool tsf) |
|
void | soft_start (PN_stdfloat br, PN_stdfloat first_birth_delay) |
| Causes system to use birth rate set by set_birth_rate(), with the system's first birth being delayed by the value of first_birth_delay.
|
|
void | soft_start (PN_stdfloat br=0.0) |
| Causes system to use birth rate set by set_birth_rate()
|
|
void | soft_stop (PN_stdfloat br=0.0) |
| Causes system to use birth rate set by set_soft_birth_rate()
|
|
void | update (PN_stdfloat dt) |
| Updates the particle system.
|
|
virtual void | write (std::ostream &out, int indent=0) const |
| Write a string representation of this instance to <out>.
|
|
virtual void | write_free_particle_fifo (std::ostream &out, int indent=0) const |
| Write a string representation of this instance to <out>.
|
|
virtual void | write_spawn_templates (std::ostream &out, int indent=0) const |
| Write a string representation of this instance to <out>.
|
|
| Physical (const Physical ©) |
| copy constructor (note- does deep copy of pn's) but does NOT attach itself to its template's physicsmanager.
|
|
| Physical (int total_objects=1, bool pre_alloc=false) |
| Default Constructor The idea here is that most physicals will NOT be collections of sets (i.e.
|
|
virtual | ~Physical () |
| destructor
|
|
void | add_angular_force (AngularForce *f) |
| Adds an angular force to the force list.
|
|
void | add_linear_force (LinearForce *f) |
| Adds a linear force to the force list.
|
|
void | add_physics_object (PhysicsObject *po) |
| Adds an object to the physics object vector.
|
|
void | clear_angular_forces () |
| Erases the angular force list.
|
|
void | clear_linear_forces () |
| Erases the linear force list.
|
|
void | clear_physics_objects () |
| Erases the object list.
|
|
const AngularForceVector & | get_angular_forces () const |
|
const LinearForceVector & | get_linear_forces () const |
|
int | get_num_angular_forces () const |
|
int | get_num_linear_forces () const |
|
const PhysicsObject::Vector & | get_object_vector () const |
|
const PhysicsObjectCollection | get_objects () const |
|
PhysicsObject * | get_phys_body () const |
|
PhysicalNode * | get_physical_node () const |
|
NodePath | get_physical_node_path () const |
|
PhysicsManager * | get_physics_manager () const |
|
PN_stdfloat | get_viscosity () const |
|
| PT (AngularForce) get_angular_force(int index) const |
|
| PT (LinearForce) get_linear_force(int index) const |
|
void | remove_angular_force (AngularForce *f) |
| removes an angular force from the force list
|
|
void | remove_linear_force (LinearForce *f) |
| removes a linear force from the force list
|
|
void | set_viscosity (PN_stdfloat viscosity) |
|
virtual void | write_angular_forces (std::ostream &out=std::cout, int indent=0) const |
| Write a string representation of this instance to <out>.
|
|
virtual void | write_linear_forces (std::ostream &out=std::cout, int indent=0) const |
| Write a string representation of this instance to <out>.
|
|
virtual void | write_physics_objects (std::ostream &out=std::cout, int indent=0) const |
| Write a string representation of this instance to <out>.
|
|
| TypedReferenceCount (const TypedReferenceCount ©) |
|
void | operator= (const TypedReferenceCount ©) |
|
| TypedObject (const TypedObject ©)=default |
|
TypedObject * | as_typed_object () |
| Returns the object, upcast (if necessary) to a TypedObject pointer.
|
|
const TypedObject * | as_typed_object () const |
| Returns the object, upcast (if necessary) to a TypedObject pointer.
|
|
int | get_best_parent_from_Set (const std::set< int > &) const |
|
int | get_type_index () const |
| Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.
|
|
bool | is_exact_type (TypeHandle handle) const |
| Returns true if the current object is the indicated type exactly.
|
|
bool | is_of_type (TypeHandle handle) const |
| Returns true if the current object is or derives from the indicated type.
|
|
TypedObject & | operator= (const TypedObject ©)=default |
|
void | operator delete (void *, void *) |
|
void | operator delete (void *ptr) |
|
void | operator delete[] (void *, void *) |
|
void | operator delete[] (void *ptr) |
|
void * | operator new (size_t size) |
|
void * | operator new (size_t size, void *ptr) |
|
void * | operator new[] (size_t size) |
|
void * | operator new[] (size_t size, void *ptr) |
|
int | get_ref_count () const |
|
WeakReferenceList * | get_weak_list () const |
| Returns the WeakReferenceList associated with this ReferenceCount object.
|
|
bool | has_weak_list () const |
| Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise.
|
|
void | local_object () |
| This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack.
|
|
void | ref () const |
| Explicitly increments the reference count.
|
|
bool | ref_if_nonzero () const |
| Atomically increases the reference count of this object if it is not zero.
|
|
bool | test_ref_count_integrity () const |
| Does some easy checks to make sure that the reference count isn't completely bogus.
|
|
bool | test_ref_count_nonzero () const |
| Does some easy checks to make sure that the reference count isn't zero, or completely bogus.
|
|
virtual bool | unref () const |
| Explicitly decrements the reference count.
|
|
bool | unref_if_one () const |
| Atomically decreases the reference count of this object if it is one.
|
|
WeakReferenceList * | weak_ref () |
| Adds the indicated PointerToVoid as a weak reference to this object.
|
|
void | weak_unref () |
| Removes the indicated PointerToVoid as a weak reference to this object.
|
|
Contains and manages a particle system.
Definition at line 34 of file particleSystem.h.