![]()  | 
  
    Isis 3 Programmer Reference
    
   | 
 
Advanced Stretch Dialog. More...
#include <AdvancedStretchDialog.h>


Public Slots | |
| void | updateStretch (CubeViewport *) | 
| This calls setStretch on all applicable advanced stretches.   | |
Signals | |
| void | stretchChanged () | 
| Emitted when an advanced stretch has changed.   | |
| void | visibilityChanged () | 
| Emitted when this dialog is shown or hidden.   | |
| void | saveToCube () | 
| void | deleteFromCube () | 
| void | loadStretch () | 
Public Member Functions | |
| AdvancedStretchDialog (QWidget *parent) | |
| This constructs an advanced stretch.   | |
| ~AdvancedStretchDialog () | |
| This destroys the advanced stretch dialog.   | |
| void | enableRgbMode (Stretch &redStretch, Histogram &redHist, Stretch &grnStretch, Histogram &grnHist, Stretch &bluStretch, Histogram &bluHist) | 
| This displays RGB advanced stretches.   | |
| void | updateHistograms (const Histogram &redHist, const Histogram &grnHist, const Histogram &bluHist) | 
| This calls setHistogram on all of the advanced stretches.   | |
| 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 | enableGrayMode (Stretch &grayStretch, Histogram &grayHist) | 
| This displays a gray advanced stretch.   | |
| void | updateHistogram (const Histogram &grayHist) | 
| This calls setHistogram on the gray advanced stretches.   | |
| bool | isRgbMode () const | 
| Returns true if the dialog is displaying the RGB advanced stretches.   | |
| void | restoreGrayStretch (CubeStretch stretch) | 
| Restores a saved grayscale stretch from the cube.   | |
| void | restoreRgbStretch (CubeStretch red, CubeStretch green, CubeStretch blue) | 
| Restores a saved RGB stretch from the cube.   | |
| CubeStretch | getGrayStretch () | 
| This returns the advanced stretch's stretch for gray.   | |
| CubeStretch | getRedStretch () | 
| This returns the advanced stretch's stretch for red.   | |
| CubeStretch | getGrnStretch () | 
| This returns the advanced stretch's stretch for green.   | |
| CubeStretch | getBluStretch () | 
| This returns the advanced stretch's stretch for blue.   | |
| bool | enabled () | 
| Returns true if the advanced stretch is enabled.   | |
| void | enable (bool enable) | 
| Sets the enabled state to enable.   | |
Protected Slots | |
| void | showEvent (QShowEvent *) | 
| This is implemented to send a signal when visibility changes.   | |
| void | hideEvent (QHideEvent *) | 
| This is implemented to send a signal when visibility changes.   | |
Private Member Functions | |
| void | destroyCurrentStretches () | 
| This cleans up memory from currently displayed advanced stretches.   | |
Private Attributes | |
| bool | p_enabled | 
| True if advanced stretch should be used.   | |
| AdvancedStretch * | p_grayStretch | 
| Gray stretch pane.   | |
| AdvancedStretch * | p_redStretch | 
| Red stretch pane.   | |
| AdvancedStretch * | p_grnStretch | 
| Green stretch pane.   | |
| AdvancedStretch * | p_bluStretch | 
| Blue stretch pane.   | |
Advanced Stretch Dialog.
Definition at line 30 of file AdvancedStretchDialog.h.
| Isis::AdvancedStretchDialog::AdvancedStretchDialog | ( | QWidget * | parent | ) | 
This constructs an advanced stretch.
| parent | the parent widget | 
Definition at line 18 of file AdvancedStretchDialog.cpp.
References p_bluStretch, p_enabled, p_grayStretch, p_grnStretch, and p_redStretch.
| Isis::AdvancedStretchDialog::~AdvancedStretchDialog | ( | ) | 
This destroys the advanced stretch dialog.
Definition at line 37 of file AdvancedStretchDialog.cpp.
References destroyCurrentStretches().
      
  | 
  private | 
This cleans up memory from currently displayed advanced stretches.
No stretches are visible after this is called.
Definition at line 219 of file AdvancedStretchDialog.cpp.
References p_bluStretch, p_grayStretch, p_grnStretch, p_redStretch, and stretchChanged().
Referenced by enableGrayMode(), enableRgbMode(), and ~AdvancedStretchDialog().
      
  | 
  inline | 
Sets the enabled state to enable.
| enable | 
Definition at line 74 of file AdvancedStretchDialog.h.
References enable(), and p_enabled.
Referenced by enable(), and Isis::StretchTool::setCubeViewport().
      
  | 
  inline | 
