Isis Developer Reference
LinearStretchType.h
Go to the documentation of this file.
1#ifndef LinearStretchType_H
2#define LinearStretchType_H
3
4#include "StretchType.h"
5
6class QColor;
7class QLineEdit;
8class QSlider;
9class QString;
10
11namespace Isis {
12 class Histogram;
13 class Stretch;
14 class CubeStretch;
15
30 Q_OBJECT
31
32 public:
33 LinearStretchType(const Histogram &, const Stretch &,
34 const QString &name, const QColor &color);
36
37 virtual CubeStretch getStretch();
38 virtual void setStretch(Stretch);
39
40 private slots:
41 void startSliderMoved(int);
42 void startEditChanged(const QString &);
43 void endSliderMoved(int);
44 void endEditChanged(const QString &);
45
46 private:
47 QSlider *p_startSlider;
48 QLineEdit *p_startEdit;
49 QSlider *p_endSlider;
50 QLineEdit *p_endEdit;
51
53 bool p_sliderOverride;
54
56 bool p_editOverride;
57 };
58}
59
60#endif
Stores stretch information for a cube.
Definition CubeStretch.h:27
Container of a cube histogram.
Definition Histogram.h:74
This handles the advanced linear stretch.
Definition LinearStretchType.h:29
virtual CubeStretch getStretch()
Returns the CubeStretch for this LinearStretch.
Definition LinearStretchType.cpp:264
virtual void setStretch(Stretch)
Given an arbitrary stretch, this will re-interpret it, as best as possible, into a linear stretch.
Definition LinearStretchType.cpp:99
~LinearStretchType()
Destructor.
Definition LinearStretchType.cpp:84
LinearStretchType(const Histogram &, const Stretch &, const QString &name, const QColor &color)
This constructs a linear stretch type.
Definition LinearStretchType.cpp:24
Pixel value mapper.
Definition Stretch.h:58
This is the base class for advanced stretches.
Definition StretchType.h:39
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16