Isis 3 Programmer Reference
Isis::QnetNavTool Class Reference

Qnet Navigation Tool. More...

#include <QnetNavTool.h>

Inheritance diagram for Isis::QnetNavTool:
Inheritance graph
Collaboration diagram for Isis::QnetNavTool:
Collaboration graph

Public Types

enum  FilterIndex { Points , Cubes }
 
enum  PointFilterIndex {
  JigsawErrors , RegistrationErrors , Id , NumberImages ,
  Type , LatLonRange , Distance , MeasureType ,
  GoodnessOfFit , CubeName
}
 
enum  CubeFilterIndex { Name , NumberPoints , PointDistance }
 

Public Slots

void resetList ()
 Resets the list box with whatever is in the global lists.
 
void refreshList ()
 Slot to refresh the listBox.
 
void updateEditPoint (QString pointId)
 Update the list showing the new point highlighted.
 
void disconnectAprioriDialog ()
 Apriori dialog has been closed and needs to be disconnected and deleted so a new dialog can be brought up next time.
 
void showNavTool ()
 This method sets the Navigation Dialog window to shown=true.
 
void activate (bool)
 Activates the tool.
 
virtual void updateTool ()
 Updates the tool.
 
void setCubeViewport (MdiCubeViewport *cvp)
 Sets the current viewport to the given cvp.
 

Signals

void activityUpdate (QString)
 
void loadPointImages (ControlPoint *)
 
void loadImage (const QString &)
 
void modifyPoint (ControlPoint *)
 
void ignoredPoints ()
 
void deletedPoints ()
 
void pointChanged (QString pointId)
 
void netChanged ()
 
void serialListModified ()
 
void clearWarningSignal ()
 
void toolActivated ()
 
void viewportChanged ()
 

Public Member Functions

 QnetNavTool (QnetTool *qnetTool, QWidget *parent)
 Constructs the Navigation Tool window.
 
QList< int > & filteredImages ()
 
const QList< int > & filteredImages () const
 
QList< int > & filteredPoints ()
 
const QList< int > & filteredPoints () const
 
ControlNetcontrolNet ()
 
const ControlNetcontrolNet () const
 
SerialNumberListserialNumberList ()
 
const SerialNumberListserialNumberList () const
 
void addTo (ViewportMainWindow *mw)
 Adds the tool to the application.
 
void addTo (ToolPad *toolpad)
 Adds the tool to the toolpad.
 
virtual void addTo (QMenu *menu)
 
virtual void addTo (Workspace *ws)
 Adds the given workspace to the cubeviewport list.
 
virtual QString menuName () const
 Anytime a tool is created, you must give it a name for the menu.
 
virtual void addToPermanent (QToolBar *toolbar)
 
void addToActive (QToolBar *toolbar)
 
QString toolIconDir () const
 returns the path to the icon directory.
 
virtual void paintViewport (MdiCubeViewport *vp, QPainter *painter)
 
RubberBandToolrubberBandTool ()
 
void setList (ToolList *currentList)
 

Protected Types

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

Protected Slots

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

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.
 
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 QActiontoolPadAction (ToolPad *toolpad)
 Anytime a tool is created, you must setup a tool pad action with it.
 
virtual QWidgetcreateToolBarWidget (QStackedWidget *parent)
 Anytime a tool is created, you must add it to the tool bar.
 
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 load ()
 Tells the filetool to load an image, slot for "View Cube(s)" button.
 
void load (QListWidgetItem *)
 Slot for double-clicking cube list.
 
void tie ()
 Calls the qnet tool for the given control point.
 
void filter ()
 Figures out what type of widget the filter was selected for and calls the filter method for that filter class.
 
void editPoint (QListWidgetItem *ptItem)
 Emits a modifyPoint signal.
 
void filterList ()
 Updates the list box in the nav window with a new list from one of the filters.
 
void resetFilter ()
 Resets the visible filter to the default values.
 
void enableButtons ()
 Enable/disable buttons depending on whether Points or Cubes is chosen.
 
void ignorePoints ()
 Set Ignored=True for selected Points.
 
void deletePoints ()
 Delete selected Points from control network.
 
void resetCubeList ()
 This slot is connected to the file tool in qnet.cpp.
 
void updateActivityHistory (QString activityMessage)
 Slot to update the history tab with current edits.
 
