An Array that contain control points. More...
#include <CCActionCatmullRom.h>
Public Member Functions | |
| virtual | ~CCPointArray () |
| CCPointArray () | |
| bool | initWithCapacity (unsigned int 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 (CCPoint controlPoint) |
| appends a control point More... | |
| void | insertControlPoint (CCPoint &controlPoint, unsigned int index) |
| inserts a controlPoint at index More... | |
| void | replaceControlPoint (CCPoint &controlPoint, unsigned int index) |
| replaces an existing controlPoint at index More... | |
| CCPoint | getControlPointAtIndex (unsigned int index) |
| get the value of a controlPoint at a given index More... | |
| void | removeControlPointAtIndex (unsigned int index) |
| deletes a control point at a given index More... | |
| unsigned int | count () |
| returns the number of objects of the control point array More... | |
| CCPointArray * | reverse () |
| 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 CCObject * | copyWithZone (CCZone *zone) |
| const std::vector< CCPoint * > * | getControlPoints () |
| local | getControlPoints () |
| void | setControlPoints (std::vector< CCPoint * > *controlPoints) |
Public Member Functions inherited from CCObject | |
| CCObject (void) | |
| virtual | ~CCObject (void) |
| void | release (void) |
| void | retain (void) |
| CCObject * | autorelease (void) |
| CCObject * | copy (void) |
| bool | isSingleReference (void) const |
| unsigned int | retainCount (void) const |
| virtual bool | isEqual (const CCObject *pObject) |
| virtual void | acceptVisitor (CCDataVisitor &visitor) |
| virtual void | update (float dt) |
Static Public Member Functions | |
| static CCPointArray * | create (unsigned int capacity) |
| creates and initializes a Points array with capacity More... | |
Additional Inherited Members | |
Public Attributes inherited from CCObject | |
| unsigned int | m_uID |
| int | m_nLuaID |
Protected Attributes inherited from CCObject | |
| unsigned int | m_uReference |
| unsigned int | m_uAutoReleaseCount |
An Array that contain control points.
Used by CCCardinalSplineTo and (By) and CCCatmullRomTo (and By) actions.
|
virtual |
| CCPointArray | ( | ) |
| void addControlPoint | ( | CCPoint | controlPoint) |
appends a control point
| local addControlPoint | ( | local | controlPoint) |
appends a control point
| unsigned int count | ( | ) |
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
| CCPoint getControlPointAtIndex | ( | unsigned int | index) |
get the value of a controlPoint at a given index
| local getControlPointAtIndex | ( | local | index) |
get the value of a controlPoint at a given index
| const std::vector<CCPoint*> * getControlPoints |
( | ) |
| local getControlPoints | ( | ) |
| bool initWithCapacity | ( | unsigned int | capacity) |
initializes a Catmull Rom config with a capacity hint
| local initWithCapacity | ( | local | capacity) |
initializes a Catmull Rom config with a capacity hint
| void insertControlPoint | ( | CCPoint & | controlPoint, |
| unsigned int | index | ||
| ) |
inserts a controlPoint at index
| local insertControlPoint | ( | local | controlPoint, |
| local | index | ||
| ) |
inserts a controlPoint at index
| void removeControlPointAtIndex | ( | unsigned int | index) |
deletes a control point at a given index
| local removeControlPointAtIndex | ( | local | index) |
deletes a control point at a given index
| void replaceControlPoint | ( | CCPoint & | controlPoint, |
| unsigned int | index | ||
| ) |
replaces an existing controlPoint at index
| local replaceControlPoint | ( | local | controlPoint, |
| local | index | ||
| ) |
replaces an existing controlPoint at index
| CCPointArray* reverse | ( | ) |
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< CCPoint * > * | controlPoints) |
| local setControlPoints | ( | local | controlPoints) |