File failed to load: https://isis.astrogeology.usgs.gov/dev/Object/assets/jax/output/NativeMML/config.js
Isis Developer Reference
SpectralPlotTool.h
Go to the documentation of this file.
1#ifndef SpectralPlotTool_h
2#define SpectralPlotTool_h
3
4#include "AbstractPlotTool.h"
5
6#include <vector>
7
8#include <QMap>
9
10class QMainWindow;
11
12namespace geos {
13 namespace geom {
14 class Envelope;
15 class Polygon;
16 }
17}
18
19namespace Isis {
20 class CubePlotCurve;
21 class PlotWindow;
23 class Statistics;
24
58 Q_OBJECT
59
60 public:
62
63 protected:
64 void addTo(QMenu *menu);
65 QWidget *createToolBarWidget(QStackedWidget *parent);
66 virtual PlotWindow *createWindow();
67 virtual void detachCurves();
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:
84 void getSpectralStatistics(QVector<double> &labels,
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
AbstractPlotTool(QWidget *parent)
When you construct a plot tool, this initializes the common functionality between plot tools.
Definition AbstractPlotTool.cpp:32
This is a plot curve with information relating it to a particular cube or region of a cube.
Definition CubePlotCurve.h:53
Cube display widget for certain Isis MDI applications.
Definition MdiCubeViewport.h:39
Definition PlotWindow.h:88
Combo box for choosing a rubber band type.
Definition RubberBandComboBox.h:26
void viewportSelected()
This protected slot is called when user selects a viewport.
Definition SpectralPlotTool.cpp:62
QComboBox * spectralDisplayCombo() const
Get the combo box which toggles between units of wavelength and band number.
Definition SpectralPlotTool.cpp:72
void enableRubberBandTool()
This method is called when the tool is activated by the parent, or when the plot mode is changed.
Definition SpectralPlotTool.cpp:84
SpectralPlotTool(QWidget *parent)
This constructs a spectral plot tool.
Definition SpectralPlotTool.cpp:43
void addTo(QMenu *menu)
Adds the plot tool to the menu.
Definition SpectralPlotTool.cpp:240
QWidget * createToolBarWidget(QStackedWidget *parent)
Creates the widgets for the tool bar.
Definition SpectralPlotTool.cpp:168
void refreshPlot()
This method replots the data, with current settings and rubber band, in the plot window.
Definition SpectralPlotTool.cpp:349
virtual void rubberBandComplete()
Called when the user has finished drawing with the rubber band.
Definition SpectralPlotTool.cpp:330
virtual void detachCurves()
Forget about all existing plot curves.
Definition SpectralPlotTool.cpp:313
virtual PlotWindow * createWindow()
Creates a new plot window compatible with the curves in this tool.
Definition SpectralPlotTool.cpp:297
QAction * toolPadAction(ToolPad *pad)
This method configures the QAction for this tool.
Definition SpectralPlotTool.cpp:149
void updateTool()
Updates plot tool.
Definition SpectralPlotTool.cpp:249
This class is used to accumulate statistics on double arrays.
Definition Statistics.h:93
Definition ToolPad.h:14
This is free and unencumbered software released into the public domain.
Definition CubeIoHandler.h:23
This is free and unencumbered software released into the public domain.
Definition Calculator.h:18
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
Definition Image.h:43
Definition Image.h:42