Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

verticescomp(3u) [debian man page]

VerticesComp(3U)					    InterViews Reference Manual 					  VerticesComp(3U)

NAME
VerticesComp, VerticesView, PSVertices - abstract base classes for vertexed graphical component subjects and their views and PostScript external representations SYNOPSIS
#include <Unidraw/Components/vertices.h> DESCRIPTION
VerticesComp is an abstract base class for graphical components whose geometry can be expressed as a list of coordinate pairs. Ver- ticesComp uses a Vertices graphic to store its graphical attributes. VerticesView is an abstract GraphicView subclass for displaying a VerticesComp. PSVertices is an abstract PostScriptView for subclasses that externalize VerticesComp information in PostScript form. VERTICESCOMP PUBLIC OPERATIONS
Vertices* GetVertices() Return the Vertices graphic that defines the vertices's attributes. GetVertices is simply a more specific form of the GetGraphic operation. VERTICESCOMP PROTECTED OPERATIONS
VerticesComp(Vertices* = nil) The constructor takes an optional vertices graphic that defines the component's graphical attributes. VERTICESVIEW PUBLIC OPERATIONS
virtual void Interpret(Command*) VerticesView interprets AlignToGridCmd to align its first vertex to the grid. virtual void GetVertices(Coord*& x, Coord*& y, int& count) Return the view's vertices in canvas coordinates. GetVertices allocates new arrays each time it is called. VerticesComp* GetVerticesComp() Return the subject. VERTICESVIEW PROTECTED OPERATIONS
VerticesView(VerticesComp* = nil) Initialize a VerticesView, optionally supplying the subject. virtual void CreateHandles() VerticesView redefines CreateHandles to create a RubberHandles object that draws a handle coinciding with each vertex. virtual boolean VertexChanged() Returns whether or not the vertices as stored in the view are different in any way from those stored in the subject. The Update function relies on the result to determine whether to recreate the view's structured graphic based on the subject's. Ver- ticesView::VertexChanged (conservatively) returns false by default; subclasses should redefine this function to make a more discern- ing decision, thereby increasing the efficiency of the update operation. PSVERTICES PROTECTED OPERATIONS
PSVertices(VerticesComp* = nil) Initialize a PostScript external representation of the given subject, if any. virtual const char* Name() Subclasses should redefine Name to return the proper tag for the object in the PostScript output as required for idraw compatibil- ity. SEE ALSO
GraphicComp(3U), GraphicView(3U), Grid(3U), PatternCmd(3U), PostScriptView(3U), Vertices(3U), align(3U), idraw(3I) Unidraw 23 January 1991 VerticesComp(3U)

Check Out this Related Man Page

Vertices(3U)						    InterViews Reference Manual 					      Vertices(3U)

NAME
Vertices - abstract base class for graphics defined by a set of coordinate pairs SYNOPSIS
#include <Unidraw/Graphic/verts.h> DESCRIPTION
Vertices is an abstract base class for graphics such as polygons and splines whose geometry is specified by a set of coordinate pairs. The Vertices class supports vertex-related operations common to all such graphical objects and also supports extent caching. PUBLIC OPERATIONS
virtual ~Vertices() The destructor deallocates the list of coordinate pairs stored in the graphic. virtual int GetOriginal(const Coord*& x, const Coord*& y) Return pointers to the arrays of Coords stored internally that define the graphic's vertices. GetOriginal's return value reflects the size of the arrays. virtual boolean operator == (Vertices&) virtual boolean operator != (Vertices&) Compare this to the given Vertices instance and return whether they (do not) store identical sets of vertices. PROTECTED OPERATIONS
Vertices(Graphic* = nil) Vertices(Coord* x, Coord* y, int count, Graphic* = nil) The constructors are protected to disallow instantiation of the abstract class. Subclasses can pass a set of vertices to copy into internal storage and an optional graphic from which to obtain an initial set of graphics state. Vertices itself stores no addi- tional graphics state over that in the Graphic base class. void s_getExtent( float&, float&, float&, float&, float&, Graphic* ) void f_getExtent( float&, float&, float&, float&, float&, Graphic* ) Helper functions that return extent information based on the bounding box that the vertices define. s_getExtent returns an extent that accounts for the width of a brush, as would be necessary if the vertices defined a stroked path, while f_getExtent assumes that the vertices define the graphic's extremities, as would be the case if the vertices defined a filled path. These operations cache the extent they compute initially. SEE ALSO
Graphic(3U) Unidraw 2 February 1991 Vertices(3U)
Man Page