Isis 3 Programmer Reference
Isis::MeasureTool Class Reference

Tool for measuring distances. More...

#include <MeasureTool.h>

Inheritance diagram for Isis::MeasureTool:
Inheritance graph
Collaboration diagram for Isis::MeasureTool:
Collaboration graph

Public Slots

void activate (bool)
 Activates the tool.
 
void setCubeViewport (MdiCubeViewport *cvp)
 Sets the current viewport to the given cvp.
 

Signals

void clearWarningSignal ()
 
void toolActivated ()
 
void viewportChanged ()
 

Public Member Functions

 MeasureTool (QWidget *parent)
 MeasureTool constructor.
 
void addTo (QMenu *menu)
 Adds the measure action to the given menu.
 
QString menuName () const
 Returns the menu name.
 
void addTo (ViewportMainWindow *mw)
 Adds the tool to the application.
 
void addTo (ToolPad *toolpad)
 Adds the tool to the toolpad.
 
virtual void addTo (Workspace *ws)
 Adds the given workspace to the cubeviewport list.
 
virtual void addToPermanent (QToolBar *toolbar)
 
void addToActive (QToolBar *toolbar)
 
QString toolIconDir () const
 returns the path to the icon directory.
 
virtual void paintViewport (MdiCubeViewport *vp, QPainter *painter)
 
RubberBandToolrubberBandTool ()
 
void setList (ToolList *currentList)
 

Protected Types

typedef QVector< MdiCubeViewport * > CubeViewportList
 A list of cubeviewports.
 

Protected Slots

virtual void rubberBandComplete ()
 Called when the rubberBanding by the user is finished.
 
virtual void updateMeasure ()
 Updates the Measure specifications.
 
virtual void mouseLeave ()
 Mouse leave event.
 
virtual void screenPixelsChanged ()
 This is called when actions change which pixels from the cube are displayed.
 
virtual void mouseEnter ()
 
virtual void mouseMove (QPoint p)
 
virtual void mouseMove (QPoint p, Qt::MouseButton)
 

Protected Member Functions

QWidgetcreateToolBarWidget (QStackedWidget *parent)
 Creates the widget (button) that goes on the tool bar.
 
QActiontoolPadAction (ToolPad *pad)
 Add the measure tool action to the toolpad.
 
void updateTool ()
 Updates the measure tool.
 
void removeConnections (MdiCubeViewport *cvp)
 Removes the connection on the given cube viewport.
 
void enableRubberBandTool ()
 Enables/resets the rubberband tool.
 
virtual void mouseDoubleClick (QPoint p)
 
virtual void mouseButtonPress (QPoint p, Qt::MouseButton s)
 
virtual void mouseButtonRelease (QPoint p, Qt::MouseButton s)
 Resets the Warning to Nowarning when a different activity occurs on the application.
 
virtual void scaleChanged ()
 
virtual void stretchRequested (MdiCubeViewport *, int)
 
void registerTool (MdiCubeViewport *viewport)
 Registers the tool to the viewport.
 
MdiCubeViewportcubeViewport () const
 Return the current cubeviewport.
 
CubeViewportListcubeViewportList () const
 Return the list of cubeviewports.
 
virtual void addConnections (MdiCubeViewport *cvp)
 Anytime a tool is created, you must add the connections for it.
 
Workspaceworkspace ()
 

Private Types

enum  TableColumnsMap {
  FeatureName , FeatureType , LatitudeLongitude , SampleLine ,
  DistanceKm , DistanceM , DistancePix , AngleDeg ,
  AngleRad , AreaKm , AreaM , AreaPix ,
  Segments , Path , FileName , Notes
}
 Enum for all possible table columns. More...
 
enum  TableColumnIndex {
  StartLatIndex = 2 , StartLonIndex , EndLatIndex , EndLonIndex ,
  StartSampIndex , StartLineIndex , EndSampIndex , EndLineIndex ,
  DistanceKmIndex , DistanceMIndex , DistancePixIndex , AngleDegIndex ,
  AngleRadIndex , AreaKmIndex , AreaMIndex , AreaPixIndex ,
  PlanarDistanceIndex , SegmentsSumIndex , SegmentNumberIndex , PathIndex ,
  FileNameIndex
}
 Enum for storing all the indexes. More...
 

Private Slots

void updateUnitsCombo ()
 Updates the units combo box.
 
void updateDistEdit ()
 Change the value in the distance edit to match the units.
 

Private Member Functions

void addRow ()
 
void updateDist (MdiCubeViewport *cvp, int row)
 This method updates the distance variables.
 
