USGS

Isis 3.0 Object Programmers' Reference

Home

SawtoothStretchType.h
1 #ifndef SAWTOOTHSTRETCHTYPE_H
2 #define SAWTOOTHSTRETCHTYPE_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 Stretch;
13  class Histogram;
14 
33  Q_OBJECT
34 
35  public:
36  SawtoothStretchType(const Histogram &, const Stretch &,
37  const QString &name, const QColor &color);
39 
40  virtual void setStretch(Stretch);
41 
42 
43  private slots:
44  void offsetSliderMoved(int);
45  void offsetEditChanged(const QString &);
46  void widthSliderMoved(int);
47  void widthEditChanged(const QString &);
48 
49  private:
51  Stretch calculateNewStretch(double, double);
52 
53  private:
54  QSlider *p_offsetSlider;
55  QLineEdit *p_offsetEdit;
56  QSlider *p_widthSlider;
57  QLineEdit *p_widthEdit;
58 
61  };
62 }
63 
64 #endif