void aprioriDialog ()
 Bring up apriori dialog.
 
void setAprioriDialogPoints ()
 Slot to pass points selected in Nav List Widget to Apriori Dialog.
 

Private Member Functions

void createNavigationDialog (QWidget *parent)
 Creates and shows the dialog box for the navigation tool.
 
void createFilters ()
 Sets up the tabbed widgets for the different types of filters available.
 
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

QDialogm_navDialog
 
QPushButton * m_filter
 
bool m_filtered
 
QPushButton * m_tie
 
QPushButton * m_multiIgnore
 
QPushButton * m_multiDelete
 
QPushButton * m_setApriori
 
QStackedWidget * m_filterStack
 
QComboBoxm_listCombo
 
QListWidget * m_listBox
 
QLabel * m_filterCountLabel
 
QVBoxLayout * m_historyLayout
 
int m_filterCount
 
QString m_editPointId
 
QnetSetAprioriDialogm_aprioriDialog
 
QnetToolm_qnetTool
 
QList< int > m_filteredPoints
 
QList< int > m_filteredImages
 
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

Qnet Navigation Tool.

Author
2006-11-07 Elizabeth Ribelin
History

2007-06-05 Tracie Sucharski - Added enumerators for filter indices

2008-11-24 Jeannie Walldren - Replace references to PointEdit class with ControlPointEdit

2008-11-26 Jeannie Walldren - Added GoodnessOfFit to PointFilterIndex enumeration

2008-11-26 Tracie Sucharski - Remove all polygon/overlap references, this functionality will be qmos

2008-12-09 Tracie Sucharski - Cleaned up some signal/slot connections between QnetTool and QnetNavTool for deleting or adding ControlPoints. Also added m_filtered indicating whether the listBox contains filtered or unfiltered lists.

2008-12-29 Jeannie Walldren - Added question boxes to the "Delete Points" and "Ignore Points" buttons to verify that the user wants to delete or ignore the selected points

2008-12-30 Jeannie Walldren - Modified updateEditPoint() method to set current item rather than simply highlight the new point. Now the point does not have to be clicked before "Delete Point(s)" is chosen. Removed "std::" in cpp file since we are using std namespace.

2008-12-31 Jeannie Walldren - Added keyboard shortcuts to createNavigationDialog() and createFilters() methods.

2009-01-08 Jeannie Walldren - In resetList(), fill filtered lists with all points in control net and all images in serial number list so that filters can remove unwanted members from this list. In filter() remove command to clear these lists so that we may filter filtered lists rather than start with the entire points/image list each time it is called.

2009-01-26 Jeannie Walldren - The following changes were made in order to create a Cube Names filter on the Points list: Added CubeNames to PointFilterIndex enumerated values. Added resetCubeList() slot and serialListModified() signal. Modified filter() and createFilters().

2010-06-02 Jeannie Walldren - Changed tab labels from "Point Type" to "Point Properties" and "Measure Type(s)" to "Measure Properties" for better accuracy. Also updated "What's This?" description for "Measure Properties".

2010-06-03 Jeannie Walldren - Initialized pointers to null in constructor. Modified tie() and load() methods.

2010-07-01 Jeannie Walldren - Added showNavTool() slot method. This method is connected to the QnetTool in order to reopen the navigator dialog whenever the Tie tool button or "Show Nav Tool" button are activated. Replaced #includes with forward class declarations and moved #include to .cpp file.

2010-07-12 Jeannie Walldren - Fixed documentation.

2010-11-01 Tracie Sucharski - Changed updateEditPoint parameter from std::string to QString.

2010-11-04 Tracie Sucharski - Added overloaded load slot for double-clicking on the cube list.

2010-12-10 Tracie Sucharski - Renamed signal loadPoint to loadPointImages and the ControlPoint is passed by value so that the original point is preserved until the user selects "Save Point".

2011-03-24 Tracie Sucharski - Added ability to enter Apriori Point values and sigmas.

2013-05-14 Tracie Sucharski - Add Qt::UniqueConnection to the connect statements in resetList to prevent multiple connections between the ListWidget and edit point slot and load cube slot. Fixes #1655.

2015-05-28 Makayla Shepherd and Ian Humphrey - When changing navigation types from Points to Cubes, and vice versa, and then back to the original type, the filtered data is saved rather than forcing the user to refilter the data. Fixes #2144.

