Isis 3 Programmer Reference
SpectralPlotTool.h
1 #ifndef SpectralPlotTool_h
2 #define SpectralPlotTool_h
3 
4 #include "AbstractPlotTool.h"
5 
6 #include <vector>
7 
8 #include <QMap>
9 
10 class QMainWindow;
11 
12 namespace geos {
13  namespace geom {
14  class Envelope;
15  class Polygon;
16  }
17 }
18 
19 namespace Isis {
20  class CubePlotCurve;
21  class PlotWindow;
22  class RubberBandComboBox;
23  class Statistics;
24 
58  Q_OBJECT
59 
60  public:
61  SpectralPlotTool(QWidget *parent);
62 
63  protected:
64  void addTo(QMenu *menu);
65  QWidget *createToolBarWidget(QStackedWidget *parent);
66  virtual PlotWindow *createWindow();
67  virtual void detachCurves();
68  void enableRubberBandTool();
71  void updateTool();
72 
73  protected slots:
74  virtual void rubberBandComplete();
75  void viewportSelected();
76 
77  public slots:
78  void refreshPlot();
79 
80  private slots:
81  void selectCurvesToPlot();
82 
83  private:
85  QVector<Statistics> &data,
86  MdiCubeViewport *viewport);
87  void validatePlotCurves();
88 
90  QPointer<QComboBox> m_displayCombo;
91 
93  QPointer<RubberBandComboBox> m_rubberBandCombo;
94 
96  QPointer<QAction> m_toolPadAction;
97 
99  QPointer<QAction> m_plotAvgAction;
101  QPointer<QAction> m_plotMinAction;
103  QPointer<QAction> m_plotMaxAction;
105  QPointer<QAction> m_plotStdDev1Action;
107  QPointer<QAction> m_plotStdDev2Action;
109  QPointer<QAction> m_plotStdErr1Action;
111  QPointer<QAction> m_plotStdErr2Action;
112 
114  QScopedPointer<
116 
118  QScopedPointer<
120 
122  QScopedPointer<
124 
126  QScopedPointer<
128 
130  QScopedPointer<
132 
134  QScopedPointer<
136 
138  QScopedPointer<
140 
141 
143  QPointer<QAction> m_showHideBandMarkers;
144  };
145 };
146 
147 #endif
Cube display widget for certain Isis MDI applications.
virtual void rubberBandComplete()
Called when the user has finished drawing with the rubber band.
void enableRubberBandTool()
This method is called when the tool is activated by the parent, or when the plot mode is changed...
virtual PlotWindow * createWindow()
Creates a new plot window compatible with the curves in this tool.
QPointer< QAction > m_plotStdErr1Action
This QAction actives/deactivates plotting the avg+std dev values.
QScopedPointer< QMap< MdiCubeViewport *, QPointer< CubePlotCurve > > > m_maxCurves
Plot curves for max values.
void addTo(QMenu *menu)
Adds the plot tool to the menu.
SpectralPlotTool(QWidget *parent)
This constructs a spectral plot tool.
QScopedPointer< QMap< MdiCubeViewport *, QPointer< CubePlotCurve > > > m_stdErr1Curves
Plot curves for avg. + std. err.
QAction * toolPadAction(ToolPad *pad)
This method configures the QAction for this tool.
QPointer< QAction > m_showHideBandMarkers
Hide/show lines action.
QPointer< QComboBox > m_displayCombo
wavelength vs band #
void refreshPlot()
This method replots the data, with current settings and rubber band, in the plot window.
QScopedPointer< QMap< MdiCubeViewport *, QPointer< CubePlotCurve > > > m_minCurves
Plot curves for min values.
void getSpectralStatistics(QVector< double > &labels, QVector< Statistics > &data, MdiCubeViewport *viewport)
This method processes the spectral plot tool&#39;s selection and creates statistics for the selected pixe...
QPointer< RubberBandComboBox > m_rubberBandCombo
Combo box with all rubber banding types.
QScopedPointer< QMap< MdiCubeViewport *, QPointer< CubePlotCurve > > > m_stdDev2Curves
Plot curves for avg. - std. dev.
Plot cube DN statistics against the cube band numbers.
QPointer< QAction > m_plotMinAction
This QAction actives/deactivates plotting the min values.
virtual void detachCurves()
Forget about all existing plot curves.
QPointer< QAction > m_plotStdDev1Action
This QAction actives/deactivates plotting the avg+std dev values.
Definition: Image.h:43
QPointer< QAction > m_plotMaxAction
This QAction actives/deactivates plotting the max values.
void updateTool()
Updates plot tool.
QScopedPointer< QMap< MdiCubeViewport *, QPointer< CubePlotCurve > > > m_stdDev1Curves
Plot curves for avg. + std. dev.
QScopedPointer< QMap< MdiCubeViewport *, QPointer< CubePlotCurve > > > m_stdErr2Curves
Plot curves for avg. - std. err.
QScopedPointer< QMap< MdiCubeViewport *, QPointer< CubePlotCurve > > > m_avgCurves
Plot curves for average values.
QPointer< QAction > m_toolPadAction
Plot tool&#39;s action.
void validatePlotCurves()
This method sets up the names, line style, and color of the all the CubePlotCurves that will be used ...
QPointer< QAction > m_plotStdErr2Action
This QAction actives/deactivates plotting the avg-std dev values.
QPointer< QAction > m_plotStdDev2Action
This QAction actives/deactivates plotting the avg-std dev values.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Parent class for plotting tools which provides common functionality.
void viewportSelected()
This protected slot is called when user selects a viewport.
QPointer< QAction > m_plotAvgAction
This QAction actives/deactivates plotting the average values.
void selectCurvesToPlot()
This prompts the user for which curves they want to plot.
QWidget * createToolBarWidget(QStackedWidget *parent)
Creates the widgets for the tool bar.
QComboBox * spectralDisplayCombo() const
Get the combo box which toggles between units of wavelength and band number.