void setDistances (MdiCubeViewport *cvp, QPoint lineStart, QPoint lineEnd)
 
void updateRow (int row)
 This method updates the row in the table window with the current measure information.
 
void updateRows (int row)
 This method is called instead of updateRows if the 'Show All Segment' checkbox is checked.
 
void initData (void)
 Initialize Class data.
 
void addViewportConnections ()
 Makes all the connections for the tool.
 
void removeViewportConnections ()
 Removes all the connections from the tool.
 
void enableToolBar ()
 Enables entire tool bar.
 
void disableToolBar ()
 Disables entire tool bar.
 

Private Attributes

QActionm_action
 Measure tool's action.
 
QLineEdit * m_distLineEdit
 Distance line edit.
 
QComboBoxm_unitsComboBox
 Units selection.
 
int miComboUnit
 
double m_startSamp
 starting sample
 
double m_endSamp
 ending sample
 
double m_startLine
 starting line
 
double m_endLine
 ending line
 
double m_startLat
 starting latitude
 
double m_endLat
 ending latitude
 
double m_startLon
 starting longitude
 
double m_endLon
 ending longitude
 
double m_kmDist
 distance in kilometers
 
double m_mDist
 distance in meters
 
double m_pixDist
 distance in pixels
 
double m_radAngle
 angle in radians
 
double m_degAngle
 angle in degrees
 
double m_kmArea
 area in kilometers
 
double m_mArea
 area in meters
 
double m_pixArea
 area in pixels
 
double m_kmPlanarDist
 distance estimate used when at least one point is on the body (km)
 
QList< double > m_distanceSegments
 
QList< double > m_pixDistSegments
 
QList< double > m_startSampSegments
 
QList< double > m_endSampSegments
 
QList< double > m_startLineSegments
 
QList< double > m_endLineSegments
 
QList< double > m_startLatSegments
 
QList< double > m_endLatSegments
 
QList< double > m_startLonSegments
 
QList< double > m_endLonSegments
 
int m_numLinked
 number of linked viewports
 
QString m_path
 filename path
 
QString m_fname
 filename
 
TableMainWindowm_tableWin
 table window
 
RubberBandComboBoxm_rubberBand
 rubberband combo box
 
QCheckBox * m_showAllSegments
 
MdiCubeViewportm_cvp
 current cubeviewport
 
Workspacem_workspace
 
bool m_active
 Is the tool acitve?
 
QWidgetm_toolBarWidget
 The tool bar on which this tool resides.
 
QActionm_toolPadAction
 The tool pad on which this tool resides.
 
QString m_toolIconDir
 The pathway to the icon directory.
 
ToolListm_toolList
 

Detailed Description

Tool for measuring distances.

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

2007-11-19 Stacy Alley added the capability of the qisis windows to remember size and location

2007-11-29 Stacy Alley replaced all the table stuff with the new TableMainWindow class.

2008-08-18 Christopher Austin Upgraded to geos3.0.0

2008-09-26 Steven Lambright Added Segmented line

2009-02-12 Steven Lambright Fixed bug where measure tool would not measure pixels for non-camera, non-projection cubes.

2010-02-17 Sharmila Prasad Fixed bug where the distance was calculated twice for a cube with both camera and projection. Also made changes to save the most recent selection (km,m,pixels) when different tool is selected

2010-06-26 Eric Hyer - Now uses MdiCubeViewport instead of CubeViewport. Fixed some include issues (some still remain!)

2011-09-20 Steven Lambright - Added some abstraction, fixed problems with segmented line and rectangle. Fixes #218.

2011-11-01 Steven Lambright - Fixed possible seg fault. References #205.

2012-11-30 Debbie A. Cook - Changed to use TProjection instead of Projection. References #775.

2014-02-07 Tracie Sucharski - Latitude and Longitude were swapped in the endpoints. Fixes #2032.

Definition at line 58 of file MeasureTool.h.

Member Typedef Documentation

◆ CubeViewportList

typedef QVector< MdiCubeViewport * > Isis::Tool::CubeViewportList
protectedinherited

A list of cubeviewports.

Definition at line 205 of file Tool.h.

Member Enumeration Documentation

◆ TableColumnIndex

Enum for storing all the indexes.

Enumerator
StartLatIndex 

Starting latitude index.

StartLonIndex 

Starting longitude index.

EndLatIndex 

Ending latitude index.

EndLonIndex 

Ending longitude index.

StartSampIndex 

Starting sample index.

StartLineIndex 

Starting line index.

EndSampIndex 

Ending sample index.

EndLineIndex 

Ending line index.

DistanceKmIndex 

Distance in kilometers index.

