28 #ifndef TRIALDISPLAY_DRAWINGDISPLAYDATA_H
29 #define TRIALDISPLAY_DRAWINGDISPLAYDATA_H
39 class WorldCanvasHolder;
40 class AttributeBuffer;
41 class DrawingDisplayMethod;
Assistance class for auto-caching of DisplayData objects.
Class which stores WorldCanvas refresh event information.
virtual Display::KeySym key() const
DisplayData which provides interactive drawing capabilities.
std::list< void * > itsDDDOList
casacore::List containing the DDDObjects for this DrawingDisplayData.
Display::KeyModifier itsKeyModifier
The modifier mask for the key.
DisplayDataType
WorldCanvasHolder - what type of DisplayData is this, need to know for drawing order.
Buffer for storing Attributes.
virtual casacore::Record getOptions(bool scrub=false) const
Retrieve the current and default options and parameter types.
virtual void setDefaultOptions()
Install the default options for this DisplayData.
virtual ~DrawingDisplayData()
Destructor.
void operator=(const DrawingDisplayData &other)
(Required) copy assignment.
virtual void doubleClick(const casacore::Int objectID)
Called when a double click occurred for the identified object.
virtual Display::KeyModifier keyModifier() const
virtual casacore::String description() const
void installDefaultOptions()
Install the default options for this DisplayData.
DDDObject * itsObjectWhichIsShowingHandles
Obvious!
virtual void addObject(const casacore::Record &description)
Add an object to the drawing as described in the given Record.
virtual casacore::String labelPosition()
Return the current setting of the labelposition option.
virtual casacore::Double doubleClickInterval() const
casacore::Double click interval.
Base class for auto-caching DisplayData objects.
virtual Display::DisplayDataType classType()
Return the type of this DisplayData.
virtual void removeObject(const casacore::Int objectID)
Remove the object with the given id.
virtual CachingDisplayMethod * newDisplayMethod(WorldCanvas *worldCanvas, AttributeBuffer *wchAttributes, AttributeBuffer *ddAttributes, CachingDisplayData *dd)
Create a new AxesDisplayMethod for drawing on the given WorldCanvas when the AttributeBuffers are sui...
DrawingDisplayData(const Display::KeySym keysym=Display::K_Pointer_Button1)
Constructor.
virtual AttributeBuffer optionsAsAttributes()
Return the current options of this DisplayData as an AttributeBuffer.
Base class describing interface for objects supported by DrawingDisplayData.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
virtual void refreshEH(const WCRefreshEvent &ev)
Negotiatiate WorldCanvas linear coordinate system when asked to do so by the WorldCanvasHolder.
Class providing passive behaviour for CachingDisplayDatas.
virtual void setKey(const Display::KeySym &keysym)
Set/get which key to catch.
virtual void setHandleState(DDDObject *item, const casacore::Bool state)
Set the handle state of the particular item.
KeyModifier
All events - modifier codes.
virtual void setDescription(const casacore::Int objectID, const casacore::Record &rec)
Set the description of the object with the given id.
Implementation of drawing in world coordinates on top of a PixelCanvas.
virtual casacore::Bool setOptions(casacore::Record &rec, casacore::Record &recOut)
Apply options stored in rec to the DisplayData.
Display::KeySym itsKeySym
The key to handle.
casacore::String itsOptionsLabelPosition
Option: position for labels.
String: the storage and methods of handling collections of characters.
KeySym
Keysyms for PixelCanvas keyboard events.
Canvas annotation - can draw outside draw area.
casacore::Double itsDoubleClickInterval
casacore::Double click interval (seconds)
DisplayMethod which provides actual drawing for DrawingDisplayData class.