98 virtual std::pair<int, int>
size()
const = 0;
101 virtual void setSize(
int width,
int height) = 0;
123 bool resizeWindow =
true) = 0;
146 virtual void close() = 0;
205 virtual std::vector<PlotPanelPtr>
allPanels() = 0;
virtual void setCanvasCachedAxesStackImageSize(int width, int height)
Set the size of cached axes stack image.
(optionally) turn on/off tracker; (optionally) show/hide and position legend
virtual int logFilterEventFlags() const
See PlotLogger::eventFlags().
virtual void removePanel(PlotPanelPtr panel)=0
Removes the given plot panel from the plotter.
virtual PlotCanvasPtr canvas()
See PlotCanvasLayout::canvas().
virtual void setCanvasSize(int width, int height, bool resizeWindow=true)=0
If the plotter has a single canvas, sets the size of the canvas to the given.
virtual bool defaultPanelShown(DefaultPanel panel)=0
Panel methods //.
virtual PlotFactory * implementationFactory() const =0
Returns a new instance of a PlotFactory that can create plot items for this implementation.
virtual bool isQWidget() const =0
Returns true if the plotter window can be casted to a QWidget, false otherwise.
virtual void setLogFilterEventFlag(int flag, bool on)
See PlotLogger::setEventFlag().
void setCommonAxisY(casacore::Bool commonAxis)
bool isCommonAxisY() const
virtual void setLogFilterEventFlags(int flags)
See PlotLogger::setEventFlags().
virtual PlotPanelPtr getPanel(int index)=0
Returns the plot panel at the given index, or a null pointer for an invalid index.
virtual ~Plotter()
Destructor.
virtual void updateScriptGui()=0
Forces the script client to refresh.
virtual void setCanvas(PlotCanvasPtr canvas)
Sets the layout to a single layout with the given canvas.
virtual Implementation implementation() const =0
Plotting Functionality methods //.
virtual void showDefaultPanel(DefaultPanel panel, bool show=true)=0
Shows/hides the given default panel.
virtual unsigned int numPanels()=0
Returns the number of plot panels currently on the plotter.
SMART POINTER DEFINITIONS *typedef casacore::CountedPtr< PlotCanvasLayout > PlotCanvasLayoutPtr
virtual void canvasLayoutChanged(PlotCanvasLayout &layout)=0
Method for when the layout has changed (i.e.
virtual casacore::String fileChooserDialog(const casacore::String &title="File Chooser", const casacore::String &directory="")=0
Shows a file chooser dialog and returns the absolute filename that the user chooses.
virtual void registerResizeHandler(PlotResizeEventHandlerPtr handler)=0
Event Handling methods //.
The idea behind a plot factory is to produce classes that are useful to the underlying implementation...
A Plotter can be thought of as a frame that holds one or more PlotCanvases in a configuration determi...
bool isVisible(PlotCanvasPtr &canvas)
Base class for any layout.
virtual void setDateFormat(const casacore::String &dateFormat)=0
virtual void makeSquarePlot(bool square, bool wave)=0
Sets width=height but saves rectangular ratio.
void show(const variant &v)
PlotLoggerPtr m_logger
Logger.
virtual void refresh()=0
Refreshes the plotter GUI.
static casacore::String formattedDateString(const casacore::String &format, double value, PlotAxisScale scale, bool isRelative=false, int secPrecision=-1)
Returns a casacore::String for the given date value using the given format (see dateFormat()) and sca...
casacore::Bool commonAxisX
PlotterControllerPtr m_controller;.
Referenced counted pointer for constant data.
virtual int displayDPI() const =0
Returns the DPI used in the GUI display.
SMART POINTER DEFINITIONS *typedef casacore::CountedPtr< PlotPanel > PlotPanelPtr
void setCommonAxisX(casacore::Bool commonAxis)
Use a common x-/y- axis when plotting multiple graphs.
virtual const casacore::String & relativeDateFormat() const =0
Gets/Sets the date format for relative values (i.e., for reference values on axes) for the plotter an...
virtual void close()=0
Closes the plotter window.
casacore::LogMessage::Priority logFilterMinPriority() const
See PlotLogger::filterMinPriority().
virtual PlotLoggerPtr logger() const
Gets the PlotLogger associated with this Plotter.
static const casacore::String DEFAULT_RELATIVE_DATE_FORMAT
The default relative date format to use for the plotter.
virtual PlotCursor cursor() const =0
Gets/sets cursor for the whole plotter.
virtual int panelIndex(PlotPanelPtr panel)=0
Returns the index of the given plot panel, or -1 if not on canvas or null.
virtual void setRelativeDateFormat(const casacore::String &dateFormat)=0
PlotCursor
Enum for cursors.
PlotAxis
Enum for the four plot axes.
bool Bool
Define the standard types used by Casacore.
virtual std::pair< int, int > canvasAreaSize() const =0
Returns the size of the canvas area (i.e., minus bordering panels) in pixels (width x height)...
virtual void setCursor(PlotCursor cursor)=0
virtual int addPanel(PlotPanelPtr panel)=0
Adds the given plot panel and returns its index.
virtual std::pair< int, int > size() const =0
Returns the current size of the plotter GUI in pixels (width x height).
virtual void refreshPageHeaderDataModel(PageHeaderDataModelPtr dataModel)=0
virtual void showGUI(bool showGUI=true)=0
ABSTRACT METHODS //.
virtual std::vector< PlotPanelPtr > allPanels()=0
Returns all plot panels currently shown.
virtual void setSize(int width, int height)=0
Sets the plotter GUI size in pixels.
bool isCommonAxisX() const
casacore::Bool commonAxisY
DefaultPanel
Default implementation-specific GUI panels that can be turned on or off.
virtual void refreshPageHeader()=0
virtual PlotCanvasPtr canvasAt(const PlotLayoutCoordinate &coord)
IMPLEMENTED METHODS //.
PlotAxis getAxisLocationY() const
Priority
An "importance" which is assigned to each LogMessage.
virtual void setWindowTitle(const casacore::String &newTitle)=0
Sets the plotter window's title to the given.
static const casacore::String DEFAULT_DATE_FORMAT
The default date format to use for the plotter.
casacore::CountedPtr< Plotter > PlotterPtr
TableExprNode square(const TableExprNode &node)
virtual const casacore::String & dateFormat() const =0
Gets/Sets the date format for the plotter and all current and future canvases.
void setAxisLocation(PlotAxis xLocation, PlotAxis yLocation)
virtual bool logFilterEventFlag(int flag) const
See PlotLogger::eventFlag().
String: the storage and methods of handling collections of characters.
virtual PlotCanvasLayoutPtr canvasLayout()=0
Canvas Layout methods //.
virtual void clearPanels()=0
Clears all plot panels from the plotter.
Default plotter implementation is set here.
virtual void setCanvasLayout(PlotCanvasLayoutPtr layout)=0
Sets the canvas layout to the given.
virtual void unregisterResizeHandler(PlotResizeEventHandlerPtr handler)=0
Unregisters the given resize event handler with this plotter.
GRID LAYOUT CLASSES casacore::Coordinate for a grid layout
virtual bool exportPlot(const PlotExportFormat &format)=0
virtual void removeLastPanel()=0
Removes the last-added plot panel from the plotter.
virtual std::vector< PlotResizeEventHandlerPtr > allResizeHandlers() const =0
Returns a list of all registered resize event handlers for this plotter.
PlotAxisScale
Enum for possible axis scales.
virtual casacore::String windowTitle() const =0
Returns the plotter window's title.
void setLogFilterMinPriority(PlotLogMessage::Priority minPriority)
See PlotLogger::setFilterMinPriority().
PlotAxis getAxisLocationX() const
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
virtual bool exportToFile(const PlotExportFormat &format)=0
Exports the plotter (all canvases) using the given format.