Panda3D
Loading...
Searching...
No Matches
Public Member Functions | List of all members
LineParticleRenderer Class Reference

renders a line from last position to current position – good for rain, sparks, etc. More...

#include "lineParticleRenderer.h"

Inheritance diagram for LineParticleRenderer:
BaseParticleRenderer ReferenceCount MemoryBase

Public Member Functions

 LineParticleRenderer ()
 Default Constructor.
 
 LineParticleRenderer (const LColor &head, const LColor &tail, ParticleRendererAlphaMode alpha_mode)
 Constructor.
 
 LineParticleRenderer (const LineParticleRenderer &copy)
 Copy Constructor.
 
virtual ~LineParticleRenderer ()
 Destructor.
 
const LColor & get_head_color () const
 
PN_stdfloat get_line_scale_factor () const
 accessor
 
const LColor & get_tail_color () const
 
virtual BaseParticleRenderermake_copy ()
 child virtual for spawning systems
 
virtual void output (std::ostream &out) const
 Write a string representation of this instance to <out>.
 
void set_head_color (const LColor &c)
 
void set_line_scale_factor (PN_stdfloat sf)
 accessor
 
void set_tail_color (const LColor &c)
 
virtual void write (std::ostream &out, int indent_level=0) const
 Write a string representation of this instance to <out>.
 
- Public Member Functions inherited from BaseParticleRenderer
virtual ~BaseParticleRenderer ()
 Destructor.
 
ParticleRendererAlphaMode get_alpha_mode () const
 
bool get_ignore_scale () const
 Returns the "ignore scale" flag.
 
GeomNodeget_render_node () const
 Query the geomnode pointer.
 
NodePath get_render_node_path () const
 Query the geomnode pointer.
 
PN_stdfloat get_user_alpha () const
 gets alpha for "user" alpha mode
 
void set_alpha_mode (ParticleRendererAlphaMode am)
 
void set_color_blend_mode (ColorBlendAttrib::Mode bm, ColorBlendAttrib::Operand oa=ColorBlendAttrib::O_zero, ColorBlendAttrib::Operand ob=ColorBlendAttrib::O_zero)
 sets the ColorBlendAttrib on the _render_node
 
void set_ignore_scale (bool ignore_scale)
 Sets the "ignore scale" flag.
 
void set_user_alpha (PN_stdfloat ua)
 sets alpha for "user" alpha mode
 
- Public Member Functions inherited from ReferenceCount
int get_ref_count () const
 
WeakReferenceListget_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.
 
WeakReferenceListweak_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.
 
- Public Member Functions inherited from MemoryBase
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)
 

Additional Inherited Members

- Public Types inherited from BaseParticleRenderer
enum  ParticleRendererAlphaMode {
  PR_ALPHA_NONE , PR_ALPHA_OUT , PR_ALPHA_IN , PR_ALPHA_IN_OUT ,
  PR_ALPHA_USER , PR_NOT_INITIALIZED_YET
}
 
enum  ParticleRendererBlendMethod { PP_NO_BLEND , PP_BLEND_LINEAR , PP_BLEND_CUBIC }
 
- Static Public Member Functions inherited from ReferenceCount
static TypeHandle get_class_type ()
 
static void init_type ()
 
- Public Attributes inherited from ReferenceCount
 get_ref_count
 Returns the current reference count.
 

Detailed Description

renders a line from last position to current position – good for rain, sparks, etc.

Definition at line 31 of file lineParticleRenderer.h.

Constructor & Destructor Documentation

◆ LineParticleRenderer() [1/3]

LineParticleRenderer::LineParticleRenderer ( )

Default Constructor.

Definition at line 28 of file lineParticleRenderer.cxx.

Referenced by make_copy().

◆ LineParticleRenderer() [2/3]

LineParticleRenderer::LineParticleRenderer ( const LineParticleRenderer & copy)

Copy Constructor.

Definition at line 56 of file lineParticleRenderer.cxx.

◆ LineParticleRenderer() [3/3]

LineParticleRenderer::LineParticleRenderer ( const LColor & head,
const LColor & tail,
ParticleRendererAlphaMode alpha_mode )
explicit

Constructor.

Definition at line 42 of file lineParticleRenderer.cxx.

◆ ~LineParticleRenderer()

LineParticleRenderer::~LineParticleRenderer ( )
virtual

Destructor.

Definition at line 69 of file lineParticleRenderer.cxx.

Member Function Documentation

◆ get_head_color()

const LColor & LineParticleRenderer::get_head_color ( ) const
inline

Definition at line 33 of file lineParticleRenderer.I.

◆ get_line_scale_factor()

PN_stdfloat LineParticleRenderer::get_line_scale_factor ( ) const
inline

accessor

Definition at line 57 of file lineParticleRenderer.I.

◆ get_tail_color()

const LColor & LineParticleRenderer::get_tail_color ( ) const
inline

Definition at line 41 of file lineParticleRenderer.I.

◆ make_copy()

BaseParticleRenderer * LineParticleRenderer::make_copy ( )
virtual

child virtual for spawning systems

Implements BaseParticleRenderer.

Definition at line 77 of file lineParticleRenderer.cxx.

References LineParticleRenderer().

◆ output()

void LineParticleRenderer::output ( std::ostream & out) const
virtual

Write a string representation of this instance to <out>.

Reimplemented from BaseParticleRenderer.

Definition at line 234 of file lineParticleRenderer.cxx.

◆ set_head_color()

void LineParticleRenderer::set_head_color ( const LColor & c)
inline

Definition at line 17 of file lineParticleRenderer.I.

◆ set_line_scale_factor()

void LineParticleRenderer::set_line_scale_factor ( PN_stdfloat sf)
inline

accessor

Definition at line 49 of file lineParticleRenderer.I.

◆ set_tail_color()

void LineParticleRenderer::set_tail_color ( const LColor & c)
inline

Definition at line 25 of file lineParticleRenderer.I.

◆ write()

void LineParticleRenderer::write ( std::ostream & out,
int indent_level = 0 ) const
virtual

Write a string representation of this instance to <out>.

Reimplemented from BaseParticleRenderer.

Definition at line 244 of file lineParticleRenderer.cxx.

References indent(), and BaseParticleRenderer::write().


The documentation for this class was generated from the following files: