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

#include <CCPUGeometryRotator.h>

Inheritance diagram for PUGeometryRotator:
PUAffector Particle3DAffector Ref

Public Member Functions

virtual void updatePUAffector (PUParticle3D *particle, float deltaTime) override
local updatePUAffector ( local particle, local deltaTime)
virtual void initParticleForEmission (PUParticle3D *particle) override
 
PUDynamicAttributegetRotationSpeed (void) const
 Returns the rotation speed. More...
 
void setRotationSpeed (PUDynamicAttribute *dynRotationSpeed)
var setRotationSpeed ( var dynRotationSpeed)
local setRotationSpeed ( local dynRotationSpeed)
bool useOwnRotationSpeed (void) const
 Returns an indication whether the rotation speed is the same for all particles in this particle technique, or whether the rotation speed of the particle itself is used. More...
 
var useOwnRotationSpeed ()
 Returns an indication whether the rotation speed is the same for all particles in this particle technique, or whether the rotation speed of the particle itself is used. More...
 
local useOwnRotationSpeed ()
 Returns an indication whether the rotation speed is the same for all particles in this particle technique, or whether the rotation speed of the particle itself is used. More...
 
void setUseOwnRotationSpeed (bool _useOwnRotationSpeed)
 Set the indication whether rotation speed of the particle itself is used. More...
 
const Vec3getRotationAxis (void) const
void setRotationAxis (const Vec3 &rotationAxis)
void resetRotationAxis (void)
virtual void copyAttributesTo (PUAffector *affector) override
virtual ~PUGeometryRotator ()
- Public Member Functions inherited from PUAffector
virtual void notifyStart ()
virtual void notifyStop ()
virtual void notifyPause ()
virtual void notifyResume ()
virtual void notifyRescaled (const Vec3 &scale)
local notifyRescaled ( local scale)
virtual void prepare ()
virtual void unPrepare ()
virtual void preUpdateAffector (float deltaTime)
local preUpdateAffector ( local deltaTime)
virtual void postUpdateAffector (float deltaTime)
virtual void firstParticleUpdate (PUParticle3D *particle, float deltaTime)
var firstParticleUpdate ( var particle, var deltaTime)
local firstParticleUpdate ( local particle, local deltaTime)
void process (PUParticle3D *particle, float delta, bool firstParticle)
void setLocalPosition (const Vec3 &pos)
const Vec3 getLocalPosition () const
void setMass (float mass)
float getMass () const
const Vec3getDerivedPosition ()
 Calculate the derived position of the affector. More...
 
local getDerivedPosition ()
 Calculate the derived position of the affector. More...
 
const AffectSpecialisationgetAffectSpecialisation (void) const
 Todo. More...
 
local getAffectSpecialisation ()
 Todo. More...
 
void setAffectSpecialisation (const AffectSpecialisation &affectSpecialisation)
const std::string & getAffectorType (void) const
 Todo. More...
 
void setAffectorType (const std::string &affectorType)
void addEmitterToExclude (const std::string &emitterName)
 Add a ParticleEmitter name that excludes Particles emitted by this ParticleEmitter from being affected. More...
 
void removeEmitterToExclude (const std::string &emitterName)
 Remove a ParticleEmitter name that excludes Particles emitted by this ParticleEmitter. More...
 
const std::string & getName (void) const
 Todo. More...
 
void setName (const std::string &name)
virtual ~PUAffector ()
- Public Member Functions inherited from Particle3DAffector
virtual void updateAffector (Particle3D *particle, float deltaTime)
void setEnabled (bool enabled)
 Enables or disables the emitter. More...
 
bool isEnabled (void) const
virtual ~Particle3DAffector ()
- 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...
 

Static Public Member Functions

static PUGeometryRotatorcreate ()
local create ()

Public Attributes

CC_CONSTRUCTOR_ACCESS __pad0__: PUGeometryRotator()
- Public Attributes inherited from PUAffector
CC_CONSTRUCTOR_ACCESS __pad0__: PUAffector()
- Public Attributes inherited from Particle3DAffector
CC_CONSTRUCTOR_ACCESS __pad0__: Particle3DAffector()

Static Public Attributes

static const bool DEFAULT_USE_OWN
static const float DEFAULT_ROTATION_SPEED
var DEFAULT_ROTATION_SPEED
local DEFAULT_ROTATION_SPEED
static const Vec3 DEFAULT_ROTATION_AXIS

Protected Member Functions

float calculateRotationSpeed (PUParticle3D *particle)
 Returns a rotation speed value, depending on the type of dynamic attribute. More...
 
local calculateRotationSpeed ( local particle)
 Returns a rotation speed value, depending on the type of dynamic attribute. More...
 
- Protected Member Functions inherited from PUAffector
float calculateAffectSpecialisationFactor (const PUParticle3D *particle)
var calculateAffectSpecialisationFactor ( var particle)
local calculateAffectSpecialisationFactor ( local particle)
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 

Protected Attributes

float _scaledRotationSpeed
bool _useOwnRotationSpeed
PUDynamicAttribute_dynRotationSpeed
var _dynRotationSpeed
local _dynRotationSpeed
Quaternion _q
Vec3 _rotationAxis
bool _rotationAxisSet
PUDynamicAttributeHelper _dynamicAttributeHelper
 Helper factory. More...
 
var _dynamicAttributeHelper
 Helper factory. More...
 
- Protected Attributes inherited from PUAffector
Vec3 _position
Vec3 _affectorScale
 Although the scale is on a Particle System level, the affector can also be scaled. More...
 
Vec3 _derivedPosition
 Because the public attribute ´position?is sometimes used for both localspace and worldspace position, the mDerivedPosition attribute is introduced. More...
 
