Isis 3 Programmer Reference
SpecialPixelTool.h
1#ifndef SpecialPixelTool_h
2#define SpecialPixelTool_h
3
4
5// This should be the only include in this file!
6#include "Tool.h"
7
8// FIXME: remove this include
9#include <QColor>
10
11
12class QDialog;
13class QSettings;
14class QToolButton;
15
16namespace Isis {
17 class Workspace;
18}
19
20namespace Isis {
35 class SpecialPixelTool : public Tool {
36 Q_OBJECT
37
38 public:
40 void addTo(QMenu *menu);
41 void addToPermanent(QToolBar *perm);
42 void addTo(Workspace *ws);
43
45 QString menuName() const {
46 return "&Options";
47 }
48
49 protected:
50 void updateTool();
51 void setColor(QToolButton *button);
52 void readSettings();
53 void writeSettings();
54
55 signals:
58
59 private slots:
60 void apply();
61 void setNullColor();
62 void setLisColor();
63 void setLrsColor();
64 void setLdsColor();
65 void setHisColor();
66 void setHrsColor();
67 void setHdsColor();
68 void setBgColor();
69 void defaultBW();
70 void defaultColor();
71
72 private:
78 QColor p_lisDefault;
79 QColor p_lrsDefault;
80 QColor p_ldsDefault;
81 QColor p_hisDefault;
82 QColor p_hrsDefault;
83 QColor p_hdsDefault;
84 QColor p_bgDefault;
85 QToolButton *p_nullColor;
86 QToolButton *p_lisColor;
87 QToolButton *p_lrsColor;
88 QToolButton *p_ldsColor;
89 QToolButton *p_hisColor;
90 QToolButton *p_hrsColor;
91 QToolButton *p_hdsColor;
92 QToolButton *p_bgColor;
93 QSettings *p_settings;
94 bool p_color;
95
96
97 };
98};
99
100#endif
101
Sets the colors for the special pixel values.
QToolButton * p_lrsColor
Low representation saturation Button.
void setHrsColor()
Sets the color for Hrs pixels.
void updateTool()
Updates special pixel tool.
void setNullColor()
Sets the color for null pixels.
void addToPermanent(QToolBar *perm)
Adds the tool to the permanent tool bar.
QToolButton * p_hrsColor
High representation saturation Button.
QSettings * p_settings
< Settings
QToolButton * p_bgColor
Background color Button.
void defaultColor()
Reset the default color colors.
void setHisColor()
Sets the color for His pixels.
QDialog * p_dialog
Dialog box.
QToolButton * p_ldsColor
Low Button.
void addTo(QMenu *menu)
Adds the tool to the given menu.
SpecialPixelTool(QWidget *parent)
SpecialPixelTool constructor.
QToolButton * p_hisColor
High instrument saturation Button.
QWidget * p_spWindow
Window widget.
void writeSettings()
This methods writes the default special pixel values to a config file that will be read by the readSe...
QColor p_ldsDefault
Color chosen for pixels.
void apply()
Applies the colors picked for the special pixels.
QColor p_bgDefault
Color chosen for pixels.
void setLisColor()
Sets the color for Lis pixels.
void readSettings()
This method reads in the default special pixel value colors from a config file.
void setDefaultColors()
Emitted when the default colors are reset.
void setColor(QToolButton *button)
Gets the selected color from the color dialog.
QColor p_hdsDefault
Color chosen for pixels.
QWidget * p_parent
Parent widget.
void setHdsColor()
Sets the color for Hds pixels.
void setLrsColor()
Sets the color for Lrs pixels.
QToolButton * p_hdsColor
High Button.
QString menuName() const
Returns the menu name.
QColor p_hisDefault
Color chosen for high instrument saturation pixels.
QAction * p_action
Special Pixel Tool's action.
QToolButton * p_nullColor
Null Button.
void setLdsColor()
Sets the color for Lds pixels.
QColor p_nullDefault
Color chosen for null pixels.
void defaultBW()
Reset the default black/white colors.
QToolButton * p_lisColor
Low instrument saturation Button.
QColor p_lisDefault
Color chosen for low instrument saturation pixels.
QColor p_hrsDefault
Color chosen for high representation saturation pixels.
QColor p_lrsDefault
Color chosen for Low representation saturation pixels.
Base class for the Qisis tools.
Definition Tool.h:67
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16