27 #ifndef TRIALDISPLAY_DSPOLY_H
28 #define TRIALDISPLAY_DSPOLY_H
virtual void addPoint(const casacore::Vector< casacore::Float > &newPoint)
Polygon specific functions, add, delete and set points, all in pixels.
virtual casacore::Bool setOptions(const casacore::Record &settings)
virtual void setCenter(const casacore::Float &xPos, const casacore::Float &yPos)
Sets the center of the DisplayShape.
casacore::Bool itsValidCenter
virtual casacore::Vector< casacore::Float > getCenter()
Returns the center of the DisplayShape (x,y).
casacore::Bool itsValidPoints
virtual casacore::Bool inObject(const casacore::Float &xPos, const casacore::Float &yPos)
Is the supplied point within the DisplayShape?
casacore::Vector< casacore::Float > itsPolyCenter
virtual void rotateAbout(const casacore::Float &angle, const casacore::Float &aboutX, const casacore::Float &aboutY)
Base class defining interface to pixel-based output devices.
virtual void scale(const casacore::Float &scale)
Scale the shape about its center by the scaleFactor.
virtual casacore::Matrix< casacore::Float > getPoints()
virtual void changePoint(const casacore::Vector< casacore::Float > &newLocation)
Changes the closest point to the supplied location to that location.
Implementation of a Polygon.
virtual void move(const casacore::Float &dX, const casacore::Float &dY)
virtual void deletePoint(const casacore::Vector< casacore::Float > &removePoint)
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
virtual void rotate(const casacore::Float &angle)
Rotate the shape about its center by a set angle (angle in degrees).
casacore::Matrix< casacore::Float > itsPoints
Points used to draw (with scaling + rotation)
DSClosed provides common functionality for all "closed" shapes.
virtual void draw(PixelCanvas *pc)
General DisplayShape functions.
virtual void setDefaultOptions()
Used to set up the class when default constructor called.
virtual void setPoints(const casacore::Matrix< casacore::Float > &newPoints)
virtual casacore::Float getArea()
DSPoly()
Constructors and destructor.
virtual casacore::Record getOptions()
Get and set options.