Isis Developer Reference
|
Handles zoom operations for Isis qt apps. More...
#include <MosaicZoomTool.h>
Public Slots | |
void | zoomIn2X (QPointF center=QPointF()) |
Zooms in 2 times. | |
void | zoomOut2X (QPointF center=QPointF()) |
Zoom out 2 times. | |
void | zoomActual (QPointF center=QPointF()) |
Zoom back to 1 to 1. | |
void | zoomFit () |
Fits the in the graphics view. | |
void | zoomFitWidth () |
Slot for the "Fit to Width" menu item on the Fit button. | |
void | zoomFitHeight () |
Slot for the "Fit to Heighth" menu item on the Fit button. | |
void | zoomManual () |
This method zooms by the value input in the line edit next to the zoom tools. | |
void | activate (bool) |
Activates the tool. | |
Signals | |
void | activated (bool) |
Public Member Functions | |
MosaicZoomTool (MosaicSceneWidget *) | |
MosaicZoomTool constructor. | |
void | updateResolutionBox () |
Updates the text in the screen resolution display box to the current screen resolution, in meters per pixel. | |
QList< QAction * > | getViewActions () |
bool | isActive () const |
Returns the activeness of this toool. | |
QPixmap | getIcon (QString iconName) const |
returns the path to the icon directory. | |
virtual void | addTo (QMenu *menu) |
virtual void | addTo (ToolPad *toolPad) |
virtual void | addTo (QToolBar *toolBar) |
virtual PvlObject | toPvl () const |
virtual void | fromPvl (const PvlObject &obj) |
virtual QString | projectPvlObjectName () const |
Protected Slots | |
void | updateTool () |
This method updates the line edits text to the correct zoom value. | |
Protected Member Functions | |
QAction * | getPrimaryAction () |
This method returns an action that is used to activate this tool. | |
QWidget * | getToolBarWidget () |
Creates the widget to add to the tool bar. | |
void | mouseButtonRelease (QPointF, Qt::MouseButton s) |
void | mouseWheel (QPointF, int) |
void | rubberBandComplete (QRectF r, Qt::MouseButton s) |
This method is called when the RubberBandTool is complete. | |
virtual void | mouseEnter () |
virtual void | mouseMove (QPointF) |
virtual void | mouseLeave () |
virtual void | mouseDoubleClick (QPointF) |
virtual void | mouseButtonPress (QPointF, Qt::MouseButton s) |
void | toolBarDestroyed (QObject *obj) |
MosaicSceneWidget * | getWidget () |
Handles zoom operations for Isis qt apps.
Isis::MosaicZoomTool::MosaicZoomTool | ( | MosaicSceneWidget * | scene | ) |
MosaicZoomTool constructor.
parent |
References Isis::MosaicTool::getIcon(), zoomFit(), zoomIn2X(), and zoomOut2X().
|
slotinherited |
Activates the tool.
on |
References Isis::MosaicTool::activated().
Referenced by Isis::MosaicTool::addTo().
|
signalinherited |
|
inlinevirtualinherited |
|
virtualinherited |
References Isis::MosaicTool::getToolBarWidget(), and Isis::MosaicTool::toolBarDestroyed().
|
virtualinherited |
|
virtualinherited |
Reimplemented in Isis::MosaicAreaTool, Isis::MosaicControlNetTool, Isis::MosaicFindTool, and Isis::MosaicGridTool.
References _FILEINFO_, Isis::IException::Programmer, and Isis::MosaicTool::projectPvlObjectName().
|
inherited |
returns the path to the icon directory.
References Isis::FileName::expanded().
Referenced by Isis::MosaicAreaTool::getPrimaryAction(), Isis::MosaicControlNetTool::getPrimaryAction(), Isis::MosaicFindTool::getPrimaryAction(), Isis::MosaicGridTool::getPrimaryAction(), Isis::MosaicPanTool::getPrimaryAction(), Isis::MosaicSelectTool::getPrimaryAction(), getPrimaryAction(), and MosaicZoomTool().
|
protectedvirtual |
This method returns an action that is used to activate this tool.
This method will only be called once so it can new the action without a problem.
Implements Isis::MosaicTool.
References Isis::MosaicTool::getIcon().
|
protectedvirtual |
Creates the widget to add to the tool bar.
parent |
Reimplemented from Isis::MosaicTool.
References zoomManual().
Reimplemented from Isis::MosaicTool.
|
inlineprotectedinherited |
Referenced by Isis::MosaicGridTool::autoGrid(), Isis::MosaicAreaTool::clearBox(), Isis::MosaicGridTool::clearGrid(), Isis::MosaicFindTool::clearPoint(), Isis::MosaicGridTool::domainMaxLon(), Isis::MosaicGridTool::domainMinLon(), Isis::MosaicGridTool::drawGrid(), Isis::MosaicGridTool::fromPvl(), Isis::MosaicGridTool::getToolBarWidget(), Isis::MosaicFindTool::getUserGroundPoint(), Isis::MosaicGridTool::latType(), Isis::MosaicControlNetTool::loadNetwork(), Isis::MosaicGridTool::lonDomain(), Isis::MosaicControlNetTool::MosaicControlNetTool(), Isis::MosaicGridTool::MosaicGridTool(), Isis::MosaicTrackTool::MosaicTrackTool(), Isis::MosaicControlNetTool::mouseButtonRelease(), Isis::MosaicAreaTool::mouseButtonRelease(), Isis::MosaicFindTool::mouseButtonRelease(), mouseWheel(), Isis::MosaicGridTool::onCubesChanged(), Isis::MosaicGridTool::onProjectionChanged(), rubberBandComplete(), Isis::MosaicGridTool::sceneWidget(), Isis::MosaicGridTool::setLatExtents(), Isis::MosaicGridTool::setLonExtents(), Isis::MosaicTrackTool::updateLabels(), updateResolutionBox(), Isis::MosaicPanTool::updateTool(), Isis::MosaicSelectTool::updateTool(), updateTool(), Isis::MosaicAreaTool::userChangedBox(), and zoomFit().
|
inlineinherited |
Returns the activeness of this toool.
Referenced by Isis::MosaicControlNetTool::mouseButtonRelease(), mouseButtonRelease(), Isis::MosaicAreaTool::mouseButtonRelease(), Isis::MosaicFindTool::mouseButtonRelease(), rubberBandComplete(), Isis::MosaicFindTool::updateTool(), Isis::MosaicPanTool::updateTool(), Isis::MosaicSelectTool::updateTool(), and updateTool().
|
protectedvirtualinherited |
Referenced by Isis::MosaicTool::MosaicTool().
|
protectedvirtual |
Reimplemented from Isis::MosaicTool.
References Isis::MosaicTool::isActive(), zoomIn2X(), and zoomOut2X().
|
protectedvirtualinherited |
Referenced by Isis::MosaicTool::MosaicTool().
|
inlineprotectedvirtualinherited |
Referenced by Isis::MosaicTool::MosaicTool().
|
inlineprotectedvirtualinherited |
Referenced by Isis::MosaicTool::MosaicTool().
|
protectedvirtualinherited |
Referenced by Isis::MosaicTool::MosaicTool().
|
protectedvirtual |
Reimplemented from Isis::MosaicTool.
References Isis::MosaicSceneWidget::getView(), and Isis::MosaicTool::getWidget().
|
virtualinherited |
Reimplemented in Isis::MosaicAreaTool, Isis::MosaicControlNetTool, Isis::MosaicFindTool, and Isis::MosaicGridTool.
Referenced by Isis::MosaicTool::fromPvl(), and Isis::MosaicTool::toPvl().
|
protectedvirtual |
This method is called when the RubberBandTool is complete.
The view is centered on the center point of the rubberband's rectangle, then zoomed based on the largest side of the rectange. (Width or height.)
Reimplemented from Isis::MosaicTool.
References Isis::MosaicSceneWidget::getView(), Isis::MosaicTool::getWidget(), Isis::MosaicTool::isActive(), and updateResolutionBox().
|
protectedinherited |
Referenced by Isis::MosaicTool::addTo().
|
virtualinherited |
Reimplemented in Isis::MosaicAreaTool, Isis::MosaicControlNetTool, Isis::MosaicFindTool, and Isis::MosaicGridTool.
References _FILEINFO_, Isis::IException::Programmer, and Isis::MosaicTool::projectPvlObjectName().
void Isis::MosaicZoomTool::updateResolutionBox | ( | ) |
Updates the text in the screen resolution display box to the current screen resolution, in meters per pixel.
References Isis::MosaicSceneWidget::getView(), and Isis::MosaicTool::getWidget().
Referenced by rubberBandComplete(), updateTool(), and zoomFit().
|
protectedslot |
This method updates the line edits text to the correct zoom value.
References Isis::MosaicSceneWidget::enableRubberBand(), Isis::MosaicSceneWidget::getView(), Isis::MosaicTool::getWidget(), Isis::MosaicTool::isActive(), Isis::MosaicSceneWidget::setCubesSelectable(), and updateResolutionBox().
|
slot |
Zoom back to 1 to 1.
|
slot |
Fits the in the graphics view.
References Isis::MosaicTool::getWidget(), Isis::MosaicSceneWidget::refit(), and updateResolutionBox().
Referenced by MosaicZoomTool().
|
slot |
Slot for the "Fit to Heighth" menu item on the Fit button.
This will display the cube so that the entire cube heighth is displayed.
|
slot |
Slot for the "Fit to Width" menu item on the Fit button.
|
slot |
Zooms in 2 times.
Referenced by MosaicZoomTool(), and mouseButtonRelease().
|
slot |
This method zooms by the value input in the line edit next to the zoom tools.
This method is called when the double spin box value has been changed. First we figure out what we need to scale the graphics view in order to achive the user's desired screen resolution.
Referenced by getToolBarWidget().
|
slot |
Zoom out 2 times.
Referenced by MosaicZoomTool(), and mouseButtonRelease().