Isis 3 Programmer Reference
ManualStretchType.h
1 #ifndef ManualStretchType_H
2 #define ManualStretchType_H
3 
4 #include "StretchType.h"
5 
6 class QColor;
7 class QLabel;
8 class QLineEdit;
9 class QPushButton;
10 class QSlider;
11 class QString;
12 
13 namespace Isis {
14  class Stretch;
15  class Histogram;
16 
31  class ManualStretchType : public StretchType {
32  Q_OBJECT
33 
34  public:
35  ManualStretchType(const Histogram &, const Stretch &,
36  const QString &name, const QColor &color);
38 
39  virtual void setStretch(Stretch);
40 
41  private slots:
42  void addButtonPressed(bool);
43  void deleteButtonPressed(bool);
44  void readTable();
45 
46  private:
47  Stretch convertTableToStretch();
48 
49  QLabel *p_errorMessage;
50  };
51 }
52 
53 #endif
virtual void setStretch(Stretch)
Given an arbitrary stretch, this will re-interpret it, as best as possible, into a manual stretch...
ManualStretchType(const Histogram &, const Stretch &, const QString &name, const QColor &color)
This constructs a manual stretch type.
Container of a cube histogram.
Definition: Histogram.h:86
Pixel value mapper.
Definition: Stretch.h:72
void deleteButtonPressed(bool)
This is called when a user clicks "Delete" and is responsible for removing the pair with the given in...
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
This is the base class for advanced stretches.
Definition: StretchType.h:38
void addButtonPressed(bool)
This is called when a user clicks "Add / Edit" and is responsible for adding the pair into the correc...
This handles arbitrary user-input stretches.