2016-11-18 Makayla Shepherd - Added disconnection and deletion of the Set Apriori Dialog on close. Fixes #4490.

2017-01-04 Makayla Shepherd - Made showNavTool() public in order to fix a window management issue that caused the NavTool to go behind the ViewportMainWindow (parent widget) when using Gnome or Cinnamon. Fixes #4541.

2018-01-10 Adam Goins - Added the m_historyLayout member variable the class to keep a running history tab of edits made to points.

Definition at line 121 of file QnetNavTool.h.

Member Typedef Documentation

◆ CubeViewportList

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

A list of cubeviewports.

Definition at line 205 of file Tool.h.

Member Enumeration Documentation

◆ CubeFilterIndex

enum Isis::QnetNavTool::CubeFilterIndex

Definition at line 144 of file QnetNavTool.h.

◆ FilterIndex

enum Isis::QnetNavTool::FilterIndex

Definition at line 128 of file QnetNavTool.h.

◆ PointFilterIndex

enum Isis::QnetNavTool::PointFilterIndex

Definition at line 132 of file QnetNavTool.h.

Constructor & Destructor Documentation

◆ QnetNavTool()

Isis::QnetNavTool::QnetNavTool ( QnetTool * qnetTool,
QWidget * parent )

Constructs the Navigation Tool window.

Parameters
parentThe parent widget for the navigation tool
History

2008-12-09 Tracie Sucharski - Added m_filtered indicating whether the listBox contains filtered or unfiltered list.

2010-06-03 Jeannie Walldren - Initialized pointers to null.

Definition at line 67 of file QnetNavTool.cpp.

References createNavigationDialog(), refreshList(), and updateActivityHistory().

◆ ~QnetNavTool()

Isis::QnetNavTool::~QnetNavTool ( )

Definition at line 247 of file QnetNavTool.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]

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

◆ aprioriDialog

void Isis::QnetNavTool::aprioriDialog ( )
privateslot

Bring up apriori dialog.

Author
2011-04-19 Tracie Sucharski
History
2016-11-18 Makayla Shepherd - Added a connection to disconnectAprioriDialog() which will disconnect the dialog and delete it.
Todo
This method should be temporary until the control point editor comes online. If this stick around, needs to be re-designed- put in a separate class??

Definition at line 1006 of file QnetNavTool.cpp.

Referenced by createNavigationDialog().

◆ controlNet() [1/2]

ControlNet * Isis::QnetNavTool::controlNet ( )

Definition at line 476 of file QnetNavTool.cpp.

◆ controlNet() [2/2]

const ControlNet * Isis::QnetNavTool::controlNet ( ) const

Definition at line 481 of file QnetNavTool.cpp.

◆ createFilters()

void Isis::QnetNavTool::createFilters ( )
private

Sets up the tabbed widgets for the different types of filters available.

History

2007-06-05 Tracie Sucharski - Added enumerators for the filter indices to make it easier to re-order filters. Also, re-ordered the filters to put commonly used first. Comment out overlap/polygon code temporarily.

2008-11-26 Jeannie Walldren - Added Goodness of Fit to the filter tabs.

2008-12-31 Jeannie Walldren - Added keyboard shortcuts to tabs.

2009-01-26 Jeannie Walldren - Clarified tab names. Added points cube name filter tab.

2010-06-02 Jeannie Walldren - Changed tab labels from "Type" to "Properties". Updated "What's This?" documentation for Measure Properties to explain use of ignore status and measure type filters.

2018-01-10 Adam Goins - Added the Activity History tab to the window. This tab will keep track of edits made to control points/measures. More history entries can be kept track of by emitting the activityUpdate(QString message) signal.

Definition at line 280 of file QnetNavTool.cpp.

References filterList().

Referenced by createNavigationDialog().

◆ createNavigationDialog()

void Isis::QnetNavTool::createNavigationDialog ( QWidget * parent)
private

Creates and shows the dialog box for the navigation tool.

Parameters
parentThe parent widget for the navigation dialog
History

2008-10-29 Tracie Sucharski - Added filter count

2008-12-31 Jeannie Walldren - Added keyboard shortcuts

2010-11-04 Tracie Sucharski - Move listBox double-click connection to the slot for changing the listBox.

Definition at line 100 of file QnetNavTool.cpp.

