casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
casa::QPExportCanvas Class Referenceabstract

Interface implemented by classes that can export their draw area (QPAxis & QPCanvas). More...

#include <QPExportCanvas.h>

Inheritance diagram for casa::QPExportCanvas:
casa::PlotCanvas

Public Member Functions

 QPExportCanvas ()
 
virtual ~QPExportCanvas ()
 
virtual bool print (QPrinter &printer)=0
 
virtual bool print (QPainter *painter, PlotAreaFillPtr paf, double widthRatio, double heightRatio, int externalAxisWidth, int externalAxisHeight, int rowIndex, int colIndex, QRect imageRect)=0
 
virtual bool printRect (QPainter *painter, QRect printGeom)=0
 
virtual QImage grabImageFromCanvas (const PlotExportFormat &format)=0
 
virtual PlotLoggerPtr logger () const =0
 
virtual int canvasWidth () const =0
 
virtual int canvasHeight () const =0
 
virtual const QPalette & palette () const =0
 
virtual QPalette::ColorRole backgroundRole () const =0
 
virtual PlotFactoryimplementationFactory () const =0
 Returns a new instance of a PlotFactory that can create plot items for this implementation. More...
 
virtual bool isAxis () const
 
virtual bool isVertical () const
 
- Public Member Functions inherited from casa::PlotCanvas
 PlotCanvas ()
 Non-Static //. More...
 
virtual ~PlotCanvas ()
 Destructor. More...
 
virtual bool hasThreadedDrawing () const
 Support Methods //. More...
 
virtual bool hasCachedLayerDrawing () const
 See PlotFactory::canvasHasCachedLayerDrawing(). More...
 
virtual bool hasCachedAxesStack () const
 See PlotFactory::hasCachedAxesStack(). More...
 
virtual std::pair< int, int > size () const =0
 GUI Methods //. More...
 
virtual void setMinimumSize (int width, int height)=0
 
virtual void setMinimumSizeHint (int width, int height)=0
 
virtual void show ()=0
 
virtual void hide ()=0
 
virtual bool isDrawing ()=0
 
virtual casacore::String title () const =0
 Returns the text of the canvas title, or an empty casacore::String if none is shown. More...
 
virtual void setTitle (const casacore::String &title)=0
 Sets the text of the canvas title to the given. More...
 
virtual PlotFontPtr titleFont () const =0
 Returns a copy of the font used for the canvas title. More...
 
virtual void setTitleFont (const PlotFont &font)=0
 Set the font of the canvas title to the given. More...
 
virtual void setTitleFont (const PlotFontPtr font)
 Convenience method for setting title font. More...
 
virtual PlotAreaFillPtr background () const =0
 Returns a copy of the canvas background. More...
 
virtual PlotAreaFillPtr defaultBackground () const
 
virtual void setBackground (const PlotAreaFill &areaFill)=0
 Sets the background of the canvas to the given. More...
 
virtual void setBackground (const PlotAreaFillPtr areaFill)
 Convenience methods for setting background. More...
 
virtual void setBackground (const casacore::String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL)
 
virtual PlotCursor cursor () const =0
 Gets/sets the cursor for this canvas. More...
 
virtual void setCursor (PlotCursor cursor)=0
 
virtual void refresh ()=0
 
   Refreshes the GUI, which includes redrawing plot items as needed even if

drawing is currently being held. More...

 
virtual void refresh (int drawLayersFlag)=0
 Refreshes the GUI, ONLY for the layers as indicated by the flag. More...
 
virtual bool isQWidget () const =0
 Indicates whether a cast to QWidget would succeed for this object. More...
 
virtual PlotAxisBitset shownAxes () const =0
 Axes Methods //. More...
 
virtual void showAxes (PlotAxisBitset axes)=0
 Shows/Hides axes based on the given bitset, which should be a bitwise-or of PlotAxis values. More...
 
virtual bool isAxisShown (PlotAxis axis) const
 Returns true if the given axis is shown, false otherwise. More...
 
