Isis Developer Reference
SpectralPlotWindow.h
Go to the documentation of this file.
1 #ifndef SpectralPlotWindow_h
2 #define SpectralPlotWindow_h
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 #include "PlotWindow.h"
13 
14 namespace Isis {
15  class PvlGroup;
16 
29  class SpectralPlotWindow : public PlotWindow {
30  Q_OBJECT
31 
32  public:
35 
36  bool bandMarkersVisible() const;
37 
38  void setViewport(MdiCubeViewport *cvp);
39  void update(MdiCubeViewport *activeViewport);
40 
41  public slots:
42  void setBandMarkersVisible(bool visible);
43 
44  private:
45  void nullify();
46  QwtPlotMarker *createMarker(QColor color);
47  void drawBandMarkers();
48 
50  MdiCubeViewport *m_cvp;
52  bool m_markersVisible;
54  QwtPlotMarker *m_grayBandLine;
56  QwtPlotMarker *m_redBandLine;
58  QwtPlotMarker *m_greenBandLine;
60  QwtPlotMarker *m_blueBandLine;
62  QAction *m_showHideBandMarkers;
63  };
64 };
65 
66 #endif
Isis::MdiCubeViewport
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:39
QWidget
Cube.h
MdiCubeViewport.h
Isis::SpectralPlotWindow::~SpectralPlotWindow
~SpectralPlotWindow()
Definition: SpectralPlotWindow.cpp:55
PvlGroup.h
QMenu
Isis::CubeViewport::isColor
bool isColor() const
Definition: CubeViewport.h:184
Isis::PlotCurve
Definition: PlotCurve.h:44
PlotWindow.h
Isis::PlotCurve::Units
Units
These are all the possible units for the x or y data in a plot curve.
Definition: PlotCurve.h:54
Isis::SpectralPlotWindow::SpectralPlotWindow
SpectralPlotWindow(PlotCurve::Units xUnits, QWidget *parent)
This constructs a spectral plot window.
Definition: SpectralPlotWindow.cpp:27
Isis::CubeViewport::blueBand
int blueBand() const
Definition: CubeViewport.h:209
Isis::PlotWindow::xAxisUnits
PlotCurve::Units xAxisUnits() const
This is the data-type of the curves' x data in this plot window.
Definition: PlotWindow.cpp:266
Isis::SpectralPlotWindow::update
void update(MdiCubeViewport *activeViewport)
This window can show markers for the currently visible bands.
Definition: SpectralPlotWindow.cpp:223
SpectralPlotWindow.h
Isis::CubeViewport::grayBand
int grayBand() const
Definition: CubeViewport.h:194
Pvl.h
Isis::PvlObject::findObject
PvlObjectIterator findObject(const QString &name, PvlObjectIterator beg, PvlObjectIterator end)
Find the index of object with a specified name, between two indexes.
Definition: PvlObject.h:274
Isis::PlotCurve::Wavelength
@ Wavelength
The data is a wavelength.
Definition: PlotCurve.h:92
Isis::SpectralPlotWindow::setBandMarkersVisible
void setBandMarkersVisible(bool visible)
Definition: SpectralPlotWindow.cpp:205
Isis::PlotWindow::plot
QwtPlot * plot()
Get the plot encapsulated by this PlotWindow.
Definition: PlotWindow.cpp:1653
Isis::toDouble
double toDouble(const QString &string)
Global function to convert from a string to a double.
Definition: IString.cpp:149
std
Namespace for the standard library.
Isis::SpectralPlotWindow
Definition: SpectralPlotWindow.h:29
Isis::Cube::label
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
Definition: Cube.cpp:1701
PvlObject.h
Isis::SpectralPlotWindow::bandMarkersVisible
bool bandMarkersVisible() const
Definition: SpectralPlotWindow.cpp:235
Isis::SpectralPlotWindow::setViewport
void setViewport(MdiCubeViewport *cvp)
This class needs to know which viewport the user is looking at so it can appropriately draw in the ba...
Definition: SpectralPlotWindow.cpp:194
Isis::PlotWindow::replot
void replot()
Reset the scale of the plot, replot it and emit plot changed.
Definition: PlotWindow.cpp:1797
IsisDebug.h
Isis::PlotWindow
Definition: PlotWindow.h:88
QAction
Isis::CubeViewport::cube
Cube * cube() const
Definition: CubeViewport.h:338
Isis::CubeViewport::redBand
int redBand() const
Definition: CubeViewport.h:199
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::CubeViewport::greenBand
int greenBand() const
Definition: CubeViewport.h:204