USGS

Isis 3.0 Object Programmers' Reference

Home

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.
 

Public Member Functions

 AdvancedStretch (Histogram &, const Stretch &, const QString &, const QColor &)
 This constructs an advanced stretch.
 
 ~AdvancedStretch ()
 Destructor.
 
Stretch 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 setHistogram (const Histogram &newHist)
 This is called when the visible area changes, so that the histogram can be updated.
 

Private Attributes

QStackedWidget * p_stretchTypeStack
 StretchType's.
 

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

Definition at line 30 of file AdvancedStretch.h.

Constructor & Destructor Documentation

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

Definition at line 27 of file AdvancedStretch.cpp.

References p_stretchTypeStack, and stretchChanged().

Isis::AdvancedStretch::~AdvancedStretch ( )

Destructor.

Definition at line 79 of file AdvancedStretch.cpp.

Member Function Documentation

Stretch Isis::AdvancedStretch::getStretch ( )
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

Definition at line 116 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.

Parameters
newStretch

Definition at line 101 of file AdvancedStretch.cpp.

References p_stretchTypeStack, and Isis::StretchType::setStretch().

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

void Isis::AdvancedStretch::stretchChanged ( )
signal

Emitted when a new stretch is available.

Referenced by AdvancedStretch().

Member Data Documentation

QStackedWidget* Isis::AdvancedStretch::p_stretchTypeStack
private

StretchType's.

Definition at line 48 of file AdvancedStretch.h.

Referenced by AdvancedStretch(), getStretch(), setHistogram(), and setStretch().


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