virtual void showAxis (PlotAxis axis, bool show=true)
 Shows/hides the given axis. More...
 
virtual void setCommonAxes (bool commonX, bool commonY)=0
 
virtual void showAxes (PlotAxis xAxis, PlotAxis yAxis, bool show=true)
 Convenience method for showing/hiding two axes at once. More...
 
virtual void showAllAxes (bool show)
 Convenience method for showing/hiding all four axes at once. More...
 
virtual PlotAxisScale axisScale (PlotAxis axis) const =0
 Returns the scale for the given axis. More...
 
virtual void setAxisScale (PlotAxis axis, PlotAxisScale scale, casacore::uInt base=10)=0
 Sets the scale for the given axis and rescales accordingly. More...
 
virtual bool setAxisScaleSortDirection (PlotAxis axis, SortDirection direction)=0
 Sets/gets the sort direction of the scale for the given axis. More...
 
virtual std::pair< bool,
SortDirection
axisScaleSortDirection (PlotAxis axis) const =0
 
virtual void setAxisScaleAngleFormat (PlotAxis axis, AngleFormat format)=0
 Sets/gets the angle format of the scale for the given axis. More...
 
virtual AngleFormat axisScaleAngleFormat (PlotAxis axis) const =0
 
virtual void setAxesScales (PlotAxis xAxis, PlotAxisScale xScale, PlotAxis yAxis, PlotAxisScale yScale)
 Convenience method for setting the axis scale for two axes at once. More...
 
virtual bool axisReferenceValueSet (PlotAxis axis) const =0
 Gets/Sets the reference values for the given axis. More...
 
virtual double axisReferenceValue (PlotAxis axis) const =0
 
virtual void setAxisReferenceValue (PlotAxis axis, bool on, double value=0)=0
 
virtual bool cartesianAxisShown (PlotAxis axis) const =0
 Returns whether the given Cartesian axis is shown or not. More...
 
virtual void showCartesianAxis (PlotAxis mirrorAxis, PlotAxis secondaryAxis, bool show=true, bool hideNormalAxis=true)=0
 Show or hide the given Cartesian axis. More...
 
virtual void showCartesianAxis (PlotAxis mirrorAxis, bool show=true, bool hideNormalAxis=true)
 Convenience methods for most common Cartesian axes cases. More...
 
virtual void showCartesianAxes (bool show=true, bool hideNormal=true)
 
virtual casacore::String axisLabel (PlotAxis axis) const =0
 Returns the label for the given axis, or an empty casacore::String if none is shown. More...
 
virtual void setAxisLabel (PlotAxis axis, const casacore::String &title)=0
 Sets the label of an axis title to the given. More...
 
virtual void clearAxesLabels ()
 Convenience method for clearing labels from all axes. More...
 
virtual PlotFontPtr axisFont (PlotAxis axis) const =0
 Returns a copy of the font used for the given axis label. More...
 
virtual void setAxisFont (PlotAxis axis, const PlotFont &font)=0
 Set the font of the axis title to the given. More...
 
virtual void setAxisFont (PlotAxis axis, const PlotFontPtr font)
 Convenience method for setting axis font. More...
 
virtual bool colorBarShown (PlotAxis axis=Y_RIGHT) const =0
 Returns true if a color bar is shown on the given axis, false otherwise. More...
 
virtual void showColorBar (bool show=true, PlotAxis axis=Y_RIGHT)=0
 Shows/hides a color bar is shown on the given axis. More...
 
virtual prange_t axisRange (PlotAxis axis) const =0
 Axes Range Methods //. More...
 
virtual PlotRegion axesRanges (PlotAxis xAxis, PlotAxis yAxis) const
 Returns the displayed ranges of the given axes, in world coordinates. More...
 
virtual void setAxisRange (PlotAxis axis, double from, double to)=0
 Sets the displayed range of the given axis, in world coordinates. More...
 
virtual void invertAxis (PlotAxis axis)=0
 Swap scale's boundaries of the given axis. More...
 
