Isis Developer Reference
SpecialPixelTool.h
Go to the documentation of this file.
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:
73 QAction *p_action;
74 QWidget *p_parent;
75 QWidget *p_spWindow;
76 QDialog *p_dialog;
77 QColor p_nullDefault;
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.
Definition SpecialPixelTool.h:35
void updateTool()
Updates special pixel tool.
Definition SpecialPixelTool.cpp:445
void addToPermanent(QToolBar *perm)
Adds the tool to the permanent tool bar.
Definition SpecialPixelTool.cpp:189
void addTo(QMenu *menu)
Adds the tool to the given menu.
Definition SpecialPixelTool.cpp:178
SpecialPixelTool(QWidget *parent)
SpecialPixelTool constructor.
Definition SpecialPixelTool.cpp:31
void writeSettings()
This methods writes the default special pixel values to a config file that will be read by the readSe...
Definition SpecialPixelTool.cpp:544
void readSettings()
This method reads in the default special pixel value colors from a config file.
Definition SpecialPixelTool.cpp:460
void setDefaultColors()
Emitted when the default colors are reset.
void setColor(QToolButton *button)
Gets the selected color from the color dialog.
Definition SpecialPixelTool.cpp:373
QString menuName() const
Returns the menu name.
Definition SpecialPixelTool.h:45
Base class for the Qisis tools.
Definition Tool.h:67
Definition Workspace.h:78
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16