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

#include <CCPUDynamicAttribute.h>

Inheritance diagram for PUDynamicAttributeCurved:
PUDynamicAttribute Ref

Public Types

typedef std::vector< Vec2ControlPointList
- Public Types inherited from PUDynamicAttribute
enum  DynamicAttributeType { DAT_FIXED, DAT_RANDOM, DAT_CURVED, DAT_OSCILLATE }
 

Public Member Functions

 PUDynamicAttributeCurved (void)
 Constructor. More...
 
 PUDynamicAttributeCurved ()
 Constructor. More...
 
 PUDynamicAttributeCurved ()
 Constructor. More...
 
 PUDynamicAttributeCurved (PUInterpolationType interpolationType)
 PUDynamicAttributeCurved ( local interpolationType)
 PUDynamicAttributeCurved (const PUDynamicAttributeCurved &dynamicAttributeCurved)
 Copy constructor. More...
 
 ~PUDynamicAttributeCurved (void)
 Destructor. More...
 
void setInterpolationType (PUInterpolationType interpolationType)
 Get and set the curve type. More...
 
var setInterpolationType ( var interpolationType)
 Get and set the curve type. More...
 
local setInterpolationType ( local interpolationType)
 Get and set the curve type. More...
 
PUInterpolationType getInterpolationType (void) const
virtual float getValue (float x=0) override
 Todo. More...
 
local getValue ( local 0)
 Todo. More...
 
virtual void addControlPoint (float x, float y)
 Todo. More...
 
var addControlPoint ( var x, var y)
 Todo. More...
 
local addControlPoint ( local x, local y)
 Todo. More...
 
const ControlPointListgetControlPoints (void) const
 Todo. More...
 
local getControlPoints ()
 Todo. More...
 
void processControlPoints (void)
 Todo. More...
 
size_t getNumControlPoints (void) const
 Todo. More...
 
var getNumControlPoints ()
 Todo. More...
 
local getNumControlPoints ()
 Todo. More...
 
void removeAllControlPoints (void)
 Todo. More...
 
var removeAllControlPoints ()
 Todo. More...
 
local removeAllControlPoints ()
 Todo. More...
 
virtual PUDynamicAttributeCurvedclone () override
local clone ()
virtual void copyAttributesTo (PUDynamicAttribute *dynamicAttribute) override
var copyAttributesTo ( var dynamicAttribute)
local copyAttributesTo ( local dynamicAttribute)
- Public Member Functions inherited from PUDynamicAttribute
 PUDynamicAttribute (void)
 Constructor. More...
 
virtual ~PUDynamicAttribute (void)
 Destructor. More...
 
DynamicAttributeType getType (void) const
 Todo. More...
 
void setType (DynamicAttributeType type)
 Todo. More...
 
bool isValueChangedExternally (void) const
 Returns true if one of the attributes was changed by an external source. More...
 
- 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...
 

Protected Member Functions

ControlPointList::iterator findNearestControlPointIterator (float x)
 Find an iterator that forms the low (left) value of the interval where x lies in. More...
 
local findNearestControlPointIterator ( local x)
 Find an iterator that forms the low (left) value of the interval where x lies in. More...
 
ControlPointList::iterator getFirstValidIterator (void)
 Helper functions. More...
 
ControlPointList::iterator getLastValidIterator (void)
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 

Protected Attributes

float _range
 Todo. More...
 
var _range
 Todo. More...
 
local _range
 Todo. More...
 
PUSimpleSpline _spline
 Todo. More...
 
PUInterpolationType _interpolationType
 Todo. More...
 
var _interpolationType
 Todo. More...
 
local _interpolationType
 Todo. More...
 
ControlPointList _controlPoints
 Todo. More...
 
- Protected Attributes inherited from PUDynamicAttribute
DynamicAttributeType _type
bool _valueChangedExternally
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Member Typedef Documentation

typedef std::vector<Vec2>
ControlPointList

Constructor & Destructor Documentation

Constructor.

Constructor.

Constructor.