DistanceMIndex 

Distance in meters index.

DistancePixIndex 

Distance in pixels index.

AngleDegIndex 

Angle in degrees index.

AngleRadIndex 

Angle in radians index.

AreaKmIndex 

Area in kilometers index.

AreaMIndex 

Area in meters index.

AreaPixIndex 

Area in pixels index.

PlanarDistanceIndex 

Planar distance in kilometers.

SegmentsSumIndex 

Segment lengths in kilometers.

SegmentNumberIndex 

Segment number.

PathIndex 

FileName path index.

FileNameIndex 

FileName index.

Definition at line 125 of file MeasureTool.h.

◆ TableColumnsMap

Enum for all possible table columns.

Enumerator
FeatureName 

Feature name.

FeatureType 

Feature type.

LatitudeLongitude 

Latitude Longitude.

SampleLine 

Sample Line.

DistanceKm 

Distance in kilometers.

DistanceM 

Distance in meters.

DistancePix 

Distance in pixels.

AngleDeg 

Angle in degrees.

AngleRad 

Angle in radians.

AreaKm 

Area in kilometers.

AreaM 

Area in meters.

AreaPix 

Area in pixels.

Segments 

Segment lengths in kilometers.

Path 

FileName path.

FileName 

FileName.

Notes 

User input.

Definition at line 103 of file MeasureTool.h.

Constructor & Destructor Documentation

◆ MeasureTool()

Isis::MeasureTool::MeasureTool ( QWidget * parent)

Member Function Documentation

◆ activate

◆ addConnections()

virtual void Isis::Tool::addConnections ( MdiCubeViewport * cvp)
inlineprotectedvirtualinherited

Anytime a tool is created, you must add the connections for it.

Parameters
cvp

Reimplemented in Isis::TrackTool, and Isis::WindowTool.

Definition at line 239 of file Tool.h.

Referenced by Isis::Tool::addViewportConnections().

◆ addRow()

void Isis::MeasureTool::addRow ( )
private

Definition at line 557 of file MeasureTool.cpp.

◆ addTo() [1/4]

void Isis::MeasureTool::addTo ( QMenu * menu)
virtual

Adds the measure action to the given menu.

Parameters
menu

Reimplemented from Isis::Tool.

Definition at line 239 of file MeasureTool.cpp.

References m_action.

◆ addTo() [2/4]

void Isis::Tool::addTo ( ToolPad * toolpad)
inherited

Adds the tool to the toolpad.

Parameters
toolpad

Definition at line 98 of file Tool.cpp.

References Isis::Tool::activate(), Isis::Tool::m_toolPadAction, and Isis::Tool::toolPadAction().

◆ addTo() [3/4]

◆ addTo() [4/4]

void Isis::Tool::addTo ( Workspace * ws)
virtualinherited

Adds the given workspace to the cubeviewport list.

Parameters
ws

Reimplemented in Isis::EditTool, Isis::FileTool, Isis::SpecialPixelTool, and Isis::WindowTool.

Definition at line 45 of file Tool.cpp.

References Isis::Tool::registerTool(), and Isis::Tool::setCubeViewport().

◆ addToActive()

void Isis::Tool::addToActive ( QToolBar * toolbar)
inherited
Parameters
toolbar

Definition at line 112 of file Tool.cpp.

References Isis::Tool::createToolBarWidget(), Isis::Tool::disableToolBar(), and Isis::Tool::m_toolBarWidget.

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

◆ addToPermanent()

virtual void Isis::Tool::addToPermanent ( QToolBar * toolbar)
inlinevirtualinherited
Parameters
toolbar

Reimplemented in Isis::AdvancedTrackTool, Isis::BlinkTool, Isis::FileTool, Isis::HelpTool, Isis::SpecialPixelTool, and Isis::WindowTool.

Definition at line 97 of file Tool.h.

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

◆ addViewportConnections()

◆ createToolBarWidget()

QWidget * Isis::MeasureTool::createToolBarWidget ( QStackedWidget * parent)
protectedvirtual

◆ cubeViewport()

MdiCubeViewport * Isis::Tool::cubeViewport ( ) const
inlineprotectedinherited

Return the current cubeviewport.

Returns
CubeViewport*

Definition at line 197 of file Tool.h.

References Isis::Tool::m_cvp.

Referenced by Isis::TrackTool::addConnections(), Isis::WindowTool::addConnections(), Isis::StretchTool::advancedStretchChanged(), Isis::FindTool::centerLinkedViewports(), Isis::StretchTool::changeStretch(), Isis::BandTool::changeView(), Isis::BandTool::copyLinkedViewports(), Isis::StretchTool::deleteFromCube(), Isis::FileTool::discard(), Isis::Tool::enableToolBar(), Isis::FileTool::exportToList(), Isis::FileTool::exportView(), Isis::StatisticsTool::getStatistics(), Isis::FindTool::handleRecordClicked(), Isis::EditTool::LineToPoints(), Isis::StretchTool::loadStretchFromCube(), Isis::TrackTool::locateCursor(), Isis::SunShadowTool::mouseButtonPress(), Isis::EditTool::mouseButtonRelease(), Isis::ControlNetTool::mouseButtonRelease(), Isis::FeatureNomenclatureTool::mouseButtonRelease(), Isis::FindTool::mouseButtonRelease(), Isis::MatchTool::mouseButtonRelease(), Isis::QnetTool::mouseButtonRelease(), Isis::RubberBandTool::mouseButtonRelease(), Isis::StretchTool::mouseButtonRelease(), Isis::AdvancedTrackTool::mouseLeave(), Isis::SunShadowTool::mouseMove(), Isis::TrackTool::mouseMove(), Isis::RubberBandTool::mouseMove(), Isis::ScatterPlotTool::mouseMove(), Isis::LatLonGridTool::paintViewport(), Isis::FindTool::paintViewport(), Isis::RubberBandTool::paintViewport(), Isis::SunShadowTool::paintViewport(), Isis::FileTool::print(), Isis::SunShadowTool::recalculateShadowHeight(), Isis::EditTool::redoEdit(), Isis::FindTool::refresh(), Isis::HistogramTool::refreshPlot(), Isis::SpatialPlotTool::refreshPlot(), Isis::SpectralPlotTool::refreshPlot(), Isis::TrackTool::removeConnections(), Isis::WindowTool::removeConnections(), Isis::RubberBandTool::repaint(), Isis::WindowTool::resizeWindows(), Isis::EditTool::rubberBandComplete(), Isis::HistogramTool::rubberBandComplete(), rubberBandComplete(), Isis::StretchTool::rubberBandComplete(), Isis::ZoomTool::rubberBandComplete(), Isis::FileTool::save(), Isis::FileTool::saveAs(), Isis::FileTool::saveAsCubeByOption(), Isis::FileTool::saveAsReducedCube(), Isis::FileTool::saveInfo(), Isis::StretchTool::saveStretchToCube(), Isis::BandTool::setBandBin(), Isis::BandTool::setList(), Isis::StretchTool::setStretchAcrossBands(), Isis::StretchTool::setStretchAllViewports(), Isis::StretchTool::showAdvancedDialog(), Isis::ScatterPlotTool::showNewScatterPlotConfig(), Isis::StretchTool::stretchChanged(), Isis::StretchTool::stretchGlobal(), Isis::StretchTool::stretchGlobalAllBands(), Isis::StretchTool::stretchRegional(), Isis::EditTool::undoEdit(), Isis::StretchTool::updateAdvStretchDialogforAll(), Isis::StretchTool::updateHistograms(), Isis::TrackTool::updateLabels(), updateMeasure(), Isis::AdvancedTrackTool::updateRow(), Isis::AdvancedTrackTool::updateRow(), Isis::AbstractPlotTool::updateTool(), Isis::BandTool::updateTool(), Isis::BlinkTool::updateTool(), Isis::EditTool::updateTool(), Isis::FileTool::updateTool(), Isis::FindTool::updateTool(), Isis::LatLonGridTool::updateTool(), Isis::SpecialPixelTool::updateTool(), Isis::StretchTool::updateTool(), Isis::SunShadowTool::updateTool(), Isis::WindowTool::updateTool(), Isis::ZoomTool::updateTool(), Isis::AbstractPlotTool::viewportsToPlot(), Isis::EditTool::writeToCube(), Isis::ZoomTool::zoomBy(), Isis::ZoomTool::zoomFit(), Isis::ZoomTool::zoomFitHeight(), Isis::ZoomTool::zoomFitWidth(), and Isis::ZoomTool::zoomManual().

◆ cubeViewportList()

Tool::CubeViewportList * Isis::Tool::cubeViewportList ( ) const
protectedinherited

Return the list of cubeviewports.

Returns
CubeViewportList*

Definition at line 390 of file Tool.cpp.

References Isis::Workspace::cubeViewportList().

