Isis 3 Programmer Reference
AdvancedStretchDialog.h
1#ifndef ADVANCEDSTRETCHDIALOG_H
2#define ADVANCEDSTRETCHDIALOG_H
3
4#include <QDialog>
5
6class QShowEvent;
7class QWidget;
8
9namespace Isis {
10 class Stretch;
11 class Histogram;
12 class CubeStretch;
13};
14
15namespace Isis {
16 class AdvancedStretch;
17 class CubeViewport;
18
31 Q_OBJECT
32
33 public:
36
37 void enableRgbMode(Stretch &redStretch, Histogram &redHist,
38 Stretch &grnStretch, Histogram &grnHist,
39 Stretch &bluStretch, Histogram &bluHist);
40 void updateHistograms(const Histogram &redHist,
41 const Histogram &grnHist,
42 const Histogram &bluHist);
43
44 void updateForRGBMode(Stretch &redStretch, Histogram &redHist,
45 Stretch &grnStretch, Histogram &grnHist,
46 Stretch &bluStretch, Histogram &bluHist);
47
48 void enableGrayMode(Stretch &grayStretch,
49 Histogram &grayHist);
50 void updateHistogram(const Histogram &grayHist);
51 bool isRgbMode() const;
52 void restoreGrayStretch(CubeStretch stretch);
54
59
65 bool enabled() {
66 return p_enabled;
67 }
68
74 void enable(bool enable) {
76 }
77
78 signals:
83 void saveToCube();
84 void deleteFromCube();
85 void loadStretch();
86
87 public slots:
89
90 protected slots:
91 void showEvent(QShowEvent *);
92 void hideEvent(QHideEvent *);
93
94 private:
96
97 private:
98 bool p_enabled;
103
104 };
105};
106
107
108#endif
AdvancedStretch * p_bluStretch
Blue stretch pane.
CubeStretch getBluStretch()
This returns the advanced stretch's stretch for blue.
void updateHistograms(const Histogram &redHist, const Histogram &grnHist, const Histogram &bluHist)
This calls setHistogram on all of the advanced stretches.
void enable(bool enable)
Sets the enabled state to enable.
void restoreGrayStretch(CubeStretch stretch)
Restores a saved grayscale stretch from the cube.
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.
~AdvancedStretchDialog()
This destroys the advanced stretch dialog.
void updateHistogram(const Histogram &grayHist)
This calls setHistogram on the gray advanced stretches.
void enableRgbMode(Stretch &redStretch, Histogram &redHist, Stretch &grnStretch, Histogram &grnHist, Stretch &bluStretch, Histogram &bluHist)
This displays RGB advanced stretches.
CubeStretch getGrnStretch()
This returns the advanced stretch's stretch for green.
CubeStretch getGrayStretch()
This returns the advanced stretch's stretch for gray.
CubeStretch getRedStretch()
This returns the advanced stretch's stretch for red.
bool isRgbMode() const
Returns true if the dialog is displaying the RGB advanced stretches.
void destroyCurrentStretches()
This cleans up memory from currently displayed advanced stretches.
void hideEvent(QHideEvent *)
This is implemented to send a signal when visibility changes.
bool enabled()
Returns true if the advanced stretch is enabled.
void visibilityChanged()
Emitted when this dialog is shown or hidden.
void restoreRgbStretch(CubeStretch red, CubeStretch green, CubeStretch blue)
Restores a saved RGB stretch from the cube.
AdvancedStretch * p_grnStretch
Green stretch pane.
void updateStretch(CubeViewport *)
This calls setStretch on all applicable advanced stretches.
AdvancedStretch * p_grayStretch
Gray stretch pane.
AdvancedStretchDialog(QWidget *parent)
This constructs an advanced stretch.
void showEvent(QShowEvent *)
This is implemented to send a signal when visibility changes.
void enableGrayMode(Stretch &grayStretch, Histogram &grayHist)
This displays a gray advanced stretch.
bool p_enabled
True if advanced stretch should be used.
AdvancedStretch * p_redStretch
Red stretch pane.
void stretchChanged()
Emitted when an advanced stretch has changed.
Advanced Stretch Dialog.
Stores stretch information for a cube.
Definition CubeStretch.h:27
Widget to display Isis cubes for qt apps.
Container of a cube histogram.
Definition Histogram.h:74
Pixel value mapper.
Definition Stretch.h:58
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16