|
cocos2d-x
2.2.3-gd2.113-rev1ec524e
|
An Array that contain control points. More...
#include <CCActionCatmullRom.h>
Public Member Functions | |
| virtual | ~CCPointArray () |
| NA. More... | |
| CCPointArray () | |
| NA. More... | |
| bool | initWithCapacity (unsigned int 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... | |
| void | reverseInline () |
| reverse the current control point array inline, without generating a new one More... | |
| virtual CCObject * | copyWithZone (CCZone *zone) |
| NA NA. More... | |
| const std::vector< CCPoint * > * | getControlPoints () |
| void | setControlPoints (std::vector< CCPoint * > *controlPoints) |
Public Member Functions inherited from CCObject | |
| CCObject (void) | |
| virtual | ~CCObject (void) |
| NA. More... | |
| 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) |
| CCObject (const CCObject &) | |
| CCObject & | operator= (const CCObject &) |
| virtual void | encodeWithCoder (DS_Dictionary *) |
| virtual bool | canEncode () |
| CCObjectType | getObjType () const |
| virtual int | getTag () const |
| virtual void | setTag (int nTag) |
| void | setObjType (CCObjectType) |
| virtual CCObject * | copyWithZone (CCZone *pZone) |
Static Public Member Functions | |
| static CCPointArray * | create (unsigned int capacity) |
| creates and initializes a Points array with capacity NA More... | |
Static Public Member Functions inherited from CCObject | |
| static CCObject * | createWithCoder (DS_Dictionary *) |
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 |
| int | m_nTag |
| int | m_eObjType |
| unsigned int | m_uObjectIdxInArray |
An Array that contain control points.
Used by CCCardinalSplineTo and (By) and CCCatmullRomTo (and By) actions.
NA
|
virtual |
NA.
| CCPointArray | ( | ) |
NA.
| void addControlPoint | ( | CCPoint | controlPoint | ) |
appends a control point
| unsigned int count | ( | ) |
returns the number of objects of the control point array
|
static |
creates and initializes a Points array with capacity NA
| CCPoint getControlPointAtIndex | ( | unsigned int | index | ) |
get the value of a controlPoint at a given index
| const std::vector< CCPoint * > * getControlPoints | ( | ) |
| bool initWithCapacity | ( | unsigned int | capacity | ) |
initializes a Catmull Rom config with a capacity hint
| void insertControlPoint | ( | CCPoint & | controlPoint, |
| unsigned int | index | ||
| ) |
inserts a controlPoint at index
| void removeControlPointAtIndex | ( | unsigned int | index | ) |
deletes a control point at a given index
| void replaceControlPoint | ( | CCPoint & | controlPoint, |
| unsigned int | index | ||
| ) |
replaces an existing controlPoint at index
| CCPointArray * 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
| void setControlPoints | ( | std::vector< CCPoint * > * | controlPoints | ) |