Panda3D
Public Types | Public Member Functions | List of all members
BaseParticleEmitter Class Reference
Inheritance diagram for BaseParticleEmitter:
ReferenceCount BoxEmitter DiscEmitter LineEmitter PointEmitter RectangleEmitter RingEmitter SphereSurfaceEmitter SphereVolumeEmitter TangentRingEmitter

Public Types

enum  EmissionType { ET_EXPLICIT = 0, ET_RADIATE = 1, ET_CUSTOM = 2 }
 

Public Member Functions

 generate (LPoint3 pos, LVector3 vel)
 parent generation function More...
 
float getAmplitude ()
 amplitude query More...
 
float getAmplitudeSpread ()
 amplitude spread query More...
 
BaseParticleEmitter::EmissionType getEmissionType ()
 emission type query More...
 
LVector3 getExplicitLaunchVector ()
 query for explicit emission launch vector More...
 
LVector3 getOffsetForce ()
 user-defined force More...
 
LPoint3 getRadiateOrigin ()
 query for explicit emission launch vector More...
 
BaseParticleEmitter makeCopy ()
 
 output (Ostream out)
 Write a string representation of this instance to <out>. More...
 
 setAmplitude (float a)
 amplitude assignment More...
 
 setAmplitudeSpread (float as)
 amplitude spread assignment More...
 
 setEmissionType (BaseParticleEmitter::EmissionType et)
 emission type assignment More...
 
 setExplicitLaunchVector (const LVector3 elv)
 assignment of explicit emission launch vector More...
 
 setOffsetForce (const LVector3 of)
 
 setRadiateOrigin (const LPoint3 ro)
 assignment of radiate emission origin point More...
 
 write (Ostream out, int indent)
 Write a string representation of this instance to <out>. More...
 
- Public Member Functions inherited from ReferenceCount
int getRefCount ()
 Returns the current reference count. More...
 
 ref ()
 Explicitly increments the reference count. More...
 
bool testRefCountIntegrity ()
 Does some easy checks to make sure that the reference count isn't completely bogus. More...
 
bool testRefCountNonzero ()
 Does some easy checks to make sure that the reference count isn't zero, or completely bogus. More...
 
bool unref ()
 Explicitly decrements the reference count. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ReferenceCount
static TypeHandle getClassType ()
 
- Public Attributes inherited from ReferenceCount
int ref_count
 The current reference count. More...
 

Member Enumeration Documentation

◆ EmissionType

Enumerator
ET_EXPLICIT 

all particles are emitted in parallel along the same vector

ET_RADIATE 

all particles radiate away from a single point

ET_CUSTOM 

particle launch vectors are dependent on particular derived emitter

Member Function Documentation

◆ generate()

generate ( LPoint3  pos,
LVector3  vel 
)

parent generation function

◆ getAmplitude()

float getAmplitude ( )

amplitude query

◆ getAmplitudeSpread()

float getAmplitudeSpread ( )

amplitude spread query

◆ getEmissionType()

BaseParticleEmitter::EmissionType getEmissionType ( )

emission type query

◆ getExplicitLaunchVector()

LVector3 getExplicitLaunchVector ( )

query for explicit emission launch vector

◆ getOffsetForce()

LVector3 getOffsetForce ( )

user-defined force

◆ getRadiateOrigin()

LPoint3 getRadiateOrigin ( )

query for explicit emission launch vector

◆ makeCopy()

BaseParticleEmitter makeCopy ( )

◆ output()

output ( Ostream  out)

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

◆ setAmplitude()

setAmplitude ( float  a)

amplitude assignment

◆ setAmplitudeSpread()

setAmplitudeSpread ( float  as)

amplitude spread assignment

◆ setEmissionType()

setEmissionType ( BaseParticleEmitter::EmissionType  et)

emission type assignment

◆ setExplicitLaunchVector()

setExplicitLaunchVector ( const LVector3  elv)

assignment of explicit emission launch vector

◆ setOffsetForce()

setOffsetForce ( const LVector3  of)

◆ setRadiateOrigin()

setRadiateOrigin ( const LPoint3  ro)

assignment of radiate emission origin point

◆ write()

write ( Ostream  out,
int  indent 
)

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