Isis Developer Reference
Isis::MosaicAreaTool Class Reference

This displays a box with a given distance from a point. More...

#include <MosaicAreaTool.h>

Inheritance diagram for Isis::MosaicAreaTool:
Inheritance graph
Collaboration diagram for Isis::MosaicAreaTool:
Collaboration graph

Public Slots

void userChangedBox ()
 
void clearBox ()
 
void activate (bool)
 Activates the tool.
 

Signals

void activated (bool)
 

Public Member Functions

 MosaicAreaTool (MosaicSceneWidget *)
 MosaicAreaTool constructor.
 
void addToMenu (QMenu *menu)
 Adds the pan action to the given menu.
 
PvlObject toPvl () const
 
void fromPvl (const PvlObject &obj)
 
QString projectPvlObjectName () const
 
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 ()
 

Protected Slots

virtual void updateTool ()
 

Protected Member Functions

QActiongetPrimaryAction ()
 Adds the action to the toolpad.
 
QWidgetgetToolBarWidget ()
 This method returns a widget that will be put in a tool bar when the tool is activated.
 
QWidgetcreateToolBarWidget ()
 Creates the widget to add to the tool bar.
 
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 ()
 

Detailed Description

This displays a box with a given distance from a point.

Author
????-??-?? Steven Lambright

Constructor & Destructor Documentation

◆ MosaicAreaTool()

Isis::MosaicAreaTool::MosaicAreaTool ( MosaicSceneWidget * scene)

MosaicAreaTool constructor.

Parameters
parent

References userChangedBox().

Member Function Documentation

◆ activate

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

Activates the tool.

Parameters
on

References Isis::MosaicTool::activated().

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

◆ activated

void Isis::MosaicTool::activated ( bool )
signalinherited

◆ addTo() [1/3]

virtual void Isis::MosaicTool::addTo ( QMenu * menu)
inlinevirtualinherited

◆ addTo() [2/3]

void Isis::MosaicTool::addTo ( QToolBar * toolBar)
virtualinherited

◆ addTo() [3/3]

void Isis::MosaicTool::addTo ( ToolPad * toolPad)
virtualinherited

◆ addToMenu()

void Isis::MosaicAreaTool::addToMenu ( QMenu * menu)

Adds the pan action to the given menu.

Parameters
menu

◆ clearBox

void Isis::MosaicAreaTool::clearBox ( )
slot

◆ createToolBarWidget()

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

Creates the widget to add to the tool bar.

Parameters
parent
Returns
QWidget*

◆ fromPvl()

void Isis::MosaicAreaTool::fromPvl ( const PvlObject & obj)
virtual

Reimplemented from Isis::MosaicTool.

References Isis::toBool(), and userChangedBox().

◆ getIcon()

◆ getPrimaryAction()

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

Adds the action to the toolpad.

Parameters
toolpad
Returns
QAction*

Implements Isis::MosaicTool.

References Isis::MosaicTool::getIcon().

◆ getToolBarWidget()

QWidget * Isis::MosaicAreaTool::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.

References clearBox(), and userChangedBox().

◆ getViewActions()

QList< QAction * > Isis::MosaicTool::getViewActions ( )
virtualinherited

Reimplemented in Isis::MosaicZoomTool.

◆ getWidget()

◆ isActive()

◆ mouseButtonPress()

void Isis::MosaicTool::mouseButtonPress ( QPointF ,
Qt::MouseButton s )
protectedvirtualinherited

◆ mouseButtonRelease()

void Isis::MosaicAreaTool::mouseButtonRelease ( QPointF mouseLoc,
Qt::MouseButton s )
protectedvirtual

◆ mouseDoubleClick()

void Isis::MosaicTool::mouseDoubleClick ( QPointF )
protectedvirtualinherited

◆ mouseEnter()

virtual void Isis::MosaicTool::mouseEnter ( )
inlineprotectedvirtualinherited

◆ mouseLeave()

virtual void Isis::MosaicTool::mouseLeave ( )
inlineprotectedvirtualinherited

◆ mouseMove()

void Isis::MosaicTool::mouseMove ( QPointF )
protectedvirtualinherited

◆ mouseWheel()

void Isis::MosaicTool::mouseWheel ( QPointF ,
int delta )
protectedvirtualinherited

Reimplemented in Isis::MosaicZoomTool.

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

◆ projectPvlObjectName()

QString Isis::MosaicAreaTool::projectPvlObjectName ( ) const
virtual

Reimplemented from Isis::MosaicTool.

Referenced by toPvl().

◆ rubberBandComplete()

virtual void Isis::MosaicTool::rubberBandComplete ( QRectF r,
Qt::MouseButton s )
inlineprotectedvirtualinherited

Reimplemented in Isis::MosaicZoomTool.

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

◆ toolBarDestroyed()

void Isis::MosaicTool::toolBarDestroyed ( QObject * obj)
protectedinherited

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

◆ toPvl()

PvlObject Isis::MosaicAreaTool::toPvl ( ) const
virtual

Reimplemented from Isis::MosaicTool.

References projectPvlObjectName(), and Isis::toString().

◆ updateTool

virtual void Isis::MosaicTool::updateTool ( )
inlineprotectedvirtualslotinherited

◆ userChangedBox


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