Referenced by Isis::BlinkTool::advance(), Isis::SpecialPixelTool::apply(), Isis::FindTool::centerLinkedViewports(), Isis::WindowTool::changeCursor(), Isis::FileTool::closeAll(), Isis::BandTool::copyAllViewports(), Isis::BandTool::copyLinkedViewports(), Isis::MatchTool::createPoint(), Isis::BlinkTool::eventFilter(), Isis::FeatureNomenclatureTool::featuresIdentified(), Isis::FeatureNomenclatureTool::findMissingNomenclature(), Isis::FeatureNomenclatureTool::findNomenclatureStateChanged(), Isis::FindTool::handleLinkClicked(), Isis::WindowTool::linkWindows(), Isis::RubberBandTool::mouseButtonRelease(), Isis::RubberBandTool::mouseMove(), Isis::QnetTool::openGround(), Isis::ControlNetTool::paintAllViewports(), Isis::MatchTool::paintAllViewports(), Isis::StereoTool::paintAllViewports(), Isis::QnetTool::paintAllViewports(), Isis::FindTool::refresh(), Isis::AbstractPlotTool::repaintViewports(), Isis::ScatterPlotTool::repaintViewports(), Isis::AbstractPlotTool::repaintViewports(), Isis::WindowTool::resizeWindows(), Isis::BlinkTool::reverse(), Isis::ZoomTool::rubberBandComplete(), Isis::MatchTool::serialNumberList(), Isis::ControlNetTool::setControlNet(), Isis::FeatureNomenclatureTool::setFontColor(), Isis::FeatureNomenclatureTool::setFontSize(), Isis::FeatureNomenclatureTool::setShowApprovedOnly(), Isis::StretchTool::setStretchAllViewports(), Isis::FeatureNomenclatureTool::setVectorType(), Isis::StretchTool::stretchGlobalAllViewports(), Isis::BlinkTool::toggleLink(), Isis::WindowTool::unlinkWindows(), updateMeasure(), Isis::AdvancedTrackTool::updateRow(), Isis::BlinkTool::updateTool(), Isis::FindTool::updateTool(), Isis::WindowTool::updateTool(), Isis::AbstractPlotTool::viewportsToPlot(), Isis::ZoomTool::zoomBy(), Isis::ZoomTool::zoomFit(), Isis::ZoomTool::zoomFitHeight(), Isis::ZoomTool::zoomFitWidth(), and Isis::ZoomTool::zoomManual().

◆ disableToolBar()

void Isis::Tool::disableToolBar ( )
privateinherited

Disables entire tool bar.

Definition at line 285 of file Tool.cpp.

References Isis::Tool::m_toolBarWidget.

Referenced by Isis::Tool::activate(), and Isis::Tool::addToActive().

◆ enableRubberBandTool()

void Isis::MeasureTool::enableRubberBandTool ( )
protectedvirtual

Enables/resets the rubberband tool.

Reimplemented from Isis::Tool.

Definition at line 325 of file MeasureTool.cpp.

References m_rubberBand, Isis::RubberBandComboBox::reset(), and Isis::RubberBandTool::setDrawActiveViewportOnly().

◆ enableToolBar()

void Isis::Tool::enableToolBar ( )
privateinherited

Enables entire tool bar.

Definition at line 297 of file Tool.cpp.

References Isis::Tool::cubeViewport(), Isis::Tool::m_toolBarWidget, and Isis::Tool::updateTool().

Referenced by Isis::Tool::activate(), and Isis::Tool::setCubeViewport().

◆ initData()

void Isis::MeasureTool::initData ( void )
private

Initialize Class data.

Author
sprasad (10/23/2009)

Definition at line 535 of file MeasureTool.cpp.

References m_degAngle, m_endLat, m_endLine, m_endLon, m_endSamp, m_kmArea, m_kmDist, m_kmPlanarDist, m_mArea, m_mDist, m_pixArea, m_pixDist, m_radAngle, m_startLat, m_startLine, m_startLon, m_startSamp, and Isis::Null.

Referenced by updateDist().

◆ menuName()

QString Isis::MeasureTool::menuName ( ) const
inlinevirtual

Returns the menu name.

Reimplemented from Isis::Tool.

Definition at line 66 of file MeasureTool.h.

◆ mouseButtonPress()

void Isis::Tool::mouseButtonPress ( QPoint p,
Qt::MouseButton s )
protectedvirtualinherited
Parameters
p
s

Definition at line 367 of file Tool.cpp.

Referenced by Isis::Tool::addViewportConnections(), and Isis::Tool::removeViewportConnections().

◆ mouseButtonRelease()

void Isis::Tool::mouseButtonRelease ( QPoint p,
Qt::MouseButton s )
protectedvirtualinherited

Resets the Warning to Nowarning when a different activity occurs on the application.

This is called by all the mouseButtonRelease events in all the tools.

Parameters
p
s