virtual void setAxisRange (PlotAxis axis, const prange_t &range)
 See setAxisRange(PlotAxis, double, double). More...
 
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. More...
 
virtual void setAxesRanges (PlotAxis xAxis, const prange_t &xRange, PlotAxis yAxis, const prange_t &yRange)
 
virtual void setAxesRegion (PlotAxis xAxis, PlotAxis yAxis, const PlotRegion &region)
 Sets the displayed range of the given axes. More...
 
virtual void moveAxisRange (PlotAxis axis, double delta)
 Moves (pans) the axes range by the given delta, in world coordinates. More...
 
virtual void moveAxesRanges (PlotAxis xAxis, double xDelta, PlotAxis yAxis, double yDelta)
 
virtual bool axesAutoRescale () const =0
 Returns true if the axes are set to autorescale when a new plot item is added, false otherwise. More...
 
virtual void setAxesAutoRescale (bool autoRescale=true)=0
 Sets auto-rescaling for future plot items. More...
 
virtual void rescaleAxes ()=0
 Rescales the axis to show all plot items on the canvas. More...
 
virtual bool axesRatioLocked () const =0
 Returns true if the axes ratio is locked, false otherwise. More...
 
virtual void setAxesRatioLocked (bool locked=true)=0
 Sets whether the axes ratio is locked or not. More...
 
virtual PlotAxesStackaxesStack ()
 casacore::Stack Methods // More...
 
virtual const PlotAxesStackaxesStack () const
 
virtual bool axesStackMove (int delta)
 Convenience method to move along the PlotAxesStack associated with this canvas (see axesStack()). More...
 
virtual int axesStackLengthLimit () const
 Gets/Sets the length limit on the PlotAxesStack associated with this canvas. More...
 
virtual void setAxesStackLengthLimit (int lengthLimit)
 
virtual int cachedAxesStackSizeLimit () const =0
 Gets/Sets the size limit, in kilobytes, on the draw cache for the axes stack associated with this canvas (see PlotFactory::canvasHasCachedAxesStack()). More...
 
virtual void setCachedAxesStackSizeLimit (int sizeInKilobytes)=0
 
virtual std::pair< int, int > cachedAxesStackImageSize () const
 Gets/Sets the size of the image used for the cached axes stack, in pixels. More...
 
virtual void setCachedAxesStackImageSize (int width, int height)
 
virtual bool plotItem (PlotItemPtr item, PlotCanvasLayer layer=MAIN)=0
 Plot Methods //. More...
 
virtual bool plot (PlotPtr plot, bool overplot=true)
 Item-specific add methods. More...
 
virtual bool plotPoint (PlotPointPtr point)
 
virtual bool drawShape (PlotShapePtr shape)
 
virtual bool drawAnnotation (PlotAnnotationPtr annotation)
 
virtual std::vector< PlotItemPtrallPlotItems () const =0
 Returns all plot items currently on the canvas. More...
 
virtual std::vector< PlotPtr > allPlots () const
 Item-specific all methods. More...
 
virtual std::vector< PlotPointPtr > allPoints () const
 
virtual std::vector< PlotShapePtrallShapes () const
 
virtual std::vector
< PlotAnnotationPtr > 
allAnnotations () const
 
virtual unsigned int numPlotItems () const
 Returns the number of plot items currently on the canvas. More...
 
virtual unsigned int numPlots () const
 Item-specific num methods. More...
 
virtual unsigned int numPoints () const
 
virtual unsigned int numShapes () const
 
virtual unsigned int numAnnotations () const
 
virtual std::vector< PlotItemPtrlayerPlotItems (PlotCanvasLayer layer) const =0
 Returns all plot items currently on the given layer of the canvas. More...
 
virtual std::vector< PlotPtr > layerPlots (PlotCanvasLayer layer) const
 Item-specific layer methods. More...
 
virtual std::vector< PlotPointPtr > layerPoints (PlotCanvasLayer layer) const
 
virtual std::vector< PlotShapePtrlayerShapes (PlotCanvasLayer layer) const
 
