Isis 3 Programmer Reference
Isis::MosaicFindTool Class Reference

This controls the 'Find' abilities in the MosaicSceneWidget. More...

#include <MosaicFindTool.h>

Inheritance diagram for Isis::MosaicFindTool:
Inheritance graph
Collaboration diagram for Isis::MosaicFindTool:
Collaboration graph

Public Slots

void getUserGroundPoint ()
 
void clearPoint ()
 
void activate (bool)
 Activates the tool. More...
 

Signals

void activated (bool)
 

Public Member Functions

 MosaicFindTool (MosaicSceneWidget *)
 MosaicFindTool constructor. More...
 
void addToMenu (QMenu *menu)
 Adds the pan action to the given menu. More...
 
PvlObject toPvl () const
 
void fromPvl (const PvlObject &obj)
 
QString projectPvlObjectName () const
 
bool isActive () const
 Returns the activeness of this toool. More...
 
QPixmap getIcon (QString iconName) const
 returns the path to the icon directory. More...
 
virtual void addTo (QMenu *menu)
 
virtual void addTo (ToolPad *toolPad)
 
virtual void addTo (QToolBar *toolBar)
 
virtual QList< QAction * > getViewActions ()
 

Protected Slots

void updateTool ()
 This method sets the QGraphicsView to allow the user to select mosaic items by dragging a rubber band. More...
 

Protected Member Functions

QActiongetPrimaryAction ()
 Adds the action to the toolpad. More...
 
QWidgetgetToolBarWidget ()
 This method returns a widget that will be put in a tool bar when the tool is activated. More...
 
QWidgetcreateToolBarWidget ()
 Creates the widget to add to the tool bar. More...
 
void mouseButtonRelease (QPointF, Qt::MouseButton)
 
virtual void mouseEnter ()
 
virtual void mouseMove (QPointF)
 
virtual void mouseLeave ()
 
virtual void mouseDoubleClick (QPointF)
 
virtual void mouseButtonPress (QPointF, Qt::MouseButton s)
 
virtual void mouseWheel (QPointF, int delta)
 
virtual void rubberBandComplete (QRectF r, Qt::MouseButton s)
 
void toolBarDestroyed (QObject *obj)
 
MosaicSceneWidgetgetWidget ()
 

Private Attributes

QActionp_findPoint
 
QToolButton * p_findPtButton
 
QLineEdit * p_status
 
bool p_released
 
bool p_pressed
 
bool p_paint
 
QLineEdit * p_lonLineEdit
 Input for longitude. More...
 
QLineEdit * p_latLineEdit
 Input for latitude. More...
 
QGraphicsEllipseItemp_findSpot
 
QActionp_action
 

Detailed Description

This controls the 'Find' abilities in the MosaicSceneWidget.

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

2011-05-07 Steven Lambright - Refactored along with all of 'qmos'

2011-05-11 Steven Lambright - Added project settings

2011-09-27 Steven Lambright - Improved user documentation

2012-04-16 Jeannie Backer - Added forward declaration for PvlObject.

Definition at line 29 of file MosaicFindTool.h.

Constructor & Destructor Documentation

◆ MosaicFindTool()

Isis::MosaicFindTool::MosaicFindTool ( MosaicSceneWidget scene)

MosaicFindTool constructor.

Parameters
parent

Definition at line 30 of file MosaicFindTool.cpp.

Member Function Documentation

◆ activate

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

Activates the tool.

Parameters
on

Definition at line 148 of file MosaicTool.cpp.

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

◆ addToMenu()

void Isis::MosaicFindTool::addToMenu ( QMenu menu)

Adds the pan action to the given menu.

Parameters
menu

Definition at line 165 of file MosaicFindTool.cpp.

◆ createToolBarWidget()

QWidget * Isis::MosaicFindTool::createToolBarWidget ( )
protected

Creates the widget to add to the tool bar.

Parameters
parent
Returns
QWidget*

Definition at line 203 of file MosaicFindTool.cpp.

◆ getIcon()

◆ getPrimaryAction()

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

Adds the action to the toolpad.

Parameters
toolpad
Returns
QAction*

Implements Isis::MosaicTool.

Definition at line 105 of file MosaicFindTool.cpp.

References Isis::MosaicTool::getIcon().

◆ getToolBarWidget()

QWidget * Isis::MosaicFindTool::getToolBarWidget ( )
protectedvirtual

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 from Isis::MosaicTool.

Definition at line 124 of file MosaicFindTool.cpp.

References p_latLineEdit, and p_lonLineEdit.

◆ isActive()

bool Isis::MosaicTool::isActive ( ) const
inlineinherited

◆ updateTool

void Isis::MosaicFindTool::updateTool ( )
protectedslot

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

Definition at line 257 of file MosaicFindTool.cpp.

References Isis::MosaicTool::isActive().

Member Data Documentation

◆ p_latLineEdit

QLineEdit* Isis::MosaicFindTool::p_latLineEdit
private

Input for latitude.

Definition at line 61 of file MosaicFindTool.h.

Referenced by getToolBarWidget().

◆ p_lonLineEdit

QLineEdit* Isis::MosaicFindTool::p_lonLineEdit
private

Input for longitude.

Definition at line 60 of file MosaicFindTool.h.

Referenced by getToolBarWidget().


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