var PUDynamicAttributeCurved ( var  interpolationType)
local PUDynamicAttributeCurved ( local  interpolationType)
PUDynamicAttributeCurved ( const PUDynamicAttributeCurved dynamicAttributeCurved)

Copy constructor.

var PUDynamicAttributeCurved ( var  dynamicAttributeCurved)

Copy constructor.

local PUDynamicAttributeCurved ( local  dynamicAttributeCurved)

Copy constructor.

Destructor.

Destructor.

local ~PUDynamicAttributeCurved (   )

Destructor.

Member Function Documentation

virtual void addControlPoint ( float  x,
float  y 
)
virtual

Todo.

var addControlPoint ( var  x,
var  y 
)
virtual

Todo.

local addControlPoint ( local  x,
local  y 
)
virtual

Todo.

virtual
PUDynamicAttributeCurved*
clone
( )
overridevirtual

Implements PUDynamicAttribute.

var clone ( )
overridevirtual

Implements PUDynamicAttribute.

local clone ( )
overridevirtual

Implements PUDynamicAttribute.

virtual void copyAttributesTo ( PUDynamicAttribute dynamicAttribute)
overridevirtual

Implements PUDynamicAttribute.

var copyAttributesTo ( var  dynamicAttribute)
overridevirtual

Implements PUDynamicAttribute.

local copyAttributesTo ( local  dynamicAttribute)
overridevirtual

Implements PUDynamicAttribute.

ControlPointList::iterator
findNearestControlPointIterator
( float  x)
inlineprotected

Find an iterator that forms the low (left) value of the interval where x lies in.

var findNearestControlPointIterator ( var  x)
inlineprotected

Find an iterator that forms the low (left) value of the interval where x lies in.

local
findNearestControlPointIterator
( local  x)
inlineprotected

Find an iterator that forms the low (left) value of the interval where x lies in.

const ControlPointList&
getControlPoints
( void  ) const

Todo.

var getControlPoints (   )

Todo.

local getControlPoints (   )

Todo.

ControlPointList::iterator
getFirstValidIterator
( void  )
inlineprotected

Helper functions.

var getFirstValidIterator (   )
inlineprotected

Helper functions.

local getFirstValidIterator (   )
inlineprotected

Helper functions.

PUInterpolationType
getInterpolationType
( void  ) const
var getInterpolationType (   )
local getInterpolationType (   )
ControlPointList::iterator
getLastValidIterator
( void  )
inlineprotected
var getLastValidIterator (   )
inlineprotected
local getLastValidIterator (   )
inlineprotected
size_t getNumControlPoints ( void  ) const

Todo.

var getNumControlPoints (   )

Todo.

local getNumControlPoints (   )

Todo.

virtual float getValue ( float  x = 0)
overridevirtual

Todo.

Implements PUDynamicAttribute.

var getValue ( var  x = 0)
overridevirtual

Todo.

Implements PUDynamicAttribute.

local getValue ( local  x = 0)
overridevirtual

Todo.

Implements PUDynamicAttribute.

void processControlPoints ( void  )

Todo.

var processControlPoints (   )

Todo.

local processControlPoints (   )

Todo.

void removeAllControlPoints ( void  )

Todo.

var removeAllControlPoints (   )

Todo.

local removeAllControlPoints (   )

Todo.

void setInterpolationType ( PUInterpolationType  interpolationType)

Get and set the curve type.

var setInterpolationType ( var  interpolationType)

Get and set the curve type.

local setInterpolationType ( local  interpolationType)

Get and set the curve type.

Member Data Documentation

ControlPointList _controlPoints
protected

Todo.

var _controlPoints
protected

Todo.

local _controlPoints
protected

Todo.

PUInterpolationType
_interpolationType
protected

Todo.

var _interpolationType
protected

Todo.

local _interpolationType
protected

Todo.

float _range
protected

Todo.

var _range
protected

Todo.

local _range
protected

Todo.

PUSimpleSpline _spline
protected

Todo.

var _spline
protected

Todo.

local _spline
protected

Todo.


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