AffectSpecialisation _affectSpecialisation
 The mAffectSpecialisation is used to specialise the affector. More...
 
std::string _affectorType
std::vector< std::string > _excludedEmitters
var _excludedEmitters
local _excludedEmitters
std::string _name
float _mass
- Protected Attributes inherited from Particle3DAffector
ParticleSystem3D_particleSystem
bool _isEnabled
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Additional Inherited Members

- Public Types inherited from PUAffector
enum  AffectSpecialisation { AFSP_DEFAULT, AFSP_TTL_INCREASE, AFSP_TTL_DECREASE }
 The AffectSpecialisation enumeration is used to specialise the affector even more. More...
 

Constructor & Destructor Documentation

virtual ~PUGeometryRotator ( )
virtual
var ~PUGeometryRotator ( )
virtual
local ~PUGeometryRotator ( )
virtual

Member Function Documentation

float calculateRotationSpeed ( PUParticle3D particle)
protected

Returns a rotation speed value, depending on the type of dynamic attribute.

var calculateRotationSpeed ( var  particle)
protected

Returns a rotation speed value, depending on the type of dynamic attribute.

local calculateRotationSpeed ( local  particle)
protected

Returns a rotation speed value, depending on the type of dynamic attribute.

virtual void copyAttributesTo ( PUAffector affector)
overridevirtual

Reimplemented from PUAffector.

var copyAttributesTo ( var  affector)
overridevirtual

Reimplemented from PUAffector.

local copyAttributesTo ( local  affector)
overridevirtual

Reimplemented from PUAffector.

static PUGeometryRotator* create ( )
static
var create ( )
static
local create ( )
static
const Vec3& getRotationAxis ( void  ) const
var getRotationAxis (   )
local getRotationAxis (   )
PUDynamicAttribute*
getRotationSpeed
( void  ) const

Returns the rotation speed.

This is the speed controlled by the affector. Besides the default rotation speed, it is also possible to use the particles own rotation speed.

var getRotationSpeed (   )

Returns the rotation speed.

This is the speed controlled by the affector. Besides the default rotation speed, it is also possible to use the particles own rotation speed.

local getRotationSpeed (   )

Returns the rotation speed.

This is the speed controlled by the affector. Besides the default rotation speed, it is also possible to use the particles own rotation speed.

virtual void
initParticleForEmission
( PUParticle3D particle)
overridevirtual

Reimplemented from PUAffector.

var initParticleForEmission ( var  particle)
overridevirtual

Reimplemented from PUAffector.

local initParticleForEmission ( local  particle)
overridevirtual

Reimplemented from PUAffector.

void resetRotationAxis ( void  )
var resetRotationAxis (   )
local resetRotationAxis (   )
void setRotationAxis ( const Vec3 rotationAxis)
var setRotationAxis ( var  rotationAxis)
local setRotationAxis ( local  rotationAxis)
void setRotationSpeed ( PUDynamicAttribute dynRotationSpeed)
var setRotationSpeed ( var  dynRotationSpeed)
local setRotationSpeed ( local  dynRotationSpeed)
void setUseOwnRotationSpeed ( bool  _useOwnRotationSpeed)

Set the indication whether rotation speed of the particle itself is used.

var setUseOwnRotationSpeed ( var  _useOwnRotationSpeed)

Set the indication whether rotation speed of the particle itself is used.

local setUseOwnRotationSpeed ( local  _useOwnRotationSpeed)

Set the indication whether rotation speed of the particle itself is used.

virtual void updatePUAffector ( PUParticle3D particle,
float  deltaTime 
)
overridevirtual

Reimplemented from PUAffector.

var updatePUAffector ( var  particle,
var  deltaTime 
)
overridevirtual

Reimplemented from PUAffector.

local updatePUAffector ( local  particle,
local  deltaTime 
)
overridevirtual

Reimplemented from PUAffector.

bool useOwnRotationSpeed ( void  ) const

Returns an indication whether the rotation speed is the same for all particles in this particle technique, or whether the rotation speed of the particle itself is used.

var useOwnRotationSpeed (   )

Returns an indication whether the rotation speed is the same for all particles in this particle technique, or whether the rotation speed of the particle itself is used.

local useOwnRotationSpeed (   )

Returns an indication whether the rotation speed is the same for all particles in this particle technique, or whether the rotation speed of the particle itself is used.

Member Data Documentation

var __pad0__
local __pad0__
PUDynamicAttributeHelper
_dynamicAttributeHelper
protected

Helper factory.

var _dynamicAttributeHelper
protected

Helper factory.

local _dynamicAttributeHelper
protected

Helper factory.

PUDynamicAttribute*
_dynRotationSpeed
protected
var _dynRotationSpeed
protected
local _dynRotationSpeed
protected
Quaternion _q
protected
var _q
protected
local _q
protected
Vec3 _rotationAxis
protected
var _rotationAxis
protected
local _rotationAxis
protected
bool _rotationAxisSet
protected
var _rotationAxisSet
protected
local _rotationAxisSet
protected
float _scaledRotationSpeed
protected
var _scaledRotationSpeed
protected
local _scaledRotationSpeed
protected
bool _useOwnRotationSpeed
protected
var _useOwnRotationSpeed
protected
local _useOwnRotationSpeed
protected
const Vec3 DEFAULT_ROTATION_AXIS
static
var DEFAULT_ROTATION_AXIS
static
local DEFAULT_ROTATION_AXIS
static
const float DEFAULT_ROTATION_SPEED
static
var DEFAULT_ROTATION_SPEED
static
local DEFAULT_ROTATION_SPEED
static
const bool DEFAULT_USE_OWN
static
var DEFAULT_USE_OWN
static
local DEFAULT_USE_OWN
static

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