Isis 3 Programmer Reference
|
Advanced Stretch Dialog. More...
#include <AdvancedStretch.h>
Signals | |
void | stretchChanged () |
Emitted when a new stretch is available. More... | |
void | saveToCube () |
void | deleteFromCube () |
void | loadStretch () |
Public Member Functions | |
AdvancedStretch (Histogram &, const Stretch &, const QString &, const QColor &) | |
This constructs an advanced stretch. More... | |
~AdvancedStretch () | |
Destructor. More... | |
CubeStretch | getStretch () |
This returns the current stretch type's stretch. More... | |
void | setStretch (Stretch newStretch) |
This is called when the user creates a stretch outside of the advanced stretch. More... | |
void | restoreSavedStretch (CubeStretch newStretch) |
Used to restore a saved Stretch from a cube. More... | |
void | setHistogram (const Histogram &newHist) |
This is called when the visible area changes, so that the histogram can be updated. More... | |
Private Attributes | |
QStackedWidget * | p_stretchTypeStack |
StretchType's. More... | |
QComboBox * | p_stretchTypeSelection |
ComboBox of StretchTypes. More... | |
Advanced Stretch Dialog.
This class is one of the panes on the advanced stretch dialog (gray, red, green or blue). This contains advanced stretch types of each kind and a selection between them.
Definition at line 32 of file AdvancedStretch.h.
Isis::AdvancedStretch::AdvancedStretch | ( | Histogram & | hist, |
const Stretch & | curStretch, | ||
const QString & | name, | ||
const QColor & | color | ||
) |
This constructs an advanced stretch.
hist | Current histogram of visible area |
curStretch | Current stretch |
name | Graph name |
color | Graph color |
Definition at line 29 of file AdvancedStretch.cpp.
References p_stretchTypeSelection, p_stretchTypeStack, and stretchChanged().
Isis::AdvancedStretch::~AdvancedStretch | ( | ) |
Destructor.
Definition at line 93 of file AdvancedStretch.cpp.
CubeStretch Isis::AdvancedStretch::getStretch | ( | ) |
This returns the current stretch type's stretch.
Definition at line 102 of file AdvancedStretch.cpp.
References p_stretchTypeStack.
Referenced by Isis::AdvancedStretchDialog::getBluStretch(), Isis::AdvancedStretchDialog::getGrayStretch(), Isis::AdvancedStretchDialog::getGrnStretch(), and Isis::AdvancedStretchDialog::getRedStretch().
void Isis::AdvancedStretch::restoreSavedStretch | ( | CubeStretch | newStretch | ) |
Used to restore a saved Stretch from a cube.
This function is distinct from setStretch in that setStretch deliberately does not change the stretch type, and this function does change the stretch type.
newStretch | saved stretch to restore |
Definition at line 129 of file AdvancedStretch.cpp.
References Isis::CubeStretch::getType(), and p_stretchTypeSelection.
Referenced by Isis::AdvancedStretchDialog::restoreGrayStretch(), and Isis::AdvancedStretchDialog::restoreRgbStretch().
void Isis::AdvancedStretch::setHistogram | ( | const Histogram & | newHist | ) |
This is called when the visible area changes, so that the histogram can be updated.
It is essential that the stretch doesn't really change in this, or zooming will affect the stretch.
newHist |
Definition at line 158 of file AdvancedStretch.cpp.
References p_stretchTypeStack, and Isis::StretchType::setHistogram().
Referenced by Isis::AdvancedStretchDialog::updateForRGBMode(), Isis::AdvancedStretchDialog::updateHistogram(), and Isis::AdvancedStretchDialog::updateHistograms().
void Isis::AdvancedStretch::setStretch | ( | Stretch | newStretch | ) |
This is called when the user creates a stretch outside of the advanced stretch.
For example, they do a global stretch. The advanced stretch will be given this stretch and a chance to re-interpret it.
newStretch |
Definition at line 115 of file AdvancedStretch.cpp.
References p_stretchTypeStack, and Isis::StretchType::setStretch().
Referenced by Isis::AdvancedStretchDialog::updateForRGBMode(), and Isis::AdvancedStretchDialog::updateStretch().
|
signal |
Emitted when a new stretch is available.
Referenced by AdvancedStretch().
|
private |
ComboBox of StretchTypes.
Definition at line 53 of file AdvancedStretch.h.
Referenced by AdvancedStretch(), and restoreSavedStretch().
|
private |
StretchType's.
Definition at line 52 of file AdvancedStretch.h.
Referenced by AdvancedStretch(), getStretch(), setHistogram(), and setStretch().