virtual std::vector
< PlotAnnotationPtr > 
layerAnnotations (PlotCanvasLayer l) const
 
virtual unsigned int numLayerPlotItems (PlotCanvasLayer layer) const
 Returns the number of plot items currently on the given layer of the canvas. More...
 
virtual unsigned int numLayerPlots (PlotCanvasLayer layer) const
 Item-specific layer num methods. More...
 
virtual unsigned int numLayerPoints (PlotCanvasLayer layer) const
 
virtual unsigned int numLayerShapes (PlotCanvasLayer layer) const
 
virtual unsigned int numLayerAnnotations (PlotCanvasLayer layer) const
 
virtual void removePlotItem (PlotItemPtr item)
 Removes the given item from this canvas (if valid) and updates the GUI. More...
 
virtual void removePlot (PlotPtr plot)
 Item-specific remove methods. More...
 
virtual void removePoint (PlotPointPtr point)
 
virtual void removeShape (PlotShapePtr shape)
 
virtual void removeAnnotation (PlotAnnotationPtr annotation)
 
virtual void removePlotItems (const std::vector< PlotItemPtr > &items)=0
 Removes the given items from this canvas (if valid) and updates the GUI. More...
 
virtual void removeLastPlotItem ()
 Removes the last plot item added to the canvas and updates the GUI. More...
 
virtual void removeLastPlot ()
 Item-specific remove last methods. More...
 
virtual void removeLastPoint ()
 
virtual void removeLastShape ()
 
virtual void removeLastAnnotation ()
 
virtual void clearItems ()
 Clears all plot items from this canvas and updates the GUI. More...
 
virtual void clearPlots ()
 Item-specific clear methods. More...
 
virtual void clearPoints ()
 
virtual void clearShapes ()
 
virtual void clearAnnotations ()
 
virtual void clearLayer (PlotCanvasLayer layer)
 Clears all plot items from the given layer on this canvas and updates the GUI. More...
 
virtual void holdDrawing ()=0
 Draw Methods //. More...
 
virtual void releaseDrawing ()=0
 
virtual bool drawingIsHeld () const =0
 
virtual void registerDrawWatcher (PlotDrawWatcherPtr watcher)
 Registers/Unregisters the given draw watcher for this canvas. More...
 
virtual void unregisterDrawWatcher (PlotDrawWatcherPtr watcher)
 
virtual PlotOperationPtr operationDraw ()
 Returns a PlotOperation object that can be used to track drawing progress across threads. More...
 
virtual PlotOperationPtr operationDraw (PlotMutexPtr mutex)
 
virtual bool selectLineShown () const
 Selection Methods //. More...
 
virtual void setSelectLineShown (bool shown=true)=0
 Sets whether a line is shown for the selection tool. More...
 
virtual PlotLinePtr selectLine () const =0
 returns a copy of the line for the selection tool More...
 
virtual void setSelectLine (const PlotLine &line)=0
 set the line for the selection tool More...
 
virtual void setSelectLine (const PlotLinePtr line)
 Convenience methods for setting selection line. More...
 
virtual void setSelectLine (const casacore::String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0)
 
virtual bool gridShown (bool *xMajor=NULL, bool *xMinor=NULL, bool *yMajor=NULL, bool *yMinor=NULL) const =0
 Grid Methods //. More...
 
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. More...
 
virtual void showGrid (bool showAll=true)
 Convenience methods for showing/hiding the grid. More...
 
virtual void showGridMajor (bool show=true)
 
virtual void showGridMinor (bool show=true)
 
virtual bool gridXMajorShown () const
 Gets/Sets whether major grid lines are shown for the x-axis. More...
 
virtual void showGridXMajor (bool s=true)
 
virtual bool gridXMinorShown () const
 Gets/Sets whether minor grid lines are shown for the x-axis. More...
 
virtual void showGridXMinor (bool s=true)
 
virtual bool gridYMajorShown () const
 Gets/Sets whether major grid lines are shown for the y-axis. More...
 
virtual void showGridYMajor (bool s=true)
 
virtual bool gridYMinorShown () const
 Gets/Sets whether minor grid lines are shown for the y-axis. More...
 
virtual void showGridYMinor (bool s=true)
 
virtual PlotLinePtr gridMajorLine () const =0
 Returns a copy of the line used to draw the major grid lines. More...
 
virtual void setGridMajorLine (const PlotLine &line)=0
 Sets the line used to draw the major grid lines. More...
 
virtual PlotLinePtr gridMinorLine () const =0
 Returns a copy of the line used to draw the minor grid lines. More...
 
virtual void setGridMinorLine (const PlotLine &line)=0
 Sets the line used to draw the minor grid lines. More...
 
virtual void setGridMajorLine (const PlotLinePtr line)
 Convenience methods for setting major/minor grid lines. More...
 
virtual void setGridMajorLine (const casacore::String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0)
 
virtual void setGridMinorLine (const PlotLinePtr line)
 
virtual void setGridMinorLine (const casacore::String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0)
 
virtual bool legendShown () const =0
 Legend Methods //. More...
 
virtual void showLegend (bool on=true, LegendPosition position=EXT_BOTTOM)=0
 Show/hide the legend. More...
 
virtual LegendPosition legendPosition () const =0
 Returns the position of the legend. More...
 
virtual void setLegendPosition (LegendPosition position)=0
 Sets the position of the legend, if it is shown. More...
 
virtual PlotLinePtr legendLine () const =0
 Returns a copy of the line used to outline the legend. More...
 
virtual void setLegendLine (const PlotLine &line)=0
 Sets the line used to outline the legend. More...
 
virtual void setLegendLine (const PlotLinePtr line)
 Convenience methods for setting legend line. More...
 
virtual void setLegendLine (const casacore::String &color, PlotLine::Style style=PlotLine::SOLID, double width=1.0)
 
virtual PlotAreaFillPtr legendFill () const =0
 Returns a copy of the area fill used for the legend background. More...
 
virtual void setLegendFill (const PlotAreaFill &area)=0
 Sets the area fill used for the legend background. More...
 
virtual void setLegendFill (const PlotAreaFillPtr area)
 Convenience methods for setting legend background. More...
 
virtual void setLegendFill (const casacore::String &color, PlotAreaFill::Pattern pattern=PlotAreaFill::FILL)
 
virtual PlotFontPtr legendFont () const =0
 Returns a copy of the font used for the legend text. More...
 
virtual void setLegendFont (const PlotFont &font)=0
 Sets the font used for the legend text. More...
 
virtual void setLegendFont (const PlotFontPtr font)
 Convenience method for setting legend font. More...
 
virtual bool autoIncrementColors () const =0
 Miscellaneous Plotting Functionality //. More...
 
virtual void setAutoIncrementColors (bool autoInc=true)=0
 Sets whether adding new overplotted plots should automatically "increment" colors or not. More...
 
virtual bool exportToFile (const PlotExportFormat &format)=0
 Exports this canvas to the given format and returns true on success. More...
 
virtual PlotOperationPtr operationExport ()
 Returns a PlotOperation object that can be used to track export progress across threads. More...
 
virtual PlotOperationPtr operationExport (PlotMutexPtr mutex)
 
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. More...
 
virtual const casacore::StringdateFormat () const =0
 Gets/Sets the date format for this canvas. More...
 
virtual void setDateFormat (const casacore::String &dateFormat)=0
 
virtual const casacore::StringrelativeDateFormat () const =0
 Gets/Sets the date format for values relative to a reference value for this canvas. More...
 
virtual void setRelativeDateFormat (const casacore::String &dateFormat)=0
 
virtual PlotCoordinate convertCoordinate (const PlotCoordinate &coord, PlotCoordinate::System newSystem=PlotCoordinate::WORLD) const =0
 Converts the given coordinate into a coordinate with the given system. More...
 
bool hasSelectedRectangles ()
 