References aprioriDialog(), createFilters(), deletePoints(), enableButtons(), Isis::FileName::expanded(), filter(), filterList(), ignorePoints(), load(), resetFilter(), resetList(), and tie().

Referenced by QnetNavTool().

◆ createToolBarWidget()

virtual QWidget * Isis::Tool::createToolBarWidget ( QStackedWidget * parent)
inlineprotectedvirtualinherited

◆ cubeViewport()

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

Return the current cubeviewport.

Returns
CubeViewport*

Definition at line 197 of file Tool.h.

References Isis::Tool::m_cvp.

Referenced by Isis::TrackTool::addConnections(), Isis::WindowTool::addConnections(), Isis::StretchTool::advancedStretchChanged(), Isis::FindTool::centerLinkedViewports(), Isis::StretchTool::changeStretch(), Isis::BandTool::changeView(), Isis::BandTool::copyLinkedViewports(), Isis::StretchTool::deleteFromCube(), Isis::FileTool::discard(), Isis::Tool::enableToolBar(), Isis::FileTool::exportToList(), Isis::FileTool::exportView(), Isis::StatisticsTool::getStatistics(), Isis::FindTool::handleRecordClicked(), Isis::EditTool::LineToPoints(), Isis::StretchTool::loadStretchFromCube(), Isis::TrackTool::locateCursor(), Isis::SunShadowTool::mouseButtonPress(), Isis::EditTool::mouseButtonRelease(), Isis::ControlNetTool::mouseButtonRelease(), Isis::FeatureNomenclatureTool::mouseButtonRelease(), Isis::FindTool::mouseButtonRelease(), Isis::MatchTool::mouseButtonRelease(), Isis::QnetTool::mouseButtonRelease(), Isis::RubberBandTool::mouseButtonRelease(), Isis::StretchTool::mouseButtonRelease(), Isis::AdvancedTrackTool::mouseLeave(), Isis::SunShadowTool::mouseMove(), Isis::TrackTool::mouseMove(), Isis::RubberBandTool::mouseMove(), Isis::ScatterPlotTool::mouseMove(), Isis::LatLonGridTool::paintViewport(), 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(), 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(), Isis::FindTool::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(), 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::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(), 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().

◆ deletePoints

void Isis::QnetNavTool::deletePoints ( )
privateslot

Delete selected Points from control network.

Author
2008-12-09 Tracie Sucharski
History

2008-12-29 Jeannie Walldren - Added question box to verify that the user wants to delete the selected points.

2011-07-25 Tracie Sucharski - Fixed bug in refreshing list changed to delete starting at end of list so indices stay accurate.

2011-10-20 Tracie Sucharski - Fixed bug with filter list not being updated correctly after deleting points. The simple fix was to reset the list, then re-filter. For most filters this is probably adequate. However, for computationally intensive filters, we might need a smarter algorithm which would involve actually adjusting the indices of the filtered list.

Definition at line 918 of file QnetNavTool.cpp.

References Isis::ControlNet::GetNumPoints(), and Isis::ControlPoint::PointLocked.

Referenced by createNavigationDialog().

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

◆ disconnectAprioriDialog

void Isis::QnetNavTool::disconnectAprioriDialog ( )
slot

Apriori dialog has been closed and needs to be disconnected and deleted so a new dialog can be brought up next time.

Author
2016-11-14 Makayla Shepherd

Definition at line 1057 of file QnetNavTool.cpp.

◆ editPoint

void Isis::QnetNavTool::editPoint ( QListWidgetItem * ptItem)
privateslot

Emits a modifyPoint signal.

Parameters
ptItem

Definition at line 797 of file QnetNavTool.cpp.

Referenced by filterList(), and resetList().

◆ enableButtons

void Isis::QnetNavTool::enableButtons ( )
privateslot

Enable/disable buttons depending on whether Points or Cubes is chosen.

History
2008-12-09 Tracie Sucharski - Renamed from enableTie to enableButtons. Added ignore and delete buttons.

Definition at line 1195 of file QnetNavTool.cpp.

Referenced by createNavigationDialog().

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

◆ filter

void Isis::QnetNavTool::filter ( )
privateslot

Figures out what type of widget the filter was selected for and calls the filter method for that filter class.

History

2007-06-05 Tracie Sucharski - Use enumerators for the filter indices. Comment out overlap/polygon code temporarily.

