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
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
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
Cube display widget for certain Isis MDI applications.
Definition MdiCubeViewport.h:39
Units
These are all the possible units for the x or y data in a plot curve.
Definition PlotCurve.h:54
Definition PlotWindow.h:88
Definition SpectralPlotWindow.h:29
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:192
SpectralPlotWindow(PlotCurve::Units xUnits, QWidget *parent)
This constructs a spectral plot window.
Definition SpectralPlotWindow.cpp:25
bool bandMarkersVisible() const
Definition SpectralPlotWindow.cpp:233
void setBandMarkersVisible(bool visible)
Definition SpectralPlotWindow.cpp:203
~SpectralPlotWindow()
Definition SpectralPlotWindow.cpp:53
void update(MdiCubeViewport *activeViewport)
This window can show markers for the currently visible bands.
Definition SpectralPlotWindow.cpp:221
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16