USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::MosaicZoomTool Class Reference

Handles zoom operations for Isis qt apps. More...

#include <MosaicZoomTool.h>

Inherits Isis::MosaicTool.

List of all members.

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.
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)

Protected Member Functions

QActiongetPrimaryAction ()
 This method returns an action that is used to activate this tool.
QWidgetgetToolBarWidget ()
 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.
MosaicSceneWidgetgetWidget ()

Detailed Description

Handles zoom operations for Isis qt apps.

Author:
????-??-?? Stacy Alley

Constructor & Destructor Documentation

Isis::MosaicZoomTool::MosaicZoomTool ( MosaicSceneWidget scene  ) 

MosaicZoomTool constructor.

Parameters:
parent 

References Isis::MosaicTool::getIcon(), zoomFit(), zoomIn2X(), and zoomOut2X().


Member Function Documentation

void Isis::MosaicTool::activate ( bool  on  )  [slot, inherited]

Activates the tool.

Parameters:
on 

References Isis::MosaicTool::activated().

Referenced by Isis::MosaicTool::addTo().

void Isis::MosaicTool::activated ( bool   )  [signal, inherited]
void Isis::MosaicTool::addTo ( QToolBar toolBar  )  [virtual, inherited]
void Isis::MosaicTool::addTo ( ToolPad toolPad  )  [virtual, inherited]
virtual void Isis::MosaicTool::addTo ( QMenu *  menu  )  [inline, virtual, inherited]
void Isis::MosaicTool::fromPvl ( const PvlObject obj  )  [virtual, inherited]
QPixmap Isis::MosaicTool::getIcon ( QString  iconName  )  const [inherited]
QAction * Isis::MosaicZoomTool::getPrimaryAction (  )  [protected, virtual]

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().

QWidget * Isis::MosaicZoomTool::getToolBarWidget (  )  [protected, virtual]

Creates the widget to add to the tool bar.

Parameters:
parent 
Returns:
QWidget*

Reimplemented from Isis::MosaicTool.

References zoomManual().

QList< QAction * > Isis::MosaicZoomTool::getViewActions (  )  [virtual]

Reimplemented from Isis::MosaicTool.

MosaicSceneWidget* Isis::MosaicTool::getWidget (  )  [inline, protected, inherited]
bool Isis::MosaicTool::isActive (  )  const [inline, inherited]
void Isis::MosaicTool::mouseButtonPress ( QPointF  ,
Qt::MouseButton  s 
) [protected, virtual, slot, inherited]
void Isis::MosaicZoomTool::mouseButtonRelease ( QPointF  mouseLoc,
Qt::MouseButton  s 
) [protected, virtual]
void Isis::MosaicTool::mouseDoubleClick ( QPointF   )  [protected, virtual, slot, inherited]
virtual void Isis::MosaicTool::mouseEnter (  )  [inline, protected, virtual, slot, inherited]
virtual void Isis::MosaicTool::mouseLeave (  )  [inline, protected, virtual, slot, inherited]

Reimplemented in Isis::MosaicTrackTool.

Referenced by Isis::MosaicTool::MosaicTool().

void Isis::MosaicTool::mouseMove ( QPointF   )  [protected, virtual, slot, inherited]

Reimplemented in Isis::MosaicTrackTool.

Referenced by Isis::MosaicTool::MosaicTool().

void Isis::MosaicZoomTool::mouseWheel ( QPointF  mouseLoc,
int  delta 
) [protected, virtual]
QString Isis::MosaicTool::projectPvlObjectName (  )  const [virtual, inherited]
void Isis::MosaicZoomTool::rubberBandComplete ( QRectF  r,
Qt::MouseButton  s 
) [protected, virtual]

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().

void Isis::MosaicTool::toolBarDestroyed ( QObject obj  )  [protected, slot, inherited]

Referenced by Isis::MosaicTool::addTo().

PvlObject Isis::MosaicTool::toPvl (  )  const [virtual, inherited]
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().

void Isis::MosaicZoomTool::updateTool (  )  [protected, virtual, slot]
void Isis::MosaicZoomTool::zoomActual ( QPointF  center = QPointF()  )  [slot]

Zoom back to 1 to 1.

void Isis::MosaicZoomTool::zoomFit (  )  [slot]

Fits the in the graphics view.

References Isis::MosaicTool::getWidget(), Isis::MosaicSceneWidget::refit(), and updateResolutionBox().

Referenced by MosaicZoomTool().

void Isis::MosaicZoomTool::zoomFitHeight (  )  [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.

void Isis::MosaicZoomTool::zoomFitWidth (  )  [slot]

Slot for the "Fit to Width" menu item on the Fit button.

void Isis::MosaicZoomTool::zoomIn2X ( QPointF  center = QPointF()  )  [slot]

Zooms in 2 times.

Referenced by MosaicZoomTool(), and mouseButtonRelease().

void Isis::MosaicZoomTool::zoomManual (  )  [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.

References x.

Referenced by getToolBarWidget().

void Isis::MosaicZoomTool::zoomOut2X ( QPointF  center = QPointF()  )  [slot]

Zoom out 2 times.

Referenced by MosaicZoomTool(), and mouseButtonRelease().


The documentation for this class was generated from the following files: