EllipseComp, EllipseView, PSEllipse - ellipse component subject, view, and PostScript external
Contents
Description
EllipseComp is a GraphicComp that defines an ellipse. It uses an Ellipse graphic to store its graphical
attributes. EllipseView is a GraphicView for displaying the ellipse. PSEllipse is a PostScriptView that
externalizes the subject's information in PostScript form.
Ellipsecomp Public Operations
EllipseComp(SF_Ellipse*=nil)
The constructor takes an optional stroked-filled ellipse that defines the attributes of the
ellipse.
SF_Ellipse*GetEllipse()
Return the SF_Ellipse graphic that defines the ellipse's attributes. GetEllipse is simply a more
specific form of the GetGraphic operation.
Ellipseview Public Operations
EllipseView(EllipseComp*=nil)
Create an EllipseView, optionally supplying the subject.
virtualvoidInterpret(Command*)
EllipseView interprets AlignToGridCmd to align its center to the grid.
virtualManipulator*CreateManipulator(Viewer*,Event&,Transformer*,Tool*)virtualvoidInterpretManipulator(Manipulator*)
EllipseView redefines its response to manipulation with a GraphicCompTool. The user clicks to
specify the center of the ellipse and then drags to vary its axes. The center and the axes will
be constrained by gravity, if any.
EllipseComp*GetEllipseComp()
Return the subject.
Name
EllipseComp, EllipseView, PSEllipse - ellipse component subject, view, and PostScript external
representation
Psellipse Public Operations
PSEllipse(EllipseComp*=nil)
Construct a PostScript external representation of the given subject, if any.
See Also
GraphicComp(3U), GraphicCompTool(3U), GraphicView(3U), Grid(3U), PostScriptView(3U), align(3U), ellipses(3U) Unidraw 22 January 1991 EllipseComp(3U)
Synopsis
#include<Unidraw/Components/ellipse.h>
