Panda3D
Public Member Functions | Static Public Attributes | List of all members
SpriteParticleRendererExt Class Reference
Inheritance diagram for SpriteParticleRendererExt:
SpriteParticleRenderer BaseParticleRenderer ReferenceCount

Public Member Functions

def addTextureFromFile (self, fileName=None)
 
def addTextureFromNode (self, modelName=None, nodeName=None, sizeFromTexels=False)
 
def getSourceFileName (self)
 
def getSourceNodeName (self)
 
def getSourceTextureName (self)
 
def setSourceFileName (self, name)
 
def setSourceNodeName (self, name)
 
def setSourceTextureName (self, name)
 
def setTextureFromFile (self, fileName=None)
 
def setTextureFromNode (self, modelName=None, nodeName=None, sizeFromTexels=False)
 
- Public Member Functions inherited from SpriteParticleRenderer
 __init__ (const SpriteParticleRenderer copy)
 copy constructor More...
 
 __init__ (Texture tex)
 constructor More...
 
 addFromNode (const NodePath node_path, bool size_from_texels, bool resize)
 This will allow the renderer to randomly choose from more than one texture or sequence at particle birth. More...
 
 addFromNode (const NodePath node_path, str model, str node, bool size_from_texels, bool resize)
 This will allow the renderer to randomly choose from more than one texture or sequence at particle birth. More...
 
 addTexture (Texture tex, float texels_per_unit, bool resize)
 Adds texture to image pool, effectively creating a single frame animation that can be selected at particle birth. More...
 
BaseParticleRenderer::ParticleRendererBlendMethod getAlphaBlendMethod ()
 
bool getAlphaDisable ()
 
SpriteAnim getAnim (const int n)
 
bool getAnimAngleFlag ()
 
bool getAnimateFramesEnable ()
 
int getAnimateFramesIndex ()
 
float getAnimateFramesRate ()
 
list getAnims ()
 
LColor getColor ()
 
ColorInterpolationManager getColorInterpolationManager ()
 
float getFinalXScale ()
 
float getFinalYScale ()
 
float getHeight ()
 Returns the height of each particle in world units. More...
 
float getInitialXScale ()
 
float getInitialYScale ()
 
SpriteAnim getLastAnim ()
 
LTexCoord getLlUv ()
 Returns the UV coordinate of the lower-left corner; see set_ll_uv(). More...
 
LTexCoord getLlUv (const int anim, const int frame)
 Returns the UV coordinate of the lower-left corner; see set_ll_uv(). More...
 
float getNonanimatedTheta ()
 
int getNumAnims ()
 
Texture getTexture ()
 
Texture getTexture (const int anim, const int frame)
 
LTexCoord getUrUv ()
 Returns the UV coordinate of the lower-left corner; see set_ur_uv(). More...
 
LTexCoord getUrUv (const int anim, const int frame)
 Returns the UV coordinate of the upper-right corner; see set_ur_uv(). More...
 
float getWidth ()
 Returns the width of each particle in world units. More...
 
bool getXScaleFlag ()
 
bool getYScaleFlag ()
 
 removeAnimation (const int n)
 Removes an animation texture set from the renderer. More...
 
 setAlphaBlendMethod (BaseParticleRenderer::ParticleRendererBlendMethod bm)
 
 setAlphaDisable (bool ad)
 
 setAnimAngleFlag (bool animate_theta)
 
 setAnimateFramesEnable (bool an)
 
 setAnimateFramesIndex (int i)
 
 setAnimateFramesRate (float r)
 
 setColor (const LColor color)
 
 setFinalXScale (float final_x_scale)
 
 setFinalYScale (float final_y_scale)
 
 setFromNode (const NodePath node_path, bool size_from_texels)
 Sets the properties on this renderer from the geometry referenced by the indicated NodePath. More...
 
 setFromNode (const NodePath node_path, str model, str node, bool size_from_texels)
 If the source type is important, use this one. More...
 
 setInitialXScale (float initial_x_scale)
 
 setInitialYScale (float initial_y_scale)
 
 setLlUv (const LTexCoord ll_uv)
 Sets the UV coordinate of the lower-left corner of all the sprites generated by this renderer. More...
 
 setLlUv (const LTexCoord ll_uv, const int anim, const int frame)
 Sets the UV coordinate of the lower-left corner of all the sprites generated by this renderer. More...
 
 setNonanimatedTheta (float theta)
 
 setSize (float width, float height)
 Sets the size of each particle in world units. More...
 
 setTexture (Texture tex, float texels_per_unit)
 Sets the renderer up to render the entire texture image. More...
 
 setUrUv (const LTexCoord ur_uv)
 Sets the UV coordinate of the upper-right corner of all the sprites generated by this renderer. More...
 
 setUrUv (const LTexCoord ur_uv, const int anim, const int frame)
 Sets the UV coordinate of the upper-right corner of all the sprites generated by this renderer. More...
 
 setXScaleFlag (bool animate_x_ratio)
 
 setYScaleFlag (bool animate_y_ratio)
 
