28 #ifndef TRIALDISPLAY_DSELLIPSE_H
29 #define TRIALDISPLAY_DSELLIPSE_H
virtual casacore::Bool setOptions(const casacore::Record &settings)
virtual void draw(PixelCanvas *pix)
General DisplayShape functions.
virtual void setDefaultOptions()
Called when def.
virtual casacore::Bool inObject(const casacore::Float &xPos, const casacore::Float &yPos)
Is the supplied point within the DisplayShape?
virtual void setMajorAxis(const casacore::Float &newMajor)
virtual casacore::Vector< casacore::Float > getCenter()
Returns the center of the DisplayShape (x,y).
casacore::Vector< casacore::Float > itsCenter
virtual casacore::Float getMinorAxis()
Functions to set / get the minor and major axis of the ellipse (in pixels).
virtual void changePoint(const casacore::Vector< casacore::Float > &newPoint)
Changes the closest point to the supplied location to that location.
virtual casacore::Record getOptions()
Get and set options.
Base class defining interface to pixel-based output devices.
Implementation of a ellipse.
virtual void scale(const casacore::Float &scaleFactor)
Scale the shape about its center by the scaleFactor.
virtual void move(const casacore::Float &dX, const casacore::Float &dY)
virtual void setMinorAxis(const casacore::Float &newMinor)
casacore::Float itsMinorAxis
casacore::Bool itsOneHandle
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
DSClosed provides common functionality for all "closed" shapes.
virtual void rotateAbout(const casacore::Float &angle, const casacore::Float &aboutX, const casacore::Float &aboutY)
virtual casacore::Float getMajorAxis()
virtual void calculateHandlePositions()
Required on update.
virtual void rotate(const casacore::Float &angle)
Rotate the shape about its center by a set angle (angle in degrees).
casacore::Matrix< casacore::Float > itsHandleLocation
DSEllipse(const casacore::Bool &onlyShowOneHandle=false)
Constructors and destructors.
casacore::Float itsMajorAxis
virtual void setCenter(const casacore::Float &xPos, const casacore::Float &yPos)
Sets the center of the DisplayShape.