1 #include "AdvancedStretchDialog.h" 8 #include "AdvancedStretch.h" 24 QHBoxLayout *layout =
new QHBoxLayout();
54 "Red", QColor(Qt::red));
58 "Green", QColor(Qt::green));
62 "Blue", QColor(Qt::blue));
121 "Gray", QColor(Qt::gray));
233 QDialog::showEvent(event);
244 QDialog::hideEvent(event);
270 QString msg =
"Gray mode not enabled, cannot get gray stretch";
286 QString msg =
"RGB mode not enabled, cannot get red stretch";
302 QString msg =
"RGB mode not enabled, cannot get green stretch";
318 QString msg =
"RGB mode not enabled, cannot get blue stretch";
Stretch redStretch() const
Return the red band stretch.
Stretch greenStretch() const
Return the green band stretch.
Stretch getGrayStretch()
This returns the advanced stretch's stretch for gray.
Stretch getRedStretch()
This returns the advanced stretch's stretch for red.
Widget to display Isis cubes for qt apps.
AdvancedStretchDialog(QWidget *parent)
This constructs an advanced stretch.
void setHistogram(const Histogram &newHist)
This is called when the visible area changes, so that the histogram can be updated.
This error is for when a programmer made an API call that was illegal.
void destroyCurrentStretches()
This cleans up memory from currently displayed advanced stretches.
AdvancedStretch * p_redStretch
Red stretch pane.
Stretch grayStretch() const
Return the gray band stretch.
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.
Container of a cube histogram.
#define _FILEINFO_
Macro for the filename and line number.
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's stretch for blue.
AdvancedStretch * p_grnStretch
Green stretch pane.
void setStretch(Stretch newStretch)
This is called when the user creates a stretch outside of the advanced stretch.
void hideEvent(QHideEvent *)
This is implemented to send a signal when visibility changes.
Stretch getGrnStretch()
This returns the advanced stretch's stretch for green.
Namespace for ISIS/Bullet specific routines.
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.
Stretch getStretch()
This returns the current stretch type's stretch.
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.
Stretch blueStretch() const
Return the blue band stretch.
void updateStretch(CubeViewport *)
This calls setStretch on all applicable advanced stretches.
void stretchChanged()
Emitted when an advanced stretch has changed.