Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_BezierSurface Class Reference

#include <bezier.h>

Collaboration diagram for CL_BezierSurface:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_BezierSurface (const CL_Vector *cp, int xs, int ys, int xsteps, int ysteps, bool stepping=true)
virtual ~CL_BezierSurface ()
 param: cp - an array of control points with size (16 * xs * ys)param: xs - number of surface segments on x directionparam: ys - number of surface segments on y directionparam: xsteps - number of points to generate on x directionparam: ysteps - number of points to generate on x directionparam: stepping - whether steps is the number of points per segment or per surface.

virtual int get_xsteps () const
virtual int get_ysteps () const
 retval: number of steps.

virtual int get_xs () const
 retval: number of steps.

virtual int get_ys () const
 retval: number of surface segments.

virtual bool get_stepping () const
 retval: number of surface segments.

virtual void set_xsteps (int xsteps)
 param: segment - number of segment (-1 indicates whole surface)retval: length of segment (or surface).

virtual void set_ysteps (int ysteps)
 param: steps - number of steps.

virtual void set_stepping (bool stepping)
 param: steps - number of steps.

virtual CL_Vectorget_surface () const
 param: stepping - whether steps is the number of points per segment or per curve.

virtual CL_Vectorget_control_points () const
 retval: the curve (xs * xsteps * ys * ystepes CL_Vectors).

CL_Vector operator[] (int n)
 retval: the 16 * xs * ys control points.


Protected Methods

virtual CL_Vector evaluate (float, float, int)
virtual void make_surface ()

Protected Attributes

CL_Vectorsurface
CL_Vectorcp
int xsteps
int ysteps
int xs
int ys
bool stepping

Constructor & Destructor Documentation

CL_BezierSurface::CL_BezierSurface ( const CL_Vector * cp,
int xs,
int ys,
int xsteps,
int ysteps,
bool stepping = true )
 

CL_BezierSurface::~CL_BezierSurface ( ) [virtual]
 

param: cp - an array of control points with size (16 * xs * ys)param: xs - number of surface segments on x directionparam: ys - number of surface segments on y directionparam: xsteps - number of points to generate on x directionparam: ysteps - number of points to generate on x directionparam: stepping - whether steps is the number of points per segment or per surface.


Member Function Documentation

virtual CL_Vector CL_BezierSurface::evaluate ( float,
float,
int ) [protected, virtual]
 

CL_Vector * CL_BezierSurface::get_control_points ( ) const [inline, virtual]
 

retval: the curve (xs * xsteps * ys * ystepes CL_Vectors).

Definition at line 178 of file bezier.h.

bool CL_BezierSurface::get_stepping ( ) const [inline, virtual]
 

retval: number of surface segments.

Definition at line 152 of file bezier.h.

CL_Vector * CL_BezierSurface::get_surface ( ) const [inline, virtual]
 

param: stepping - whether steps is the number of points per segment or per curve.

Definition at line 174 of file bezier.h.

int CL_BezierSurface::get_xs ( ) const [inline, virtual]
 

retval: number of steps.

Definition at line 144 of file bezier.h.

int CL_BezierSurface::get_xsteps ( ) const [inline, virtual]
 

Definition at line 136 of file bezier.h.

int CL_BezierSurface::get_ys ( ) const [inline, virtual]
 

retval: number of surface segments.

Definition at line 148 of file bezier.h.

int CL_BezierSurface::get_ysteps ( ) const [inline, virtual]
 

retval: number of steps.

Definition at line 140 of file bezier.h.

virtual void CL_BezierSurface::make_surface ( ) [protected, virtual]
 

CL_Vector CL_BezierSurface::operator[] ( int n ) [inline]
 

retval: the 16 * xs * ys control points.

Definition at line 182 of file bezier.h.

void CL_BezierSurface::set_stepping ( bool stepping ) [virtual]
 

param: steps - number of steps.

void CL_BezierSurface::set_xsteps ( int xsteps ) [virtual]
 

param: segment - number of segment (-1 indicates whole surface)retval: length of segment (or surface).

void CL_BezierSurface::set_ysteps ( int ysteps ) [virtual]
 

param: steps - number of steps.


Member Data Documentation

CL_Vector* CL_BezierSurface::cp [protected]
 

Definition at line 114 of file bezier.h.

bool CL_BezierSurface::stepping [protected]
 

Definition at line 118 of file bezier.h.

CL_Vector* CL_BezierSurface::surface [protected]
 

Definition at line 113 of file bezier.h.

int CL_BezierSurface::xs [protected]
 

Definition at line 117 of file bezier.h.

int CL_BezierSurface::xsteps [protected]
 

Definition at line 116 of file bezier.h.

int CL_BezierSurface::ys [protected]
 

Definition at line 117 of file bezier.h.

int CL_BezierSurface::ysteps [protected]
 

Definition at line 116 of file bezier.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:56:37 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001