USGS

Isis 3.0 Developer's Reference (API)

Home

LinearStretchType.h

Go to the documentation of this file.
00001 #ifndef LinearStretchType_H
00002 #define LinearStretchType_H
00003 
00004 #include "StretchType.h"
00005 
00006 namespace Isis {
00007   class Stretch;
00008   class Histogram;
00009 }
00010 
00011 class QSlider;
00012 class QLineEdit;
00013 class QString;
00014 class QColor;
00015 
00016 namespace Isis {
00017 
00031   class LinearStretchType : public StretchType {
00032       Q_OBJECT
00033 
00034     public:
00035       LinearStretchType(const Histogram &, const Stretch &,
00036                         const QString &name, const QColor &color);
00037       ~LinearStretchType();
00038 
00039       virtual Stretch getStretch();
00040       virtual void setStretch(Stretch);
00041 
00042 
00043     private slots:
00044       void startSliderMoved(int);
00045       void startEditChanged(const QString &);
00046       void endSliderMoved(int);
00047       void endEditChanged(const QString &);
00048 
00049     private:
00050       QSlider *p_startSlider; 
00051       QLineEdit *p_startEdit; 
00052       QSlider *p_endSlider; 
00053       QLineEdit *p_endEdit; 
00054 
00056       bool p_sliderOverride;
00057 
00059       bool p_editOverride;
00060   };
00061 }
00062 
00063 #endif