Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Particles Class Reference
Inheritance diagram for Particles:
ParticleSystem Physical TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase

Public Member Functions

def __init__ (self, name=None, poolSize=1024)
 
def accelerate (self, time, stepCount=1, stepTime=0.0)
 
def addForce (self, force)
 
def cleanup (self)
 
def disable (self)
 
def enable (self)
 
def getEmitter (self)
 
def getFactory (self)
 
def getName (self)
 Getters ##. More...
 
def getNode (self)
 
def getPoolSizeRanges (self)
 
def getRenderer (self)
 
def isEnabled (self)
 
def printParams (self, file=sys.stdout, targ='self')
 
def removeForce (self, force)
 
def setEmitter (self, type)
 
def setFactory (self, type)
 
def setRenderer (self, type)
 
def setRenderNodePath (self, nodePath)
 
- Public Member Functions inherited from ParticleSystem
 __init__ (const ParticleSystem copy)
 Copy Constructor. More...
 
 __init__ (int pool_size)
 Default Constructor. More...
 
 addSpawnTemplate (ParticleSystem ps)
 
 clearFloorZ ()
 
 clearSpawnTemplates ()
 
 clearToInitial ()
 
bool getActiveSystemFlag ()
 
float getBirthRate ()
 
BaseParticleEmitter getEmitter ()
 
BaseParticleFactory getFactory ()
 
float getFloorZ ()
 
bool getIWasSpawnedFlag ()
 
int getLitterSize ()
 
int getLitterSpread ()
 
int getLivingParticles ()
 
bool getLocalVelocityFlag ()
 
int getPoolSize ()
 
BaseParticleRenderer getRenderer ()
 
NodePath getRenderParent ()
 
float getSoftBirthRate ()
 
bool getSpawnOnDeathFlag ()
 
PandaNode getSpawnRenderNode ()
 
NodePath getSpawnRenderNodePath ()
 
float getSystemAge ()
 
bool getSystemGrowsOlderFlag ()
 
float getSystemLifespan ()
 
 induceLabor ()
 
 render ()
 
 setActiveSystemFlag (bool a)
 
 setBirthRate (float new_br)
 
 setEmitter (BaseParticleEmitter e)
 
 setFactory (BaseParticleFactory f)
 
 setFloorZ (float z)
 
 setLitterSize (int new_ls)
 
 setLitterSpread (int new_ls)
 
 setLocalVelocityFlag (bool lv)
 
 setPoolSize (int size)
 access/queries More...
 
 setRenderer (BaseParticleRenderer r)
 
 setRenderParent (const NodePath node)
 
 setRenderParent (PandaNode node)
 
 setSoftBirthRate (float new_br)
 
 setSpawnOnDeathFlag (bool sod)
 
 setSpawnRenderNode (PandaNode node)
 
 setSpawnRenderNodePath (const NodePath node)
 
 setSystemAge (float age)
 
 setSystemGrowsOlderFlag (bool sgo)
 
 setSystemLifespan (float sl)
 
 setTemplateSystemFlag (bool tsf)
 
 softStart (float br)
 
 softStop (float br)
 
 update (float dt)
 
 write (Ostream out, int indent)
 Write a string representation of this instance to <out>. More...
 
 writeFreeParticleFifo (Ostream out, int indent)
 Write a string representation of this instance to <out>. More...
 
 writeSpawnTemplates (Ostream out, int indent)
 Write a string representation of this instance to <out>. More...
 
- Public Member Functions inherited from Physical
 __init__ (const Physical copy)
 copy constructor (note- does deep copy of pn's) but does NOT attach itself to its template's physicsmanager. More...
 
 __init__ (int total_objects, bool pre_alloc)
 Default Constructor. More...
 
 addAngularForce (AngularForce f)
 Adds an angular force to the force list. More...
 
 addLinearForce (LinearForce f)
 Adds a linear force to the force list. More...
 
 addPhysicsObject (PhysicsObject po)
 Adds an object to the physics object vector. More...
 
 clearAngularForces ()
 Erases the angular force list. More...
 
 clearLinearForces ()
 Erases the linear force list. More...
 
 clearPhysicsObjects ()
 Erases the object list. More...
 
AngularForce getAngularForce (int index)
 
list getAngularForces ()
 
LinearForce getLinearForce (int index)
 
list getLinearForces ()
 
int getNumAngularForces ()
 
int getNumLinearForces ()
 
const PhysicsObjectCollection getObjects ()
 
PhysicsObject getPhysBody ()
 
PhysicalNode getPhysicalNode ()
 
NodePath getPhysicalNodePath ()
 
PhysicsManager getPhysicsManager ()
 
float getViscosity ()
 Get the local viscosity. More...
 
 output (Ostream out)
 Write a string representation of this instance to <out>. More...
 
 removeAngularForce (AngularForce f)
 removes an angular force from the force list More...
 
 removeLinearForce (LinearForce f)
 removes a linear force from the force list More...
 
 setViscosity (float viscosity)
 Set the local viscosity. More...
 
 write (Ostream out, unsigned int indent)
 Write a string representation of this instance to <out>. More...
 
 writeAngularForces (Ostream out, unsigned int indent)
 Write a string representation of this instance to <out>. More...
 
 writeLinearForces (Ostream out, unsigned int indent)
 Write a string representation of this instance to <out>. More...
 
 writePhysicsObjects (Ostream out, unsigned int indent)
 Write a string representation of this instance to <out>. More...
 
- Public Member Functions inherited from TypedObject
TypeHandle getType ()
 Derived classes should override this function to return get_class_type(). More...
 
int getTypeIndex ()
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. This is equivalent to get_type().get_index(). More...
 
bool isExactType (TypeHandle handle)
 Returns true if the current object is the indicated type exactly. More...
 
bool isOfType (TypeHandle handle)
 Returns true if the current object is or derives from the indicated type. More...
 
- Public Member Functions inherited from ReferenceCount
int getRefCount ()
 Returns the current reference count. More...
 
 ref ()
 Explicitly increments the reference count. User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. More...
 
bool testRefCountIntegrity ()
 Does some easy checks to make sure that the reference count isn't completely bogus. Returns true if ok, false otherwise. More...
 
bool testRefCountNonzero ()
 Does some easy checks to make sure that the reference count isn't zero, or completely bogus. Returns true if ok, false otherwise. More...
 
bool unref ()
 Explicitly decrements the reference count. Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic.) However, see the helper function unref_delete(). More...
 

Public Attributes

 emitter
 
 emitterType
 
 factory
 
 factoryType
 
 fEnabled
 
 geomReference
 
 name
 
 node
 
 nodePath
 
 renderer
 
 rendererType
 

Static Public Attributes

int id = 1
 
 notify = directNotify.newCategory('Particles')
 

Additional Inherited Members

- Static Public Member Functions inherited from ParticleSystem
static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from Physical
static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from TypedReferenceCount
static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from TypedObject
static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from ReferenceCount
static TypeHandle getClassType ()
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  name = None,
  poolSize = 1024 
)

Member Function Documentation

◆ accelerate()

def accelerate (   self,
  time,
  stepCount = 1,
  stepTime = 0.0 
)

◆ addForce()

def addForce (   self,
  force 
)

◆ cleanup()

def cleanup (   self)

◆ disable()

def disable (   self)

◆ enable()

def enable (   self)

◆ getEmitter()

def getEmitter (   self)

◆ getFactory()

def getFactory (   self)

◆ getName()

def getName (   self)

Getters ##.

◆ getNode()

def getNode (   self)

◆ getPoolSizeRanges()

def getPoolSizeRanges (   self)

◆ getRenderer()

def getRenderer (   self)

◆ isEnabled()

def isEnabled (   self)

◆ printParams()

def printParams (   self,
  file = sys.stdout,
  targ = 'self' 
)

◆ removeForce()

def removeForce (   self,
  force 
)

◆ setEmitter()

def setEmitter (   self,
  type 
)

◆ setFactory()

def setFactory (   self,
  type 
)

◆ setRenderer()

def setRenderer (   self,
  type 
)

◆ setRenderNodePath()

def setRenderNodePath (   self,
  nodePath 
)

Member Data Documentation

◆ emitter

emitter

◆ emitterType

emitterType

◆ factory

factory

◆ factoryType

factoryType

◆ fEnabled

fEnabled

◆ geomReference

geomReference

◆ id

int id = 1
static

◆ name

name

◆ node

node

◆ nodePath

nodePath

◆ notify

notify = directNotify.newCategory('Particles')
static

◆ renderer

renderer

◆ rendererType

rendererType