This handles arbitrary user-input stretches. More...
#include <ManualStretchType.h>


Signals | |
| void | saveToCube () |
| Emitted when a new Stretch object is available. | |
| void | deleteFromCube () |
| void | stretchChanged () |
| void | loadStretch () |
Public Member Functions | |
| ManualStretchType (const Histogram &, const Stretch &, const QString &name, const QColor &color) | |
| This constructs a manual stretch type. | |
| ~ManualStretchType () | |
| Destructor. | |
| virtual CubeStretch | getStretch () |
| Gets the current CubeStretch for this ManualStretch. | |
| virtual void | setStretch (Stretch) |
| Given an arbitrary stretch, this will re-interpret it, as best as possible, into a manual 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 arbitrary user-input stretches.
This is designed to take any stretch pairs the user wants that we can handle.
| Isis::ManualStretchType::ManualStretchType | ( | const Histogram & | hist, |
| const Stretch & | stretch, | ||
| const QString & | name, | ||
| const QColor & | color ) |
This constructs a manual stretch type.
| hist | |
| stretch | |
| name | |
| color |
References Isis::StretchType::p_mainLayout, Isis::StretchType::p_table, setStretch(), Isis::StretchType::stretchChanged(), Isis::StretchType::StretchType(), and Isis::StretchType::updateTable().
| Isis::ManualStretchType::~ManualStretchType | ( | ) |
Destructor.
|
protectedinherited |
|
signalinherited |
Referenced by StretchType().
|
virtual |
Gets the current CubeStretch for this ManualStretch.
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 manual stretch.
It is required that a stretch that represents a manual 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.
Good thing this is a manual stretch so no interpretation is really needed.
| newStretch | Stretch to interpret |
Implements Isis::StretchType.
References Isis::StretchType::p_stretch, Isis::StretchType::stretchChanged(), Isis::Stretch::Text(), and Isis::StretchType::updateTable().
Referenced by ManualStretchType().
|
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().