USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::MosaicSelectTool Class Reference

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

#include <MosaicSelectTool.h>

Inheritance diagram for Isis::MosaicSelectTool:
Inheritance graph
Collaboration diagram for Isis::MosaicSelectTool:
Collaboration graph

Public Slots

void activate (bool)
 Activates the tool.
 

Signals

void activated (bool)
 

Public Member Functions

 MosaicSelectTool (MosaicSceneWidget *)
 MosaicSelectTool constructor.
 
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 QList< QAction * > getViewActions ()
 
virtual PvlObject toPvl () const
 
virtual void fromPvl (const PvlObject &obj)
 
virtual QString projectPvlObjectName () const
 

Protected Slots

void updateTool ()
 This method sets the QGraphicsView to allow the user to select mosaic items by dragging a rubber band.
 
virtual void mouseEnter ()
 
virtual void mouseMove (QPointF)
 
virtual void mouseLeave ()
 
virtual void mouseDoubleClick (QPointF)
 
virtual void mouseButtonPress (QPointF, Qt::MouseButton s)
 
virtual void mouseButtonRelease (QPointF, Qt::MouseButton s)
 
virtual void mouseWheel (QPointF, int delta)
 
virtual void rubberBandComplete (QRectF r, Qt::MouseButton s)
 
void toolBarDestroyed (QObject *obj)
 

Protected Member Functions

virtual QActiongetPrimaryAction ()
 Adds the action to the toolpad.
 
MosaicSceneWidgetgetWidget ()
 
virtual QWidgetgetToolBarWidget ()
 This method returns a widget that will be put in a tool bar when the tool is activated.
 

Detailed Description

Handles selection operations for Isis qt apps.

Author
????-??-?? Stacy Alley
History:
2011-09-27 Steven Lambright - Improved user documentation

Definition at line 19 of file MosaicSelectTool.h.

Constructor & Destructor Documentation

Isis::MosaicSelectTool::MosaicSelectTool ( MosaicSceneWidget scene)

MosaicSelectTool constructor.

Parameters
parent

Definition at line 18 of file MosaicSelectTool.cpp.

Member Function Documentation

void Isis::MosaicTool::activate ( bool  on)
slotinherited

Activates the tool.

Parameters
on

Definition at line 146 of file MosaicTool.cpp.

References Isis::MosaicTool::disableToolBar(), Isis::MosaicTool::enableToolBar(), and Isis::MosaicTool::p_active.

QAction * Isis::MosaicSelectTool::getPrimaryAction ( )
protectedvirtual

Adds the action to the toolpad.

Parameters
toolpad
Returns
QAction*

Implements Isis::MosaicTool.

Definition at line 31 of file MosaicSelectTool.cpp.

References Isis::MosaicTool::getIcon().

QWidget * Isis::MosaicTool::getToolBarWidget ( )
protectedvirtualinherited

This method returns a widget that will be put in a tool bar when the tool is activated.

This method will only be called once so it can new the widget without a problem.

Reimplemented in Isis::MosaicGridTool, Isis::MosaicControlNetTool, Isis::MosaicFindTool, Isis::MosaicAreaTool, and Isis::MosaicZoomTool.

Definition at line 190 of file MosaicTool.cpp.

bool Isis::MosaicTool::isActive ( ) const
inlineinherited
void Isis::MosaicSelectTool::updateTool ( )
protectedslot

This method sets the QGraphicsView to allow the user to select mosaic items by dragging a rubber band.

Definition at line 53 of file MosaicSelectTool.cpp.

References Isis::MosaicTool::isActive().


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