38class QwtPlotSpectrogram;
48template <
typename A,
typename B>
struct QPair;
51 class MdiCubeViewport;
55 class TableMainWindow;
195 QList<const CubePlotCurve *>
plotCurves()
const;
252 virtual void dropEvent(QDropEvent *event);
255 using QWidget::mousePressEvent;
259 void setMenus(QList<QMenu *> menus, QList<QAction *> actions);
263 void autoScaleCheckboxToggled();
264 void onClipboardChanged();
268 QPair<double, double> findDataRange(
int axisId)
const;
269 static bool numericStringLessThan(QString left, QString right);
270 bool userCanAddCurve(
const QMimeData *curve);
272 void setupDefaultMenu(
MenuOptions optionsToProvide);
277 QwtPlotZoomer *m_zoomer;
281 QCheckBox *m_autoScaleCheckBox;
283 QCheckBox *m_xLogCheckBox;
285 QCheckBox *m_yLogCheckBox;
287 QLineEdit *m_xMinEdit;
289 QLineEdit *m_xMaxEdit;
291 QLineEdit *m_yMinEdit;
293 QLineEdit *m_yMaxEdit;
295 QLineEdit *m_xAxisText;
297 QLineEdit *m_yAxisText;
299 QLineEdit *m_plotTitleText;
312 QPointer<QAction> m_action;
314 QPointer<QAction> m_showHideAllCurves;
316 QPointer<QAction> m_showHideAllMarkers;
318 QPointer<QAction> m_showHideGrid;
326 bool m_allowUserToAddCurves;
328 bool m_autoscaleAxes;
332 bool m_plotXLogScale;
333 bool m_plotYLogScale;
337 bool m_scheduledFillTable;
Q_DECLARE_METATYPE(Isis::PlotWindow *)
We have plot windows as QVariant data types, so here it's enabled.
Q_DECLARE_OPAQUE_POINTER(QwtPlotSpectrogram *)
We have scatter plot types as QVariant data types, so here it's enabled.
This is a plot curve with information relating it to a particular cube or region of a cube.
Definition CubePlotCurve.h:53
Base class for the Qisis main windows.
Definition MainWindow.h:24
Cube display widget for certain Isis MDI applications.
Definition MdiCubeViewport.h:39
Definition PlotCurve.h:44
Units
These are all the possible units for the x or y data in a plot curve.
Definition PlotCurve.h:54
Definition PlotWindow.h:88
QList< CubePlotCurve * > plotCurves()
Get a comprehensive list of the plot curves inside of this plot window, excluding plot curves that ar...
Definition PlotWindow.cpp:327
void createWidgets(MenuOptions optionsToProvide)
This method is called by the constructor to create the plot, legend.
Definition PlotWindow.cpp:144
void closed()
Emitted when there is a close event on this window that will be accepted.
void setAxisLabel(int axisId, QString title)
Sets the plots given axis title to the given string.
Definition PlotWindow.cpp:207
virtual void add(CubePlotCurve *pc)
This method adds the curves to the plot.
Definition PlotWindow.cpp:435
virtual void dragEnterEvent(QDragEnterEvent *event)
When a user drags data into our plot window, we need to indicate whether or not this data is compatib...
Definition PlotWindow.cpp:1822
void showHideAllMarkers()
Shows/Hides all the markers(symbols)
Definition PlotWindow.cpp:938
void plotChanged()
Emitted every time there is a change to the plot window.
QString plotTitle() const
Returns the plot title.
Definition PlotWindow.cpp:240
void showHideAllCurves()
This method shows or hides all of the curves in the plotWindow.
Definition PlotWindow.cpp:966
void printPlot()
Provides printing support of the plot image.
Definition PlotWindow.cpp:572
void setPlotBackground(QColor c)
Sets the plot background color to the given color.
Definition PlotWindow.cpp:288
MenuOptions
There is a menu option for everything in the plot window's menu.
Definition PlotWindow.h:96
@ LineFitMenuOption
This option allows the user to create a best fit line for any of the scatter plot data or cube plot c...
Definition PlotWindow.h:163
@ PrintMenuOption
This option sends the plot to a printer.
Definition PlotWindow.h:118
@ ResetScaleMenuOption
This option provides the user with an alternative zoom out button.
Definition PlotWindow.h:147
@ ShowHideMarkersMenuOption
This option is titled 'Hide All Symbols' which hides all markers.
Definition PlotWindow.h:98
@ ConfigurePlotMenuOption
This option allows the user to change the curve name, color, style size, and symbol of the curve.
Definition PlotWindow.h:169
@ SaveMenuOption
This option exports the plot into a standard image format.
Definition PlotWindow.h:114
@ ShowHideGridMenuOption
This option enables the ability for a user to enable a grid over the plot area.
Definition PlotWindow.h:134
@ ShowTableMenuOption
This option brings up the table.
Definition PlotWindow.h:108
@ AllMenuOptions
This is all of the available menu options.
Definition PlotWindow.h:173
@ ClearPlotMenuOption
This option allows the user to delete all of the data inside the plot.
Definition PlotWindow.h:153
@ RenameLabelsMenuOption
This option enables the ability for a user to change the x/y axis labels and plot title.
Definition PlotWindow.h:139
@ DefaultHelpMenuOption
Not implemented.
Definition PlotWindow.h:157
@ TrackMenuOption
This option enables mouse tracking on the plot area (displays next to the mouse which x/y point you a...
Definition PlotWindow.h:124
@ ShowHideCurvesMenuOption
This option is titled 'Hide All Curves' which makes all curves invisible.
Definition PlotWindow.h:103
@ BackgroundSwitchMenuOption
This option enables the ability for a user to change the background color of the plot from black to w...
Definition PlotWindow.h:129
@ SetDisplayRangeMenuOption
This option allows the user to set the x/y axis display value ranges.
Definition PlotWindow.h:143
static QString defaultWindowTitle()
This is the typical suffix for plot windows, it's here in case we want to update all plot windows to ...
Definition PlotWindow.cpp:1809
void showWindow()
Shows the plot window, and raises it to the front of any overlapping sibling widgets.
Definition PlotWindow.cpp:184
void resetScale()
Sets plot scale back to the defaults.
Definition PlotWindow.cpp:659
void createBestFitLine()
This method prompts the user to select the best fit line criterea.
Definition PlotWindow.cpp:528
QColor plotBackgroundColor() const
Returns the plot's background color.
Definition PlotWindow.cpp:316
virtual void dropEvent(QDropEvent *event)
This is called when a user drops data into our window.
Definition PlotWindow.cpp:1843
void replot()
Reset the scale of the plot, replot it and emit plot changed.
Definition PlotWindow.cpp:1796
void trackerEnabled()
Enables the plot mouse tracker.
Definition PlotWindow.cpp:559
PlotCurve::Units xAxisUnits() const
This is the data-type of the curves' x data in this plot window.
Definition PlotWindow.cpp:265
void setPlotTitle(QString pt)
Sets the plot title to the given string.
Definition PlotWindow.cpp:218
void setUserCanAddCurves(bool)
Allow or disallow users from manually putting curves into this plot window through either copy-and-pa...
Definition PlotWindow.cpp:230
virtual bool eventFilter(QObject *o, QEvent *e)
This method filters the events of the objects it is connected to.
Definition PlotWindow.cpp:1589
void changePlotLabels()
This method creates the dialog box which allows the user to relabel the plot window.
Definition PlotWindow.cpp:853
void setUserValues()
This method sets the scale for the axis according to the user specified numbers.
Definition PlotWindow.cpp:693
virtual void update(MdiCubeViewport *activeViewport)
This is provided to allow children to react to tool updates.
Definition PlotWindow.cpp:196
void showHideGrid()
This method hides/shows the grid on the plotWindow and changes the text for the action.
Definition PlotWindow.cpp:922
void configurePlotCurves()
This method creates a CubePlotCurveConfigureDialog object.
Definition PlotWindow.cpp:507
bool canAdd(CubePlotCurve *curveToTest) const
This method tests whethere or not a CubePlotCurve can be successfully added to this window.
Definition PlotWindow.cpp:304
void fillTable()
Fills in the table with the data from the current curves in the plotWindow immediately.
Definition PlotWindow.cpp:1410
void savePlot()
This method allows the user to save the plot as a png, jpg, or tif image file.
Definition PlotWindow.cpp:604
void showHelp()
This method creates and shows the help dialog box for the plot window.
Definition PlotWindow.cpp:998
void showTable()
This method is called from the showTable action on the tool bar There are some checks done to make su...
Definition PlotWindow.cpp:1565
void setDefaultRange()
Resets the x/y min/max to the defaults.
Definition PlotWindow.cpp:742
virtual void paint(MdiCubeViewport *vp, QPainter *painter)
Paint plot curve information onto the viewport.
Definition PlotWindow.cpp:1786
PlotCurve::Units yAxisUnits() const
This is the data-type of the curves' y data in this plot window.
Definition PlotWindow.cpp:277
void clearPlot()
This method completely clears the plot of all plot items.
Definition PlotWindow.cpp:491
bool userCanAddCurves() const
Ask if a user action can add this curve to this window in general.
Definition PlotWindow.cpp:253
virtual void clearPlotCurves()
This method also clears the plot of all plot items, but does not call the table delete stuff This met...
Definition PlotWindow.cpp:539
void setLabels()
Makes the user specified changes to the plot labels.
Definition PlotWindow.cpp:909
void switchBackground()
This method toggles the plot background color between black and white.
Definition PlotWindow.cpp:634
void mousePressEvent(QObject *object, QMouseEvent *e)
This is a helper method for the eventFilter() method.
Definition PlotWindow.cpp:1627
void scheduleFillTable()
Fills in the table with the data from the current curves in the plotWindow once all current actions/a...
Definition PlotWindow.cpp:1398
void disableAxisAutoScale()
This turns off scaling the x/y axes automatically.
Definition PlotWindow.cpp:1663
PlotWindow(QString title, PlotCurve::Units xAxisUnits, PlotCurve::Units yAxisUnits, QWidget *parent, MenuOptions optionsToProvide=AllMenuOptions)
This constructs a plot window.
Definition PlotWindow.cpp:65
QwtPlot * plot()
Get the plot encapsulated by this PlotWindow.
Definition PlotWindow.cpp:1652
QList< QwtPlotSpectrogram * > plotSpectrograms()
Get a comprehensive list of the scatter plots (spectrograms) inside of this plot window.
Definition PlotWindow.cpp:380
QwtPlotZoomer * zoomer()
Get this window's plot's zoomer.
Definition PlotWindow.cpp:1387
void setMenus(QList< QMenu * > menus, QList< QAction * > actions)
Sets up the menus added from a parent object.
Definition PlotWindow.cpp:1357
~PlotWindow()
Definition PlotWindow.cpp:130
a subclass of the qisis mainwindow, tablemainwindow handles all of the table tasks.
Definition TableMainWindow.h:57
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
This is free and unencumbered software released into the public domain.
Definition CubeIoHandler.h:23