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 
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:
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 
FileName.h
Stretch.h
Isis::MdiCubeViewport
Cube display widget for certain Isis MDI applications.
Definition: MdiCubeViewport.h:39
QWidget
Isis::SpecialPixelTool::setColor
void setColor(QToolButton *button)
Gets the selected color from the color dialog.
Definition: SpecialPixelTool.cpp:373
Isis::Stretch::SetMinimum
void SetMinimum(const double value)
Definition: Stretch.h:142
MdiCubeViewport.h
Isis::SpecialPixelTool::SpecialPixelTool
SpecialPixelTool(QWidget *parent)
SpecialPixelTool constructor.
Definition: SpecialPixelTool.cpp:31
Isis::Tool::cubeViewportList
CubeViewportList * cubeViewportList() const
Return the list of cubeviewports.
Definition: Tool.cpp:390
Isis::Stretch::SetLis
void SetLis(const double value)
Sets the mapping for LIS pixels.
Definition: Stretch.h:105
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::FileName
File name manipulation and expansion.
Definition: FileName.h:100
MainWindow.h
CubeStretch.h
Isis::Stretch::SetMaximum
void SetMaximum(const double value)
Definition: Stretch.h:145
QMenu
Isis::Tool::toolIconDir
QString toolIconDir() const
returns the path to the icon directory.
Definition: Tool.h:113
Isis::SpecialPixelTool::updateTool
void updateTool()
Updates special pixel tool.
Definition: SpecialPixelTool.cpp:445
Tool.h
Isis::Stretch::SetHrs
void SetHrs(const double value)
Sets the mapping for HRS pixels.
Definition: Stretch.h:138
Isis::CubeStretch
Stores stretch information for a cube.
Definition: CubeStretch.h:27
Isis::CubeViewport::greenStretch
CubeStretch greenStretch() const
Return the green band stretch.
Definition: CubeViewport.cpp:1674
QToolBar
Isis::Stretch::SetLrs
void SetLrs(const double value)
Sets the mapping for LRS pixels.
Definition: Stretch.h:116
Isis::SpecialPixelTool::menuName
QString menuName() const
Returns the menu name.
Definition: SpecialPixelTool.h:45
Isis::Stretch::SetHis
void SetHis(const double value)
Sets the mapping for HIS pixels.
Definition: Stretch.h:127
Isis::SpecialPixelTool::addToPermanent
void addToPermanent(QToolBar *perm)
Adds the tool to the permanent tool bar.
Definition: SpecialPixelTool.cpp:189
Isis::CubeViewport::redStretch
CubeStretch redStretch() const
Return the red band stretch.
Definition: CubeViewport.cpp:1668
Isis::CubeViewport::blueStretch
CubeStretch blueStretch() const
Return the blue band stretch.
Definition: CubeViewport.cpp:1680
Isis::FileName::expanded
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Isis::Tool::addTo
void addTo(ViewportMainWindow *mw)
Adds the tool to the application.
Definition: Tool.cpp:78
Workspace.h
main
int main(int argc, char *argv[])
The programmer supplied main function.
Definition: Isis.h:93
Isis::SpecialPixelTool
Sets the colors for the special pixel values.
Definition: SpecialPixelTool.h:35
Isis::Stretch::SetNull
void SetNull(const double value)
Sets the mapping for NULL pixels.
Definition: Stretch.h:94
Isis::CubeViewport::stretchGreen
void stretchGreen(const QString &string)
Apply stretch pairs to green bands.
Definition: CubeViewport.cpp:2131
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
SpecialPixelTool.h
QDialog
Isis::Workspace
Definition: Workspace.h:78
QAction
Isis::Tool::cubeViewport
MdiCubeViewport * cubeViewport() const
Return the current cubeviewport.
Definition: Tool.h:197
Isis::CubeViewport::stretchBlue
void stretchBlue(const QString &string)
Apply stretch pairs to blue bands.
Definition: CubeViewport.cpp:2143
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::CubeViewport::setBackground
void setBackground(QColor color)
Sets the background color.
Definition: CubeViewport.h:373
Isis::CubeViewport::stretchRed
void stretchRed(const QString &string)
Apply stretch pairs to red bands.
Definition: CubeViewport.cpp:2119