cocos2d-x  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PURibbonTrailRender Class Reference

#include <CCPURibbonTrailRender.h>

Inheritance diagram for PURibbonTrailRender:
PURender PUListener Particle3DRender Ref

Public Member Functions

virtual void notifyRescaled (const Vec3 &scale) override
 Notify that the Particle System is rescaled. More...
 
var notifyRescaled ( var scale)
 Notify that the Particle System is rescaled. More...
 
local notifyRescaled ( local scale)
 Notify that the Particle System is rescaled. More...
 
virtual void prepare () override
virtual void unPrepare () override
virtual void updateRender (PUParticle3D *particle, float deltaTime, bool firstParticle) override
virtual void render (Renderer *renderer, const Mat4 &transform, ParticleSystem3D *particleSystem) override
virtual void particleEmitted (PUParticleSystem3D *particleSystem, PUParticle3D *particle) override
virtual void particleExpired (PUParticleSystem3D *particleSystem, PUParticle3D *particle) override
bool isUseVertexColors (void) const
 Getters and Setters. More...
 
var isUseVertexColors ()
 Getters and Setters. More...
 
local isUseVertexColors ()
 Getters and Setters. More...
 
void setUseVertexColors (bool useVertexColours)
size_t getMaxChainElements (void) const
void setMaxChainElements (size_t maxChainElements)
float getTrailLength (void) const
void setTrailLength (float trailLength)
float getTrailWidth (void) const
void setTrailWidth (float trailWidth)
bool isRandomInitialColor (void) const
void setRandomInitialColor (bool randomInitialColour)
const Vec4getInitialColor (void) const
void setInitialColor (const Vec4 &initialColour)
const Vec4getColorChange (void) const
void setColorChange (const Vec4 &colourChange)
void destroyAll (void)
 Deletes all ChildSceneNodes en Entities. More...
 
virtual PURibbonTrailRenderclone () override
local clone ()
virtual void copyAttributesTo (PURender *render) override
local copyAttributesTo ( local render)
virtual ~PURibbonTrailRender ()
void updateParticles (const ParticlePool &pool)
- Public Member Functions inherited from PURender
const std::string & getRenderType (void) const
local getRenderType ()
void setRenderType (const std::string &observerType)
- Public Member Functions inherited from Particle3DRender
virtual void notifyStart ()
 Perform activities when a Renderer is started. More...
 
var notifyStart ()
 Perform activities when a Renderer is started. More...
 
local notifyStart ()
 Perform activities when a Renderer is started. More...
 
virtual void notifyStop ()
 Perform activities when a Renderer is stopped. More...
 
void setVisible (bool isVisible)
bool isVisible () const
virtual void setDepthTest (bool isDepthTest)
local setDepthTest ( local isDepthTest)
virtual void setDepthWrite (bool isDepthWrite)
CC_CONSTRUCTOR_ACCESS _isVisible (true)
CC_CONSTRUCTOR_ACCESS _rendererScale (Vec3::ONE)
CC_CONSTRUCTOR_ACCESS _depthTest (true)
CC_CONSTRUCTOR_ACCESS _depthWrite (false)
virtual ~Particle3DRender ()
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 Destructor. More...
 
- Public Member Functions inherited from PUListener
 PUListener ()
virtual ~PUListener ()

Static Public Member Functions

static PURibbonTrailRendercreate (const std::string &texFile="")
local create ()

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: PURibbonTrailRender()
- Public Attributes inherited from PURender
bool autoRotate
- Public Attributes inherited from Particle3DRender
CC_CONSTRUCTOR_ACCESS __pad0__: Particle3DRender() : _particleSystem(nullptr)

Static Public Attributes

static const bool DEFAULT_USE_VERTEX_COLOURS
var DEFAULT_USE_VERTEX_COLOURS
local DEFAULT_USE_VERTEX_COLOURS
static const size_t DEFAULT_MAX_ELEMENTS
var DEFAULT_MAX_ELEMENTS
local DEFAULT_MAX_ELEMENTS
static const float DEFAULT_LENGTH
static const float DEFAULT_WIDTH
static const bool DEFAULT_RANDOM_INITIAL_COLOUR
var DEFAULT_RANDOM_INITIAL_COLOUR
local DEFAULT_RANDOM_INITIAL_COLOUR
static const Vec4 DEFAULT_INITIAL_COLOUR
static const Vec4 DEFAULT_COLOUR_CHANGE

Protected Attributes

