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. More...
 
void setCubeViewport (MdiCubeViewport *cvp)
 Sets the current viewport to the given cvp. More...
 

Signals

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

Public Member Functions

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

Protected Types

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

Protected Slots

virtual void rubberBandComplete ()
 Called when the rubberBanding by the user is finished. More...
 
virtual void updateMeasure ()
 Updates the Measure specifications. More...
 
virtual void mouseLeave ()
 Mouse leave event. More...
 
virtual void screenPixelsChanged ()
 This is called when actions change which pixels from the cube are displayed. More...
 
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. More...
 
QActiontoolPadAction (ToolPad *pad)
 Add the measure tool action to the toolpad. More...
 
void updateTool ()
 Updates the measure tool. More...
 
void removeConnections (MdiCubeViewport *cvp)
 Removes the connection on the given cube viewport. More...
 
void enableRubberBandTool ()
 Enables/resets the rubberband tool. More...
 
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. More...
 
virtual void scaleChanged ()
 
virtual void stretchRequested (MdiCubeViewport *, int)
 
void registerTool (MdiCubeViewport *viewport)
 Registers the tool to the viewport. More...
 
MdiCubeViewportcubeViewport () const
 Return the current cubeviewport. More...
 
CubeViewportListcubeViewportList () const
 Return the list of cubeviewports. More...
 
virtual void addConnections (MdiCubeViewport *cvp)
 Anytime a tool is created, you must add the connections for it. More...
 
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. More...
 
void updateDistEdit ()
 Change the value in the distance edit to match the units. More...
 

Private Member Functions

void addRow ()
 
void updateDist (MdiCubeViewport *cvp, int row)
 This method updates the distance variables. More...
 
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. More...
 
void updateRows (int row)
 This method is called instead of updateRows if the 'Show All Segment' checkbox is checked. More...
 
void initData (void)
 Initialize Class data. More...
 
void addViewportConnections ()
 Makes all the connections for the tool. More...
 
void removeViewportConnections ()
 Removes all the connections from the tool. More...
 
void enableToolBar ()
 Enables entire tool bar. More...
 
void disableToolBar ()
 Disables entire tool bar. More...
 

Private Attributes

QActionm_action
 Measure tool's action. More...
 
QLineEdit * m_distLineEdit
 Distance line edit. More...
 
QComboBoxm_unitsComboBox
 Units selection. More...
 
int miComboUnit
 
double m_startSamp
 starting sample More...
 
double m_endSamp
 ending sample More...
 
double m_startLine
 starting line More...
 
double m_endLine
 ending line More...
 
double m_startLat
 starting latitude More...
 
double m_endLat
 ending latitude More...
 
double m_startLon
 starting longitude More...
 
double m_endLon
 ending longitude More...
 
double m_kmDist
 distance in kilometers More...
 
double m_mDist
 distance in meters More...
 
double m_pixDist
 distance in pixels More...
 
double m_radAngle
 angle in radians More...
 
double m_degAngle
 angle in degrees More...
 
double m_kmArea
 area in kilometers More...
 
double m_mArea
 area in meters More...
 
double m_pixArea
 area in pixels More...
 
double m_kmPlanarDist
 distance estimate used when at least one point is on the body (km) More...
 
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 More...
 
QString m_path
 filename path More...
 
QString m_fname
 filename More...
 
TableMainWindowm_tableWin
 table window More...
 
RubberBandComboBoxm_rubberBand
 rubberband combo box More...
 
QCheckBox * m_showAllSegments
 
MdiCubeViewportm_cvp
 current cubeviewport More...
 
Workspacem_workspace
 
bool m_active
 Is the tool acitve? More...
 
QWidgetm_toolBarWidget
 The tool bar on which this tool resides. More...
 
QActionm_toolPadAction
 The tool pad on which this tool resides. More...
 
QString m_toolIconDir
 The pathway to the icon directory. More...
 
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
History:
2007-11-29 Stacy Alley replaced all the table stuff with the new TableMainWindow class.
History:
2008-08-18 Christopher Austin Upgraded to geos3.0.0
History:
2008-09-26 Steven Lambright Added Segmented line
History:
2009-02-12 Steven Lambright Fixed bug where measure tool would not measure pixels for non-camera, non-projection cubes.
History:
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
History:
2010-06-26 Eric Hyer - Now uses MdiCubeViewport instead of CubeViewport. Fixed some include issues (some still remain!)
History:
2011-09-20 Steven Lambright - Added some abstraction, fixed problems with segmented line and rectangle. Fixes #218.
History:
2011-11-01 Steven Lambright - Fixed possible seg fault. References #205.
History:
2012-11-30 Debbie A. Cook - Changed to use TProjection instead of Projection. References #775.
History:
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::WindowTool, and Isis::TrackTool.

Definition at line 239 of file Tool.h.

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

◆ 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 240 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::ToolPad::addAction(), 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::WindowTool, Isis::SpecialPixelTool, Isis::FileTool, and Isis::EditTool.

Definition at line 45 of file Tool.cpp.

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

◆ addToActive()

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

◆ addToPermanent()

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

◆ 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::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::AbstractPlotTool::updateTool(), Isis::BandTool::updateTool(), Isis::BlinkTool::updateTool(), Isis::EditTool::updateTool(), Isis::FileTool::updateTool(), Isis::FindTool::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::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 326 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 537 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().

◆ mouseLeave

void Isis::MeasureTool::mouseLeave ( )
protectedvirtualslot

Mouse leave event.

Definition at line 317 of file MeasureTool.cpp.

◆ mouseMove

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

◆ 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 923 of file MeasureTool.cpp.

◆ removeViewportConnections()

void Isis::Tool::removeViewportConnections ( )
privateinherited

◆ rubberBandComplete

void Isis::MeasureTool::rubberBandComplete ( )
protectedvirtualslot

◆ 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

◆ 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 90 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 849 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 933 of file MeasureTool.cpp.

References m_distLineEdit.

◆ updateUnitsCombo

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

Updates the units combo box.

Definition at line 182 of file MeasureTool.cpp.

References m_unitsComboBox.

Referenced by createToolBarWidget().

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_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_endLine

double Isis::MeasureTool::m_endLine
private

ending line

Definition at line 152 of file MeasureTool.h.

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

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

double Isis::MeasureTool::m_endSamp
private

ending sample

Definition at line 150 of file MeasureTool.h.

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

◆ 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_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_startLat

double Isis::MeasureTool::m_startLat
private

starting latitude

Definition at line 153 of file MeasureTool.h.

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

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

double Isis::MeasureTool::m_startLon
private

starting longitude

Definition at line 155 of file MeasureTool.h.

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

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


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