Isis Developer Reference
AdvancedStretch.h
Go to the documentation of this file.
1 #ifndef ADVANCEDSTRETCH_H
2 #define ADVANCEDSTRETCH_H
3 
4 #include <QWidget>
5 
6 class QStackedWidget;
7 class QComboBox;
8 class QLayout;
9 class QString;
10 class QColor;
11 
12 namespace Isis {
13  class AdvancedStretch;
14  class CubeViewport;
15  class Histogram;
16  class Stretch;
17  class CubeStretch;
18 
32  class AdvancedStretch : public QWidget {
33  Q_OBJECT
34 
35  public:
37  const QString &, const QColor &);
40  void setStretch(Stretch newStretch);
41  void restoreSavedStretch(CubeStretch newStretch);
42  void setHistogram(const Histogram &newHist);
43 
44  signals:
47  void saveToCube();
49  void loadStretch();
50 
51  private:
52  QStackedWidget *p_stretchTypeStack;
53  QComboBox *p_stretchTypeSelection;
54  };
55 };
56 
57 
58 #endif
59 
Isis::AdvancedStretch
Advanced Stretch Dialog.
Definition: AdvancedStretch.h:32
Stretch.h
Isis::StretchType::setHistogram
virtual void setHistogram(const Histogram &)
This should be called when the visible area changes.
Definition: StretchType.cpp:109
QWidget
Isis::AdvancedStretch::AdvancedStretch
AdvancedStretch(Histogram &, const Stretch &, const QString &, const QColor &)
This constructs an advanced stretch.
Definition: AdvancedStretch.cpp:29
Isis::StretchType::setStretch
virtual void setStretch(Stretch)=0
Children must re-implement this to update their stretch pairs and GUI elements appropriately.
BinaryStretchType.h
CubeStretch.h
Isis::Stretch
Pixel value mapper.
Definition: Stretch.h:58
Isis::SawtoothStretchType
This handles the advanced sawtooth stretch.
Definition: SawtoothStretchType.h:33
Isis::AdvancedStretch::getStretch
CubeStretch getStretch()
This returns the current stretch type's stretch.
Definition: AdvancedStretch.cpp:102
LinearStretchType.h
Isis::AdvancedStretch::setHistogram
void setHistogram(const Histogram &newHist)
This is called when the visible area changes, so that the histogram can be updated.
Definition: AdvancedStretch.cpp:158
Isis::AdvancedStretch::stretchChanged
void stretchChanged()
Emitted when a new stretch is available.
Isis::AdvancedStretch::restoreSavedStretch
void restoreSavedStretch(CubeStretch newStretch)
Used to restore a saved Stretch from a cube.
Definition: AdvancedStretch.cpp:129
Isis::StretchType
This is the base class for advanced stretches.
Definition: StretchType.h:39
AdvancedStretch.h
Isis::CubeStretch
Stores stretch information for a cube.
Definition: CubeStretch.h:27
IString.h
Isis::ManualStretchType
This handles arbitrary user-input stretches.
Definition: ManualStretchType.h:32
QComboBox
Isis::LinearStretchType
This handles the advanced linear stretch.
Definition: LinearStretchType.h:29
Isis::BinaryStretchType
This handles the advanced binary stretch.
Definition: BinaryStretchType.h:30
Isis::AdvancedStretch::loadStretch
void loadStretch()
SawtoothStretchType.h
ManualStretchType.h
StretchType.h
Isis::AdvancedStretch::~AdvancedStretch
~AdvancedStretch()
Destructor.
Definition: AdvancedStretch.cpp:93
Isis::AdvancedStretch::deleteFromCube
void deleteFromCube()
IException.h
Isis::Histogram
Container of a cube histogram.
Definition: Histogram.h:74
Isis::AdvancedStretch::saveToCube
void saveToCube()
Isis::AdvancedStretch::setStretch
void setStretch(Stretch newStretch)
This is called when the user creates a stretch outside of the advanced stretch.
Definition: AdvancedStretch.cpp:115
Isis::CubeStretch::getType
QString getType() const
Get the Type of Stretch.
Definition: CubeStretch.cpp:115
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16