std::vector
< PURibbonTrailVisualData * > 
_allVisualData
std::vector
< PURibbonTrailVisualData * > 
_visualData
local _visualData
size_t _quota
PURibbonTrail_trail
std::string _ribbonTrailName
bool _useVertexColours
size_t _maxChainElements
float _trailLength
float _trailWidth
bool _randomInitialColor
bool _setLength
bool _setWidth
Vec4 _initialColor
Vec4 _colorChange
Node_childNode
std::string _texFile
- Protected Attributes inherited from PURender
std::string _renderType
- Protected Attributes inherited from Particle3DRender
ParticleSystem3D_particleSystem
bool _isVisible
Vec3 _rendererScale
bool _depthTest
bool _depthWrite
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Additional Inherited Members

- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 

Constructor & Destructor Documentation

virtual ~PURibbonTrailRender ( )
virtual
var ~PURibbonTrailRender ( )
virtual
local ~PURibbonTrailRender ( )
virtual

Member Function Documentation

virtual PURibbonTrailRender* clone ( )
overridevirtual

Implements PURender.

var clone ( )
overridevirtual

Implements PURender.

local clone ( )
overridevirtual

Implements PURender.

virtual void copyAttributesTo ( PURender render)
overridevirtual

Reimplemented from PURender.

var copyAttributesTo ( var  render)
overridevirtual

Reimplemented from PURender.

local copyAttributesTo ( local  render)
overridevirtual

Reimplemented from PURender.

static PURibbonTrailRender* create ( const std::string &  texFile = "")
static
var create ( var  texFile = "")
static
local create ( local  texFile = "")
static
void destroyAll ( void  )

Deletes all ChildSceneNodes en Entities.

var destroyAll (   )

Deletes all ChildSceneNodes en Entities.

local destroyAll (   )

Deletes all ChildSceneNodes en Entities.

const Vec4& getColorChange ( void  ) const
var getColorChange (   )
local getColorChange (   )
const Vec4& getInitialColor ( void  ) const
var getInitialColor (   )
local getInitialColor (   )
size_t getMaxChainElements ( void  ) const
var getMaxChainElements (   )
local getMaxChainElements (   )
float getTrailLength ( void  ) const
var getTrailLength (   )
local getTrailLength (   )
float getTrailWidth ( void  ) const
var getTrailWidth (   )
local getTrailWidth (   )
bool isRandomInitialColor ( void  ) const
var isRandomInitialColor (   )
local isRandomInitialColor (   )
bool isUseVertexColors ( void  ) const

Getters and Setters.

var isUseVertexColors (   )

Getters and Setters.

local isUseVertexColors (   )

Getters and Setters.

virtual void notifyRescaled ( const Vec3 scale)
overridevirtual

Notify that the Particle System is rescaled.

Reimplemented from Particle3DRender.

var notifyRescaled ( var  scale)
overridevirtual

Notify that the Particle System is rescaled.

Reimplemented from Particle3DRender.

local notifyRescaled ( local  scale)
overridevirtual

Notify that the Particle System is rescaled.

Reimplemented from Particle3DRender.

virtual void particleEmitted ( PUParticleSystem3D particleSystem,
PUParticle3D particle 
)
overridevirtual

Implements PUListener.

var particleEmitted ( var  particleSystem,
var  particle 
)
overridevirtual

Implements PUListener.

local particleEmitted ( local  particleSystem,
local  particle 
)
overridevirtual

Implements PUListener.

virtual void particleExpired ( PUParticleSystem3D particleSystem,
PUParticle3D particle 
)
overridevirtual

Implements PUListener.

var particleExpired ( var  particleSystem,
var  particle 
)
overridevirtual

Implements PUListener.

local particleExpired ( local  particleSystem,
local  particle 
)
overridevirtual

Implements PUListener.

virtual void prepare ( )
overridevirtual

Reimplemented from PURender.

var prepare ( )
overridevirtual

Reimplemented from PURender.

local prepare ( )
overridevirtual

Reimplemented from PURender.

virtual void render ( Renderer renderer,
const Mat4 transform,
ParticleSystem3D particleSystem 
)
overridevirtual

Implements Particle3DRender.

var render ( var  renderer,
var  transform,
var  particleSystem 
)
overridevirtual

Implements Particle3DRender.

local render ( local  renderer,
local  transform,
local  particleSystem 
)
overridevirtual

Implements Particle3DRender.