- Public Member Functions inherited from BaseParticleRenderer
BaseParticleRenderer::ParticleRendererAlphaMode getAlphaMode ()
 
bool getIgnoreScale ()
 Returns the "ignore scale" flag. More...
 
GeomNode getRenderNode ()
 Query the geomnode pointer. More...
 
NodePath getRenderNodePath ()
 Query the geomnode pointer. More...
 
float getUserAlpha ()
 gets alpha for "user" alpha mode More...
 
 output (Ostream out)
 Write a string representation of this instance to <out>. More...
 
 setAlphaMode (BaseParticleRenderer::ParticleRendererAlphaMode am)
 
 setColorBlendMode (ColorBlendAttrib::Mode bm, ColorBlendAttrib::Operand oa, ColorBlendAttrib::Operand ob)
 sets the ColorBlendAttrib on the _render_node More...
 
 setIgnoreScale (bool ignore_scale)
 Sets the "ignore scale" flag. More...
 
 setUserAlpha (float ua)
 sets alpha for "user" alpha mode 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...
 

Static Public Attributes

 sourceFileName = None
 
 sourceNodeName = None
 
 sourceTextureName = None
 

Additional Inherited Members

- Public Types inherited from BaseParticleRenderer
enum  ParticleRendererAlphaMode {
  PR_ALPHA_NONE = 0, PR_ALPHA_OUT = 1, PR_ALPHA_IN = 2, PR_ALPHA_IN_OUT = 3,
  PR_ALPHA_USER = 4, PR_NOT_INITIALIZED_YET = 5
}
 
enum  ParticleRendererBlendMethod { PP_NO_BLEND = 0, PP_BLEND_LINEAR = 1, PP_BLEND_CUBIC = 2 }
 
- Static Public Member Functions inherited from ReferenceCount
static TypeHandle getClassType ()
 
- Public Attributes inherited from ReferenceCount
int ref_count
 The current reference count. More...
 

Detailed Description

Contains methods to extend functionality
of the SpriteParticleRenderer class

Member Function Documentation

◆ addTextureFromFile()

def addTextureFromFile (   self,
  fileName = None 
)

◆ addTextureFromNode()

def addTextureFromNode (   self,
  modelName = None,
  nodeName = None,
  sizeFromTexels = False 
)

◆ getSourceFileName()

def getSourceFileName (   self)

◆ getSourceNodeName()

def getSourceNodeName (   self)

◆ getSourceTextureName()

def getSourceTextureName (   self)

◆ setSourceFileName()

def setSourceFileName (   self,
  name 
)

◆ setSourceNodeName()

def setSourceNodeName (   self,
  name 
)

◆ setSourceTextureName()

def setSourceTextureName (   self,
  name 
)

◆ setTextureFromFile()

def setTextureFromFile (   self,
  fileName = None 
)

◆ setTextureFromNode()

def setTextureFromNode (   self,
  modelName = None,
  nodeName = None,
  sizeFromTexels = False 
)

Member Data Documentation

◆ sourceFileName

sourceFileName = None
static

◆ sourceNodeName

sourceNodeName = None
static

◆ sourceTextureName

sourceTextureName = None
static