Isis 3 Developer Reference
SpectralPlotWindow.h
Go to the documentation of this file.
1 #ifndef SpectralPlotWindow_h
2 #define SpectralPlotWindow_h
3 
27 #include "PlotWindow.h"
28 
29 namespace Isis {
30  class PvlGroup;
31 
44  class SpectralPlotWindow : public PlotWindow {
45  Q_OBJECT
46 
47  public:
50 
51  bool bandMarkersVisible() const;
52 
53  void setViewport(MdiCubeViewport *cvp);
54  void update(MdiCubeViewport *activeViewport);
55 
56  public slots:
57  void setBandMarkersVisible(bool visible);
58 
59  private:
60  void nullify();
61  QwtPlotMarker *createMarker(QColor color);
62  void drawBandMarkers();
63 
65  MdiCubeViewport *m_cvp;
67  bool m_markersVisible;
69  QwtPlotMarker *m_grayBandLine;
71  QwtPlotMarker *m_redBandLine;
73  QwtPlotMarker *m_greenBandLine;
75  QwtPlotMarker *m_blueBandLine;
77  QAction *m_showHideBandMarkers;
78  };
79 };
80 
81 #endif
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:53
void update(MdiCubeViewport *activeViewport)
This window can show markers for the currently visible bands.
Definition: SpectralPlotWindow.cpp:223
Definition: SpectralPlotWindow.h:44
Definition: PlotWindow.h:88
void setBandMarkersVisible(bool visible)
Definition: SpectralPlotWindow.cpp:205
bool bandMarkersVisible() const
Definition: SpectralPlotWindow.cpp:235
~SpectralPlotWindow()
Definition: SpectralPlotWindow.cpp:55
SpectralPlotWindow(PlotCurve::Units xUnits, QWidget *parent)
This constructs a spectral plot window.
Definition: SpectralPlotWindow.cpp:27
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
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
Units
These are all the possible units for the x or y data in a plot curve.
Definition: PlotCurve.h:54