Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

polygoncomp(3u) [debian man page]

PolygonComp(3U) 					    InterViews Reference Manual 					   PolygonComp(3U)

NAME
PolygonComp, PolygonView, PSPolygon - polygon component subject, view, and PostScript external representation SYNOPSIS
#include <Unidraw/Components/polygon.h> DESCRIPTION
PolygonComp is a VerticesComp that defines a polygon. It uses an SF_Polygon graphic to store its graphical attributes. PolygonView is a VerticesView for displaying the polygon. PSPolygon is a PSVertices that externalizes the subject's information in PostScript form. POLYGONCOMP PUBLIC OPERATIONS
PolygonComp(SF_Polygon* = nil) The constructor takes an optional stroked-filled polygon graphic that defines the attributes of the polygon. SF_Polygon* GetPolygon() Return the Polygon graphic that defines the polygon's attributes. GetPolygon is simply a more specific form of the GetGraphic oper- ation. POLYGONVIEW PUBLIC OPERATIONS
PolygonView(PolygonComp* = nil) Create an PolygonView, optionally supplying the subject. virtual Manipulator* CreateManipulator( Viewer*, Event&, Transformer*, Tool* ) virtual void InterpretManipulator(Manipulator*) PolygonView redefines its response to manipulation with a GraphicCompTool. The user clicks the left mouse button to specify each vertex and clicks with the middle mouse button to specify the final vertex. Vertex positioning will be constrained by gravity, if any. PolygonView also defines a response to the ReshapeTool, allowing the user to click on one of its vertices to reposition it. The subject is actually replaced (via ReplaceCmd) with a new PolygonComp subject reflecting the repositioned vertex. Repositioning will be influenced by gravity. PolygonComp* GetPolygonComp() Return the subject. PSPOLYGON PUBLIC OPERATIONS
PSPolygon(PolygonComp* = nil) Construct a PostScript external representation of the given subject, if any. PSPOLYGON PROTECTED OPERATIONS
virtual const char* Name() PSPolygon identifies itself as "Poly" in the PostScript output. SEE ALSO
Event(3I), GraphicComp(3U), GraphicCompTool(3U), GraphicView(3U), Grid(3U), PatternCmd(3U), PostScriptView(3U), ReshapeTool(3U), Rub- band(3I), Transformer(3I), VerticesComp(3U), Viewer(3U), align(3U), edit(3U), polygons(3U) Unidraw 23 January 1991 PolygonComp(3U)

Check Out this Related Man Page

RectComp(3U)						    InterViews Reference Manual 					      RectComp(3U)

NAME
RectComp, RectView, PSRect - rectangle component subject, view, and PostScript external representation SYNOPSIS
#include <Unidraw/Components/rect.h> DESCRIPTION
RectComp is a GraphicComp that defines a rectangle. It uses an SF_Rect graphic to store its graphical attributes. RectView is a Graph- icView for displaying the rectangle. PSRect is a PostScriptView that externalizes the subject's information in PostScript form. RECTCOMP PUBLIC OPERATIONS
RectComp(SF_Rect* = nil) The constructor takes an optional stroked-filled rectangle that defines the attributes of the rectangle. SF_Rect* GetRect() Return the SF_Rect graphic that defines the rectangle's attributes. GetRect is simply a more specific form of the GetGraphic opera- tion. RECTVIEW PUBLIC OPERATIONS
RectView(RectComp* = nil) Create an RectView, optionally supplying the subject. virtual void Interpret(Command*) RectView interprets AlignToGridCmd to align its lower-left to the grid. virtual Manipulator* CreateManipulator( Viewer*, Event&, Transformer*, Tool* ) virtual void InterpretManipulator(Manipulator*) RectView redefines its response to manipulation with a GraphicCompTool. GraphicCompTool will let the user sweep out a rectangle that reflects the RectComp's size. Creation will be influenced by gravity, if any. RectView also defines a response to the ReshapeTool, allowing the user to click on one of its corners to reposition it. The subject is actually replaced (via ReplaceCmd) with a Poly- gonComp subject reflecting the repositioned corner. Repositioning will be influenced by gravity. virtual void GetCorners(Coord*, Coord*) GetCorners takes two arrays of four Coord values and stores into them the coordinates of its corners, in canvas coordinates. RectComp* GetRectComp() Return the subject. RECTVIEW PROTECTED OPERATIONS
virtual void CreateHandles() RectView redefines CreateHandles to use a RubberHandles object with four handles, one at each corner of the rectangle. PSRECT PUBLIC OPERATIONS
PSRect(RectComp* = nil) Construct a PostScript external representation of the given subject, if any. SEE ALSO
GraphicComp(3U), GraphicCompTool(3U), GraphicView(3U), Grid(3U), PolygonComp(3U), PostScriptView(3U), ReshapeTool(3U), align(3U), edit(3U), polygons(3U) Unidraw 22 January 1991 RectComp(3U)
Man Page