torque Torque Game Engine Documentation
TGE Version 1.5.2

SplCtrlPts Class Reference

#include <mSplinePatch.h>


Detailed Description

Class for spline control points.

See also:
SplinePatch


Public Member Functions

 SplCtrlPts ()
virtual ~SplCtrlPts ()
U32 getNumPoints ()
 Gets the number of points in the spline.
const Point3FgetPoint (U32 pointNum)
 Gets the point at the given index.
void setPoint (Point3F &point, U32 pointNum)
 Sets a point at the given index to the point given.
void addPoint (Point3F &point)
 Adds a point to the end of the spline.
void submitPoints (Point3F *pts, U32 num)
 Clears existing points and enters new points.

Private Attributes

Vector< Point3FmPoints
 Vector of points in the spline.


Constructor & Destructor Documentation

SplCtrlPts::SplCtrlPts (  ) 

virtual SplCtrlPts::~SplCtrlPts (  )  [virtual]


Member Function Documentation

U32 SplCtrlPts::getNumPoints (  )  [inline]

Gets the number of points in the spline.

const Point3F* SplCtrlPts::getPoint ( U32  pointNum  ) 

Gets the point at the given index.

Parameters:
pointNum index of the point in question

void SplCtrlPts::setPoint ( Point3F point,
U32  pointNum 
)

Sets a point at the given index to the point given.

Parameters:
point New value for the given point
pointNum index of the given point

void SplCtrlPts::addPoint ( Point3F point  ) 

Adds a point to the end of the spline.

Parameters:
point New point to be added

void SplCtrlPts::submitPoints ( Point3F pts,
U32  num 
)

Clears existing points and enters new points.

Parameters:
pts List of points to be added
num Number of points to be added


Field Documentation

Vector of points in the spline.




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen