Isis 3 Programmer Reference
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
void widthSliderMoved(int)
This is called when the sawtooth width slider moves.
QLineEdit * p_widthEdit
Width edit.
QSlider * p_offsetSlider
Offset slider.
This handles the advanced sawtooth stretch.
void offsetSliderMoved(int)
This is called when the sawtooth offset slider moves.
void offsetEditChanged(const QString &)
This is called when the the sawtooth offset edit changes.
QLineEdit * p_offsetEdit
Offset edit.
bool p_sliderOverride
This is used to let the edits be changed to where sliders cant go.
void widthEditChanged(const QString &)
This is called when the the sawtooth width edit changes.
Container of a cube histogram.
Definition: Histogram.h:86
Pixel value mapper.
Definition: Stretch.h:72
virtual void setStretch(Stretch)
Given an arbitrary stretch, this will re-interpret it, as best as possible, into a sawtooth stretch...
Stretch calculateNewStretch()
This calculates a new stretch using the GUI edits.
QSlider * p_widthSlider
Width slider.
SawtoothStretchType(const Histogram &, const Stretch &, const QString &name, const QColor &color)
This initializes a sawtooth stretch type.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
This is the base class for advanced stretches.
Definition: StretchType.h:38