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

SparkleParticleRenderer Class Reference

#include <sparkleParticleRenderer.h>

Inheritance diagram for SparkleParticleRenderer:

BaseParticleRenderer ReferenceCount List of all members.

Private Member Functions

 SparkleParticleRenderer (void)
 SparkleParticleRenderer (const SparkleParticleRenderer &copy)
 SparkleParticleRenderer (const Colorf &center, const Colorf &edge, float birth_radius, float death_radius, SparkleParticleLifeScale life_scale, ParticleRendererAlphaMode alpha_mode)
virtual ~SparkleParticleRenderer (void)
virtual BaseParticleRenderermake_copy (void)
INLINE void set_center_color (const Colorf &c)
INLINE void set_edge_color (const Colorf &c)
INLINE void set_birth_radius (float radius)
INLINE void set_death_radius (float radius)
INLINE void set_life_scale (SparkleParticleLifeScale)
INLINE const Colorfget_center_color (void) const
INLINE const Colorfget_edge_color (void) const
INLINE float get_birth_radius (void) const
INLINE float get_death_radius (void) const
INLINE SparkleParticleLifeScale get_life_scale (void) const
 PT (GeomLine) _line_primitive
INLINE float get_radius (BaseParticle *bp)
virtual void birth_particle (int index)
virtual void kill_particle (int index)
virtual void init_geoms (void)
virtual void render (pvector< PT(PhysicsObject) > &po_vector, int ttl_particles)
virtual void resize_pool (int new_size)

Private Attributes

PUBLISHED __pad0__: enum SparkleParticleLifeScale { SP_NO_SCALE
PUBLISHED SP_SCALE
Colorf _center_color
Colorf _edge_color
float _birth_radius
float _death_radius
PTA_Vertexf _vertex_array
PTA_Colorf _color_array
int _max_pool_size
SparkleParticleLifeScale _life_scale
LPoint3f _aabb_min
LPoint3f _aabb_max

Constructor & Destructor Documentation

SparkleParticleRenderer::SparkleParticleRenderer void   )  [private]
 

Definition at line 31 of file sparkleParticleRenderer.cxx.

References Colorf, and init_geoms().

Referenced by make_copy().

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

Definition at line 67 of file sparkleParticleRenderer.cxx.

References _birth_radius, _center_color, _death_radius, _edge_color, _life_scale, and init_geoms().

SparkleParticleRenderer::SparkleParticleRenderer const Colorf center,
const Colorf edge,
float  birth_radius,
float  death_radius,
SparkleParticleLifeScale  life_scale,
ParticleRendererAlphaMode  alpha_mode
[private]
 

Definition at line 48 of file sparkleParticleRenderer.cxx.

References init_geoms().

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

Definition at line 86 of file sparkleParticleRenderer.cxx.


Member Function Documentation

void SparkleParticleRenderer::birth_particle int  index  )  [private, virtual]
 

Implements BaseParticleRenderer.

Definition at line 107 of file sparkleParticleRenderer.cxx.

INLINE float SparkleParticleRenderer::get_birth_radius void   )  const [private]
 

INLINE const Colorf& SparkleParticleRenderer::get_center_color void   )  const [private]
 

INLINE float SparkleParticleRenderer::get_death_radius void   )  const [private]
 

INLINE const Colorf& SparkleParticleRenderer::get_edge_color void   )  const [private]
 

INLINE SparkleParticleLifeScale SparkleParticleRenderer::get_life_scale void   )  const [private]
 

INLINE float SparkleParticleRenderer::get_radius BaseParticle bp  )  [private]
 

Referenced by render().

void SparkleParticleRenderer::init_geoms void   )  [private, virtual]
 

Implements BaseParticleRenderer.

Definition at line 147 of file sparkleParticleRenderer.cxx.

References GeomNode::add_geom(), BaseParticleRenderer::get_render_node(), and GeomNode::remove_all_geoms().

Referenced by resize_pool(), and SparkleParticleRenderer().

void SparkleParticleRenderer::kill_particle int  index  )  [private, virtual]
 

