28 #ifndef TRIALDISPLAY_DISPLAYSHAPEINTERFACE_H
29 #define TRIALDISPLAY_DISPLAYSHAPEINTERFACE_H
virtual void setCenter(const casacore::Float xPos, const casacore::Float yPos)
virtual void rotate(const casacore::Float angle)
virtual casacore::Bool inObject(const casacore::Float xPos, const casacore::Float yPos)
DisplayShape functionality.
virtual casacore::Record getOptions()
casacore::Record pixToWorldOpts(const casacore::Record &pix)
virtual DisplayShape * getObject()
Returns the pointer to the underlying object.
void makeShape(const casacore::Record &shapeInfo)
virtual void toPolygon()
If the shape is a PolyLine, this function will change it to a polygon.
virtual casacore::Bool updatePixelPosition()
Update the pixel location of this shape, based on the stored information on its location.
casacore::Vector< casacore::Float > relToPix(const casacore::Vector< casacore::Float > &rel)
casacore::Bool itsScale
Scale widths and heights in relative mode?
Base class defining interface to pixel-based output devices.
virtual void move(const casacore::Float dX, const casacore::Float dY)
virtual void draw(PixelCanvas *toDrawTo)
casacore::Record worldToPixOpts(const casacore::Record &world)
virtual casacore::Bool onHandles(const casacore::Float xPos, const casacore::Float yPos)
virtual ~DisplayShapeInterface()
casacore::Record toPixOpts(const casacore::Record ¬Pix)
casacore::Float pixToRelHeight(const casacore::Float pix)
const WorldCanvas * itsWc
casacore::Float relToPixHeight(const casacore::Float rel)
The abstract base class for all "DisplayShapes".
class PixelCanvas; class WorldCanvas;
virtual void addPoint(const casacore::Vector< casacore::Float > &newPoint)
casacore::Vector< casacore::Float > pixToRel(const casacore::Vector< casacore::Float > &pix)
casacore::Record altCoords
Copy of shape, however in its alternate coord form.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
virtual void changePoint(const casacore::Vector< casacore::Float > &newPos)
virtual void scale(const casacore::Float angle)
casacore::Record pixToRelOpts(const casacore::Record &pixel)
const PixelCanvas * itsPc
casacore::Record relToPixOpts(const casacore::Record &relative)
Implementation of drawing in world coordinates on top of a PixelCanvas.
casacore::Float pixToRelWidth(const casacore::Float pix)
virtual casacore::Bool whichHandle(const casacore::Float xPos, const casacore::Float yPos, casacore::Int &out)
DisplayShapeInterface::Coord itsCoords
virtual void setDrawHandles(const casacore::Bool &draw)
casacore::Float relToPixWidth(const casacore::Float rel)
virtual void removeLocked(DisplayShapeInterface *removeLock)
virtual casacore::Bool setOptions(const casacore::Record &newOptions)
virtual void addLocked(DisplayShapeInterface *toLock)
casacore::Record fromPixOpts(const casacore::Record &pix)
Will return an option set with whatever the current coords method is.
DisplayShapeInterface(const casacore::Record &shapeInfo)
Constructor for a standard shape.
virtual casacore::Vector< casacore::Float > getCenter() const
virtual casacore::Bool updateNonPixelPosition()
If the shape is being used in absolute pixel co-ordinates, this will do nothing.