2008-11-19 Jeannie Walldren - Added WaitCursor (i.e. clock or hourglass) to indicate that there is background activity while this method is running

2008-11-26 Tracie Sucharski - Remove all polygon/overlap references, this functionality will be qmos.

2008-12-09 Tracie Sucharski - Added m_filtered indicating whether the listBox contains filtered or unfiltered list.

2009-01-08 Jeannie Walldren - Removed command to clear filtered points and images lists

2009-01-26 Jeannie Walldren - Added filter call for points cube name filter.

Definition at line 1088 of file QnetNavTool.cpp.

References Isis::QnetCubeDistanceFilter::filter(), Isis::QnetCubeNameFilter::filter(), Isis::QnetCubePointsFilter::filter(), Isis::QnetPointCubeNameFilter::filter(), Isis::QnetPointDistanceFilter::filter(), Isis::QnetPointGoodnessFilter::filter(), Isis::QnetPointIdFilter::filter(), Isis::QnetPointImagesFilter::filter(), Isis::QnetPointJigsawErrorFilter::filter(), Isis::QnetPointMeasureFilter::filter(), Isis::QnetPointRangeFilter::filter(), Isis::QnetPointRegistrationErrorFilter::filter(), and Isis::QnetPointTypeFilter::filter().

Referenced by createNavigationDialog(), and refreshList().

◆ filteredImages() [1/2]

QList< int > & Isis::QnetNavTool::filteredImages ( )

Definition at line 456 of file QnetNavTool.cpp.

◆ filteredImages() [2/2]

const QList< int > & Isis::QnetNavTool::filteredImages ( ) const

Definition at line 461 of file QnetNavTool.cpp.

◆ filteredPoints() [1/2]

QList< int > & Isis::QnetNavTool::filteredPoints ( )

Definition at line 466 of file QnetNavTool.cpp.

◆ filteredPoints() [2/2]

const QList< int > & Isis::QnetNavTool::filteredPoints ( ) const

Definition at line 471 of file QnetNavTool.cpp.

◆ filterList

void Isis::QnetNavTool::filterList ( )
privateslot

Updates the list box in the nav window with a new list from one of the filters.

History

2007-06-05 Tracie Sucharski - Use enumerators for the filter indices. Comment out overlap/polygon code temporarily.

2008-10-29 Tracie Sucharski - Added filter count

Definition at line 669 of file QnetNavTool.cpp.

References editPoint(), load(), Isis::FileName::name(), and updateEditPoint().

Referenced by createFilters(), and createNavigationDialog().

◆ ignorePoints

void Isis::QnetNavTool::ignorePoints ( )
privateslot

Set Ignored=True for selected Points.

Author
2008-12-09 Tracie Sucharski
History
2008-12-29 Jeannie Walldren - Added question box to verify that the user wants to set the selected points to ignore=true.

Definition at line 849 of file QnetNavTool.cpp.

References Isis::ControlPoint::PointLocked.

Referenced by createNavigationDialog().

◆ load [1/2]

void Isis::QnetNavTool::load ( )
privateslot

Tells the filetool to load an image, slot for "View Cube(s)" button.

History

2007-06-05 Tracie Sucharski - Use enumerators for the filter indices. Comment out overlap/polygon code temporarily.

2008-11-19 Jeannie Walldren - Added Qt::WaitCursor (i.e. clock or hourglass) to indicate that there is background activity while this method is running

2008-11-26 Tracie Sucharski - Remove all polygon/overlap references, this functionality will be qmos.

2010-06-03 Jeannie Walldren - Modified "No file selected" warning to check whether selected list is empty rather than the index of current row.

Definition at line 732 of file QnetNavTool.cpp.

Referenced by createNavigationDialog(), filterList(), load(), and resetList().

◆ load [2/2]

void Isis::QnetNavTool::load ( QListWidgetItem * )
privateslot

Slot for double-clicking cube list.

Needed this slot because the signal has a QListWidgetItem parameter. TODO: Clean this up by possibly combining the two different load slots???

Author
2010-11-04 Tracie Sucharski

Definition at line 788 of file QnetNavTool.cpp.

References load().

◆ menuName()

virtual QString Isis::Tool::menuName ( ) const
inlinevirtualinherited

Anytime a tool is created, you must give it a name for the menu.

Returns
QString