std::vector< PlotRegiongetSelectedRects ()
 
void clearSelectedRects ()
 
void clearMark ()
 methods related to per-panel flag mode More...
 
bool isMarkedForFlag ()
 
bool isMarkedForUnflag ()
 
bool isBackgroundColorChanged ()
 
void setAllFlagged ()
 
virtual PlotRegion convertRegion (const PlotRegion &region, PlotCoordinate::System newSystem) const
 Converts the given region into a region with the given system. More...
 
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. More...
 
virtual std::vector< double > annotationWidthHeightDescent (const PlotAnnotationPtr annot) const
 Returns the width, height, and descent for the given annotation. More...
 
virtual int implementation () const =0
 Returns the implementation of this canvas as a Plotter::Implementation value. More...
 
virtual PlotMutexPtr mutex () const
 Returns a mutex appropriate for this implementation. More...
 
virtual std::vector
< std::vector< std::pair
< unsigned int, unsigned int > > > * 
locate (const PlotRegion &region) 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(). More...
 
virtual void locateAndLog (const PlotRegion &region, PlotLoggerPtr logger) const
 Calls locate() and posts the result to the given log. More...
 
virtual void registerMouseTool (PlotMouseToolPtr tool, bool activate=true, bool blocking=false)
 Tool Methods //. More...
 
virtual std::vector
< PlotMouseToolPtr > 
allMouseTools () const
 
virtual std::vector
< PlotMouseToolPtr > 
activeMouseTools () const
 
virtual void unregisterMouseTool (PlotMouseToolPtr tool)
 
virtual
PlotStandardMouseToolGroupPtr 
standardMouseTools ()
 Returns the standard mouse tools associated with this canvas. More...
 
virtual void registerSelectHandler (PlotSelectEventHandlerPtr handler, PlotCoordinate::System system=PlotCoordinate::WORLD)
 Event Handler Methods //. More...
 
virtual std::vector
< PlotSelectEventHandlerPtr
allSelectHandlers () const
 
virtual void unregisterSelectHandler (PlotSelectEventHandlerPtr handler)
 
virtual void registerClickHandler (PlotClickEventHandlerPtr handler, PlotCoordinate::System system=PlotCoordinate::WORLD)
 Manage click handlers. More...
 
virtual std::vector
< PlotClickEventHandlerPtr
allClickHandlers () const
 
virtual void unregisterClickHandler (PlotClickEventHandlerPtr handler)
 
virtual void registerMousePressHandler (PlotMousePressEventHandlerPtr hndlr, PlotCoordinate::System system=PlotCoordinate::WORLD)
 Manage mouse press handlers. More...
 
virtual std::vector
< PlotMousePressEventHandlerPtr
allMousePressHandlers () const
 
virtual void unregisterMousePressHandler (PlotMousePressEventHandlerPtr handler)
 
virtual void registerMouseReleaseHandler (PlotMouseReleaseEventHandlerPtr handler, PlotCoordinate::System system=PlotCoordinate::WORLD)
 Manage mouse release handlers. More...
 
virtual std::vector
< PlotMouseReleaseEventHandlerPtr
allMouseReleaseHandlers () const
 
virtual void unregisterMouseReleaseHandler (PlotMouseReleaseEventHandlerPtr handler)
 
virtual void registerMouseDragHandler (PlotMouseDragEventHandlerPtr h, PlotCoordinate::System system=PlotCoordinate::WORLD)
 Manage mouse drag handlers. More...
 
virtual std::vector
< PlotMouseDragEventHandlerPtr
allMouseDragHandlers () const
 
virtual void unregisterMouseDragHandler (PlotMouseDragEventHandlerPtr h)
 
virtual void registerMouseMoveHandler (PlotMouseMoveEventHandlerPtr h, PlotCoordinate::System system=PlotCoordinate::WORLD)
 Manage mouse move handlers. More...
 
virtual std::vector
< PlotMouseMoveEventHandlerPtr
allMouseMoveHandlers () const
 
