Isis 3 Programmer Reference
Isis::FindTool Class Reference

Tool to locate a point on a cube that is projected and/or has a camera model. More...

#include <FindTool.h>

Inheritance diagram for Isis::FindTool:
Inheritance graph
Collaboration diagram for Isis::FindTool:
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 recordPoint (QPoint p)
 Emitted when point should be recorded. More...
 
void clearWarningSignal ()
 
void toolActivated ()
 
void viewportChanged ()
 

Public Member Functions

 FindTool (QWidget *parent)
 Constructs a FindTool object. More...
 
void addTo (QMenu *menu)
 Adds the find tool to the menu. More...
 
void paintViewport (MdiCubeViewport *vp, QPainter *painter)
 This method paints the viewport. More...
 
QString menuName () const
 This method returns the menu name associated with this tool. 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...
 
RubberBandToolrubberBandTool ()
 
void setList (ToolList *currentList)
 

Protected Types

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

Protected Slots

void mouseButtonRelease (QPoint p, Qt::MouseButton s)
 Handles mouse clickes in the CubeViewport. More...
 
virtual void rubberBandComplete ()
 
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)
 
virtual void mouseLeave ()
 

Protected Member Functions

QActiontoolPadAction (ToolPad *toolpad)
 Adds the find tool to the toolpad. More...
 
QWidgetcreateToolBarWidget (QStackedWidget *parent)
 Creates the tool bar for the find tool. More...
 
void updateTool ()
 Overriden method to update this tool - Checks if cube is open and checks if the image has camera and/or projection or none and sets the flags accordingly. More...
 
void createDialog (QWidget *parent)
 Creates the dialog used by this tool. More...
 
virtual void mouseDoubleClick (QPoint p)
 
virtual void mouseButtonPress (QPoint p, Qt::MouseButton s)
 
virtual void updateMeasure ()
 
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...
 
virtual void removeConnections (MdiCubeViewport *cvp)
 Anytime a tool is created, you must be able to remove it's connections. More...
 
virtual void enableRubberBandTool ()
 Anytime a tool is created, you may use the rubber band tool. More...
 
Workspaceworkspace ()
 

Private Slots

void handleOkClicked ()
 Actions to take when the dialog's ok button is clicked. More...
 
void handleLinkClicked ()
 Links all cubes that have camera models or are map projections. More...
 
void handleRecordClicked ()
 Slot called when the record button is clicked. More...
 
void togglePointVisible ()
 toggles visibility of the red circle More...
 

Private Member Functions

void centerLinkedViewports ()
 centers all linked viewports More...
 
Distance distancePerPixel (MdiCubeViewport *viewport, double lat, double lon)
 This computes the distance covered by a pixel at the given lat/lon in the given viewport. More...
 
void refresh ()
 does a repaint for active viewport and also for any linked viewports More...
 

Private Attributes

QDialogp_dialog
 
QActionp_findPoint
 
QToolButton * p_showDialogButton
 
QToolButton * p_linkViewportsButton
 
QToolButton * p_togglePointVisibleButton
 
QCheckBox * p_syncScale
 
QLineEdit * p_statusEdit
 
QTabWidget * p_tabWidget
 
GroundTabp_groundTab
 
ImageTabp_imageTab
 
double p_line
 
double p_samp
 
double p_lat
 
double p_lon
 
bool p_pointVisible
 

Detailed Description

Tool to locate a point on a cube that is projected and/or has a camera model.

This tool is part of the Qisis namespace and allows the user to locate a point on a cube that has been projected and/or has a camera model. It also allows the user to link viewports and sync scales.

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

2008-06-25 Noah Hilt - Switched positions of the sample/line line edits and labels.

2010-03-08 - Jeannie Walldren - The recordAction() slot and recordPoint() signal were created to connect in qview to the AdvancedTrackTool record() slot.

2010-03-24 Sharmila Prasad - Enable FindTool for no camera and/or projection image

2010-05-06 Eric Hyer - Class redesigned to work with new CubeViewport

2010-05-18 Eric Hyer - Moved button for showing/hiding the red dot from the dialog to the toolbar

2010-06-26 Eric Hyer - Now uses MdiCubeViewport instead of CubeViewport. Also fixed include issues.

