Isis 3 Programmer 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 
69  QwtPlotMarker *m_grayBandLine;
71  QwtPlotMarker *m_redBandLine;
73  QwtPlotMarker *m_greenBandLine;
75  QwtPlotMarker *m_blueBandLine;
78  };
79 };
80 
81 #endif
Cube display widget for certain Isis MDI applications.
QAction * m_showHideBandMarkers
This action toggles band marker visibility.
void update(MdiCubeViewport *activeViewport)
This window can show markers for the currently visible bands.
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_grayBandLine
The band marker for the gray band.
void setBandMarkersVisible(bool visible)
QwtPlotMarker * m_redBandLine
The band marker for the red band.
QwtPlotMarker * m_blueBandLine
The band marker for the blue band.
SpectralPlotWindow(PlotCurve::Units xUnits, QWidget *parent)
This constructs a spectral plot window.
void drawBandMarkers()
This method actually draws in the vertical band line(s) on the plot area.
bool m_markersVisible
True if the visibile state of the active markers should be true.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
MdiCubeViewport * m_cvp
The viewport to be used as a reference for band markers.
void nullify()
This initializes the class member data to NULL.
QwtPlotMarker * m_greenBandLine
The band marker for the green 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...
Units
These are all the possible units for the x or y data in a plot curve.
Definition: PlotCurve.h:54