Isis 3 Programmer Reference
|
Point Editor Widget. More...
#include <ControlMeasureEditWidget.h>
Public Slots | |
bool | setTemplateFile (QString) |
Allows user to choose a new template file by opening a window from which to select a filename. More... | |
void | setPoint (ControlPoint *editPoint, SerialNumberList *snList) |
Set the Control Point for this widget. More... | |
void | setLeftMeasure (ControlMeasure *leftMeasure, Cube *leftCube, QString pointId) |
Set the measure displayed in the left ChipViewport. More... | |
void | setRightMeasure (ControlMeasure *rightMeasure, Cube *rightCube, QString pointId) |
Set the measure displayed in the right ChipViewport. More... | |
void | colorizeSaveButton () |
Turn "Save Measure" button text to red. More... | |
void | refreshChips () |
void | saveChips () |
Slot to save registration chips to files and fire off qview. More... | |
Signals | |
void | updateLeftView (double sample, double line) |
void | updateRightView (double sample, double line) |
void | measureSaved () |
void | newControlNetwork (ControlNet *) |
void | setTemplateFailed (QString) |
void | stretchChipViewport (Stretch *, CubeViewport *) |
Public Member Functions | |
ControlMeasureEditWidget (QWidget *parent=0, bool allowLeftMouse=false, bool useGeometry=true) | |
Constructs a ControlMeasureEditWidget widget. More... | |
~ControlMeasureEditWidget () | |
Destructor. More... | |
QString | templateFileName () |
Returns the template filename used for auto-registration. More... | |
void | allowLeftMouse (bool allowMouse) |
Set the option that allows mouse movements in the left ChipViewport. More... | |
void | setLeftPosition (double sample, double line) |
Set the tack position of the measure in the left ChipViewport. More... | |
void | setRightPosition (double sample, double line) |
Set the tack position of the measure in the right ChipViewport. More... | |
Private Slots | |
void | setNoGeom () |
Slot to turn off geom. More... | |
void | setGeom () |
Turn geom on. More... | |
void | setRotate () |
Slot to update the right ChipViewport for zoom operations. More... | |
void | setCircle (bool) |
Turn circle widgets on/off. More... | |
void | setZoomLink (bool) |
Turn linking of zoom on or off. More... | |
void | findPoint () |
Find point from left ChipViewport in the right ChipViewport. More... | |
void | registerPoint () |
Sub-pixel register point in right chipViewport with point in left. More... | |
void | saveMeasure () |
Save control measure under the crosshair in right ChipViewport. More... | |
void | updateLeftPositionLabel (double zoomFactor) |
Update sample/line, lat/lon and zoom factor of left measure. More... | |
void | updateRightGeom () |
Slot to update the geomed right ChipViewport for zoom operations. More... | |
void | updateRightPositionLabel (double zoomFactor) |
Update sample/line, lat/lon and zoom factor of right measure. More... | |
void | blinkStart () |
Slot to start blink function. More... | |
void | blinkStop () |
Slot to stop blink function. More... | |
void | changeBlinkTime (double interval) |
Set blink rate. More... | |
void | updateBlink () |
Slot to cause the blink to happen coinciding with the timer. More... | |
void | showBlinkExtension () |
void | blinkStartRight () |
Slot to start blink function for advanced blink functionality. More... | |
void | blinkStopRight () |
Slot to stop blink function. More... | |
void | changeBlinkTimeRight (double interval) |
Set blink rate. More... | |
void | updateBlinkRight () |
Slot to cause the blink to happen coinciding with the timer. More... | |
Private Member Functions | |
void | createMeasureEditor (QWidget *parent) |
Design the MeasureEdit widget. More... | |
Private Attributes | |
bool | m_allowLeftMouse |
Whether or not to allow mouse events on left chip viewport. More... | |
bool | m_useGeometry |
Whether or not to allow geometry/rotation on right chip viewport. More... | |
QString | m_templateFileName |
Registration template filename. More... | |
QLabel * | m_leftZoomFactor |
Label for left chip viewport's zoom factor. More... | |
QLabel * | m_rightZoomFactor |
Label for right chip viewport's zoom factor. More... | |
QLabel * | m_leftSampLinePosition |
Label for left chip viewport's current sample/line. More... | |
QLabel * | m_rightSampLinePosition |
Label for right chip viewport's current sample/line. More... | |
QLabel * | m_leftLatLonPosition |
Label for left chip viewport's current lat/lon. More... | |
QLabel * | m_rightLatLonPosition |
Label for right chip viewport's current lat/lon. More... | |
QRadioButton * | m_nogeom |
Radio button to remove geometry/rotation for right chip viewport. More... | |
QRadioButton * | m_geom |
Radio button to apply geometry/rotation to right chip viewport. More... | |
QToolButton * | m_rightZoomIn |
Button for zooming in right chip viewport. More... | |
QToolButton * | m_rightZoomOut |
Button for zooming out right chip viewport. More... | |
QToolButton * | m_rightZoom1 |
Button for 1:1 zoom on right chip viewport. More... | |
bool | m_timerOn |
Indicates if the blink timer is on. More... | |
QTimer * | m_timer |
Timer on the blinking. More... | |
QList< ChipViewport * > | m_blinkList |
List of chip viewports to blink. More... | |
unsigned char | m_blinkIndex |
Index of the chip to load in the left chip viewport. More... | |
QDial * | m_dial |
Rotation dial. More... | |
QLCDNumber * | m_dialNumber |
The current amount of rotation (in degrees) More... | |
QDoubleSpinBox * | m_blinkTimeBox |
The current blink step (in seconds) More... | |
bool | m_circle |
Whether or not to draw circle in center of the right chip viewport. More... | |
QScrollBar * | m_slider |
Slider that controls the size of the center circle. More... | |
QPushButton * | m_autoReg |
Button to auto-register the measure. More... | |
QWidget * | m_autoRegExtension |
Widget that shows after registering a measure. More... | |
QLabel * | m_oldPosition |
The old sample and line before registering. More... | |
QLabel * | m_goodFit |
The goodness of fit value after registering. More... | |
bool | m_autoRegShown |
Whether or not the auto-reg extension is shown. More... | |
bool | m_autoRegAttempted |
Whether or not auto-registration has been attempted. More... | |
QPushButton * | m_saveMeasure |
Button to save the current measure. More... | |
QPalette | m_saveDefaultPalette |
Default color palette for the Save button. More... | |
ChipViewport * | m_leftView |
Left ChipViewport. More... | |
ChipViewport * | m_rightView |
Right ChipViewport. More... | |
Cube * | m_leftCube |
Left chip viewport's Cube. More... | |
Cube * | m_rightCube |
Right chip viewport's Cube. More... | |
ControlMeasure * | m_leftMeasure |
Left ControlMeasure. More... | |
ControlMeasure * | m_rightMeasure |
Right ControlMeasure. More... | |
Chip * | m_leftChip |
Left Chip. More... | |
Chip * | m_rightChip |
Right Chip. More... | |
UniversalGroundMap * | m_leftGroundMap |
UniversalGroundMap for left cube. More... | |
UniversalGroundMap * | m_rightGroundMap |
UniversalGroundMap for right cube. More... | |
AutoReg * | m_autoRegFact |
Created AutoReg. More... | |
QString | m_pointId |
Associated control point id of the right measure. More... | |
int | m_rotation |
Amount to rotate right chip viewport TODO Is this used?? More... | |
bool | m_geomIt |
Apply geometry to the right chip viewport. More... | |
bool | m_linkZoom |
Link zoom factors between chip viewports. More... | |
ControlPoint * | m_editPoint |
The control point currently being edited. More... | |
SerialNumberList * | m_serialNumberList |
The serial numbers for each measure of m_editpoint. More... | |
QWidget * | m_blinkExtension |
Widget for selecting images and timing to blink through them. More... | |
QListWidget * | m_blinkListWidget |
List of images being blinked through. More... | |
QDoubleSpinBox * | m_blinkTimeBoxRight |
Input for time between image blinks. More... | |
bool | m_timerOnRight |
Timer is on for right viewport. More... | |
QTimer * | m_timerRight |
Timer for tracking image blink time. More... | |
QList< ChipViewport * > | m_blinkChipViewportListRight |
List of viewports to blink through. More... | |
unsigned char | m_blinkIndexRight |
Index of image being blinked. More... | |
Point Editor Widget.
2008-11-19 Tracie Sucharski - Addition option to constructor to allow mouse events on leftChipViewport.
2008-11-24 Tracie Sucharski - Changed class name from PointEdit
2008-12-02 Jeannie Walldren - Modified createPointEditor() to allow the leftChipViewport to refresh even if allowLeftMouse = false.
2008-12-10 Jeannie Walldren - Added a private variable for the template filename. Set the default value of this variable to the previously hard-coded template filename. Added setTemplateFile() method derived from previously unused and commented out method called openTemplateFile().
2008-12-15 Jeannie Walldren - Some QMessageBox warnings had strings tacked on to the list of errors. These strings were changed to iExceptions and added to the error stack to conform with Isis standards.
2008-12-30 Jeannie Walldren - Modified savePoint() method to update user (chooser) name and date when point is saved
2009-03-17 Tracie Sucharski - Add slot to set a boolean to indicate whether the registration chips should be saved.
2010-06-08 Jeannie Walldren - Added warning box in registerPoint() if unable to load left or right chip
2010-06-26 Eric Hyer - now uses MdiCubeViewport instead of CubeViewport. Fixed multiple include problems.
2010-11-17 Eric Hyer - now forwards new ControlNets to the ChipViewports
2010-11-19 Tracie Sucharski - Renamed the "Save Point" button to "Save Measure" along with signals and slots. Add a new "Save Point" button which actually saves the edit point to the network.
2010-11-22 Eric Hyer - Forwarded SIGNAL from StretchTool to ChipViewports
2010-12-01 Eric Hyer - Added checkboxes for stretch locking
2010-12-08 Eric Hyer - Relocated stretch locking checkboxes
2010-12-14 Eric Hyer - setTemplateFile now takes the filename as a parameter (no more open dialog!)
2011-05-04 Jai Rideout - updated saveChips() to reference new AutoReg API for accessing chips used in registration.
2011-06-14 Tracie Sucharski - Added slot to colorize the Save Measure button. If user moved the tack point, the button text will be changed to red. If they push the save button, button will go back to black.
2011-06-15 Tracie Sucharski - Changed signal mouseClick to userMovedTackPoint. TODO: Could not use tackPointChanged signal because that signal is emitted whenever the measure is loaded not just when the user initiates the move. This should be cleaned up.
2012-04-17 Tracie Sucharski - If geom is turned on update the right measure in ::setLeftMeasure.
2012-05-01 Tracie Sucharski - Fix intereface between No Geom, geom and rotate. Make sure resets are done properly when switching beween the options.
2012-05-07 Tracie Sucharski - Change made on 2012-04-17 introduced bug when loading a different control point, so in setLeftMeasure, only update the right chip if we're not loading a different control point.
2012-06-28 Tracie Sucharski - Add parameter to constructor to indicate whether to use cube geometry. This allow cubes with no camera or SPICE information to be used.
2012-07-20 Tracie Sucharski - Change the Save Measure button text and tootip depending on whether movement is allowed on the left chip.
2012-07-26 Tracie Sucharski - Added ability to link zooming between left and right viewports. Added 2 methods, zoomFactor() which returns a zoom factor and zoom(double zoomFactor).
2013-04-30 Tracie Sucharski - Fixed bug introduced by linking zooms between left and right viewports. Zoom factors were being passed into the Chip::Load method as the second argument which should be the rotation value.
2013-11-07 Tracie Sucharski - Moved error checking on edit locked measures from QnetTool::measureSaved to ::saveMeasure. The error checking now forces the edit lock check box to be unchecked before the measure can be saved. Fixes #1624.
2013-12-30 Kimberly Oyama and Stuart Sides - In saveChips(), added single quotes around the file names in case there are spaces or other special characters in them. Fixes #1551.
2014-07-03 Tracie Sucharski - Renamed from ControlPointEdit for IPCE.
2016-04-28 Tracie Sucharski - Removed position information, this will be shown in ControlNetEditor type view. Added blink capability.
2016-06-27 Ian Humphrey - Updated documentation and coding standards. Fixes #4004.
2017-07-27 Christopher Combs - Added sample, line, lat, and lon labels. Fixes #5067.
2017-08-11 Tracie Sucharski - Added shortcuts for find, registration/undo-registration, save measure. Fixes #4982.
2017-08-11 Tracie Sucharski - Created a new ControlMeasure when editing points so that the edit ControlPoint is no changed until user selects "Save Measures", and colorize save buttons. Fixes #4984.
2018-06-28 Kaitlyn Lee - Removed shortcuts from zoom buttons because of ambiguous shortcut errors. Set the shortcut and tooltip of m_autoReg inside of registerPoint() to allow the user to use the shortcut after an undo-registration ocurs.
2018-09-06 Tracie Sucharski - Added bug fixes from qnet's ControlPointEdit class including moving the creation of AutoRegFactory from constructor to the registerPoint method and fixing seg fault happening in saveMeasure when calling ControlMeasure::SetLogData.
2018-09-24 Tracie Sucharski - Fixed right measure chooser name to the Application::User.
2018-09-26 Tracie Sucharski - Added public method to allow change measure tack points.
2018-10-10 Tracie Sucharski - Fixed blink extension to use geom if selected and correct zoom factor.
Definition at line 166 of file ControlMeasureEditWidget.h.
Isis::ControlMeasureEditWidget::ControlMeasureEditWidget | ( | QWidget * | parent = 0 , |
bool | allowLeftMouse = false , |
||
bool | useGeometry = true |
||
) |
Constructs a ControlMeasureEditWidget widget.
parent[in] | Parent of widget |
allowLeftMouse[in] | Allow/Disallow mouse events on Left ChipViewport |
useGeometry[in] | Allow/Disallow geometry and rotation on right ChipViewport |
Definition at line 56 of file ControlMeasureEditWidget.cpp.
References allowLeftMouse(), createMeasureEditor(), m_allowLeftMouse, m_autoRegFact, m_leftCube, m_leftGroundMap, m_rightCube, m_rightGroundMap, m_rotation, m_templateFileName, m_timerOn, m_timerOnRight, and m_useGeometry.
Isis::ControlMeasureEditWidget::~ControlMeasureEditWidget | ( | ) |
Destructor.
Definition at line 82 of file ControlMeasureEditWidget.cpp.
References m_leftChip, and m_rightChip.
void Isis::ControlMeasureEditWidget::allowLeftMouse | ( | bool | allowMouse | ) |
Set the option that allows mouse movements in the left ChipViewport.
allowMouse | Whether or not to allow mouse event on left chip viewport |
Definition at line 1660 of file ControlMeasureEditWidget.cpp.
References m_allowLeftMouse, and m_saveMeasure.
Referenced by ControlMeasureEditWidget().
|
privateslot |
Slot to start blink function.
Definition at line 1547 of file ControlMeasureEditWidget.cpp.
References m_blinkIndex, m_blinkList, m_blinkTimeBox, m_leftView, m_rightView, m_timer, m_timerOn, and updateBlink().
Referenced by createMeasureEditor().
|
privateslot |
Slot to start blink function for advanced blink functionality.
Definition at line 1764 of file ControlMeasureEditWidget.cpp.
References Isis::ChipViewport::geomChip(), Isis::ControlPoint::GetMeasure(), m_blinkChipViewportListRight, m_blinkIndexRight, m_blinkListWidget, m_blinkTimeBoxRight, m_editPoint, m_geomIt, m_leftChip, m_leftCube, m_leftView, m_serialNumberList, m_timerOnRight, m_timerRight, Isis::SerialNumberList::serialNumber(), Isis::ChipViewport::setChip(), updateBlinkRight(), Isis::VIEWSIZE, Isis::ChipViewport::zoom(), and Isis::ChipViewport::zoomFactor().
Referenced by createMeasureEditor().
|
privateslot |
Slot to stop blink function.
Definition at line 1566 of file ControlMeasureEditWidget.cpp.
References m_blinkList, m_leftView, m_timer, and m_timerOn.
Referenced by createMeasureEditor().
|
privateslot |
Slot to stop blink function.
Definition at line 1807 of file ControlMeasureEditWidget.cpp.
References m_blinkChipViewportListRight, m_rightView, m_timerOnRight, and m_timerRight.
Referenced by createMeasureEditor().
|
privateslot |
Set blink rate.
interval[in] | Blink rate in seconds |
Definition at line 1583 of file ControlMeasureEditWidget.cpp.
References m_timer, and m_timerOn.
Referenced by createMeasureEditor().
|
privateslot |
Set blink rate.
interval | Input Blink rate in seconds |
Definition at line 1823 of file ControlMeasureEditWidget.cpp.
References m_timerOnRight, and m_timerRight.
Referenced by createMeasureEditor().
|
slot |
Turn "Save Measure" button text to red.
Definition at line 959 of file ControlMeasureEditWidget.cpp.
References m_saveMeasure.
Referenced by createMeasureEditor(), findPoint(), and registerPoint().
|
private |
Design the MeasureEdit widget.
parent | The parent QWidget |
2008-11-19 Tracie Sucharski - Added left pan buttons, but default to hidden.
2008-12-02 Jeannie Walldren - Allow connection between updateLeftView and refreshView for all objects. Previously this was only done if allowLeftMouse = true.
2008-12-02 Tracie Sucharski - Another bug fix due to change on 2008-11-19, The leftView tackPointChanged connection needs to always be made whether mouse button events are allowed or not.
2008-12-10 Jeannie Walldren - Set the default value of the new private variable, m_templateFileName, to the previously hard-coded template filename.
Definition at line 113 of file ControlMeasureEditWidget.cpp.
References blinkStart(), blinkStartRight(), blinkStop(), blinkStopRight(), changeBlinkTime(), changeBlinkTimeRight(), colorizeSaveButton(), Isis::FileName::expanded(), findPoint(), m_allowLeftMouse, m_autoReg, m_autoRegAttempted, m_autoRegExtension, m_autoRegShown, m_blinkExtension, m_blinkListWidget, m_blinkTimeBox, m_blinkTimeBoxRight, m_dial, m_dialNumber, m_geom, m_geomIt, m_goodFit, m_leftChip, m_leftLatLonPosition, m_leftSampLinePosition, m_leftView, m_leftZoomFactor, m_linkZoom, m_nogeom, m_oldPosition, m_rightChip, m_rightLatLonPosition, m_rightSampLinePosition, m_rightView, m_rightZoom1, m_rightZoomFactor, m_rightZoomIn, m_rightZoomOut, m_rotation, m_saveDefaultPalette, m_saveMeasure, m_slider, m_useGeometry, registerPoint(), saveMeasure(), setCircle(), setGeom(), setNoGeom(), setRotate(), setZoomLink(), updateLeftPositionLabel(), updateRightGeom(), updateRightPositionLabel(), and Isis::VIEWSIZE.
Referenced by ControlMeasureEditWidget().
|
privateslot |
Find point from left ChipViewport in the right ChipViewport.
Definition at line 978 of file ControlMeasureEditWidget.cpp.
References colorizeSaveButton(), Isis::UniversalGroundMap::Line(), m_leftGroundMap, m_leftView, m_rightGroundMap, m_rightMeasure, Isis::UniversalGroundMap::Sample(), Isis::UniversalGroundMap::SetImage(), Isis::UniversalGroundMap::SetUniversalGround(), Isis::ChipViewport::tackLine(), Isis::ChipViewport::tackSample(), Isis::UniversalGroundMap::UniversalLatitude(), and Isis::UniversalGroundMap::UniversalLongitude().
Referenced by createMeasureEditor().
|
privateslot |
Sub-pixel register point in right chipViewport with point in left.
2008-15-?? Jeannie Walldren - Throw and catch error before creating QMessageBox
2009-03-23 Tracie Sucharski - Added private m_autoRegAttempted for the SaveChips method.
2010-02-16 Tracie Sucharski- If autoreg fails, print registration stats.
2010-02-18 Tracie Sucharski - Registration stats wasn't the correct info to print. Instead, check registrationStatus and print separate errors for each possibility.
2010-02-22 Tracie Sucharski - Added more info for registration failures.
2010-06-08 Jeannie Walldren - Catch error and warn user if unable to load pattern (left) or search (right) chip
2010-10-12 Tracie Sucharski - Clean up try/catch blocks.
2011-06-27 Tracie Sucharski - If un-doing registration, change save button back to black. If registration successful, change save button to red.
2011-10-21 Tracie Sucharski - Add try/catch around registration to catch errors thrown from autoreg class.
2017-04-21 Marjorie Hahn - Added auto registration factory creation.
Definition at line 1033 of file ControlMeasureEditWidget.cpp.
References _FILEINFO_, Isis::AutoReg::AdaptiveAlgorithmFailed, colorizeSaveButton(), Isis::AutoRegFactory::Create(), Isis::AutoReg::CubeLine(), Isis::AutoReg::CubeSample(), Isis::AutoReg::Distance(), Isis::AutoReg::DistanceTolerance(), Isis::AutoReg::FitChipNoData, Isis::AutoReg::FitChipToleranceNotMet, Isis::AutoReg::GoodnessOfFit(), Isis::IException::Io, Isis::Chip::Load(), m_autoReg, m_autoRegAttempted, m_autoRegExtension, m_autoRegFact, m_autoRegShown, m_goodFit, m_leftCube, m_leftMeasure, m_oldPosition, m_rightCube, m_rightMeasure, m_saveDefaultPalette, m_saveMeasure, m_templateFileName, m_useGeometry, Isis::AutoReg::MinimumZScore(), Isis::AutoReg::PatternChip(), Isis::AutoReg::PatternChipNotEnoughValidData, Isis::AutoReg::PatternValidPercent(), Isis::AutoReg::PatternZScoreNotMet, Isis::AutoReg::Register(), Isis::AutoReg::SearchChip(), Isis::AutoReg::Success(), Isis::AutoReg::SurfaceModelDistanceInvalid, Isis::AutoReg::SurfaceModelNotEnoughValidData, Isis::AutoReg::SurfaceModelSolutionInvalid, Isis::Chip::TackCube(), Isis::AutoReg::Tolerance(), Isis::IException::toString(), and Isis::AutoReg::ZScores().
Referenced by createMeasureEditor().
|
slot |
Slot to save registration chips to files and fire off qview.
Definition at line 1697 of file ControlMeasureEditWidget.cpp.
References Isis::AutoReg::FitChip(), m_autoRegAttempted, m_autoRegFact, m_leftMeasure, m_pointId, m_rightMeasure, Isis::AutoReg::RegistrationPatternChip(), Isis::AutoReg::RegistrationSearchChip(), Isis::ProgramLauncher::RunSystemCommand(), Isis::toString(), and Isis::Chip::Write().
|
privateslot |
Save control measure under the crosshair in right ChipViewport.
2008-12-30 Jeannie Walldren - Modified to update user (chooser) name and date when point is saved
2010-11-19 Tracie Sucharski - Renamed from savePoint.
2011-03-04 Tracie Sucharski - If auto reg info is shown, save the GoodnessOfFit value to the right ControlMeasure log entry. Changed the way the left viewport is updated if the left and right measure are the same. Simply copy the right measure into the left and re-load the left measure. If measure currently has type of subPixelRegistered, but the new position has not be sub-pixel registered, change measure type and get rid of goodness of fit.
2011-06-14 Tracie Sucharski - Change Save Measure button text back to black.
2011-07-19 Tracie Sucharski - Updated for new functionality of registration pixel shift. ControlMeasure will now calculate based on aprioriSample/Line and current coordinate. If autoreg has been calculated, save coordinate to apriori before updating to subpixel registered coordinate.
2013-11-07 Tracie Sucharski - Moved error checking on edit locked measures from QnetTool::measureSaved to ::saveMeasure. The error checking now forces the edit lock check box to be unchecked before the measure can be saved.
2015-01-09 Ian Humphrey - Modified to prevent segmentation fault that arises when registering, opening a template file, and saving the measure. This was caused by not handling the exception thrown by ControlMeasure::SetLogData(), which produces undefined behavior within the Qt signal-slot connection mechanism.
Definition at line 1218 of file ControlMeasureEditWidget.cpp.
References Isis::ControlMeasure::DeleteLogData(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlMeasureLogData::GoodnessOfFit, Isis::AutoReg::GoodnessOfFit(), Isis::ControlMeasure::IsEditLocked(), m_allowLeftMouse, m_autoReg, m_autoRegExtension, m_autoRegFact, m_autoRegShown, m_leftCube, m_leftMeasure, m_leftView, m_pointId, m_rightMeasure, m_rightView, m_saveDefaultPalette, m_saveMeasure, Isis::ControlMeasure::Manual, Isis::ControlMeasureLogData::MaximumPixelZScore, Isis::ControlMeasureLogData::MinimumPixelZScore, Isis::ControlMeasure::RegisteredSubPixel, Isis::ControlMeasure::SetChooserName(), Isis::ControlMeasure::SetCoordinate(), Isis::ControlMeasure::SetDateTime(), setLeftMeasure(), Isis::ControlMeasure::SetLogData(), Isis::ControlMeasure::SetType(), Isis::ChipViewport::tackLine(), Isis::ChipViewport::tackSample(), Isis::IException::toString(), Isis::Application::UserName(), and Isis::AutoReg::ZScores().
Referenced by createMeasureEditor().
|
privateslot |
Turn circle widgets on/off.
checked[in] | Turn cirle on or off |
Definition at line 1504 of file ControlMeasureEditWidget.cpp.
References m_circle, m_leftView, m_rightView, m_slider, and Isis::ChipViewport::setCircle().
Referenced by createMeasureEditor().
|
privateslot |
Turn geom on.
2007-06-15 Tracie Sucharski - Grey out zoom buttons
2008-15-?? Jeannie Walldren - Added error string to iException::Message before creating QMessageBox
Definition at line 1419 of file ControlMeasureEditWidget.cpp.
References _FILEINFO_, Isis::ChipViewport::geomChip(), m_dial, m_dialNumber, m_geom, m_geomIt, m_leftChip, m_leftCube, m_nogeom, m_rightView, m_rightZoom1, m_rightZoomIn, m_rightZoomOut, Isis::IException::toString(), and Isis::IException::User.
Referenced by createMeasureEditor().
|
slot |
Set the measure displayed in the left ChipViewport.
leftMeasure[in] | Measure displayed in left ChipViewport |
leftCube[in] | Cube of measure displayed in left ChipViewport |
pointId[in] | Control point id associated with the left measure |
2008-11-19 Tracie Sucharski - If left cube changes, get new universalGroundMap.
2012-04-17 Tracie Sucharski - If geom is turned on update the right measure.
2012-05-07 Tracie Sucharski - Last change introduced bug when loading a different control point, so only update the right chip if we're not loading a different control point.
2013-04-30 Tracie Sucharski - Fixed bug introduced by linking zooms between left and right viewports. Zoom factors were being passed into the Chip::Load method as the second argument which should be the rotation value.
Definition at line 723 of file ControlMeasureEditWidget.cpp.
References Isis::Chip::Load(), m_autoReg, m_autoRegExtension, m_autoRegShown, m_geomIt, m_leftChip, m_leftCube, m_leftGroundMap, m_leftMeasure, m_leftView, m_pointId, m_useGeometry, Isis::ChipViewport::setChip(), Isis::Chip::TackCube(), and updateRightGeom().
Referenced by saveMeasure().
void Isis::ControlMeasureEditWidget::setLeftPosition | ( | double | sample, |
double | line | ||
) |
Set the tack position of the measure in the left ChipViewport.
sample[in] | Sample of the tack position for the right ChipViewport |
line[in] | Line of the tack position for the left ChipViewport |
Definition at line 766 of file ControlMeasureEditWidget.cpp.
References m_leftChip, and Isis::Chip::TackCube().
|
privateslot |
Slot to turn off geom.
Definition at line 1468 of file ControlMeasureEditWidget.cpp.
References m_dial, m_dialNumber, m_geomIt, m_rightView, m_rightZoom1, m_rightZoomIn, m_rightZoomOut, and Isis::ChipViewport::nogeomChip().
Referenced by createMeasureEditor().
|
slot |
Set the Control Point for this widget.
editPoint[in] | ControlPoint for this widget |
snList[in] | SerialNumberList associated with the control net containing the ControlPoint |
Definition at line 1732 of file ControlMeasureEditWidget.cpp.
References m_blinkListWidget, m_editPoint, and m_serialNumberList.
|
slot |
Set the measure displayed in the right ChipViewport.
rightMeasure[in] | Measure displayed in right ChipViewport |
rightCube[in] | Cube of measure displayed in right ChipViewport |
pointId[in] | Control point id associated with the measure |
2008-11-19 Tracie Sucharski - If right cube changes, get new universalGroundMap.
2008-15-?? Jeannie Walldren - Added error string to iException::Message before creating QMessageBox
2009-09-14 Tracie Sucharski - Call geomChip to make sure left chip is initialized in the ChipViewport. This was done for the changes made to the Chip class and the ChipViewport class where the Cube info is no longer stored.
2013-04-30 Tracie Sucharski - Fixed bug introduced by linking zooms between left and right viewports. Zoom factors were being passed into the Chip::Load method as the second argument which should be the rotation value.
Definition at line 813 of file ControlMeasureEditWidget.cpp.
References _FILEINFO_, Isis::Chip::Load(), m_autoReg, m_autoRegAttempted, m_autoRegExtension, m_autoRegShown, m_geom, m_geomIt, m_leftChip, m_leftCube, m_nogeom, m_pointId, m_rightChip, m_rightCube, m_rightGroundMap, m_rightMeasure, m_rightView, m_saveDefaultPalette, m_saveMeasure, m_useGeometry, Isis::ChipViewport::setChip(), Isis::Chip::TackCube(), Isis::IException::toString(), updateRightGeom(), and Isis::IException::User.
void Isis::ControlMeasureEditWidget::setRightPosition | ( | double | sample, |
double | line | ||
) |
Set the tack position of the measure in the right ChipViewport.
sample[in] | Sample of the tack position for the right ChipViewport |
line[in] | Line of the tack position for the left ChipViewport |
Definition at line 780 of file ControlMeasureEditWidget.cpp.
References m_rightChip, and Isis::Chip::TackCube().
|
privateslot |
Slot to update the right ChipViewport for zoom operations.
Slot to enable the rotate dial
Definition at line 1380 of file ControlMeasureEditWidget.cpp.
References m_dial, m_dialNumber, m_geomIt, m_rightView, m_rightZoom1, m_rightZoomIn, m_rightZoomOut, and Isis::ChipViewport::nogeomChip().
Referenced by createMeasureEditor().
|
slot |
Allows user to choose a new template file by opening a window from which to select a filename.
This file is then registered and set as the new template.
fn | Template filename |
2008-12-10 Jeannie Walldren - Changed name from openTemplateFile() and added functionality to set new template filename to the private variable, m_templateFileName
2008-12-15 Jeannie Walldren - Modified code to only allow the template file to be modified if registration is successfull, otherwise the original template file is kept.
Definition at line 1616 of file ControlMeasureEditWidget.cpp.
References _FILEINFO_, Isis::AutoRegFactory::Create(), Isis::IException::Io, m_autoRegFact, m_templateFileName, and Isis::IException::toString().
|
privateslot |
Turn linking of zoom on or off.
checked[in] | Turn zoom linking on or off |
Definition at line 1533 of file ControlMeasureEditWidget.cpp.
References m_leftView, m_linkZoom, m_rightView, Isis::ChipViewport::zoom(), and Isis::ChipViewport::zoomFactor().
Referenced by createMeasureEditor().
|
inline |
Returns the template filename used for auto-registration.
Definition at line 178 of file ControlMeasureEditWidget.h.
References m_templateFileName.
|
privateslot |
Slot to cause the blink to happen coinciding with the timer.
Definition at line 1591 of file ControlMeasureEditWidget.cpp.
References Isis::ChipViewport::loadView(), m_blinkIndex, m_blinkList, and m_leftView.
Referenced by blinkStart().
|
privateslot |
Slot to cause the blink to happen coinciding with the timer.
Definition at line 1829 of file ControlMeasureEditWidget.cpp.
References Isis::ChipViewport::loadView(), m_blinkChipViewportListRight, m_blinkIndexRight, and m_rightView.
Referenced by blinkStartRight().
|
privateslot |
Update sample/line, lat/lon and zoom factor of left measure.
zoomFactor[in] | zoom factor |
2012-07-26 Tracie Sucharski - Added ability to link zooming between left and right viewports. TODO: Re-think design, should this be put somewhere else. This was the fastest solution for now.
2017-08-03 Christopher Combs - Added label updates for sample, line, lat and lon
Definition at line 882 of file ControlMeasureEditWidget.cpp.
References m_leftGroundMap, m_leftLatLonPosition, m_leftSampLinePosition, m_leftView, m_leftZoomFactor, m_linkZoom, m_rightView, m_useGeometry, Isis::UniversalGroundMap::SetImage(), Isis::ChipViewport::tackLine(), Isis::ChipViewport::tackSample(), Isis::UniversalGroundMap::UniversalLatitude(), Isis::UniversalGroundMap::UniversalLongitude(), Isis::ChipViewport::zoom(), and Isis::ChipViewport::zoomFactor().
Referenced by createMeasureEditor().
|
privateslot |
Slot to update the geomed right ChipViewport for zoom operations.
Definition at line 1327 of file ControlMeasureEditWidget.cpp.
References _FILEINFO_, Isis::ChipViewport::geomChip(), m_geom, m_geomIt, m_leftChip, m_leftCube, m_nogeom, m_rightView, Isis::IException::toString(), and Isis::IException::User.
Referenced by createMeasureEditor(), setLeftMeasure(), and setRightMeasure().
|
privateslot |
Update sample/line, lat/lon and zoom factor of right measure.
zoomFactor[in] | zoom factor |
Definition at line 919 of file ControlMeasureEditWidget.cpp.
References m_autoReg, m_autoRegExtension, m_autoRegShown, m_rightGroundMap, m_rightLatLonPosition, m_rightSampLinePosition, m_rightView, m_rightZoomFactor, m_useGeometry, Isis::UniversalGroundMap::SetImage(), Isis::ChipViewport::tackLine(), Isis::ChipViewport::tackSample(), Isis::UniversalGroundMap::UniversalLatitude(), and Isis::UniversalGroundMap::UniversalLongitude().
Referenced by createMeasureEditor().
|
private |
Whether or not to allow mouse events on left chip viewport.
Definition at line 237 of file ControlMeasureEditWidget.h.
Referenced by allowLeftMouse(), ControlMeasureEditWidget(), createMeasureEditor(), and saveMeasure().
|
private |
Button to auto-register the measure.
Definition at line 265 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), registerPoint(), saveMeasure(), setLeftMeasure(), setRightMeasure(), and updateRightPositionLabel().
|
private |
Whether or not auto-registration has been attempted.
Definition at line 270 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), registerPoint(), saveChips(), and setRightMeasure().
|
private |
Widget that shows after registering a measure.
Definition at line 266 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), registerPoint(), saveMeasure(), setLeftMeasure(), setRightMeasure(), and updateRightPositionLabel().
|
private |
Created AutoReg.
Definition at line 287 of file ControlMeasureEditWidget.h.
Referenced by ControlMeasureEditWidget(), registerPoint(), saveChips(), saveMeasure(), and setTemplateFile().
|
private |
Whether or not the auto-reg extension is shown.
Definition at line 269 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), registerPoint(), saveMeasure(), setLeftMeasure(), setRightMeasure(), and updateRightPositionLabel().
|
private |
List of viewports to blink through.
Definition at line 305 of file ControlMeasureEditWidget.h.
Referenced by blinkStartRight(), blinkStopRight(), and updateBlinkRight().
|
private |
Widget for selecting images and timing to blink through them.
Definition at line 298 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor().
|
private |
Index of the chip to load in the left chip viewport.
Definition at line 256 of file ControlMeasureEditWidget.h.
Referenced by blinkStart(), and updateBlink().
|
private |
Index of image being blinked.
Definition at line 306 of file ControlMeasureEditWidget.h.
Referenced by blinkStartRight(), and updateBlinkRight().
|
private |
List of chip viewports to blink.
Definition at line 255 of file ControlMeasureEditWidget.h.
Referenced by blinkStart(), blinkStop(), and updateBlink().
|
private |
List of images being blinked through.
Definition at line 299 of file ControlMeasureEditWidget.h.
Referenced by blinkStartRight(), createMeasureEditor(), and setPoint().
|
private |
The current blink step (in seconds)
Definition at line 260 of file ControlMeasureEditWidget.h.
Referenced by blinkStart(), and createMeasureEditor().
|
private |
Input for time between image blinks.
Definition at line 302 of file ControlMeasureEditWidget.h.
Referenced by blinkStartRight(), and createMeasureEditor().
|
private |
Whether or not to draw circle in center of the right chip viewport.
Definition at line 262 of file ControlMeasureEditWidget.h.
Referenced by setCircle().
|
private |
Rotation dial.
Definition at line 258 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), setGeom(), setNoGeom(), and setRotate().
|
private |
The current amount of rotation (in degrees)
Definition at line 259 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), setGeom(), setNoGeom(), and setRotate().
|
private |
The control point currently being edited.
Definition at line 296 of file ControlMeasureEditWidget.h.
Referenced by blinkStartRight(), and setPoint().
|
private |
Radio button to apply geometry/rotation to right chip viewport.
Definition at line 248 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), setGeom(), setRightMeasure(), and updateRightGeom().
|
private |
Apply geometry to the right chip viewport.
Definition at line 291 of file ControlMeasureEditWidget.h.
Referenced by blinkStartRight(), createMeasureEditor(), setGeom(), setLeftMeasure(), setNoGeom(), setRightMeasure(), setRotate(), and updateRightGeom().
|
private |
The goodness of fit value after registering.
Definition at line 268 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), and registerPoint().
|
private |
Left Chip.
Definition at line 282 of file ControlMeasureEditWidget.h.
Referenced by blinkStartRight(), createMeasureEditor(), setGeom(), setLeftMeasure(), setLeftPosition(), setRightMeasure(), updateRightGeom(), and ~ControlMeasureEditWidget().
|
private |
Left chip viewport's Cube.
Definition at line 278 of file ControlMeasureEditWidget.h.
Referenced by blinkStartRight(), ControlMeasureEditWidget(), registerPoint(), saveMeasure(), setGeom(), setLeftMeasure(), setRightMeasure(), and updateRightGeom().
|
private |
UniversalGroundMap for left cube.
Definition at line 284 of file ControlMeasureEditWidget.h.
Referenced by ControlMeasureEditWidget(), findPoint(), setLeftMeasure(), and updateLeftPositionLabel().
|
private |
Label for left chip viewport's current lat/lon.
Definition at line 245 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), and updateLeftPositionLabel().
|
private |
Left ControlMeasure.
Definition at line 280 of file ControlMeasureEditWidget.h.
Referenced by registerPoint(), saveChips(), saveMeasure(), and setLeftMeasure().
|
private |
Label for left chip viewport's current sample/line.
Definition at line 243 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), and updateLeftPositionLabel().
|
private |
Left ChipViewport.
Definition at line 275 of file ControlMeasureEditWidget.h.
Referenced by blinkStart(), blinkStartRight(), blinkStop(), createMeasureEditor(), findPoint(), saveMeasure(), setCircle(), setLeftMeasure(), setZoomLink(), updateBlink(), and updateLeftPositionLabel().
|
private |
Label for left chip viewport's zoom factor.
Definition at line 241 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), and updateLeftPositionLabel().
|
private |
Link zoom factors between chip viewports.
Definition at line 292 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), setZoomLink(), and updateLeftPositionLabel().
|
private |
Radio button to remove geometry/rotation for right chip viewport.
Definition at line 247 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), setGeom(), setRightMeasure(), and updateRightGeom().
|
private |
The old sample and line before registering.
Definition at line 267 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), and registerPoint().
|
private |
Associated control point id of the right measure.
Definition at line 288 of file ControlMeasureEditWidget.h.
Referenced by saveChips(), saveMeasure(), setLeftMeasure(), and setRightMeasure().
|
private |
Right Chip.
Definition at line 283 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), setRightMeasure(), setRightPosition(), and ~ControlMeasureEditWidget().
|
private |
Right chip viewport's Cube.
Definition at line 279 of file ControlMeasureEditWidget.h.
Referenced by ControlMeasureEditWidget(), registerPoint(), and setRightMeasure().
|
private |
UniversalGroundMap for right cube.
Definition at line 285 of file ControlMeasureEditWidget.h.
Referenced by ControlMeasureEditWidget(), findPoint(), setRightMeasure(), and updateRightPositionLabel().
|
private |
Label for right chip viewport's current lat/lon.
Definition at line 246 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), and updateRightPositionLabel().
|
private |
Right ControlMeasure.
Definition at line 281 of file ControlMeasureEditWidget.h.
Referenced by findPoint(), registerPoint(), saveChips(), saveMeasure(), and setRightMeasure().
|
private |
Label for right chip viewport's current sample/line.
Definition at line 244 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), and updateRightPositionLabel().
|
private |
Right ChipViewport.
Definition at line 276 of file ControlMeasureEditWidget.h.
Referenced by blinkStart(), blinkStopRight(), createMeasureEditor(), saveMeasure(), setCircle(), setGeom(), setNoGeom(), setRightMeasure(), setRotate(), setZoomLink(), updateBlinkRight(), updateLeftPositionLabel(), updateRightGeom(), and updateRightPositionLabel().
|
private |
Button for 1:1 zoom on right chip viewport.
Definition at line 251 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), setGeom(), setNoGeom(), and setRotate().
|
private |
Label for right chip viewport's zoom factor.
Definition at line 242 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), and updateRightPositionLabel().
|
private |
Button for zooming in right chip viewport.
Definition at line 249 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), setGeom(), setNoGeom(), and setRotate().
|
private |
Button for zooming out right chip viewport.
Definition at line 250 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), setGeom(), setNoGeom(), and setRotate().
|
private |
Amount to rotate right chip viewport TODO Is this used??
Definition at line 290 of file ControlMeasureEditWidget.h.
Referenced by ControlMeasureEditWidget(), and createMeasureEditor().
|
private |
Default color palette for the Save button.
Definition at line 273 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), registerPoint(), saveMeasure(), and setRightMeasure().
|
private |
Button to save the current measure.
Definition at line 272 of file ControlMeasureEditWidget.h.
Referenced by allowLeftMouse(), colorizeSaveButton(), createMeasureEditor(), registerPoint(), saveMeasure(), and setRightMeasure().
|
private |
The serial numbers for each measure of m_editpoint.
Definition at line 297 of file ControlMeasureEditWidget.h.
Referenced by blinkStartRight(), and setPoint().
|
private |
Slider that controls the size of the center circle.
Definition at line 263 of file ControlMeasureEditWidget.h.
Referenced by createMeasureEditor(), and setCircle().
|
private |
Registration template filename.
Definition at line 240 of file ControlMeasureEditWidget.h.
Referenced by ControlMeasureEditWidget(), registerPoint(), setTemplateFile(), and templateFileName().
|
private |
Timer on the blinking.
Definition at line 254 of file ControlMeasureEditWidget.h.
Referenced by blinkStart(), blinkStop(), and changeBlinkTime().
|
private |
Indicates if the blink timer is on.
Definition at line 253 of file ControlMeasureEditWidget.h.
Referenced by blinkStart(), blinkStop(), changeBlinkTime(), and ControlMeasureEditWidget().
|
private |
Timer is on for right viewport.
Definition at line 303 of file ControlMeasureEditWidget.h.
Referenced by blinkStartRight(), blinkStopRight(), changeBlinkTimeRight(), and ControlMeasureEditWidget().
|
private |
Timer for tracking image blink time.
Definition at line 304 of file ControlMeasureEditWidget.h.
Referenced by blinkStartRight(), blinkStopRight(), and changeBlinkTimeRight().
|
private |
Whether or not to allow geometry/rotation on right chip viewport.
Definition at line 238 of file ControlMeasureEditWidget.h.
Referenced by ControlMeasureEditWidget(), createMeasureEditor(), registerPoint(), setLeftMeasure(), setRightMeasure(), updateLeftPositionLabel(), and updateRightPositionLabel().