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, 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 | |
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... | |
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... | |
TableMainWindow * | m_tableWin |
table window More... | |
RubberBandComboBox * | m_rubberBand |
rubberband combo box More... | |
QCheckBox * | m_showAllSegments |
MdiCubeViewport * | m_cvp |
current cubeviewport More... | |
Workspace * | m_workspace |
bool | m_active |
Is the tool acitve? More... | |
QWidget * | m_toolBarWidget |
The tool bar on which this tool resides. More... | |
QAction * | m_toolPadAction |
The tool pad on which this tool resides. More... | |
QString | m_toolIconDir |
The pathway to the icon directory. More... | |
ToolList * | m_toolList |
Tool for measuring distances.
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. |
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.
|
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 40 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::WindowTool, and Isis::TrackTool.
Definition at line 239 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 240 of file MeasureTool.cpp.
References m_action.
|
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().
|
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::EditTool::addTo(), Isis::FileTool::addTo(), Isis::SpecialPixelTool::addTo(), Isis::WindowTool::addTo(), Isis::ViewportMainWindow::ViewportMainWindow(), and Isis::Workspace::Workspace().
|
virtualinherited |
Adds the given workspace to the cubeviewport list.
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().
|
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::WindowTool, Isis::SpecialPixelTool, Isis::HelpTool, Isis::FileTool, Isis::BlinkTool, and Isis::AdvancedTrackTool.
Definition at line 97 of file Tool.h.
Referenced by Isis::Tool::addTo(), and Isis::Workspace::Workspace().
|
privateinherited |
Makes all the connections for the tool.
Definition at line 187 of file Tool.cpp.
References Isis::Tool::addConnections(), Isis::Tool::enableRubberBandTool(), Isis::Tool::m_cvp, Isis::Tool::m_toolPadAction, Isis::Tool::mouseButtonPress(), Isis::Tool::mouseButtonRelease(), Isis::Tool::mouseDoubleClick(), Isis::Tool::mouseMove(), and Isis::Tool::screenPixelsChanged().
Referenced by Isis::Tool::activate(), and Isis::Tool::setCubeViewport().
|
protectedvirtual |
Creates the widget (button) that goes on the tool bar.
parent |
Reimplemented from Isis::Tool.
Definition at line 113 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 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().
|
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::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().
|
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().
|
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().
|
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().
|
private |
Initialize Class data.
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().
|
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 317 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::SunShadowTool, Isis::ScatterPlotTool, Isis::RubberBandTool, Isis::FindTool, Isis::FeatureNomenclatureTool, Isis::AbstractPlotTool, Isis::MatchTool, Isis::StereoTool, Isis::QnetTool, and Isis::ControlNetTool.
|
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 923 of file MeasureTool.cpp.
|
privateinherited |
Removes all the connections from the tool.
Definition at line 238 of file Tool.cpp.
References Isis::Tool::m_cvp, Isis::Tool::mouseButtonPress(), Isis::Tool::mouseButtonRelease(), Isis::Tool::mouseDoubleClick(), Isis::Tool::mouseMove(), Isis::Tool::removeConnections(), and Isis::Tool::screenPixelsChanged().
Referenced by Isis::Tool::activate(), and Isis::Tool::setCubeViewport().
|
protectedvirtualslot |
Called when the rubberBanding by the user is finished.
Definition at line 290 of file MeasureTool.cpp.
References AngleDegIndex, AreaPixIndex, Isis::Tool::cubeViewport(), Isis::TableMainWindow::currentRow(), m_tableWin, m_unitsComboBox, 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 148 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 113 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::BandTool::createToolBarWidget(), Isis::EditTool::createToolBarWidget(), Isis::FindTool::createToolBarWidget(), Isis::PanTool::createToolBarWidget(), Isis::StereoTool::createToolBarWidget(), Isis::StretchTool::createToolBarWidget(), Isis::ZoomTool::createToolBarWidget(), Isis::FileTool::FileTool(), Isis::FindTool::FindTool(), Isis::HistogramTool::HistogramTool(), Isis::SpecialPixelTool::SpecialPixelTool(), Isis::RubberBandComboBox::toolIconDir(), Isis::BandTool::toolPadAction(), Isis::ControlNetTool::toolPadAction(), Isis::EditTool::toolPadAction(), Isis::FeatureNomenclatureTool::toolPadAction(), Isis::HistogramTool::toolPadAction(), Isis::MatchTool::toolPadAction(), toolPadAction(), Isis::PanTool::toolPadAction(), Isis::QnetTool::toolPadAction(), Isis::ScatterPlotTool::toolPadAction(), Isis::SpatialPlotTool::toolPadAction(), Isis::SpectralPlotTool::toolPadAction(), Isis::StereoTool::toolPadAction(), Isis::StretchTool::toolPadAction(), Isis::SunShadowTool::toolPadAction(), Isis::FindTool::toolPadAction(), Isis::StatisticsTool::toolPadAction(), Isis::ZoomTool::toolPadAction(), Isis::WindowTool::WindowTool(), and Isis::ZoomTool::ZoomTool().
Add the measure tool action to the toolpad.
toolpad |
Reimplemented from Isis::Tool.
Definition at line 90 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 580 of file MeasureTool.cpp.
References Isis::CubeViewport::camera(), Isis::CubeViewport::cube(), Isis::Angle::degrees(), Isis::FileName::expanded(), 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 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().
|
protectedvirtualslot |
Updates the Measure specifications.
Definition at line 249 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 341 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_kmPlanarDist, 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, PlanarDistanceIndex, 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 446 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 933 of file MeasureTool.cpp.
References m_distLineEdit.
|
privateslot |
Updates the units combo box.
Definition at line 182 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().
|
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().
|
privateinherited |
current cubeviewport
Definition at line 261 of file Tool.h.
Referenced by Isis::Tool::addViewportConnections(), Isis::Tool::cubeViewport(), Isis::Tool::registerTool(), Isis::Tool::removeViewportConnections(), Isis::Tool::setCubeViewport(), and Isis::Tool::Tool().
|
private |
angle in degrees
Definition at line 161 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 154 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
ending line
Definition at line 152 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
ending longitude
Definition at line 156 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
ending sample
Definition at line 150 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
filename
Definition at line 182 of file MeasureTool.h.
Referenced by updateDist(), updateRow(), and updateRows().
|
private |
area in kilometers
Definition at line 162 of file MeasureTool.h.
Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().
|
private |
distance in kilometers
Definition at line 157 of file MeasureTool.h.
Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().
|
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().
|
private |
area in meters
Definition at line 163 of file MeasureTool.h.
Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().
|
private |
distance in meters
Definition at line 158 of file MeasureTool.h.
Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().
|
private |
number of linked viewports
Definition at line 180 of file MeasureTool.h.
Referenced by updateMeasure().
|
private |
filename path
Definition at line 181 of file MeasureTool.h.
Referenced by updateDist(), updateRow(), and updateRows().
|
private |
area in pixels
Definition at line 164 of file MeasureTool.h.
Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().
|
private |
distance in pixels
Definition at line 159 of file MeasureTool.h.
Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().
|
private |
angle in radians
Definition at line 160 of file MeasureTool.h.
Referenced by initData(), updateDist(), updateDistEdit(), and updateRow().
|
private |
rubberband combo box
Definition at line 185 of file MeasureTool.h.
Referenced by createToolBarWidget(), enableRubberBandTool(), and MeasureTool().
|
private |
starting latitude
Definition at line 153 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
starting line
Definition at line 151 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
starting longitude
Definition at line 155 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
starting sample
Definition at line 149 of file MeasureTool.h.
Referenced by initData(), updateDist(), and updateRow().
|
private |
table window
Definition at line 184 of file MeasureTool.h.
Referenced by createToolBarWidget(), MeasureTool(), rubberBandComplete(), updateMeasure(), updateRow(), and updateRows().
|
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().
|
privateinherited |
The pathway to the icon directory.
Definition at line 267 of file Tool.h.
Referenced by Isis::Tool::Tool(), and Isis::Tool::toolIconDir().
|
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().
|
private |
Units selection.
Definition at line 90 of file MeasureTool.h.
Referenced by createToolBarWidget(), rubberBandComplete(), updateDistEdit(), and updateUnitsCombo().