Isis Developer Reference
|
Advanced Stretch Dialog. More...
#include <AdvancedStretchDialog.h>
Public Slots | |
void | updateStretch (CubeViewport *) |
This calls setStretch on all applicable advanced stretches. More... | |
Signals | |
void | stretchChanged () |
Emitted when an advanced stretch has changed. More... | |
void | visibilityChanged () |
Emitted when this dialog is shown or hidden. More... | |
void | saveToCube () |
void | deleteFromCube () |
void | loadStretch () |
Public Member Functions | |
AdvancedStretchDialog (QWidget *parent) | |
This constructs an advanced stretch. More... | |
~AdvancedStretchDialog () | |
This destroys the advanced stretch dialog. More... | |
void | enableRgbMode (Stretch &redStretch, Histogram &redHist, Stretch &grnStretch, Histogram &grnHist, Stretch &bluStretch, Histogram &bluHist) |
This displays RGB advanced stretches. More... | |
void | updateHistograms (const Histogram &redHist, const Histogram &grnHist, const Histogram &bluHist) |
This calls setHistogram on all of the advanced stretches. More... | |
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. More... | |
void | enableGrayMode (Stretch &grayStretch, Histogram &grayHist) |
This displays a gray advanced stretch. More... | |
void | updateHistogram (const Histogram &grayHist) |
This calls setHistogram on the gray advanced stretches. More... | |
bool | isRgbMode () const |
Returns true if the dialog is displaying the RGB advanced stretches. More... | |
void | restoreGrayStretch (CubeStretch stretch) |
Restores a saved grayscale stretch from the cube. More... | |
void | restoreRgbStretch (CubeStretch red, CubeStretch green, CubeStretch blue) |
Restores a saved RGB stretch from the cube. More... | |
CubeStretch | getGrayStretch () |
This returns the advanced stretch's stretch for gray. More... | |
CubeStretch | getRedStretch () |
This returns the advanced stretch's stretch for red. More... | |
CubeStretch | getGrnStretch () |
This returns the advanced stretch's stretch for green. More... | |
CubeStretch | getBluStretch () |
This returns the advanced stretch's stretch for blue. More... | |
bool | enabled () |
Returns true if the advanced stretch is enabled. More... | |
void | enable (bool enable) |
Sets the enabled state to enable. More... | |
Protected Slots | |
void | showEvent (QShowEvent *) |
This is implemented to send a signal when visibility changes. More... | |
void | hideEvent (QHideEvent *) |
This is implemented to send a signal when visibility changes. More... | |
Advanced Stretch Dialog.
Isis::AdvancedStretchDialog::AdvancedStretchDialog | ( | QWidget * | parent | ) |
This constructs an advanced stretch.
parent | the parent widget |
Isis::AdvancedStretchDialog::~AdvancedStretchDialog | ( | ) |
This destroys the advanced stretch dialog.
|
signal |
Referenced by enableGrayMode(), and enableRgbMode().
|
inline |
Sets the enabled state to enable.
enable |
Referenced by Isis::StretchTool::setCubeViewport().
|
inline |
Returns true if the advanced stretch is enabled.
Referenced by Isis::StretchTool::updateTool().
This displays a gray advanced stretch.
grayStretch | |
grayHist |
References deleteFromCube(), loadStretch(), saveToCube(), and stretchChanged().
Referenced by Isis::StretchTool::setCubeViewport().
void Isis::AdvancedStretchDialog::enableRgbMode | ( | Stretch & | redStretch, |
Histogram & | redHist, | ||
Stretch & | grnStretch, | ||
Histogram & | grnHist, | ||
Stretch & | bluStretch, | ||
Histogram & | bluHist | ||
) |
This displays RGB advanced stretches.
redStretch | |
redHist | |
grnStretch | |
grnHist | |
bluStretch | |
bluHist |
References deleteFromCube(), loadStretch(), saveToCube(), and stretchChanged().
Referenced by Isis::StretchTool::setCubeViewport().
CubeStretch Isis::AdvancedStretchDialog::getBluStretch | ( | ) |
This returns the advanced stretch's stretch for blue.
References _FILEINFO_, Isis::AdvancedStretch::getStretch(), and Isis::IException::Programmer.
Referenced by Isis::StretchTool::saveStretchToCube().
CubeStretch Isis::AdvancedStretchDialog::getGrayStretch | ( | ) |
This returns the advanced stretch's stretch for gray.
References _FILEINFO_, Isis::AdvancedStretch::getStretch(), and Isis::IException::Programmer.
Referenced by Isis::StretchTool::saveStretchToCube().
CubeStretch Isis::AdvancedStretchDialog::getGrnStretch | ( | ) |
This returns the advanced stretch's stretch for green.
References _FILEINFO_, Isis::AdvancedStretch::getStretch(), and Isis::IException::Programmer.
Referenced by Isis::StretchTool::saveStretchToCube().
CubeStretch Isis::AdvancedStretchDialog::getRedStretch | ( | ) |
This returns the advanced stretch's stretch for red.
References _FILEINFO_, Isis::AdvancedStretch::getStretch(), and Isis::IException::Programmer.
Referenced by Isis::StretchTool::saveStretchToCube().
|
protectedslot |
This is implemented to send a signal when visibility changes.
event |
References visibilityChanged().
bool Isis::AdvancedStretchDialog::isRgbMode | ( | ) | const |
Returns true if the dialog is displaying the RGB advanced stretches.
Referenced by restoreRgbStretch(), Isis::StretchTool::updateHistograms(), and Isis::StretchTool::updateTool().
|
signal |
Referenced by enableGrayMode(), and enableRgbMode().
void Isis::AdvancedStretchDialog::restoreGrayStretch | ( | CubeStretch | stretch | ) |
Restores a saved grayscale stretch from the cube.
stretch |
References _FILEINFO_, Isis::IException::Programmer, and Isis::AdvancedStretch::restoreSavedStretch().
Referenced by Isis::StretchTool::loadStretchFromCube().
void Isis::AdvancedStretchDialog::restoreRgbStretch | ( | CubeStretch | red, |
CubeStretch | green, | ||
CubeStretch | blue | ||
) |
Restores a saved RGB stretch from the cube.
red | |
green | |
blue |
References _FILEINFO_, isRgbMode(), Isis::IException::Programmer, and Isis::AdvancedStretch::restoreSavedStretch().
Referenced by Isis::StretchTool::loadStretchFromCube().
|
signal |
Referenced by enableGrayMode(), and enableRgbMode().
|
protectedslot |
This is implemented to send a signal when visibility changes.
event |
References visibilityChanged().
|
signal |
Emitted when an advanced stretch has changed.
Referenced by enableGrayMode(), and enableRgbMode().
void Isis::AdvancedStretchDialog::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.
redStretch | - Updated Red Stretch |
redHist | - Updated Red Histogram |
grnStretch | - Updated Green Stretch |
grnHist | - Updated Green Histogram |
bluStretch | - Updated Blue Stretch |
bluHist | - Updated Blue Histogram |
References Isis::AdvancedStretch::setHistogram(), and Isis::AdvancedStretch::setStretch().
Referenced by Isis::StretchTool::updateAdvStretchDialogforAll().
void Isis::AdvancedStretchDialog::updateHistogram | ( | const Histogram & | grayHist | ) |
This calls setHistogram on the gray advanced stretches.
This should be called every time the visible area changes.
grayHist | Histogram of visible area on gray band |
References Isis::AdvancedStretch::setHistogram().
Referenced by Isis::StretchTool::updateHistograms().
void Isis::AdvancedStretchDialog::updateHistograms | ( | const Histogram & | redHist, |
const Histogram & | grnHist, | ||
const Histogram & | bluHist | ||
) |
This calls setHistogram on all of the advanced stretches.
This should be called every time the visible area changes.
redHist | Histogram of visible area on red band |
grnHist | Histogram of visible area on green band |
bluHist | Histogram of visible area on blue band |
References Isis::AdvancedStretch::setHistogram().
Referenced by Isis::StretchTool::updateHistograms().
|
slot |
This calls setStretch on all applicable advanced stretches.
This should be called any time the cube viewport changes.
cvp |
References Isis::CubeViewport::blueStretch(), Isis::CubeViewport::grayStretch(), Isis::CubeViewport::greenStretch(), Isis::CubeViewport::redStretch(), and Isis::AdvancedStretch::setStretch().
|
signal |
Emitted when this dialog is shown or hidden.
Referenced by hideEvent(), and showEvent().