2011-09-22 Steven Lambright - Sync scale with projections now uses a better guess for the equivalent scale. Fixes #205.

2011-09-28 Steven Lambright - The last change would zoom the active viewport. This no longer happens. References #205

2011-11-01 Steven Lambright - Explicitly wrote out and fixed equations for sync scale. Fixes #205

2011-11-03 Steven Lambright - Fixed find given a line/sample. We were calling SetUniversalGround given DBL_MAX which causes an infinite loop. So when you looked for a line/sample it would infinite loop. Sync scale does not work for image coordinates - is it supposed to?

2013-01-10 Steven Lambright - Improved sync scale calculations to work in more cases. Fixes #953.

2014-05-19 Ian Humphrey - Fixed CTRL+F shortcut and menu option to open Find Tool's Find Latitude/Longitude Coordinate dialog window. Added help text to Find Tool menu option. Minor coding standards fixes. Fixes #2087.

2016-03-23 Makayla Shepherd - Added a check on the latitude entered that caused an error message to pop up continuously. Fixes #2130.

History:
2008-08-?? Stacy Alley - Added red dot which is draw at the specified lat/lon or line/sample. Also, the red dot is draw in the corresponding spot of a linked image, if there is overlap in the two images.

Definition at line 128 of file FindTool.h.

Member Typedef Documentation

◆ CubeViewportList

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

A list of cubeviewports.

Definition at line 219 of file Tool.h.

Constructor & Destructor Documentation

◆ FindTool()

Isis::FindTool::FindTool ( QWidget parent)

Constructs a FindTool object.

Parameters
parent

Definition at line 38 of file FindTool.cpp.

References createDialog(), and Isis::Tool::toolIconDir().

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 253 of file Tool.h.

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

◆ addTo() [1/4]

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

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

◆ addTo() [4/4]

void Isis::FindTool::addTo ( QMenu menu)
virtual

Adds the find tool to the menu.

Parameters
menu

Reimplemented from Isis::Tool.

Definition at line 198 of file FindTool.cpp.

◆ addToActive()

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

◆ addToPermanent()

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

◆ centerLinkedViewports()

◆ createDialog()

void Isis::FindTool::createDialog ( QWidget parent)
protected

Creates the dialog used by this tool.

Parameters
parent

Definition at line 89 of file FindTool.cpp.

References handleOkClicked(), and handleRecordClicked().

Referenced by FindTool().

◆ createToolBarWidget()

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

Creates the tool bar for the find tool.

Parameters
parent
Returns
QWidget*

Reimplemented from Isis::Tool.

Definition at line 210 of file FindTool.cpp.

References handleLinkClicked(), togglePointVisible(), and Isis::Tool::toolIconDir().

◆ cubeViewport()

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

Return the current cubeviewport.

Returns
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(), 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(), handleRecordClicked(), Isis::EditTool::LineToPoints(), Isis::TrackTool::locateCursor(), Isis::SunShadowTool::mouseButtonPress(), Isis::ControlNetTool::mouseButtonRelease(), Isis::RubberBandTool::mouseButtonRelease(), Isis::EditTool::mouseButtonRelease(), Isis::FeatureNomenclatureTool::mouseButtonRelease(), 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(), paintViewport(), Isis::FileTool::print(), Isis::SunShadowTool::recalculateShadowHeight(), Isis::EditTool::redoEdit(), 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(), Isis::MeasureTool::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(), Isis::MeasureTool::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(), 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().

◆ 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(), 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(), 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(), 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(), Isis::MeasureTool::updateMeasure(), Isis::AdvancedTrackTool::updateRow(), Isis::WindowTool::updateTool(), Isis::BlinkTool::updateTool(), updateTool(), Isis::AbstractPlotTool::viewportsToPlot(), Isis::ZoomTool::zoomBy(), Isis::ZoomTool::zoomFit(), Isis::ZoomTool::zoomFitHeight(), Isis::ZoomTool::zoomFitWidth(), and Isis::ZoomTool::zoomManual().

◆ distancePerPixel()

Distance Isis::FindTool::distancePerPixel ( MdiCubeViewport viewport,
double  lat,
double  lon 
)
private

