Isis 3 Programmer Reference
ManualStretchType.h
1#ifndef ManualStretchType_H
2#define ManualStretchType_H
3
4#include "StretchType.h"
5
6class QColor;
7class QLabel;
8class QLineEdit;
9class QPushButton;
10class QSlider;
11class QString;
12
13namespace Isis {
14 class Stretch;
15 class Histogram;
16 class CubeStretch;
17
33 Q_OBJECT
34
35 public:
36 ManualStretchType(const Histogram &, const Stretch &,
37 const QString &name, const QColor &color);
39
40 virtual CubeStretch getStretch();
41 virtual void setStretch(Stretch);
42
43 private slots:
44 void addButtonPressed(bool);
45 void deleteButtonPressed(bool);
46 void readTable();
47
48 private:
49 Stretch convertTableToStretch();
50
51 QLabel *p_errorMessage;
52 };
53}
54
55#endif
Stores stretch information for a cube.
Definition CubeStretch.h:27
Container of a cube histogram.
Definition Histogram.h:74
This handles arbitrary user-input stretches.
void addButtonPressed(bool)
This is called when a user clicks "Add / Edit" and is responsible for adding the pair into the correc...
virtual void setStretch(Stretch)
Given an arbitrary stretch, this will re-interpret it, as best as possible, into a manual stretch.
void deleteButtonPressed(bool)
This is called when a user clicks "Delete" and is responsible for removing the pair with the given in...
virtual CubeStretch getStretch()
Gets the current CubeStretch for this ManualStretch.
ManualStretchType(const Histogram &, const Stretch &, const QString &name, const QColor &color)
This constructs a manual stretch type.
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