cocos2d-x  2.2.3-gd2.113-rev1ec524e
Loading...
Searching...
No Matches
CCPointArray Class Reference

An Array that contain control points. More...

#include <CCActionCatmullRom.h>

Inheritance diagram for CCPointArray:
[legend]
Collaboration diagram for CCPointArray:
[legend]

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...
 
CCPointArrayreverse ()
 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 CCObjectcopyWithZone (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)
 
CCObjectautorelease (void)
 
CCObjectcopy (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 &)
 
CCObjectoperator= (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 CCObjectcopyWithZone (CCZone *pZone)
 

Static Public Member Functions

static CCPointArraycreate (unsigned int capacity)
 creates and initializes a Points array with capacity NA More...
 
- Static Public Member Functions inherited from CCObject
static CCObjectcreateWithCoder (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
 

Detailed Description

An Array that contain control points.

Used by CCCardinalSplineTo and (By) and CCCatmullRomTo (and By) actions.

NA

Constructor & Destructor Documentation

◆ ~CCPointArray()

virtual ~CCPointArray ( )
virtual

NA.

◆ CCPointArray()

NA.

Member Function Documentation

◆ addControlPoint()

void addControlPoint ( CCPoint  controlPoint)

appends a control point

◆ copyWithZone()

virtual CCObject * copyWithZone ( CCZone zone)
virtual

NA NA.

Reimplemented from CCCopying.

◆ count()

unsigned int count ( )

returns the number of objects of the control point array

◆ create()

static CCPointArray * create ( unsigned int  capacity)
static

creates and initializes a Points array with capacity NA

◆ getControlPointAtIndex()

CCPoint getControlPointAtIndex ( unsigned int  index)

get the value of a controlPoint at a given index

◆ getControlPoints()

const std::vector< CCPoint * > * getControlPoints ( )

◆ initWithCapacity()

bool initWithCapacity ( unsigned int  capacity)

initializes a Catmull Rom config with a capacity hint

◆ insertControlPoint()

void insertControlPoint ( CCPoint controlPoint,
unsigned int  index 
)

inserts a controlPoint at index

◆ removeControlPointAtIndex()

void removeControlPointAtIndex ( unsigned int  index)

deletes a control point at a given index

◆ replaceControlPoint()

void replaceControlPoint ( CCPoint controlPoint,
unsigned int  index 
)

replaces an existing controlPoint at index

◆ reverse()

CCPointArray * reverse ( )

returns a new copy of the array reversed.

User is responsible for releasing this copy

◆ reverseInline()

void reverseInline ( )

reverse the current control point array inline, without generating a new one

◆ setControlPoints()

void setControlPoints ( std::vector< CCPoint * > *  controlPoints)

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