This computes the distance covered by a pixel at the given lat/lon in the given viewport.

This computation is used for synchronizing the scales of the viewports so that features appear approximately the right size. The resolution is the universal ground map's resolution unless we're dealing with a projection. If the cube in the viewport is projected then we try to calculate a resolution centered at the clicked on pixel... if that fails then we give the projection's resolution.

Parameters
viewportThe viewport for which we want the resolution
latThe latitude to calculate the resolution at
lonThe longitude to calculate the resolution at
Returns
The resolution, in distance/pixel, of the data in the viewport. The distance will be in a unit other than pixels.

Definition at line 620 of file FindTool.cpp.

References Isis::UniversalGroundMap::Camera(), Isis::Angle::Degrees, Isis::SurfacePoint::GetDistanceToPoint(), Isis::UniversalGroundMap::HasProjection(), Isis::IsSpecial(), Isis::UniversalGroundMap::Line(), Isis::Sensor::LocalRadius(), Isis::Distance::Meters, Isis::Distance::meters(), Isis::UniversalGroundMap::Projection(), Isis::UniversalGroundMap::Resolution(), Isis::UniversalGroundMap::Sample(), Isis::UniversalGroundMap::SetImage(), Isis::UniversalGroundMap::SetUniversalGround(), Isis::IException::toString(), Isis::CubeViewport::universalGroundMap(), Isis::UniversalGroundMap::UniversalLatitude(), and Isis::UniversalGroundMap::UniversalLongitude().

Referenced by centerLinkedViewports().

◆ enableRubberBandTool()

void Isis::Tool::enableRubberBandTool ( )
protectedvirtualinherited

Anytime a tool is created, you may use the rubber band tool.

Enable the use of the rubberband tool.

Reimplemented in Isis::RubberBandTool, Isis::ZoomTool, Isis::MeasureTool, Isis::StereoTool, Isis::SpatialPlotTool, Isis::SpectralPlotTool, and Isis::HistogramTool.

Definition at line 339 of file Tool.cpp.

References Isis::RubberBandTool::disable().

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

◆ handleLinkClicked

void Isis::FindTool::handleLinkClicked ( )
privateslot

Links all cubes that have camera models or are map projections.

Definition at line 540 of file FindTool.cpp.

References Isis::Tool::cubeViewportList(), Isis::MdiCubeViewport::setLinked(), and Isis::CubeViewport::universalGroundMap().

Referenced by createToolBarWidget().

◆ handleOkClicked

void Isis::FindTool::handleOkClicked ( )
privateslot

Actions to take when the dialog's ok button is clicked.

  • gets numerical info from the line edits in the dialog
  • centers and repaints the viewports (see refresh for the painting)
  • updateTool (see updateTool)

Definition at line 372 of file FindTool.cpp.

References centerLinkedViewports(), Isis::GroundTab::p_latLineEdit, Isis::ImageTab::p_lineLineEdit, Isis::GroundTab::p_lonLineEdit, Isis::ImageTab::p_sampLineEdit, refresh(), and updateTool().

Referenced by createDialog().

◆ handleRecordClicked

void Isis::FindTool::handleRecordClicked ( )
privateslot

Slot called when the record button is clicked.

It creates a QPoint from the current line/sample in the active cube viewport and emits the recordPoint() signal.

Returns
void
Author
Jeannie Walldren
History:

2010-03-08 - Jeannie Walldren - This slot was created to connect the recordPoint() signal to the AdvancedTrackTool record() slot in qview.

2010-05-06 - Eric Hyer - Modified to work with new design of this class

Definition at line 415 of file FindTool.cpp.

References Isis::CubeViewport::cubeToViewport(), Isis::Tool::cubeViewport(), Isis::UniversalGroundMap::Line(), recordPoint(), Isis::UniversalGroundMap::Sample(), Isis::UniversalGroundMap::SetUniversalGround(), and Isis::CubeViewport::universalGroundMap().

Referenced by createDialog().

◆ menuName()

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

This method returns the menu name associated with this tool.

Returns
QString

Reimplemented from Isis::Tool.

Definition at line 143 of file FindTool.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::FindTool::mouseButtonRelease ( QPoint  p,
Qt::MouseButton  s 
)
protectedslot