virtual void unregisterMouseMoveHandler (PlotMouseMoveEventHandlerPtr h)
 
virtual void registerWheelHandler (PlotWheelEventHandlerPtr handler, PlotCoordinate::System system=PlotCoordinate::WORLD)
 Manage wheel handlers. More...
 
virtual std::vector
< PlotWheelEventHandlerPtr
allWheelHandlers () const
 
virtual void unregisterWheelHandler (PlotWheelEventHandlerPtr handler)
 
virtual void registerKeyHandler (PlotKeyEventHandlerPtr handler)
 Manage key handlers. More...
 
virtual std::vector
< PlotKeyEventHandlerPtr
allKeyHandlers () const
 
virtual void unregisterKeyHandler (PlotKeyEventHandlerPtr handler)
 
virtual void registerResizeHandler (PlotResizeEventHandlerPtr handler)
 Manage resize handlers. More...
 
virtual std::vector
< PlotResizeEventHandlerPtr
allResizeHandlers () const
 
virtual void unregisterResizeHandler (PlotResizeEventHandlerPtr handler)
 

Additional Inherited Members

- Public Types inherited from casa::PlotCanvas
enum  LegendPosition {
  INT_URIGHT,
  INT_LRIGHT,
  INT_ULEFT,
  INT_LLEFT,
  EXT_RIGHT,
  EXT_TOP,
  EXT_LEFT,
  EXT_BOTTOM
}
 Static //. More...
 
- Static Public Member Functions inherited from casa::PlotCanvas
static std::vector
< LegendPosition
allLegendPositions ()
 Returns all legend positions. More...
 
static std::vector
< casacore::String
allLegendPositionStrings ()
 
static casacore::String legendPosition (LegendPosition p)
 Converts between legend positions and their casacore::String representations. More...
 
static LegendPosition legendPosition (casacore::String p, bool *ok=NULL)
 
static bool legendPositionIsInternal (LegendPosition p)
 Indicates whether the given legend position is internal to the canvas or not. More...
 
static std::vector< PlotAxisallAxes ()
 Returns a std::vector containing all values in the PlotAxis enum, ordered from lowest value to highest value. More...
 
static int allAxesFlag ()
 Returns the or'ed value of all PlotAxis enum values. More...
 
static std::vector
< PlotCanvasLayer
allLayers ()
 Returns a vector containing all values in the PlotCanvasLayer enum, ordered from lowest value to highest value. More...
 
static int allLayersFlag ()
 Returns the or'ed value of all PlotCanvasLayer enum values. More...
 
- Static Public Attributes inherited from casa::PlotCanvas
static const casacore::String OPERATION_DRAW
 Convenient access to operation names. More...
 
static const casacore::String OPERATION_EXPORT
 
- Protected Member Functions inherited from casa::PlotCanvas
void resetMouseTools ()
 Resets mouse tools. More...
 
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 PlotDrawWatcher::canvasDrawBeginning() results. More...
 
bool notifySelectHandlers (const PlotRegion &selectedRegion)
 Notification methods for event handlers. More...
 
bool notifyMouseHandlers (PlotMouseEvent::Type type, PlotMouseEvent::Button button, const PlotCoordinate &coord)
 
bool notifyClickHandlers (PlotMouseEvent::Button button, const PlotCoordinate &coord)
 
bool notifyPressHandlers (PlotMouseEvent::Button button, const PlotCoordinate &coord)
 
bool notifyReleaseHandlers (PlotMouseEvent::Button button, const PlotCoordinate &coord)
 
bool notifyDragHandlers (PlotMouseEvent::Button button, const PlotCoordinate &coord)
 
bool notifyMoveHandlers (PlotMouseEvent::Button button, const PlotCoordinate &coord)
 
bool notifyWheelHandlers (int delta, const PlotCoordinate &coord)
 
bool notifyKeyHandlers (char key, const std::vector< PlotKeyEvent::Modifier > &modifiers)
 
