splines3
Structured graphics classes for open and closed b-splines
Usage
#include <Unidraw/Graphic/splines.h>
Overview
OpenBSpline and ClosedBSpline are Vertices subclasses that serve as abstract base classes for open and closed B-spline structured graphics. Predefined subclasses include S_OpenBSpline, F_OpenBSpline, and SF_OpenBSpline, which draw stroked, filled, and stroked-filled open B-splines, respectively; and S_ClosedBSpline, F_ClosedBSpline, and SF_ClosedBSpline, which draw stroked, filled, and stroked-filled closed B-splines, respectively. The SFH_OpenBSpline and SFH_ClosedBSpline subclasses are identical to their SF_-prefixed counterparts, except they can detect hits on their control points in addition to detecting hits on their visible parts. The stroked subclasses store a PSBrush, the filled subclasses store a PSPattern, and the stroked-filled subclasses store one of each.
Openbspline protected operations
- OpenBSpline(Coord* x, Coord* y, int count, Graphic* = nil)
-
OpenBSpline's constructor is protected to prevent instantiation of the abstract base class. The parameters are passed directly to the Vertices constructor.
Openbspline subclass public operations
- S_OpenBSpline(Coord* x, Coord* y, int count, Graphic* = nil)
- F_OpenBSpline(Coord* x, Coord* y, int count, Graphic* = nil)
- SF_OpenBSpline(Coord* x, Coord* y, int count, Graphic* = nil)
- SFH_OpenBSpline(Coord* x, Coord* y, int count, Graphic* = nil)
-
Constructors for the various predefined Rect subclasses.
Closedbspline protected operations
- ClosedBSpline(Coord* x, Coord* y, int count, Graphic* = nil)
-
ClosedBSpline's constructor is protected to prevent instantiation of the abstract base class. The parameters are passed directly to the Vertices constructor.
Closedbspline subclass public operations
- S_ClosedBSpline(Coord* x, Coord* y, int count, Graphic* = nil)
- F_ClosedBSpline(Coord* x, Coord* y, int count, Graphic* = nil)
- SF_ClosedBSpline(Coord* x, Coord* y, int count, Graphic* = nil)
- SFH_ClosedBSpline(Coord* x, Coord* y, int count, Graphic* = nil)
-
Constructors for the various predefined Rect subclasses.
Releases
Unchanged in 2 releases since Debian 2.2 (Potato).