#include <CCPUDynamicAttribute.h>
Public Types | |
typedef std::vector< Vec2 > | ControlPointList |
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 ControlPointList & | getControlPoints (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 PUDynamicAttributeCurved * | clone () 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... | |
Ref * | autorelease () |
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... | |
typedef std::vector<Vec2> ControlPointList |
var ControlPointList |
local ControlPointList |
PUDynamicAttributeCurved | ( | void | ) |
Constructor.
var PUDynamicAttributeCurved | ( | ) |
Constructor.
local PUDynamicAttributeCurved | ( | ) |
Constructor.
PUDynamicAttributeCurved | ( | PUInterpolationType | interpolationType | ) |
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.
~PUDynamicAttributeCurved | ( | void | ) |
Destructor.
var ~PUDynamicAttributeCurved | ( | ) |
Destructor.
local ~PUDynamicAttributeCurved | ( | ) |
Destructor.
|
virtual |
Todo.
|
virtual |
Todo.
|
virtual |
Todo.
|
overridevirtual |
Implements PUDynamicAttribute.
|
overridevirtual |
Implements PUDynamicAttribute.
|
overridevirtual |
Implements PUDynamicAttribute.
|
overridevirtual |
Implements PUDynamicAttribute.
|
overridevirtual |
Implements PUDynamicAttribute.
|
overridevirtual |
Implements PUDynamicAttribute.
|
inlineprotected |
Find an iterator that forms the low (left) value of the interval where x lies in.
|
inlineprotected |
Find an iterator that forms the low (left) value of the interval where x lies in.
|
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.
|
inlineprotected |
Helper functions.
|
inlineprotected |
Helper functions.
|
inlineprotected |
Helper functions.
PUInterpolationType getInterpolationType |
( | void | ) | const |
var getInterpolationType | ( | ) |
local getInterpolationType | ( | ) |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
size_t getNumControlPoints | ( | void | ) | const |
Todo.
var getNumControlPoints | ( | ) |
Todo.
local getNumControlPoints | ( | ) |
Todo.
|
overridevirtual |
Todo.
Implements PUDynamicAttribute.
|
overridevirtual |
Todo.
Implements PUDynamicAttribute.
|
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.
|
protected |
Todo.
|
protected |
Todo.
|
protected |
Todo.
|
protected |
Todo.
|
protected |
Todo.
|
protected |
Todo.
|
protected |
Todo.
|
protected |
Todo.
|
protected |
Todo.
|
protected |
Todo.
|
protected |
Todo.
|
protected |
Todo.