Reimplemented in Isis::FeatureNomenclatureTool.

Definition at line 380 of file Tool.cpp.

Referenced by Isis::Tool::addViewportConnections(), Isis::StretchTool::mouseButtonRelease(), and Isis::Tool::removeViewportConnections().

◆ mouseDoubleClick()

void Isis::Tool::mouseDoubleClick ( QPoint p)
protectedvirtualinherited
Parameters
p

Definition at line 358 of file Tool.cpp.

Referenced by Isis::Tool::addViewportConnections(), and Isis::Tool::removeViewportConnections().

◆ mouseEnter

virtual void Isis::Tool::mouseEnter ( )
inlineprotectedvirtualslotinherited

Definition at line 152 of file Tool.h.

◆ mouseLeave

void Isis::MeasureTool::mouseLeave ( )
protectedvirtualslot

Mouse leave event.

Definition at line 316 of file MeasureTool.cpp.

◆ mouseMove [1/2]

void Isis::Tool::mouseMove ( QPoint p)
protectedvirtualslotinherited
Parameters
p

Definition at line 352 of file Tool.cpp.

Referenced by Isis::Tool::addViewportConnections(), and Isis::Tool::removeViewportConnections().

◆ mouseMove [2/2]

virtual void Isis::Tool::mouseMove ( QPoint p,
Qt::MouseButton  )
inlineprotectedvirtualslotinherited

Definition at line 155 of file Tool.h.

◆ paintViewport()

virtual void Isis::Tool::paintViewport ( MdiCubeViewport * vp,
QPainter * painter )
inlinevirtualinherited

◆ registerTool()

void Isis::Tool::registerTool ( MdiCubeViewport * viewport)
protectedinherited

Registers the tool to the viewport.

Parameters
viewport

Definition at line 327 of file Tool.cpp.

References Isis::Tool::m_cvp, and Isis::MdiCubeViewport::registerTool().

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

◆ removeConnections()

void Isis::MeasureTool::removeConnections ( MdiCubeViewport * cvp)
protectedvirtual

Removes the connection on the given cube viewport.

Parameters
cvp

Reimplemented from Isis::Tool.

Definition at line 921 of file MeasureTool.cpp.

◆ removeViewportConnections()

void Isis::Tool::removeViewportConnections ( )
privateinherited

◆ rubberBandComplete

void Isis::MeasureTool::rubberBandComplete ( )
protectedvirtualslot

◆ rubberBandTool()

RubberBandTool * Isis::Tool::rubberBandTool ( )
inherited

Definition at line 57 of file Tool.cpp.

◆ scaleChanged()

virtual void Isis::Tool::scaleChanged ( )
inlineprotectedvirtualinherited

Definition at line 172 of file Tool.h.

◆ screenPixelsChanged

virtual void Isis::Tool::screenPixelsChanged ( )
inlineprotectedvirtualslotinherited

This is called when actions change which pixels from the cube are displayed.

Definition at line 148 of file Tool.h.

Referenced by Isis::Tool::addViewportConnections(), Isis::Tool::removeViewportConnections(), and Isis::FeatureNomenclatureTool::viewportDone().

◆ setCubeViewport

void Isis::Tool::setCubeViewport ( MdiCubeViewport * cvp)
slotinherited

◆ setDistances()

void Isis::MeasureTool::setDistances ( MdiCubeViewport * cvp,
QPoint lineStart,
QPoint lineEnd )
private

Definition at line 696 of file MeasureTool.cpp.

◆ setList()

void Isis::Tool::setList ( ToolList * currentList)
inherited

Definition at line 68 of file Tool.cpp.

◆ stretchRequested()

virtual void Isis::Tool::stretchRequested ( MdiCubeViewport * ,
int  )
inlineprotectedvirtualinherited

Reimplemented in Isis::StretchTool.

Definition at line 177 of file Tool.h.

◆ toolIconDir()

QString Isis::Tool::toolIconDir ( ) const
inlineinherited

◆ toolPadAction()

QAction * Isis::MeasureTool::toolPadAction ( ToolPad * toolpad)
protectedvirtual

Add the measure tool action to the toolpad.

Parameters
toolpad
Returns
QAction*

Reimplemented from Isis::Tool.

Definition at line 89 of file MeasureTool.cpp.

References Isis::Tool::toolIconDir().

◆ updateDist()

◆ updateDistEdit

void Isis::MeasureTool::updateDistEdit ( )
privateslot

Change the value in the distance edit to match the units.

Definition at line 847 of file MeasureTool.cpp.

