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_Vector* | get_surface () const |
| | param: stepping - whether steps is the number of points per segment or per curve.
|
| virtual CL_Vector* | get_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_Vector* | surface |
| CL_Vector* | cp |
| int | xsteps |
| int | ysteps |
| int | xs |
| int | ys |
| bool | stepping |