75 bool drawingIsThreaded,
int drawnLayersFlag) = 0;
117 static std::vector<PlotAxis>
allAxes();
124 static std::vector<PlotCanvasLayer>
allLayers();
163 virtual std::pair<int, int>
size()
const = 0;
166 virtual void show() = 0;
167 virtual void hide() = 0;
215 virtual void refresh(
int drawLayersFlag) = 0;
239 virtual void setCommonAxes(
bool commonX,
bool commonY ) = 0;
278 double value = 0) = 0;
294 bool show =
true,
bool hideNormalAxis =
true) = 0;
300 bool hideNormalAxis =
true);
366 PlotAxis yAxis,
double yFrom,
double yTo);
472 virtual bool plot(PlotPtr
plot,
bool overplot =
true);
473 virtual bool plotPoint(PlotPointPtr point);
479 virtual std::vector<PlotItemPtr>
allPlotItems()
const = 0;
484 virtual std::vector<PlotPtr>
allPlots()
const;
485 virtual std::vector<PlotPointPtr>
allPoints()
const;
486 virtual std::vector<PlotShapePtr>
allShapes()
const;
497 virtual unsigned int numPlots()
const;
545 virtual void removePlotItems(
const std::vector<PlotItemPtr>& items) = 0;
640 virtual bool gridShown(
bool* xMajor = NULL,
bool* xMinor = NULL,
641 bool* yMajor = NULL,
bool* yMinor = NULL)
const = 0;
644 virtual void showGrid(
bool xMajor,
bool xMinor,
bool yMajor,
bool yMinor)=0;
649 virtual void showGrid(
bool showAll =
true);
807 PlotCoordinate::System newSystem = PlotCoordinate::WORLD)
const = 0;
823 PlotCoordinate::System newSystem)
const;
836 const PlotAnnotationPtr annot)
const;
866 virtual std::vector<std::vector<std::pair<unsigned int, unsigned int> > >*
locate(
881 bool blocking =
false);
899 PlotCoordinate::System system = PlotCoordinate::WORLD);
908 PlotCoordinate::System system = PlotCoordinate::WORLD);
917 PlotCoordinate::System system = PlotCoordinate::WORLD);
918 virtual std::vector<PlotMousePressEventHandlerPtr>
929 PlotCoordinate::System system = PlotCoordinate::WORLD);
930 virtual std::vector<PlotMouseReleaseEventHandlerPtr>
940 PlotCoordinate::System system = PlotCoordinate::WORLD);
951 PlotCoordinate::System system = PlotCoordinate::WORLD);
960 PlotCoordinate::System system = PlotCoordinate::WORLD);
969 virtual std::vector<PlotKeyEventHandlerPtr>
allKeyHandlers()
const;
1002 std::vector<std::pair<PlotSelectEventHandlerPtr, PlotCoordinate::System> >
1004 std::vector<std::pair<PlotClickEventHandlerPtr, PlotCoordinate::System> >
1006 std::vector<std::pair<PlotMousePressEventHandlerPtr, PlotCoordinate::System> >
1008 std::vector<std::pair<PlotMouseReleaseEventHandlerPtr, PlotCoordinate::System> >
1010 std::vector<std::pair<PlotMouseDragEventHandlerPtr, PlotCoordinate::System> >
1012 std::vector<std::pair<PlotMouseMoveEventHandlerPtr, PlotCoordinate::System> >
1014 std::vector<std::pair<PlotWheelEventHandlerPtr, PlotCoordinate::System> >
1028 bool drawingIsThreaded,
int drawnLayersFlag);
1037 const PlotCoordinate& coord);
1039 const PlotCoordinate& coord);
1041 const PlotCoordinate& coord);
1043 const PlotCoordinate& coord);
1045 const PlotCoordinate& coord);
1048 const std::vector<PlotKeyEvent::Modifier>& modifiers);
1050 int newWidth,
int newHeight);
bool notifyDragHandlers(PlotMouseEvent::Button button, const PlotCoordinate &coord)
virtual void clearShapes()
virtual std::vector< PlotPointPtr > layerPoints(PlotCanvasLayer layer) const
virtual void moveAxesRanges(PlotAxis xAxis, double xDelta, PlotAxis yAxis, double yDelta)
virtual PlotRegion axesRanges(PlotAxis xAxis, PlotAxis yAxis) const
Returns the displayed ranges of the given axes, in world coordinates.
std::vector< PlotResizeEventHandlerPtr > m_resizeHandlers
virtual PlotAreaFillPtr legendFill() const =0
Returns a copy of the area fill used for the legend background.
virtual bool gridYMajorShown() const
Gets/Sets whether major grid lines are shown for the y-axis.
virtual bool setAxisScaleSortDirection(PlotAxis axis, SortDirection direction)=0
Sets/gets the sort direction of the scale for the given axis.
virtual void removePlotItems(const std::vector< PlotItemPtr > &items)=0
Removes the given items from this canvas (if valid) and updates the GUI.
virtual AngleFormat axisScaleAngleFormat(PlotAxis axis) const =0
virtual void holdDrawing()=0
Draw Methods //.
virtual void removeLastShape()
bool hasSelectedRectangles()
std::vector< std::pair< PlotMouseMoveEventHandlerPtr, PlotCoordinate::System > > m_moveHandlers
static std::vector< LegendPosition > allLegendPositions()
Returns all legend positions.
virtual unsigned int numPlotItems() const
Returns the number of plot items currently on the canvas.
virtual std::vector< PlotItemPtr > allPlotItems() const =0
Returns all plot items currently on the canvas.
virtual void removeLastPlotItem()
Removes the last plot item added to the canvas and updates the GUI.
virtual unsigned int numLayerPoints(PlotCanvasLayer layer) const
virtual PlotAxisBitset shownAxes() const =0
Axes Methods //.
virtual void showGridXMajor(bool s=true)
static int allLayersFlag()
Returns the or'ed value of all PlotCanvasLayer enum values.
bool notifyResizeHandlers(int oldWidth, int oldHeight, int newWidth, int newHeight)
virtual prange_t xRange() const =0
Returns the range of x.
virtual bool gridShown(bool *xMajor=NULL, bool *xMinor=NULL, bool *yMajor=NULL, bool *yMinor=NULL) const =0
Grid Methods //.
virtual void clearAxesLabels()
Convenience method for clearing labels from all axes.
virtual PlotLinePtr legendLine() const =0
Returns a copy of the line used to outline the legend.
PlotOperationPtr m_exportOperation
virtual PlotFontPtr legendFont() const =0
Returns a copy of the font used for the legend text.
virtual void showGrid(bool xMajor, bool xMinor, bool yMajor, bool yMinor)=0
Sets whether the grid is shown, for each of the given line groups.
virtual bool hasThreadedDrawing() const
Support Methods //.
virtual void unregisterMouseTool(PlotMouseToolPtr tool)
virtual std::vector< PlotClickEventHandlerPtr > allClickHandlers() const
virtual void showGridMajor(bool show=true)
virtual std::pair< int, int > cachedAxesStackImageSize() const
Gets/Sets the size of the image used for the cached axes stack, in pixels.
virtual std::vector< PlotResizeEventHandlerPtr > allResizeHandlers() const
virtual PlotOperationPtr operationExport()
Returns a PlotOperation object that can be used to track export progress across threads.
virtual bool canvasDrawBeginning(PlotOperationPtr drawOperation, bool drawingIsThreaded, int drawnLayersFlag)=0
This method should be called by the canvas whenever drawing is about to begin.
virtual prange_t axisRange(PlotAxis axis) const =0
Axes Range Methods //.
virtual int implementation() const =0
Returns the implementation of this canvas as a Plotter::Implementation value.
virtual void unregisterKeyHandler(PlotKeyEventHandlerPtr handler)
virtual void setTitleFont(const PlotFont &font)=0
Set the font of the canvas title to the given.
virtual bool selectLineShown() const
Selection Methods //.
virtual std::vector< PlotItemPtr > layerPlotItems(PlotCanvasLayer layer) const =0
Returns all plot items currently on the given layer of the canvas.
static std::vector< PlotCanvasLayer > allLayers()
Returns a vector containing all values in the PlotCanvasLayer enum, ordered from lowest value to high...
virtual bool plotItem(PlotItemPtr item, PlotCanvasLayer layer=MAIN)=0
Plot Methods //.
PlotStandardMouseToolGroupPtr m_standardTools
One-per-canvas standard mouse tools.
unsigned int PlotAxisBitset
Set of bit flags to indicate combinations of sides, used (as of this writing) for indicating which ax...
virtual Type type()
Return the type enum.
std::vector< std::pair< PlotWheelEventHandlerPtr, PlotCoordinate::System > > m_wheelHandlers
virtual std::vector< PlotAnnotationPtr > allAnnotations() const
virtual unsigned int numAnnotations() const
virtual void removePoint(PlotPointPtr point)
virtual std::vector< PlotMouseDragEventHandlerPtr > allMouseDragHandlers() const
virtual std::vector< PlotAnnotationPtr > layerAnnotations(PlotCanvasLayer l) const
virtual void setCursor(PlotCursor cursor)=0
virtual void showAxis(PlotAxis axis, bool show=true)
Shows/hides the given axis.
virtual bool axisReferenceValueSet(PlotAxis axis) const =0
Gets/Sets the reference values for the given axis.
virtual void registerResizeHandler(PlotResizeEventHandlerPtr handler)
Manage resize handlers.
PlotDrawWatcher()
Constructor.
virtual void showLegend(bool on=true, LegendPosition position=EXT_BOTTOM)=0
Show/hide the legend.
virtual PlotLinePtr selectLine() const =0
returns a copy of the line for the selection tool
std::vector< PlotRegion > getSelectedRects()
virtual PlotOperationPtr operationDraw()
Returns a PlotOperation object that can be used to track drawing progress across threads.
virtual void setAxisRange(PlotAxis axis, double from, double to)=0
Sets the displayed range of the given axis, in world coordinates.
Abstract class for area fill.
virtual void unregisterDrawWatcher(PlotDrawWatcherPtr watcher)
virtual void setAxesRatioLocked(bool locked=true)=0
Sets whether the axes ratio is locked or not.
Button
Mouse button types that we care about.
virtual const casacore::String & dateFormat() const =0
Gets/Sets the date format for this canvas.
virtual std::vector< PlotMouseToolPtr > activeMouseTools() const
virtual bool hasCachedLayerDrawing() const
See PlotFactory::canvasHasCachedLayerDrawing().
virtual void setGridMinorLine(const PlotLine &line)=0
Sets the line used to draw the minor grid lines.
virtual bool plotPoint(PlotPointPtr point)
virtual void removeLastPlot()
Item-specific remove last methods.
virtual PlotFontPtr axisFont(PlotAxis axis) const =0
Returns a copy of the font used for the given axis label.
virtual bool axesRatioLocked() const =0
Returns true if the axes ratio is locked, false otherwise.
virtual void unregisterSelectHandler(PlotSelectEventHandlerPtr handler)
PlotCanvas()
Non-Static //.
The idea behind a plot factory is to produce classes that are useful to the underlying implementation...
virtual void removeAnnotation(PlotAnnotationPtr annotation)
Pattern
Pattern enum, similar in spirit to http://doc.trolltech.com/4.3/qt.html#BrushStyle-enum.
virtual unsigned int numLayerPlots(PlotCanvasLayer layer) const
Item-specific layer num methods.
virtual void clearItems()
Clears all plot items from this canvas and updates the GUI.
std::vector< std::pair< PlotClickEventHandlerPtr, PlotCoordinate::System > > m_clickHandlers
virtual unsigned int numPoints() const
virtual void registerKeyHandler(PlotKeyEventHandlerPtr handler)
Manage key handlers.
virtual bool axesStackMove(int delta)
Convenience method to move along the PlotAxesStack associated with this canvas (see axesStack())...
virtual void clearPlots()
Item-specific clear methods.
virtual unsigned int numLayerPlotItems(PlotCanvasLayer layer) const
Returns the number of plot items currently on the given layer of the canvas.
virtual bool gridXMajorShown() const
Gets/Sets whether major grid lines are shown for the x-axis.
virtual std::vector< double > annotationWidthHeightDescent(const PlotAnnotationPtr annot) const
Returns the width, height, and descent for the given annotation.
virtual std::vector< PlotShapePtr > layerShapes(PlotCanvasLayer layer) const
virtual void setCachedAxesStackImageSize(int width, int height)
virtual unsigned int numLayerShapes(PlotCanvasLayer layer) const
virtual bool gridYMinorShown() const
Gets/Sets whether minor grid lines are shown for the y-axis.
virtual std::vector< PlotSelectEventHandlerPtr > allSelectHandlers() const
static bool legendPositionIsInternal(LegendPosition p)
Indicates whether the given legend position is internal to the canvas or not.
TableExprNode pattern(const TableExprNode &node)
virtual PlotMutexPtr mutex() const
Returns a mutex appropriate for this implementation.
virtual PlotAreaFillPtr background() const =0
Returns a copy of the canvas background.
static const casacore::String OPERATION_EXPORT
virtual void setSelectLine(const PlotLine &line)=0
set the line for the selection tool
virtual void unregisterWheelHandler(PlotWheelEventHandlerPtr handler)
virtual PlotLinePtr gridMinorLine() const =0
Returns a copy of the line used to draw the minor grid lines.
virtual void locateAndLog(const PlotRegion ®ion, PlotLoggerPtr logger) const
Calls locate() and posts the result to the given log.
virtual void invertAxis(PlotAxis axis)=0
Swap scale's boundaries of the given axis.
virtual bool plot(PlotPtr plot, bool overplot=true)
Item-specific add methods.
virtual PlotCursor cursor() const =0
Gets/sets the cursor for this canvas.
void resetMouseTools()
Resets mouse tools.
virtual void setAxisFont(PlotAxis axis, const PlotFont &font)=0
Set the font of the axis title to the given.
virtual bool colorBarShown(PlotAxis axis=Y_RIGHT) const =0
Returns true if a color bar is shown on the given axis, false otherwise.
static std::vector< casacore::String > allLegendPositionStrings()
virtual void rescaleAxes()=0
Rescales the axis to show all plot items on the canvas.
virtual void showGridYMinor(bool s=true)
casacore::CountedPtr< PlotCanvas > PlotCanvasPtr
virtual void removeLastPoint()
virtual std::vector< PlotWheelEventHandlerPtr > allWheelHandlers() const
virtual std::vector< PlotKeyEventHandlerPtr > allKeyHandlers() const
virtual bool isDrawing()=0
virtual PlotAxesStack & axesStack()
casacore::Stack Methods //
virtual bool exportToFile(const PlotExportFormat &format)=0
Exports this canvas to the given format and returns true on success.
bool notifyMoveHandlers(PlotMouseEvent::Button button, const PlotCoordinate &coord)
virtual void clearLayer(PlotCanvasLayer layer)
Clears all plot items from the given layer on this canvas and updates the GUI.
void clearSelectedRects()
bool notifyPressHandlers(PlotMouseEvent::Button button, const PlotCoordinate &coord)
virtual void setAxisReferenceValue(PlotAxis axis, bool on, double value=0)=0
virtual void setDateFormat(const casacore::String &dateFormat)=0
virtual void releaseDrawing()=0
virtual prange_t yRange() const =0
Returns the range of y.
virtual PlotAreaFillPtr defaultBackground() const
virtual void setAxisScale(PlotAxis axis, PlotAxisScale scale, casacore::uInt base=10)=0
Sets the scale for the given axis and rescales accordingly.
virtual void setLegendFill(const PlotAreaFill &area)=0
Sets the area fill used for the legend background.
virtual PlotLinePtr gridMajorLine() const =0
Returns a copy of the line used to draw the major grid lines.
A PlotAxesStack is basically a list of PlotRegions as well as axis information that provides stack fu...
virtual void unregisterMousePressHandler(PlotMousePressEventHandlerPtr handler)
virtual void showGridYMajor(bool s=true)
Abstract class for a line.
virtual void unregisterMouseDragHandler(PlotMouseDragEventHandlerPtr h)
virtual void registerMousePressHandler(PlotMousePressEventHandlerPtr hndlr, PlotCoordinate::System system=PlotCoordinate::WORLD)
Manage mouse press handlers.
std::vector< std::pair< PlotSelectEventHandlerPtr, PlotCoordinate::System > > m_selectHandlers
Event handlers.
static int allAxesFlag()
Returns the or'ed value of all PlotAxis enum values.
PlotOperationPtr m_drawOperation
One-per-canvas operations.
virtual void showGridXMinor(bool s=true)
virtual void showAllAxes(bool show)
Convenience method for showing/hiding all four axes at once.
virtual void removePlotItem(PlotItemPtr item)
Removes the given item from this canvas (if valid) and updates the GUI.
virtual ~PlotCanvas()
Destructor.
virtual void setAxesAutoRescale(bool autoRescale=true)=0
Sets auto-rescaling for future plot items.
virtual bool autoIncrementColors() const =0
Miscellaneous Plotting Functionality //.
SMART POINTER DEFINITIONS PlotShapePtr
virtual casacore::String title() const =0
Returns the text of the canvas title, or an empty casacore::String if none is shown.
virtual std::vector< PlotShapePtr > allShapes() const
virtual void showCartesianAxes(bool show=true, bool hideNormal=true)
virtual bool drawAnnotation(PlotAnnotationPtr annotation)
static std::vector< PlotAxis > allAxes()
Returns a std::vector containing all values in the PlotAxis enum, ordered from lowest value to highes...
PlotCursor
Enum for cursors.
virtual void setAxesRegion(PlotAxis xAxis, PlotAxis yAxis, const PlotRegion ®ion)
Sets the displayed range of the given axes.
PlotAxis
Enum for the four plot axes.
virtual void setAxesStackLengthLimit(int lengthLimit)
virtual std::vector< double > textWidthHeightDescent(const casacore::String &text, PlotFontPtr font) const =0
Returns the width, height, and descent for the given text in the given font.
virtual void registerMouseTool(PlotMouseToolPtr tool, bool activate=true, bool blocking=false)
Tool Methods //.
virtual bool isQWidget() const =0
Indicates whether a cast to QWidget would succeed for this object.
virtual double axisReferenceValue(PlotAxis axis) const =0
bool notifyKeyHandlers(char key, const std::vector< PlotKeyEvent::Modifier > &modifiers)
virtual void unregisterClickHandler(PlotClickEventHandlerPtr handler)
virtual void registerWheelHandler(PlotWheelEventHandlerPtr handler, PlotCoordinate::System system=PlotCoordinate::WORLD)
Manage wheel handlers.
void clearMark()
methods related to per-panel flag mode
virtual void setSelectLineShown(bool shown=true)=0
Sets whether a line is shown for the selection tool.
virtual void setAxesRanges(PlotAxis xAxis, double xFrom, double xTo, PlotAxis yAxis, double yFrom, double yTo)
Sets the displayed ranges of the given axes, in world coordinates.
virtual void removeShape(PlotShapePtr shape)
std::vector< PlotMouseToolPtr > m_mouseTools
Registered mouse tools.
bool notifyDrawWatchers(PlotOperationPtr drawOperation, bool drawingIsThreaded, int drawnLayersFlag)
Notifies any registered draw watchers that a draw is about to begin, and returns the AND of the PlotD...
virtual void setLegendFont(const PlotFont &font)=0
Sets the font used for the legend text.
std::vector< std::pair< PlotMousePressEventHandlerPtr, PlotCoordinate::System > > m_pressHandlers
virtual void unregisterMouseMoveHandler(PlotMouseMoveEventHandlerPtr h)
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
virtual void moveAxisRange(PlotAxis axis, double delta)
Moves (pans) the axes range by the given delta, in world coordinates.
virtual LegendPosition legendPosition() const =0
Returns the position of the legend.
virtual std::vector< std::vector< std::pair< unsigned int, unsigned int > > > * locate(const PlotRegion ®ion) const
Locate data indices that have values within the given region such that: x >= region.upperLeft().x() && x <= region.lowerRight().x() && y <= region.upperLeft().y() && y >= region.lowerRight().y().
virtual unsigned int numShapes() const
virtual bool drawingIsHeld() const =0
virtual bool hasCachedAxesStack() const
See PlotFactory::hasCachedAxesStack().
virtual std::vector< PlotPtr > layerPlots(PlotCanvasLayer layer) const
Item-specific layer methods.
std::pair< double, double > prange_t
Typedef for range, which is two doubles (min and max).
PlotCanvas is an area for different PlotItems to be attached and drawn.
virtual PlotCoordinate convertCoordinate(const PlotCoordinate &coord, PlotCoordinate::System newSystem=PlotCoordinate::WORLD) const =0
Converts the given coordinate into a coordinate with the given system.
virtual void setTitle(const casacore::String &title)=0
Sets the text of the canvas title to the given.
virtual void setAxisLabel(PlotAxis axis, const casacore::String &title)=0
Sets the label of an axis title to the given.
virtual void setGridMajorLine(const PlotLine &line)=0
Sets the line used to draw the major grid lines.
virtual void setBackground(const PlotAreaFill &areaFill)=0
Sets the background of the canvas to the given.
virtual void setAxesScales(PlotAxis xAxis, PlotAxisScale xScale, PlotAxis yAxis, PlotAxisScale yScale)
Convenience method for setting the axis scale for two axes at once.
virtual void removePlot(PlotPtr plot)
Item-specific remove methods.
AngleFormat
Enum for angle formats.
virtual std::pair< int, int > size() const =0
GUI Methods //.
std::vector< std::pair< PlotMouseDragEventHandlerPtr, PlotCoordinate::System > > m_dragHandlers
Abstract parent for any class that wants to be notified when the canvas is about to start drawing...
virtual void clearAnnotations()
casacore::CountedPtr< PlotDrawWatcher > PlotDrawWatcherPtr
virtual PlotFactory * implementationFactory() const =0
Returns a new instance of a PlotFactory that can create plot items for this implementation.
virtual bool legendShown() const =0
Legend Methods //.
virtual void showCartesianAxis(PlotAxis mirrorAxis, PlotAxis secondaryAxis, bool show=true, bool hideNormalAxis=true)=0
Show or hide the given Cartesian axis.
virtual unsigned int numPlots() const
Item-specific num methods.
virtual void showColorBar(bool show=true, PlotAxis axis=Y_RIGHT)=0
Shows/hides a color bar is shown on the given axis.
virtual PlotAxisScale axisScale(PlotAxis axis) const =0
Returns the scale for the given axis.
virtual std::vector< PlotPointPtr > allPoints() const
virtual bool axesAutoRescale() const =0
Returns true if the axes are set to autorescale when a new plot item is added, false otherwise...
virtual bool isAxisShown(PlotAxis axis) const
Returns true if the given axis is shown, false otherwise.
virtual PlotFontPtr titleFont() const =0
Returns a copy of the font used for the canvas title.
String: the storage and methods of handling collections of characters.
virtual std::pair< bool, SortDirection > axisScaleSortDirection(PlotAxis axis) const =0
virtual casacore::String axisLabel(PlotAxis axis) const =0
Returns the label for the given axis, or an empty casacore::String if none is shown.
virtual PlotStandardMouseToolGroupPtr standardMouseTools()
Returns the standard mouse tools associated with this canvas.
virtual int axesStackLengthLimit() const
Gets/Sets the length limit on the PlotAxesStack associated with this canvas.
virtual void setCachedAxesStackSizeLimit(int sizeInKilobytes)=0
virtual void setMinimumSize(int width, int height)=0
virtual casacore::String fileChooserDialog(const casacore::String &title="File Chooser", const casacore::String &directory="")=0
Shows a file chooser dialog and return the absolute filename that the user chooses.
virtual void removeLastAnnotation()
virtual void setAutoIncrementColors(bool autoInc=true)=0
Sets whether adding new overplotted plots should automatically "increment" colors or not...
virtual void refresh()=0
Refreshes the GUI, which includes redrawing plot items as needed even if drawing is currently bei...
bool isBackgroundColorChanged()
virtual void setLegendPosition(LegendPosition position)=0
Sets the position of the legend, if it is shown.
virtual std::vector< PlotMousePressEventHandlerPtr > allMousePressHandlers() const
std::vector< PlotKeyEventHandlerPtr > m_keyHandlers
virtual void registerSelectHandler(PlotSelectEventHandlerPtr handler, PlotCoordinate::System system=PlotCoordinate::WORLD)
Event Handler Methods //.
bool notifyReleaseHandlers(PlotMouseEvent::Button button, const PlotCoordinate &coord)
virtual bool cartesianAxisShown(PlotAxis axis) const =0
Returns whether the given Cartesian axis is shown or not.
virtual void clearPoints()
virtual const casacore::String & relativeDateFormat() const =0
Gets/Sets the date format for values relative to a reference value for this canvas.
std::vector< PlotDrawWatcherPtr > m_drawWatchers
Draw watchers.
virtual void setRelativeDateFormat(const casacore::String &dateFormat)=0
Abstract class for fonts.
virtual void setLegendLine(const PlotLine &line)=0
Sets the line used to outline the legend.
virtual std::vector< PlotMouseMoveEventHandlerPtr > allMouseMoveHandlers() const
std::vector< std::pair< PlotMouseReleaseEventHandlerPtr, PlotCoordinate::System > > m_releaseHandlers
PlotAxisScale
Enum for possible axis scales.
virtual void registerClickHandler(PlotClickEventHandlerPtr handler, PlotCoordinate::System system=PlotCoordinate::WORLD)
Manage click handlers.
virtual int cachedAxesStackSizeLimit() const =0
Gets/Sets the size limit, in kilobytes, on the draw cache for the axes stack associated with this can...
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the color(i.e.,"000000"for black) and
A PlotRegion is basically just a wrapper for two PlotCoordinates: an upper left coordinate and a lowe...
bool notifyClickHandlers(PlotMouseEvent::Button button, const PlotCoordinate &coord)
virtual void unregisterResizeHandler(PlotResizeEventHandlerPtr handler)
virtual void registerMouseMoveHandler(PlotMouseMoveEventHandlerPtr h, PlotCoordinate::System system=PlotCoordinate::WORLD)
Manage mouse move handlers.
virtual void showAxes(PlotAxisBitset axes)=0
Shows/Hides axes based on the given bitset, which should be a bitwise-or of PlotAxis values...
virtual void setAxisScaleAngleFormat(PlotAxis axis, AngleFormat format)=0
Sets/gets the angle format of the scale for the given axis.
PlotCanvasLayer
The canvas is composed of multiple layers, where changing/adding items from one layer will not affect...
virtual ~PlotDrawWatcher()
Destructor.
virtual void registerMouseDragHandler(PlotMouseDragEventHandlerPtr h, PlotCoordinate::System system=PlotCoordinate::WORLD)
Manage mouse drag handlers.
virtual void setCommonAxes(bool commonX, bool commonY)=0
virtual PlotRegion convertRegion(const PlotRegion ®ion, PlotCoordinate::System newSystem) const
Converts the given region into a region with the given system.
bool notifyWheelHandlers(int delta, const PlotCoordinate &coord)
virtual std::vector< PlotPtr > allPlots() const
Item-specific all methods.
virtual void setMinimumSizeHint(int width, int height)=0
virtual void registerMouseReleaseHandler(PlotMouseReleaseEventHandlerPtr handler, PlotCoordinate::System system=PlotCoordinate::WORLD)
Manage mouse release handlers.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
virtual void registerDrawWatcher(PlotDrawWatcherPtr watcher)
Registers/Unregisters the given draw watcher for this canvas.
static const casacore::String OPERATION_DRAW
Convenient access to operation names.
PlotAxesStack m_stack
One-per-canvas axes stack.
bool notifyMouseHandlers(PlotMouseEvent::Type type, PlotMouseEvent::Button button, const PlotCoordinate &coord)
virtual void unregisterMouseReleaseHandler(PlotMouseReleaseEventHandlerPtr handler)
virtual unsigned int numLayerAnnotations(PlotCanvasLayer layer) const
bool notifySelectHandlers(const PlotRegion &selectedRegion)
Notification methods for event handlers.
virtual bool gridXMinorShown() const
Gets/Sets whether minor grid lines are shown for the x-axis.
virtual std::vector< PlotMouseReleaseEventHandlerPtr > allMouseReleaseHandlers() const
virtual std::vector< PlotMouseToolPtr > allMouseTools() const
virtual bool drawShape(PlotShapePtr shape)
virtual void showGridMinor(bool show=true)