Gui for editing ControlPoint. More...
#include <ControlPointEditWidget.h>
Public Types | |
enum | MeasureColumns { FILENAME, CUBESN, SAMPLE, LINE, APRIORISAMPLE, APRIORILINE, SAMPLERESIDUAL, LINERESIDUAL, RESIDUALMAGNITUDE, SAMPLESHIFT, LINESHIFT, PIXELSHIFT, GOODNESSOFFIT, IGNORED, EDITLOCK, TYPE } |
Measure column values for the measure table. More... | |
Public Slots | |
void | setSerialNumberList (SerialNumberList *snList) |
Set the serial number list. More... | |
void | setControl (Control *control) |
New control network being edited. More... | |
void | setEditPoint (ControlPoint *controlPoint) |
Slot called by Directory to set the control point for editing. More... | |
void | deletePoint (ControlPoint *controlPoint) |
void | createControlPoint (double latitude, double longitude, Cube *cube=0, bool isGroundSource=false) |
void | updatePointInfo (ControlPoint &updatedPoint) |
Update the current editPoint information in the Point Editor labels. More... | |
Signals | |
void | controlPointChanged (QString pointId) |
void | controlPointAdded (QString pointId) |
void | ignorePointChanged () |
void | ignoreLeftChanged () |
void | ignoreRightChanged () |
void | netChanged () |
void | newControlNetwork (ControlNet *) |
void | stretchChipViewport (Stretch *, CubeViewport *) |
void | measureChanged () |
void | saveControlNet () |
Public Member Functions | |
ControlPointEditWidget (Directory *directory, QWidget *parent, bool addMeasures=false) | |
Consructs the ControlPointEditWidget widget. More... | |
QString | measureColumnToString (MeasureColumns column) |
Gets a string representation of a measure column. More... | |
Static Public Attributes | |
static const int | NUMCOLUMNS = 16 |
Number of entries (columns) in the measure table. More... | |
Protected Member Functions | |
bool | eventFilter (QObject *o, QEvent *e) |
Event filter for ControlPointEditWidget. More... | |
Private Slots | |
void | saveNet () |
This slot is needed because we cannot directly emit a signal with a ControlNet argument after the "Save Net" push button is selected. More... | |
void | setLockPoint (bool ignore) |
Set the point type. 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 | selectLeftMeasure (int index) |
Select left measure. More... | |
void | selectRightMeasure (int index) |
Select right measure. 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 | updateLeftMeasureInfo () |
Update the left measure information. More... | |
void | updateRightMeasureInfo () |
Update the right measure information. More... | |
void | measureSaved () |
This method is connected with the measureSaved() signal from ControlMeasureEditWidget. More... | |
void | checkReference () |
Change which measure is the reference. More... | |
void | savePoint () |
Save edit point to the Control Network. More... | |
void | colorizeSavePointButton () |
Refresh all necessary widgets in ControlPointEditWidget including the PointEditor and CubeViewports. More... | |
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 ControlPointEditWidget slot to save chips. More... | |
void | showHideTemplateEditor () |
Toggles the visibility of the template editor widget. More... | |
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 () |
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 | colorizeSaveNetButton () |
Turn "Save Net" button text to red. More... | |
Private Member Functions | |
void | createActions () |
Creates the actions for the widget. More... | |
void | loadPoint () |
Load point into ControlPointEditWidget. More... | |
void | loadMeasureTable () |
Load measure information into the measure table. More... | |
void | createPointEditor (QWidget *parent, bool addMeasures) |
Create the widget for editing control points. More... | |
QSplitter * | createTopSplitter () |
Creates everything above the ControlPointEdit. More... | |
QGroupBox * | createControlPointGroupBox () |
Creates the "Control Point" groupbox. More... | |
QGroupBox * | createLeftMeasureGroupBox () |
Creates the "Left Measure" groupbox. More... | |
QGroupBox * | createRightMeasureGroupBox () |
Create the "Right Measure" groupbox. 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 () |
Checks the state of the template registration file and determines if it is safe to continue opening a template file. More... | |
bool | IsMeasureLocked (QString serialNumber) |
Check for implicitly locked measure in m_editPoint. More... | |
bool | validateMeasureChange (ControlMeasure *m) |
Validates a change to a control measure. More... | |
ControlMeasure * | createTemporaryGroundMeasure () |
Create a temporary measure to hold the ground point info for ground source. More... | |
Private Attributes | |
QPointer< QWidget > | m_parent |
Parent widget. More... | |
Directory * | m_directory |
bool | m_addMeasuresButton |
Indicates whether or not to add "Add Measures(s) to Point". More... | |
QString | m_cnetFileName |
Filename of the control network that is being modified. More... | |
QPointer< QLabel > | m_cnetFileNameLabel |
Label with name of the control network file. More... | |
bool | m_netChanged |
Indicates if the control network has been modified. More... | |
QPointer< QAction > | m_closePointEditor |
Action to close the point editor. More... | |
QPointer< QAction > | m_saveChips |
Action to save the registration chips Action to toggle visibility of the registration template editor More... | |
QPointer< QAction > | m_showHideTemplateEditor |
QPointer< QAction > | m_openTemplateFile |
Action to open a registration template file to disk. More... | |
QPointer< QAction > | m_saveTemplateFile |
Action to save a registration template file to disk. More... | |
QPointer< QAction > | m_saveTemplateFileAs |
Action to save a new registration template. More... | |
QPointer < ControlMeasureEditWidget > | m_measureEditor |
Pointer to control measure editor widget. More... | |
QPointer< QPushButton > | m_savePoint |
Button to save current point being edited. More... | |
QPalette | m_saveDefaultPalette |
Default color pallet of the "Save Point" button. More... | |
QPointer< QPushButton > | m_saveNet |
Button to save the current control network. More... | |
QPointer< QTextEdit > | m_templateEditor |
Text editor for editing the registration template. More... | |
QPointer< QWidget > | m_templateEditorWidget |
Template editor widget. More... | |
bool | m_templateModified |
Indicates if the registration template was edited. More... | |
QPointer< QLabel > | m_templateFileNameLabel |
Label for the template filename. More... | |
QPointer< QLabel > | m_ptIdValue |
Label for the point id of the current point. More... | |
QPointer< QComboBox > | m_pointType |
Combobox to change the type of the current point. More... | |
QPointer< QLabel > | m_numMeasures |
QPointer< QCheckBox > | m_lockPoint |
Checkbox that locks/unlocks the current point. More... | |
QPointer< QCheckBox > | m_ignorePoint |
Checkbox to ignore the current point. More... | |
QPointer< QLabel > | m_leftReference |
Label indicating if left measure is the reference. More... | |
QPointer< QLabel > | m_leftMeasureType |
Label for the left measure's adjustment type. More... | |
QPointer< QLabel > | m_rightReference |
Label indicating if right measure is the reference. More... | |
QPointer< QLabel > | m_rightMeasureType |
Label for the right measure's adjustment type. More... | |
QPointer< QCheckBox > | m_lockLeftMeasure |
Checkbox to edit lock/unlock the left measure. More... | |
QPointer< QCheckBox > | m_ignoreLeftMeasure |
Checkbox to ignore the left measure. More... | |
QPointer< QCheckBox > | m_lockRightMeasure |
Checkbox to edit lock/unlock the right measure. More... | |
QPointer< QCheckBox > | m_ignoreRightMeasure |
Checkbox to ignore the right measure. More... | |
QPointer< QComboBox > | m_leftCombo |
Combobox to load left measure into left chip viewport. More... | |
QPointer< QComboBox > | m_rightCombo |
Combobox to load right measure into right chip viewport. More... | |
QPointer< QStandardItemModel > | m_model |
QPointer< QMainWindow > | m_measureWindow |
Main window for the the measure table widget. More... | |
QPointer< QTableWidget > | m_measureTable |
Table widget for the measures. More... | |
QPointer< ControlPoint > | m_editPoint |
The control point being edited. More... | |
SerialNumberList * | m_serialNumberList |
Serial number list for the loaded cubes. More... | |
QPointer< ControlNet > | m_controlNet |
Current control net. More... | |
QPointer< ControlPoint > | m_newPoint |
New control point. More... | |
QString | m_lastUsedPointId |
Point id of the last used control point. More... | |
QStringList | m_pointFiles |
Associated files for current control point. More... | |
QString | m_leftFile |
Filename of left measure. More... | |
QPointer< ControlMeasure > | m_leftMeasure |
Left control measure. More... | |
QPointer< ControlMeasure > | m_rightMeasure |
Right control measure. More... | |
QScopedPointer< Cube > | m_leftCube |
Left cube. More... | |
QScopedPointer< Cube > | m_rightCube |
Right cube. More... | |
QList< Cube * > | m_pointCubes |
Gui for editing ControlPoint.
2016-06-27 Ian Humphrey - Updated documentation and coding standards. Fixes #4004.
2016-09-30 Tracie Sucharski - Pass in directory to constructor, so that we can query for shapes and other data from the project.
Definition at line 61 of file ControlPointEditWidget.h.
Measure column values for the measure table.
Definition at line 69 of file ControlPointEditWidget.h.
Isis::ControlPointEditWidget::ControlPointEditWidget | ( | Directory * | directory, |
QWidget * | parent, | ||
bool | addMeasures = false |
||
) |
Consructs the ControlPointEditWidget widget.
parent | Pointer to the parent widget for the ControlPointEditWidget |
addMeasures | Whether or not to add the Add Measure to Point button |
Definition at line 68 of file ControlPointEditWidget.cpp.
References createPointEditor(), m_addMeasuresButton, m_measureEditor, m_netChanged, m_parent, m_serialNumberList, and m_templateModified.
|
privateslot |
Change which measure is the reference.
Definition at line 1366 of file ControlPointEditWidget.cpp.
References Isis::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), m_editPoint, m_leftCombo, m_leftMeasure, m_rightCombo, and m_serialNumberList.
|
privateslot |
This method is called from the constructor so that when the Main window is created, it know's it's size and location.
Cleans up the edit point memory
Definition at line 2605 of file ControlPointEditWidget.cpp.
References m_editPoint.
Referenced by createPointEditor().
|
privateslot |
Turn "Save Net" button text to red.
Need whoever is actually saving network to emit signal when net has been saved, so that button can be set back to black.
Definition at line 2510 of file ControlPointEditWidget.cpp.
References m_saveNet, and m_savePoint.
Referenced by createPointEditor().
|
privateslot |
Refresh all necessary widgets in ControlPointEditWidget including the PointEditor and CubeViewports.
2010-12-15 Tracie Sucharski - Before setting m_editPoint to NULL, release memory. TODO: Why is the first if statement being done???
2011-10-20 Tracie Sucharski - If no control points exist in the network, emit proper signal and make sure editor and measure table are hidden.
Turn "Save Point" button text to red
Definition at line 2493 of file ControlPointEditWidget.cpp.
References m_savePoint.
Referenced by measureSaved(), setIgnorePoint(), and setLockPoint().
|
private |
Creates the actions for the widget.
Definition at line 444 of file ControlPointEditWidget.cpp.
References m_closePointEditor, m_openTemplateFile, m_saveChips, m_saveTemplateFile, m_saveTemplateFileAs, openTemplateFile(), saveChips(), saveTemplateFile(), saveTemplateFileAs(), and showHideTemplateEditor().
Referenced by createPointEditor().
|
private |
Creates the "Control Point" groupbox.
Definition at line 268 of file ControlPointEditWidget.cpp.
References m_ignorePoint, m_lockPoint, m_pointType, m_ptIdValue, Isis::ControlPoint::PointTypeToString(), setIgnorePoint(), and setLockPoint().
Referenced by createTopSplitter().
|
private |
Creates the "Left Measure" groupbox.
Definition at line 326 of file ControlPointEditWidget.cpp.
References m_ignoreLeftMeasure, m_leftCombo, m_leftMeasureType, m_leftReference, m_lockLeftMeasure, selectLeftMeasure(), setIgnoreLeftMeasure(), and setLockLeftMeasure().
Referenced by createTopSplitter().
|
private |
Create the widget for editing control points.
parent | Pointer to parent QWidget |
addMeasures | Whether or not to add the Add Measure to Point button |
2008-11-24 Jeannie Walldren - Added "Goodness of Fit" to right and left measure info.
2008-11-26 Jeannie Walldren - Added "Number of Measures" to QnetTool point information. Moved setWindowTitle() command to updateNet() method. Added connection between Ignore checkbox toggle() slot and ignoreChanged() signal
2008-12-29 Jeannie Walldren - Disabled ground point check box and commented out connection between check box and setGroundPoint() method.
2008-12-30 Jeannie Walldren - Added connections to toggle measures' Ignore check boxes if ignoreLeftChanged() and ignoreRightChanged() are emitted. Replaced reference to ignoreChanged() with ignorePointChanged().
2010-06-03 Jeannie Walldren - Removed "std::" since "using namespace std"
Definition at line 121 of file ControlPointEditWidget.cpp.
References clearEditPoint(), colorizeSaveNetButton(), createActions(), createTopSplitter(), m_addMeasuresButton, m_cnetFileName, m_cnetFileNameLabel, m_measureEditor, m_saveDefaultPalette, m_saveNet, m_savePoint, m_templateFileNameLabel, measureSaved(), saveNet(), and savePoint().
Referenced by ControlPointEditWidget().
|
private |
Create the "Right Measure" groupbox.
Definition at line 364 of file ControlPointEditWidget.cpp.
References m_ignoreRightMeasure, m_lockRightMeasure, m_rightCombo, m_rightMeasureType, m_rightReference, nextRightMeasure(), previousRightMeasure(), selectRightMeasure(), setIgnoreRightMeasure(), and setLockRightMeasure().
Referenced by createTopSplitter().
|
private |
Creates the Widget which contains the template editor and its toolbar.
Definition at line 419 of file ControlPointEditWidget.cpp.
References m_openTemplateFile, m_saveTemplateFile, m_saveTemplateFileAs, m_templateEditor, m_templateEditorWidget, and setTemplateModified().
Referenced by createTopSplitter().
|
private |
Create a temporary measure to hold the ground point info for ground source.
2015-05-19 Ian Humphrey and Makayla Shepherd - Original version adapted from loadPoint() to encapsulate duplicated code in loadGroundMeasure().
2016-11-04 Tracie Sucharski - Combined findPointLocation and createTemporaryGroundMeasure so that ground information doesn't need to be re-created
Definition at line 553 of file ControlPointEditWidget.cpp.
References Isis::SerialNumberList::add(), Isis::ControlMeasure::Candidate, Isis::SerialNumber::Compose(), Isis::Angle::degrees(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::SurfacePoint::GetLatitude(), Isis::SurfacePoint::GetLongitude(), Isis::SerialNumberList::hasSerialNumber(), m_controlNet, m_editPoint, m_serialNumberList, Isis::SerialNumberList::serialNumberIndex(), Isis::ControlMeasure::SetChooserName(), Isis::ControlMeasure::SetCoordinate(), Isis::ControlMeasure::SetCubeSerialNumber(), Isis::Camera::SetImage(), Isis::ControlMeasure::SetType(), Isis::Sensor::UniversalLatitude(), and Isis::Sensor::UniversalLongitude().
Referenced by loadPoint().
|
private |
Creates everything above the ControlPointEdit.
Definition at line 235 of file ControlPointEditWidget.cpp.
References createControlPointGroupBox(), createLeftMeasureGroupBox(), createRightMeasureGroupBox(), createTemplateEditorWidget(), and m_templateEditorWidget.
Referenced by createPointEditor().
|
protected |
Event filter for ControlPointEditWidget.
Determines whether to update left or right measure info.
o | Pointer to QObject |
e | Pointer to QEvent |
Definition at line 2183 of file ControlPointEditWidget.cpp.
References m_leftCombo, m_rightCombo, updateLeftMeasureInfo(), and updateRightMeasureInfo().
|
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 2531 of file ControlPointEditWidget.cpp.
References m_editPoint.
Referenced by loadMeasureTable(), updateLeftMeasureInfo(), and updateRightMeasureInfo().
|
private |
Load measure information into the measure table.
Definition at line 1728 of file ControlPointEditWidget.cpp.
References Isis::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlMeasureLogData::GetNumericalValue(), Isis::ControlMeasure::GetResidualMagnitude(), Isis::ControlMeasureLogData::GoodnessOfFit, IsMeasureLocked(), m_editPoint, m_measureTable, m_measureWindow, m_parent, m_serialNumberList, measureColumnToString(), Isis::ControlMeasure::MeasureTypeToString(), Isis::Null, and NUMCOLUMNS.
Referenced by measureSaved().
|
private |
Load point into ControlPointEditWidget.
2008-11-26 Jeannie Walldren - Added "Number of Measures" to ControlPointEditWidget point information.
2010-06-03 Jeannie Walldren - Removed "std::" since "using namespace std"
2010-10-29 Tracie Sucharski - Changed pointfiles to QStringList
2011-04-20 Tracie Sucharski - Was not setting EditLock check box
2011-07-18 Tracie Sucharski - Fixed bug with loading ground measure-use AprioriSurface point, not lat,lon of reference measure unless there is no apriori surface point.
2012-05-08 Tracie Sucharski - m_leftFile changed from QString to QString.
2012-10-02 Tracie Sucharski - When creating a new point, load the cube the user clicked on first on the left side, use m_leftFile.
Definition at line 668 of file ControlPointEditWidget.cpp.
References createTemporaryGroundMeasure(), Isis::SerialNumberList::fileName(), Isis::ControlPoint::Free, Isis::ControlMeasure::GetChooserName(), Isis::ControlMeasure::GetCubeSerialNumber(), m_editPoint, m_ignorePoint, m_leftCombo, m_leftFile, m_lockPoint, m_measureEditor, m_pointFiles, m_pointType, m_ptIdValue, m_rightCombo, m_serialNumberList, selectLeftMeasure(), and selectRightMeasure().
Referenced by setEditPoint(), and validateMeasureChange().
|
private |
Updates the current template file being used.
fn | The file path of the new template file |
Definition at line 2251 of file ControlPointEditWidget.cpp.
References m_saveTemplateFile, m_templateEditor, m_templateFileNameLabel, and m_templateModified.
Referenced by openTemplateFile(), and setEditPoint().
QString Isis::ControlPointEditWidget::measureColumnToString | ( | ControlPointEditWidget::MeasureColumns | column | ) |
Gets a string representation of a measure column.
column | MeasureColumn to get the string representation of |
IException::Programmer | "Invalid measure column passed to measureColumnToString" |
Definition at line 1897 of file ControlPointEditWidget.cpp.
References _FILEINFO_, and Isis::IException::Programmer.
Referenced by loadMeasureTable().
|
privateslot |
This method is connected with the measureSaved() signal from ControlMeasureEditWidget.
2008-11-26 Jeannie Walldren - Added message box to warn the user that they are saving an "Ignore" point and ask whether they would like to set Ignore=false. This emits an ignoreChanged() signal so the "Ignore" box in the window is unchecked.
2008-12-30 Jeannie Walldren - Modified to set measures in viewports to Ignore=False if when saving, the user chooses to set a point's Ignore=False. Replaced reference to ignoreChanged() with ignorePointChanged().
2008-12-31 Jeannie Walldren - Added question box to ask user whether the current reference measure should be replaced with the measure in the left viewport.
2010-01-27 Jeannie Walldren - Added question box to warn the user that they are saving an "Ignore" measure and ask whether they would like to set Ignore=False. This emits an ignoreRightChanged() signal so the "Ignore" box in the window is unchecked. Modified Ignore Point message for clarity.
2010-11-19 Tracie Sucharski - Renamed from pointSaved.
2011-03-03 Tracie Sucharski - Do not save left measure unless the ignore flag was changed, that is the only change allowed on the left measure.
2011-04-20 Tracie Sucharski - If left measure equals right measure, copy right into left. Also if EditLock true and user does not want to change, then do not save measure. Remove signals EditPointChanged and netChanged, since these should only happen when the point is saved.
2011-07-01 Tracie Sucharski - Fixed bug where the edit measure EditLocked=True, but the original measure was False, and we woouldn't allow the measure to be saved.
2011-07-25 Tracie Sucharski - Removed editPointChanged signal since the editPoint is not changed. This helped with match windows blinking due to refresh.
2011-09-22 Tracie Sucharski - When checking ignore status on right measure, check both original and edit measure.
2012-04-09 Tracie Sucharski - When checking if left measure editLock has changed, use measure->IsEditLocked() instead of this classes IsMeasureLocked() because it checks the m_editPoint measure instead of the measure loaded into the point editor.
2012-04-26 Tracie Sucharski - cleaned up, moved reference checking and updating ground surface point to new methods.
2012-05-07 Tracie Sucharski - Removed code to re-load left measure if left and right are the same, this is already handled in ControlPointEdit::saveMeasure.
2012-06-12 Tracie Sucharski - Change made on 2012-04-26 caused a bug where if no ground is loaded the checkReference was not being called and reference measure could not be changed and there was no warning printed.
Definition at line 1138 of file ControlPointEditWidget.cpp.
References colorizeSavePointButton(), loadMeasureTable(), m_editPoint, m_leftCube, m_leftMeasure, m_measureEditor, m_rightMeasure, updateLeftMeasureInfo(), updateRightMeasureInfo(), Isis::Application::UserName(), and validateMeasureChange().
Referenced by createPointEditor().
|
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 1948 of file ControlPointEditWidget.cpp.
References m_rightCombo, and selectRightMeasure().
Referenced by createRightMeasureGroupBox().
|
private |
Checks the state of the template registration file and determines if it is safe to continue opening a template file.
Definition at line 2204 of file ControlPointEditWidget.cpp.
References m_templateModified, and 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 2228 of file ControlPointEditWidget.cpp.
References loadTemplateFile(), m_measureEditor, and okToContinue().
Referenced by createActions().
|
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 1968 of file ControlPointEditWidget.cpp.
References m_rightCombo, and selectRightMeasure().
Referenced by createRightMeasureGroupBox().
|
privateslot |
Slot which calls ControlPointEditWidget slot to save chips.
Definition at line 2398 of file ControlPointEditWidget.cpp.
References m_measureEditor.
Referenced by createActions().
|
privateslot |
This slot is needed because we cannot directly emit a signal with a ControlNet argument after the "Save Net" push button is selected.
Definition at line 2555 of file ControlPointEditWidget.cpp.
References m_cnetFileName, m_controlNet, m_saveDefaultPalette, and m_saveNet.
Referenced by createPointEditor().
|
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.
2011-04-20 Tracie Sucharski - If EditLock set, prompt for changing and do not save point if editLock not changed.
2011-07-05 Tracie Sucharski - Move point EditLock error checking to individual point parameter setting methods, ie. SetPointType, SetIgnorePoint.
Definition at line 1424 of file ControlPointEditWidget.cpp.
References Isis::ControlPoint::Delete(), Isis::ControlPoint::Free, Isis::ControlMeasure::GetChooserName(), Isis::ControlPoint::GetId(), Isis::ControlPoint::GetType(), m_controlNet, m_editPoint, m_measureEditor, m_netChanged, m_saveDefaultPalette, and m_savePoint.
Referenced by createPointEditor().
|
privateslot |
Save the file opened in the template editor.
Definition at line 2286 of file ControlPointEditWidget.cpp.
References m_measureEditor, m_templateModified, and writeTemplateFile().
Referenced by createActions().
|
privateslot |
Save the contents of template editor to a file chosen by the user.
Definition at line 2301 of file ControlPointEditWidget.cpp.
References writeTemplateFile().
Referenced by createActions(), and okToContinue().
|
privateslot |
Select left measure.
index | Index of file from the point files vector |
2010-06-03 Jeannie Walldren - Removed "std::" since "using namespace std"
2011-07-06 Tracie Sucharski - If point is Locked, and measure is reference, lock the measure.
2012-10-02 Tracie Sucharski - If measure's cube is not viewed, print error and make sure old measure is retained.
Definition at line 1992 of file ControlPointEditWidget.cpp.
References Isis::SerialNumberList::fileName(), m_editPoint, m_leftCombo, m_leftCube, m_leftMeasure, m_measureEditor, m_pointFiles, m_serialNumberList, Isis::SerialNumberList::serialNumber(), Isis::IException::toString(), and updateLeftMeasureInfo().
Referenced by createLeftMeasureGroupBox(), and loadPoint().
|
privateslot |
Select right measure.
index | Index of file from the point files vector |
2010-06-03 Jeannie Walldren - Removed "std::" since "using namespace std"
2012-10-02 Tracie Sucharski - If measure's cube is not viewed, print error and make sure old measure is retained.
Definition at line 2041 of file ControlPointEditWidget.cpp.
References Isis::SerialNumberList::fileName(), m_editPoint, m_measureEditor, m_pointFiles, m_rightCombo, m_rightCube, m_rightMeasure, m_serialNumberList, Isis::SerialNumberList::serialNumber(), Isis::IException::toString(), and updateRightMeasureInfo().
Referenced by createRightMeasureGroupBox(), loadPoint(), nextRightMeasure(), and previousRightMeasure().
|
slot |
New control network being edited.
cnet | (ControlNet *) The control network to edit |
filename | (Qstring) Need filename to write to widget label. ControlNet doesn't contain a filename. |
Definition at line 530 of file ControlPointEditWidget.cpp.
References Isis::Control::controlNet(), Isis::Control::fileName(), m_cnetFileName, and m_controlNet.
|
slot |
Slot called by Directory to set the control point for editing.
controlPoint | Pointer to the ControlPoint to edit |
Definition at line 627 of file ControlPointEditWidget.cpp.
References loadPoint(), loadTemplateFile(), m_editPoint, m_measureEditor, m_saveDefaultPalette, and m_savePoint.
|
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. |
2010-01-27 Jeannie Walldren - Fixed bug that resulted in segfault. Moved the check whether m_rightMeasure is null before the check whether m_rightMeasure equals m_leftMeasure.
2010-12-15 Tracie Sucharski - Remove netChanged, the point is not changed in the net unless "Save Point" is selected.
2011-06-27 Tracie Sucharski - emit signal indicating a measure parameter has changed.
Definition at line 1635 of file ControlPointEditWidget.cpp.
References m_ignoreRightMeasure, m_leftMeasure, and m_rightMeasure.
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 1565 of file ControlPointEditWidget.cpp.
References colorizeSavePointButton(), m_editPoint, m_ignorePoint, and Isis::ControlPoint::PointLocked.
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. |
2010-01-27 Jeannie Walldren - Fixed bug that resulted in segfault. Moved the check whether m_leftMeasure is null before the check whether m_rightMeasure equals m_leftMeasure.
2010-12-15 Tracie Sucharski - Remove netChanged, the point is not changed in the net unless "Save Point" is selected.
2011-06-27 Tracie Sucharski - emit signal indicating a measure parameter has changed.
Definition at line 1705 of file ControlPointEditWidget.cpp.
References m_ignoreLeftMeasure, m_leftMeasure, and m_rightMeasure.
Referenced by createRightMeasureGroupBox().
|
privateslot |
Set the "EditLock" keyword of the measure shown in the left viewport to the value of the input parameter.
lock | Boolean value that determines the EditLock value for the left measure. |
2011-06-27 Tracie Sucharski - emit signal indicating a measure parameter has changed.
2012-04-16 Tracie Sucharski - When attempting to un-lock a measure print error if point is locked.
Definition at line 1595 of file ControlPointEditWidget.cpp.
References m_editPoint, m_leftMeasure, m_lockLeftMeasure, m_lockRightMeasure, and m_rightMeasure.
Referenced by createLeftMeasureGroupBox().
|
privateslot |
Set the point type.
pointType | int Index from point type combo box |
Set point's "EditLock" keyword to the value of the input parameter.
lock | Boolean value that determines the EditLock value for this point. |
Definition at line 1546 of file ControlPointEditWidget.cpp.
References colorizeSavePointButton(), and m_editPoint.
Referenced by createControlPointGroupBox().
|
privateslot |
Set the "EditLock" keyword of the measure shown in the right viewport to the value of the input parameter.
lock | Boolean value that determines the EditLock value for the right measure. |
2011-06-27 Tracie Sucharski - emit signal indicating a measure parameter has changed.
2012-04-16 Tracie Sucharski - When attempting to un-lock a measure print error if point is locked.
Definition at line 1665 of file ControlPointEditWidget.cpp.
References m_editPoint, m_leftMeasure, m_lockLeftMeasure, m_lockRightMeasure, and m_rightMeasure.
Referenced by createRightMeasureGroupBox().
|
slot |
Set the serial number list.
snList | Pointer to the SerialNumberList |
Definition at line 508 of file ControlPointEditWidget.cpp.
References m_serialNumberList.
|
privateslot |
Called when the template file is modified by the template editor.
Definition at line 2276 of file ControlPointEditWidget.cpp.
References m_saveTemplateFile, and m_templateModified.
Referenced by createTemplateEditorWidget().
|
privateslot |
Toggles the visibility of the template editor widget.
Definition at line 2407 of file ControlPointEditWidget.cpp.
References m_templateEditorWidget.
Referenced by createActions().
|
privateslot |
Update the left measure information.
2008-11-24 Jeannie Walldren - Added "Goodness of Fit" to left measure info.
2010-07-22 Tracie Sucharski - Updated new measure types associated with implementation of binary control networks.
2010-12-27 Tracie Sucharski - Write textual Null instead of the numeric Null for sample & line residuals.
2011-04-20 Tracie Sucharski - Set EditLock check box correctly
2011-05-20 Tracie Sucharski - Added Reference output
2011-07-19 Tracie Sucharski - Did some re-arranging and added sample/line shifts.
Definition at line 2098 of file ControlPointEditWidget.cpp.
References Isis::ControlMeasure::Candidate, IsMeasureLocked(), m_editPoint, m_ignoreLeftMeasure, m_leftMeasure, m_leftMeasureType, m_leftReference, m_lockLeftMeasure, Isis::ControlMeasure::Manual, Isis::ControlMeasure::RegisteredPixel, and Isis::ControlMeasure::RegisteredSubPixel.
Referenced by eventFilter(), measureSaved(), and selectLeftMeasure().
|
slot |
Update the current editPoint information in the Point Editor labels.
updatedPoint | Reference to the ControlPoint to edit information on |
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 ControlPointEditWidget, this method will need to be updated. *** THIS METHOD SHOULD GO AWAY WHEN CONTROLpOINTEDITOR IS INCLUDED IN MATCH *** TODO: THIS IS ONLY CONNECTED IN qnet.cpp FROM THE NAV TOOL. REFACTOR WILL NEED TO CONNECT CORRECT SIGNALS FROM OTHER WIDGETS TO THIS SLOT.
Definition at line 2432 of file ControlPointEditWidget.cpp.
References Isis::ControlPoint::GetId(), m_editPoint, m_ignorePoint, and m_lockPoint.
|
privateslot |
Update the right measure information.
2008-11-24 Jeannie Walldren - Added "Goodness of Fit" to right measure info.
2010-06-03 Jeannie Walldren - Removed "std::" since "using namespace std"
2010-07-22 Tracie Sucharski - Updated new measure types associated with implementation of binary control networks.
2010-12-27 Tracie Sucharski - Write textual Null instead of the numeric Null for sample & line residuals.
2011-04-20 Tracie Sucharski - Set EditLock check box correctly
2011-05-20 Tracie Sucharski - Added Reference output
2011-07-19 Tracie Sucharski - Did some re-arranging and added sample/line shifts.
Definition at line 2144 of file ControlPointEditWidget.cpp.
References Isis::ControlMeasure::Candidate, IsMeasureLocked(), m_editPoint, m_ignoreRightMeasure, m_lockRightMeasure, m_rightMeasure, m_rightMeasureType, m_rightReference, Isis::ControlMeasure::Manual, Isis::ControlMeasure::RegisteredPixel, and Isis::ControlMeasure::RegisteredSubPixel.
Referenced by eventFilter(), measureSaved(), and selectRightMeasure().
|
private |
Validates a change to a control measure.
m | Pointer to the ControlMeasure |
Definition at line 1222 of file ControlPointEditWidget.cpp.
References Isis::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlMeasure::IsEditLocked(), loadPoint(), m_editPoint, m_leftCombo, m_leftMeasure, m_lockLeftMeasure, m_lockRightMeasure, m_rightCombo, and m_serialNumberList.
Referenced by measureSaved().
|
privateslot |
Allows the user to view the template file that is currently set.
2008-12-10 Jeannie Walldren - Original Version
2008-12-10 Jeannie Walldren - Added "" namespace to PvlEditDialog reference and changed registrationDialog from pointer to object
2008-12-15 Jeannie Walldren - Added QMessageBox warning in case Template File cannot be read.
Definition at line 2372 of file ControlPointEditWidget.cpp.
References m_measureEditor, and Isis::IException::toString().
|
privateslot |
Write the contents of the template editor to the file provided.
fn | The filename to write to |
Definition at line 2319 of file ControlPointEditWidget.cpp.
References m_measureEditor, m_saveTemplateFile, m_templateEditor, m_templateFileNameLabel, m_templateModified, and Isis::IException::toString().
Referenced by saveTemplateFile(), and saveTemplateFileAs().
|
private |
Indicates whether or not to add "Add Measures(s) to Point".
Definition at line 180 of file ControlPointEditWidget.h.
Referenced by ControlPointEditWidget(), and createPointEditor().
|
private |
Action to close the point editor.
Definition at line 186 of file ControlPointEditWidget.h.
Referenced by createActions().
|
private |
Filename of the control network that is being modified.
Definition at line 182 of file ControlPointEditWidget.h.
Referenced by createPointEditor(), saveNet(), and setControl().
|
private |
Label with name of the control network file.
Definition at line 183 of file ControlPointEditWidget.h.
Referenced by createPointEditor().
|
private |
Current control net.
Definition at line 233 of file ControlPointEditWidget.h.
Referenced by createTemporaryGroundMeasure(), saveNet(), savePoint(), and setControl().
|
private |
The control point being edited.
Definition at line 231 of file ControlPointEditWidget.h.
Referenced by checkReference(), clearEditPoint(), createTemporaryGroundMeasure(), IsMeasureLocked(), loadMeasureTable(), loadPoint(), measureSaved(), savePoint(), selectLeftMeasure(), selectRightMeasure(), setEditPoint(), setIgnorePoint(), setLockLeftMeasure(), setLockPoint(), setLockRightMeasure(), updateLeftMeasureInfo(), updatePointInfo(), updateRightMeasureInfo(), and validateMeasureChange().
|
private |
Checkbox to ignore the left measure.
Definition at line 220 of file ControlPointEditWidget.h.
Referenced by createLeftMeasureGroupBox(), setIgnoreRightMeasure(), and updateLeftMeasureInfo().
|
private |
Checkbox to ignore the current point.
Definition at line 214 of file ControlPointEditWidget.h.
Referenced by createControlPointGroupBox(), loadPoint(), setIgnorePoint(), and updatePointInfo().
|
private |
Checkbox to ignore the right measure.
Definition at line 222 of file ControlPointEditWidget.h.
Referenced by createRightMeasureGroupBox(), setIgnoreLeftMeasure(), and updateRightMeasureInfo().
|
private |
Point id of the last used control point.
Definition at line 236 of file ControlPointEditWidget.h.
|
private |
Combobox to load left measure into left chip viewport.
Definition at line 224 of file ControlPointEditWidget.h.
Referenced by checkReference(), createLeftMeasureGroupBox(), eventFilter(), loadPoint(), selectLeftMeasure(), and validateMeasureChange().
|
private |
Left cube.
Definition at line 243 of file ControlPointEditWidget.h.
Referenced by measureSaved(), and selectLeftMeasure().
|
private |
Filename of left measure.
Definition at line 240 of file ControlPointEditWidget.h.
Referenced by loadPoint().
|
private |
Left control measure.
Definition at line 241 of file ControlPointEditWidget.h.
Referenced by checkReference(), measureSaved(), selectLeftMeasure(), setIgnoreLeftMeasure(), setIgnoreRightMeasure(), setLockLeftMeasure(), setLockRightMeasure(), updateLeftMeasureInfo(), and validateMeasureChange().
|
private |
Label for the left measure's adjustment type.
Definition at line 216 of file ControlPointEditWidget.h.
Referenced by createLeftMeasureGroupBox(), and updateLeftMeasureInfo().
|
private |
Label indicating if left measure is the reference.
Definition at line 215 of file ControlPointEditWidget.h.
Referenced by createLeftMeasureGroupBox(), and updateLeftMeasureInfo().
|
private |
Checkbox to edit lock/unlock the left measure.
Definition at line 219 of file ControlPointEditWidget.h.
Referenced by createLeftMeasureGroupBox(), setLockLeftMeasure(), setLockRightMeasure(), updateLeftMeasureInfo(), and validateMeasureChange().
|
private |
Checkbox that locks/unlocks the current point.
Definition at line 213 of file ControlPointEditWidget.h.
Referenced by createControlPointGroupBox(), loadPoint(), and updatePointInfo().
|
private |
Checkbox to edit lock/unlock the right measure.
Definition at line 221 of file ControlPointEditWidget.h.
Referenced by createRightMeasureGroupBox(), setLockLeftMeasure(), setLockRightMeasure(), updateRightMeasureInfo(), and validateMeasureChange().
|
private |
Pointer to control measure editor widget.
Definition at line 197 of file ControlPointEditWidget.h.
Referenced by ControlPointEditWidget(), createPointEditor(), loadPoint(), measureSaved(), openTemplateFile(), saveChips(), savePoint(), saveTemplateFile(), selectLeftMeasure(), selectRightMeasure(), setEditPoint(), viewTemplateFile(), and writeTemplateFile().
|
private |
Table widget for the measures.
Definition at line 229 of file ControlPointEditWidget.h.
Referenced by loadMeasureTable().
|
private |
Main window for the the measure table widget.
Definition at line 228 of file ControlPointEditWidget.h.
Referenced by loadMeasureTable().
|
private |
Indicates if the control network has been modified.
Definition at line 184 of file ControlPointEditWidget.h.
Referenced by ControlPointEditWidget(), and savePoint().
|
private |
New control point.
Definition at line 235 of file ControlPointEditWidget.h.
|
private |
Action to open a registration template file to disk.
Definition at line 191 of file ControlPointEditWidget.h.
Referenced by createActions(), and createTemplateEditorWidget().
|
private |
Parent widget.
Definition at line 178 of file ControlPointEditWidget.h.
Referenced by ControlPointEditWidget(), and loadMeasureTable().
|
private |
Associated files for current control point.
Definition at line 238 of file ControlPointEditWidget.h.
Referenced by loadPoint(), selectLeftMeasure(), and selectRightMeasure().
|
private |
Combobox to change the type of the current point.
Definition at line 210 of file ControlPointEditWidget.h.
Referenced by createControlPointGroupBox(), and loadPoint().
|
private |
Label for the point id of the current point.
Definition at line 209 of file ControlPointEditWidget.h.
Referenced by createControlPointGroupBox(), and loadPoint().
|
private |
Combobox to load right measure into right chip viewport.
Definition at line 225 of file ControlPointEditWidget.h.
Referenced by checkReference(), createRightMeasureGroupBox(), eventFilter(), loadPoint(), nextRightMeasure(), previousRightMeasure(), selectRightMeasure(), and validateMeasureChange().
|
private |
Right cube.
Definition at line 244 of file ControlPointEditWidget.h.
Referenced by selectRightMeasure().
|
private |
Right control measure.
Definition at line 242 of file ControlPointEditWidget.h.
Referenced by measureSaved(), selectRightMeasure(), setIgnoreLeftMeasure(), setIgnoreRightMeasure(), setLockLeftMeasure(), setLockRightMeasure(), and updateRightMeasureInfo().
|
private |
Label for the right measure's adjustment type.
Definition at line 218 of file ControlPointEditWidget.h.
Referenced by createRightMeasureGroupBox(), and updateRightMeasureInfo().
|
private |
Label indicating if right measure is the reference.
Definition at line 217 of file ControlPointEditWidget.h.
Referenced by createRightMeasureGroupBox(), and updateRightMeasureInfo().
|
private |
Action to save the registration chips
Action to toggle visibility of the registration template editor
Definition at line 188 of file ControlPointEditWidget.h.
Referenced by createActions().
|
private |
Default color pallet of the "Save Point" button.
Definition at line 200 of file ControlPointEditWidget.h.
Referenced by createPointEditor(), saveNet(), savePoint(), and setEditPoint().
|
private |
Button to save the current control network.
Definition at line 202 of file ControlPointEditWidget.h.
Referenced by colorizeSaveNetButton(), createPointEditor(), and saveNet().
|
private |
Button to save current point being edited.
Definition at line 199 of file ControlPointEditWidget.h.
Referenced by colorizeSaveNetButton(), colorizeSavePointButton(), createPointEditor(), savePoint(), and setEditPoint().
|
private |
Action to save a registration template file to disk.
Definition at line 192 of file ControlPointEditWidget.h.
Referenced by createActions(), createTemplateEditorWidget(), loadTemplateFile(), setTemplateModified(), and writeTemplateFile().
|
private |
Action to save a new registration template.
Definition at line 193 of file ControlPointEditWidget.h.
Referenced by createActions(), and createTemplateEditorWidget().
|
private |
Serial number list for the loaded cubes.
Definition at line 232 of file ControlPointEditWidget.h.
Referenced by checkReference(), ControlPointEditWidget(), createTemporaryGroundMeasure(), loadMeasureTable(), loadPoint(), selectLeftMeasure(), selectRightMeasure(), setSerialNumberList(), and validateMeasureChange().
|
private |
Text editor for editing the registration template.
Definition at line 204 of file ControlPointEditWidget.h.
Referenced by createTemplateEditorWidget(), loadTemplateFile(), and writeTemplateFile().
|
private |
Template editor widget.
Definition at line 205 of file ControlPointEditWidget.h.
Referenced by createTemplateEditorWidget(), createTopSplitter(), and showHideTemplateEditor().
|
private |
Label for the template filename.
Definition at line 208 of file ControlPointEditWidget.h.
Referenced by createPointEditor(), loadTemplateFile(), and writeTemplateFile().
|
private |
Indicates if the registration template was edited.
Definition at line 206 of file ControlPointEditWidget.h.
Referenced by ControlPointEditWidget(), loadTemplateFile(), okToContinue(), saveTemplateFile(), setTemplateModified(), and writeTemplateFile().
|
static |
Number of entries (columns) in the measure table.
Definition at line 88 of file ControlPointEditWidget.h.
Referenced by loadMeasureTable().
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 ISIS Support Center File Modified: 07/12/2023 23:45:16 |