#include <bezier.h>
Collaboration diagram for CL_BezierCurve:

Public Methods | |
| CL_BezierCurve (const CL_Vector *cp, int cs, int steps, bool stepping=true) | |
| virtual | ~CL_BezierCurve () |
| param: cp - an array of control points with size (4 * cs)param: cs - number of curve segmentsparam: steps - number of points to generateparam: stepping - whether steps is the number of points per segment or per curve. | |
| virtual int | get_steps () const |
| virtual int | get_cs () const |
| retval: number of steps. | |
| virtual bool | get_stepping () const |
| retval: number of curve segments. | |
| virtual float | get_length (int segment=-1) const |
| retval: stepping. | |
| virtual void | set_steps (int steps) |
| param: segment - number of segment (-1 indicates whole curve)retval: length of segment (or curve). | |
| virtual void | set_stepping (bool stepping) |
| param: steps - number of steps. | |
| virtual CL_Vector* | get_curve () 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 (cs * steps CL_Vectors). | |
| CL_Vector | operator[] (int n) |
| retval: the 4 * cs control points. | |
Protected Methods | |
| virtual void | make_curve () |
Protected Attributes | |
| CL_Vector* | curve |
| CL_Vector* | cp |
| int | steps |
| int | cs |
| bool | stepping |
Definition at line 43 of file bezier.h.
|
|
|
|
|
param: cp - an array of control points with size (4 * cs)param: cs - number of curve segmentsparam: steps - number of points to generateparam: stepping - whether steps is the number of points per segment or per curve.
|
|
|
retval: the curve (cs * steps CL_Vectors).
|
|
|
retval: number of steps.
|
|
|
param: stepping - whether steps is the number of points per segment or per curve.
|
|
|
retval: stepping.
|
|
|
retval: number of curve segments.
|
|
|
|
|
|
|
|
|
retval: the 4 * cs control points.
|
|
|
param: steps - number of steps.
|
|
|
param: segment - number of segment (-1 indicates whole curve)retval: length of segment (or curve).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.6 written by Dimitri van Heesch,
© 1997-2001