Isis 3 Programmer Reference
|
Gui for editing ControlPoints in ipce application. More...
#include <ControlPointEditWidget.h>
Public Slots | |
void | setSerialNumberList (SerialNumberList *snList) |
Set the serial number list. More... | |
void | setControl (Control *control) |
New control network being edited. More... | |
void | setControlFromActive () |
New active control was set from ipce. More... | |
void | setEditPoint (ControlPoint *controlPoint, QString serialNumber="") |
Slot called by Directory to set the control point for editing. More... | |
void | deletePoint (ControlPoint *controlPoint) |
Gives user options for deleting a control point from the control network. More... | |
void | createControlPoint (double latitude, double longitude, Cube *cube=0, bool isGroundSource=false) |
Create a new control point at the given latitude, longitude. More... | |
void | colorizeSaveNetButton (bool reset=false) |
Turn "Save Net" button text to red. More... | |
void | addTemplates (TemplateList *templateList) |
Add registration TemplateList to combobox when imported to project. More... | |
Signals | |
void | controlPointChanged (QString pointId) |
void | controlPointAdded (QString pointId) |
void | ignorePointChanged () |
void | ignoreLeftChanged () |
void | ignoreRightChanged () |
void | cnetModified () |
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 | editPointId () |
ControlPoint * | editPoint () |
Protected Member Functions | |
bool | eventFilter (QObject *o, QEvent *e) |
Event filter for ControlPointEditWidget. More... | |
Private Slots | |
void | reloadPoint () |
Set both chip viewports to their original measures for the control point. More... | |
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 | setPointType (int pointType) |
Set the point type. 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 | 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 | updateGroundPosition () |
void | updateSurfacePointInfo () |
Update the Surface Point Information in the ControlPointEditWidget. More... | |
void | openReferenceRadius () |
Open a radius source using the shape model of the reference measure of m_editPoint. More... | |
void | groundSourceFileSelectionChanged (int index) |
Slot called when user changes selection in m_groundSourceCombo. More... | |
void | savePoint () |
Save edit point to the Control Network. More... | |
void | colorizeAllSaveButtons (QString color) |
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 | setTemplateFile (QString) |
Appends the filename to the registrations path (unless this is the default template) and calls setTemplateFile for the control measure. 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 | resetTemplateComboBox (QString fileName) |
Reset the selected template in the template combobox if the template selected by the user does not satisfy requirements for the control measure. More... | |
void | clearEditPoint () |
Cleans up the edit point memory. More... | |
Private Member Functions | |
void | createActions () |
Creates the actions for the widget. More... | |
void | loadPoint (QString serialNumber="") |
Load point into ControlPointEditWidget. More... | |
void | loadGroundMeasure () |
Load ground measure into right side and add to file combo boxes. 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... | |
void | setShapesForPoint (double latitude=Null, double longitude=Null) |
Fill m_projectShapeNames with ALL shapes currently in project. More... | |
ControlMeasure * | createTemporaryGroundMeasure () |
Create a temporary measure to hold the ground point info for ground source. More... | |
bool | setGroundSourceInfo () |
Find the ground source location: First look at current edit point for parameter, AprioriXYZSourceFile. More... | |
FileName | checkGroundFileLocation (FileName groundFile) |
Ground source file from control net cannot be found, give user option to give new location. More... | |
void | changeGroundLocationsInNet () |
Change the location of all ground source locations in the ControlNet. More... | |
void | clearGroundSource () |
Clear out the ground source used for Constrained or Fixed control points. More... | |
void | initDem (QString demFile) |
Initialize the given Dem and appropriate member variables for later use editing Fixed or Constrained control points. More... | |
double | demRadius (double latitude, double longitude) |
Return a radius values from the dem using bilinear interpolation. 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_cnetModified |
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_reloadPoint |
Button to reload current point to saved measures. 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< QComboBox > | m_templateComboBox |
ComboBox of imported registration templates. More... | |
QPointer< QComboBox > | m_groundSourceCombo |
ComboBox for selecting ground source. More... | |
QPointer< QComboBox > | m_radiusSourceCombo |
ComboBox for selecting ground source. More... | |
QPointer< QLabel > | m_ptIdValue |
Label for the point id of the current point. More... | |
QPointer< QComboBox > | m_pointTypeCombo |
Combobox to change the type of the current point. More... | |
QPointer< QLabel > | m_numMeasures |
QPointer< QLabel > | m_aprioriLatitude |
QPointer< QLabel > | m_aprioriLongitude |
QPointer< QLabel > | m_aprioriRadius |
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< Control > | m_control |
Current Control. 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... | |
QStringList | m_projectShapeNames |
List of Shapes imported into project, at time of loaded CP. More... | |
int | m_numberProjectShapesWithPoint |
Number of shapes containing control point. More... | |
QMap< QString, Shape * > | m_nameToShapeMap |
Map between Shape display name and object. More... | |
QString | m_groundFilename |
File name of ground source. More... | |
QString | m_groundSN |
Serial number of ground source file. More... | |
ControlPoint::SurfacePointSource::Source | m_groundSourceType |
SurfacePoint type of ground source. More... | |
QScopedPointer< UniversalGroundMap > | m_groundGmap |
bool | m_changeAllGroundLocation |
Change the ground source location of all fixed, constrained points in the network. More... | |
bool | m_changeGroundLocationInNet |
Change the ground source location. More... | |
QString | m_newGroundDir |
Contains the ground source location. More... | |
QString | m_radiusFilename |
ControlPoint::RadiusSource::Source | m_radiusSourceType |
bool | m_demOpen |
Has a radius source been opened? More... | |
QString | m_demFile |
QScopedPointer< Cube > | m_demCube |
Gui for editing ControlPoints in ipce application.
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.
2017-01-05 Tracie Sucharski - Allow a new ground source location to be entered which includes allowing the option to change the location in the active control for all ground points.
2017-05-18 Tracie Sucharski - Added serialNumber to the setEditPoint slot.
2017-08-02 Tracie Sucharski - Added methods to return the current editPoint and current editPoint Id. Removed measure table methods. Fixes #5007, #5008.
2017-08-09 Adam Goins - Changed method references of SerialNumberList.Delete() to SerialNumberList.remove()
2017-08-09 Christopher Combs - Added QPushButton and slot for reloading a point's measures in the ChipViewports. Fixes #5070.
2017-08-09 Christopher Combs - Added Apriori Latitude, Longitude, and Radius to the dialog. Fixes #5066.
2017-08-11 Tracie Sucharski - Added shortcuts for Save Point, Save Net. Fixes #4982.
2017-08-11 Tracie Sucharski - Fixed save point and colorization of buttons. Fixes #4984.
2017-08-15 Tracie Sucharski - When ControlPoint is deleted, set the visibility of this widget to false, then to true in loadPoint(). Fixes #5073.
2018-03-23 Tracie Sucharski - Update the cnet filename with current cnet when it is changed.
2018-03-26 Tracie Sucharski - Added slot, setControlFromActive which update editor if a new active control net is set in ipce. References #4567.
2018-03-30 Tracie Sucharski - Save Control in addition to the control net and use Control to write the control net so Control can keep track of the modification state of the control net.
2018-04-25 Tracie Sucharski - Fix bug when creating a control point from CubeDnView or FootprintView if a ground source exists in the serial number list. Fixes #5399.
2018-05-02 Tracie Sucharski - Colorize save buttons properly when creating new control point and loading a different control point.
2018-06-11 Summer Stapleton - Stripped path from displayed filename of Control Network and set the tooltip to the full path for easier access.
2018-06-19 Adam Goins - Fixed updating references in selectLeftMeasure and selectRightMeasure to fix a segfault that was occuring. #Fixes #5435
2018-06-28 Kaitlyn Lee - Removed shortcut from reload point button.
2018-07-07 Summer Stapleton - Added a QComboBox to the widget to allow for changing the active registration template from the widget itself.
2018-07-13 Kaitlyn Lee - Added calls to setModified(true) when a cnet is modified. References #5396.
2018-08-08 Tracie Sucharski - Removed temporary autosave of active control, most likely causing problems with large networks.
2018-10-04 Tracie Sucharski - Changed functionality of ground and radius source choices on constrained and fixed points. Fixes #5504.
2018-10-04 Tracie Sucharski - Removed calls to ControlNet::GetTargetRadii because of changes to ControlNet.
2018-10-05 Tracie Sucharski - Added radius source combo to the NewControlPoint dialog.
Definition at line 113 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 72 of file ControlPointEditWidget.cpp.
References addTemplates(), createPointEditor(), m_addMeasuresButton, m_changeAllGroundLocation, m_changeGroundLocationInNet, m_cnetModified, m_demOpen, m_editPoint, m_measureEditor, m_parent, m_serialNumberList, m_templateModified, and Isis::Directory::project().
|
slot |
Add registration TemplateList to combobox when imported to project.
templateList | Reference to TemplateList that was imported |
Definition at line 2963 of file ControlPointEditWidget.cpp.
References m_templateComboBox, and Isis::TemplateList::type().
Referenced by ControlPointEditWidget().
|
private |
Change the location of all ground source locations in the ControlNet.
This changes the ControlPoint parameter, AprioriSurfacePointSourceFile.
Definition at line 944 of file ControlPointEditWidget.cpp.
References Isis::ControlPoint::HasAprioriSurfacePointSourceFile(), m_controlNet, m_newGroundDir, and Isis::ControlPoint::SetAprioriSurfacePointSourceFile().
Referenced by checkGroundFileLocation().
Ground source file from control net cannot be found, give user option to give new location.
The option also exists to change for the rest of the ground points in the control net and to change the apriori xyz source file in the control net to the new location.
groundFile | FileName of ground source that has moved location |
Definition at line 879 of file ControlPointEditWidget.cpp.
References Isis::NewGroundSourceLocationDialog::changeAllGroundSourceLocation(), Isis::NewGroundSourceLocationDialog::changeControlNet(), changeGroundLocationsInNet(), Isis::FileName::expanded(), Isis::FileName::fileExists(), m_changeAllGroundLocation, m_changeGroundLocationInNet, m_editPoint, m_newGroundDir, Isis::Directory::project(), and Isis::Project::shapeDataRoot().
Referenced by loadPoint().
|
privateslot |
Change which measure is the reference.
Definition at line 1987 of file ControlPointEditWidget.cpp.
References Isis::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), m_editPoint, m_leftCombo, m_leftMeasure, m_rightCombo, m_serialNumberList, and Isis::FileName::name().
|
privateslot |
Cleans up the edit point memory.
Definition at line 3177 of file ControlPointEditWidget.cpp.
References m_editPoint.
Referenced by createPointEditor().
|
private |
Clear out the ground source used for Constrained or Fixed control points.
Clears serial number, cube and gui elements.
Definition at line 1116 of file ControlPointEditWidget.cpp.
References Isis::ControlPoint::Free, m_editPoint, m_groundFilename, m_groundSN, m_groundSourceType, m_leftCombo, m_leftMeasure, m_pointFiles, m_rightCombo, m_rightMeasure, m_serialNumberList, Isis::SerialNumberList::remove(), selectLeftMeasure(), and selectRightMeasure().
Referenced by setGroundSourceInfo().
|
slot |
Turn "Save Net" button text to red.
TODO 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 3114 of file ControlPointEditWidget.cpp.
References m_saveDefaultPalette, m_saveNet, and m_savePoint.
Referenced by createPointEditor(), and deletePoint().
|
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 3097 of file ControlPointEditWidget.cpp.
References m_savePoint.
Referenced by measureSaved(), setIgnorePoint(), setLockPoint(), and setPointType().
|
private |
Creates the actions for the widget.
Definition at line 503 of file ControlPointEditWidget.cpp.
References m_closePointEditor, m_openTemplateFile, m_saveChips, m_saveTemplateFile, m_saveTemplateFileAs, openTemplateFile(), saveChips(), saveTemplateFile(), saveTemplateFileAs(), and showHideTemplateEditor().
Referenced by createPointEditor().
|
slot |
Create a new control point at the given latitude, longitude.
latitude | The latitude position for the new control point |
longitude | The longitude position for the new control point |
cube | The cube that the user used to select position for new control point |
isGroundSource | Boolean indicating whether the cube used to choose position is a ground source |
Definition at line 1447 of file ControlPointEditWidget.cpp.
References Isis::ControlPoint::Add(), Isis::Shape::cube(), Isis::FileName::expanded(), Isis::Cube::externalCubeFileName(), Isis::SerialNumberList::fileName(), Isis::Shape::fileName(), Isis::SerialNumberList::fileNameIndex(), Isis::ControlPoint::Free, Isis::ControlPoint::GetId(), Isis::Camera::Line(), m_controlNet, m_groundSN, m_lastUsedPointId, m_nameToShapeMap, m_numberProjectShapesWithPoint, m_projectShapeNames, m_serialNumberList, Isis::ControlMeasure::Manual, Isis::Camera::Sample(), Isis::SerialNumberList::serialNumber(), Isis::ControlPoint::SetAprioriSurfacePointSource(), Isis::ControlPoint::SetAprioriSurfacePointSourceFile(), Isis::ControlMeasure::SetCamera(), Isis::ControlMeasure::SetChooserName(), Isis::ControlPoint::SetChooserName(), Isis::ControlMeasure::SetCoordinate(), Isis::ControlMeasure::SetCubeSerialNumber(), setEditPoint(), Isis::NewControlPointDialog::setFiles(), setShapesForPoint(), Isis::ControlMeasure::SetType(), Isis::ControlPoint::SetType(), Isis::Camera::SetUniversalGround(), Isis::SerialNumberList::size(), and Isis::Application::UserName().
Referenced by Isis::Directory::createControlPoint().
|
private |
Creates the "Control Point" groupbox.
Definition at line 315 of file ControlPointEditWidget.cpp.
References groundSourceFileSelectionChanged(), m_groundSourceCombo, m_ignorePoint, m_lockPoint, m_pointTypeCombo, m_ptIdValue, m_radiusSourceCombo, Isis::ControlPoint::PointTypeToString(), setIgnorePoint(), setLockPoint(), and setPointType().
Referenced by createTopSplitter().
|
private |
Creates the "Left Measure" groupbox.
Definition at line 378 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 148 of file ControlPointEditWidget.cpp.
References clearEditPoint(), colorizeSaveNetButton(), createActions(), createTopSplitter(), Isis::Template::fileName(), Isis::Template::importName(), m_addMeasuresButton, m_cnetFileName, m_cnetFileNameLabel, m_measureEditor, m_reloadPoint, m_saveDefaultPalette, m_saveNet, m_savePoint, m_templateComboBox, measureSaved(), Isis::Directory::project(), Isis::Project::regTemplates(), reloadPoint(), resetTemplateComboBox(), saveNet(), savePoint(), and setTemplateFile().
Referenced by ControlPointEditWidget().
|
private |
Create the "Right Measure" groupbox.
Definition at line 420 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 478 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 748 of file ControlPointEditWidget.cpp.
References Isis::ControlMeasure::Candidate, Isis::Angle::degrees(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::SurfacePoint::GetLatitude(), Isis::SurfacePoint::GetLongitude(), m_controlNet, m_editPoint, m_groundSN, m_serialNumberList, Isis::SerialNumberList::serialNumberIndex(), Isis::ControlMeasure::SetChooserName(), Isis::ControlMeasure::SetCoordinate(), Isis::ControlMeasure::SetCubeSerialNumber(), setGroundSourceInfo(), Isis::Camera::SetImage(), Isis::ControlMeasure::SetType(), Isis::Sensor::UniversalLatitude(), and Isis::Sensor::UniversalLongitude().
Referenced by loadGroundMeasure(), and loadPoint().
|
private |
Creates everything above the ControlPointEdit.
Definition at line 282 of file ControlPointEditWidget.cpp.
References createControlPointGroupBox(), createLeftMeasureGroupBox(), createRightMeasureGroupBox(), createTemplateEditorWidget(), and m_templateEditorWidget.
Referenced by createPointEditor().
|
slot |
Gives user options for deleting a control point from the control network.
controlPoint | (ControlPoint *) Control point to be deleted |
Definition at line 1560 of file ControlPointEditWidget.cpp.
References colorizeSaveNetButton(), Isis::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), loadPoint(), m_control, m_controlNet, m_editPoint, m_serialNumberList, and Isis::ControlPoint::PointLocked.
Referenced by Isis::Directory::deleteControlPoint().
|
private |
Return a radius values from the dem using bilinear interpolation.
Definition at line 1062 of file ControlPointEditWidget.cpp.
References Isis::Buffer::DoubleBuffer(), Isis::Interpolator::HotLine(), Isis::Interpolator::HotSample(), Isis::Interpolator::Interpolate(), Isis::UniversalGroundMap::Line(), Isis::Interpolator::Lines(), m_demOpen, Isis::Null, Isis::UniversalGroundMap::Sample(), Isis::Interpolator::Samples(), Isis::Portal::SetPosition(), and Isis::UniversalGroundMap::SetUniversalGround().
|
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 2727 of file ControlPointEditWidget.cpp.
References m_leftCombo, m_rightCombo, updateLeftMeasureInfo(), and updateRightMeasureInfo().
|
privateslot |
Slot called when user changes selection in m_groundSourceCombo.
index | int |
Definition at line 1102 of file ControlPointEditWidget.cpp.
References loadGroundMeasure(), m_groundFilename, and m_groundSourceCombo.
Referenced by createControlPointGroupBox().
|
private |
Initialize the given Dem and appropriate member variables for later use editing Fixed or Constrained control points.
demFile | QString The file name of the DEM |
Definition at line 1011 of file ControlPointEditWidget.cpp.
References m_demOpen, and Isis::IException::toString().
Referenced by openReferenceRadius().
|
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 3141 of file ControlPointEditWidget.cpp.
References m_editPoint.
Referenced by updateLeftMeasureInfo(), and updateRightMeasureInfo().
|
private |
Load ground measure into right side and add to file combo boxes.
2013-12-06 Tracie Sucharski - Original version.
2015-05-19 Ian Humphrey and Makayla Shepherd - moved duplicated code to findPointLocation() and createTemporaryGroundMeasure().
Definition at line 715 of file ControlPointEditWidget.cpp.
References createTemporaryGroundMeasure(), Isis::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), m_editPoint, m_leftCombo, m_pointFiles, m_rightCombo, m_serialNumberList, Isis::FileName::name(), selectRightMeasure(), and updateSurfacePointInfo().
Referenced by groundSourceFileSelectionChanged(), and setPointType().
|
private |
Load point into ControlPointEditWidget.
serialNumber | (QString) The serial number of cube point was chosen from. |
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 IString 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 1226 of file ControlPointEditWidget.cpp.
References checkGroundFileLocation(), createTemporaryGroundMeasure(), Isis::FileName::fileExists(), Isis::SerialNumberList::fileName(), Isis::Shape::fileName(), Isis::ControlPoint::Free, Isis::ControlMeasure::GetChooserName(), Isis::ControlMeasure::GetCubeSerialNumber(), m_editPoint, m_groundSN, m_groundSourceCombo, m_ignorePoint, m_leftCombo, m_lockPoint, m_measureEditor, m_nameToShapeMap, m_numberProjectShapesWithPoint, m_pointFiles, m_pointTypeCombo, m_projectShapeNames, m_ptIdValue, m_radiusSourceCombo, m_rightCombo, m_serialNumberList, Isis::FileName::name(), Isis::ControlPoint::PointTypeToString(), selectLeftMeasure(), selectRightMeasure(), setShapesForPoint(), Isis::FileName::toString(), and updateSurfacePointInfo().
Referenced by deletePoint(), setEditPoint(), and setPointType().
|
private |
Updates the current template file being used.
fn | The file path of the new template file |
Definition at line 2795 of file ControlPointEditWidget.cpp.
References m_saveTemplateFile, m_templateEditor, and m_templateModified.
Referenced by openTemplateFile(), setEditPoint(), and setTemplateFile().
|
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.
2013-12-05 Tracie Sucharski - If saving measure on fixed or constrained point and reference measure is ignored, print warning and return.
2015-06-05 Makayla Shepherd and Ian Humphery - Modified to return out of the method when checkReference returns false.
Definition at line 1742 of file ControlPointEditWidget.cpp.
References colorizeSavePointButton(), Isis::ControlPoint::Free, m_controlNet, m_editPoint, m_groundSN, 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 2494 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 2748 of file ControlPointEditWidget.cpp.
References m_templateModified, and saveTemplateFileAs().
Referenced by openTemplateFile().
|
privateslot |
Open a radius source using the shape model of the reference measure of m_editPoint.
Definition at line 966 of file ControlPointEditWidget.cpp.
References Isis::SerialNumberList::fileName(), initDem(), m_editPoint, m_serialNumberList, and Isis::Spice::radii().
|
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 2772 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 2514 of file ControlPointEditWidget.cpp.
References m_rightCombo, and selectRightMeasure().
Referenced by createRightMeasureGroupBox().
|
privateslot |
Set both chip viewports to their original measures for the control point.
Definition at line 634 of file ControlPointEditWidget.cpp.
References m_editPoint, m_leftCube, m_leftMeasure, m_measureEditor, m_rightCube, and m_rightMeasure.
Referenced by createPointEditor().
|
privateslot |
Reset the selected template in the template combobox if the template selected by the user does not satisfy requirements for the control measure.
fileName | The filename that was previously selected in the template combo box |
Definition at line 2998 of file ControlPointEditWidget.cpp.
References m_templateComboBox.
Referenced by createPointEditor().
|
privateslot |
Slot which calls ControlPointEditWidget slot to save chips.
Definition at line 2940 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 3165 of file ControlPointEditWidget.cpp.
References m_control, 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 2184 of file ControlPointEditWidget.cpp.
References Isis::ControlPoint::Delete(), Isis::ControlPoint::Free, Isis::ControlPoint::GetId(), Isis::ControlPoint::GetType(), Isis::ControlPoint::HasSerialNumber(), m_cnetModified, m_control, m_controlNet, m_editPoint, m_groundSN, m_measureEditor, m_saveDefaultPalette, and m_savePoint.
Referenced by createPointEditor().
|
privateslot |
Save the file opened in the template editor.
Definition at line 2829 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 2844 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 2538 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 clearGroundSource(), 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 2586 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 clearGroundSource(), createRightMeasureGroupBox(), loadGroundMeasure(), loadPoint(), nextRightMeasure(), and previousRightMeasure().
|
slot |
New control network being edited.
cnet | (Control *) The control network to edit |
Definition at line 666 of file ControlPointEditWidget.cpp.
References Isis::Control::controlNet(), Isis::Control::fileName(), m_cnetFileName, m_cnetFileNameLabel, m_control, and m_controlNet.
|
slot |
New active control was set from ipce.
TODO: This will need to be redesigned with the ::setControl method to better handle editing points from different cnets.
Definition at line 689 of file ControlPointEditWidget.cpp.
References Isis::Project::activeControl(), m_cnetFileName, m_cnetFileNameLabel, m_control, m_controlNet, and Isis::Directory::project().
|
slot |
Slot called by Directory to set the control point for editing.
controlPoint | (ControlPoint *) ControlPoint that will be loaded into editor |
serialNumber | (QString) Optional parameter indicating the serial number of the cube that the point was chosen from |
Definition at line 1161 of file ControlPointEditWidget.cpp.
References loadPoint(), loadTemplateFile(), m_editPoint, and m_measureEditor.
Referenced by createControlPoint(), Isis::Directory::modifyControlPoint(), and Isis::ControlHealthMonitorView::openPointEditor().
|
private |
Find the ground source location: First look at current edit point for parameter, AprioriXYZSourceFile.
If not there, see if user has selected a groundSource file from the groundSourceCombo. If file does not exist, give option to look in another location and change location in the ControlNet for either this point and/or all points in net.
Definition at line 805 of file ControlPointEditWidget.cpp.
References Isis::SerialNumberList::add(), clearGroundSource(), Isis::SerialNumber::Compose(), Isis::FileName::expanded(), Isis::FileName::fileExists(), Isis::Shape::fileName(), m_editPoint, m_groundFilename, m_groundSN, m_groundSourceCombo, m_groundSourceType, m_nameToShapeMap, and m_serialNumberList.
Referenced by createTemporaryGroundMeasure().
|
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 2399 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 2329 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 2469 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 2359 of file ControlPointEditWidget.cpp.
References m_editPoint, m_leftMeasure, m_lockLeftMeasure, m_lockRightMeasure, and m_rightMeasure.
Referenced by createLeftMeasureGroupBox().
|
privateslot |
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 2310 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 2429 of file ControlPointEditWidget.cpp.
References m_editPoint, m_leftMeasure, m_lockLeftMeasure, m_lockRightMeasure, and m_rightMeasure.
Referenced by createRightMeasureGroupBox().
|
privateslot |
Set the point type.
pointType | int Index from point type combo box |
2013-12-06 Tracie Sucharski - If changing point type to constrained or fixed make sure reference measure is not ignored.
2015-05-19 Ian Humphrey and Makayla Shepherd - When changing a ground point between fixed and constrained and vice versa, the ground measure will not be reloaded (otherwise m_editPoint->Add() will throw an exception within a connected slot).
Definition at line 2242 of file ControlPointEditWidget.cpp.
References colorizeSavePointButton(), Isis::ControlPoint::Free, Isis::ControlMeasure::GetChooserName(), loadGroundMeasure(), loadPoint(), m_editPoint, m_groundSourceCombo, m_leftMeasure, m_parent, m_pointTypeCombo, m_radiusSourceCombo, and Isis::ControlPoint::PointLocked.
Referenced by createControlPointGroupBox().
|
slot |
Set the serial number list.
snList | Pointer to the SerialNumberList |
Definition at line 645 of file ControlPointEditWidget.cpp.
References m_serialNumberList.
|
private |
Fill m_projectShapeNames with ALL shapes currently in project.
The first m_numberProjectShapesWithPoint actually contain the location of m_editPoint.
latitude | (double) Latitude for determining point location. Defaults to Null which results in the m_editPoint location being used, AprioriCoordinates if they exist, otherwise the reference measure's location will be used. |
longitude | (double) Longitude for determining point location. Defaults to Null which results in the m_editPoint location being used, AprioriCoordinates if they exist, otherwise the reference measure's location will be used. |
Definition at line 576 of file ControlPointEditWidget.cpp.
References Isis::Shape::cube(), Isis::Angle::degrees(), Isis::Shape::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::SurfacePoint::GetLatitude(), Isis::SurfacePoint::GetLongitude(), m_controlNet, m_editPoint, m_nameToShapeMap, m_numberProjectShapesWithPoint, m_projectShapeNames, m_serialNumberList, Isis::Null, Isis::Directory::project(), Isis::SerialNumberList::serialNumberIndex(), Isis::Camera::SetImage(), Isis::UniversalGroundMap::SetUniversalGround(), Isis::Sensor::UniversalLatitude(), and Isis::Sensor::UniversalLongitude().
Referenced by createControlPoint(), and loadPoint().
|
privateslot |
Appends the filename to the registrations path (unless this is the default template) and calls setTemplateFile for the control measure.
filename | This is the import directory and the filename of the template file selected from the QComboBox. |
Definition at line 2980 of file ControlPointEditWidget.cpp.
References loadTemplateFile(), m_measureEditor, Isis::Directory::project(), and Isis::Project::templateRoot().
Referenced by createPointEditor().
|
privateslot |
Called when the template file is modified by the template editor.
Definition at line 2819 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 2949 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 2642 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().
|
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 2688 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().
|
privateslot |
Update the Surface Point Information in the ControlPointEditWidget.
2011-05-12 Tracie Sucharski - Type printing Apriori Values
2011-05-24 Tracie Sucharski - Set target radii on apriori surface point, so that sigmas can be converted to meters.
Definition at line 3022 of file ControlPointEditWidget.cpp.
References Isis::Angle::degrees(), Isis::SurfacePoint::GetLatitude(), Isis::SurfacePoint::GetLocalRadius(), Isis::SurfacePoint::GetLongitude(), m_editPoint, Isis::Distance::meters(), and Isis::Null.
Referenced by loadGroundMeasure(), and loadPoint().
|
private |
Validates a change to a control measure.
m | (ControlMeasure *) Pointer to the ControlMeasure |
Definition at line 1842 of file ControlPointEditWidget.cpp.
References Isis::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlMeasure::IsEditLocked(), m_editPoint, m_leftCombo, m_leftMeasure, m_lockLeftMeasure, m_lockRightMeasure, m_measureEditor, m_rightCombo, m_serialNumberList, and Isis::FileName::name().
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 2914 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 2862 of file ControlPointEditWidget.cpp.
References m_measureEditor, m_saveTemplateFile, m_templateEditor, 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 232 of file ControlPointEditWidget.h.
Referenced by ControlPointEditWidget(), and createPointEditor().
|
private |
Change the ground source location of all fixed, constrained points in the network.
Definition at line 314 of file ControlPointEditWidget.h.
Referenced by checkGroundFileLocation(), and ControlPointEditWidget().
|
private |
Change the ground source location.
Definition at line 316 of file ControlPointEditWidget.h.
Referenced by checkGroundFileLocation(), and ControlPointEditWidget().
|
private |
Action to close the point editor.
Definition at line 238 of file ControlPointEditWidget.h.
Referenced by createActions().
|
private |
Filename of the control network that is being modified.
Definition at line 234 of file ControlPointEditWidget.h.
Referenced by createPointEditor(), setControl(), and setControlFromActive().
|
private |
Label with name of the control network file.
Definition at line 235 of file ControlPointEditWidget.h.
Referenced by createPointEditor(), setControl(), and setControlFromActive().
|
private |
Indicates if the control network has been modified.
Definition at line 236 of file ControlPointEditWidget.h.
Referenced by ControlPointEditWidget(), and savePoint().
|
private |
Current Control.
Definition at line 292 of file ControlPointEditWidget.h.
Referenced by deletePoint(), saveNet(), savePoint(), setControl(), and setControlFromActive().
|
private |
Current control net.
Definition at line 291 of file ControlPointEditWidget.h.
Referenced by changeGroundLocationsInNet(), createControlPoint(), createTemporaryGroundMeasure(), deletePoint(), measureSaved(), savePoint(), setControl(), setControlFromActive(), and setShapesForPoint().
|
private |
Has a radius source been opened?
Definition at line 324 of file ControlPointEditWidget.h.
Referenced by ControlPointEditWidget(), demRadius(), and initDem().
|
private |
The control point being edited.
Definition at line 289 of file ControlPointEditWidget.h.
Referenced by checkGroundFileLocation(), checkReference(), clearEditPoint(), clearGroundSource(), ControlPointEditWidget(), createTemporaryGroundMeasure(), deletePoint(), IsMeasureLocked(), loadGroundMeasure(), loadPoint(), measureSaved(), openReferenceRadius(), reloadPoint(), savePoint(), selectLeftMeasure(), selectRightMeasure(), setEditPoint(), setGroundSourceInfo(), setIgnorePoint(), setLockLeftMeasure(), setLockPoint(), setLockRightMeasure(), setPointType(), setShapesForPoint(), updateLeftMeasureInfo(), updateRightMeasureInfo(), updateSurfacePointInfo(), and validateMeasureChange().
|
private |
File name of ground source.
Definition at line 309 of file ControlPointEditWidget.h.
Referenced by clearGroundSource(), groundSourceFileSelectionChanged(), and setGroundSourceInfo().
|
private |
Serial number of ground source file.
Definition at line 310 of file ControlPointEditWidget.h.
Referenced by clearGroundSource(), createControlPoint(), createTemporaryGroundMeasure(), loadPoint(), measureSaved(), savePoint(), and setGroundSourceInfo().
|
private |
ComboBox for selecting ground source.
Definition at line 262 of file ControlPointEditWidget.h.
Referenced by createControlPointGroupBox(), groundSourceFileSelectionChanged(), loadPoint(), setGroundSourceInfo(), and setPointType().
|
private |
SurfacePoint type of ground source.
Definition at line 311 of file ControlPointEditWidget.h.
Referenced by clearGroundSource(), and setGroundSourceInfo().
|
private |
Checkbox to ignore the left measure.
Definition at line 278 of file ControlPointEditWidget.h.
Referenced by createLeftMeasureGroupBox(), setIgnoreRightMeasure(), and updateLeftMeasureInfo().
|
private |
Checkbox to ignore the current point.
Definition at line 272 of file ControlPointEditWidget.h.
Referenced by createControlPointGroupBox(), loadPoint(), and setIgnorePoint().
|
private |
Checkbox to ignore the right measure.
Definition at line 280 of file ControlPointEditWidget.h.
Referenced by createRightMeasureGroupBox(), setIgnoreLeftMeasure(), and updateRightMeasureInfo().
|
private |
Point id of the last used control point.
Definition at line 295 of file ControlPointEditWidget.h.
Referenced by createControlPoint().
|
private |
Combobox to load left measure into left chip viewport.
Definition at line 282 of file ControlPointEditWidget.h.
Referenced by checkReference(), clearGroundSource(), createLeftMeasureGroupBox(), eventFilter(), loadGroundMeasure(), loadPoint(), selectLeftMeasure(), and validateMeasureChange().
|
private |
Left cube.
Definition at line 302 of file ControlPointEditWidget.h.
Referenced by measureSaved(), reloadPoint(), and selectLeftMeasure().
|
private |
Filename of left measure.
Definition at line 299 of file ControlPointEditWidget.h.
|
private |
Left control measure.
Definition at line 300 of file ControlPointEditWidget.h.
Referenced by checkReference(), clearGroundSource(), measureSaved(), reloadPoint(), selectLeftMeasure(), setIgnoreLeftMeasure(), setIgnoreRightMeasure(), setLockLeftMeasure(), setLockRightMeasure(), setPointType(), updateLeftMeasureInfo(), and validateMeasureChange().
|
private |
Label for the left measure's adjustment type.
Definition at line 274 of file ControlPointEditWidget.h.
Referenced by createLeftMeasureGroupBox(), and updateLeftMeasureInfo().
|
private |
Label indicating if left measure is the reference.
Definition at line 273 of file ControlPointEditWidget.h.
Referenced by createLeftMeasureGroupBox(), and updateLeftMeasureInfo().
|
private |
Checkbox to edit lock/unlock the left measure.
Definition at line 277 of file ControlPointEditWidget.h.
Referenced by createLeftMeasureGroupBox(), setLockLeftMeasure(), setLockRightMeasure(), updateLeftMeasureInfo(), and validateMeasureChange().
|
private |
Checkbox that locks/unlocks the current point.
Definition at line 271 of file ControlPointEditWidget.h.
Referenced by createControlPointGroupBox(), and loadPoint().
|
private |
Checkbox to edit lock/unlock the right measure.
Definition at line 279 of file ControlPointEditWidget.h.
Referenced by createRightMeasureGroupBox(), setLockLeftMeasure(), setLockRightMeasure(), updateRightMeasureInfo(), and validateMeasureChange().
|
private |
Pointer to control measure editor widget.
Definition at line 249 of file ControlPointEditWidget.h.
Referenced by ControlPointEditWidget(), createPointEditor(), loadPoint(), measureSaved(), openTemplateFile(), reloadPoint(), saveChips(), savePoint(), saveTemplateFile(), selectLeftMeasure(), selectRightMeasure(), setEditPoint(), setTemplateFile(), validateMeasureChange(), viewTemplateFile(), and writeTemplateFile().
|
private |
Table widget for the measures.
Definition at line 287 of file ControlPointEditWidget.h.
|
private |
Main window for the the measure table widget.
Definition at line 286 of file ControlPointEditWidget.h.
Map between Shape display name and object.
Definition at line 307 of file ControlPointEditWidget.h.
Referenced by createControlPoint(), loadPoint(), setGroundSourceInfo(), and setShapesForPoint().
|
private |
Contains the ground source location.
Definition at line 317 of file ControlPointEditWidget.h.
Referenced by changeGroundLocationsInNet(), and checkGroundFileLocation().
|
private |
New control point.
Definition at line 294 of file ControlPointEditWidget.h.
|
private |
Number of shapes containing control point.
Definition at line 306 of file ControlPointEditWidget.h.
Referenced by createControlPoint(), loadPoint(), and setShapesForPoint().
|
private |
Action to open a registration template file to disk.
Definition at line 243 of file ControlPointEditWidget.h.
Referenced by createActions(), and createTemplateEditorWidget().
|
private |
Parent widget.
Definition at line 230 of file ControlPointEditWidget.h.
Referenced by ControlPointEditWidget(), and setPointType().
|
private |
Associated files for current control point.
Definition at line 297 of file ControlPointEditWidget.h.
Referenced by clearGroundSource(), loadGroundMeasure(), loadPoint(), selectLeftMeasure(), and selectRightMeasure().
|
private |
Combobox to change the type of the current point.
Definition at line 265 of file ControlPointEditWidget.h.
Referenced by createControlPointGroupBox(), loadPoint(), and setPointType().
|
private |
List of Shapes imported into project, at time of loaded CP.
Definition at line 305 of file ControlPointEditWidget.h.
Referenced by createControlPoint(), loadPoint(), and setShapesForPoint().
|
private |
Label for the point id of the current point.
Definition at line 264 of file ControlPointEditWidget.h.
Referenced by createControlPointGroupBox(), and loadPoint().
|
private |
ComboBox for selecting ground source.
Definition at line 263 of file ControlPointEditWidget.h.
Referenced by createControlPointGroupBox(), loadPoint(), and setPointType().
|
private |
Button to reload current point to saved measures.
Definition at line 251 of file ControlPointEditWidget.h.
Referenced by createPointEditor().
|
private |
Combobox to load right measure into right chip viewport.
Definition at line 283 of file ControlPointEditWidget.h.
Referenced by checkReference(), clearGroundSource(), createRightMeasureGroupBox(), eventFilter(), loadGroundMeasure(), loadPoint(), nextRightMeasure(), previousRightMeasure(), selectRightMeasure(), and validateMeasureChange().
|
private |
Right cube.
Definition at line 303 of file ControlPointEditWidget.h.
Referenced by reloadPoint(), and selectRightMeasure().
|
private |
Right control measure.
Definition at line 301 of file ControlPointEditWidget.h.
Referenced by clearGroundSource(), measureSaved(), reloadPoint(), selectRightMeasure(), setIgnoreLeftMeasure(), setIgnoreRightMeasure(), setLockLeftMeasure(), setLockRightMeasure(), and updateRightMeasureInfo().
|
private |
Label for the right measure's adjustment type.
Definition at line 276 of file ControlPointEditWidget.h.
Referenced by createRightMeasureGroupBox(), and updateRightMeasureInfo().
|
private |
Label indicating if right measure is the reference.
Definition at line 275 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 240 of file ControlPointEditWidget.h.
Referenced by createActions().
|
private |
Default color pallet of the "Save Point" button.
Definition at line 253 of file ControlPointEditWidget.h.
Referenced by colorizeSaveNetButton(), createPointEditor(), saveNet(), and savePoint().
|
private |
Button to save the current control network.
Definition at line 255 of file ControlPointEditWidget.h.
Referenced by colorizeSaveNetButton(), createPointEditor(), and saveNet().
|
private |
Button to save current point being edited.
Definition at line 252 of file ControlPointEditWidget.h.
Referenced by colorizeSaveNetButton(), colorizeSavePointButton(), createPointEditor(), and savePoint().
|
private |
Action to save a registration template file to disk.
Definition at line 244 of file ControlPointEditWidget.h.
Referenced by createActions(), createTemplateEditorWidget(), loadTemplateFile(), setTemplateModified(), and writeTemplateFile().
|
private |
Action to save a new registration template.
Definition at line 245 of file ControlPointEditWidget.h.
Referenced by createActions(), and createTemplateEditorWidget().
|
private |
Serial number list for the loaded cubes.
Definition at line 290 of file ControlPointEditWidget.h.
Referenced by checkReference(), clearGroundSource(), ControlPointEditWidget(), createControlPoint(), createTemporaryGroundMeasure(), deletePoint(), loadGroundMeasure(), loadPoint(), openReferenceRadius(), selectLeftMeasure(), selectRightMeasure(), setGroundSourceInfo(), setSerialNumberList(), setShapesForPoint(), and validateMeasureChange().
|
private |
ComboBox of imported registration templates.
Definition at line 261 of file ControlPointEditWidget.h.
Referenced by addTemplates(), createPointEditor(), and resetTemplateComboBox().
|
private |
Text editor for editing the registration template.
Definition at line 257 of file ControlPointEditWidget.h.
Referenced by createTemplateEditorWidget(), loadTemplateFile(), and writeTemplateFile().
|
private |
Template editor widget.
Definition at line 258 of file ControlPointEditWidget.h.
Referenced by createTemplateEditorWidget(), createTopSplitter(), and showHideTemplateEditor().
|
private |
Indicates if the registration template was edited.
Definition at line 259 of file ControlPointEditWidget.h.
Referenced by ControlPointEditWidget(), loadTemplateFile(), okToContinue(), saveTemplateFile(), setTemplateModified(), and writeTemplateFile().