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, setStretch(), and Isis::StretchType::StretchType().
| Isis::BinaryStretchType::~BinaryStretchType | ( | ) |
Destroys the binary stretch.
|
protectedinherited |
|
signalinherited |
Referenced by StretchType().
|
virtual |
Gets the CubeStretch for this Binary Stretch.
Reimplemented from Isis::StretchType.
References Isis::StretchType::p_stretch.
|
signalinherited |
Referenced by StretchType().
|
signalinherited |
Emitted when a new Stretch object is available.
Referenced by 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 p_cubeHist, p_graph, p_stretch, and setStretch().
Referenced by Isis::AdvancedStretch::setHistogram().
|
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::Stretch::CopyPairs(), Isis::Stretch::Input(), Isis::Stretch::Output(), Isis::StretchType::p_cubeHist, Isis::StretchType::p_stretch, Isis::Stretch::Pairs(), Isis::StretchType::stretchChanged(), and Isis::Stretch::Text().
Referenced by BinaryStretchType().
|
signalinherited |
|
protectedslotinherited |
This updates the graph with the current stretch object.
References p_graph, and p_stretch.
Referenced by StretchType().
|
protectedslotinherited |
This updates the table with the current stretch pairs.
References getStretch(), Isis::Stretch::Input(), Isis::Stretch::Output(), p_table, and Isis::Stretch::Pairs().
Referenced by Isis::ManualStretchType::ManualStretchType(), Isis::ManualStretchType::setStretch(), and StretchType().
|
protectedinherited |
Visible area histogram.
Referenced by Isis::BinaryStretchType::BinaryStretchType(), Isis::SawtoothStretchType::SawtoothStretchType(), setHistogram(), Isis::BinaryStretchType::setStretch(), Isis::LinearStretchType::setStretch(), Isis::SawtoothStretchType::setStretch(), StretchType(), and ~StretchType().
|
protectedinherited |
Histogram graph.
Referenced by setHistogram(), StretchType(), and updateGraph().
|
protectedinherited |
|
protectedinherited |
Current stretch pairs stored here.
Referenced by Isis::BinaryStretchType::getStretch(), Isis::LinearStretchType::getStretch(), Isis::ManualStretchType::getStretch(), Isis::SawtoothStretchType::getStretch(), getStretch(), setHistogram(), Isis::BinaryStretchType::setStretch(), Isis::LinearStretchType::setStretch(), Isis::ManualStretchType::setStretch(), Isis::SawtoothStretchType::setStretch(), StretchType(), updateGraph(), and ~StretchType().
|
protectedinherited |
Pairs table.
Referenced by Isis::ManualStretchType::ManualStretchType(), StretchType(), and updateTable().