Isis Developer Reference
ScatterPlotConfigDialog.h
Go to the documentation of this file.
1#ifndef ScatterPlotConfigDialog_h
2#define ScatterPlotConfigDialog_h
3
4#include <QDialog>
5#include <QPointer>
6
7class QwtInterval;
8
9template <typename A, typename B> struct QPair;
10class QCheckBox;
11class QComboBox;
12class QSpinBox;
13
14namespace Isis {
15 class Cube;
16 class MdiCubeViewport;
17 class ScatterPlotTool;
18 class Workspace;
19
30 Q_OBJECT
31
32 public:
34 Workspace *workspace, QWidget *parent = NULL);
35
36 virtual QSize sizeHint() const;
37
38 Cube *xAxisCube() const;
39 Cube *yAxisCube() const;
40 int xAxisCubeBand() const;
41 int yAxisCubeBand() const;
42 int xAxisBinCount() const;
43 int yAxisBinCount() const;
44 QwtInterval sampleRange() const;
45 QwtInterval lineRange() const;
46
49
50 private slots:
51 void refreshWidgetStates();
52
53 private:
55 enum RangeType {
57 SampleRange,
59 LineRange
60 };
61
62 QList<Cube *> removeFromList(QList<Cube *> list,
63 QList<Cube *> itemsToRemove);
64 QwtInterval range(RangeType) const;
65
67 Workspace *m_workspace;
68
70 QPointer<QComboBox> m_xAxisCubeCombo;
72 QPointer<QSpinBox> m_xAxisCubeBandSpinBox;
74 QPointer<QSpinBox> m_xAxisBinCountSpinBox;
76 QPointer<QCheckBox> m_useViewportRangesCheckBox;
77
79 QPointer<QComboBox> m_yAxisCubeCombo;
81 QPointer<QSpinBox> m_yAxisCubeBandSpinBox;
83 QPointer<QSpinBox> m_yAxisBinCountSpinBox;
84
89 QPointer<QPushButton> m_createButton;
90
92 Cube *m_oldXAxisCube;
93 };
94}
95
96
97#endif
IO Handler for Isis Cubes.
Definition Cube.h:168
Cube display widget for certain Isis MDI applications.
Definition MdiCubeViewport.h:39
This configuration dialog is for users to determine the scatter plot parameters required to create a ...
Definition ScatterPlotConfigDialog.h:29
int xAxisCubeBand() const
The current user selection for the band in the x-axis cube to get data from.
Definition ScatterPlotConfigDialog.cpp:245
QwtInterval sampleRange() const
This is the sample range from which the scatter plot should be created.
Definition ScatterPlotConfigDialog.cpp:288
Cube * yAxisCube() const
The current user selection for a cube for the x-axis data for a scatter plot.
Definition ScatterPlotConfigDialog.cpp:233
QwtInterval lineRange() const
This is the line range from which the scatter plot should be created.
Definition ScatterPlotConfigDialog.cpp:300
virtual QSize sizeHint() const
This is overridden to give a better default size than what Qt calculates by default.
Definition ScatterPlotConfigDialog.cpp:209
int yAxisCubeBand() const
The current user selection for the band in the y-axis cube to get data from.
Definition ScatterPlotConfigDialog.cpp:256
Cube * xAxisCube() const
The current user selection for a cube for the x-axis data for a scatter plot.
Definition ScatterPlotConfigDialog.cpp:221
int yAxisBinCount() const
The current user selection for the resolution of the scatter plot's y data.
Definition ScatterPlotConfigDialog.cpp:276
MdiCubeViewport * yAxisCubeViewport() const
This returns a viewport which contains the y-axis cube.
Definition ScatterPlotConfigDialog.cpp:327
MdiCubeViewport * xAxisCubeViewport() const
This returns a viewport which contains the x-axis cube.
Definition ScatterPlotConfigDialog.cpp:310
ScatterPlotConfigDialog(MdiCubeViewport *activeViewport, Workspace *workspace, QWidget *parent=NULL)
This method creates all the dialog boxes required for the scatter plot window.
Definition ScatterPlotConfigDialog.cpp:28
int xAxisBinCount() const
The current user selection for the resolution of the scatter plot's x data.
Definition ScatterPlotConfigDialog.cpp:266
Definition Workspace.h:78
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