Reimplemented in Isis::AdvancedTrackTool, Isis::BandTool, Isis::BlinkTool, Isis::FeatureNomenclatureTool, Isis::FileTool, Isis::FindTool, Isis::HelpTool, Isis::MeasureTool, Isis::PanTool, Isis::SpecialPixelTool, Isis::StretchTool, Isis::WindowTool, and Isis::ZoomTool.

Definition at line 83 of file Tool.h.

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

◆ mouseButtonPress()

void Isis::Tool::mouseButtonPress ( QPoint p,
Qt::MouseButton s )
protectedvirtualinherited
Parameters
p
s

Definition at line 367 of file Tool.cpp.

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

◆ mouseButtonRelease()

void Isis::Tool::mouseButtonRelease ( QPoint p,
Qt::MouseButton s )
protectedvirtualinherited

Resets the Warning to Nowarning when a different activity occurs on the application.

This is called by all the mouseButtonRelease events in all the tools.

Parameters
p
s

Reimplemented in Isis::FeatureNomenclatureTool.

Definition at line 380 of file Tool.cpp.

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

◆ mouseDoubleClick()

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

Definition at line 358 of file Tool.cpp.

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

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

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

◆ refreshList

void Isis::QnetNavTool::refreshList ( )
slot

Slot to refresh the listBox.

History
2008-12-09 Tracie Sucharski - Slot to refresh the ListBox

Definition at line 641 of file QnetNavTool.cpp.

References filter(), and resetList().

Referenced by QnetNavTool().

◆ 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

◆ resetCubeList

void Isis::QnetNavTool::resetCubeList ( )
privateslot

This slot is connected to the file tool in qnet.cpp.

It emits a signal that the serial list has been modified so the points cube name filter knows to change the list box displayed.

See also
QnetPointCubeNameFilter
History
2009-01-26 Jeannie Walldren - Original version.

Definition at line 1222 of file QnetNavTool.cpp.

◆ resetFilter

void Isis::QnetNavTool::resetFilter ( )
privateslot

Resets the visible filter to the default values.

Definition at line 654 of file QnetNavTool.cpp.

Referenced by createNavigationDialog().

◆ resetList

void Isis::QnetNavTool::resetList ( )
slot

Resets the list box with whatever is in the global lists.

History

2007-06-05 Tracie Sucharski - Use enumerators to test which filter is chosen. Comment overlap/polygon code temporarily.

2008-10-29 Tracie Sucharski - Added filter count 2008-11-26 Tracie Sucharski - Remove all polygon/overlap references, this functionality will be qmos.

2008-12-09 Tracie Sucharski - Renamed method from updateList to resetList since it it reseting all of the filtered lists and the listBox to the entire network of points and serial numbers.

2008-12-09 Tracie Sucharski - Added m_filtered indicating whether the listBox contains filtered or unfiltered list.

2009-01-08 Jeannie Walldren - Reset filtered list with all points in control net and all images in serial number list.

2010-11-04 Tracie Sucharski - Added double-click connections.

Definition at line 517 of file QnetNavTool.cpp.

References editPoint(), Isis::ControlNet::GetNumPoints(), load(), Isis::FileName::name(), Isis::SerialNumberList::size(), and updateEditPoint().

Referenced by createNavigationDialog(), and refreshList().

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

◆ serialNumberList() [1/2]

SerialNumberList * Isis::QnetNavTool::serialNumberList ( )

Definition at line 486 of file QnetNavTool.cpp.

◆ serialNumberList() [2/2]

const SerialNumberList * Isis::QnetNavTool::serialNumberList ( ) const

Definition at line 491 of file QnetNavTool.cpp.

◆ setAprioriDialogPoints

void Isis::QnetNavTool::setAprioriDialogPoints ( )
privateslot

Slot to pass points selected in Nav List Widget to Apriori Dialog.

History
2011-05-04 Tracie Sucharski - Do not print error if no pts selected, simply return.

Definition at line 1034 of file QnetNavTool.cpp.

◆ setCubeViewport

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

◆ setList()

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

Definition at line 68 of file Tool.cpp.

◆ showNavTool

void Isis::QnetNavTool::showNavTool ( )
slot

This method sets the Navigation Dialog window to shown=true.

Author
Jeannie Walldren
History
2010-07-01 Jeannie Walldren - Original version.

Definition at line 1233 of file QnetNavTool.cpp.

