Isis 3.0 Object Programmers' Reference |
Home |
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. | |
void | modifyPoint (ControlPoint *point) |
Modify control point. | |
void | deletePoint (ControlPoint *point) |
Delete control point. | |
void | updatePointInfo (QString pointId) |
Update the current editPoint information in the Point Editor labels. | |
void | refresh () |
Refresh all necessary widgets in MatchTool including the PointEditor and CubeViewports. | |
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 | 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. | |
void | paintViewport (MdiCubeViewport *mvp, QPainter *painter) |
Take care of drawing things on a viewPort. | |
QString | measureColumnToString (MeasureColumns column) |
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. | |
RubberBandTool * | rubberBandTool () |
void | setList (ToolList *currentList) |
Static Public Attributes | |
static const int | NUMCOLUMNS = 16 |
Protected Types | |
typedef QVector < MdiCubeViewport * > | CubeViewportList |
A list of cubeviewports. |
Protected Slots | |
QWidget * | createToolBarWidget (QStackedWidget *parent) |
void | mouseButtonRelease (QPoint p, Qt::MouseButton s) |
Handle mouse events on 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 () |
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. |
Protected Member Functions | |
QAction * | toolPadAction (ToolPad *pad) |
Adds the Tie tool action to the tool pad. | |
bool | eventFilter (QObject *o, QEvent *e) |
Event filter for MatchTool. | |
MdiCubeViewport * | cubeViewport () const |
Return the current cubeviewport. | |
CubeViewportList * | cubeViewportList () 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. | |
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. | |
void | activateTool () |
void | openNet () |
void | saveNet () |
Signal to save control net. | |
void | saveAsNet () |
Signal to save the control net. | |
void | setLockPoint (bool ignore) |
Set point's "EditLock" keyword to the value of the input parameter. | |
void | setIgnorePoint (bool ignore) |
Set point's "Ignore" keyword to the value of the input parameter. | |
void | setLockLeftMeasure (bool ignore) |
Set the "EditLock" keyword of the measure shown in the left viewport to the value of the input parameter. | |
void | setIgnoreLeftMeasure (bool ignore) |
Set the "Ignore" keyword of the measure shown in the left viewport to the value of the input parameter. | |
void | setLockRightMeasure (bool ignore) |
Set the "EditLock" keyword of the measure shown in the right viewport to the value of the input parameter. | |
void | setIgnoreRightMeasure (bool ignore) |
Set the "Ignore" keyword of the measure shown in the right viewport to the value of the input parameter. | |
void | nextRightMeasure () |
Selects the next right measure when activated by key shortcut. | |
void | previousRightMeasure () |
Selects the previous right measure when activated by key shortcut. | |
void | selectLeftMeasure (int index) |
Select left measure. | |
void | selectRightMeasure (int index) |
Select right measure. | |
void | updateLeftMeasureInfo () |
void | updateRightMeasureInfo () |
void | measureSaved () |
This method is connected with the measureSaved() signal from ControlPointEdit. | |
void | checkReference () |
void | savePoint () |
Save edit point to the Control Network. | |
void | colorizeSaveButton () |
Turn "Save Point" button text to red. | |
void | cancelNewPoint () |
void | doneWithMeasures () |
void | openTemplateFile () |
prompt user for a registration template file to open. | |
void | viewTemplateFile () |
Allows the user to view the template file that is currently set. | |
void | saveChips () |
Slot which calls ControlPointEditor slot to save chips. | |
void | showHideTemplateEditor () |
void | saveTemplateFile () |
save the file opened in the template editor | |
void | saveTemplateFileAs () |
save the contents of template editor to a file chosen by the user | |
void | setTemplateModified () |
called when the template file is modified by the template editor | |
void | writeTemplateFile (QString) |
write the contents of the template editor to the file provided. | |
void | clearEditPoint () |
void | exiting () |
This called when qview is exiting. |
Private Member Functions | |
void | createActions () |
Creates the menu actions for Match Tool. | |
void | createMenus () |
Customize dropdown menus below title bar. | |
void | createToolBars () |
void | loadPoint () |
Load point into MatchTool. | |
void | loadMeasureTable () |
Load measure information into the measure table. | |
void | drawAllMeasurments (MdiCubeViewport *mvp, QPainter *painter) |
Draw all measurments which are on this viewPort. | |
void | createMatchTool (QWidget *parent) |
create the main window for editing control points | |
QSplitter * | createTopSplitter () |
creates everything above the ControlPointEdit | |
QGroupBox * | createControlPointGroupBox () |
QGroupBox * | createLeftMeasureGroupBox () |
QGroupBox * | createRightMeasureGroupBox () |
Creates the right measure group box. | |
void | createTemplateEditorWidget () |
Creates the Widget which contains the template editor and its toolbar. | |
void | loadTemplateFile (QString) |
Updates the current template file being used. | |
bool | okToContinue () |
Allows user to set a new template file. | |
bool | IsMeasureLocked (QString serialNumber) |
Check for implicitly locked measure in m_editPoint. | |
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. | |
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. | |
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. |
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 |
Match tool operations.
Definition at line 209 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 48 of file MatchTool.cpp.
References createMatchTool(), and exiting().
|
slotinherited |
Activates the tool.
on |
Definition at line 130 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::TrackTool, and Isis::WindowTool.
Definition at line 253 of file Tool.h.
Referenced by Isis::Tool::addViewportConnections().
|
inherited |
Adds the tool to the application.
pViewPortMnWin |
Definition at line 77 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::ViewportMainWindow::ViewportMainWindow(), and Isis::Workspace::Workspace().
|
inherited |
Adds the tool to the toolpad.
toolpad |
Definition at line 97 of file Tool.cpp.
References Isis::Tool::activate(), Isis::ToolPad::addAction(), Isis::Tool::m_toolPadAction, and Isis::Tool::toolPadAction().
|
inlinevirtualinherited |
menu |
Reimplemented in Isis::FindTool, Isis::FeatureNomenclatureTool, Isis::StretchTool, Isis::QnetFileTool, Isis::AdvancedTrackTool, Isis::ZoomTool, Isis::SpectralPlotTool, Isis::MeasureTool, Isis::FileTool, Isis::SunShadowTool, Isis::HelpTool, Isis::SpecialPixelTool, Isis::BlinkTool, Isis::WindowTool, and Isis::PanTool.
|
virtualinherited |
Adds the given workspace to the cubeviewport list.
ws |
Reimplemented in Isis::EditTool, Isis::FileTool, Isis::SpecialPixelTool, and Isis::WindowTool.
Definition at line 44 of file Tool.cpp.
References Isis::Tool::registerTool(), and Isis::Tool::setCubeViewport().
|
inherited |
toolbar |
Definition at line 111 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::AdvancedTrackTool, Isis::FileTool, Isis::HelpTool, Isis::SpecialPixelTool, Isis::BlinkTool, and Isis::WindowTool.
Definition at line 111 of file Tool.h.
Referenced by Isis::Tool::addTo(), and Isis::Workspace::Workspace().
|
privateslot |
Turn "Save Point" button text to red.
Definition at line 2985 of file MatchTool.cpp.
Referenced by createMatchTool(), deletePoint(), measureSaved(), setIgnorePoint(), and setLockPoint().
|
private |
Creates the menu actions for Match Tool.
Definition at line 451 of file MatchTool.cpp.
References openTemplateFile(), saveAsNet(), saveChips(), saveNet(), saveTemplateFile(), saveTemplateFileAs(), and Isis::Tool::toolIconDir().
Referenced by createMatchTool().
|
private |
Definition at line 267 of file MatchTool.cpp.
References setIgnorePoint(), and setLockPoint().
Referenced by createTopSplitter().
|
private |
Definition at line 302 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 156 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 560 of file MatchTool.cpp.
Referenced by createMatchTool().
|
slot |
Create new control point at given samp, line for viewport.
Definition at line 1537 of file MatchTool.cpp.
References Isis::ControlPoint::Add(), Isis::CubeViewport::cube(), Isis::Tool::cubeViewportList(), Isis::Cube::fileName(), Isis::ControlPoint::Free, Isis::ControlMeasure::Manual, 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 362 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 422 of file MatchTool.cpp.
References setTemplateModified().
Referenced by createTopSplitter().
|
private |
creates everything above the ControlPointEdit
Definition at line 238 of file MatchTool.cpp.
References createControlPointGroupBox(), createLeftMeasureGroupBox(), createRightMeasureGroupBox(), and createTemplateEditorWidget().
Referenced by createMatchTool().
|
inlineprotectedinherited |
Return the current cubeviewport.
Definition at line 211 of file Tool.h.
References Isis::Tool::m_cvp.
Referenced by Isis::WindowTool::addConnections(), Isis::TrackTool::addConnections(), Isis::StretchTool::advancedStretchChanged(), Isis::FindTool::centerLinkedViewports(), Isis::StretchTool::changeStretch(), Isis::BandTool::changeView(), Isis::BandTool::copyLinkedViewports(), Isis::FileTool::discard(), Isis::Tool::enableToolBar(), Isis::FileTool::exportView(), Isis::StatisticsTool::getStatistics(), Isis::FindTool::handleRecordClicked(), Isis::EditTool::LineToPoints(), Isis::TrackTool::locateCursor(), Isis::SunShadowTool::mouseButtonPress(), Isis::RubberBandTool::mouseButtonRelease(), Isis::EditTool::mouseButtonRelease(), Isis::FeatureNomenclatureTool::mouseButtonRelease(), Isis::FindTool::mouseButtonRelease(), Isis::StretchTool::mouseButtonRelease(), mouseButtonRelease(), Isis::QnetTool::mouseButtonRelease(), Isis::AdvancedTrackTool::mouseLeave(), Isis::ScatterPlotTool::mouseMove(), Isis::SunShadowTool::mouseMove(), Isis::TrackTool::mouseMove(), Isis::RubberBandTool::mouseMove(), Isis::SunShadowTool::paintViewport(), Isis::RubberBandTool::paintViewport(), Isis::FindTool::paintViewport(), Isis::FileTool::print(), Isis::SunShadowTool::recalculateShadowHeight(), Isis::EditTool::redoEdit(), Isis::FindTool::refresh(), Isis::HistogramTool::refreshPlot(), Isis::SpatialPlotTool::refreshPlot(), Isis::SpectralPlotTool::refreshPlot(), Isis::WindowTool::removeConnections(), Isis::TrackTool::removeConnections(), Isis::RubberBandTool::repaint(), Isis::WindowTool::resizeWindows(), Isis::HistogramTool::rubberBandComplete(), Isis::MeasureTool::rubberBandComplete(), Isis::ZoomTool::rubberBandComplete(), Isis::EditTool::rubberBandComplete(), Isis::StretchTool::rubberBandComplete(), Isis::FileTool::save(), Isis::FileTool::saveAs(), Isis::FileTool::saveAsCubeByOption(), Isis::FileTool::saveAsReducedCube(), Isis::FileTool::saveInfo(), Isis::BandTool::setBandBin(), Isis::BandTool::setList(), Isis::StretchTool::setStretchAcrossBands(), Isis::StretchTool::setStretchAllViewports(), Isis::StretchTool::showAdvancedDialog(), Isis::ScatterPlotTool::showNewScatterPlotConfig(), Isis::StretchTool::stretchChanged(), Isis::StretchTool::stretchGlobal(), Isis::StretchTool::stretchGlobalAllBands(), Isis::StretchTool::stretchRegional(), Isis::EditTool::undoEdit(), Isis::StretchTool::updateAdvStretchDialogforAll(), Isis::StretchTool::updateHistograms(), Isis::TrackTool::updateLabels(), Isis::MeasureTool::updateMeasure(), Isis::AdvancedTrackTool::updateRow(), Isis::WindowTool::updateTool(), Isis::BlinkTool::updateTool(), Isis::SpecialPixelTool::updateTool(), Isis::BandTool::updateTool(), Isis::SunShadowTool::updateTool(), Isis::AbstractPlotTool::updateTool(), Isis::ZoomTool::updateTool(), Isis::FileTool::updateTool(), Isis::EditTool::updateTool(), Isis::FindTool::updateTool(), Isis::StretchTool::updateTool(), Isis::AbstractPlotTool::viewportsToPlot(), Isis::EditTool::writeToCube(), Isis::ZoomTool::zoomBy(), Isis::ZoomTool::zoomFit(), Isis::ZoomTool::zoomFitHeight(), Isis::ZoomTool::zoomFitWidth(), and Isis::ZoomTool::zoomManual().
|
protectedinherited |
Return the list of cubeviewports.
Definition at line 389 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::StereoTool::paintAllViewports(), paintAllViewports(), Isis::QnetTool::paintAllViewports(), Isis::FindTool::refresh(), Isis::ScatterPlotTool::repaintViewports(), Isis::AbstractPlotTool::repaintViewports(), Isis::WindowTool::resizeWindows(), Isis::BlinkTool::reverse(), Isis::ZoomTool::rubberBandComplete(), serialNumberList(), Isis::FeatureNomenclatureTool::setFontColor(), Isis::FeatureNomenclatureTool::setFontSize(), Isis::FeatureNomenclatureTool::setShowApprovedOnly(), Isis::StretchTool::setStretchAllViewports(), Isis::FeatureNomenclatureTool::setVectorType(), Isis::StretchTool::stretchGlobalAllViewports(), Isis::BlinkTool::toggleLink(), Isis::WindowTool::unlinkWindows(), Isis::MeasureTool::updateMeasure(), Isis::AdvancedTrackTool::updateRow(), Isis::WindowTool::updateTool(), Isis::BlinkTool::updateTool(), Isis::FindTool::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 1677 of file MatchTool.cpp.
References colorizeSaveButton(), Isis::ControlPoint::Delete(), Isis::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlPoint::GetId(), Isis::ControlPoint::GetRefMeasure(), Isis::SerialNumberList::hasSerialNumber(), Isis::ControlPoint::IsReferenceExplicit(), loadPoint(), loadTemplateFile(), Isis::ControlPoint::PointLocked, and serialNumberList().
Referenced by mouseButtonRelease().
|
private |
Draw all measurments which are on this viewPort.
vp | Viewport whose measurements will be drawn |
painter |
Definition at line 2598 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::RubberBandTool, Isis::ZoomTool, Isis::MeasureTool, Isis::StereoTool, Isis::SpatialPlotTool, Isis::SpectralPlotTool, and Isis::HistogramTool.
Definition at line 338 of file Tool.cpp.
References Isis::RubberBandTool::disable().
Referenced by Isis::Tool::addViewportConnections().
|
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 2524 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 3344 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 3008 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 2014 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 1924 of file MatchTool.cpp.
References Isis::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlPoint::GetId(), Isis::ControlPoint::GetReferenceSN(), Isis::ControlPoint::IndexOfRefMeasure(), Isis::ControlPoint::IsReferenceExplicit(), loadMeasureTable(), 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 2746 of file MatchTool.cpp.
Referenced by deletePoint(), modifyPoint(), and openTemplateFile().
|
privateslot |
This method is connected with the measureSaved() signal from ControlPointEdit.
Definition at line 779 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::FindTool, Isis::StretchTool, Isis::FeatureNomenclatureTool, Isis::AdvancedTrackTool, Isis::ZoomTool, Isis::FileTool, Isis::MeasureTool, Isis::BandTool, Isis::HelpTool, Isis::SpecialPixelTool, Isis::BlinkTool, Isis::WindowTool, and Isis::PanTool.
Definition at line 97 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 1858 of file MatchTool.cpp.
References loadPoint(), and loadTemplateFile().
Referenced by mouseButtonRelease().
|
protectedvirtualslotinherited |
p | |
s |
Definition at line 366 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 1441 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().
|
protectedvirtualslotinherited |
p |
Definition at line 357 of file Tool.cpp.
Referenced by Isis::Tool::addViewportConnections(), and Isis::Tool::removeViewportConnections().
|
protectedvirtualslotinherited |
p |
Definition at line 351 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 2225 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 2697 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 2722 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 2564 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 2545 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 2244 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 3031 of file MatchTool.cpp.
Referenced by createMatchTool().
|
slot |
Refresh all necessary widgets in MatchTool including the PointEditor and CubeViewports.
Definition at line 2957 of file MatchTool.cpp.
References paintAllViewports().
|
protectedslotinherited |
Registers the tool to the viewport.
viewport |
Definition at line 326 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::MeasureTool, Isis::TrackTool, and Isis::WindowTool.
Definition at line 261 of file Tool.h.
Referenced by Isis::Tool::removeViewportConnections().
|
privateslot |
Signal to save the control net.
Definition at line 1386 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 2893 of file MatchTool.cpp.
References Isis::ControlPointEdit::saveChips().
Referenced by createActions().
|
privateslot |
Signal to save control net.
Definition at line 1364 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 1070 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 2778 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 2792 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 162 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 2268 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 2323 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 670 of file MatchTool.cpp.
References Isis::SerialNumberList::add(), Isis::SerialNumber::Compose(), Isis::CubeViewport::cube(), Isis::Tool::cubeViewportList(), Isis::SerialNumberList::Delete(), Isis::SerialNumberList::fileName(), Isis::Cube::fileName(), and Isis::SerialNumberList::hasSerialNumber().
Referenced by deletePoint(), loadMeasureTable(), loadPoint(), mouseButtonRelease(), selectLeftMeasure(), and selectRightMeasure().
|
slotinherited |
Sets the current viewport to the given cvp.
cvp |
Definition at line 159 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 1204 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 1131 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 1274 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 1163 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 1112 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 1234 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 2770 of file MatchTool.cpp.
Referenced by createTemplateEditorWidget().
|
inlineinherited |
returns the path to the icon directory.
Definition at line 127 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::PanTool::createToolBarWidget(), Isis::BandTool::createToolBarWidget(), Isis::StereoTool::createToolBarWidget(), Isis::ZoomTool::createToolBarWidget(), Isis::EditTool::createToolBarWidget(), Isis::FindTool::createToolBarWidget(), Isis::StretchTool::createToolBarWidget(), Isis::FileTool::FileTool(), Isis::FindTool::FindTool(), Isis::HistogramTool::HistogramTool(), Isis::SpecialPixelTool::SpecialPixelTool(), Isis::RubberBandComboBox::toolIconDir(), Isis::PanTool::toolPadAction(), Isis::HistogramTool::toolPadAction(), Isis::ScatterPlotTool::toolPadAction(), Isis::SunShadowTool::toolPadAction(), Isis::BandTool::toolPadAction(), Isis::SpectralPlotTool::toolPadAction(), Isis::SpatialPlotTool::toolPadAction(), Isis::StereoTool::toolPadAction(), Isis::MeasureTool::toolPadAction(), Isis::ZoomTool::toolPadAction(), Isis::EditTool::toolPadAction(), Isis::FeatureNomenclatureTool::toolPadAction(), Isis::StatisticsTool::toolPadAction(), Isis::FindTool::toolPadAction(), Isis::StretchTool::toolPadAction(), toolPadAction(), Isis::QnetTool::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 605 of file MatchTool.cpp.
References Isis::Tool::toolIconDir().
|
privateslot |
Definition at line 2385 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.
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 2921 of file MatchTool.cpp.
References Isis::ControlPoint::GetId(), Isis::ControlPoint::SetEditLock(), and Isis::ControlPoint::SetIgnored().
|
privateslot |
Definition at line 2458 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::StretchTool, Isis::FindTool, Isis::FeatureNomenclatureTool, Isis::EditTool, Isis::FileTool, Isis::ZoomTool, Isis::MeasureTool, Isis::SpatialPlotTool, Isis::SpectralPlotTool, Isis::AbstractPlotTool, Isis::BandTool, Isis::SunShadowTool, Isis::SpecialPixelTool, Isis::BlinkTool, Isis::HistogramTool, and Isis::WindowTool.
Definition at line 317 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 2867 of file MatchTool.cpp.
References 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 3048 of file MatchTool.cpp.
|
privateslot |
write the contents of the template editor to the file provided.
fn | The filename to write to |
Definition at line 2811 of file MatchTool.cpp.
References Isis::ControlPointEdit::setTemplateFile(), and Isis::IException::toString().
Referenced by saveTemplateFile(), and saveTemplateFileAs().