#include <discEmitter.h>
Inheritance diagram for DiscEmitter:
Public Types | |
enum | emissionType { ET_EXPLICIT, ET_RADIATE, ET_CUSTOM } |
Public Member Functions | |
DiscEmitter (void) | |
constructor | |
DiscEmitter (const DiscEmitter ©) | |
copy constructor | |
virtual | ~DiscEmitter (void) |
destructor | |
virtual BaseParticleEmitter * | make_copy (void) |
copier | |
void | set_radius (float r) |
radius assignment | |
void | set_outer_angle (float o_angle) |
aoe assignement | |
void | set_inner_angle (float i_angle) |
aoe assignment | |
void | set_outer_magnitude (float o_mag) |
mag assignment | |
void | set_inner_magnitude (float i_mag) |
mag assignment | |
void | set_cubic_lerping (bool clerp) |
clerp flag | |
float | get_radius (void) const |
radius accessor | |
float | get_outer_angle (void) const |
aoe accessor | |
float | get_inner_angle (void) const |
aoe accessor | |
float | get_outer_magnitude (void) const |
mag accessor | |
float | get_inner_magnitude (void) const |
mag accessor | |
bool | get_cubic_lerping (void) const |
clerp flag accessor | |
void | generate (LPoint3f &pos, LVector3f &vel) |
parent generation function | |
void | set_emission_type (emissionType et) |
emission type assignment | |
void | set_amplitude (float a) |
amplitude assignment | |
void | set_amplitude_spread (float as) |
amplitude spread assignment | |
void | set_offset_force (const LVector3f &of) |
user-defined force | |
void | set_explicit_launch_vector (const LVector3f &elv) |
assignment of explicit emission launch vector | |
void | set_radiate_origin (const LPoint3f &ro) |
assignment of radiate emission origin point | |
emissionType | get_emission_type (void) const |
emission type query | |
float | get_amplitude (void) const |
amplitude query | |
float | get_amplitude_spread (void) const |
amplitude spread query | |
LVector3f | get_offset_force (void) const |
user-defined force | |
LVector3f | get_explicit_launch_vector (void) const |
query for explicit emission launch vector | |
LPoint3f | get_radiate_origin (void) const |
query for explicit emission launch vector | |
int | get_ref_count () const |
Returns the current reference count. | |
int | ref () const |
Explicitly increments the reference count. | |
int | unref () const |
Explicitly decrements the reference count. | |
void | test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. | |
Static Public Member Functions | |
TypeHandle | get_class_type () |
void | init_type () |
Protected Attributes | |
emissionType | _emission_type |
LVector3f | _explicit_launch_vector |
LPoint3f | _radiate_origin |
float | _amplitude |
float | _amplitude_spread |
Private Member Functions | |
virtual void | assign_initial_position (LPoint3f &pos) |
Generates a location for a new particle. | |
virtual void | assign_initial_velocity (LVector3f &vel) |
Generates a velocity for a new particle. | |
Private Attributes | |
float | _radius |
float | _outer_aoe |
float | _inner_aoe |
float | _outer_magnitude |
float | _inner_magnitude |
bool | _cubic_lerping |
float | _distance_from_center |
float | _sinf_theta |
float | _cosf_theta |
Definition at line 36 of file discEmitter.h.
|
Definition at line 44 of file baseParticleEmitter.h. Referenced by BaseParticleEmitter::set_emission_type(). |
|
constructor
Definition at line 33 of file discEmitter.cxx. References _cubic_lerping, _inner_aoe, _inner_magnitude, _outer_aoe, _outer_magnitude, and _radius. |
|
copy constructor
Definition at line 49 of file discEmitter.cxx. References _cosf_theta, _distance_from_center, and _sinf_theta. |
|
destructor
Definition at line 72 of file discEmitter.cxx. References _distance_from_center, NORMALIZED_RAND, and MathNumbers::pi_f. |
|
Generates a location for a new particle.
Implements BaseParticleEmitter. Definition at line 97 of file discEmitter.cxx. References _cosf_theta, _cubic_lerping, _distance_from_center, _inner_aoe, _inner_magnitude, _outer_aoe, _outer_magnitude, _sinf_theta, CLERP, deg_2_rad(), and LERP. |
|
Generates a velocity for a new particle.
Implements BaseParticleEmitter. Definition at line 122 of file discEmitter.cxx. |
|
parent generation function
Definition at line 83 of file baseParticleEmitter.cxx. |
|
amplitude query
Definition at line 122 of file baseParticleEmitter.I. References BaseParticleEmitter::_offset_force, and INLINE. |
|
amplitude spread query
Definition at line 148 of file baseParticleEmitter.I. |
|
|
clerp flag accessor
Definition at line 186 of file discEmitter.I. |
|
emission type query
Definition at line 44 of file baseParticleEmitter.I. References BaseParticleEmitter::_explicit_launch_vector, and INLINE. |
|
query for explicit emission launch vector
Definition at line 70 of file baseParticleEmitter.I. References BaseParticleEmitter::_radiate_origin, and INLINE. |
|
aoe accessor
Definition at line 144 of file discEmitter.I. References _cubic_lerping, and INLINE. |
|
mag accessor
Definition at line 172 of file discEmitter.I. |
|
user-defined force
Definition at line 174 of file baseParticleEmitter.I. |
|
aoe accessor
Definition at line 130 of file discEmitter.I. References _inner_magnitude, and INLINE. |
|
mag accessor
Definition at line 158 of file discEmitter.I. |
|
query for explicit emission launch vector
Definition at line 96 of file baseParticleEmitter.I. References BaseParticleEmitter::_amplitude. |
|
radius accessor
Definition at line 116 of file discEmitter.I. |
|
Returns the current reference count.
Definition at line 183 of file referenceCount.I. Referenced by RenderState::determine_bin_index(), RenderEffects::determine_show_bounds(), FontPool::ns_garbage_collect(), TexturePool::ns_garbage_collect(), MaterialPool::ns_get_material(), and TexturePool::ns_release_texture(). |
|
|
copier
Implements BaseParticleEmitter. Definition at line 84 of file discEmitter.cxx. References _cosf_theta, _distance_from_center, _radius, and _sinf_theta. |
|
Explicitly increments the reference count. User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it. The return value is the new reference count. Definition at line 225 of file referenceCount.I. Referenced by ClientDevice::ClientDevice(), EggGroupNode::find_textures(), EggGroupNode::r_apply_texmats(), EggGroupNode::r_flatten_transforms(), and EggGroupNode::reverse_vertex_ordering(). |
|
amplitude assignment
Definition at line 109 of file baseParticleEmitter.I. References BaseParticleEmitter::_amplitude_spread, and INLINE. |
|
amplitude spread assignment
Definition at line 135 of file baseParticleEmitter.I. References BaseParticleEmitter::_offset_force. |
|
clerp flag
Definition at line 102 of file discEmitter.I. References _outer_aoe, and INLINE. |
|
emission type assignment
Definition at line 31 of file baseParticleEmitter.I. References BaseParticleEmitter::_emission_type, BaseParticleEmitter::emissionType, and INLINE. |
|
assignment of explicit emission launch vector
Definition at line 57 of file baseParticleEmitter.I. |
|
aoe assignment
Definition at line 60 of file discEmitter.I. References _outer_magnitude. |
|
mag assignment
Definition at line 88 of file discEmitter.I. |
|
user-defined force
Definition at line 161 of file baseParticleEmitter.I. |
|
aoe assignement
Definition at line 46 of file discEmitter.I. References _inner_aoe, and INLINE. |
|
mag assignment
Definition at line 74 of file discEmitter.I. References _cubic_lerping, and INLINE. |
|
assignment of radiate emission origin point
Definition at line 83 of file baseParticleEmitter.I. References BaseParticleEmitter::_amplitude, and INLINE. |
|
radius assignment
Definition at line 32 of file discEmitter.I. References _outer_aoe, and INLINE. |
|
Does some easy checks to make sure that the reference count isn't completely bogus.
Definition at line 328 of file referenceCount.I. References INLINE. Referenced by EggNode::determine_bin(), and ReferenceCount::~ReferenceCount(). |
|
Explicitly decrements the reference count. Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic; plus, we don't have a virtual destructor anyway.) However, see the helper function unref_delete(). User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it. The return value is the new reference count. Definition at line 293 of file referenceCount.I. References INLINE. Referenced by RenderState::determine_bin_index(), and RenderEffects::determine_show_bounds(). |
|
Definition at line 77 of file baseParticleEmitter.h. Referenced by BaseParticleEmitter::get_radiate_origin(), and BaseParticleEmitter::set_radiate_origin(). |
|
Definition at line 78 of file baseParticleEmitter.h. Referenced by BaseParticleEmitter::set_amplitude(). |
|
Definition at line 49 of file discEmitter.h. Referenced by assign_initial_position(), DiscEmitter(), and make_copy(). |
|
Definition at line 43 of file discEmitter.h. Referenced by assign_initial_position(), DiscEmitter(), get_inner_angle(), and set_outer_magnitude(). |
|
Definition at line 47 of file discEmitter.h. Referenced by assign_initial_position(), DiscEmitter(), make_copy(), and ~DiscEmitter(). |
|
Definition at line 73 of file baseParticleEmitter.h. Referenced by BaseParticleEmitter::set_emission_type(). |
|
Definition at line 74 of file baseParticleEmitter.h. Referenced by BaseParticleEmitter::get_emission_type(), and BaseParticleEmitter::~BaseParticleEmitter(). |
|
Definition at line 41 of file discEmitter.h. Referenced by assign_initial_position(), DiscEmitter(), and set_outer_angle(). |
|
Definition at line 42 of file discEmitter.h. Referenced by assign_initial_position(), DiscEmitter(), and get_outer_angle(). |
|
Definition at line 41 of file discEmitter.h. Referenced by assign_initial_position(), DiscEmitter(), set_cubic_lerping(), and set_radius(). |
|
Definition at line 42 of file discEmitter.h. Referenced by assign_initial_position(), DiscEmitter(), and set_inner_angle(). |
|
Definition at line 75 of file baseParticleEmitter.h. Referenced by BaseParticleEmitter::get_explicit_launch_vector(), and BaseParticleEmitter::~BaseParticleEmitter(). |
|
Definition at line 38 of file discEmitter.h. Referenced by DiscEmitter(), make_copy(), and set_inner_magnitude(). |
|
Definition at line 48 of file discEmitter.h. Referenced by assign_initial_position(), DiscEmitter(), and make_copy(). |