Isis 3 Programmer Reference
BinaryStretchType.h
1 #ifndef BinaryStretchType_H
2 #define BinaryStretchType_H
3 
4 #include "StretchType.h"
5 
6 class QColor;
7 class QLineEdit;
8 class QSlider;
9 class QString;
10 
11 namespace Isis {
12  class Histogram;
13  class Stretch;
14 
29  class BinaryStretchType : public StretchType {
30  Q_OBJECT
31 
32  public:
33  BinaryStretchType(const Histogram &, const Stretch &,
34  const QString &name, const QColor &color);
36 
37  virtual void setStretch(Stretch);
38 
39  private slots:
40  void startSliderMoved(int);
41  void startEditChanged(const QString &);
42  void endSliderMoved(int);
43  void endEditChanged(const QString &);
44 
45  private:
47 
48  private:
49  QSlider *p_startSlider;
50  QLineEdit *p_startEdit;
51  QSlider *p_endSlider;
52  QLineEdit *p_endEdit;
53 
56 
59  };
60 }
61 
62 #endif
void endSliderMoved(int)
This is called when the end point slider moves.
void startEditChanged(const QString &)
A new start point was typed in.
QLineEdit * p_endEdit
End point edit.
virtual void setStretch(Stretch)
Given an arbitrary stretch, this will re-interpret it, as best as possible, into a binary stretch...
QSlider * p_endSlider
End point slider.
bool p_editOverride
This is used to let the edits be changed without updating the stretch.
Stretch calculateNewStretch()
This uses the GUI elements to calculate the current binary stretch.
~BinaryStretchType()
Destroys the binary stretch.
Container of a cube histogram.
Definition: Histogram.h:86
QSlider * p_startSlider
Start point slider.
Pixel value mapper.
Definition: Stretch.h:72
void endEditChanged(const QString &)
A new end point was typed in.
BinaryStretchType(const Histogram &, const Stretch &, const QString &name, const QColor &color)
This constructs a binary stretch type.
bool p_sliderOverride
This is used to let the edits be changed to where sliders cant go.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
This is the base class for advanced stretches.
Definition: StretchType.h:38
void startSliderMoved(int)
This is called when the start point slider moves.
This handles the advanced binary stretch.
QLineEdit * p_startEdit
Start point edit.