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 class QColor;
00007 class QLineEdit;
00008 class QSlider;
00009 class QString;
00010 
00011 namespace Isis {
00012   class Histogram;
00013   class Stretch;
00014 
00028   class LinearStretchType : public StretchType {
00029       Q_OBJECT
00030 
00031     public:
00032       LinearStretchType(const Histogram &, const Stretch &,
00033                         const QString &name, const QColor &color);
00034       ~LinearStretchType();
00035 
00036       virtual Stretch getStretch();
00037       virtual void setStretch(Stretch);
00038 
00039 
00040     private slots:
00041       void startSliderMoved(int);
00042       void startEditChanged(const QString &);
00043       void endSliderMoved(int);
00044       void endEditChanged(const QString &);
00045 
00046     private:
00047       QSlider *p_startSlider; 
00048       QLineEdit *p_startEdit; 
00049       QSlider *p_endSlider; 
00050       QLineEdit *p_endEdit; 
00051 
00053       bool p_sliderOverride;
00054 
00056       bool p_editOverride;
00057   };
00058 }
00059 
00060 #endif