![]() |
Isis 3 Programmer Reference
|
Match tool operations. More...
#include <MatchTool.h>
Public Slots | |
void | createPoint (MdiCubeViewport *mvp, double sample, double line) |
Create new control point at given samp, line for viewport. More... | |
void | modifyPoint (ControlPoint *point) |
Modify control point. More... | |
void | deletePoint (ControlPoint *point) |
Delete control point. More... | |
void | updatePointInfo (QString pointId) |
Update the current editPoint information in the Point Editor labels. More... | |
void | refresh () |
Refresh all necessary widgets in MatchTool including the PointEditor and CubeViewports. More... | |
void | activate (bool) |
Activates the tool. More... | |
virtual void | updateTool () |
Updates the tool. More... | |
void | setCubeViewport (MdiCubeViewport *cvp) |
Sets the current viewport to the given cvp. More... | |
Signals | |
void | editPointChanged () |
void | ignorePointChanged () |
void | ignoreLeftChanged () |
void | ignoreRightChanged () |
void | newControlNetwork (ControlNet *) |
void | stretchChipViewport (Stretch *, CubeViewport *) |
void | measureChanged () |
void | clearWarningSignal () |
void | toolActivated () |
void | viewportChanged () |
Public Member Functions | |
MatchTool (QWidget *parent) | |
Consructs the Match Tool window. More... | |
void | paintViewport (MdiCubeViewport *mvp, QPainter *painter) |
Take care of drawing things on a viewPort. More... | |
QString | measureColumnToString (MeasureColumns column) |
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 (QMenu *menu) |
virtual void | addTo (Workspace *ws) |
Adds the given workspace to the cubeviewport list. More... | |
virtual QString | menuName () const |
Anytime a tool is created, you must give it a name for the menu. More... | |
virtual void | addToPermanent (QToolBar *toolbar) |
void | addToActive (QToolBar *toolbar) |
QString | toolIconDir () const |
returns the path to the icon directory. More... | |
RubberBandTool * | rubberBandTool () |
void | setList (ToolList *currentList) |
Static Public Attributes | |
static const int | NUMCOLUMNS = 16 |
Protected Types | |
typedef QVector< MdiCubeViewport * > | CubeViewportList |
A list of cubeviewports. More... | |
Protected Slots | |
QWidget * | createToolBarWidget (QStackedWidget *parent) |
void | mouseButtonRelease (QPoint p, Qt::MouseButton s) |
Handle mouse events on 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 | |
QAction * | toolPadAction (ToolPad *pad) |
Adds the Tie tool action to the tool pad. More... | |
bool | eventFilter (QObject *o, QEvent *e) |
Event filter for MatchTool. 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... | |
MdiCubeViewport * | cubeViewport () const |
Return the current cubeviewport. More... | |
CubeViewportList * | cubeViewportList () const |
Return the list of cubeviewports. More... | |
virtual void | addConnections (MdiCubeViewport *cvp) |
Anytime a tool is created, you must add the connections for it. More... | |
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... | |
Workspace * | workspace () |
Private Slots | |
void | showHelp () |
void | enterWhatsThisMode () |
void | paintAllViewports () |
This method will repaint the given Point ID in each viewport Note: The pointId parameter is here even though it's not used because the signal (MatchTool::editPointChanged connected to this slot is also connected to another slot (MatchNavTool::updateEditPoint which needs the point Id. More... | |
void | activateTool () |
void | openNet () |
void | saveNet () |
Signal to save control net. More... | |
void | saveAsNet () |
Signal to save the control net. More... | |
void | setLockPoint (bool ignore) |
Set point's "EditLock" keyword to the value of the input parameter. More... | |
void | setIgnorePoint (bool ignore) |
Set point's "Ignore" keyword to the value of the input parameter. More... | |
void | setLockLeftMeasure (bool ignore) |
Set the "EditLock" keyword of the measure shown in the left viewport to the value of the input parameter. More... | |
void | setIgnoreLeftMeasure (bool ignore) |
Set the "Ignore" keyword of the measure shown in the left viewport to the value of the input parameter. More... | |
void | setLockRightMeasure (bool ignore) |
Set the "EditLock" keyword of the measure shown in the right viewport to the value of the input parameter. More... | |
void | setIgnoreRightMeasure (bool ignore) |
Set the "Ignore" keyword of the measure shown in the right viewport to the value of the input parameter. More... | |
void | nextRightMeasure () |
Selects the next right measure when activated by key shortcut. More... | |
void | previousRightMeasure () |
Selects the previous right measure when activated by key shortcut. More... | |
void | selectLeftMeasure (int index) |
Select left measure. More... | |
void | selectRightMeasure (int index) |
Select right measure. More... | |
void | updateLeftMeasureInfo () |
void | updateRightMeasureInfo () |
void | measureSaved () |
This method is connected with the measureSaved() signal from ControlPointEdit. More... | |
void | checkReference () |
void | savePoint () |
Save edit point to the Control Network. More... | |
void | colorizeSaveButton () |
Turn "Save Point" button text to red. More... | |
void | cancelNewPoint () |
void | doneWithMeasures () |
void | openTemplateFile () |
prompt user for a registration template file to open. More... | |
void | viewTemplateFile () |
Allows the user to view the template file that is currently set. More... | |
void | saveChips () |
Slot which calls ControlPointEditor slot to save chips. More... | |
void | showHideTemplateEditor () |
void | saveTemplateFile () |
save the file opened in the template editor More... | |
void | saveTemplateFileAs () |
save the contents of template editor to a file chosen by the user More... | |
void | setTemplateModified () |
called when the template file is modified by the template editor More... | |
void | writeTemplateFile (QString) |
write the contents of the template editor to the file provided. More... | |
void | clearEditPoint () |
void | exiting () |
This called when qview is exiting. More... | |
Private Member Functions | |
void | createActions () |
Creates the menu actions for Match Tool. More... | |
void | createMenus () |
Customize dropdown menus below title bar. More... | |
void | createToolBars () |
void | loadPoint () |
Load point into MatchTool. More... | |
void | loadMeasureTable () |
Load measure information into the measure table. More... | |
void | drawAllMeasurments (MdiCubeViewport *mvp, QPainter *painter) |
Draw all measurments which are on this viewPort. More... | |
void | createMatchTool (QWidget *parent) |
create the main window for editing control points More... | |
QSplitter * | createTopSplitter () |
creates everything above the ControlPointEdit More... | |
QGroupBox * | createControlPointGroupBox () |
QGroupBox * | createLeftMeasureGroupBox () |
QGroupBox * | createRightMeasureGroupBox () |
Creates the right measure group box. More... | |
void | createTemplateEditorWidget () |
Creates the Widget which contains the template editor and its toolbar. More... | |
void | loadTemplateFile (QString) |
Updates the current template file being used. More... | |
bool | okToContinue () |
Allows user to set a new template file. More... | |
bool | IsMeasureLocked (QString serialNumber) |
Check for implicitly locked measure in m_editPoint. More... | |
void | addMeasure (MdiCubeViewport *mvp, double sample, double line) |
bool | validateMeasureChange (ControlMeasure *m) |
QStringList | missingCubes (ControlPoint *point) |
SerialNumberList | serialNumberList () |
Creates a serial number list based on open cube viewports. More... | |
QString | serialNumber (MdiCubeViewport *mvp) |
void | addViewportToSerialNumberList (MdiCubeViewport *mvp) |
void | readSettings () |
This method is called from the constructor so that when the Main window is created, it know's it's size and location. More... | |
void | writeSettings () const |
This method is called when the Main window is closed or hidden to write the size and location settings to a config file in the user's home directory. More... | |
void | addViewportConnections () |
Makes all the connections for the tool. More... | |
void | removeViewportConnections () |
Removes all the connections from the tool. More... | |
void | enableToolBar () |
Enables entire tool bar. More... | |
void | disableToolBar () |
Disables entire tool bar. More... | |
Private Attributes | |
QMainWindow * | m_matchTool |
QWidget * | m_parent |
QStatusBar * | m_statusBar |
QString | m_cnetFileName |
QLabel * | m_cnetFileNameLabel |
bool | m_coregNet |
QString | m_coregReferenceSN |
bool | m_netChanged |
QAction * | m_createPoint |
QAction * | m_modifyPoint |
QAction * | m_deletePoint |
QAction * | m_saveNet |
QAction * | m_saveAsNet |
QAction * | m_closeMatchTool |
QAction * | m_saveChips |
QAction * | m_showHideTemplateEditor |
QAction * | m_openTemplateFile |
QAction * | m_saveTemplateFile |
QAction * | m_saveTemplateFileAs |
QAction * | m_whatsThis |
QAction * | m_showHelp |
ControlPointEdit * | m_pointEditor |
QPushButton * | m_savePoint |
QPalette | m_saveDefaultPalette |
QTextEdit * | m_templateEditor |
QWidget * | m_templateEditorWidget |
bool | m_templateModified |
QLabel * | m_templateFileNameLabel |
QLabel * | m_ptIdValue |
QLabel * | m_numMeasures |
QCheckBox * | m_lockPoint |
QCheckBox * | m_ignorePoint |
QLabel * | m_leftReference |
QLabel * | m_leftMeasureType |
QLabel * | m_leftSampShift |
QLabel * | m_leftLineShift |
QLabel * | m_leftGoodness |
QLabel * | m_rightGoodness |
QLabel * | m_rightReference |
QLabel * | m_rightMeasureType |
QLabel * | m_rightSampShift |
QLabel * | m_rightLineShift |
QCheckBox * | m_lockLeftMeasure |
QCheckBox * | m_ignoreLeftMeasure |
QCheckBox * | m_lockRightMeasure |
QCheckBox * | m_ignoreRightMeasure |
QComboBox * | m_leftCombo |
QComboBox * | m_rightCombo |
QMainWindow * | m_measureWindow |
QTableWidget * | m_measureTable |
QPointer< ControlNet > | m_controlNet |
ControlPoint * | m_editPoint |
MatchToolNewPointDialog * | m_newPointDialog |
ControlPoint * | m_newPoint |
QString | m_lastUsedPointId |
QStringList | m_pointFiles |
QString | m_leftFile |
ControlMeasure * | m_leftMeasure |
ControlMeasure * | m_rightMeasure |
Cube * | m_leftCube |
Cube * | m_rightCube |
MdiCubeViewport * | m_cvp |
current cubeviewport More... | |
Workspace * | m_workspace |
bool | m_active |
Is the tool acitve? More... | |
QWidget * | m_toolBarWidget |
The tool bar on which this tool resides. More... | |
QAction * | m_toolPadAction |
The tool pad on which this tool resides. More... | |
QString | m_toolIconDir |
The pathway to the icon directory. More... | |
ToolList * | m_toolList |
Match tool operations.
Definition at line 216 of file MatchTool.h.
|
protectedinherited |
Isis::MatchTool::MatchTool | ( | QWidget * | parent | ) |
Consructs the Match Tool window.
parent | Pointer to the parent widget for the Match tool |
Definition at line 57 of file MatchTool.cpp.
References createMatchTool(), and exiting().
|
slotinherited |
Activates the tool.
on |
Definition at line 131 of file Tool.cpp.
References Isis::Tool::addViewportConnections(), Isis::Tool::disableToolBar(), Isis::Tool::enableToolBar(), Isis::Tool::m_active, Isis::Tool::m_toolPadAction, and Isis::Tool::removeViewportConnections().
Referenced by Isis::Tool::addTo(), Isis::AdvancedTrackTool::AdvancedTrackTool(), Isis::RubberBandTool::disable(), Isis::RubberBandTool::enable(), Isis::AdvancedTrackTool::eventFilter(), Isis::FileTool::FileTool(), Isis::RubberBandTool::RubberBandTool(), Isis::TrackTool::TrackTool(), Isis::WindowTool::WindowTool(), and Isis::Workspace::Workspace().
|
inlineprotectedvirtualinherited |
Anytime a tool is created, you must add the connections for it.
cvp |
Reimplemented in Isis::WindowTool, and Isis::TrackTool.
Definition at line 239 of file Tool.h.
Referenced by Isis::Tool::addViewportConnections().
|
inlinevirtualinherited |
menu |
Reimplemented in Isis::ZoomTool, Isis::WindowTool, Isis::SunShadowTool, Isis::StretchTool, Isis::SpectralPlotTool, Isis::SpecialPixelTool, Isis::QnetFileTool, Isis::MeasureTool, Isis::HelpTool, Isis::FindTool, Isis::FileTool, Isis::FeatureNomenclatureTool, Isis::BlinkTool, Isis::AdvancedTrackTool, and Isis::PanTool.
|
inherited |
Adds the tool to the toolpad.
toolpad |
Definition at line 98 of file Tool.cpp.
References Isis::Tool::activate(), Isis::ToolPad::addAction(), Isis::Tool::m_toolPadAction, and Isis::Tool::toolPadAction().
|
inherited |
Adds the tool to the application.
pViewPortMnWin |
Definition at line 78 of file Tool.cpp.
References Isis::ViewportMainWindow::activeToolBar(), Isis::Tool::addToActive(), Isis::Tool::addToPermanent(), Isis::ViewportMainWindow::getMenu(), Isis::Tool::menuName(), Isis::ViewportMainWindow::permanentToolBar(), Isis::ViewportMainWindow::toolPad(), and Isis::ViewportMainWindow::workspace().
Referenced by Isis::EditTool::addTo(), Isis::FileTool::addTo(), Isis::SpecialPixelTool::addTo(), Isis::WindowTool::addTo(), Isis::ViewportMainWindow::ViewportMainWindow(), and Isis::Workspace::Workspace().
|
virtualinherited |
Adds the given workspace to the cubeviewport list.
ws |
Reimplemented in Isis::WindowTool, Isis::SpecialPixelTool, Isis::FileTool, and Isis::EditTool.
Definition at line 45 of file Tool.cpp.
References Isis::Tool::registerTool(), and Isis::Tool::setCubeViewport().
|
inherited |
toolbar |
Definition at line 112 of file Tool.cpp.
References Isis::Tool::createToolBarWidget(), Isis::Tool::disableToolBar(), and Isis::Tool::m_toolBarWidget.
Referenced by Isis::Tool::addTo(), and Isis::Workspace::Workspace().
|
inlinevirtualinherited |
toolbar |
Reimplemented in Isis::WindowTool, Isis::SpecialPixelTool, Isis::HelpTool, Isis::FileTool, Isis::BlinkTool, and Isis::AdvancedTrackTool.
Definition at line 97 of file Tool.h.
Referenced by Isis::Tool::addTo(), and Isis::Workspace::Workspace().
|
privateinherited |
Makes all the connections for the tool.
Definition at line 187 of file Tool.cpp.
References Isis::Tool::addConnections(), Isis::Tool::enableRubberBandTool(), Isis::Tool::m_cvp, Isis::Tool::m_toolPadAction, Isis::Tool::mouseButtonPress(), Isis::Tool::mouseButtonRelease(), Isis::Tool::mouseDoubleClick(), Isis::Tool::mouseMove(), and Isis::Tool::screenPixelsChanged().
Referenced by Isis::Tool::activate(), and Isis::Tool::setCubeViewport().
|
privateslot |
Turn "Save Point" button text to red.
Definition at line 3001 of file MatchTool.cpp.
Referenced by createMatchTool(), deletePoint(), measureSaved(), setIgnorePoint(), and setLockPoint().
|
private |
Creates the menu actions for Match Tool.
Definition at line 460 of file MatchTool.cpp.
References openTemplateFile(), saveAsNet(), saveChips(), saveNet(), saveTemplateFile(), saveTemplateFileAs(), and Isis::Tool::toolIconDir().
Referenced by createMatchTool().
|
private |
Definition at line 276 of file MatchTool.cpp.
References setIgnorePoint(), and setLockPoint().
Referenced by createTopSplitter().
|
private |
Definition at line 311 of file MatchTool.cpp.
References selectLeftMeasure(), setIgnoreLeftMeasure(), and setLockLeftMeasure().
Referenced by createTopSplitter().
|
private |
create the main window for editing control points
parent | Pointer to parent QWidget |
Definition at line 165 of file MatchTool.cpp.
References colorizeSaveButton(), createActions(), createMenus(), createTopSplitter(), measureSaved(), paintAllViewports(), readSettings(), and savePoint().
Referenced by MatchTool().
|
private |
Customize dropdown menus below title bar.
Definition at line 569 of file MatchTool.cpp.
Referenced by createMatchTool().
|
slot |
Create new control point at given samp, line for viewport.
Definition at line 1553 of file MatchTool.cpp.
References Isis::ControlPoint::Add(), Isis::CubeViewport::cube(), Isis::Tool::cubeViewportList(), Isis::Cube::fileName(), Isis::ControlPoint::Free, Isis::ControlMeasure::Manual, Isis::FileName::name(), paintAllViewports(), Isis::ControlMeasure::SetChooserName(), Isis::ControlPoint::SetChooserName(), Isis::ControlMeasure::SetCoordinate(), Isis::ControlMeasure::SetCubeSerialNumber(), Isis::ControlMeasure::SetDateTime(), Isis::MatchToolNewPointDialog::setFiles(), Isis::ControlMeasure::SetType(), Isis::ControlPoint::SetType(), and Isis::Application::UserName().
Referenced by mouseButtonRelease().
|
private |
Creates the right measure group box.
Definition at line 371 of file MatchTool.cpp.
References nextRightMeasure(), previousRightMeasure(), selectRightMeasure(), setIgnoreRightMeasure(), and setLockRightMeasure().
Referenced by createTopSplitter().
|
private |
Creates the Widget which contains the template editor and its toolbar.
Definition at line 431 of file MatchTool.cpp.
References setTemplateModified().
Referenced by createTopSplitter().
|
private |
creates everything above the ControlPointEdit
Definition at line 247 of file MatchTool.cpp.
References createControlPointGroupBox(), createLeftMeasureGroupBox(), createRightMeasureGroupBox(), and createTemplateEditorWidget().
Referenced by createMatchTool().
|
inlineprotectedinherited |
Return the current cubeviewport.
Definition at line 197 of file Tool.h.
References Isis::Tool::m_cvp.
Referenced by Isis::TrackTool::addConnections(), Isis::WindowTool::addConnections(), Isis::StretchTool::advancedStretchChanged(), Isis::FindTool::centerLinkedViewports(), Isis::StretchTool::changeStretch(), Isis::BandTool::changeView(), Isis::BandTool::copyLinkedViewports(), Isis::StretchTool::deleteFromCube(), Isis::FileTool::discard(), Isis::Tool::enableToolBar(), Isis::FileTool::exportToList(), Isis::FileTool::exportView(), Isis::StatisticsTool::getStatistics(), Isis::FindTool::handleRecordClicked(), Isis::EditTool::LineToPoints(), Isis::StretchTool::loadStretchFromCube(), Isis::TrackTool::locateCursor(), Isis::SunShadowTool::mouseButtonPress(), Isis::EditTool::mouseButtonRelease(), Isis::ControlNetTool::mouseButtonRelease(), Isis::FeatureNomenclatureTool::mouseButtonRelease(), Isis::FindTool::mouseButtonRelease(), mouseButtonRelease(), Isis::QnetTool::mouseButtonRelease(), Isis::RubberBandTool::mouseButtonRelease(), Isis::StretchTool::mouseButtonRelease(), Isis::AdvancedTrackTool::mouseLeave(), Isis::SunShadowTool::mouseMove(), Isis::TrackTool::mouseMove(), Isis::RubberBandTool::mouseMove(), Isis::ScatterPlotTool::mouseMove(), Isis::FindTool::paintViewport(), Isis::RubberBandTool::paintViewport(), Isis::SunShadowTool::paintViewport(), Isis::FileTool::print(), Isis::SunShadowTool::recalculateShadowHeight(), Isis::EditTool::redoEdit(), Isis::FindTool::refresh(), Isis::HistogramTool::refreshPlot(), Isis::SpatialPlotTool::refreshPlot(), Isis::SpectralPlotTool::refreshPlot(), Isis::TrackTool::removeConnections(), Isis::WindowTool::removeConnections(), Isis::RubberBandTool::repaint(), Isis::WindowTool::resizeWindows(), Isis::EditTool::rubberBandComplete(), Isis::HistogramTool::rubberBandComplete(), 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::AbstractPlotTool::updateTool(), Isis::BandTool::updateTool(), Isis::BlinkTool::updateTool(), Isis::EditTool::updateTool(), Isis::FileTool::updateTool(), Isis::FindTool::updateTool(), Isis::SpecialPixelTool::updateTool(), Isis::StretchTool::updateTool(), Isis::SunShadowTool::updateTool(), Isis::WindowTool::updateTool(), Isis::ZoomTool::updateTool(), Isis::AbstractPlotTool::viewportsToPlot(), Isis::EditTool::writeToCube(), Isis::ZoomTool::zoomBy(), Isis::ZoomTool::zoomFit(), Isis::ZoomTool::zoomFitHeight(), Isis::ZoomTool::zoomFitWidth(), and Isis::ZoomTool::zoomManual().
|
protectedinherited |
Return the list of cubeviewports.
Definition at line 390 of file Tool.cpp.
References Isis::Workspace::cubeViewportList().
Referenced by Isis::BlinkTool::advance(), Isis::SpecialPixelTool::apply(), Isis::FindTool::centerLinkedViewports(), Isis::WindowTool::changeCursor(), Isis::FileTool::closeAll(), Isis::BandTool::copyAllViewports(), Isis::BandTool::copyLinkedViewports(), 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(), paintAllViewports(), Isis::StereoTool::paintAllViewports(), Isis::QnetTool::paintAllViewports(), Isis::FindTool::refresh(), Isis::ScatterPlotTool::repaintViewports(), Isis::AbstractPlotTool::repaintViewports(), Isis::WindowTool::resizeWindows(), Isis::BlinkTool::reverse(), Isis::ZoomTool::rubberBandComplete(), 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().
|
slot |
Delete control point.
point | Pointer to control point (net memory) to be deleted. |
Definition at line 1693 of file MatchTool.cpp.
References colorizeSaveButton(), Isis::ControlPoint::Delete(), Isis::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlPoint::GetId(), Isis::ControlPoint::GetRefMeasure(), Isis::ControlPoint::IsReferenceExplicit(), loadPoint(), loadTemplateFile(), Isis::ControlPoint::PointLocked, and serialNumberList().
Referenced by mouseButtonRelease().
|
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().
|
private |
Draw all measurments which are on this viewPort.
vp | Viewport whose measurements will be drawn |
painter |
Definition at line 2614 of file MatchTool.cpp.
References Isis::CubeViewport::cubeToViewport(), and Isis::ControlPoint::HasSerialNumber().
Referenced by paintViewport().
|
protectedvirtualinherited |
Anytime a tool is created, you may use the rubber band tool.
Enable the use of the rubberband tool.
Reimplemented in Isis::ZoomTool, Isis::StereoTool, Isis::SpectralPlotTool, Isis::SpatialPlotTool, Isis::RubberBandTool, Isis::MeasureTool, and Isis::HistogramTool.
Definition at line 339 of file Tool.cpp.
References Isis::RubberBandTool::disable().
Referenced by Isis::Tool::addViewportConnections().
|
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().
|
protected |
Event filter for MatchTool.
Determines whether to update left or right measure info.
o | Pointer to QObject |
e | Pointer to QEvent |
Definition at line 2540 of file MatchTool.cpp.
References updateLeftMeasureInfo(), and updateRightMeasureInfo().
|
privateslot |
This called when qview is exiting.
We need to possibly prompt user for saving the edit point and network
Definition at line 3360 of file MatchTool.cpp.
References Isis::ControlPoint::GetId(), saveAsNet(), and savePoint().
Referenced by MatchTool().
|
private |
Check for implicitly locked measure in m_editPoint.
If point is Locked, and this measure is the reference, it is implicity Locked. Because measure is a copy, the ControlPoint::IsEditLocked() which checks for implicit Lock on Reference measures does not work because there is not a parent point.
[in] | serialNumber | (QString) Serial number of measure to be checked |
Definition at line 3024 of file MatchTool.cpp.
References Isis::ControlPoint::GetMeasure(), Isis::ControlPoint::GetReferenceSN(), Isis::ControlMeasure::IsEditLocked(), and Isis::ControlPoint::IsReferenceExplicit().
Referenced by loadMeasureTable(), updateLeftMeasureInfo(), and updateRightMeasureInfo().
|
private |
Load measure information into the measure table.
Definition at line 2030 of file MatchTool.cpp.
References Isis::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlMeasureLogData::GetNumericalValue(), Isis::ControlPoint::GetReferenceSN(), Isis::ControlMeasure::GetResidualMagnitude(), Isis::ControlMeasureLogData::GoodnessOfFit, IsMeasureLocked(), Isis::ControlPoint::IsReferenceExplicit(), Isis::ControlMeasure::MeasureTypeToString(), Isis::Null, and serialNumberList().
Referenced by loadPoint(), and measureSaved().
|
private |
Load point into MatchTool.
Definition at line 1940 of file MatchTool.cpp.
References Isis::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlPoint::GetId(), Isis::ControlPoint::GetReferenceSN(), Isis::ControlPoint::IndexOfRefMeasure(), Isis::ControlPoint::IsReferenceExplicit(), loadMeasureTable(), Isis::FileName::name(), selectLeftMeasure(), selectRightMeasure(), and serialNumberList().
Referenced by deletePoint(), and modifyPoint().
|
private |
Updates the current template file being used.
fn | The file path of the new template file |
Definition at line 2762 of file MatchTool.cpp.
Referenced by deletePoint(), modifyPoint(), and openTemplateFile().
|
privateslot |
This method is connected with the measureSaved() signal from ControlPointEdit.
Definition at line 788 of file MatchTool.cpp.
References colorizeSaveButton(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlPoint::GetId(), Isis::ControlPoint::GetMeasure(), loadMeasureTable(), Isis::ControlMeasure::SetChooserName(), Isis::ControlPoint::SetIgnored(), Isis::ControlPointEdit::setLeftMeasure(), updateLeftMeasureInfo(), updateRightMeasureInfo(), and Isis::Application::UserName().
Referenced by createMatchTool().
|
inlinevirtualinherited |
Anytime a tool is created, you must give it a name for the menu.
Reimplemented in Isis::ZoomTool, Isis::WindowTool, Isis::StretchTool, Isis::SpecialPixelTool, Isis::PanTool, Isis::MeasureTool, Isis::HelpTool, Isis::FindTool, Isis::FileTool, Isis::FeatureNomenclatureTool, Isis::BlinkTool, Isis::BandTool, and Isis::AdvancedTrackTool.
Definition at line 83 of file Tool.h.
Referenced by Isis::Tool::addTo(), and Isis::Workspace::Workspace().
|
slot |
Modify control point.
point | Pointer to control point to be modified. |
Definition at line 1874 of file MatchTool.cpp.
References loadPoint(), and loadTemplateFile().
Referenced by mouseButtonRelease().
|
protectedvirtualinherited |
p | |
s |
Definition at line 367 of file Tool.cpp.
Referenced by Isis::Tool::addViewportConnections(), and Isis::Tool::removeViewportConnections().
|
protectedslot |
Handle mouse events on CubeViewport.
p[in] | (QPoint) Point under cursor in cubeviewport |
s[in] | (Qt::MouseButton) Which mouse button was pressed |
Definition at line 1457 of file MatchTool.cpp.
References createPoint(), Isis::CubeViewport::cube(), Isis::Tool::cubeViewport(), deletePoint(), Isis::Cube::fileName(), modifyPoint(), Isis::SerialNumberList::serialNumber(), serialNumberList(), Isis::IException::toString(), and Isis::CubeViewport::viewportToCube().
|
protectedvirtualinherited |
p |
Definition at line 358 of file Tool.cpp.
Referenced by Isis::Tool::addViewportConnections(), and Isis::Tool::removeViewportConnections().
|
protectedvirtualslotinherited |
p |
Definition at line 352 of file Tool.cpp.
Referenced by Isis::Tool::addViewportConnections(), and Isis::Tool::removeViewportConnections().
|
privateslot |
Selects the next right measure when activated by key shortcut.
This slot is intended to handle selecting the next right measure when the attached shortcut (PageDown) is activated. This slot checks if the next index is in bounds.
Definition at line 2241 of file MatchTool.cpp.
References selectRightMeasure().
Referenced by createRightMeasureGroupBox().
|
private |
Allows user to set a new template file.
void MatchTool::setTemplateFile() { m_pointEditor->setTemplateFile(); }
Definition at line 2713 of file MatchTool.cpp.
References saveTemplateFileAs().
Referenced by openTemplateFile().
|
privateslot |
prompt user for a registration template file to open.
Once the file is selected, loadTemplateFile is called to update the current template file being used.
Definition at line 2738 of file MatchTool.cpp.
References loadTemplateFile(), okToContinue(), and Isis::ControlPointEdit::setTemplateFile().
Referenced by createActions().
|
privateslot |
This method will repaint the given Point ID in each viewport Note: The pointId parameter is here even though it's not used because the signal (MatchTool::editPointChanged connected to this slot is also connected to another slot (MatchNavTool::updateEditPoint which needs the point Id.
TODO: Clean this up, use 2 different signals?
pointId |
Definition at line 2580 of file MatchTool.cpp.
References Isis::Tool::cubeViewportList().
Referenced by createMatchTool(), createPoint(), and refresh().
|
virtual |
Take care of drawing things on a viewPort.
This is overiding the parents paintViewport member.
vp | Pointer to Viewport to be painted |
painter |
Reimplemented from Isis::Tool.
Definition at line 2561 of file MatchTool.cpp.
References drawAllMeasurments().
|
privateslot |
Selects the previous right measure when activated by key shortcut.
This slot is intended to handle selecting the previous right measure when the attached shortcut (PageUp) is activated. This slot checks if the previous index is in bounds.
Definition at line 2260 of file MatchTool.cpp.
References selectRightMeasure().
Referenced by createRightMeasureGroupBox().
|
private |
This method is called from the constructor so that when the Main window is created, it know's it's size and location.
Definition at line 3047 of file MatchTool.cpp.
References Isis::FileName::expanded().
Referenced by createMatchTool().
|
slot |
Refresh all necessary widgets in MatchTool including the PointEditor and CubeViewports.
Definition at line 2973 of file MatchTool.cpp.
References paintAllViewports().
|
protectedinherited |
Registers the tool to the viewport.
viewport |
Definition at line 327 of file Tool.cpp.
References Isis::Tool::m_cvp, and Isis::MdiCubeViewport::registerTool().
Referenced by Isis::Tool::addTo().
|
inlineprotectedvirtualinherited |
Anytime a tool is created, you must be able to remove it's connections.
cvp |
Reimplemented in Isis::WindowTool, Isis::TrackTool, and Isis::MeasureTool.
Definition at line 247 of file Tool.h.
Referenced by Isis::Tool::removeViewportConnections().
|
privateinherited |
Removes all the connections from the tool.
Definition at line 238 of file Tool.cpp.
References Isis::Tool::m_cvp, Isis::Tool::mouseButtonPress(), Isis::Tool::mouseButtonRelease(), Isis::Tool::mouseDoubleClick(), Isis::Tool::mouseMove(), Isis::Tool::removeConnections(), and Isis::Tool::screenPixelsChanged().
Referenced by Isis::Tool::activate(), and Isis::Tool::setCubeViewport().
|
privateslot |
Signal to save the control net.
Definition at line 1400 of file MatchTool.cpp.
References Isis::IException::what().
Referenced by createActions(), and exiting().
|
privateslot |
Slot which calls ControlPointEditor slot to save chips.
Definition at line 2909 of file MatchTool.cpp.
References Isis::ControlPointEdit::saveChips().
Referenced by createActions().
|
privateslot |
Signal to save control net.
Definition at line 1373 of file MatchTool.cpp.
References Isis::IException::what().
Referenced by createActions().
|
privateslot |
Save edit point to the Control Network.
Up to this point the point is simply a copy and does not exist in the network.
Definition at line 1079 of file MatchTool.cpp.
References Isis::ControlPoint::GetId().
Referenced by createMatchTool(), and exiting().
|
privateslot |
save the file opened in the template editor
Definition at line 2794 of file MatchTool.cpp.
References writeTemplateFile().
Referenced by createActions().
|
privateslot |
save the contents of template editor to a file chosen by the user
Definition at line 2808 of file MatchTool.cpp.
References writeTemplateFile().
Referenced by createActions(), and okToContinue().
|
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().
|
privateslot |
Select left measure.
index | Index of file from the point files vector |
Definition at line 2284 of file MatchTool.cpp.
References Isis::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlPoint::GetId(), Isis::Cube::open(), Isis::SerialNumberList::serialNumber(), serialNumberList(), Isis::ControlPointEdit::setLeftMeasure(), Isis::IException::toString(), and updateLeftMeasureInfo().
Referenced by createLeftMeasureGroupBox(), and loadPoint().
|
privateslot |
Select right measure.
index | Index of file from the point files vector |
Definition at line 2339 of file MatchTool.cpp.
References Isis::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlPoint::GetId(), Isis::Cube::open(), Isis::SerialNumberList::serialNumber(), serialNumberList(), Isis::ControlPointEdit::setRightMeasure(), Isis::IException::toString(), and updateRightMeasureInfo().
Referenced by createRightMeasureGroupBox(), loadPoint(), nextRightMeasure(), and previousRightMeasure().
|
private |
Creates a serial number list based on open cube viewports.
Definition at line 679 of file MatchTool.cpp.
References Isis::SerialNumberList::add(), Isis::SerialNumber::Compose(), Isis::CubeViewport::cube(), Isis::Tool::cubeViewportList(), Isis::FileName::expanded(), Isis::Cube::fileName(), Isis::SerialNumberList::fileName(), Isis::SerialNumberList::hasSerialNumber(), Isis::FileName::name(), and Isis::SerialNumberList::remove().
Referenced by deletePoint(), loadMeasureTable(), loadPoint(), mouseButtonRelease(), selectLeftMeasure(), and selectRightMeasure().
|
slotinherited |
Sets the current viewport to the given cvp.
cvp |
Definition at line 160 of file Tool.cpp.
References Isis::Tool::addViewportConnections(), Isis::Tool::enableToolBar(), Isis::Tool::m_active, Isis::Tool::m_cvp, Isis::Tool::removeViewportConnections(), and Isis::Tool::updateTool().
Referenced by Isis::Tool::addTo(), and Isis::FileTool::closeAll().
|
privateslot |
Set the "Ignore" keyword of the measure shown in the left viewport to the value of the input parameter.
ignore | Boolean value that determines the Ignore value for the left measure. |
Definition at line 1213 of file MatchTool.cpp.
References Isis::ControlMeasure::GetCubeSerialNumber().
Referenced by createLeftMeasureGroupBox().
|
privateslot |
Set point's "Ignore" keyword to the value of the input parameter.
ignore | Boolean value that determines the Ignore value for this point. |
Definition at line 1140 of file MatchTool.cpp.
References colorizeSaveButton(), Isis::ControlPoint::PointLocked, and Isis::ControlPoint::SetIgnored().
Referenced by createControlPointGroupBox().
|
privateslot |
Set the "Ignore" keyword of the measure shown in the right viewport to the value of the input parameter.
ignore | Boolean value that determines the Ignore value for the right measure. |
Definition at line 1283 of file MatchTool.cpp.
References Isis::ControlMeasure::GetCubeSerialNumber().
Referenced by createRightMeasureGroupBox().
|
privateslot |
Set the "EditLock" keyword of the measure shown in the left viewport to the value of the input parameter.
ignore | Boolean value that determines the EditLock value for the left measure. |
Definition at line 1172 of file MatchTool.cpp.
References Isis::ControlMeasure::GetCubeSerialNumber(), and Isis::ControlMeasure::IsEditLocked().
Referenced by createLeftMeasureGroupBox().
|
privateslot |
Set point's "EditLock" keyword to the value of the input parameter.
ignore | Boolean value that determines the EditLock value for this point. |
Definition at line 1121 of file MatchTool.cpp.
References colorizeSaveButton(), and Isis::ControlPoint::SetEditLock().
Referenced by createControlPointGroupBox().
|
privateslot |
Set the "EditLock" keyword of the measure shown in the right viewport to the value of the input parameter.
ignore | Boolean value that determines the EditLock value for the right measure. |
Definition at line 1243 of file MatchTool.cpp.
References Isis::ControlMeasure::GetCubeSerialNumber(), and Isis::ControlMeasure::IsEditLocked().
Referenced by createRightMeasureGroupBox().
|
privateslot |
called when the template file is modified by the template editor
Definition at line 2786 of file MatchTool.cpp.
Referenced by createTemplateEditorWidget().
|
inlineinherited |
returns the path to the icon directory.
Definition at line 113 of file Tool.h.
References Isis::Tool::m_toolIconDir.
Referenced by Isis::AdvancedTrackTool::AdvancedTrackTool(), Isis::BlinkTool::BlinkTool(), createActions(), Isis::QnetTool::createActions(), Isis::StereoTool::createMenus(), Isis::BandTool::createToolBarWidget(), Isis::EditTool::createToolBarWidget(), Isis::FindTool::createToolBarWidget(), Isis::PanTool::createToolBarWidget(), Isis::StereoTool::createToolBarWidget(), Isis::StretchTool::createToolBarWidget(), Isis::ZoomTool::createToolBarWidget(), Isis::FileTool::FileTool(), Isis::FindTool::FindTool(), Isis::HistogramTool::HistogramTool(), Isis::SpecialPixelTool::SpecialPixelTool(), Isis::RubberBandComboBox::toolIconDir(), Isis::BandTool::toolPadAction(), Isis::ControlNetTool::toolPadAction(), Isis::EditTool::toolPadAction(), Isis::FeatureNomenclatureTool::toolPadAction(), Isis::HistogramTool::toolPadAction(), toolPadAction(), Isis::MeasureTool::toolPadAction(), Isis::PanTool::toolPadAction(), Isis::QnetTool::toolPadAction(), Isis::ScatterPlotTool::toolPadAction(), Isis::SpatialPlotTool::toolPadAction(), Isis::SpectralPlotTool::toolPadAction(), Isis::StereoTool::toolPadAction(), Isis::StretchTool::toolPadAction(), Isis::SunShadowTool::toolPadAction(), Isis::FindTool::toolPadAction(), Isis::StatisticsTool::toolPadAction(), Isis::ZoomTool::toolPadAction(), Isis::WindowTool::WindowTool(), and Isis::ZoomTool::ZoomTool().
Adds the Tie tool action to the tool pad.
When the Tie tool is selected, the Navigation Tool will automatically open.
pad | Tool pad |
Reimplemented from Isis::Tool.
Definition at line 614 of file MatchTool.cpp.
References Isis::Tool::toolIconDir().
|
privateslot |
Definition at line 2401 of file MatchTool.cpp.
References Isis::ControlMeasure::Candidate, Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlMeasureLogData::GetNumericalValue(), Isis::ControlPoint::GetReferenceSN(), Isis::ControlMeasureLogData::GoodnessOfFit, IsMeasureLocked(), Isis::ControlPoint::IsReferenceExplicit(), Isis::ControlMeasure::Manual, Isis::Null, Isis::ControlMeasure::RegisteredPixel, and Isis::ControlMeasure::RegisteredSubPixel.
Referenced by eventFilter(), measureSaved(), and selectLeftMeasure().
|
slot |
Update the current editPoint information in the Point Editor labels.
@TODO Instead of a single method, should slots be separate for each updated point parameter, ie. ignore, editLock, apriori, etc. This is not robust, if other point attributes are changed outside of MatchTool, this method will need to be updated. *** THIS METHOD SHOULD GO AWAY WHEN CONTROLpOINTEDITOR IS INCLUDED IN MATCH ***
Definition at line 2937 of file MatchTool.cpp.
References Isis::ControlPoint::GetId(), Isis::ControlPoint::SetEditLock(), and Isis::ControlPoint::SetIgnored().
|
privateslot |
Definition at line 2474 of file MatchTool.cpp.
References Isis::ControlMeasure::Candidate, Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlMeasureLogData::GetNumericalValue(), Isis::ControlPoint::GetReferenceSN(), Isis::ControlMeasureLogData::GoodnessOfFit, IsMeasureLocked(), Isis::ControlPoint::IsReferenceExplicit(), Isis::ControlMeasure::Manual, Isis::Null, Isis::ControlMeasure::RegisteredPixel, and Isis::ControlMeasure::RegisteredSubPixel.
Referenced by eventFilter(), measureSaved(), and selectRightMeasure().
|
virtualslotinherited |
Updates the tool.
Reimplemented in Isis::ZoomTool, Isis::WindowTool, Isis::SunShadowTool, Isis::StretchTool, Isis::SpectralPlotTool, Isis::SpecialPixelTool, Isis::SpatialPlotTool, Isis::MeasureTool, Isis::HistogramTool, Isis::FindTool, Isis::FileTool, Isis::FeatureNomenclatureTool, Isis::EditTool, Isis::BlinkTool, Isis::BandTool, and Isis::AbstractPlotTool.
Definition at line 318 of file Tool.cpp.
Referenced by Isis::Tool::enableToolBar(), and Isis::Tool::setCubeViewport().
|
privateslot |
Allows the user to view the template file that is currently set.
Definition at line 2883 of file MatchTool.cpp.
References Isis::PvlContainer::fileName(), and Isis::IException::toString().
|
private |
This method is called when the Main window is closed or hidden to write the size and location settings to a config file in the user's home directory.
Definition at line 3064 of file MatchTool.cpp.
References Isis::FileName::expanded().
|
privateslot |
write the contents of the template editor to the file provided.
fn | The filename to write to |
Definition at line 2827 of file MatchTool.cpp.
References Isis::ControlPointEdit::setTemplateFile(), and Isis::IException::toString().
Referenced by saveTemplateFile(), and saveTemplateFileAs().
|
privateinherited |
Is the tool acitve?
Definition at line 264 of file Tool.h.
Referenced by Isis::Tool::activate(), Isis::Tool::setCubeViewport(), and Isis::Tool::Tool().
|
privateinherited |
current cubeviewport
Definition at line 261 of file Tool.h.
Referenced by Isis::Tool::addViewportConnections(), Isis::Tool::cubeViewport(), Isis::Tool::registerTool(), Isis::Tool::removeViewportConnections(), Isis::Tool::setCubeViewport(), and Isis::Tool::Tool().
|
privateinherited |
The tool bar on which this tool resides.
Definition at line 265 of file Tool.h.
Referenced by Isis::Tool::addToActive(), Isis::Tool::disableToolBar(), Isis::Tool::enableToolBar(), and Isis::Tool::Tool().
|
privateinherited |
The pathway to the icon directory.
Definition at line 267 of file Tool.h.
Referenced by Isis::Tool::Tool(), and Isis::Tool::toolIconDir().
|
privateinherited |
The tool pad on which this tool resides.
Definition at line 266 of file Tool.h.
Referenced by Isis::Tool::activate(), Isis::Tool::addTo(), Isis::Tool::addViewportConnections(), and Isis::Tool::Tool().
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 07/13/2023 15:20:27 |