Isis 3 Programmer Reference
|
Tool for measuring distances. More...
#include <MeasureTool.h>
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) |
RubberBandTool * | rubberBandTool () |
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 | |
QWidget * | createToolBarWidget (QStackedWidget *parent) |
Creates the widget (button) that goes on the tool bar. More... | |
QAction * | toolPadAction (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... | |
MdiCubeViewport * | cubeViewport () const |
Return the current cubeviewport. More... | |
CubeViewportList * | cubeViewportList () 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... | |
Workspace * | workspace () |
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, 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... | |
Private Attributes | |
QAction * | m_action |
Measure tool's action. More... | |
QLineEdit * | m_distLineEdit |
Distance line edit. More... | |
QComboBox * | m_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... | |
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... | |
TableMainWindow * | m_tableWin |
table window More... | |
RubberBandComboBox * | m_rubberBand |
rubberband combo box More... | |
QCheckBox * | m_showAllSegments |
Tool for measuring distances.
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.
|
protectedinherited |
|
private |
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. |
SegmentsSumIndex | Segment lengths in kilometers. |
SegmentNumberIndex | Segment number. |
PathIndex | FileName path index. |
FileNameIndex | FileName index. |
Definition at line 125 of file MeasureTool.h.
|
private |
Enum for all possible table columns.
Enumerator | |
---|---|
FeatureName | Feature name. |
FeatureType | Feature type. |
LatitudeLongitude | |
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 | |
Notes | User input. |
Definition at line 103 of file MeasureTool.h.
Isis::MeasureTool::MeasureTool | ( | QWidget * | parent | ) |
MeasureTool constructor.
parent |
Definition at line 39 of file MeasureTool.cpp.
References Isis::TableMainWindow::addToTable(), m_action, m_rubberBand, m_tableWin, Isis::TableMainWindow::setStatusMessage(), and Isis::TableMainWindow::setTrackListItems().
|
slotinherited |
Activates the tool.
on |
Definition at line 131 of file Tool.cpp.
References Isis::Tool::addViewportConnections(), Isis::Tool::disableToolBar(), Isis::Tool::enableToolBar(), Isis::Tool::m_active, Isis::Tool::m_toolPadAction, and Isis::Tool::removeViewportConnections().
Referenced by Isis::Tool::addTo(), Isis::AdvancedTrackTool::AdvancedTrackTool(), Isis::RubberBandTool::disable(), Isis::RubberBandTool::enable(), Isis::AdvancedTrackTool::eventFilter(), Isis::FileTool::FileTool(), Isis::RubberBandTool::RubberBandTool(), Isis::TrackTool::TrackTool(), Isis::WindowTool::WindowTool(), and Isis::Workspace::Workspace().
|
inlineprotectedvirtualinherited |
Anytime a tool is created, you must add the connections for it.
cvp |
Reimplemented in Isis::TrackTool, and Isis::WindowTool.
Definition at line 253 of file Tool.h.
Referenced by Isis::Tool::addViewportConnections().
|
virtual |
Adds the measure action to the given menu.
menu |
Reimplemented from Isis::Tool.
Definition at line 228 of file MeasureTool.cpp.
References m_action.
|
inherited |
Adds the tool to the application.
pViewPortMnWin |
Definition at line 78 of file Tool.cpp.
References Isis::ViewportMainWindow::activeToolBar(), Isis::Tool::addToActive(), Isis::Tool::addToPermanent(), Isis::ViewportMainWindow::getMenu(), Isis::Tool::menuName(), Isis::ViewportMainWindow::permanentToolBar(), Isis::ViewportMainWindow::toolPad(), and Isis::ViewportMainWindow::workspace().
Referenced by Isis::WindowTool::addTo(), Isis::SpecialPixelTool::addTo(), Isis::FileTool::addTo(), Isis::EditTool::addTo(), Isis::ViewportMainWindow::ViewportMainWindow(), and Isis::Workspace::Workspace().
|
inherited |
Adds the tool to the toolpad.
toolpad |
Definition at line 98 of file Tool.cpp.
References Isis::Tool::activate(), Isis::ToolPad::addAction(), Isis::Tool::m_toolPadAction, and Isis::Tool::toolPadAction().
|
virtualinherited |
Adds the given workspace to the cubeviewport list.
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().
|
inherited |
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(), and Isis::Workspace::Workspace().
|
inlinevirtualinherited |
toolbar |
Reimplemented in Isis::AdvancedTrackTool, Isis::FileTool, Isis::HelpTool, Isis::SpecialPixelTool, Isis::BlinkTool, and Isis::WindowTool.
Definition at line 111 of file Tool.h.
Referenced by Isis::Tool::addTo(), and Isis::Workspace::Workspace().
|
protectedvirtual |
Creates the widget (button) that goes on the tool bar.
parent |
Reimplemented from Isis::Tool.
Definition at line 111 of file MeasureTool.cpp.
References Isis::RubberBandComboBox::Angle, Isis::RubberBandComboBox::Circle, Isis::RubberBandComboBox::Ellipse, Isis::RubberBandComboBox::Line, m_distLineEdit, m_rubberBand, m_tableWin, m_unitsComboBox, Isis::RubberBandComboBox::Polygon, Isis::RubberBandComboBox::Rectangle, Isis::RubberBandComboBox::RotatedRectangle, Isis::RubberBandComboBox::SegmentedLine, updateDistEdit(), and updateUnitsCombo().
|
inlineprotectedinherited |
Return the current cubeviewport.
Definition at line 211 of file Tool.h.
References Isis::Tool::m_cvp.
Referenced by Isis::WindowTool::addConnections(), Isis::TrackTool::addConnections(), Isis::StretchTool::advancedStretchChanged(), Isis::FindTool::centerLinkedViewports(), Isis::StretchTool::changeStretch(), Isis::BandTool::changeView(), Isis::BandTool::copyLinkedViewports(), Isis::FileTool::discard(), Isis::Tool::enableToolBar(), Isis::FileTool::exportToList(), Isis::FileTool::exportView(), Isis::StatisticsTool::getStatistics(), Isis::FindTool::handleRecordClicked(), Isis::EditTool::LineToPoints(), Isis::TrackTool::locateCursor(), Isis::SunShadowTool::mouseButtonPress(), Isis::ControlNetTool::mouseButtonRelease(), Isis::RubberBandTool::mouseButtonRelease(), Isis::EditTool::mouseButtonRelease(), Isis::FeatureNomenclatureTool::mouseButtonRelease(), Isis::FindTool::mouseButtonRelease(), Isis::StretchTool::mouseButtonRelease(), Isis::MatchTool::mouseButtonRelease(), Isis::QnetTool::mouseButtonRelease(), Isis::AdvancedTrackTool::mouseLeave(), Isis::ScatterPlotTool::mouseMove(), Isis::SunShadowTool::mouseMove(), Isis::TrackTool::mouseMove(), Isis::RubberBandTool::mouseMove(), Isis::SunShadowTool::paintViewport(), Isis::RubberBandTool::paintViewport(), Isis::FindTool::paintViewport(), Isis::FileTool::print(), Isis::SunShadowTool::recalculateShadowHeight(), Isis::EditTool::redoEdit(), Isis::FindTool::refresh(), Isis::HistogramTool::refreshPlot(), Isis::SpatialPlotTool::refreshPlot(), Isis::SpectralPlotTool::refreshPlot(), Isis::WindowTool::removeConnections(), Isis::TrackTool::removeConnections(), Isis::RubberBandTool::repaint(), Isis::WindowTool::resizeWindows(), Isis::HistogramTool::rubberBandComplete(), rubberBandComplete(), Isis::ZoomTool::rubberBandComplete(), Isis::EditTool::rubberBandComplete(), Isis::StretchTool::rubberBandComplete(), Isis::FileTool::save(), Isis::FileTool::saveAs(), Isis::FileTool::saveAsCubeByOption(), Isis::FileTool::saveAsReducedCube(), Isis::FileTool::saveInfo(), 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::WindowTool::updateTool(), Isis::BlinkTool::updateTool(), Isis::SpecialPixelTool::updateTool(), Isis::BandTool::updateTool(), Isis::SunShadowTool::updateTool(), Isis::AbstractPlotTool::updateTool(), Isis::ZoomTool::updateTool(), Isis::FileTool::updateTool(), Isis::EditTool::updateTool(), Isis::FindTool::updateTool(), Isis::StretchTool::updateTool(), Isis::AbstractPlotTool::viewportsToPlot(), Isis::EditTool::writeToCube(), Isis::ZoomTool::zoomBy(), Isis::ZoomTool::zoomFit(), Isis::ZoomTool::zoomFitHeight(), Isis::ZoomTool::zoomFitWidth(), and Isis::ZoomTool::zoomManual().
|
protectedinherited |
Return the list of cubeviewports.
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::StereoTool::paintAllViewports(), Isis::ControlNetTool::paintAllViewports(), Isis::MatchTool::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::WindowTool::updateTool(), Isis::BlinkTool::updateTool(), Isis::FindTool::updateTool(), Isis::AbstractPlotTool::viewportsToPlot(), Isis::ZoomTool::zoomBy(), Isis::ZoomTool::zoomFit(), Isis::ZoomTool::zoomFitHeight(), Isis::ZoomTool::zoomFitWidth(), and Isis::ZoomTool::zoomManual().
|
protectedvirtual |
Enables/resets the rubberband tool.
Reimplemented from Isis::Tool.
Definition at line 314 of file MeasureTool.cpp.
References m_rubberBand, Isis::RubberBandComboBox::reset(), and Isis::RubberBandTool::setDrawActiveViewportOnly().
|
private |
Initialize Class data.
Definition at line 518 of file MeasureTool.cpp.
References m_degAngle, m_endLat, m_endLine, m_endLon, m_endSamp, m_kmArea, m_kmDist, m_mArea, m_mDist, m_pixArea, m_pixDist, m_radAngle, m_startLat, m_startLine, m_startLon, m_startSamp, and Isis::Null.
Referenced by updateDist().
|
inlinevirtual |
|
protectedvirtualinherited |
p | |
s |
Definition at line 367 of file Tool.cpp.
Referenced by Isis::Tool::addViewportConnections(), and Isis::Tool::removeViewportConnections().
|
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.
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().
|
protectedvirtualinherited |
p |
Definition at line 358 of file Tool.cpp.
Referenced by Isis::Tool::addViewportConnections(), and Isis::Tool::removeViewportConnections().
|
protectedvirtualslot |
Mouse leave event.
Definition at line 305 of file MeasureTool.cpp.
|
protectedvirtualslotinherited |
p |
Definition at line 352 of file Tool.cpp.
Referenced by Isis::Tool::addViewportConnections(), and Isis::Tool::removeViewportConnections().
|
inlinevirtualinherited |
vp | |
painter |
Reimplemented in Isis::QnetTool, Isis::MatchTool, Isis::FindTool, Isis::FeatureNomenclatureTool, Isis::RubberBandTool, Isis::ControlNetTool, Isis::StereoTool, Isis::SunShadowTool, Isis::AbstractPlotTool, and Isis::ScatterPlotTool.
|
protectedinherited |
Registers the tool to the viewport.
viewport |
Definition at line 327 of file Tool.cpp.
References Isis::Tool::m_cvp, and Isis::MdiCubeViewport::registerTool().
Referenced by Isis::Tool::addTo().
|
protectedvirtual |
Removes the connection on the given cube viewport.
cvp |
Reimplemented from Isis::Tool.
Definition at line 859 of file MeasureTool.cpp.
|
protectedvirtualslot |
Called when the rubberBanding by the user is finished.
Definition at line 278 of file MeasureTool.cpp.
References AngleDegIndex, AreaPixIndex, Isis::CubeViewport::camera(), Isis::Tool::cubeViewport(), Isis::TableMainWindow::currentRow(), m_tableWin, m_unitsComboBox, Isis::CubeViewport::projection(), Isis::TableMainWindow::setCurrentRow(), StartLineIndex, Isis::TableMainWindow::table(), and updateMeasure().
|
inlineprotectedvirtualslotinherited |
This is called when actions change which pixels from the cube are displayed.
Definition at line 162 of file Tool.h.
Referenced by Isis::Tool::addViewportConnections(), Isis::Tool::removeViewportConnections(), and Isis::FeatureNomenclatureTool::viewportDone().
|
slotinherited |
Sets the current viewport to the given cvp.
cvp |
Definition at line 160 of file Tool.cpp.
References Isis::Tool::addViewportConnections(), Isis::Tool::enableToolBar(), Isis::Tool::m_active, Isis::Tool::m_cvp, Isis::Tool::removeViewportConnections(), and Isis::Tool::updateTool().
Referenced by Isis::Tool::addTo(), and Isis::FileTool::closeAll().
|
inlineinherited |
returns the path to the icon directory.
Definition at line 127 of file Tool.h.
References Isis::Tool::m_toolIconDir.
Referenced by Isis::AdvancedTrackTool::AdvancedTrackTool(), Isis::BlinkTool::BlinkTool(), Isis::MatchTool::createActions(), Isis::QnetTool::createActions(), Isis::StereoTool::createMenus(), Isis::PanTool::createToolBarWidget(), Isis::BandTool::createToolBarWidget(), Isis::StereoTool::createToolBarWidget(), Isis::ZoomTool::createToolBarWidget(), Isis::EditTool::createToolBarWidget(), Isis::FindTool::createToolBarWidget(), Isis::StretchTool::createToolBarWidget(), Isis::FileTool::FileTool(), Isis::FindTool::FindTool(), Isis::HistogramTool::HistogramTool(), Isis::SpecialPixelTool::SpecialPixelTool(), Isis::RubberBandComboBox::toolIconDir(), Isis::PanTool::toolPadAction(), Isis::ScatterPlotTool::toolPadAction(), Isis::HistogramTool::toolPadAction(), Isis::BandTool::toolPadAction(), Isis::SunShadowTool::toolPadAction(), Isis::SpectralPlotTool::toolPadAction(), Isis::SpatialPlotTool::toolPadAction(), toolPadAction(), Isis::StereoTool::toolPadAction(), Isis::ControlNetTool::toolPadAction(), Isis::ZoomTool::toolPadAction(), Isis::EditTool::toolPadAction(), Isis::FeatureNomenclatureTool::toolPadAction(), Isis::StatisticsTool::toolPadAction(), Isis::FindTool::toolPadAction(), Isis::StretchTool::toolPadAction(), Isis::MatchTool::toolPadAction(), Isis::QnetTool::toolPadAction(), Isis::WindowTool::WindowTool(), and Isis::ZoomTool::ZoomTool().
Add the measure tool action to the toolpad.
toolpad |
Reimplemented from Isis::Tool.
Definition at line 88 of file MeasureTool.cpp.
References Isis::Tool::toolIconDir().
|
private |
This method updates the distance variables.
cvp | - Pointer to CubeViewPort |
row | - row index |
Definition at line 560 of file MeasureTool.cpp.
References Isis::CubeViewport::camera(), Isis::CubeViewport::cube(), Isis::Angle::degrees(), Isis::Cube::fileName(), Isis::RubberBandTool::geometry(), initData(), Isis::Distance::Kilometers, m_degAngle, m_distLineEdit, m_endLat, m_endLine, m_endLon, m_endSamp, m_fname, m_kmArea, m_kmDist, m_mArea, m_mDist, m_path, m_pixArea, m_pixDist, m_radAngle, m_startLat, m_startLine, m_startLon, m_startSamp, Isis::Distance::Meters, Isis::Distance::meters(), Isis::FileName::name(), Isis::Null, Isis::FileName::path(), Isis::Camera::PixelResolution(), Isis::Distance::Pixels, Isis::CubeViewport::projection(), Isis::Angle::radians(), Isis::Projection::Resolution(), Isis::CubeViewport::scale(), Isis::Camera::SetImage(), Isis::Projection::SetWorld(), updateDistEdit(), updateRow(), updateRows(), Isis::RubberBandTool::vertices(), and Isis::CubeViewport::viewportToCube().
Referenced by updateMeasure().
|
privateslot |
Change the value in the distance edit to match the units.
Definition at line 793 of file MeasureTool.cpp.
References m_degAngle, m_distLineEdit, m_kmArea, m_kmDist, m_mArea, m_mDist, m_pixArea, m_pixDist, m_radAngle, m_unitsComboBox, and Isis::Null.
Referenced by createToolBarWidget(), and updateDist().
|
protectedvirtualslot |
Updates the Measure specifications.
Definition at line 237 of file MeasureTool.cpp.
References Isis::TableMainWindow::clearRow(), Isis::Tool::cubeViewport(), Isis::Tool::cubeViewportList(), Isis::TableMainWindow::currentRow(), Isis::MdiCubeViewport::isLinked(), m_numLinked, m_tableWin, Isis::TableMainWindow::table(), and updateDist().
Referenced by rubberBandComplete().
|
private |
This method updates the row in the table window with the current measure information.
row |
Definition at line 329 of file MeasureTool.cpp.
References AngleDegIndex, AngleRadIndex, AreaKmIndex, AreaMIndex, AreaPixIndex, DistanceKmIndex, DistanceMIndex, DistancePixIndex, EndLatIndex, EndLineIndex, EndLonIndex, EndSampIndex, FileNameIndex, m_degAngle, m_endLat, m_endLine, m_endLon, m_endSamp, m_fname, m_kmArea, m_kmDist, m_mArea, m_mDist, m_path, m_pixArea, m_pixDist, m_radAngle, m_startLat, m_startLine, m_startLon, m_startSamp, m_tableWin, Isis::Null, PathIndex, StartLatIndex, StartLineIndex, StartLonIndex, StartSampIndex, and Isis::TableMainWindow::table().
Referenced by updateDist().
|
private |
This method is called instead of updateRows if the 'Show All Segment' checkbox is checked.
row |
Definition at line 427 of file MeasureTool.cpp.
References DistanceKmIndex, DistanceMIndex, DistancePixIndex, EndLatIndex, EndLineIndex, EndLonIndex, EndSampIndex, FileNameIndex, Isis::Distance::Kilometers, m_fname, m_path, m_tableWin, Isis::Null, PathIndex, SegmentNumberIndex, SegmentsSumIndex, StartLatIndex, StartLineIndex, StartLonIndex, StartSampIndex, and Isis::TableMainWindow::table().
Referenced by updateDist().
|
protectedvirtual |
Updates the measure tool.
Reimplemented from Isis::Tool.
Definition at line 869 of file MeasureTool.cpp.
References m_distLineEdit.
|
privateslot |
Updates the units combo box.
Definition at line 179 of file MeasureTool.cpp.
References m_unitsComboBox.
Referenced by createToolBarWidget().
|
private |
Measure tool's action.
Definition at line 88 of file MeasureTool.h.
Referenced by addTo(), and MeasureTool().
|
private |
angle in degrees
Definition at line 160 of file MeasureTool.h.
Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().
|
private |
Distance line edit.
Definition at line 89 of file MeasureTool.h.
Referenced by createToolBarWidget(), updateDist(), updateDistEdit(), and updateTool().
|
private |
ending latitude
Definition at line 153 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
ending line
Definition at line 151 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
ending longitude
Definition at line 155 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
ending sample
Definition at line 149 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
filename
Definition at line 179 of file MeasureTool.h.
Referenced by updateDist(), updateRow(), and updateRows().
|
private |
area in kilometers
Definition at line 161 of file MeasureTool.h.
Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().
|
private |
distance in kilometers
Definition at line 156 of file MeasureTool.h.
Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().
|
private |
area in meters
Definition at line 162 of file MeasureTool.h.
Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().
|
private |
distance in meters
Definition at line 157 of file MeasureTool.h.
Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().
|
private |
number of linked viewports
Definition at line 177 of file MeasureTool.h.
Referenced by updateMeasure().
|
private |
filename path
Definition at line 178 of file MeasureTool.h.
Referenced by updateDist(), updateRow(), and updateRows().
|
private |
area in pixels
Definition at line 163 of file MeasureTool.h.
Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().
|
private |
distance in pixels
Definition at line 158 of file MeasureTool.h.
Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().
|
private |
angle in radians
Definition at line 159 of file MeasureTool.h.
Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().
|
private |
rubberband combo box
Definition at line 182 of file MeasureTool.h.
Referenced by createToolBarWidget(), enableRubberBandTool(), and MeasureTool().
|
private |
starting latitude
Definition at line 152 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
starting line
Definition at line 150 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
starting longitude
Definition at line 154 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
starting sample
Definition at line 148 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
table window
Definition at line 181 of file MeasureTool.h.
Referenced by createToolBarWidget(), MeasureTool(), rubberBandComplete(), updateMeasure(), updateRow(), and updateRows().
|
private |
Units selection.
Definition at line 90 of file MeasureTool.h.
Referenced by createToolBarWidget(), rubberBandComplete(), updateDistEdit(), and updateUnitsCombo().