An Array that contain control points. More...
#include <CCActionCatmullRom.h>
Public Member Functions | |
virtual | ~PointArray () |
PointArray () | |
bool | initWithCapacity (ssize_t capacity) |
Initializes a Catmull Rom config with a capacity hint. More... | |
local | initWithCapacity ( local capacity) |
Initializes a Catmull Rom config with a capacity hint. More... | |
void | addControlPoint (Vec2 controlPoint) |
Appends a control point. More... | |
void | insertControlPoint (Vec2 &controlPoint, ssize_t index) |
Inserts a controlPoint at index. More... | |
local | insertControlPoint ( local controlPoint, local index) |
Inserts a controlPoint at index. More... | |
void | replaceControlPoint (Vec2 &controlPoint, ssize_t index) |
Replaces an existing controlPoint at index. More... | |
Vec2 | getControlPointAtIndex (ssize_t index) |
Get the value of a controlPoint at a given index. More... | |
void | removeControlPointAtIndex (ssize_t index) |
Deletes a control point at a given index. More... | |
ssize_t | count () const |
Returns the number of objects of the control point array. More... | |
PointArray * | reverse () const |
Returns a new copy of the array reversed. More... | |
local | reverse () |
Returns a new copy of the array reversed. More... | |
void | reverseInline () |
Reverse the current control point array inline, without generating a new one. More... | |
virtual PointArray * | clone () const |
Returns a copy of the Ref. More... | |
const std::vector< Vec2 * > * | getControlPoints () const |
local | getControlPoints () |
void | setControlPoints (std::vector< Vec2 * > *controlPoints) |
![]() | |
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... | |
![]() | |
virtual | ~Clonable () |
Ref * | copy () const |
Returns a copy of the Ref. More... | |
Static Public Member Functions | |
static PointArray * | create (ssize_t capacity) |
Creates and initializes a Points array with capacity. More... | |
Additional Inherited Members | |
![]() | |
Ref () | |
Constructor. More... | |
Ref () | |
Constructor. More... | |
![]() | |
unsigned int | _referenceCount |
count of references More... | |
local | _referenceCount |
count of references More... | |
An Array that contain control points.
Used by CardinalSplineTo and (By) and CatmullRomTo (and By) actions.
|
virtual |
PointArray | ( | ) |
void addControlPoint | ( | Vec2 | controlPoint | ) |
Appends a control point.
@
local addControlPoint | ( | local | controlPoint | ) |
Appends a control point.
@
|
virtual |
ssize_t count | ( | ) | const |
Returns the number of objects of the control point array.
@
local count | ( | ) |
Returns the number of objects of the control point array.
@
|
static |
Creates and initializes a Points array with capacity.
@
|
static |
Creates and initializes a Points array with capacity.
@
local getControlPointAtIndex | ( | local | index | ) |
Get the value of a controlPoint at a given index.
@ @
const std::vector<Vec2*> * getControlPoints |
( | ) | const |
local getControlPoints | ( | ) |
bool initWithCapacity | ( | ssize_t | capacity | ) |
Initializes a Catmull Rom config with a capacity hint.
@ @
local initWithCapacity | ( | local | capacity | ) |
Initializes a Catmull Rom config with a capacity hint.
@ @
local insertControlPoint | ( | local | controlPoint, |
local | index | ||
) |
Inserts a controlPoint at index.
@ @
void removeControlPointAtIndex | ( | ssize_t | index | ) |
Deletes a control point at a given index.
@
local removeControlPointAtIndex | ( | local | index | ) |
Deletes a control point at a given index.
@
Replaces an existing controlPoint at index.
@ @
local replaceControlPoint | ( | local | controlPoint, |
local | index | ||
) |
Replaces an existing controlPoint at index.
@ @
PointArray* reverse | ( | ) | const |
Returns a new copy of the array reversed.
User is responsible for releasing this copy.
@
local reverse | ( | ) |
Returns a new copy of the array reversed.
User is responsible for releasing this copy.
@
void reverseInline | ( | ) |
Reverse the current control point array inline, without generating a new one.
local reverseInline | ( | ) |
Reverse the current control point array inline, without generating a new one.
void setControlPoints | ( | std::vector< Vec2 * > * | controlPoints | ) |
local setControlPoints | ( | local | controlPoints | ) |