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

Signals

void recordPoint (QPoint p)
 Emitted when point should be recorded.
 
void clearWarningSignal ()
 
void toolActivated ()
 
void viewportChanged ()
 

Public Member Functions

 FindTool (QWidget *parent)
 Constructs a FindTool object.
 
void addTo (QMenu *menu)
 Adds the find tool to the menu.
 
void paintViewport (MdiCubeViewport *vp, QPainter *painter)
 This method paints the viewport.
 
QString menuName () const
 This method returns the menu name associated with this tool.
 
void addTo (ViewportMainWindow *mw)
 Adds the tool to the application.
 
void addTo (ToolPad *toolpad)
 Adds the tool to the toolpad.
 
virtual void addTo (Workspace *ws)
 Adds the given workspace to the cubeviewport list.
 
virtual void addToPermanent (QToolBar *toolbar)
 
void addToActive (QToolBar *toolbar)
 
QString toolIconDir () const
 returns the path to the icon directory.
 
RubberBandToolrubberBandTool ()
 
void setList (ToolList *currentList)
 

Protected Types

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

Protected Slots

void mouseButtonRelease (QPoint p, Qt::MouseButton s)
 Handles mouse clickes in the CubeViewport.
 
virtual void rubberBandComplete ()
 
virtual void screenPixelsChanged ()
 This is called when actions change which pixels from the cube are displayed.
 
virtual void mouseEnter ()
 
virtual void mouseMove (QPoint p)
 
virtual void mouseMove (QPoint p, Qt::MouseButton)
 
virtual void mouseLeave ()
 

Protected Member Functions

QActiontoolPadAction (ToolPad *toolpad)
 Adds the find tool to the toolpad.
 
QWidgetcreateToolBarWidget (QStackedWidget *parent)
 Creates the tool bar for the find tool.
 
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.
 
void createDialog (QWidget *parent)
 Creates the dialog used by this tool.
 
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.
 
MdiCubeViewportcubeViewport () const
 Return the current cubeviewport.
 
CubeViewportListcubeViewportList () const
 Return the list of cubeviewports.
 
virtual void addConnections (MdiCubeViewport *cvp)
 Anytime a tool is created, you must add the connections for it.
 
virtual void removeConnections (MdiCubeViewport *cvp)
 Anytime a tool is created, you must be able to remove it's connections.
 
virtual void enableRubberBandTool ()
 Anytime a tool is created, you may use the rubber band tool.
 
Workspaceworkspace ()
 

Private Slots

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

Private Member Functions

void centerLinkedViewports ()
 centers all linked viewports
 
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.
 
void refresh ()
 does a repaint for active viewport and also for any linked viewports
 
void addViewportConnections ()
 Makes all the connections for the tool.
 
void removeViewportConnections ()
 Removes all the connections from the tool.
 
void enableToolBar ()
 Enables entire tool bar.
 
void disableToolBar ()
 Disables entire tool bar.
 

Private Attributes

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
 
MdiCubeViewportm_cvp
 current cubeviewport
 
Workspacem_workspace
 
bool m_active
 Is the tool acitve?
 
QWidgetm_toolBarWidget
 The tool bar on which this tool resides.
 
QActionm_toolPadAction
 The tool pad on which this tool resides.
 
QString m_toolIconDir
 The pathway to the icon directory.
 
ToolListm_toolList
 

Detailed Description

Tool 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.
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.

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.

Definition at line 115 of file FindTool.h.

Member Typedef Documentation

◆ CubeViewportList

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

A list of cubeviewports.

Definition at line 205 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().

◆ ~FindTool()

Isis::FindTool::~FindTool ( )

Definition at line 78 of file FindTool.cpp.

Member Function Documentation

◆ activate

◆ addConnections()

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

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

Parameters
cvp

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

Definition at line 239 of file Tool.h.

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

