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

PointParticleRenderer Class Reference

#include <pointParticleRenderer.h>

Inheritance diagram for PointParticleRenderer:

BaseParticleRenderer ReferenceCount List of all members.

Private Member Functions

 PointParticleRenderer (const PointParticleRenderer &copy)
 PointParticleRenderer (ParticleRendererAlphaMode ad=PR_ALPHA_NONE, float point_size=1.0f, PointParticleBlendType bt=PP_ONE_COLOR, ParticleRendererBlendMethod bm=PP_NO_BLEND, const Colorf &sc=Colorf(1.0f, 1.0f, 1.0f, 1.0f), const Colorf &ec=Colorf(1.0f, 1.0f, 1.0f, 1.0f))
virtual ~PointParticleRenderer (void)
virtual BaseParticleRenderermake_copy (void)
INLINE void set_point_size (float point_size)
INLINE void set_start_color (const Colorf &sc)
INLINE void set_end_color (const Colorf &ec)
INLINE void set_blend_type (PointParticleBlendType bt)
INLINE void set_blend_method (ParticleRendererBlendMethod bm)
INLINE float get_point_size (void) const
INLINE const Colorfget_start_color (void) const
INLINE const Colorfget_end_color (void) const
INLINE PointParticleBlendType get_blend_type (void) const
INLINE ParticleRendererBlendMethod get_blend_method (void) const
 PT (GeomPoint) _point_primitive
Colorf create_color (const BaseParticle *p)
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 PointParticleBlendType { PP_ONE_COLOR
PUBLISHED PP_BLEND_LIFE
PUBLISHED PP_BLEND_VEL
Colorf _start_color
Colorf _end_color
float _point_size
PTA_Vertexf _vertex_array
PTA_Colorf _color_array
int _max_pool_size
PointParticleBlendType _blend_type
ParticleRendererBlendMethod _blend_method
LPoint3f _aabb_min
LPoint3f _aabb_max

Constructor & Destructor Documentation

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

Definition at line 51 of file pointParticleRenderer.cxx.

References _blend_method, _blend_type, _end_color, _start_color, and init_geoms().

Referenced by make_copy().

PointParticleRenderer::PointParticleRenderer ParticleRendererAlphaMode  ad = PR_ALPHA_NONE,
float  point_size = 1.0f,
PointParticleBlendType  bt = PP_ONE_COLOR,
ParticleRendererBlendMethod  bm = PP_NO_BLEND,
const Colorf sc = Colorf(1.0f, 1.0f, 1.0f, 1.0f),
const Colorf ec = Colorf(1.0f, 1.0f, 1.0f, 1.0f)
[private]
 

Definition at line 30 of file pointParticleRenderer.cxx.

References init_geoms().

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

Definition at line 70 of file pointParticleRenderer.cxx.


Member Function Documentation

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

Implements BaseParticleRenderer.

Definition at line 131 of file pointParticleRenderer.cxx.

Colorf PointParticleRenderer::create_color const BaseParticle p  )  [private]
 

Definition at line 151 of file pointParticleRenderer.cxx.

References BaseParticleRenderer::_alpha_mode, _blend_method, _end_color, _start_color, Colorf, CUBIC_T, BaseParticleRenderer::get_user_alpha(), LERP, p, PP_BLEND_LIFE, and PP_BLEND_VEL.

Referenced by render().

INLINE ParticleRendererBlendMethod PointParticleRenderer::get_blend_method void   )  const [private]
 

INLINE PointParticleBlendType PointParticleRenderer::get_blend_type void   )  const [private]
 

INLINE const Colorf& PointParticleRenderer::get_end_color void   )  const [private]
 

INLINE float PointParticleRenderer::get_point_size void   )  const [private]
 

INLINE const Colorf& PointParticleRenderer::get_start_color void   )  const [private]
 

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

Implements BaseParticleRenderer.

Definition at line 114 of file pointParticleRenderer.cxx.

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

Referenced by PointParticleRenderer(), and resize_pool().

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

Implements BaseParticleRenderer.

Definition at line 141 of file pointParticleRenderer.cxx.

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

Implements BaseParticleRenderer.

Definition at line 80 of file pointParticleRenderer.cxx.

References PointParticleRenderer().

PointParticleRenderer::PT GeomPoint   )  [private]
 

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

Implements BaseParticleRenderer.

Definition at line 218 of file pointParticleRenderer.cxx.

References _aabb_max, _aabb_min, _color_array, _vertex_array, Colorf, create_color(), BaseParticle::get_alive(), BaseParticleRenderer::get_render_node(), BoundedObject::mark_bound_stale(), and Vertexf.

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

Implements BaseParticleRenderer.

Definition at line 92 of file pointParticleRenderer.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 PointParticleRenderer::set_blend_method ParticleRendererBlendMethod  bm  )  [private]
 

INLINE void PointParticleRenderer::set_blend_type PointParticleBlendType  bt  )  [private]
 

INLINE void PointParticleRenderer::set_end_color const Colorf ec  )  [private]
 

INLINE void PointParticleRenderer::set_point_size float  point_size  )  [private]
 

INLINE void PointParticleRenderer::set_start_color const Colorf sc  )  [private]
 


Member Data Documentation

PUBLISHED PointParticleRenderer::__pad0__ [private]
 

Reimplemented from BaseParticleRenderer.

Definition at line 41 of file pointParticleRenderer.h.

LPoint3f PointParticleRenderer::_aabb_max [private]
 

Definition at line 84 of file pointParticleRenderer.h.

Referenced by render().

LPoint3f PointParticleRenderer::_aabb_min [private]
 

Definition at line 84 of file pointParticleRenderer.h.

Referenced by render().

ParticleRendererBlendMethod PointParticleRenderer::_blend_method [private]
 

Definition at line 82 of file pointParticleRenderer.h.

Referenced by create_color(), and PointParticleRenderer().

PointParticleBlendType PointParticleRenderer::_blend_type [private]
 

Definition at line 81 of file pointParticleRenderer.h.

Referenced by PointParticleRenderer().

PTA_Colorf PointParticleRenderer::_color_array [private]
 

Definition at line 77 of file pointParticleRenderer.h.

Referenced by render(), and resize_pool().

Colorf PointParticleRenderer::_end_color [private]
 

Definition at line 71 of file pointParticleRenderer.h.

Referenced by create_color(), and PointParticleRenderer().

int PointParticleRenderer::_max_pool_size [private]
 

Definition at line 79 of file pointParticleRenderer.h.

Referenced by resize_pool().

float PointParticleRenderer::_point_size [private]
 

Definition at line 72 of file pointParticleRenderer.h.

Referenced by init_geoms().

Colorf PointParticleRenderer::_start_color [private]
 

Definition at line 71 of file pointParticleRenderer.h.

Referenced by create_color(), and PointParticleRenderer().

PTA_Vertexf PointParticleRenderer::_vertex_array [private]
 

Definition at line 76 of file pointParticleRenderer.h.

Referenced by render(), and resize_pool().

PUBLISHED PointParticleRenderer::PP_BLEND_LIFE [private]
 

Definition at line 41 of file pointParticleRenderer.h.

Referenced by create_color().

PUBLISHED PointParticleRenderer::PP_BLEND_VEL [private]
 

Definition at line 41 of file pointParticleRenderer.h.

Referenced by create_color().


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