Isis 3 Programmer Reference
BinaryStretchType.h
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:
49
50 private:
51 QSlider *p_startSlider;
52 QLineEdit *p_startEdit;
53 QSlider *p_endSlider;
54 QLineEdit *p_endEdit;
55
58
61 };
62}
63
64#endif
This handles the advanced binary stretch.
BinaryStretchType(const Histogram &, const Stretch &, const QString &name, const QColor &color)
This constructs a binary stretch type.
virtual CubeStretch getStretch()
Gets the CubeStretch for this Binary Stretch.
QSlider * p_endSlider
End point slider.
bool p_sliderOverride
This is used to let the edits be changed to where sliders cant go.
void startEditChanged(const QString &)
A new start point was typed in.
void startSliderMoved(int)
This is called when the start point slider moves.
QLineEdit * p_endEdit
End point edit.
virtual void setStretch(Stretch)
Given an arbitrary stretch, this will re-interpret it, as best as possible, into a binary stretch.
void endSliderMoved(int)
This is called when the end point slider moves.
~BinaryStretchType()
Destroys the binary stretch.
Stretch calculateNewStretch()
This uses the GUI elements to calculate the current binary stretch.
void endEditChanged(const QString &)
A new end point was typed in.
QSlider * p_startSlider
Start point slider.
bool p_editOverride
This is used to let the edits be changed without updating the stretch.
QLineEdit * p_startEdit
Start point edit.
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