Isis 3 Programmer Reference
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
{
67
class
ZoomTool
:
public
Tool
{
68
Q_OBJECT
69
70
public
:
71
ZoomTool
(
QWidget
*parent);
72
void
addTo
(
QMenu
*menu);
73
77
QString
menuName
()
const
{
78
return
"&View"
;
79
}
80
81
protected
slots:
82
void
rubberBandComplete
();
83
84
protected
:
85
QAction
*
toolPadAction
(
ToolPad
*toolpad);
86
void
updateTool
();
87
QWidget
*
createToolBarWidget
(QStackedWidget *parent);
88
void
enableRubberBandTool
();
89
90
private
slots:
91
void
zoomIn2X
();
92
void
zoomIn4X
();
93
void
zoomIn8X
();
94
95
void
zoomOut2X
();
96
void
zoomOut4X
();
97
void
zoomOut8X
();
98
99
void
zoomActual
();
100
void
zoomFit
();
101
void
zoomFitWidth
();
102
void
zoomFitHeight
();
103
void
zoomManual
();
104
105
106
double
setScale
(
MdiCubeViewport
*d,
double
newScale);
107
double
setScale
(
MdiCubeViewport
*d,
double
newScale,
int
x,
int
y);
108
double
setScale
(
MdiCubeViewport
*d,
double
newScale,
double
samp,
double
line);
109
110
private
:
111
void
zoomBy
(
double
factor);
112
113
QAction
*
p_zoomIn2X
;
114
QAction
*
p_zoomIn4X
;
115
QAction
*
p_zoomIn8X
;
116
117
QAction
*
p_zoomOut2X
;
118
QAction
*
p_zoomOut4X
;
119
QAction
*
p_zoomOut8X
;
120
121
QAction
*
p_zoomActual
;
122
QAction
*
p_zoomFit
;
123
124
QLineEdit *
p_zoomLineEdit
;
125
double
p_lastScale
;
126
};
127
};
128
129
#endif
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:121
Isis::ZoomTool::p_zoomIn8X
QAction * p_zoomIn8X
Zoom in 8 times.
Definition:
ZoomTool.h:115
Isis::ZoomTool::zoomFit
void zoomFit()
Fits the cube in the viewport.
Definition:
ZoomTool.cpp:379
Isis::ZoomTool::updateTool
void updateTool()
This method updates the line edits text to the correct zoom value.
Definition:
ZoomTool.cpp:482
Isis::ZoomTool::p_zoomOut8X
QAction * p_zoomOut8X
Zoom out 8 times.
Definition:
ZoomTool.h:119
Isis::ZoomTool::p_zoomFit
QAction * p_zoomFit
Fit the cube in the viewport action.
Definition:
ZoomTool.h:122
Isis::ZoomTool::zoomManual
void zoomManual()
This method zooms by the value input in the line edit next to the zoom tools.
Definition:
ZoomTool.cpp:458
Isis::ZoomTool::zoomIn2X
void zoomIn2X()
Zooms in 2 times.
Definition:
ZoomTool.cpp:269
Isis::ZoomTool::p_zoomOut4X
QAction * p_zoomOut4X
Zoom out 4 times.
Definition:
ZoomTool.h:118
Isis::ZoomTool
Handles zoom operations for Isis qt apps.
Definition:
ZoomTool.h:67
Isis::ZoomTool::p_lastScale
double p_lastScale
Last scale.
Definition:
ZoomTool.h:125
Isis::ZoomTool::p_zoomLineEdit
QLineEdit * p_zoomLineEdit
Line edit for manual zoom factor.
Definition:
ZoomTool.h:124
Isis::ZoomTool::zoomOut2X
void zoomOut2X()
Zoom out 2 times.
Definition:
ZoomTool.cpp:296
Isis::ZoomTool::zoomIn8X
void zoomIn8X()
Zooms in 8 times.
Definition:
ZoomTool.cpp:287
Isis::ZoomTool::p_zoomOut2X
QAction * p_zoomOut2X
Zoom out 2 times.
Definition:
ZoomTool.h:117
Tool.h
Isis::ZoomTool::menuName
QString menuName() const
Definition:
ZoomTool.h:77
QMenu
Isis::ZoomTool::zoomFitHeight
void zoomFitHeight()
Slot for the "Fit to Heighth" menu item on the Fit button.
Definition:
ZoomTool.cpp:431
Isis::ZoomTool::ZoomTool
ZoomTool(QWidget *parent)
ZoomTool constructor.
Definition:
ZoomTool.cpp:51
Isis::ZoomTool::addTo
void addTo(QMenu *menu)
Adds the zoom action to the given menu.
Definition:
ZoomTool.cpp:128
Isis::ZoomTool::enableRubberBandTool
void enableRubberBandTool()
This methods enables the RubberBandTool, it also sets the RubberBandTool to allow points and to allow...
Definition:
ZoomTool.cpp:601
Isis::ZoomTool::zoomOut4X
void zoomOut4X()
Zoom out 4 times.
Definition:
ZoomTool.cpp:305
Isis::ZoomTool::rubberBandComplete
void rubberBandComplete()
This method is called when the RubberBandTool is complete.
Definition:
ZoomTool.cpp:507
Isis::ZoomTool::zoomActual
void zoomActual()
Zoom back to 1 to 1.
Definition:
ZoomTool.cpp:323
Isis::ZoomTool::zoomBy
void zoomBy(double factor)
Zoom by the given factor.
Definition:
ZoomTool.cpp:341
Isis::ZoomTool::p_zoomIn4X
QAction * p_zoomIn4X
Zoom in 4 times.
Definition:
ZoomTool.h:114
Isis
Namespace for ISIS/Bullet specific routines.
Definition:
Apollo.h:31
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:405
Isis::ZoomTool::createToolBarWidget
QWidget * createToolBarWidget(QStackedWidget *parent)
Creates the widget to add to the tool bar.
Definition:
ZoomTool.cpp:154
Isis::ZoomTool::toolPadAction
QAction * toolPadAction(ToolPad *toolpad)
Adds the action to the toolpad.
Definition:
ZoomTool.cpp:107
Isis::ZoomTool::zoomOut8X
void zoomOut8X()
Zoom out 8 times.
Definition:
ZoomTool.cpp:314
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:625
QWidget
Isis::ZoomTool::zoomIn4X
void zoomIn4X()
Zooms in 4 times.
Definition:
ZoomTool.cpp:278
Isis::ZoomTool::p_zoomIn2X
QAction * p_zoomIn2X
Zoom in 2 times.
Definition:
ZoomTool.h:113
Isis::ToolPad
Definition:
ToolPad.h:14
src
qisis
objs
ZoomTool
ZoomTool.h