References m_degAngle, m_distLineEdit, m_kmArea, m_kmDist, m_kmPlanarDist, m_mArea, m_mDist, m_pixArea, m_pixDist, m_radAngle, m_unitsComboBox, and Isis::Null.

Referenced by createToolBarWidget(), and updateDist().

◆ updateMeasure

void Isis::MeasureTool::updateMeasure ( )
protectedvirtualslot

◆ updateRow()

◆ updateRows()

void Isis::MeasureTool::updateRows ( int row)
private

◆ updateTool()

void Isis::MeasureTool::updateTool ( )
protectedvirtual

Updates the measure tool.

Reimplemented from Isis::Tool.

Definition at line 931 of file MeasureTool.cpp.

References m_distLineEdit.

◆ updateUnitsCombo

void Isis::MeasureTool::updateUnitsCombo ( void )
privateslot

Updates the units combo box.

Definition at line 181 of file MeasureTool.cpp.

References m_unitsComboBox.

Referenced by createToolBarWidget().

◆ workspace()

Workspace * Isis::Tool::workspace ( )
protectedinherited

Definition at line 344 of file Tool.cpp.

Member Data Documentation

◆ m_action

QAction* Isis::MeasureTool::m_action
private

Measure tool's action.

Definition at line 88 of file MeasureTool.h.

Referenced by addTo(), and MeasureTool().

◆ m_active

bool Isis::Tool::m_active
privateinherited

Is the tool acitve?

Definition at line 264 of file Tool.h.

Referenced by Isis::Tool::activate(), Isis::Tool::setCubeViewport(), and Isis::Tool::Tool().

◆ m_cvp

◆ m_degAngle

double Isis::MeasureTool::m_degAngle
private

angle in degrees

Definition at line 161 of file MeasureTool.h.

Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().

◆ m_distanceSegments

QList<double> Isis::MeasureTool::m_distanceSegments
private

Definition at line 168 of file MeasureTool.h.

◆ m_distLineEdit

QLineEdit* Isis::MeasureTool::m_distLineEdit
private

Distance line edit.

Definition at line 89 of file MeasureTool.h.

Referenced by createToolBarWidget(), updateDist(), updateDistEdit(), and updateTool().

◆ m_endLat

double Isis::MeasureTool::m_endLat
private

ending latitude

Definition at line 154 of file MeasureTool.h.

Referenced by initData(), updateDist(), and updateRow().

◆ m_endLatSegments

QList<double> Isis::MeasureTool::m_endLatSegments
private

Definition at line 175 of file MeasureTool.h.

◆ m_endLine

double Isis::MeasureTool::m_endLine
private

ending line

Definition at line 152 of file MeasureTool.h.

Referenced by initData(), updateDist(), and updateRow().

◆ m_endLineSegments

QList<double> Isis::MeasureTool::m_endLineSegments
private

Definition at line 173 of file MeasureTool.h.

◆ m_endLon

double Isis::MeasureTool::m_endLon
private

ending longitude

Definition at line 156 of file MeasureTool.h.

Referenced by initData(), updateDist(), and updateRow().

◆ m_endLonSegments

QList<double> Isis::MeasureTool::m_endLonSegments
private

Definition at line 177 of file MeasureTool.h.

◆ m_endSamp

double Isis::MeasureTool::m_endSamp
private

ending sample

Definition at line 150 of file MeasureTool.h.

Referenced by initData(), updateDist(), and updateRow().

◆ m_endSampSegments

QList<double> Isis::MeasureTool::m_endSampSegments
private

Definition at line 171 of file MeasureTool.h.

◆ m_fname

QString Isis::MeasureTool::m_fname
private

filename

Definition at line 182 of file MeasureTool.h.

Referenced by updateDist(), updateRow(), and updateRows().

◆ m_kmArea

double Isis::MeasureTool::m_kmArea
private

area in kilometers

Definition at line 162 of file MeasureTool.h.

Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().

◆ m_kmDist

double Isis::MeasureTool::m_kmDist
private

distance in kilometers

Definition at line 157 of file MeasureTool.h.

Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().

◆ m_kmPlanarDist

double Isis::MeasureTool::m_kmPlanarDist
private

distance estimate used when at least one point is on the body (km)

Definition at line 165 of file MeasureTool.h.

Referenced by initData(), updateDistEdit(), and updateRow().

◆ m_mArea

double Isis::MeasureTool::m_mArea
private

area in meters

Definition at line 163 of file MeasureTool.h.

Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().

◆ m_mDist

double Isis::MeasureTool::m_mDist
private

distance in meters

Definition at line 158 of file MeasureTool.h.

Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().

◆ m_numLinked

int Isis::MeasureTool::m_numLinked
private

