Isis 3 Programmer Reference
LinearStretchType.h
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
54
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.
bool p_editOverride
This is used to let the edits be changed without updating the stretch.
virtual CubeStretch getStretch()
Returns the CubeStretch for this LinearStretch.
void startSliderMoved(int)
This is called when the start point slider moves.
virtual void setStretch(Stretch)
Given an arbitrary stretch, this will re-interpret it, as best as possible, into a linear stretch.
QLineEdit * p_startEdit
Line start pt edit.
void endEditChanged(const QString &)
A new end point was typed in.
QLineEdit * p_endEdit
Line end pt edit.
void endSliderMoved(int)
This is called when the end point slider moves.
void startEditChanged(const QString &)
A new start point was typed in.
LinearStretchType(const Histogram &, const Stretch &, const QString &name, const QColor &color)
This constructs a linear stretch type.
QSlider * p_endSlider
Line end pt slider.
QSlider * p_startSlider
Line start pt slider.
bool p_sliderOverride
This is used to let the edits be changed to where sliders cant go.
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