Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

lines(3u) [debian man page]

lines(3U)						    InterViews Reference Manual 						 lines(3U)

NAME
Point, Line, MultiLine, S_MultiLine, SF_MultiLine - structured graphics classes for points, lines, and open polygons SYNOPSIS
#include <Unidraw/Graphic/lines.h> DESCRIPTION
Point and Line are subclasses of Graphic that draw a point and a line, respectively. MultiLine is a Vertices subclass that serves as an abstract base class for open polygons: S_MultiLine is a MultiLine subclass for stroked open polygons, while SF_MultiLine is a stroked- filled open polygon. Point, Line, and S_MultiLine store a PSBrush, while SF_MultiLine also stores a PSPattern. POINT PUBLIC OPERATIONS
Point(Coord x, Cord y, Graphic* = nil) Construct a Point object, optionally supplying a graphic from which to obtain an initial set of graphics state. void GetOriginal(Coord&, Coord&) Return the coordinates supplied in the constructor. LINE PUBLIC OPERATIONS
Line(Coord x0, Cord y0, Coord x1, Coord y1, Graphic* = nil) Construct a Line object, optionally supplying a graphic from which to obtain an initial set of graphics state. void GetOriginal(Coord& x0, Coord& y0, Coord& x1, Coord& y1) Return the line's endpoints as supplied in the constructor. MULTILINE PROTECTED OPERATIONS
MultiLine(Coord* x, Coord* y, int count, Graphic* = nil) MultiLine's constructor is protected to prevent instantiation of the abstract base class. The parameters are passed directly to the Vertices constructor. S_MULTILINE PUBLIC OPERATIONS S_MultiLine(Coord* x, Coord* y, int count, Graphic* = nil) Construct an S_MultiLine object, optionally supplying a graphic from which to obtain an initial set of graphics state. SF_MULTILINE PUBLIC OPERATIONS SF_MultiLine(Coord* x, Coord* y, int count, Graphic* = nil) Construct an SF_MultiLine object, optionally supplying a graphic from which to obtain an initial set of graphics state. SEE ALSO
Graphic(3U), Vertices(3U), pspaint(3U) Unidraw 2 February 1991 lines(3U)

Check Out this Related Man Page

ellipses(3U)						    InterViews Reference Manual 					      ellipses(3U)

NAME
Ellipse, S_Ellipse, F_Ellipse, SF_Ellipse, S_Circle, F_Circle, SF_Circle - abstract base class and predefined subclasses for elliptical structured graphics SYNOPSIS
#include <Unidraw/Graphic/ellipses.h> DESCRIPTION
Ellipse is an abstract base class for elliptical structured graphics objects. It stores geometric information that such graphics require and provides helper functions for calculating extents and for hit detection. Predefined subclasses include S_Ellipse, F_Ellipse, and SF_Ellipse, which draw stroked, filled, and stroked-filled ellipses, respectively; and S_Circle, F_Circle, and SF_Circle, which draw stroked, filled, and stroked-filled circles, respectively. The stroked subclasses store a PSBrush, the filled subclasses store a PSPat- tern, and the stroked-filled subclasses store one of each. ELLIPSE PUBLIC OPERATIONS
void GetOriginal(Coord& x, Coord& y, int& rx, int& ry) Return the ellipse's geometry. (x, y) defines the ellipse's center, while rx and ry define its horizontal and vertical radii, respectively. ELLIPSE PROTECTED OPERATIONS
Ellipse(Coord x, Coord y, int rx, int ry, Graphic* = nil) The constructor is protected to disallow instantiation of the abstract base class. An ellipse's geometry is defined in terms of its center and its horizontal and vertical radii. The constructor also takes an optional graphic from which to obtain an initial set of graphics state. void s_getExtent( float&, float&, float&, float&, float&, Graphic* ) void f_getExtent( float&, float&, float&, float&, float&, Graphic* ) boolean s_contains(PointObj&, Graphic*) boolean f_contains(PointObj&, Graphic*) boolean s_intersects(BoxObj&, Graphic*) boolean f_intersects(BoxObj&, Graphic*) Helper functions that return extent and hit detection information based on the bounding box that the ellipse defines. s_getExtent, s_contains, and s_intersects return information that accounts for the width of a brush, as would be necessary if the ellipse is stroked, while f_getExtent, f_contains, and f_intersects assumes that the ellipse is filled. Subclasses can use the operations to help implement their getExtent, contains, and intersects operations. SUBCLASS PUBLIC OPERATIONS
S_Ellipse(Coord x, Coord y, int rx, int ry, Graphic* = nil) F_Ellipse(Coord x, Coord y, int rx, int ry, Graphic* = nil) SF_Ellipse(Coord x, Coord y, int rx, int ry, Graphic* = nil) S_Circle(Coord x, Coord y, int radius, Graphic* = nil) F_Circle(Coord x, Coord y, int radius, Graphic* = nil) SF_Circle(Coord x, Coord y, int radius, Graphic* = nil) Constructors for the various predefined Ellipse subclasses. SEE ALSO
Graphic(3U), geomobjs(3U), pspaint(3U) Unidraw 2 February 1991 ellipses(3U)
Man Page