void setColorChange ( const Vec4 colourChange)
var setColorChange ( var  colourChange)
local setColorChange ( local  colourChange)
void setInitialColor ( const Vec4 initialColour)
var setInitialColor ( var  initialColour)
local setInitialColor ( local  initialColour)
void setMaxChainElements ( size_t  maxChainElements)
var setMaxChainElements ( var  maxChainElements)
local setMaxChainElements ( local  maxChainElements)
void setRandomInitialColor ( bool  randomInitialColour)
var setRandomInitialColor ( var  randomInitialColour)
local setRandomInitialColor ( local  randomInitialColour)
void setTrailLength ( float  trailLength)
var setTrailLength ( var  trailLength)
local setTrailLength ( local  trailLength)
void setTrailWidth ( float  trailWidth)
var setTrailWidth ( var  trailWidth)
local setTrailWidth ( local  trailWidth)
void setUseVertexColors ( bool  useVertexColours)
var setUseVertexColors ( var  useVertexColours)
local setUseVertexColors ( local  useVertexColours)
virtual void unPrepare ( )
overridevirtual

Reimplemented from PURender.

var unPrepare ( )
overridevirtual

Reimplemented from PURender.

local unPrepare ( )
overridevirtual

Reimplemented from PURender.

void updateParticles ( const ParticlePool pool)
var updateParticles ( var  pool)
local updateParticles ( local  pool)
virtual void updateRender ( PUParticle3D particle,
float  deltaTime,
bool  firstParticle 
)
overridevirtual

Reimplemented from PURender.

var updateRender ( var  particle,
var  deltaTime,
var  firstParticle 
)
overridevirtual

Reimplemented from PURender.

local updateRender ( local  particle,
local  deltaTime,
local  firstParticle 
)
overridevirtual

Reimplemented from PURender.

Member Data Documentation

var __pad0__
local __pad0__
std::vector
<PURibbonTrailVisualData*>
_allVisualData
protected
var _allVisualData
protected
local _allVisualData
protected
Node* _childNode
protected
var _childNode
protected
local _childNode
protected
Vec4 _colorChange
protected
var _colorChange
protected
local _colorChange
protected
Vec4 _initialColor
protected
var _initialColor
protected
local _initialColor
protected
size_t _maxChainElements
protected
var _maxChainElements
protected
local _maxChainElements
protected
size_t _quota
protected
var _quota
protected
local _quota
protected
bool _randomInitialColor
protected
var _randomInitialColor
protected
local _randomInitialColor
protected
std::string _ribbonTrailName
protected
var _ribbonTrailName
protected
local _ribbonTrailName
protected
bool _setLength
protected
var _setLength
protected
local _setLength
protected
bool _setWidth
protected
var _setWidth
protected
local _setWidth
protected
std::string _texFile
protected
var _texFile
protected
local _texFile
protected
PURibbonTrail* _trail
protected
var _trail
protected
local _trail
protected
float _trailLength
protected
var _trailLength
protected
local _trailLength
protected
float _trailWidth
protected
var _trailWidth
protected
local _trailWidth
protected
bool _useVertexColours
protected
var _useVertexColours
protected
local _useVertexColours
protected
std::vector
<PURibbonTrailVisualData*>
_visualData
protected
var _visualData
protected
local _visualData
protected
const Vec4 DEFAULT_COLOUR_CHANGE
static
var DEFAULT_COLOUR_CHANGE
static
local DEFAULT_COLOUR_CHANGE
static
const Vec4 DEFAULT_INITIAL_COLOUR
static
var DEFAULT_INITIAL_COLOUR
static
local DEFAULT_INITIAL_COLOUR
static
const float DEFAULT_LENGTH
static
var DEFAULT_LENGTH
static
local DEFAULT_LENGTH
static
const size_t DEFAULT_MAX_ELEMENTS
static
var DEFAULT_MAX_ELEMENTS
static
local DEFAULT_MAX_ELEMENTS
static
const bool
DEFAULT_RANDOM_INITIAL_COLOUR
static
var DEFAULT_RANDOM_INITIAL_COLOUR
static
local DEFAULT_RANDOM_INITIAL_COLOUR
static
const bool
DEFAULT_USE_VERTEX_COLOURS
static
var DEFAULT_USE_VERTEX_COLOURS
static
local DEFAULT_USE_VERTEX_COLOURS
static
const float DEFAULT_WIDTH
static
var DEFAULT_WIDTH
static
local DEFAULT_WIDTH
static

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