Isis 3 Programmer Reference
LinearStretchType.h
1 #ifndef LinearStretchType_H
2 #define LinearStretchType_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 
28  class LinearStretchType : public StretchType {
29  Q_OBJECT
30 
31  public:
32  LinearStretchType(const Histogram &, const Stretch &,
33  const QString &name, const QColor &color);
35 
36  virtual Stretch getStretch();
37  virtual void setStretch(Stretch);
38 
39 
40  private slots:
41  void startSliderMoved(int);
42  void startEditChanged(const QString &);
43  void endSliderMoved(int);
44  void endEditChanged(const QString &);
45 
46  private:
47  QSlider *p_startSlider;
48  QLineEdit *p_startEdit;
49  QSlider *p_endSlider;
50  QLineEdit *p_endEdit;
51 
54 
57  };
58 }
59 
60 #endif
QSlider * p_endSlider
Line end pt slider.
void startEditChanged(const QString &)
A new start point was typed in.
void endSliderMoved(int)
This is called when the end point slider moves.
QLineEdit * p_endEdit
Line end pt edit.
void startSliderMoved(int)
This is called when the start point slider moves.
virtual Stretch getStretch()
Returns the current stretch object.
bool p_editOverride
This is used to let the edits be changed without updating the stretch.
void endEditChanged(const QString &)
A new end point was typed in.
Container of a cube histogram.
Definition: Histogram.h:86
Pixel value mapper.
Definition: Stretch.h:72
bool p_sliderOverride
This is used to let the edits be changed to where sliders cant go.
QLineEdit * p_startEdit
Line start pt edit.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
This is the base class for advanced stretches.
Definition: StretchType.h:38
QSlider * p_startSlider
Line start pt slider.
virtual void setStretch(Stretch)
Given an arbitrary stretch, this will re-interpret it, as best as possible, into a linear stretch...
This handles the advanced linear stretch.
LinearStretchType(const Histogram &, const Stretch &, const QString &name, const QColor &color)
This constructs a linear stretch type.