VerticesComp(3U) | InterViews Reference Manual | VerticesComp(3U) |
NAME¶
VerticesComp, VerticesView, PSVertices - abstract base classes forvertexed graphical component subjects and their views and PostScriptexternal representations
SYNOPSIS¶
#include <Unidraw/Components/vertices.h>
DESCRIPTION¶
VerticesComp is an abstract base class for graphical components whosegeometry can be expressed as a list of coordinate pairs. VerticesCompuses a Vertices graphic to store its graphical attributes.VerticesView is an abstract GraphicView subclass for displaying aVerticesComp. PSVertices is an abstract PostScriptView for subclassesthat externalize VerticesComp information in PostScript form.
VERTICESCOMPPUBLICOPERATIONS¶
- Vertices* GetVertices()
- Return the Vertices graphic that defines the vertices's attributes.GetVertices is simply a more specific form of the GetGraphicoperation.
VERTICESCOMPPROTECTEDOPERATIONS¶
- VerticesComp(Vertices* = nil)
- The constructor takes an optional vertices graphic that defines thecomponent's graphical attributes.
VERTICESVIEWPUBLICOPERATIONS¶
- virtual void Interpret(Command*)
- VerticesView interprets AlignToGridCmd to align its first vertex tothe grid.
- virtual void GetVertices(Coord*& x, Coord*& y, int& count)
- Return the view's vertices in canvas coordinates. GetVerticesallocates new arrays each time it is called.
- VerticesComp* GetVerticesComp()
- Return the subject.
VERTICESVIEWPROTECTEDOPERATIONS¶
- VerticesView(VerticesComp* = nil)
- Initialize a VerticesView, optionally supplying the subject.
- virtual void CreateHandles()
- VerticesView redefines CreateHandles to create a RubberHandles objectthat draws a handle coinciding with each vertex.
- virtual boolean VertexChanged()
- Returns whether or not the vertices as stored in the view aredifferent in any way from those stored in the subject. The Updatefunction relies on the result to determine whether to recreate theview's structured graphic based on the subject's.VerticesView::VertexChanged (conservatively) returns false by default; subclasses should redefine this function to make a more discerning decision, thereby increasing the efficiency of the update operation.
PSVERTICESPROTECTEDOPERATIONS¶
- 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 theobject in the PostScript output as required for idraw compatibility.
SEEALSO¶
GraphicComp(3U), GraphicView(3U), Grid(3U),PatternCmd(3U), PostScriptView(3U), Vertices(3U), align(3U), idraw(3I)
23 January 1991 | Unidraw |