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
14namespace Isis {
15 class PvlGroup;
16
30 Q_OBJECT
31
32 public:
35
36 bool bandMarkersVisible() const;
37
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
Cube display widget for certain Isis MDI applications.
Units
These are all the possible units for the x or y data in a plot curve.
Definition PlotCurve.h:54
QwtPlotMarker * m_grayBandLine
The band marker for the gray band.
void setViewport(MdiCubeViewport *cvp)
This class needs to know which viewport the user is looking at so it can appropriately draw in the ba...
QwtPlotMarker * createMarker(QColor color)
This is a helper method to create new band markers with the same line style and a custom color.
QwtPlotMarker * m_blueBandLine
The band marker for the blue band.
QAction * m_showHideBandMarkers
This action toggles band marker visibility.
SpectralPlotWindow(PlotCurve::Units xUnits, QWidget *parent)
This constructs a spectral plot window.
void nullify()
This initializes the class member data to NULL.
MdiCubeViewport * m_cvp
The viewport to be used as a reference for band markers.
void setBandMarkersVisible(bool visible)
QwtPlotMarker * m_greenBandLine
The band marker for the green band.
bool m_markersVisible
True if the visibile state of the active markers should be true.
QwtPlotMarker * m_redBandLine
The band marker for the red band.
void drawBandMarkers()
This method actually draws in the vertical band line(s) on the plot area.
void update(MdiCubeViewport *activeViewport)
This window can show markers for the currently visible bands.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16