---
name: "EllipseComp"
section: "3"
platform: "linux"
package: "ivtools-dev"
version: "1.1.3-4"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/EllipseComp"
---

# EllipseComp(3)

ellipse component subject, view, and PostScript external representation

## NAME

EllipseComp, EllipseView, PSEllipse - ellipse component subject, view, and PostScript external representation

## SYNOPSIS

**#include \<Unidraw/Components/ellipse.h\>**

## 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.

- **virtual void Interpret(Command\*)**

  EllipseView interprets AlignToGridCmd to align its center to the grid.

- **virtual Manipulator\* CreateManipulator(**

  - **Viewer\*, Event&, Transformer\*, Tool\***

  - **)**

  - **virtual void InterpretManipulator(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.

## 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)
