Isis Developer Reference
BinaryStretchType.h
Go to the documentation of this file.
1#ifndef BinaryStretchType_H
2#define BinaryStretchType_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
31 Q_OBJECT
32
33 public:
34 BinaryStretchType(const Histogram &, const Stretch &,
35 const QString &name, const QColor &color);
37
38 virtual CubeStretch getStretch();
39 virtual void setStretch(Stretch);
40
41 private slots:
42 void startSliderMoved(int);
43 void startEditChanged(const QString &);
44 void endSliderMoved(int);
45 void endEditChanged(const QString &);
46
47 private:
48 Stretch calculateNewStretch();
49
50 private:
51 QSlider *p_startSlider;
52 QLineEdit *p_startEdit;
53 QSlider *p_endSlider;
54 QLineEdit *p_endEdit;
55
57 bool p_sliderOverride;
58
60 bool p_editOverride;
61 };
62}
63
64#endif
This handles the advanced binary stretch.
Definition BinaryStretchType.h:30
BinaryStretchType(const Histogram &, const Stretch &, const QString &name, const QColor &color)
This constructs a binary stretch type.
Definition BinaryStretchType.cpp:24
virtual CubeStretch getStretch()
Gets the CubeStretch for this Binary Stretch.
Definition BinaryStretchType.cpp:385
virtual void setStretch(Stretch)
Given an arbitrary stretch, this will re-interpret it, as best as possible, into a binary stretch.
Definition BinaryStretchType.cpp:100
~BinaryStretchType()
Destroys the binary stretch.
Definition BinaryStretchType.cpp:85
Stores stretch information for a cube.
Definition CubeStretch.h:27
Container of a cube histogram.
Definition Histogram.h:74
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