Isis 3.0 Programmer Reference
Back
|
Home
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
ZoomTool.h
Go to the documentation of this file.
1
#ifndef ZoomTool_h
2
#define ZoomTool_h
3
25
// This should be the only include in this file!
26
#include "
Tool.h
"
27
28
// FIXME: remove this include
29
#include <QCursor>
30
31
class
QAction
;
32
class
QLineEdit;
33
34
namespace
Isis {
65
class
ZoomTool
:
public
Tool
{
66
Q_OBJECT
67
68
public
:
69
ZoomTool
(
QWidget
*parent);
70
void
addTo
(QMenu *menu);
71
73
QString
menuName
()
const
{
74
return
"&View"
;
75
}
76
77
protected
slots:
78
void
rubberBandComplete
();
79
80
protected
:
81
QAction
*
toolPadAction
(
ToolPad
*toolpad);
82
void
updateTool
();
83
QWidget
*
createToolBarWidget
(QStackedWidget *parent);
84
void
enableRubberBandTool
();
85
86
private
slots:
87
void
zoomIn2X
();
88
void
zoomIn4X
();
89
void
zoomIn8X
();
90
91
void
zoomOut2X
();
92
void
zoomOut4X
();
93
void
zoomOut8X
();
94
95
void
zoomActual
();
96
void
zoomFit
();
97
void
zoomFitWidth
();
98
void
zoomFitHeight
();
99
void
zoomManual
();
100
101
102
double
setScale
(
MdiCubeViewport
*d,
double
newScale);
103
double
setScale
(
MdiCubeViewport
*d,
double
newScale,
int
x,
int
y);
104
double
setScale
(
MdiCubeViewport
*d,
double
newScale,
double
samp,
double
line);
105
106
private
:
107
void
zoomBy
(
double
factor);
108
109
QAction
*
p_zoomIn2X
;
110
QAction
*
p_zoomIn4X
;
111
QAction
*
p_zoomIn8X
;
112
113
QAction
*
p_zoomOut2X
;
114
QAction
*
p_zoomOut4X
;
115
QAction
*
p_zoomOut8X
;
116
117
QAction
*
p_zoomActual
;
118
QAction
*
p_zoomFit
;
119
120
QLineEdit *
p_zoomLineEdit
;
121
double
p_lastScale;
122
};
123
};
124
125
#endif
126
Isis::MdiCubeViewport
Cube display widget for certain Isis MDI applications.
Definition:
MdiCubeViewport.h:53
Isis::ZoomTool::p_zoomActual
QAction * p_zoomActual
Zoom to actual size action.
Definition:
ZoomTool.h:117
Isis::ZoomTool::p_zoomIn8X
QAction * p_zoomIn8X
Zoom in 8 times.
Definition:
ZoomTool.h:111
Isis::ZoomTool::zoomFit
void zoomFit()
Fits the cube in the viewport.
Definition:
ZoomTool.cpp:376
Isis::ZoomTool::updateTool
void updateTool()
This method updates the line edits text to the correct zoom value.
Definition:
ZoomTool.cpp:478
Isis::ZoomTool::p_zoomOut8X
QAction * p_zoomOut8X
Zoom out 8 times.
Definition:
ZoomTool.h:115
Isis::ZoomTool::p_zoomFit
QAction * p_zoomFit
Fit the cube in the viewport action.
Definition:
ZoomTool.h:118
Isis::ZoomTool::zoomManual
void zoomManual()
This method zooms by the value input in the line edit next to the zoom tools.
Definition:
ZoomTool.cpp:454
Isis::ZoomTool::zoomIn2X
void zoomIn2X()
Zooms in 2 times.
Definition:
ZoomTool.cpp:268
Isis::ZoomTool::p_zoomOut4X
QAction * p_zoomOut4X
Zoom out 4 times.
Definition:
ZoomTool.h:114
Isis::ZoomTool
Handles zoom operations for Isis qt apps.
Definition:
ZoomTool.h:65
Isis::ZoomTool::p_zoomLineEdit
QLineEdit * p_zoomLineEdit
Line edit for manual zoom factor.
Definition:
ZoomTool.h:120
Isis::ZoomTool::zoomOut2X
void zoomOut2X()
Zoom out 2 times.
Definition:
ZoomTool.cpp:295
Isis::ZoomTool::zoomIn8X
void zoomIn8X()
Zooms in 8 times.
Definition:
ZoomTool.cpp:286
Isis::ZoomTool::p_zoomOut2X
QAction * p_zoomOut2X
Zoom out 2 times.
Definition:
ZoomTool.h:113
Tool.h
Isis::ZoomTool::zoomFitHeight
void zoomFitHeight()
Slot for the "Fit to Heighth" menu item on the Fit button.
Definition:
ZoomTool.cpp:428
Isis::ZoomTool::ZoomTool
ZoomTool(QWidget *parent)
ZoomTool constructor.
Definition:
ZoomTool.cpp:50
Isis::ZoomTool::addTo
void addTo(QMenu *menu)
Adds the zoom action to the given menu.
Definition:
ZoomTool.cpp:127
Isis::ZoomTool::enableRubberBandTool
void enableRubberBandTool()
This methods enables the RubberBandTool, it also sets the RubberBandTool to allow points and to allow...
Definition:
ZoomTool.cpp:597
Isis::ZoomTool::zoomOut4X
void zoomOut4X()
Zoom out 4 times.
Definition:
ZoomTool.cpp:304
Isis::ZoomTool::rubberBandComplete
void rubberBandComplete()
This method is called when the RubberBandTool is complete.
Definition:
ZoomTool.cpp:503
Isis::ZoomTool::zoomActual
void zoomActual()
Zoom back to 1 to 1.
Definition:
ZoomTool.cpp:322
Isis::ZoomTool::zoomBy
void zoomBy(double factor)
Zoom by the given factor.
Definition:
ZoomTool.cpp:340
Isis::ZoomTool::p_zoomIn4X
QAction * p_zoomIn4X
Zoom in 4 times.
Definition:
ZoomTool.h:110
Isis::Tool
Base class for the Qisis tools.
Definition:
Tool.h:81
Isis::ZoomTool::zoomFitWidth
void zoomFitWidth()
Slot for the "Fit to Width" menu item on the Fit button.
Definition:
ZoomTool.cpp:402
Isis::ZoomTool::createToolBarWidget
QWidget * createToolBarWidget(QStackedWidget *parent)
Creates the widget to add to the tool bar.
Definition:
ZoomTool.cpp:153
Isis::ZoomTool::toolPadAction
QAction * toolPadAction(ToolPad *toolpad)
Adds the action to the toolpad.
Definition:
ZoomTool.cpp:106
Isis::ZoomTool::zoomOut8X
void zoomOut8X()
Zoom out 8 times.
Definition:
ZoomTool.cpp:313
QAction
Isis::ZoomTool::setScale
double setScale(MdiCubeViewport *d, double newScale)
This method will attempt to reset the scale for the given MdiCubeViewport using the new scale value...
Definition:
ZoomTool.cpp:621
QWidget
Isis::ZoomTool::zoomIn4X
void zoomIn4X()
Zooms in 4 times.
Definition:
ZoomTool.cpp:277
Isis::ZoomTool::p_zoomIn2X
QAction * p_zoomIn2X
Zoom in 2 times.
Definition:
ZoomTool.h:109
Isis::ZoomTool::menuName
QString menuName() const
Returns the name of the menu.
Definition:
ZoomTool.h:73
Isis::ToolPad
Definition:
ToolPad.h:14
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:31:55