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 
12 class QDialog;
13 class QSettings;
14 class QToolButton;
15 
16 namespace Isis {
17  class Workspace;
18 }
19 
20 namespace Isis {
35  class SpecialPixelTool : public Tool {
36  Q_OBJECT
37 
38  public:
39  SpecialPixelTool(QWidget *parent);
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:
57  void setDefaultColors();
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:
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 
QString menuName() const
Returns the menu name.
QColor p_hrsDefault
Color chosen for high representation saturation pixels.
void apply()
Applies the colors picked for the special pixels.
void addToPermanent(QToolBar *perm)
Adds the tool to the permanent tool bar.
QToolButton * p_hisColor
High instrument saturation Button.
QColor p_ldsDefault
Color chosen for pixels.
QColor p_bgDefault
Color chosen for pixels.
void setHdsColor()
Sets the color for Hds pixels.
void setLisColor()
Sets the color for Lis pixels.
QToolButton * p_ldsColor
Low Button.
QColor p_lrsDefault
Color chosen for Low representation saturation pixels.
void readSettings()
This method reads in the default special pixel value colors from a config file.
void setNullColor()
Sets the color for null pixels.
void defaultColor()
Reset the default color colors.
QAction * p_action
Special Pixel Tool&#39;s action.
QToolButton * p_lrsColor
Low representation saturation Button.
void writeSettings()
This methods writes the default special pixel values to a config file that will be read by the readSe...
void setLrsColor()
Sets the color for Lrs pixels.
QWidget * p_parent
Parent widget.
QToolButton * p_nullColor
Null Button.
void setHisColor()
Sets the color for His pixels.
void setDefaultColors()
Emitted when the default colors are reset.
QToolButton * p_hrsColor
High representation saturation Button.
QColor p_lisDefault
Color chosen for low instrument saturation pixels.
void defaultBW()
Reset the default black/white colors.
void setColor(QToolButton *button)
Gets the selected color from the color dialog.
void updateTool()
Updates special pixel tool.
QSettings * p_settings
< Settings
QColor p_hdsDefault
Color chosen for pixels.
SpecialPixelTool(QWidget *parent)
SpecialPixelTool constructor.
void addTo(QMenu *menu)
Adds the tool to the given menu.
QToolButton * p_bgColor
Background color Button.
void setHrsColor()
Sets the color for Hrs pixels.
QWidget * p_spWindow
Window widget.
QDialog * p_dialog
Dialog box.
QToolButton * p_lisColor
Low instrument saturation Button.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Base class for the Qisis tools.
Definition: Tool.h:81
QToolButton * p_hdsColor
High Button.
void setLdsColor()
Sets the color for Lds pixels.
bool p_color
Color Mode?
Sets the colors for the special pixel values.
QColor p_nullDefault
Color chosen for null pixels.
QColor p_hisDefault
Color chosen for high instrument saturation pixels.