USGS

Isis 3.0 Developer's Reference (API)

Home

BinaryStretchType.h

Go to the documentation of this file.
00001 #ifndef BinaryStretchType_H
00002 #define BinaryStretchType_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 
00029   class BinaryStretchType : public StretchType {
00030       Q_OBJECT
00031 
00032     public:
00033       BinaryStretchType(const Histogram &, const Stretch &,
00034                         const QString &name, const QColor &color);
00035       ~BinaryStretchType();
00036 
00037       virtual void setStretch(Stretch);
00038 
00039     private slots:
00040       void startSliderMoved(int);
00041       void startEditChanged(const QString &);
00042       void endSliderMoved(int);
00043       void endEditChanged(const QString &);
00044 
00045     private:
00046       Stretch calculateNewStretch();
00047 
00048     private:
00049       QSlider *p_startSlider; 
00050       QLineEdit *p_startEdit; 
00051       QSlider *p_endSlider; 
00052       QLineEdit *p_endEdit; 
00053 
00055       bool p_sliderOverride;
00056 
00058       bool p_editOverride;
00059   };
00060 }
00061 
00062 #endif