Isis Developer Reference
|
This handles the advanced linear stretch. More...
#include <LinearStretchType.h>
Signals | |
void | saveToCube () |
Emitted when a new Stretch object is available. | |
void | deleteFromCube () |
void | stretchChanged () |
void | loadStretch () |
Public Member Functions | |
LinearStretchType (const Histogram &, const Stretch &, const QString &name, const QColor &color) | |
This constructs a linear stretch type. | |
~LinearStretchType () | |
Destructor. | |
virtual CubeStretch | getStretch () |
Returns the CubeStretch for this LinearStretch. | |
virtual void | setStretch (Stretch) |
Given an arbitrary stretch, this will re-interpret it, as best as possible, into a linear stretch. | |
virtual void | setHistogram (const Histogram &) |
This should be called when the visible area changes. | |
Protected Slots | |
void | updateGraph () |
This updates the graph with the current stretch object. | |
void | updateTable () |
This updates the table with the current stretch pairs. | |
Protected Member Functions | |
QTableWidget * | createStretchTable () |
This creates the stretch pairs table. | |
Protected Attributes | |
QGridLayout * | p_mainLayout |
Main layout. | |
Histogram * | p_cubeHist |
Visible area histogram. | |
QTableWidget * | p_table |
Pairs table. | |
HistogramWidget * | p_graph |
Histogram graph. | |
Stretch * | p_stretch |
Current stretch pairs stored here. | |
This handles the advanced linear stretch.
The linear stretch is what happens without the advanced stretch tool. This is useful for visualizing and making adjustments of the linear stretch with a histogram of the data.
Isis::LinearStretchType::LinearStretchType | ( | const Histogram & | hist, |
const Stretch & | stretch, | ||
const QString & | name, | ||
const QColor & | color ) |
This constructs a linear stretch type.
hist | |
stretch | |
name | |
color |
References Isis::StretchType::p_mainLayout, and setStretch().
Isis::LinearStretchType::~LinearStretchType | ( | ) |
Destructor.
|
protectedinherited |
This creates the stretch pairs table.
Referenced by Isis::StretchType::StretchType().
|
signalinherited |
Referenced by Isis::StretchType::StretchType().
|
virtual |
Returns the CubeStretch for this LinearStretch.
Reimplemented from Isis::StretchType.
References Isis::StretchType::p_stretch.
|
signalinherited |
Referenced by Isis::StretchType::StretchType().
|
signalinherited |
Emitted when a new Stretch object is available.
Referenced by Isis::StretchType::StretchType().
|
virtualinherited |
This should be called when the visible area changes.
It updates the graph and calls setStretch() so that the children have a chance to update their GUI elements too.
hist |
References Isis::StretchType::p_cubeHist, Isis::StretchType::p_graph, Isis::StretchType::p_stretch, Isis::HistogramWidget::setHistogram(), and Isis::StretchType::setStretch().
|
virtual |
Given an arbitrary stretch, this will re-interpret it, as best as possible, into a linear stretch.
It is required that a stretch that represents a linear stretch always translate into itself and does not cause a stretchChanged().
It is necessary to always update slider positions in this method even if the stretch did not change.
newStretch | Stretch to interpret |
Implements Isis::StretchType.
References Isis::Statistics::BestMaximum(), Isis::Statistics::BestMinimum(), Isis::Histogram::BinSize(), Isis::Stretch::CopyPairs(), Isis::Stretch::Input(), Isis::StretchType::p_cubeHist, Isis::StretchType::p_stretch, Isis::StretchType::stretchChanged(), and Isis::Stretch::Text().
Referenced by LinearStretchType().
|
signalinherited |
|
protectedslotinherited |
This updates the graph with the current stretch object.
References Isis::StretchType::p_graph, Isis::StretchType::p_stretch, and Isis::HistogramWidget::setStretch().
Referenced by Isis::StretchType::StretchType().
|
protectedslotinherited |
This updates the table with the current stretch pairs.
References Isis::StretchType::getStretch(), Isis::Stretch::Input(), Isis::Stretch::Output(), Isis::StretchType::p_table, and Isis::Stretch::Pairs().
Referenced by Isis::ManualStretchType::ManualStretchType(), Isis::ManualStretchType::setStretch(), and Isis::StretchType::StretchType().
|
protectedinherited |
Visible area histogram.
Referenced by Isis::BinaryStretchType::BinaryStretchType(), Isis::SawtoothStretchType::SawtoothStretchType(), Isis::StretchType::setHistogram(), Isis::BinaryStretchType::setStretch(), setStretch(), Isis::SawtoothStretchType::setStretch(), Isis::StretchType::StretchType(), and Isis::StretchType::~StretchType().
|
protectedinherited |
Histogram graph.
Referenced by Isis::StretchType::setHistogram(), Isis::StretchType::StretchType(), and Isis::StretchType::updateGraph().
|
protectedinherited |
|
protectedinherited |
Current stretch pairs stored here.
Referenced by Isis::BinaryStretchType::getStretch(), getStretch(), Isis::ManualStretchType::getStretch(), Isis::SawtoothStretchType::getStretch(), Isis::StretchType::getStretch(), Isis::StretchType::setHistogram(), Isis::BinaryStretchType::setStretch(), setStretch(), Isis::ManualStretchType::setStretch(), Isis::SawtoothStretchType::setStretch(), Isis::StretchType::StretchType(), Isis::StretchType::updateGraph(), and Isis::StretchType::~StretchType().
|
protectedinherited |
Pairs table.
Referenced by Isis::ManualStretchType::ManualStretchType(), Isis::StretchType::StretchType(), and Isis::StretchType::updateTable().