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:
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 
Isis::SpecialPixelTool::p_parent
QWidget * p_parent
Parent widget.
Definition: SpecialPixelTool.h:74
Isis::SpecialPixelTool::setHisColor
void setHisColor()
Sets the color for His pixels.
Definition: SpecialPixelTool.cpp:341
QWidget
Isis::SpecialPixelTool::setColor
void setColor(QToolButton *button)
Gets the selected color from the color dialog.
Definition: SpecialPixelTool.cpp:373
Isis::SpecialPixelTool::setHrsColor
void setHrsColor()
Sets the color for Hrs pixels.
Definition: SpecialPixelTool.cpp:350
Isis::SpecialPixelTool::p_dialog
QDialog * p_dialog
Dialog box.
Definition: SpecialPixelTool.h:76
Isis::SpecialPixelTool::SpecialPixelTool
SpecialPixelTool(QWidget *parent)
SpecialPixelTool constructor.
Definition: SpecialPixelTool.cpp:31
Isis::Tool
Base class for the Qisis tools.
Definition: Tool.h:67
Isis::SpecialPixelTool::addTo
void addTo(QMenu *menu)
Adds the tool to the given menu.
Definition: SpecialPixelTool.cpp:178
Isis::SpecialPixelTool::p_settings
QSettings * p_settings
< Settings
Definition: SpecialPixelTool.h:93
Isis::SpecialPixelTool::p_hdsColor
QToolButton * p_hdsColor
High Button.
Definition: SpecialPixelTool.h:91
QMenu
Isis::SpecialPixelTool::p_hdsDefault
QColor p_hdsDefault
Color chosen for pixels.
Definition: SpecialPixelTool.h:83
Isis::SpecialPixelTool::p_color
bool p_color
Color Mode?
Definition: SpecialPixelTool.h:94
Isis::SpecialPixelTool::updateTool
void updateTool()
Updates special pixel tool.
Definition: SpecialPixelTool.cpp:445
Isis::SpecialPixelTool::p_lisColor
QToolButton * p_lisColor
Low instrument saturation Button.
Definition: SpecialPixelTool.h:86
Isis::SpecialPixelTool::p_hisDefault
QColor p_hisDefault
Color chosen for high instrument saturation pixels.
Definition: SpecialPixelTool.h:81
Isis::SpecialPixelTool::p_spWindow
QWidget * p_spWindow
Window widget.
Definition: SpecialPixelTool.h:75
Isis::SpecialPixelTool::p_bgColor
QToolButton * p_bgColor
Background color Button.
Definition: SpecialPixelTool.h:92
QToolBar
Isis::SpecialPixelTool::apply
void apply()
Applies the colors picked for the special pixels.
Definition: SpecialPixelTool.cpp:209
Isis::SpecialPixelTool::menuName
QString menuName() const
Returns the menu name.
Definition: SpecialPixelTool.h:45
Isis::SpecialPixelTool::setLdsColor
void setLdsColor()
Sets the color for Lds pixels.
Definition: SpecialPixelTool.cpp:332
Isis::SpecialPixelTool::addToPermanent
void addToPermanent(QToolBar *perm)
Adds the tool to the permanent tool bar.
Definition: SpecialPixelTool.cpp:189
Isis::SpecialPixelTool::p_nullDefault
QColor p_nullDefault
Color chosen for null pixels.
Definition: SpecialPixelTool.h:77
Isis::SpecialPixelTool::setHdsColor
void setHdsColor()
Sets the color for Hds pixels.
Definition: SpecialPixelTool.cpp:359
Isis::SpecialPixelTool::p_ldsDefault
QColor p_ldsDefault
Color chosen for pixels.
Definition: SpecialPixelTool.h:80
Isis::SpecialPixelTool::p_ldsColor
QToolButton * p_ldsColor
Low Button.
Definition: SpecialPixelTool.h:88
Isis::SpecialPixelTool::p_bgDefault
QColor p_bgDefault
Color chosen for pixels.
Definition: SpecialPixelTool.h:84
Isis::SpecialPixelTool::p_hrsDefault
QColor p_hrsDefault
Color chosen for high representation saturation pixels.
Definition: SpecialPixelTool.h:82
Isis::SpecialPixelTool::setNullColor
void setNullColor()
Sets the color for null pixels.
Definition: SpecialPixelTool.cpp:305
Isis::SpecialPixelTool
Sets the colors for the special pixel values.
Definition: SpecialPixelTool.h:35
Isis::SpecialPixelTool::p_hisColor
QToolButton * p_hisColor
High instrument saturation Button.
Definition: SpecialPixelTool.h:89
Isis::SpecialPixelTool::setDefaultColors
void setDefaultColors()
Emitted when the default colors are reset.
Isis::SpecialPixelTool::readSettings
void readSettings()
This method reads in the default special pixel value colors from a config file.
Definition: SpecialPixelTool.cpp:460
Isis::SpecialPixelTool::p_lrsColor
QToolButton * p_lrsColor
Low representation saturation Button.
Definition: SpecialPixelTool.h:87
Isis::SpecialPixelTool::setLisColor
void setLisColor()
Sets the color for Lis pixels.
Definition: SpecialPixelTool.cpp:314
Isis::SpecialPixelTool::p_nullColor
QToolButton * p_nullColor
Null Button.
Definition: SpecialPixelTool.h:85
QDialog
Isis::SpecialPixelTool::p_lrsDefault
QColor p_lrsDefault
Color chosen for Low representation saturation pixels.
Definition: SpecialPixelTool.h:79
Isis::Workspace
Definition: Workspace.h:78
Isis::SpecialPixelTool::setLrsColor
void setLrsColor()
Sets the color for Lrs pixels.
Definition: SpecialPixelTool.cpp:323
QAction
Isis::SpecialPixelTool::defaultColor
void defaultColor()
Reset the default color colors.
Definition: SpecialPixelTool.cpp:412
Isis::SpecialPixelTool::p_action
QAction * p_action
Special Pixel Tool's action.
Definition: SpecialPixelTool.h:73
Isis::SpecialPixelTool::p_hrsColor
QToolButton * p_hrsColor
High representation saturation Button.
Definition: SpecialPixelTool.h:90
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::SpecialPixelTool::writeSettings
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
Isis::SpecialPixelTool::p_lisDefault
QColor p_lisDefault
Color chosen for low instrument saturation pixels.
Definition: SpecialPixelTool.h:78
Isis::SpecialPixelTool::defaultBW
void defaultBW()
Reset the default black/white colors.
Definition: SpecialPixelTool.cpp:391