Isis 3 Programmer Reference
SpectralPlotWindow.h
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 
54  QwtPlotMarker *m_grayBandLine;
56  QwtPlotMarker *m_redBandLine;
58  QwtPlotMarker *m_greenBandLine;
60  QwtPlotMarker *m_blueBandLine;
63  };
64 };
65 
66 #endif
Isis::MdiCubeViewport
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:39
QWidget
Isis::SpectralPlotWindow::m_grayBandLine
QwtPlotMarker * m_grayBandLine
The band marker for the gray band.
Definition: SpectralPlotWindow.h:54
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::SpectralPlotWindow::nullify
void nullify()
This initializes the class member data to NULL.
Definition: SpectralPlotWindow.cpp:63
Isis::SpectralPlotWindow::m_greenBandLine
QwtPlotMarker * m_greenBandLine
The band marker for the green band.
Definition: SpectralPlotWindow.h:58
Isis::SpectralPlotWindow::m_blueBandLine
QwtPlotMarker * m_blueBandLine
The band marker for the blue band.
Definition: SpectralPlotWindow.h:60
Isis::SpectralPlotWindow::update
void update(MdiCubeViewport *activeViewport)
This window can show markers for the currently visible bands.
Definition: SpectralPlotWindow.cpp:223
Isis::SpectralPlotWindow::createMarker
QwtPlotMarker * createMarker(QColor color)
This is a helper method to create new band markers with the same line style and a custom color.
Definition: SpectralPlotWindow.cpp:80
Isis::SpectralPlotWindow::m_cvp
MdiCubeViewport * m_cvp
The viewport to be used as a reference for band markers.
Definition: SpectralPlotWindow.h:50
Isis::SpectralPlotWindow::m_showHideBandMarkers
QAction * m_showHideBandMarkers
This action toggles band marker visibility.
Definition: SpectralPlotWindow.h:62
Isis::SpectralPlotWindow::setBandMarkersVisible
void setBandMarkersVisible(bool visible)
Definition: SpectralPlotWindow.cpp:205
Isis::SpectralPlotWindow
Definition: SpectralPlotWindow.h:29
Isis::SpectralPlotWindow::m_markersVisible
bool m_markersVisible
True if the visibile state of the active markers should be true.
Definition: SpectralPlotWindow.h:52
Isis::SpectralPlotWindow::bandMarkersVisible
bool bandMarkersVisible() const
Definition: SpectralPlotWindow.cpp:235
Isis::SpectralPlotWindow::m_redBandLine
QwtPlotMarker * m_redBandLine
The band marker for the red band.
Definition: SpectralPlotWindow.h:56
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
Definition: PlotWindow.h:88
QAction
Isis::SpectralPlotWindow::drawBandMarkers
void drawBandMarkers()
This method actually draws in the vertical band line(s) on the plot area.
Definition: SpectralPlotWindow.cpp:99
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16