28 #ifndef TRIALDISPLAY_ANNOTATIONS_H
29 #define TRIALDISPLAY_ANNOTATIONS_H
virtual void cancelShapes()
Cancels creation of any pending shapes, unselects all shapes and turns off drawing of all handles...
void polyLineToPolygon(const casacore::Int whichShape)
Annotations::CreationType itsCreation
void select(const casacore::Int i)
Class which stores WorldCanvas refresh event information.
casacore::Int itsActiveShape
WorldCanvas Event Handler for managing events.
casacore::Bool itsRefreshedYet
ostream & operator<<(ostream &os, const PageHeaderCache &cache)
void handleArrowCreation(const casacore::Vector< casacore::Float > &createPix)
virtual void update(PixelCanvas *pc)
Called when a refresh is required.
Annotations::State itsState
Stuff to remember my current state:
virtual Type type()
Return the type enum.
casacore::Bool validateWCs()
virtual void operator()(const PCPositionEvent &ev)
The event handlers.
virtual casacore::Bool revertToPix(const casacore::Int &whichOne)
Functions for changing the co-ords system of a shape.
virtual void draw(PixelCanvas *pc, const casacore::Bool noHandles=false)
Redraw all the shapes.
casacore::Bool determineState(const PCPositionEvent &ev)
void handlePolyLineCreation(const casacore::Vector< casacore::Float > &createPix)
Class which stores PixelCanvas motion event information.
void handleCreation(const PCPositionEvent &ev)
virtual void newShape(casacore::Record &settings, const casacore::Bool &refresh=true)
Instantly creates a shape on screen, and hence requires certain information in its record such as the...
Control class for a collection of DisplayShapeInterfaces.
Base class defining interface to pixel-based output devices.
Base class for handling WorldCanvas refresh events.
virtual void annotEvent(const casacore::String &)
Overwrite this to fire glish events.
Class which stores PixelCanvas refresh event information.
State
Used to determine the state of the class.
virtual void enable()
Disable event handling (with the exception of refresh calls).
void handlePolygonCreation(const casacore::Vector< casacore::Float > &createPix)
casacore::Bool changeCoordSys(const casacore::Int shapeIndex, const casacore::String &type, const casacore::String ¤tCoords, const casacore::String &toCoords)
Internal functions.
virtual casacore::Record getAllOptions()
Returns a record which contains a sub record (containing options) for each shape. ...
The abstract base class for all "DisplayShapes".
virtual void setKey(const Display::KeySym &newKey)
Set the key assigned to control shapes.
casacore::Bool itsEnabled
void handleMarkerCreation(const casacore::Vector< casacore::Float > &createPix)
virtual casacore::Record availableShapes()
Returns a list of shapes annotations knows about.
DisplayShape * constructShape(const casacore::Record &settings)
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
CreationType
This is used to handle the creation of shapes by mouse events.
PixelCanvas Event Handler for managing keyboard and mouse button events.
std::list< WorldCanvas * > itsWCs
My copy of the list of Worldcanvases.
casacore::PtrBlock< DisplayShape * > itsShapes
casacore::List of shapes
A drop-in replacement for Block<T*>.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
PanelDisplay * itsPanelDisplay
My private variables...
virtual void removeLockedFromCurrent(const casacore::uInt &removeMe)
These allow shapes to be "locked" together.
virtual casacore::Record shapesSummary()
Return a brief summary of all current shapes.
casacore::Bool itsShapeMoved
Annotations(PanelDisplay *panDisp, const Display::KeySym &keysym=Display::K_Pointer_Button1, const casacore::Bool useEH=true)
Destructor, and constructor, taking the panelDisplay to which the Annotator will attach itself to...
Class which stores PixelCanvas position event information.
virtual void setShapeOptions(const casacore::uInt &whichShape, const casacore::Record &newOptions)
Set the options for the specified shape.
A class which creates and manages "panelled" displays.
String: the storage and methods of handling collections of characters.
virtual casacore::Int activeShape()
Return the currently selected shapes' index.
virtual void createShape(casacore::Record &settings)
Create a shape, based on the information contained in the record.
virtual casacore::Record getShapeOptions(const casacore::uInt &whichShape)
Returns a record containing the options for the specified shape.
void handleNormalCreation(const casacore::Vector< casacore::Float > &createPix)
PixelCanvas Event Handler for managing pointer motion events.
casacore::Bool validShape(const casacore::Record &shape)
KeySym
Keysyms for PixelCanvas keyboard events.
Display::KeySym itsKey
Some overall settings.
virtual void setAllOptions(const casacore::Record &newSettings)
Deletes all existing shapes, and rebuilds new shapes based on records in sub records of the supplied ...
virtual casacore::Bool revertToFrac(const casacore::Int &whichOne)
virtual void addLockedToCurrent(const casacore::uInt &addMe)
casacore::Int itsActiveHandle
virtual casacore::Bool deleteShape(const casacore::uInt &toDel)
Delete the shape at the specified point in the collection of shapes The current (selected) shape can ...
virtual casacore::Bool lockToWC(const casacore::Int &whichOne)