Implements BaseParticleRenderer.

Definition at line 117 of file sparkleParticleRenderer.cxx.

BaseParticleRenderer * SparkleParticleRenderer::make_copy void   )  [private, virtual]
 

Implements BaseParticleRenderer.

Definition at line 96 of file sparkleParticleRenderer.cxx.

References SparkleParticleRenderer().

SparkleParticleRenderer::PT GeomLine   )  [private]
 

void SparkleParticleRenderer::render pvector< PT(PhysicsObject) > &  po_vector,
int  ttl_particles
[private, virtual]
 

Implements BaseParticleRenderer.

Definition at line 162 of file sparkleParticleRenderer.cxx.

References _aabb_max, _aabb_min, BaseParticleRenderer::_alpha_mode, _center_color, _color_array, _edge_color, _vertex_array, alpha, Colorf, BaseParticle::get_alive(), BaseParticle::get_parameterized_age(), get_radius(), BaseParticleRenderer::get_render_node(), BaseParticleRenderer::get_user_alpha(), BoundedObject::mark_bound_stale(), and Vertexf.

void SparkleParticleRenderer::resize_pool int  new_size  )  [private, virtual]
 

Implements BaseParticleRenderer.

Definition at line 128 of file sparkleParticleRenderer.cxx.

References _color_array, _max_pool_size, _vertex_array, PointerToArray< Colorf >::empty_array(), PointerToArray< Vertexf >::empty_array(), G_PER_VERTEX, and init_geoms().

INLINE void SparkleParticleRenderer::set_birth_radius float  radius  )  [private]
 

INLINE void SparkleParticleRenderer::set_center_color const Colorf c  )  [private]
 

INLINE void SparkleParticleRenderer::set_death_radius float  radius  )  [private]
 

INLINE void SparkleParticleRenderer::set_edge_color const Colorf c  )  [private]
 

INLINE void SparkleParticleRenderer::set_life_scale SparkleParticleLifeScale   )  [private]
 


Member Data Documentation

PUBLISHED SparkleParticleRenderer::__pad0__ [private]
 

Reimplemented from BaseParticleRenderer.

Definition at line 43 of file sparkleParticleRenderer.h.

LPoint3f SparkleParticleRenderer::_aabb_max [private]
 

Definition at line 88 of file sparkleParticleRenderer.h.

Referenced by render().

LPoint3f SparkleParticleRenderer::_aabb_min [private]
 

Definition at line 88 of file sparkleParticleRenderer.h.

Referenced by render().

float SparkleParticleRenderer::_birth_radius [private]
 

Definition at line 77 of file sparkleParticleRenderer.h.

Referenced by SparkleParticleRenderer().

Colorf SparkleParticleRenderer::_center_color [private]
 

Definition at line 74 of file sparkleParticleRenderer.h.

Referenced by render(), and SparkleParticleRenderer().

PTA_Colorf SparkleParticleRenderer::_color_array [private]
 

Definition at line 83 of file sparkleParticleRenderer.h.

Referenced by render(), and resize_pool().

float SparkleParticleRenderer::_death_radius [private]
 

Definition at line 78 of file sparkleParticleRenderer.h.

Referenced by SparkleParticleRenderer().

Colorf SparkleParticleRenderer::_edge_color [private]
 

Definition at line 75 of file sparkleParticleRenderer.h.

Referenced by render(), and SparkleParticleRenderer().

SparkleParticleLifeScale SparkleParticleRenderer::_life_scale [private]
 

Definition at line 87 of file sparkleParticleRenderer.h.

Referenced by SparkleParticleRenderer().

int SparkleParticleRenderer::_max_pool_size [private]
 

Definition at line 85 of file sparkleParticleRenderer.h.

Referenced by resize_pool().

PTA_Vertexf SparkleParticleRenderer::_vertex_array [private]
 

Definition at line 82 of file sparkleParticleRenderer.h.

Referenced by render(), and resize_pool().

PUBLISHED SparkleParticleRenderer::SP_SCALE [private]
 

Definition at line 43 of file sparkleParticleRenderer.h.


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