Isis 3 Programmer Reference
Isis::MosaicTrackTool Class Reference

#include <MosaicTrackTool.h>

Inheritance diagram for Isis::MosaicTrackTool:
Inheritance graph
Collaboration diagram for Isis::MosaicTrackTool:
Collaboration graph

Public Slots

virtual void mouseMove (QPointF p)
 
virtual void mouseLeave ()
 Clears the labels if the mouse leaves the application.
 
void activate (bool)
 Activates the tool.
 

Signals

void activated (bool)
 

Public Member Functions

 MosaicTrackTool (MosaicSceneWidget *, QStatusBar *)
 MosaicTrackTool constructor.
 
void updateLabels (QPointF p)
 Updates the tracking labels.
 
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 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 QWidgetgetToolBarWidget ()
 This method returns a widget that will be put in a tool bar when the tool is activated.
 

Private Slots

void labelDestroyed (QObject *)
 

Private Member Functions

virtual QActiongetPrimaryAction ()
 This method returns an action that is used to activate this tool.
 
void clearLabels ()
 Clears the labels.
 
void enableToolBar ()
 Enables entire tool bar.
 
void disableToolBar ()
 Disables entire tool bar.
 

Private Attributes

QStatusBar * p_sbar
 Status bar.
 
QLabel * p_latLabel
 Latitude label.
 
QLabel * p_lonLabel
 Longitude label.
 
QLabel * p_xLabel
 Latitude label.
 
QLabel * p_yLabel
 Longitude label.
 
bool p_active
 Is the tool active?
 
MosaicSceneWidgetp_widget
 
QActionp_primaryAction
 
QActionp_toolBarAction
 

Detailed Description

Author
????-??-?? Unknown

Definition at line 18 of file MosaicTrackTool.h.

Constructor & Destructor Documentation

◆ MosaicTrackTool()

Isis::MosaicTrackTool::MosaicTrackTool ( MosaicSceneWidget * scene,
QStatusBar * status )

MosaicTrackTool constructor.

Parameters
parent

Definition at line 17 of file MosaicTrackTool.cpp.

References clearLabels(), p_latLabel, p_lonLabel, p_sbar, p_xLabel, and p_yLabel.

◆ ~MosaicTrackTool()

Isis::MosaicTrackTool::~MosaicTrackTool ( )
virtual

Definition at line 57 of file MosaicTrackTool.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.

◆ addTo() [1/3]

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

Definition at line 63 of file MosaicTool.h.

◆ addTo() [2/3]

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

Definition at line 70 of file MosaicTool.cpp.

◆ addTo() [3/3]

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

Definition at line 52 of file MosaicTool.cpp.

◆ clearLabels()

void Isis::MosaicTrackTool::clearLabels ( )
private

Clears the labels.

Definition at line 164 of file MosaicTrackTool.cpp.

References p_latLabel, p_lonLabel, p_xLabel, and p_yLabel.

Referenced by MosaicTrackTool(), mouseLeave(), and updateLabels().

◆ disableToolBar()

void Isis::MosaicTool::disableToolBar ( )
privateinherited

Disables entire tool bar.

Definition at line 174 of file MosaicTool.cpp.

◆ enableToolBar()

void Isis::MosaicTool::enableToolBar ( )
privateinherited

Enables entire tool bar.

Definition at line 185 of file MosaicTool.cpp.

◆ fromPvl()

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

Reimplemented in Isis::MosaicGridTool.

Definition at line 101 of file MosaicTool.cpp.

◆ getIcon()

◆ getPrimaryAction()

QAction * Isis::MosaicTrackTool::getPrimaryAction ( )
privatevirtual

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.

Definition at line 81 of file MosaicTrackTool.cpp.

◆ getToolBarWidget()

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

Definition at line 192 of file MosaicTool.cpp.

◆ getViewActions()

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

Definition at line 84 of file MosaicTool.cpp.

◆ getWidget()

MosaicSceneWidget * Isis::MosaicTool::getWidget ( )
inlineprotectedinherited

Definition at line 96 of file MosaicTool.h.

