Isis Developer Reference
Isis::MosaicTool Class Referenceabstract

Base class for the MosaicTools. More...

#include <MosaicTool.h>

Inheritance diagram for Isis::MosaicTool:
Inheritance graph
Collaboration diagram for Isis::MosaicTool:
Collaboration graph

Public Slots

void activate (bool)
 Activates the tool.
 

Signals

void activated (bool)
 

Public Member Functions

 MosaicTool (MosaicSceneWidget *)
 
 ~MosaicTool ()
 
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

virtual void updateTool ()
 

Protected Member Functions

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)
 
MosaicSceneWidgetgetWidget ()
 
virtual QActiongetPrimaryAction ()=0
 This method returns an action that is used to activate this tool.
 
virtual QWidgetgetToolBarWidget ()
 This method returns a widget that will be put in a tool bar when the tool is activated.
 

Detailed Description

Base class for the MosaicTools.

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

Constructor & Destructor Documentation

◆ MosaicTool()

◆ ~MosaicTool()

Isis::MosaicTool::~MosaicTool ( )

Member Function Documentation

◆ activate

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

Activates the tool.

Parameters
on

References activated().

Referenced by addTo().

◆ activated

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

◆ addTo() [1/3]

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

◆ addTo() [2/3]

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

◆ addTo() [3/3]

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

◆ fromPvl()

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

◆ getIcon()

◆ getPrimaryAction()

virtual QAction * Isis::MosaicTool::getPrimaryAction ( )
protectedpure 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.

Implemented in Isis::MosaicAreaTool, Isis::MosaicControlNetTool, Isis::MosaicFindTool, Isis::MosaicGridTool, Isis::MosaicPanTool, Isis::MosaicSelectTool, and Isis::MosaicZoomTool.

Referenced by addTo().

◆ getToolBarWidget()

QWidget * Isis::MosaicTool::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 in Isis::MosaicAreaTool, Isis::MosaicControlNetTool, Isis::MosaicFindTool, Isis::MosaicGridTool, and Isis::MosaicZoomTool.

Referenced by addTo().

◆ getViewActions()

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

Reimplemented in Isis::MosaicZoomTool.

◆ getWidget()

◆ isActive()

◆ mouseButtonPress()

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

Referenced by MosaicTool().

◆ mouseButtonRelease()

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

◆ mouseDoubleClick()

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

Referenced by MosaicTool().

◆ mouseEnter()

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

Referenced by MosaicTool().

◆ mouseLeave()

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

Referenced by MosaicTool().

◆ mouseMove()

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

Referenced by MosaicTool().

◆ mouseWheel()

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

Reimplemented in Isis::MosaicZoomTool.

Referenced by MosaicTool().

◆ projectPvlObjectName()

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

◆ rubberBandComplete()

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

Reimplemented in Isis::MosaicZoomTool.

Referenced by MosaicTool().

◆ toolBarDestroyed()

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

Referenced by addTo().

◆ toPvl()

◆ updateTool

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

Referenced by MosaicTool().


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