Isis 3 Developer Reference
AdvancedStretchDialog.h
Go to the documentation of this file.
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:
89  void destroyCurrentStretches();
90 
91  private:
92  bool p_enabled;
93  AdvancedStretch *p_grayStretch;
94  AdvancedStretch *p_redStretch;
95  AdvancedStretch *p_grnStretch;
96  AdvancedStretch *p_bluStretch;
97 
98  };
99 };
100 
101 
102 #endif
Stretch getGrayStretch()
This returns the advanced stretch&#39;s stretch for gray.
Definition: AdvancedStretchDialog.cpp:265
Stretch getRedStretch()
This returns the advanced stretch&#39;s stretch for red.
Definition: AdvancedStretchDialog.cpp:281
Widget to display Isis cubes for qt apps.
Definition: CubeViewport.h:132
AdvancedStretchDialog(QWidget *parent)
This constructs an advanced stretch.
Definition: AdvancedStretchDialog.cpp:16
Advanced Stretch Dialog.
Definition: AdvancedStretchDialog.h:29
bool isRgbMode() const
Returns true if the dialog is displaying the RGB advanced stretches.
Definition: AdvancedStretchDialog.cpp:255
void showEvent(QShowEvent *)
This is implemented to send a signal when visibility changes.
Definition: AdvancedStretchDialog.cpp:232
~AdvancedStretchDialog()
This destroys the advanced stretch dialog.
Definition: AdvancedStretchDialog.cpp:32
bool enabled()
Returns true if the advanced stretch is enabled.
Definition: AdvancedStretchDialog.h:62
Container of a cube histogram.
Definition: Histogram.h:86
Pixel value mapper.
Definition: Stretch.h:72
Advanced Stretch Dialog.
Definition: AdvancedStretch.h:30
void enableRgbMode(Stretch &redStretch, Histogram &redHist, Stretch &grnStretch, Histogram &grnHist, Stretch &bluStretch, Histogram &bluHist)
This displays RGB advanced stretches.
Definition: AdvancedStretchDialog.cpp:47
void enableGrayMode(Stretch &grayStretch, Histogram &grayHist)
This displays a gray advanced stretch.
Definition: AdvancedStretchDialog.cpp:116
Stretch getBluStretch()
This returns the advanced stretch&#39;s stretch for blue.
Definition: AdvancedStretchDialog.cpp:313
void hideEvent(QHideEvent *)
This is implemented to send a signal when visibility changes.
Definition: AdvancedStretchDialog.cpp:243
Stretch getGrnStretch()
This returns the advanced stretch&#39;s stretch for green.
Definition: AdvancedStretchDialog.cpp:297
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void updateHistogram(const Histogram &grayHist)
This calls setHistogram on the gray advanced stretche.
Definition: AdvancedStretchDialog.cpp:221
void updateHistograms(const Histogram &redHist, const Histogram &grnHist, const Histogram &bluHist)
This calls setHistogram on all of the advanced stretches.
Definition: AdvancedStretchDialog.cpp:199
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.
Definition: AdvancedStretchDialog.cpp:87
void updateStretch(CubeViewport *)
This calls setStretch on all applicable advanced stretches.
Definition: AdvancedStretchDialog.cpp:175
void stretchChanged()
Emitted when an advanced stretch has changed.
void enable(bool enable)
Sets the enabled state to enable.
Definition: AdvancedStretchDialog.h:71