Isis 3 Programmer Reference
EditTool.h
Go to the documentation of this file.
1
#ifndef EditTool_h
2
#define EditTool_h
3
26
#include "
Tool.h
"
27
28
29
#include <QMap>
30
#include <QStack>
31
32
33
class
QToolButton;
34
class
QLine;
35
class
QLineEdit;
36
class
QComboBox
;
37
38
namespace
Isis
{
39
class
Brick;
40
class
Cube;
41
class
MdiCubeViewport;
42
84
class
EditTool
:
public
Tool
{
85
Q_OBJECT
86
87
public
:
91
enum
EditShape
{
92
Point
,
93
HorizLine
,
94
VertLine
,
95
StartEndLine
,
96
Rectangle
97
};
98
99
103
enum
ReplacementValue
{
104
UserDnComboValue
,
105
NullComboValue
,
106
HrsComboValue
,
107
LrsComboValue
,
108
HisComboValue
,
109
LisComboValue
110
};
111
112
EditTool
(
QWidget
*parent);
113
114
void
addTo
(
Workspace
*);
115
116
signals:
117
void
cubeChanged
(
bool
);
118
void
save
();
119
void
saveAs
();
120
121
protected
:
122
QAction
*
toolPadAction
(
ToolPad
*pad);
123
QWidget
*
createToolBarWidget
(QStackedWidget *active);
124
void
updateTool
();
125
126
protected
slots:
127
void
mouseButtonRelease
(QPoint p, Qt::MouseButton m);
128
virtual
void
enableRubberBandTool
();
129
void
rubberBandComplete
();
130
131
private
slots:
132
void
listenToViewport(
MdiCubeViewport
*);
133
void
selectValType
(
int
index);
134
void
changeDn
();
135
void
undoEdit
();
136
void
undoAll
(
CubeViewport
*vp);
137
void
redoEdit
();
138
void
save
(
CubeViewport
*vp);
139
void
removeViewport
(
QObject
*vp);
140
141
private
:
142
QList<QPoint *>
*
LineToPoints
(
const
QLine &line);
143
void
writeToCube
(
int
iesamp,
int
issamp,
int
ieline,
int
isline,
QList<QPoint *>
*linePts);
144
QComboBox
*
p_shapeComboBox
;
145
QComboBox
*
p_valTypeComboBox
;
146
QLineEdit *
p_dnLineEdit
;
147
QToolButton *
p_undoButton
;
148
QToolButton *
p_redoButton
;
149
QToolButton *
p_saveButton
;
150
QToolButton *
p_saveAsButton
;
151
QWidget
*m_container;
152
double
p_dn
;
153
154
QMap <CubeViewport *, QStack <Brick *>
*>
p_undoEdit
;
155
QMap <CubeViewport *, QStack <Brick *>
*>
p_redoEdit
;
156
QMap <CubeViewport *, int>
p_saveMarker
;
157
};
158
};
159
160
#endif
Isis::EditTool::p_saveMarker
QMap< CubeViewport *, int > p_saveMarker
Marker for last save.
Definition:
EditTool.h:156
Isis::MdiCubeViewport
Cube display widget for certain Isis MDI applications.
Definition:
MdiCubeViewport.h:53
Isis::EditTool::updateTool
void updateTool()
This is a virtual function belonging to the Tool class which is called when the user selects a differ...
Definition:
EditTool.cpp:243
Isis::EditTool::p_undoButton
QToolButton * p_undoButton
Undo button.
Definition:
EditTool.h:147
Isis::EditTool::p_shapeComboBox
QComboBox * p_shapeComboBox
Shape combobox.
Definition:
EditTool.h:144
Isis::EditTool::HorizLine
horizontal line
Definition:
EditTool.h:93
Isis::EditTool::createToolBarWidget
QWidget * createToolBarWidget(QStackedWidget *active)
Creates the toolbar containing the edit tool widgets.
Definition:
EditTool.cpp:98
Isis::EditTool::redoEdit
void redoEdit()
This method is called to redo any edit operations that have been undone.
Definition:
EditTool.cpp:717
Isis::EditTool::p_undoEdit
QMap< CubeViewport *, QStack< Brick * > * > p_undoEdit
Viewport to brick map for undo.
Definition:
EditTool.h:154
Isis::EditTool::HrsComboValue
High representation saturation DN value.
Definition:
EditTool.h:106
Isis::EditTool::undoAll
void undoAll(CubeViewport *vp)
This method is used to discard any changes made to this viewport.
Definition:
EditTool.cpp:658
Isis::EditTool::p_redoButton
QToolButton * p_redoButton
Redo button.
Definition:
EditTool.h:148
Isis::EditTool::UserDnComboValue
User Selected DN value.
Definition:
EditTool.h:104
Isis::EditTool::addTo
void addTo(Workspace *)
Adds the given workspace to the cubeviewport list.
Definition:
EditTool.cpp:59
Isis::EditTool::p_valTypeComboBox
QComboBox * p_valTypeComboBox
Value type combobox.
Definition:
EditTool.h:145
Isis::EditTool::LrsComboValue
Low representation saturation DN value.
Definition:
EditTool.h:107
Isis::CubeViewport
Widget to display Isis cubes for qt apps.
Definition:
CubeViewport.h:132
Isis::EditTool::NullComboValue
Null DN value.
Definition:
EditTool.h:105
Isis::EditTool::LisComboValue
Low instrument satruation DN value.
Definition:
EditTool.h:109
Isis::EditTool::selectValType
void selectValType(int index)
This is a private slot which is called when the user selects a new dn type.
Definition:
EditTool.cpp:211
Isis::EditTool::p_saveButton
QToolButton * p_saveButton
Save button.
Definition:
EditTool.h:149
Isis::EditTool::Rectangle
rectangle
Definition:
EditTool.h:96
Tool.h
QComboBox
Isis::EditTool::EditShape
EditShape
Enum for possible shapes.
Definition:
EditTool.h:91
Isis::EditTool::LineToPoints
QList< QPoint * > * LineToPoints(const QLine &line)
Convert rubber band line to points.
Definition:
EditTool.cpp:856
Isis::EditTool
Interactive image edit tool.
Definition:
EditTool.h:84
Isis::EditTool::p_dn
double p_dn
DN value.
Definition:
EditTool.h:152
Isis::EditTool::HisComboValue
High instrument saturation DN value.
Definition:
EditTool.h:108
Isis::EditTool::rubberBandComplete
void rubberBandComplete()
This method is called any time the RubberBandTool is complete.
Definition:
EditTool.cpp:277
Isis::EditTool::undoEdit
void undoEdit()
This is a private slot called when the user selects the undo button.
Definition:
EditTool.cpp:582
Isis::EditTool::p_saveAsButton
QToolButton * p_saveAsButton
Save as button.
Definition:
EditTool.h:150
Isis::EditTool::Point
point
Definition:
EditTool.h:92
Isis::EditTool::StartEndLine
start-end line
Definition:
EditTool.h:95
Isis::EditTool::EditTool
EditTool(QWidget *parent)
Constructs and EditTool object.
Definition:
EditTool.cpp:55
Isis::EditTool::p_dnLineEdit
QLineEdit * p_dnLineEdit
DN edit line.
Definition:
EditTool.h:146
Isis::EditTool::writeToCube
void writeToCube(int iesamp, int issamp, int ieline, int isline, QList< QPoint *> *linePts)
Definition:
EditTool.cpp:499
Isis::EditTool::removeViewport
void removeViewport(QObject *vp)
This is a private slot called to clean up when a viewport is destroyed.
Definition:
EditTool.cpp:820
Isis::EditTool::p_redoEdit
QMap< CubeViewport *, QStack< Brick * > * > p_redoEdit
Viewport to brick map for redo.
Definition:
EditTool.h:155
Isis::EditTool::VertLine
vertical line
Definition:
EditTool.h:94
Isis::EditTool::toolPadAction
QAction * toolPadAction(ToolPad *pad)
Adds the EditTool to the tool pad.
Definition:
EditTool.cpp:73
Isis::Workspace
Definition:
Workspace.h:90
Isis::EditTool::cubeChanged
void cubeChanged(bool)
Emitted when cube changed.
Isis::EditTool::ReplacementValue
ReplacementValue
Enum for DN values.
Definition:
EditTool.h:103
Isis::EditTool::changeDn
void changeDn()
This is a private slot called when the user hits the enter key after typing a value in the dnLineEdit...
Definition:
EditTool.cpp:231
QList
Definition:
BoxcarCachingAlgorithm.h:29
Isis
Namespace for ISIS/Bullet specific routines.
Definition:
Apollo.h:31
Isis::Tool
Base class for the Qisis tools.
Definition:
Tool.h:81
QObject
QAction
Isis::EditTool::save
void save()
Emitted when cube should be saved.
Isis::EditTool::saveAs
void saveAs()
Emitted when cube should be saved as another file.
QWidget
Isis::EditTool::enableRubberBandTool
virtual void enableRubberBandTool()
This method sets up the RubberBandTool depending on which mode is enabled.
Definition:
EditTool.cpp:940
QMap
Definition:
CubeIoHandler.h:38
Isis::EditTool::mouseButtonRelease
void mouseButtonRelease(QPoint p, Qt::MouseButton m)
This is a slot called when any mouse button is released inside of a viewport.
Definition:
EditTool.cpp:411
Isis::ToolPad
Definition:
ToolPad.h:14
src
qisis
objs
EditTool
EditTool.h