number of linked viewports

Definition at line 180 of file MeasureTool.h.

Referenced by updateMeasure().

◆ m_path

QString Isis::MeasureTool::m_path
private

filename path

Definition at line 181 of file MeasureTool.h.

Referenced by updateDist(), updateRow(), and updateRows().

◆ m_pixArea

double Isis::MeasureTool::m_pixArea
private

area in pixels

Definition at line 164 of file MeasureTool.h.

Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().

◆ m_pixDist

double Isis::MeasureTool::m_pixDist
private

distance in pixels

Definition at line 159 of file MeasureTool.h.

Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().

◆ m_pixDistSegments

QList<double> Isis::MeasureTool::m_pixDistSegments
private

Definition at line 169 of file MeasureTool.h.

◆ m_radAngle

double Isis::MeasureTool::m_radAngle
private

angle in radians

Definition at line 160 of file MeasureTool.h.

Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().

◆ m_rubberBand

RubberBandComboBox* Isis::MeasureTool::m_rubberBand
private

rubberband combo box

Definition at line 185 of file MeasureTool.h.

Referenced by createToolBarWidget(), enableRubberBandTool(), and MeasureTool().

◆ m_showAllSegments

QCheckBox* Isis::MeasureTool::m_showAllSegments
private

Definition at line 186 of file MeasureTool.h.

◆ m_startLat

double Isis::MeasureTool::m_startLat
private

starting latitude

Definition at line 153 of file MeasureTool.h.

Referenced by initData(), updateDist(), and updateRow().

◆ m_startLatSegments

QList<double> Isis::MeasureTool::m_startLatSegments
private

Definition at line 174 of file MeasureTool.h.

◆ m_startLine

double Isis::MeasureTool::m_startLine
private

starting line

Definition at line 151 of file MeasureTool.h.

Referenced by initData(), updateDist(), and updateRow().

◆ m_startLineSegments

QList<double> Isis::MeasureTool::m_startLineSegments
private

Definition at line 172 of file MeasureTool.h.

◆ m_startLon

double Isis::MeasureTool::m_startLon
private

starting longitude

Definition at line 155 of file MeasureTool.h.

Referenced by initData(), updateDist(), and updateRow().

◆ m_startLonSegments

QList<double> Isis::MeasureTool::m_startLonSegments
private

Definition at line 176 of file MeasureTool.h.

◆ m_startSamp

double Isis::MeasureTool::m_startSamp
private

starting sample

Definition at line 149 of file MeasureTool.h.

Referenced by initData(), updateDist(), and updateRow().

◆ m_startSampSegments

QList<double> Isis::MeasureTool::m_startSampSegments
private

Definition at line 170 of file MeasureTool.h.

◆ m_tableWin

TableMainWindow* Isis::MeasureTool::m_tableWin
private

table window

Definition at line 184 of file MeasureTool.h.

Referenced by createToolBarWidget(), MeasureTool(), rubberBandComplete(), updateMeasure(), updateRow(), and updateRows().

◆ m_toolBarWidget

QWidget* Isis::Tool::m_toolBarWidget
privateinherited

The tool bar on which this tool resides.

Definition at line 265 of file Tool.h.

Referenced by Isis::Tool::addToActive(), Isis::Tool::disableToolBar(), Isis::Tool::enableToolBar(), and Isis::Tool::Tool().

◆ m_toolIconDir

QString Isis::Tool::m_toolIconDir
privateinherited

The pathway to the icon directory.

Definition at line 267 of file Tool.h.

Referenced by Isis::Tool::Tool(), and Isis::Tool::toolIconDir().

◆ m_toolList

ToolList* Isis::Tool::m_toolList
privateinherited

Definition at line 268 of file Tool.h.

◆ m_toolPadAction

QAction* Isis::Tool::m_toolPadAction
privateinherited

The tool pad on which this tool resides.

Definition at line 266 of file Tool.h.

Referenced by Isis::Tool::activate(), Isis::Tool::addTo(), Isis::Tool::addViewportConnections(), and Isis::Tool::Tool().

◆ m_unitsComboBox

QComboBox* Isis::MeasureTool::m_unitsComboBox
private

Units selection.

Definition at line 90 of file MeasureTool.h.

Referenced by createToolBarWidget(), rubberBandComplete(), updateDistEdit(), and updateUnitsCombo().

◆ m_workspace

Workspace* Isis::Tool::m_workspace
privateinherited

Definition at line 262 of file Tool.h.

◆ miComboUnit

int Isis::MeasureTool::miComboUnit
private

Definition at line 91 of file MeasureTool.h.


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