28 #ifndef TRIALDISPLAY_DSTEXT_H
29 #define TRIALDISPLAY_DSTEXT_H
41 class DParameterString;
42 class DParameterFontChoice;
43 class DParameterMapKeyChoice;
44 template <
class T>
class DParameterRange;
virtual casacore::Vector< casacore::Float > getCenter()
Returns the center of the DisplayShape (x,y).
casacore::Matrix< casacore::Float > itsHandleLocation
virtual void draw(PixelCanvas *pix)
Functions to ensure consistancy with the "DisplayShape" interface.
DParameterString * itsString
Text Parameter.
DParameterRange< casacore::Float > * itsAngle
Angle Param.
Implementation of DParameterChoice to store font selection parameters.
casacore::Vector< casacore::Float > itsCenter
Rotate about a point.
virtual void rotate(const casacore::Float &angle)
Rotate the shape about its center by a set angle (angle in degrees).
void makeAlignmentChoice()
This is a bit messy, so seperate it out.
virtual void move(const casacore::Float &dX, const casacore::Float &dY)
virtual void setDefaultOptions()
Set default options.
Base class defining interface to pixel-based output devices.
Display::TextAlign itsAlign
DSText()
Constructors and destructors.
casacore::Int itsPixHeight
casacore::Float itsStringLength
The abstract base class for all "DisplayShapes".
DParameterFontChoice * itsFont
DParameterMapKeyChoice * itsAlignment
virtual casacore::Bool setOptions(const casacore::Record &settings)
virtual casacore::Bool inObject(const casacore::Float &xPos, const casacore::Float &yPos)
Is the supplied point within the DisplayShape?
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
casacore::Bool itsValidPositions
Implementation of DisplayParameter to store casacore::String parameters.
casacore::Bool itsHandlesMade
virtual void setCenter(const casacore::Float &xPos, const casacore::Float &yPos)
Sets the center of the DisplayShape.
virtual casacore::Record getOptions()
Get and set options.
Implementation of DParameterChoice to store parameter and associated key.
Display::TextAlign toEnum(const casacore::Int fromInt)
Cast from int to enum.
virtual void scale(const casacore::Float &scaleFactor)
Scale the shape about its center by the scaleFactor.
virtual void calculateHandlePositions()
Update handle positions.
casacore::Float itsStringHeight
String: the storage and methods of handling collections of characters.
virtual void changePoint(const casacore::Vector< casacore::Float > &newPos)
Changes the closest point to the supplied location to that location.
casacore::Int itsPixWidth
DParameterRange< casacore::Int > * itsFontSize