Returns true if the advanced stretch is enabled.
Definition at line 65 of file AdvancedStretchDialog.h.
References p_enabled.
Referenced by Isis::StretchTool::updateTool().
This displays a gray advanced stretch.
| grayStretch | |
| grayHist | 
Definition at line 151 of file AdvancedStretchDialog.cpp.
References destroyCurrentStretches(), p_grayStretch, 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 | 
Definition at line 52 of file AdvancedStretchDialog.cpp.
References destroyCurrentStretches(), p_bluStretch, p_grnStretch, p_redStretch, and stretchChanged().
Referenced by Isis::StretchTool::setCubeViewport().
| CubeStretch Isis::AdvancedStretchDialog::getBluStretch | ( | ) | 
This returns the advanced stretch's stretch for blue.
Definition at line 398 of file AdvancedStretchDialog.cpp.
References Isis::AdvancedStretch::getStretch(), p_bluStretch, and Isis::IException::Programmer.
Referenced by Isis::StretchTool::advancedStretchChanged(), and Isis::StretchTool::saveStretchToCube().
| CubeStretch Isis::AdvancedStretchDialog::getGrayStretch | ( | ) | 
This returns the advanced stretch's stretch for gray.
Definition at line 350 of file AdvancedStretchDialog.cpp.
References Isis::AdvancedStretch::getStretch(), p_grayStretch, and Isis::IException::Programmer.
Referenced by Isis::StretchTool::advancedStretchChanged(), and Isis::StretchTool::saveStretchToCube().
| CubeStretch Isis::AdvancedStretchDialog::getGrnStretch | ( | ) | 
This returns the advanced stretch's stretch for green.
Definition at line 382 of file AdvancedStretchDialog.cpp.
References Isis::AdvancedStretch::getStretch(), p_grnStretch, and Isis::IException::Programmer.
Referenced by Isis::StretchTool::advancedStretchChanged(), and Isis::StretchTool::saveStretchToCube().
| CubeStretch Isis::AdvancedStretchDialog::getRedStretch | ( | ) | 
This returns the advanced stretch's stretch for red.
Definition at line 366 of file AdvancedStretchDialog.cpp.
References Isis::AdvancedStretch::getStretch(), p_redStretch, and Isis::IException::Programmer.
Referenced by Isis::StretchTool::advancedStretchChanged(), and Isis::StretchTool::saveStretchToCube().
      
  | 
  protectedslot | 
This is implemented to send a signal when visibility changes.
| event | 
Definition at line 328 of file AdvancedStretchDialog.cpp.
References visibilityChanged().
| bool Isis::AdvancedStretchDialog::isRgbMode | ( | ) | const | 
Returns true if the dialog is displaying the RGB advanced stretches.
Definition at line 340 of file AdvancedStretchDialog.cpp.
References p_bluStretch, p_grnStretch, and p_redStretch.
Referenced by Isis::StretchTool::advancedStretchChanged(), restoreRgbStretch(), Isis::StretchTool::updateHistograms(), and Isis::StretchTool::updateTool().
| void Isis::AdvancedStretchDialog::restoreGrayStretch | ( | CubeStretch | stretch | ) | 
Restores a saved grayscale stretch from the cube.
| stretch | 
Definition at line 176 of file AdvancedStretchDialog.cpp.
References p_grayStretch, 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 | 
Definition at line 194 of file AdvancedStretchDialog.cpp.
References isRgbMode(), p_bluStretch, p_grnStretch, p_redStretch, Isis::IException::Programmer, and Isis::AdvancedStretch::restoreSavedStretch().
Referenced by Isis::StretchTool::loadStretchFromCube().
      
  | 
  protectedslot | 
This is implemented to send a signal when visibility changes.
| event | 
Definition at line 317 of file AdvancedStretchDialog.cpp.
References visibilityChanged().
      
  | 
  signal | 
Emitted when an advanced stretch has changed.
Referenced by destroyCurrentStretches(), 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 | 
Definition at line 122 of file AdvancedStretchDialog.cpp.
References p_bluStretch, p_grnStretch, p_redStretch, 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 | 
Definition at line 306 of file AdvancedStretchDialog.cpp.
References p_grayStretch, and 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 | 
Definition at line 284 of file AdvancedStretchDialog.cpp.
References p_bluStretch, p_grnStretch, p_redStretch, and 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 | 
Definition at line 260 of file AdvancedStretchDialog.cpp.
References p_bluStretch, p_grayStretch, p_grnStretch, p_redStretch, and Isis::AdvancedStretch::setStretch().
Referenced by Isis::StretchTool::showAdvancedDialog(), and Isis::StretchTool::stretchChanged().
      
  | 
  signal | 
Emitted when this dialog is shown or hidden.
Referenced by hideEvent(), and showEvent().
      
  | 
  private | 
Blue stretch pane.
Definition at line 102 of file AdvancedStretchDialog.h.
Referenced by AdvancedStretchDialog(), destroyCurrentStretches(), enableRgbMode(), getBluStretch(), isRgbMode(), restoreRgbStretch(), updateForRGBMode(), updateHistograms(), and updateStretch().
      
  | 
  private | 
True if advanced stretch should be used.
Definition at line 98 of file AdvancedStretchDialog.h.
Referenced by AdvancedStretchDialog(), enable(), and enabled().
      
  | 
  private | 
Gray stretch pane.
Definition at line 99 of file AdvancedStretchDialog.h.
Referenced by AdvancedStretchDialog(), destroyCurrentStretches(), enableGrayMode(), getGrayStretch(), restoreGrayStretch(), updateHistogram(), and updateStretch().
      
  | 
  private | 
Green stretch pane.
Definition at line 101 of file AdvancedStretchDialog.h.
Referenced by AdvancedStretchDialog(), destroyCurrentStretches(), enableRgbMode(), getGrnStretch(), isRgbMode(), restoreRgbStretch(), updateForRGBMode(), updateHistograms(), and updateStretch().
      
  | 
  private | 
Red stretch pane.
Definition at line 100 of file AdvancedStretchDialog.h.
Referenced by AdvancedStretchDialog(), destroyCurrentStretches(), enableRgbMode(), getRedStretch(), isRgbMode(), restoreRgbStretch(), updateForRGBMode(), updateHistograms(), and updateStretch().