Isis Developer Reference
|
This handles the advanced binary stretch. More...
#include <BinaryStretchType.h>
Signals | |
void | saveToCube () |
Emitted when a new Stretch object is available. | |
void | deleteFromCube () |
void | stretchChanged () |
void | loadStretch () |
Public Member Functions | |
BinaryStretchType (const Histogram &, const Stretch &, const QString &name, const QColor &color) | |
This constructs a binary stretch type. | |
~BinaryStretchType () | |
Destroys the binary stretch. | |
virtual CubeStretch | getStretch () |
Gets the CubeStretch for this Binary Stretch. | |
virtual void | setStretch (Stretch) |
Given an arbitrary stretch, this will re-interpret it, as best as possible, into a binary 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 binary stretch.
The binary stretch consists off DNs being "ON" or "OFF" (0 or 255). This is useful for finding DNs in a certain range. Because all stretches consist of lines with a slope, we can't actually have a binary stretch. This, however, makes a stretch as close to binary as it can.
Isis::BinaryStretchType::BinaryStretchType | ( | const Histogram & | hist, |
const Stretch & | stretch, | ||
const QString & | name, | ||
const QColor & | color ) |
This constructs a binary stretch type.
hist | |
stretch | |
name | |
color |
References Isis::StretchType::p_cubeHist, Isis::StretchType::p_mainLayout, Isis::Histogram::Percent(), and setStretch().
Isis::BinaryStretchType::~BinaryStretchType | ( | ) |
Destroys the binary stretch.
|
protectedinherited |
This creates the stretch pairs table.
Referenced by Isis::StretchType::StretchType().
|
signalinherited |
Referenced by Isis::StretchType::StretchType().
|
virtual |
Gets the CubeStretch for this Binary Stretch.
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 binary stretch.
It is required that a stretch that represents a binary 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::Stretch::AddPair(), Isis::Histogram::BinSize(), Isis::Stretch::CopyPairs(), Isis::Statistics::Maximum(), Isis::Statistics::Minimum(), Isis::StretchType::p_cubeHist, Isis::StretchType::p_stretch, Isis::StretchType::stretchChanged(), and Isis::Stretch::Text().
Referenced by BinaryStretchType().
|
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 BinaryStretchType(), Isis::SawtoothStretchType::SawtoothStretchType(), Isis::StretchType::setHistogram(), setStretch(), Isis::LinearStretchType::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 getStretch(), Isis::LinearStretchType::getStretch(), Isis::ManualStretchType::getStretch(), Isis::SawtoothStretchType::getStretch(), Isis::StretchType::getStretch(), Isis::StretchType::setHistogram(), setStretch(), Isis::LinearStretchType::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().