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. More...
 
void activate (bool)
 Activates the tool. More...
 

Signals

void activated (bool)
 

Public Member Functions

 MosaicTrackTool (MosaicSceneWidget *, QStatusBar *)
 MosaicTrackTool constructor. More...
 
void updateLabels (QPointF p)
 Updates the tracking labels. More...
 
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 ()
 
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. More...
 

Private Slots

void labelDestroyed (QObject *)
 

Private Member Functions

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

Private Attributes

QStatusBar * p_sbar
 Status bar. More...
 
QLabel * p_latLabel
 Latitude label. More...
 
QLabel * p_lonLabel
 Longitude label. More...
 
QLabel * p_xLabel
 Latitude label. More...
 
QLabel * p_yLabel
 Longitude label. More...
 
bool p_active
 Is the tool active? More...
 
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.

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.

◆ 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.

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

◆ enableToolBar()

void Isis::MosaicTool::enableToolBar ( )
privateinherited

Enables entire tool bar.

Definition at line 185 of file MosaicTool.cpp.

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

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

Definition at line 192 of file MosaicTool.cpp.

◆ isActive()

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

◆ 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().

◆ 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(), Isis::TProjection::Latitude(), Isis::TProjection::Longitude(), p_latLabel, p_lonLabel, p_xLabel, p_yLabel, Isis::Projection::projectionType(), and Isis::Projection::Triaxial.

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::activate(), and 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_sbar

QStatusBar* Isis::MosaicTrackTool::p_sbar
private

Status bar.

Definition at line 37 of file MosaicTrackTool.h.

Referenced by MosaicTrackTool().

◆ 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: