27 #ifndef TBPLOTCANVAS_H_
28 #define TBPLOTCANVAS_H_
30 #include <casaqt/QtBrowser/TBPlotCanvas.ui.h>
126 void setShownGrids(
bool xMaj,
bool xMin,
bool yMaj,
bool yMin);
145 std::vector<TBPlotData*>
allData();
154 bool overplot =
false);
void clearAndHideAxes()
Clears all current plots and hides the two axes.
Event for when the user selects a region on a plot canvas with the mouse.
void setYAxisDate(bool date=true, bool mjsec=true)
Sets the y axis to display values as dates.
PlotterPtr plotter
Plotter.
void regionSelected(bool selected)
Signal that is emitted whenever the user selects a region, or the currently selected region is cleare...
Convenience class for a casacore::String/bool tuple.
std::vector< TBPlotData * > data
Current data.
void setXAxisTitle(casacore::String title)
Sets the X-axis title to the given String.
void setShownGrids(bool xMaj, bool xMin, bool yMaj, bool yMin)
Sets which grids are shown on the canvas.
casacore::Data for plotting.
Base class for a handler for PlotSelectEvent.
Canvas for data plotting using a given plotting implementation.
void setTable(casacore::String table)
Sets the name of the current table being plotted.
casacore::String currentTable
Holds the name of the current table being plotted.
PlotRegion currentSelection()
If there is a current user-selected region, return it.
PlotShapeRectanglePtr selectedRegion
Currently selected region, or NULL if there is none.
std::vector< TBPlotData * > allData()
Returns the data corresponding to the current plots.
Result exportToImage(casacore::String format, casacore::String location)
Exports the PlotCanvas to an image in the given format at the given location and returns whether the ...
casacore::String getCurrentTable()
Returns the name of the current table being plotted.
void clearPlots()
Slot for clearing all the internal tracking of current plots.
int getNumPlots()
Returns the current number of plots currently on the canvas.
void plot(TBPlotData *data, const TBPlotFormat &format, bool overplot=false)
Plots the given data.
void setYAxisTitle(casacore::String title)
Sets the Y-axis title to the given String.
std::string date()
get the current data
PlotFactoryPtr factory
Plotter factory.
void setXAxisDate(bool date=true, bool mjsec=true)
Sets the x axis to display values as dates.
String: the storage and methods of handling collections of characters.
PlotCanvasPtr canvas
Plot canvas.
TBPlotCanvas(PlotFactoryPtr factory)
Constructor with a factory.
A PlotRegion is basically just a wrapper for two PlotCoordinates: an upper left coordinate and a lowe...
void clearSelectedRectangle()
If there is a rectangle shape from a user-selected region, clear it from the canvas.
void handleSelect(const PlotSelectEvent &event)
Implements PlotSelectEventHandler::handleSelect().