Handles mouse clickes in the CubeViewport.

Uses the point where click occurred to calculate line/samp or lat/lon (if there is a camera).

Parameters
p
s

Definition at line 448 of file FindTool.cpp.

References centerLinkedViewports(), Isis::Tool::cubeViewport(), refresh(), Isis::UniversalGroundMap::SetImage(), Isis::CubeViewport::universalGroundMap(), Isis::UniversalGroundMap::UniversalLatitude(), Isis::UniversalGroundMap::UniversalLongitude(), updateTool(), and Isis::CubeViewport::viewportToCube().

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

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

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

This method paints the viewport.

Parameters
vp
painter
History:

2010-03-24 Sharmila Prasad - Enable FindTool for no camera image only for Image Point (lines and Samples)

2010-05-06 Eric Hyer - points now calculated here for every repaint. This method is now used for all images, whether they have a cam or not

Reimplemented from Isis::Tool.

Definition at line 489 of file FindTool.cpp.

References Isis::CubeViewport::cubeToViewport(), Isis::Tool::cubeViewport(), Isis::MdiCubeViewport::isLinked(), Isis::UniversalGroundMap::Line(), Isis::UniversalGroundMap::Sample(), Isis::UniversalGroundMap::SetUniversalGround(), and Isis::CubeViewport::universalGroundMap().

◆ recordPoint

void Isis::FindTool::recordPoint ( QPoint  p)
signal

Emitted when point should be recorded.

Referenced by handleRecordClicked().

◆ refresh()

void Isis::FindTool::refresh ( )
private

does a repaint for active viewport and also for any linked viewports

Definition at line 672 of file FindTool.cpp.

References Isis::Tool::cubeViewport(), Isis::Tool::cubeViewportList(), and Isis::MdiCubeViewport::isLinked().

Referenced by handleOkClicked(), mouseButtonRelease(), and togglePointVisible().

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

virtual void Isis::Tool::removeConnections ( MdiCubeViewport cvp)
inlineprotectedvirtualinherited

Anytime a tool is created, you must be able to remove it's connections.

Parameters
cvp

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

Definition at line 261 of file Tool.h.

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

◆ screenPixelsChanged

virtual void Isis::Tool::screenPixelsChanged ( )
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().

◆ setCubeViewport

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

◆ togglePointVisible

void Isis::FindTool::togglePointVisible ( )
privateslot

toggles visibility of the red circle

Definition at line 521 of file FindTool.cpp.

References refresh().

Referenced by createToolBarWidget().

◆ toolIconDir()

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

◆ toolPadAction()

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

Adds the find tool to the toolpad.

Parameters
toolpad
Returns
QAction*

Reimplemented from Isis::Tool.

Definition at line 180 of file FindTool.cpp.

References Isis::Tool::toolIconDir().

◆ updateTool()

void Isis::FindTool::updateTool ( )
protectedvirtual

Overriden method to update this tool - Checks if cube is open and checks if the image has camera and/or projection or none and sets the flags accordingly.

Also checks whether the images are linked.

History:
2010-03-24 Sharmila Prasad - Enable FindTool for no camera image & display status as "None"
History:
2010-05-06 Eric Hyer - This method now also updates the line edits within the dialog.

Reimplemented from Isis::Tool.

Definition at line 288 of file FindTool.cpp.

References Isis::CubeViewport::camera(), Isis::Tool::cubeViewport(), Isis::Tool::cubeViewportList(), Isis::UniversalGroundMap::Line(), Isis::GroundTab::p_latLineEdit, Isis::ImageTab::p_lineLineEdit, Isis::GroundTab::p_lonLineEdit, Isis::ImageTab::p_sampLineEdit, Isis::CubeViewport::projection(), Isis::UniversalGroundMap::Sample(), Isis::UniversalGroundMap::SetImage(), Isis::UniversalGroundMap::SetUniversalGround(), Isis::CubeViewport::universalGroundMap(), Isis::UniversalGroundMap::UniversalLatitude(), and Isis::UniversalGroundMap::UniversalLongitude().

Referenced by handleOkClicked(), and mouseButtonRelease().


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