◆ stretchRequested()

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

Reimplemented in Isis::StretchTool.

Definition at line 177 of file Tool.h.

◆ tie

void Isis::QnetNavTool::tie ( )
privateslot

Calls the qnet tool for the given control point.

History
2010-06-03 Jeannie Walldren - Modified "No file selected" warning to check whether selected list is empty rather than the index of current row.

Definition at line 816 of file QnetNavTool.cpp.

Referenced by createNavigationDialog().

◆ toolIconDir()

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

◆ toolPadAction()

virtual QAction * Isis::Tool::toolPadAction ( ToolPad * toolpad)
inlineprotectedvirtualinherited

◆ updateActivityHistory

void Isis::QnetNavTool::updateActivityHistory ( QString activityMessage)
privateslot

Slot to update the history tab with current edits.

It is deisgned not to allow duplicate history entries back to back.

History
2018-01-10 Adam Goins - Slot was created.

Definition at line 620 of file QnetNavTool.cpp.

Referenced by QnetNavTool().

◆ updateEditPoint

void Isis::QnetNavTool::updateEditPoint ( QString pointId)
slot

Update the list showing the new point highlighted.

Parameters
pointIdValue of the PointId keyword for the new point.
History

2008-12-30 Jeannie Walldren - Modified to setCurrentItem() rather than simply highlight the new point using setItemSelected() and scrollToItem().

2010-11-01 Tracie Sucharski - Changed pointId from std::string to QString.

Definition at line 595 of file QnetNavTool.cpp.

Referenced by filterList(), and resetList().

◆ updateMeasure()

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

Definition at line 167 of file Tool.h.

◆ updateTool

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

QnetSetAprioriDialog* Isis::QnetNavTool::m_aprioriDialog
private

Definition at line 218 of file QnetNavTool.h.

◆ m_cvp

◆ m_editPointId

QString Isis::QnetNavTool::m_editPointId
private

Definition at line 216 of file QnetNavTool.h.

◆ m_filter

QPushButton* Isis::QnetNavTool::m_filter
private

Definition at line 203 of file QnetNavTool.h.

◆ m_filterCount

int Isis::QnetNavTool::m_filterCount
private

Definition at line 214 of file QnetNavTool.h.

◆ m_filterCountLabel

QLabel* Isis::QnetNavTool::m_filterCountLabel
private

Definition at line 212 of file QnetNavTool.h.

◆ m_filtered

bool Isis::QnetNavTool::m_filtered
private

Definition at line 204 of file QnetNavTool.h.

◆ m_filteredImages

QList<int> Isis::QnetNavTool::m_filteredImages
private

Definition at line 222 of file QnetNavTool.h.

◆ m_filteredPoints

QList<int> Isis::QnetNavTool::m_filteredPoints
private

Definition at line 221 of file QnetNavTool.h.

◆ m_filterStack

QStackedWidget* Isis::QnetNavTool::m_filterStack
private

Definition at line 209 of file QnetNavTool.h.

◆ m_historyLayout

QVBoxLayout* Isis::QnetNavTool::m_historyLayout
private

Definition at line 213 of file QnetNavTool.h.

◆ m_listBox

QListWidget* Isis::QnetNavTool::m_listBox
private

Definition at line 211 of file QnetNavTool.h.

◆ m_listCombo

QComboBox* Isis::QnetNavTool::m_listCombo
private

Definition at line 210 of file QnetNavTool.h.

◆ m_multiDelete

QPushButton* Isis::QnetNavTool::m_multiDelete
private

Definition at line 207 of file QnetNavTool.h.

◆ m_multiIgnore

QPushButton* Isis::QnetNavTool::m_multiIgnore
private

Definition at line 206 of file QnetNavTool.h.

◆ m_navDialog

QDialog* Isis::QnetNavTool::m_navDialog
private

Definition at line 202 of file QnetNavTool.h.

◆ m_qnetTool

QnetTool* Isis::QnetNavTool::m_qnetTool
private

Definition at line 220 of file QnetNavTool.h.

◆ m_setApriori

QPushButton* Isis::QnetNavTool::m_setApriori
private

Definition at line 208 of file QnetNavTool.h.

◆ m_tie

QPushButton* Isis::QnetNavTool::m_tie
private

Definition at line 205 of file QnetNavTool.h.

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


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