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

PadComp(3U)						    InterViews Reference Manual 					       PadComp(3U)

NAME
PadComp, PadView, PadGraphic, PSPad - pad connector subject, view, structured graphic, and PostScript external representation SYNOPSIS
#include <Unidraw/Components/pad.h> DESCRIPTION
PadComp is a Connector subclass that supports connectivity with two degrees of freedom. It uses a PadGraphic to store its graphical attributes. PadView is a GraphicView for displaying the pad. PSPad is a PostScriptView that externalizes the subject's information in PostScript form. PADCOMP PUBLIC OPERATIONS
PadComp(PadGraphic* = nil) The constructor takes an optional PadGraphic that defines the pad's graphical attributes. virtual void Interpret(Command*) virtual void Uninterpret(Command*) PadComp (un)interprets a subset of commands that connectors can generally interpret, namely MoveCmd, BrushCmd, AlignCmd, Mobility- Cmd, DeleteCmd, and CutCmd. virtual Mobility GetMobility() virtual void SetMobility(Mobility) PadComp redefines these functions to return and assign its _mobility protected member. The pad has fixed mobility initially. Pad* GetPad() Return the Pad graphic that defines the line's attributes. GetPad is simply a more specific form of the GetGraphic operation. PADVIEW PUBLIC OPERATIONS
PadView(PadComp* = nil) Create an PadView, optionally supplying the subject. virtual void Interpret(Command*) PadView interprets AlignToGridCmd to align its lower left to the grid. virtual Manipulator* CreateManipulator( Viewer*, Event&, Transformer*, Tool* ) virtual void InterpretManipulator(Manipulator*) PadViews respond only to manipulation by GraphicCompTools, MoveTools, and ConnectTools. PadView inherits its MoveTool response from ConnectorView. GraphicCompTool will let the user sweep out a rectangle that reflects the pad's size. Creation will be influenced by gravity, if any. PadView creates a ConnectManip in response to the ConnectTool, which will exhibit a gravational attraction to potential target connectors. PadView will produce a ConnectCmd to connect the pad to its target. A pad connected in this way will receive floating mobility. PadComp* GetPadComp() Return the subject. PADVIEW PROTECTED OPERATIONS
PadGraphic* GetPad() Return the PadGraphic that defines the pad's attributes. GetPad is simply a more specific form of the GetGraphic operation. virtual PadComp* NewSubject(PadGraphic*) A helper function that creates a PadComp subject with the given pad graphic. This function produces the proper subject when the GraphicCompTool's manipulator is interpreted. Subclasses can redefine this operation to return a PadComp subclass, thus eliminating the need to reimplement InterpretManipulator. Manipulator* CreateGraphicCompManip( Viewer*, Event&, Transformer*, Tool* ) Manipulator* CreateConnectManip( Viewer*, Event&, Transformer*, Tool* ) Command* InterpretGraphicCompManip(Manipulator*) Command* InterpretConnectManip(Manipulator*) Helper functions used by CreateManipulator and InterpretManipulator to create and interpret the manipulators associated with Graph- icCompTool and ConnectTool. PADGRAPHIC PUBLIC OPERATIONS
PadGraphic( Coord = 0, Coord = 0, Coord = 0, Coord = 0, Graphic* = nil ) Create a PadGraphic, optionally specifying lower-left and upper-right corners and a graphic from which to obtain its default graph- ics attributes. void GetOriginal(Coord&, Coord&, Coord&, Coord&) Return the PadGraphic's original coordinates as specified in the constructor. PSPAD PUBLIC OPERATIONS
PSPad(PadComp* = nil) Construct a PostScript external representation of the given subject, if any. SEE ALSO
BrushCmd(3U), ConnectTool(3U), Connector(3U), ConnectorView3U), Event(3I), Graphic(3U), GraphicCompTool(3U), Grid(3U), MoveTool(3U), Pat- ternCmd(3U), PostScriptView(3U), Transformer(3I), Viewer(3U), align(3U), edit(3U), manips(3U), transforms(3U) Unidraw 23 January 1991 PadComp(3U)
Man Page