Panda3D
Public Member Functions | List of all members
BoxEmitter Class Reference

Describes a voluminous box region in which particles are generated. More...

#include "boxEmitter.h"

Inheritance diagram for BoxEmitter:
BaseParticleEmitter ReferenceCount MemoryBase

Public Member Functions

 BoxEmitter ()
 constructor More...
 
 BoxEmitter (const BoxEmitter &copy)
 copy constructor More...
 
virtual ~BoxEmitter ()
 destructor More...
 
LPoint3 get_max_bound () const
 boundary accessor More...
 
LPoint3 get_min_bound () const
 boundary accessor More...
 
virtual BaseParticleEmittermake_copy ()
 copier More...
 
virtual void output (ostream &out) const
 Write a string representation of this instance to <out>. More...
 
void set_max_bound (const LPoint3 &vmax)
 boundary assignment More...
 
void set_min_bound (const LPoint3 &vmin)
 boundary assignment More...
 
virtual void write (ostream &out, int indent=0) const
 Write a string representation of this instance to <out>. More...
 
- Public Member Functions inherited from BaseParticleEmitter
virtual ~BaseParticleEmitter ()
 destructor More...
 
void generate (LPoint3 &pos, LVector3 &vel)
 parent generation function More...
 
PN_stdfloat get_amplitude () const
 amplitude query More...
 
PN_stdfloat get_amplitude_spread () const
 amplitude spread query More...
 
emissionType get_emission_type () const
 emission type query More...
 
LVector3 get_explicit_launch_vector () const
 query for explicit emission launch vector More...
 
LVector3 get_offset_force () const
 user-defined force More...
 
LPoint3 get_radiate_origin () const
 query for explicit emission launch vector More...
 
void set_amplitude (PN_stdfloat a)
 amplitude assignment More...
 
void set_amplitude_spread (PN_stdfloat as)
 amplitude spread assignment More...
 
void set_emission_type (emissionType et)
 emission type assignment More...
 
void set_explicit_launch_vector (const LVector3 &elv)
 assignment of explicit emission launch vector More...
 
void set_offset_force (const LVector3 &of)
 user-defined force More...
 
void set_radiate_origin (const LPoint3 &ro)
 assignment of radiate emission origin point More...
 
- Public Member Functions inherited from ReferenceCount
int get_ref_count () const
 Returns the current reference count. More...
 
WeakReferenceListget_weak_list () const
 Returns the WeakReferenceList associated with this ReferenceCount object. More...
 
bool has_weak_list () const
 Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise. More...
 
void local_object ()
 This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack. More...
 
void ref () const
 Explicitly increments the reference count. More...
 
bool test_ref_count_integrity () const
 Does some easy checks to make sure that the reference count isn't completely bogus. More...
 
bool test_ref_count_nonzero () const
 Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More...
 
virtual bool unref () const
 Explicitly decrements the reference count. More...
 
void weak_ref (WeakPointerToVoid *ptv)
 Adds the indicated PointerToVoid as a weak reference to this object. More...
 
void weak_unref (WeakPointerToVoid *ptv)
 Removes the indicated PointerToVoid as a weak reference to this object. More...
 

Additional Inherited Members

- Public Types inherited from BaseParticleEmitter
enum  emissionType { ET_EXPLICIT, ET_RADIATE, ET_CUSTOM }
 
- Static Public Member Functions inherited from ReferenceCount
static TypeHandle get_class_type ()
 
static void init_type ()
 

Detailed Description

Describes a voluminous box region in which particles are generated.

Definition at line 25 of file boxEmitter.h.

Constructor & Destructor Documentation

◆ BoxEmitter() [1/2]

BoxEmitter::BoxEmitter ( )

constructor

Definition at line 23 of file boxEmitter.cxx.

Referenced by make_copy().

◆ BoxEmitter() [2/2]

BoxEmitter::BoxEmitter ( const BoxEmitter copy)

copy constructor

Definition at line 35 of file boxEmitter.cxx.

References ~BoxEmitter().

◆ ~BoxEmitter()

BoxEmitter::~BoxEmitter ( )
virtual

destructor

Definition at line 47 of file boxEmitter.cxx.

References make_copy().

Referenced by BoxEmitter().

Member Function Documentation

◆ get_max_bound()

LPoint3 BoxEmitter::get_max_bound ( ) const
inline

boundary accessor

Definition at line 51 of file boxEmitter.I.

Referenced by get_min_bound().

◆ get_min_bound()

LPoint3 BoxEmitter::get_min_bound ( ) const
inline

boundary accessor

Definition at line 41 of file boxEmitter.I.

References get_max_bound().

Referenced by set_max_bound().

◆ make_copy()

BaseParticleEmitter * BoxEmitter::make_copy ( )
virtual

copier

Implements BaseParticleEmitter.

Definition at line 56 of file boxEmitter.cxx.

References BoxEmitter(), and output().

Referenced by ~BoxEmitter().

◆ output()

void BoxEmitter::output ( ostream &  out) const
virtual

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

Reimplemented from BaseParticleEmitter.

Definition at line 97 of file boxEmitter.cxx.

References write().

Referenced by make_copy().

◆ set_max_bound()

void BoxEmitter::set_max_bound ( const LPoint3 vmax)
inline

boundary assignment

Definition at line 31 of file boxEmitter.I.

References get_min_bound().

Referenced by set_min_bound().

◆ set_min_bound()

void BoxEmitter::set_min_bound ( const LPoint3 vmin)
inline

boundary assignment

Definition at line 21 of file boxEmitter.I.

References set_max_bound().

◆ write()

void BoxEmitter::write ( ostream &  out,
int  indent = 0 
) const
virtual

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

Reimplemented from BaseParticleEmitter.

Definition at line 110 of file boxEmitter.cxx.

References BaseParticleEmitter::write().

Referenced by output().


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