◆ addTo() [1/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.

◆ addTo() [2/4]

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

Adds the tool to the toolpad.

Parameters
toolpad

Definition at line 98 of file Tool.cpp.

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

◆ addTo() [3/4]

◆ addTo() [4/4]

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

Adds the given workspace to the cubeviewport list.

Parameters
ws

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

Definition at line 45 of file Tool.cpp.

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

◆ addToActive()

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

Definition at line 112 of file Tool.cpp.

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

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

◆ addToPermanent()

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

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

Definition at line 97 of file Tool.h.

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

◆ addViewportConnections()

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

References Isis::Tool::m_cvp.

Referenced by Isis::TrackTool::addConnections(), Isis::WindowTool::addConnections(), Isis::StretchTool::advancedStretchChanged(), 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(), handleRecordClicked(), Isis::EditTool::LineToPoints(), Isis::StretchTool::loadStretchFromCube(), Isis::TrackTool::locateCursor(), Isis::SunShadowTool::mouseButtonPress(), Isis::EditTool::mouseButtonRelease(), Isis::ControlNetTool::mouseButtonRelease(), Isis::FeatureNomenclatureTool::mouseButtonRelease(), mouseButtonRelease(), Isis::MatchTool::mouseButtonRelease(), Isis::QnetTool::mouseButtonRelease(), Isis::RubberBandTool::mouseButtonRelease(), Isis::StretchTool::mouseButtonRelease(), Isis::AdvancedTrackTool::mouseLeave(), Isis::SunShadowTool::mouseMove(), Isis::TrackTool::mouseMove(), Isis::RubberBandTool::mouseMove(), Isis::ScatterPlotTool::mouseMove(), Isis::LatLonGridTool::paintViewport(), paintViewport(), Isis::RubberBandTool::paintViewport(), Isis::SunShadowTool::paintViewport(), Isis::FileTool::print(), Isis::SunShadowTool::recalculateShadowHeight(), Isis::EditTool::redoEdit(), 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(), Isis::MeasureTool::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(), Isis::MeasureTool::updateMeasure(), Isis::AdvancedTrackTool::updateRow(), Isis::AdvancedTrackTool::updateRow(), Isis::AbstractPlotTool::updateTool(), Isis::BandTool::updateTool(), Isis::BlinkTool::updateTool(), Isis::EditTool::updateTool(), Isis::FileTool::updateTool(), updateTool(), Isis::LatLonGridTool::updateTool(), Isis::SpecialPixelTool::updateTool(), Isis::StretchTool::updateTool(), Isis::SunShadowTool::updateTool(), Isis::WindowTool::updateTool(), Isis::ZoomTool::updateTool(), Isis::AbstractPlotTool::viewportsToPlot(), Isis::EditTool::writeToCube(), Isis::ZoomTool::zoomBy(), Isis::ZoomTool::zoomFit(), Isis::ZoomTool::zoomFitHeight(), Isis::ZoomTool::zoomFitWidth(), and Isis::ZoomTool::zoomManual().

◆ cubeViewportList()

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

Return the list of cubeviewports.

Returns
CubeViewportList*

Definition at line 390 of file Tool.cpp.

References Isis::Workspace::cubeViewportList().

Referenced by Isis::BlinkTool::advance(), Isis::SpecialPixelTool::apply(), 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::ControlNetTool::paintAllViewports(), Isis::MatchTool::paintAllViewports(), Isis::StereoTool::paintAllViewports(), Isis::QnetTool::paintAllViewports(), refresh(), Isis::AbstractPlotTool::repaintViewports(), Isis::ScatterPlotTool::repaintViewports(), Isis::AbstractPlotTool::repaintViewports(), Isis::WindowTool::resizeWindows(), Isis::BlinkTool::reverse(), Isis::ZoomTool::rubberBandComplete(), Isis::MatchTool::serialNumberList(), Isis::ControlNetTool::setControlNet(), Isis::FeatureNomenclatureTool::setFontColor(), Isis::FeatureNomenclatureTool::setFontSize(), Isis::FeatureNomenclatureTool::setShowApprovedOnly(), Isis::StretchTool::setStretchAllViewports(), Isis::FeatureNomenclatureTool::setVectorType(), Isis::StretchTool::stretchGlobalAllViewports(), Isis::BlinkTool::toggleLink(), Isis::WindowTool::unlinkWindows(), Isis::MeasureTool::updateMeasure(), Isis::AdvancedTrackTool::updateRow(), Isis::BlinkTool::updateTool(), 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().

◆ 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 632 of file FindTool.cpp.

References Isis::UniversalGroundMap::Camera(), Isis::CubeViewport::camera(), Isis::Angle::Degrees, Isis::UniversalGroundMap::HasProjection(), Isis::IsSpecial(), Isis::UniversalGroundMap::Line(), Isis::Sensor::LocalRadius(), Isis::Distance::Meters, Isis::Distance::meters(), Isis::UniversalGroundMap::Projection(), Isis::Camera::RaDecResolution(), Isis::UniversalGroundMap::Resolution(), Isis::UniversalGroundMap::Sample(), Isis::UniversalGroundMap::SetImage(), Isis::UniversalGroundMap::SetUniversalGround(), Isis::Spice::target(), 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::HistogramTool, Isis::MeasureTool, Isis::RubberBandTool, Isis::SpatialPlotTool, Isis::SpectralPlotTool, Isis::StereoTool, and Isis::ZoomTool.

Definition at line 339 of file Tool.cpp.

References Isis::RubberBandTool::disable().

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

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

◆ handleLinkClicked

void Isis::FindTool::handleLinkClicked ( )
privateslot

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

Definition at line 552 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::Tool::cubeViewport(), Isis::UniversalGroundMap::Line(), recordPoint(), Isis::UniversalGroundMap::Sample(), and Isis::UniversalGroundMap::SetUniversalGround().

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 130 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::UniversalGroundMap::UniversalLatitude(), Isis::UniversalGroundMap::UniversalLongitude(), and updateTool().

◆ mouseDoubleClick()

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

Definition at line 358 of file Tool.cpp.

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

◆ mouseEnter

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

Definition at line 152 of file Tool.h.

◆ mouseLeave

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

Definition at line 159 of file Tool.h.

◆ mouseMove [1/2]

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

Definition at line 352 of file Tool.cpp.

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

◆ mouseMove [2/2]

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

Definition at line 155 of file Tool.h.

◆ paintViewport()

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 501 of file FindTool.cpp.

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

◆ 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 689 of file FindTool.cpp.

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

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

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

◆ removeViewportConnections()

void Isis::Tool::removeViewportConnections ( )
privateinherited

◆ rubberBandComplete

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

Definition at line 141 of file Tool.h.

◆ rubberBandTool()

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

Definition at line 57 of file Tool.cpp.

◆ scaleChanged()

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

Definition at line 172 of file Tool.h.

◆ screenPixelsChanged

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

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

Definition at line 148 of file Tool.h.

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

◆ setCubeViewport

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

◆ setList()

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

Definition at line 68 of file Tool.cpp.

◆ stretchRequested()

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

Reimplemented in Isis::StretchTool.

Definition at line 177 of file Tool.h.

◆ togglePointVisible

void Isis::FindTool::togglePointVisible ( )
privateslot

toggles visibility of the red circle

Definition at line 533 of file FindTool.cpp.

References refresh().

Referenced by createToolBarWidget().

◆ toolIconDir()

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

◆ updateMeasure()

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

Definition at line 167 of file Tool.h.

◆ 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::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::UniversalGroundMap::Sample(), Isis::UniversalGroundMap::SetImage(), Isis::UniversalGroundMap::SetUniversalGround(), Isis::UniversalGroundMap::UniversalLatitude(), and Isis::UniversalGroundMap::UniversalLongitude().

Referenced by handleOkClicked(), and mouseButtonRelease().

◆ workspace()

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

Definition at line 344 of file Tool.cpp.

Member Data Documentation

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

QWidget* Isis::Tool::m_toolBarWidget
privateinherited

The tool bar on which this tool resides.

Definition at line 265 of file Tool.h.

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

◆ m_toolIconDir

QString Isis::Tool::m_toolIconDir
privateinherited

The pathway to the icon directory.

Definition at line 267 of file Tool.h.

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

◆ m_toolList

ToolList* Isis::Tool::m_toolList
privateinherited

Definition at line 268 of file Tool.h.

◆ m_toolPadAction

QAction* Isis::Tool::m_toolPadAction
privateinherited

The tool pad on which this tool resides.

Definition at line 266 of file Tool.h.

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

◆ m_workspace

Workspace* Isis::Tool::m_workspace
privateinherited

Definition at line 262 of file Tool.h.

◆ p_dialog

QDialog* Isis::FindTool::p_dialog
private

Definition at line 159 of file FindTool.h.

◆ p_findPoint

QAction* Isis::FindTool::p_findPoint
private

Definition at line 160 of file FindTool.h.

◆ p_groundTab

GroundTab* Isis::FindTool::p_groundTab
private

Definition at line 167 of file FindTool.h.

◆ p_imageTab

ImageTab* Isis::FindTool::p_imageTab
private

Definition at line 168 of file FindTool.h.

◆ p_lat

double Isis::FindTool::p_lat
private

Definition at line 175 of file FindTool.h.

◆ p_line

double Isis::FindTool::p_line
private

Definition at line 172 of file FindTool.h.

◆ p_linkViewportsButton

QToolButton* Isis::FindTool::p_linkViewportsButton
private

Definition at line 162 of file FindTool.h.

◆ p_lon

double Isis::FindTool::p_lon
private

Definition at line 176 of file FindTool.h.

◆ p_pointVisible

bool Isis::FindTool::p_pointVisible
private

Definition at line 178 of file FindTool.h.

◆ p_samp

double Isis::FindTool::p_samp
private

Definition at line 173 of file FindTool.h.

◆ p_showDialogButton

QToolButton* Isis::FindTool::p_showDialogButton
private

Definition at line 161 of file FindTool.h.

◆ p_statusEdit

QLineEdit* Isis::FindTool::p_statusEdit
private

Definition at line 165 of file FindTool.h.

◆ p_syncScale

QCheckBox* Isis::FindTool::p_syncScale
private

Definition at line 164 of file FindTool.h.

◆ p_tabWidget

QTabWidget* Isis::FindTool::p_tabWidget
private

Definition at line 166 of file FindTool.h.

◆ p_togglePointVisibleButton

QToolButton* Isis::FindTool::p_togglePointVisibleButton
private

Definition at line 163 of file FindTool.h.


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