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

LineParticleRenderer Class Reference

#include <lineParticleRenderer.h>

Inheritance diagram for LineParticleRenderer:

BaseParticleRenderer ReferenceCount List of all members.

Private Member Functions

 PT (GeomLine) _line_primitive
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)
 LineParticleRenderer (const LineParticleRenderer &copy)
 LineParticleRenderer (const Colorf &head, const Colorf &tail, ParticleRendererAlphaMode alpha_mode)
virtual ~LineParticleRenderer (void)
virtual BaseParticleRenderermake_copy (void)
INLINE void set_head_color (const Colorf &c)
INLINE void set_tail_color (const Colorf &c)
INLINE const Colorfget_head_color (void) const
INLINE const Colorfget_tail_color (void) const

Private Attributes

Colorf _head_color
Colorf _tail_color
PTA_Vertexf _vertex_array
PTA_Colorf _color_array
int _max_pool_size
LPoint3f _aabb_min
LPoint3f _aabb_max
PUBLISHED __pad0__: LineParticleRenderer(void)

Constructor & Destructor Documentation

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

Definition at line 61 of file lineParticleRenderer.cxx.

References _head_color, _tail_color, and init_geoms().

Referenced by make_copy().

LineParticleRenderer::LineParticleRenderer const Colorf head,
const Colorf tail,
ParticleRendererAlphaMode  alpha_mode
[private]
 

Definition at line 44 of file lineParticleRenderer.cxx.

References init_geoms().

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

Definition at line 77 of file lineParticleRenderer.cxx.


Member Function Documentation

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

Implements BaseParticleRenderer.

Definition at line 98 of file lineParticleRenderer.cxx.

INLINE const Colorf& LineParticleRenderer::get_head_color void   )  const [private]
 

INLINE const Colorf& LineParticleRenderer::get_tail_color void   )  const [private]
 

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

Implements BaseParticleRenderer.

Definition at line 138 of file lineParticleRenderer.cxx.

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

Referenced by LineParticleRenderer(), and resize_pool().

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

Implements BaseParticleRenderer.

Definition at line 108 of file lineParticleRenderer.cxx.

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

Implements BaseParticleRenderer.

Definition at line 87 of file lineParticleRenderer.cxx.

References LineParticleRenderer().

LineParticleRenderer::PT GeomLine   )  [private]
 

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

Implements BaseParticleRenderer.

Definition at line 153 of file lineParticleRenderer.cxx.

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

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

Implements BaseParticleRenderer.

Definition at line 119 of file lineParticleRenderer.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 LineParticleRenderer::set_head_color const Colorf c  )  [private]
 

INLINE void LineParticleRenderer::set_tail_color const Colorf c  )  [private]
 


Member Data Documentation

PUBLISHED LineParticleRenderer::__pad0__ [private]
 

Reimplemented from BaseParticleRenderer.

Definition at line 59 of file lineParticleRenderer.h.

LPoint3f LineParticleRenderer::_aabb_max [private]
 

Definition at line 49 of file lineParticleRenderer.h.

Referenced by render().

LPoint3f LineParticleRenderer::_aabb_min [private]
 

Definition at line 49 of file lineParticleRenderer.h.

Referenced by render().

PTA_Colorf LineParticleRenderer::_color_array [private]
 

Definition at line 45 of file lineParticleRenderer.h.

Referenced by render(), and resize_pool().

Colorf LineParticleRenderer::_head_color [private]
 

Definition at line 39 of file lineParticleRenderer.h.

Referenced by LineParticleRenderer(), and render().

int LineParticleRenderer::_max_pool_size [private]
 

Definition at line 47 of file lineParticleRenderer.h.

Referenced by resize_pool().

Colorf LineParticleRenderer::_tail_color [private]
 

Definition at line 40 of file lineParticleRenderer.h.

Referenced by LineParticleRenderer(), and render().

PTA_Vertexf LineParticleRenderer::_vertex_array [private]
 

Definition at line 44 of file lineParticleRenderer.h.

Referenced by render(), and resize_pool().


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