Isis Developer Reference
Isis::AdvancedStretch Class Reference

Advanced Stretch Dialog. More...

#include <AdvancedStretch.h>

Inheritance diagram for Isis::AdvancedStretch:
Inheritance graph
Collaboration diagram for Isis::AdvancedStretch:
Collaboration graph

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...
 

Detailed Description

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.

Author
2010-05-20 Steven Lambright

Constructor & Destructor Documentation

◆ AdvancedStretch()

Isis::AdvancedStretch::AdvancedStretch ( Histogram hist,
const Stretch curStretch,
const QString &  name,
const QColor &  color 
)

This constructs an advanced stretch.

Parameters
histCurrent histogram of visible area
curStretchCurrent stretch
nameGraph name
colorGraph color

References deleteFromCube(), loadStretch(), saveToCube(), and stretchChanged().

◆ ~AdvancedStretch()

Isis::AdvancedStretch::~AdvancedStretch ( )

Destructor.

Member Function Documentation

◆ deleteFromCube

void Isis::AdvancedStretch::deleteFromCube ( )
signal

Referenced by AdvancedStretch().

◆ getStretch()

◆ loadStretch

void Isis::AdvancedStretch::loadStretch ( )
signal

Referenced by AdvancedStretch().

◆ restoreSavedStretch()

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.

Parameters
newStretchsaved stretch to restore

References Isis::CubeStretch::getType().

Referenced by Isis::AdvancedStretchDialog::restoreGrayStretch(), and Isis::AdvancedStretchDialog::restoreRgbStretch().

◆ saveToCube

void Isis::AdvancedStretch::saveToCube ( )
signal

Referenced by AdvancedStretch().

◆ setHistogram()

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.

Parameters
newHist

References Isis::StretchType::setHistogram().

Referenced by Isis::AdvancedStretchDialog::updateForRGBMode(), Isis::AdvancedStretchDialog::updateHistogram(), and Isis::AdvancedStretchDialog::updateHistograms().

◆ setStretch()

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.

Parameters
newStretch

References Isis::StretchType::setStretch().

Referenced by Isis::AdvancedStretchDialog::updateForRGBMode(), and Isis::AdvancedStretchDialog::updateStretch().

◆ stretchChanged

void Isis::AdvancedStretch::stretchChanged ( )
signal

Emitted when a new stretch is available.

Referenced by AdvancedStretch().


The documentation for this class was generated from the following files: