Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_Bezier Class Reference

List of all members.

Public Member Functions

Constructor / Destructor
 CP_Bezier ()
 Constructor.
 CP_Bezier (CP_Point inPoints[4])
virtual ~CP_Bezier ()
 Destructor.
Drawing
void Draw (CP_Canvas &inDestCanvas)
void Draw (CP_Canvas &inDestCanvas, CP_Point inPoints[4])

Protected Attributes

CP_Point fPoints [4]

Private Member Functions

Misc
void ComputeSegmets (CP_Point inPoints[4], CP_Point segment[])
void SetupBezier ()

Constructor & Destructor Documentation

CP_Bezier::CP_Bezier  ) 
 

Constructor.

Exceptions:
none 

CP_Bezier::CP_Bezier CP_Point  inPoints[4]  ) 
 

Constructor. Sets the 4 points of the curve as follows: 0 = starting point, 1 - control point one, 2 - control point two, 3 - ending point.

Exceptions:
none 

CP_Bezier::~CP_Bezier  )  [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

void CP_Bezier::Draw CP_Canvas inDestCanvas  ) 
 

Draws the bezier curve in the passed in canvas object.

Parameters:
inDestCanvas The canvas to draw into.
Exceptions:
none 
Returns:
void

void CP_Bezier::Draw CP_Canvas inDestCanvas,
CP_Point  inPoints[4]
 

Draws the bezier curve in the passed in canvas object, and using the passed in control points. The points are interprested as folows: 0 = starting point, 1 - control point one, 2 - control point two, 3 - ending point.

Parameters:
inDestCanvas The canvas to draw into.
inPoints 4 points describing the curve.
Exceptions:
none 
Returns:
void

void CP_Bezier::ComputeSegmets CP_Point  inPoints[4],
CP_Point  segment[]
[private]
 

MacOS - Private routine to calculate the parts of the curve to draw.

Parameters:
inPoints 4 points describing the curve.
segment Area to return the results in.
Exceptions:
none 
Returns:
void Results are returned in the segment parameter.

void CP_Bezier::SetupBezier  )  [private]
 

MacOS - Private routine to setup our data fields.

Exceptions:
none 
Returns:
void


Member Data Documentation

CP_Point CP_Bezier::fPoints[4] [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Sep 20 20:21:34 2005 for CPLAT_MacOS by  doxygen 1.4.0