Isis 3 Programmer Reference
AdvancedStretchDialog.h
1 #ifndef ADVANCEDSTRETCHDIALOG_H
2 #define ADVANCEDSTRETCHDIALOG_H
3 
4 #include <QDialog>
5 
6 class QShowEvent;
7 class QWidget;
8 
9 namespace Isis {
10  class Stretch;
11  class Histogram;
12 };
13 
14 namespace Isis {
15  class AdvancedStretch;
16  class CubeViewport;
17 
29  class AdvancedStretchDialog : public QDialog {
30  Q_OBJECT
31 
32  public:
35 
36  void enableRgbMode(Stretch &redStretch, Histogram &redHist,
37  Stretch &grnStretch, Histogram &grnHist,
38  Stretch &bluStretch, Histogram &bluHist);
39  void updateHistograms(const Histogram &redHist,
40  const Histogram &grnHist,
41  const Histogram &bluHist);
42 
43  void updateForRGBMode(Stretch &redStretch, Histogram &redHist,
44  Stretch &grnStretch, Histogram &grnHist,
45  Stretch &bluStretch, Histogram &bluHist);
46 
47  void enableGrayMode(Stretch &grayStretch,
48  Histogram &grayHist);
49  void updateHistogram(const Histogram &grayHist);
50  bool isRgbMode() const;
51 
56 
62  bool enabled() {
63  return p_enabled;
64  }
65 
71  void enable(bool enable) {
72  p_enabled = enable;
73  }
74 
75  signals:
77  void stretchChanged();
79  void visibilityChanged();
80 
81  public slots:
83 
84  protected slots:
85  void showEvent(QShowEvent *);
86  void hideEvent(QHideEvent *);
87 
88  private:
90 
91  private:
92  bool p_enabled;
97 
98  };
99 };
100 
101 
102 #endif
Stretch getGrayStretch()
This returns the advanced stretch&#39;s stretch for gray.
Stretch getRedStretch()
This returns the advanced stretch&#39;s stretch for red.
Widget to display Isis cubes for qt apps.
Definition: CubeViewport.h:132
AdvancedStretchDialog(QWidget *parent)
This constructs an advanced stretch.
void destroyCurrentStretches()
This cleans up memory from currently displayed advanced stretches.
AdvancedStretch * p_redStretch
Red stretch pane.
Advanced Stretch Dialog.
bool isRgbMode() const
Returns true if the dialog is displaying the RGB advanced stretches.
void showEvent(QShowEvent *)
This is implemented to send a signal when visibility changes.
~AdvancedStretchDialog()
This destroys the advanced stretch dialog.
AdvancedStretch * p_bluStretch
Blue stretch pane.
bool enabled()
Returns true if the advanced stretch is enabled.
Container of a cube histogram.
Definition: Histogram.h:86
Pixel value mapper.
Definition: Stretch.h:72
Advanced Stretch Dialog.
void enableRgbMode(Stretch &redStretch, Histogram &redHist, Stretch &grnStretch, Histogram &grnHist, Stretch &bluStretch, Histogram &bluHist)
This displays RGB advanced stretches.
AdvancedStretch * p_grayStretch
Gray stretch pane.
void enableGrayMode(Stretch &grayStretch, Histogram &grayHist)
This displays a gray advanced stretch.
Stretch getBluStretch()
This returns the advanced stretch&#39;s stretch for blue.
AdvancedStretch * p_grnStretch
Green stretch pane.
void hideEvent(QHideEvent *)
This is implemented to send a signal when visibility changes.
Stretch getGrnStretch()
This returns the advanced stretch&#39;s stretch for green.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void updateHistogram(const Histogram &grayHist)
This calls setHistogram on the gray advanced stretche.
void updateHistograms(const Histogram &redHist, const Histogram &grnHist, const Histogram &bluHist)
This calls setHistogram on all of the advanced stretches.
bool p_enabled
True if advanced stretch should be used.
void visibilityChanged()
Emitted when this dialog is shown or hidden.
void updateForRGBMode(Stretch &redStretch, Histogram &redHist, Stretch &grnStretch, Histogram &grnHist, Stretch &bluStretch, Histogram &bluHist)
Update the stretch and histogram for all the bands for All BandId option.
void updateStretch(CubeViewport *)
This calls setStretch on all applicable advanced stretches.
void stretchChanged()
Emitted when an advanced stretch has changed.
void enable(bool enable)
Sets the enabled state to enable.