An official website of the United States government
Here’s how you know
Official websites use .gov
A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS
A
lock
( ) or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
Isis Developer Reference
|
Advanced Stretch Dialog. More...
#include <AdvancedStretch.h>
Signals | |
void | stretchChanged () |
Emitted when a new stretch is available. | |
void | saveToCube () |
void | deleteFromCube () |
void | loadStretch () |
Public Member Functions | |
AdvancedStretch (Histogram &, const Stretch &, const QString &, const QColor &) | |
This constructs an advanced stretch. | |
~AdvancedStretch () | |
Destructor. | |
CubeStretch | getStretch () |
This returns the current stretch type's stretch. | |
void | setStretch (Stretch newStretch) |
This is called when the user creates a stretch outside of the advanced stretch. | |
void | restoreSavedStretch (CubeStretch newStretch) |
Used to restore a saved Stretch from a cube. | |
void | setHistogram (const Histogram &newHist) |
This is called when the visible area changes, so that the histogram can be updated. | |
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.
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 |
References deleteFromCube(), loadStretch(), saveToCube(), and stretchChanged().
Isis::AdvancedStretch::~AdvancedStretch | ( | ) |
Destructor.
|
signal |
Referenced by AdvancedStretch().
CubeStretch Isis::AdvancedStretch::getStretch | ( | ) |
This returns the current stretch type's stretch.
|
signal |
Referenced by AdvancedStretch().
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 |
References Isis::CubeStretch::getType().
|
signal |
Referenced by AdvancedStretch().
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 |
References Isis::StretchType::setHistogram().
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 |
References Isis::StretchType::setStretch().
|
signal |
Emitted when a new stretch is available.
Referenced by AdvancedStretch().