Isis 3.0
Back
|
Home
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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:
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
:
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
Isis::SpecialPixelTool::addToPermanent
void addToPermanent(QToolBar *perm)
Adds the tool to the permanent tool bar.
Definition:
SpecialPixelTool.cpp:188
Isis::SpecialPixelTool::readSettings
void readSettings()
This method reads in the default special pixel value colors from a config file.
Definition:
SpecialPixelTool.cpp:459
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:543
Isis::SpecialPixelTool::setDefaultColors
void setDefaultColors()
Emitted when the default colors are reset.
Definition:
moc_SpecialPixelTool.cpp:175
Tool.h
Isis::SpecialPixelTool::menuName
QString menuName() const
Returns the menu name.
Definition:
SpecialPixelTool.h:45
Isis::SpecialPixelTool::setColor
void setColor(QToolButton *button)
Gets the selected color from the color dialog.
Definition:
SpecialPixelTool.cpp:372
Isis::SpecialPixelTool::updateTool
void updateTool()
Updates special pixel tool.
Definition:
SpecialPixelTool.cpp:444
QToolBar
Isis::SpecialPixelTool::SpecialPixelTool
SpecialPixelTool(QWidget *parent)
SpecialPixelTool constructor.
Definition:
SpecialPixelTool.cpp:30
Isis::SpecialPixelTool::addTo
void addTo(QMenu *menu)
Adds the tool to the given menu.
Definition:
SpecialPixelTool.cpp:177
Isis::Workspace
Definition:
Workspace.h:81
Isis::Tool
Base class for the Qisis tools.
Definition:
Tool.h:81
QAction
Isis::SpecialPixelTool
Sets the colors for the special pixel values.
Definition:
SpecialPixelTool.h:35
QDialog
QWidget
U.S. Department of the Interior
|
U.S. Geological Survey
ISIS
|
Privacy & Disclaimers
|
Astrogeology Research Program
To contact us, please post comments and questions on the
ISIS Support Center
File Modified: 07/12/2023 23:29:06