Panda3D
Loading...
Searching...
No Matches
Public Member Functions | List of all members
BaseParticleFactory Class Referenceabstract

Pure Virtual base class for creating particles. More...

#include "baseParticleFactory.h"

Inheritance diagram for BaseParticleFactory:
ReferenceCount MemoryBase OrientedParticleFactory PointParticleFactory ZSpinParticleFactory

Public Member Functions

virtual ~BaseParticleFactory ()
 destructor
 
virtual BaseParticlealloc_particle () const =0
 
PN_stdfloat get_lifespan_base () const
 public
 
PN_stdfloat get_lifespan_spread () const
 public
 
PN_stdfloat get_mass_base () const
 public
 
PN_stdfloat get_mass_spread () const
 public
 
PN_stdfloat get_terminal_velocity_base () const
 public
 
PN_stdfloat get_terminal_velocity_spread () const
 public
 
virtual void output (std::ostream &out) const
 Write a string representation of this instance to <out>.
 
void populate_particle (BaseParticle *bp)
 public
 
void set_lifespan_base (PN_stdfloat lb)
 public
 
void set_lifespan_spread (PN_stdfloat ls)
 public
 
void set_mass_base (PN_stdfloat mb)
 public
 
void set_mass_spread (PN_stdfloat ms)
 public
 
void set_terminal_velocity_base (PN_stdfloat tvb)
 public
 
void set_terminal_velocity_spread (PN_stdfloat tvs)
 public
 
virtual void write (std::ostream &out, int indent=0) const
 Write a string representation of this instance to <out>.
 
- 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

- 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

Pure Virtual base class for creating particles.

Definition at line 28 of file baseParticleFactory.h.

Constructor & Destructor Documentation

◆ ~BaseParticleFactory()

BaseParticleFactory::~BaseParticleFactory ( )
virtual

destructor

Definition at line 47 of file baseParticleFactory.cxx.

Member Function Documentation

◆ get_lifespan_base()

PN_stdfloat BaseParticleFactory::get_lifespan_base ( ) const
inline

public

Definition at line 67 of file baseParticleFactory.I.

◆ get_lifespan_spread()

PN_stdfloat BaseParticleFactory::get_lifespan_spread ( ) const
inline

public

Definition at line 75 of file baseParticleFactory.I.

◆ get_mass_base()

PN_stdfloat BaseParticleFactory::get_mass_base ( ) const
inline

public

Definition at line 83 of file baseParticleFactory.I.

◆ get_mass_spread()

PN_stdfloat BaseParticleFactory::get_mass_spread ( ) const
inline

public

Definition at line 91 of file baseParticleFactory.I.

◆ get_terminal_velocity_base()

PN_stdfloat BaseParticleFactory::get_terminal_velocity_base ( ) const
inline

public

Definition at line 99 of file baseParticleFactory.I.

◆ get_terminal_velocity_spread()

PN_stdfloat BaseParticleFactory::get_terminal_velocity_spread ( ) const
inline

public

Definition at line 107 of file baseParticleFactory.I.

◆ output()

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

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

Reimplemented in OrientedParticleFactory, PointParticleFactory, and ZSpinParticleFactory.

Definition at line 71 of file baseParticleFactory.cxx.

◆ populate_particle()

void BaseParticleFactory::populate_particle ( BaseParticle * bp)

◆ set_lifespan_base()

void BaseParticleFactory::set_lifespan_base ( PN_stdfloat lb)
inline

public

Definition at line 17 of file baseParticleFactory.I.

◆ set_lifespan_spread()

void BaseParticleFactory::set_lifespan_spread ( PN_stdfloat ls)
inline

public

Definition at line 25 of file baseParticleFactory.I.

◆ set_mass_base()

void BaseParticleFactory::set_mass_base ( PN_stdfloat mb)
inline

public

Definition at line 33 of file baseParticleFactory.I.

◆ set_mass_spread()

void BaseParticleFactory::set_mass_spread ( PN_stdfloat ms)
inline

public

Definition at line 42 of file baseParticleFactory.I.

◆ set_terminal_velocity_base()

void BaseParticleFactory::set_terminal_velocity_base ( PN_stdfloat tvb)
inline

public

Definition at line 51 of file baseParticleFactory.I.

◆ set_terminal_velocity_spread()

void BaseParticleFactory::set_terminal_velocity_spread ( PN_stdfloat tvs)
inline

public

Definition at line 59 of file baseParticleFactory.I.

◆ write()

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

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

Reimplemented in OrientedParticleFactory, PointParticleFactory, and ZSpinParticleFactory.

Definition at line 81 of file baseParticleFactory.cxx.

References indent().

Referenced by OrientedParticleFactory::write(), PointParticleFactory::write(), and ZSpinParticleFactory::write().


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