28 #ifndef TRIALDISPLAY_DDDOBJECT_H
29 #define TRIALDISPLAY_DDDOBJECT_H
44 class WCPositionEvent;
45 class DrawingDisplayData;
virtual void draw(const Display::RefreshReason &reason, WorldCanvas *worldcanvas)=0
Draw this DrawingDisplayData object for the given reason on the provided WorldCanvas.
casacore::Bool isEditable() const
DrawingDisplayData * owner()
Return the owner of this object.
Class which stores WorldCanvas refresh event information.
DisplayData which provides interactive drawing capabilities.
virtual ~DDDObject()
Destructor.
casacore::String itsLabel
Label for this object.
casacore::Bool inPolygon(const casacore::Matrix< casacore::Double > &points, casacore::Double x, casacore::Double y)
Is point inside the polygon.
Base class for handling WorldCanvas motion events.
casacore::Int objectID() const
Return the unique id of this object.
virtual void clearClickBuffer()
Clear the click buffer.
casacore::String label() const
Return the label of this object.
casacore::Bool isMovable() const
virtual void setDescription(const casacore::Record &rec)
Update this object based on the information in the provided Record.
void show(const variant &v)
virtual casacore::Bool showingHandles()
Query whether the object is showing its handles.
casacore::Bool isFixed() const
DrawingDisplayData * itsOwner
DrawingDisplayData which owns this DDDObject.
Base class for handling WorldCanvas refresh events.
casacore::Matrix< casacore::Double > rotateMatrix(const casacore::Matrix< casacore::Double > &points, casacore::Double angle)
Rotate Matrix.
Class which stores WorldCanvas motion event information.
casacore::Int itsObjectID
Unique identification for this object.
void convertCoordinateSystem(DisplayCoordinateSystem &cSys, WorldCanvas *wcPtr) const
Convert DisplayCoordinateSystem to screen pixels.
casacore::String color() const
Return the color to use to draw this object.
casacore::Bool onHandle(const casacore::Block< DDDHandle > &handles, casacore::Double x, casacore::Double y)
Is the point on a handle.
casacore::Bool itsShowHandles
Whether the handles are showing, and therefore whether this DDDObject is presently editable...
casacore::Bool itsMovable
Is it movable.
Class describing the most basic event information in the display classes.
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.
void translateMatrix(casacore::Matrix< casacore::Double > &points, casacore::Double dx, casacore::Double dy)
Translate Matrix.
void operator=(const DDDObject &other)
(Required) copy assignment.
casacore::Int lineWidth() const
Return the line width of this object.
RefreshReason
Callback reasons for PCRefreshEvent and WCRefreshEvent.
Class which stores WorldCanvas position event information.
virtual casacore::Bool storeClick(const DisplayEvent &ev)
Store a click in the buffer and look for a double-click event.
Implementation of drawing in world coordinates on top of a PixelCanvas.
casacore::String itsColor
Color of this object.
virtual void showHandles(const casacore::Bool show, const casacore::Bool tellOwner=true)
Indicate whether the object should show its handles or not.
String: the storage and methods of handling collections of characters.
Base class for handling WorldCanvas position events.
virtual void operator()(const WCRefreshEvent &ev)=0
Event handlers.
casacore::Int itsLineWidth
Line width of the lines drawn.
casacore::Double its2ndLastClickTime
casacore::Bool itsEditable
Is this object editable.
casacore::Double itsLastClickTime
Timing for double clicks.
DDDObject()
(Required) default constructor.
virtual casacore::Record description()
Return a record describing this object.