bool notifyResizeHandlers (int oldWidth, int oldHeight, int newWidth, int newHeight)
 
- Protected Attributes inherited from casa::PlotCanvas
PlotAxesStack m_stack
 One-per-canvas axes stack. More...
 
PlotOperationPtr m_drawOperation
 One-per-canvas operations. More...
 
PlotOperationPtr m_exportOperation
 
std::vector< PlotDrawWatcherPtrm_drawWatchers
 Draw watchers. More...
 
PlotStandardMouseToolGroupPtr m_standardTools
 One-per-canvas standard mouse tools. More...
 
std::vector< PlotMouseToolPtr > m_mouseTools
 Registered mouse tools. More...
 
std::vector< std::pair
< PlotSelectEventHandlerPtr,
PlotCoordinate::System > > 
m_selectHandlers
 Event handlers. More...
 
std::vector< std::pair
< PlotClickEventHandlerPtr,
PlotCoordinate::System > > 
m_clickHandlers
 
std::vector< std::pair
< PlotMousePressEventHandlerPtr,
PlotCoordinate::System > > 
m_pressHandlers
 
std::vector< std::pair
< PlotMouseReleaseEventHandlerPtr,
PlotCoordinate::System > > 
m_releaseHandlers
 
std::vector< std::pair
< PlotMouseDragEventHandlerPtr,
PlotCoordinate::System > > 
m_dragHandlers
 
std::vector< std::pair
< PlotMouseMoveEventHandlerPtr,
PlotCoordinate::System > > 
m_moveHandlers
 
std::vector< std::pair
< PlotWheelEventHandlerPtr,
PlotCoordinate::System > > 
m_wheelHandlers
 
std::vector
< PlotKeyEventHandlerPtr
m_keyHandlers
 
std::vector
< PlotResizeEventHandlerPtr
m_resizeHandlers
 

Detailed Description

Interface implemented by classes that can export their draw area (QPAxis & QPCanvas).

Definition at line 39 of file QPExportCanvas.h.

Constructor & Destructor Documentation

casa::QPExportCanvas::QPExportCanvas ( )
inline

Definition at line 41 of file QPExportCanvas.h.

virtual casa::QPExportCanvas::~QPExportCanvas ( )
inlinevirtual

Definition at line 42 of file QPExportCanvas.h.

Member Function Documentation

virtual QPalette::ColorRole casa::QPExportCanvas::backgroundRole ( ) const
pure virtual
virtual int casa::QPExportCanvas::canvasHeight ( ) const
pure virtual
virtual int casa::QPExportCanvas::canvasWidth ( ) const
pure virtual
virtual QImage casa::QPExportCanvas::grabImageFromCanvas ( const PlotExportFormat format)
pure virtual
virtual PlotFactory* casa::QPExportCanvas::implementationFactory ( ) const
pure virtual

Returns a new instance of a PlotFactory that can create plot items for this implementation.

It is the caller's responsibility to delete the PlotFactory when finished.

Implements casa::PlotCanvas.

virtual bool casa::QPExportCanvas::isAxis ( ) const
inlinevirtual

Definition at line 55 of file QPExportCanvas.h.

virtual bool casa::QPExportCanvas::isVertical ( ) const
inlinevirtual

Definition at line 58 of file QPExportCanvas.h.

virtual PlotLoggerPtr casa::QPExportCanvas::logger ( ) const
pure virtual
virtual const QPalette& casa::QPExportCanvas::palette ( ) const
pure virtual
virtual bool casa::QPExportCanvas::print ( QPrinter &  printer)
pure virtual
virtual bool casa::QPExportCanvas::print ( QPainter *  painter,
PlotAreaFillPtr  paf,
double  widthRatio,
double  heightRatio,
int  externalAxisWidth,
int  externalAxisHeight,
int  rowIndex,
int  colIndex,
QRect  imageRect 
)
pure virtual
virtual bool casa::QPExportCanvas::printRect ( QPainter *  painter,
QRect  printGeom 
)
pure virtual

The documentation for this class was generated from the following file: