1 #include "AdvancedStretch.h" 3 #include <QStackedWidget> 12 #include "StretchType.h" 13 #include "LinearStretchType.h" 14 #include "SawtoothStretchType.h" 15 #include "BinaryStretchType.h" 16 #include "ManualStretchType.h" 29 const QString &name,
const QColor &color) {
30 setLayout(
new QVBoxLayout());
32 setSizePolicy(QSizePolicy::MinimumExpanding,
33 QSizePolicy::MinimumExpanding);
35 typeSelectionArea->setLayout(
new QHBoxLayout());
36 typeSelectionArea->layout()->addWidget(
new QLabel(
"Stretch Type"));
39 stretchTypeSelection->addItem(
"Linear", 0);
40 stretchTypeSelection->addItem(
"Sawtooth", 1);
41 stretchTypeSelection->addItem(
"Binary", 2);
42 stretchTypeSelection->addItem(
"Manual", 3);
44 typeSelectionArea->layout()->addWidget(stretchTypeSelection);
45 layout()->addWidget(typeSelectionArea);
69 connect(stretchTypeSelection, SIGNAL(currentIndexChanged(
int)),
71 connect(stretchTypeSelection, SIGNAL(currentIndexChanged(
int)),
QStackedWidget * p_stretchTypeStack
StretchType's.
AdvancedStretch(Histogram &, const Stretch &, const QString &, const QColor &)
This constructs an advanced stretch.
This handles the advanced sawtooth stretch.
~AdvancedStretch()
Destructor.
void stretchChanged()
Emitted when a new stretch is available.
void setHistogram(const Histogram &newHist)
This is called when the visible area changes, so that the histogram can be updated.
Container of a cube histogram.
virtual void setHistogram(const Histogram &)
This should be called when the visible area changes.
void setStretch(Stretch newStretch)
This is called when the user creates a stretch outside of the advanced stretch.
virtual void setStretch(Stretch)=0
Children must re-implement this to update their stretch pairs and GUI elements appropriately.
Namespace for ISIS/Bullet specific routines.
This is the base class for advanced stretches.
This handles the advanced linear stretch.
This handles the advanced binary stretch.
Stretch getStretch()
This returns the current stretch type's stretch.
This handles arbitrary user-input stretches.