◆ isActive()

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

◆ labelDestroyed

void Isis::MosaicTrackTool::labelDestroyed ( QObject * obj)
privateslot

Definition at line 95 of file MosaicTrackTool.cpp.

◆ mouseButtonPress()

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

Definition at line 130 of file MosaicTool.cpp.

◆ mouseButtonRelease()

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

Definition at line 134 of file MosaicTool.cpp.

◆ mouseDoubleClick()

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

Definition at line 126 of file MosaicTool.cpp.

◆ mouseEnter()

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

Definition at line 81 of file MosaicTool.h.

◆ mouseLeave

void Isis::MosaicTrackTool::mouseLeave ( )
virtualslot

Clears the labels if the mouse leaves the application.

Definition at line 90 of file MosaicTrackTool.cpp.

References clearLabels().

◆ mouseMove

void Isis::MosaicTrackTool::mouseMove ( QPointF p)
virtualslot

Definition at line 76 of file MosaicTrackTool.cpp.

◆ mouseWheel()

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

Definition at line 139 of file MosaicTool.cpp.

◆ projectPvlObjectName()

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

Reimplemented in Isis::MosaicGridTool.

Definition at line 110 of file MosaicTool.cpp.

◆ rubberBandComplete()

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

Reimplemented in Isis::MosaicZoomTool.

Definition at line 88 of file MosaicTool.h.

◆ toolBarDestroyed()

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

Definition at line 165 of file MosaicTool.cpp.

◆ toPvl()

PvlObject Isis::MosaicTool::toPvl ( ) const
virtualinherited

Reimplemented in Isis::MosaicGridTool.

Definition at line 89 of file MosaicTool.cpp.

◆ updateLabels()

void Isis::MosaicTrackTool::updateLabels ( QPointF p)

Updates the tracking labels.

Displays the Planetocentric Latitude and 360 Positive East Longitude in the lower right corner of the window.

Parameters
p

Definition at line 122 of file MosaicTrackTool.cpp.

References clearLabels(), p_latLabel, p_lonLabel, p_xLabel, p_yLabel, and Isis::Projection::Triaxial.

◆ updateTool

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

Definition at line 80 of file MosaicTool.h.

Member Data Documentation

◆ p_active

bool Isis::MosaicTool::p_active
privateinherited

Is the tool active?

Definition at line 120 of file MosaicTool.h.

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

◆ p_latLabel

QLabel* Isis::MosaicTrackTool::p_latLabel
private

Latitude label.

Definition at line 38 of file MosaicTrackTool.h.

Referenced by clearLabels(), MosaicTrackTool(), and updateLabels().

◆ p_lonLabel

QLabel* Isis::MosaicTrackTool::p_lonLabel
private

Longitude label.

Definition at line 39 of file MosaicTrackTool.h.

Referenced by clearLabels(), MosaicTrackTool(), and updateLabels().

◆ p_primaryAction

QAction* Isis::MosaicTool::p_primaryAction
privateinherited

Definition at line 124 of file MosaicTool.h.

◆ p_sbar

QStatusBar* Isis::MosaicTrackTool::p_sbar
private

Status bar.

Definition at line 37 of file MosaicTrackTool.h.

Referenced by MosaicTrackTool().

◆ p_toolBarAction

QAction* Isis::MosaicTool::p_toolBarAction
privateinherited

Definition at line 125 of file MosaicTool.h.

◆ p_widget

MosaicSceneWidget* Isis::MosaicTool::p_widget
privateinherited

Definition at line 122 of file MosaicTool.h.

◆ p_xLabel

QLabel* Isis::MosaicTrackTool::p_xLabel
private

Latitude label.

Definition at line 40 of file MosaicTrackTool.h.

Referenced by clearLabels(), MosaicTrackTool(), and updateLabels().

◆ p_yLabel

QLabel* Isis::MosaicTrackTool::p_yLabel
private

Longitude label.

Definition at line 41 of file MosaicTrackTool.h.

Referenced by clearLabels(), MosaicTrackTool(), and updateLabels().


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