|
Isis 3.0 Object Programmers' Reference |
Home |
Point Editor Widget. More...
#include <ControlPointEdit.h>


Public Slots | |
| void | setLeftMeasure (ControlMeasure *leftMeasure, Cube *leftCube, QString pointId) |
| Set the measure displayed in the left ChipViewport. | |
| void | setRightMeasure (ControlMeasure *rightMeasure, Cube *rightCube, QString pointId) |
| Set the measure displayed in the right ChipViewport. | |
| void | colorizeSaveButton () |
| Turn "Save Measure" button text to red. | |
| void | refreshChips () |
| void | saveChips () |
| Slot to save registration chips to files and fire off qview. | |
Signals | |
| void | updateLeftView (double sample, double line) |
| void | updateRightView (double sample, double line) |
| void | measureSaved () |
| void | newControlNetwork (ControlNet *) |
| void | stretchChipViewport (Stretch *, CubeViewport *) |
Public Member Functions | |
| ControlPointEdit (ControlNet *cnetQ, QWidget *parent=0, bool allowLeftMouse=false, bool useGeometry=true) | |
| Constructs a ControlPointEdit widget. | |
| QString | templateFileName () |
| bool | setTemplateFile (QString) |
| Allows user to choose a new template file by opening a window from which to select a filename. | |
| void | allowLeftMouse (bool allowMouse) |
| Set the option that allows mouse movements in the left ChipViewport. | |
Private Slots | |
| void | setNoGeom () |
| Slot to turn off geom. | |
| void | setGeom () |
| Turn geom on. | |
| void | setRotate () |
| Slot to update the right ChipViewport for zoom operations. | |
| void | setCircle (bool) |
| Turn circle widgets on/off. | |
| void | setZoomLink (bool) |
| Turn linking of zoom on or off. | |
| void | findPoint () |
| Find point from left ChipViewport in the right ChipViewport. | |
| void | registerPoint () |
| Sub-pixel register point in right chipViewport with point in left. | |
| void | saveMeasure () |
| Save control measure under the crosshair in right ChipViewport. | |
| void | updateLeftPositionLabel (double zoomFactor) |
| Update sample/line, lat/lon and zoom factor of left measure. | |
| void | updateRightGeom () |
| Slot to update the geomed right ChipViewport for zoom operations. | |
| void | updateRightPositionLabel (double zoomFactor) |
| Update sample/line, lat/lon and zoom factor of right measure. | |
| void | blinkStart () |
| Slot to start blink function. | |
| void | blinkStop () |
| Slot to stop blink function. | |
| void | changeBlinkTime (double interval) |
| Set blink rate. | |
| void | updateBlink () |
| Slot to cause the blink to happen coinciding with the timer. | |
Private Member Functions | |
| void | createPointEditor (QWidget *parent) |
| Design the PointEdit widget. | |
Private Attributes | |
| bool | p_allowLeftMouse |
| bool | p_useGeometry |
| QString | p_templateFileName |
| QLabel * | p_leftZoomFactor |
| QLabel * | p_rightZoomFactor |
| QLabel * | p_leftSampLinePosition |
| QLabel * | p_rightSampLinePosition |
| QLabel * | p_leftLatLonPosition |
| QLabel * | p_rightLatLonPosition |
| QRadioButton * | p_nogeom |
| QRadioButton * | p_geom |
| QToolButton * | p_rightZoomIn |
| QToolButton * | p_rightZoomOut |
| QToolButton * | p_rightZoom1 |
| bool | p_timerOn |
| QTimer * | p_timer |
| std::vector< ChipViewport * > | p_blinkList |
| unsigned char | p_blinkIndex |
| QDial * | p_dial |
| QLCDNumber * | p_dialNumber |
| QDoubleSpinBox * | p_blinkTimeBox |
| bool | p_circle |
| QScrollBar * | p_slider |
| QPushButton * | p_autoReg |
| QWidget * | p_autoRegExtension |
| QLabel * | p_oldPosition |
| QLabel * | p_goodFit |
| bool | p_autoRegShown |
| bool | p_autoRegAttempted |
| QPushButton * | p_saveMeasure |
| QPalette | p_saveDefaultPalette |
| ChipViewport * | p_leftView |
| ChipViewport * | p_rightView |
| Cube * | p_leftCube |
| Cube * | p_rightCube |
| ControlMeasure * | p_leftMeasure |
| ControlMeasure * | p_rightMeasure |
| Chip * | p_leftChip |
| Chip * | p_rightChip |
| UniversalGroundMap * | p_leftGroundMap |
| UniversalGroundMap * | p_rightGroundMap |
| AutoReg * | p_autoRegFact |
| QString | p_pointId |
| int | p_rotation |
| bool | p_geomIt |
| bool | p_linkZoom |
Point Editor Widget.
For internal use only.
Definition at line 127 of file ControlPointEdit.h.
| Isis::ControlPointEdit::ControlPointEdit | ( | ControlNet * | cnet, | |
| QWidget * | parent = 0, |
|||
| bool | allowLeftMouse = false, |
|||
| bool | useGeometry = true | |||
| ) |
Constructs a ControlPointEdit widget.
| parent | Input Parent of widget | |
| allowLeftMouse | Input Allow/Disallow mouse events on Left ChipViewport |
For internal use only.
Definition at line 51 of file ControlPointEdit.cpp.
References _FILEINFO_, Isis::AutoRegFactory::Create(), createPointEditor(), Isis::IException::Io, and Isis::IException::toString().
| void Isis::ControlPointEdit::allowLeftMouse | ( | bool | allowMouse | ) |
Set the option that allows mouse movements in the left ChipViewport.
For internal use only.
Definition at line 1484 of file ControlPointEdit.cpp.
| void Isis::ControlPointEdit::blinkStart | ( | ) | [private, slot] |
Slot to start blink function.
Definition at line 1376 of file ControlPointEdit.cpp.
References updateBlink().
Referenced by createPointEditor().
| void Isis::ControlPointEdit::blinkStop | ( | ) | [private, slot] |
Slot to stop blink function.
Definition at line 1393 of file ControlPointEdit.cpp.
Referenced by createPointEditor().
| void Isis::ControlPointEdit::changeBlinkTime | ( | double | interval | ) | [private, slot] |
Set blink rate.
| interval | Input Blink rate in seconds |
Definition at line 1411 of file ControlPointEdit.cpp.
Referenced by createPointEditor().
| void Isis::ControlPointEdit::colorizeSaveButton | ( | ) | [slot] |
Turn "Save Measure" button text to red.
Definition at line 845 of file ControlPointEdit.cpp.
Referenced by createPointEditor(), findPoint(), and registerPoint().
| void Isis::ControlPointEdit::createPointEditor | ( | QWidget * | parent | ) | [private] |
Design the PointEdit widget.
For internal use only.
Definition at line 117 of file ControlPointEdit.cpp.
References blinkStart(), blinkStop(), changeBlinkTime(), circle(), colorizeSaveButton(), findPoint(), registerPoint(), saveMeasure(), setCircle(), setGeom(), setNoGeom(), setRotate(), setZoomLink(), updateLeftPositionLabel(), updateRightGeom(), updateRightPositionLabel(), and VIEWSIZE.
Referenced by ControlPointEdit().
| void Isis::ControlPointEdit::findPoint | ( | ) | [private, slot] |
Find point from left ChipViewport in the right ChipViewport.
Definition at line 865 of file ControlPointEdit.cpp.
References colorizeSaveButton(), Isis::UniversalGroundMap::Line(), Isis::UniversalGroundMap::Sample(), Isis::UniversalGroundMap::SetImage(), Isis::UniversalGroundMap::SetUniversalGround(), Isis::ChipViewport::tackLine(), Isis::ChipViewport::tackSample(), Isis::UniversalGroundMap::UniversalLatitude(), and Isis::UniversalGroundMap::UniversalLongitude().
Referenced by createPointEditor().
| void Isis::ControlPointEdit::registerPoint | ( | ) | [private, slot] |
Sub-pixel register point in right chipViewport with point in left.
For internal use only.
Definition at line 919 of file ControlPointEdit.cpp.
References Isis::AutoReg::AdaptiveAlgorithmFailed, colorizeSaveButton(), Isis::AutoReg::CubeLine(), Isis::AutoReg::CubeSample(), Isis::AutoReg::Distance(), Isis::AutoReg::DistanceTolerance(), Isis::AutoReg::FitChipNoData, Isis::AutoReg::FitChipToleranceNotMet, Isis::AutoReg::GoodnessOfFit(), Isis::Chip::Load(), 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 createPointEditor().
| void Isis::ControlPointEdit::saveChips | ( | ) | [slot] |
Slot to save registration chips to files and fire off qview.
For internal use only.
Definition at line 1522 of file ControlPointEdit.cpp.
References Isis::AutoReg::FitChip(), Isis::AutoReg::RegistrationPatternChip(), Isis::AutoReg::RegistrationSearchChip(), Isis::ProgramLauncher::RunSystemCommand(), Isis::toString(), and Isis::Chip::Write().
Referenced by Isis::MatchTool::saveChips().
| void Isis::ControlPointEdit::saveMeasure | ( | ) | [private, slot] |
Save control measure under the crosshair in right ChipViewport.
For internal use only.
Definition at line 1069 of file ControlPointEdit.cpp.
References Isis::ControlMeasure::DeleteLogData(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::AutoReg::GoodnessOfFit(), Isis::ControlMeasureLogData::GoodnessOfFit, 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::Application::UserName(), and Isis::AutoReg::ZScores().
Referenced by createPointEditor().
| void Isis::ControlPointEdit::setCircle | ( | bool | checked | ) | [private, slot] |
Turn circle widgets on/off.
| checked | Input Turn cirle on or off |
Definition at line 1331 of file ControlPointEdit.cpp.
Referenced by createPointEditor().
| void Isis::ControlPointEdit::setGeom | ( | ) | [private, slot] |
Turn geom on.
For internal use only.
Definition at line 1245 of file ControlPointEdit.cpp.
References _FILEINFO_, Isis::ChipViewport::geomChip(), Isis::IException::toString(), and Isis::IException::User.
Referenced by createPointEditor().
| void Isis::ControlPointEdit::setLeftMeasure | ( | ControlMeasure * | leftMeasure, | |
| Cube * | leftCube, | |||
| QString | pointId | |||
| ) | [slot] |
Set the measure displayed in the left ChipViewport.
| leftMeasure | Input Measure displayed in left ChipViewport | |
| leftCube | Input Cube of measure displayed in left ChipViewport |
For internal use only.
Definition at line 653 of file ControlPointEdit.cpp.
References Isis::Chip::Load(), Isis::ChipViewport::setChip(), Isis::Chip::TackCube(), updateRightGeom(), and Isis::ChipViewport::zoomFactor().
Referenced by Isis::StereoTool::loadPoint(), Isis::MatchTool::measureSaved(), saveMeasure(), and Isis::MatchTool::selectLeftMeasure().
| void Isis::ControlPointEdit::setNoGeom | ( | ) | [private, slot] |
Slot to turn off geom.
For internal use only.
Definition at line 1293 of file ControlPointEdit.cpp.
References Isis::ChipViewport::nogeomChip().
Referenced by createPointEditor().
| void Isis::ControlPointEdit::setRightMeasure | ( | ControlMeasure * | rightMeasure, | |
| Cube * | rightCube, | |||
| QString | pointId | |||
| ) | [slot] |
Set the measure displayed in the right ChipViewport.
| rightMeasure | Input Measure displayed in right ChipViewport | |
| rightCube | Input Cube of measure displayed in right ChipViewport |
For internal use only.
Definition at line 707 of file ControlPointEdit.cpp.
References _FILEINFO_, Isis::Chip::Load(), Isis::ChipViewport::setChip(), Isis::Chip::TackCube(), Isis::IException::toString(), updateRightGeom(), Isis::IException::User, and Isis::ChipViewport::zoomFactor().
Referenced by Isis::StereoTool::loadPoint(), and Isis::MatchTool::selectRightMeasure().
| void Isis::ControlPointEdit::setRotate | ( | ) | [private, slot] |
Slot to update the right ChipViewport for zoom operations.
For internal use only.
Slot to enable the rotate dial
Definition at line 1205 of file ControlPointEdit.cpp.
References Isis::ChipViewport::nogeomChip().
Referenced by createPointEditor().
| bool Isis::ControlPointEdit::setTemplateFile | ( | QString | fn | ) |
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.
For internal use only.
Definition at line 1442 of file ControlPointEdit.cpp.
References _FILEINFO_, Isis::AutoRegFactory::Create(), Isis::IException::Io, and Isis::IException::toString().
Referenced by Isis::MatchTool::openTemplateFile(), Isis::StereoTool::setTemplateFile(), and Isis::MatchTool::writeTemplateFile().
| void Isis::ControlPointEdit::setZoomLink | ( | bool | checked | ) | [private, slot] |
Turn linking of zoom on or off.
| checked | Input Turn zoom linking on or off |
Definition at line 1363 of file ControlPointEdit.cpp.
References Isis::ChipViewport::zoomFactor().
Referenced by createPointEditor().
| void Isis::ControlPointEdit::updateBlink | ( | ) | [private, slot] |
Slot to cause the blink to happen coinciding with the timer.
Definition at line 1417 of file ControlPointEdit.cpp.
References Isis::ChipViewport::loadView().
Referenced by blinkStart().
| void Isis::ControlPointEdit::updateLeftPositionLabel | ( | double | zoomFactor | ) | [private, slot] |
Update sample/line, lat/lon and zoom factor of left measure.
| zoomFactor | Input zoom factor |
For internal use only.
Definition at line 773 of file ControlPointEdit.cpp.
References pos, Isis::UniversalGroundMap::SetImage(), Isis::ChipViewport::tackLine(), Isis::ChipViewport::tackSample(), Isis::UniversalGroundMap::UniversalLatitude(), Isis::UniversalGroundMap::UniversalLongitude(), and Isis::ChipViewport::zoomFactor().
Referenced by createPointEditor().
| void Isis::ControlPointEdit::updateRightGeom | ( | ) | [private, slot] |
Slot to update the geomed right ChipViewport for zoom operations.
For internal use only.
Definition at line 1152 of file ControlPointEdit.cpp.
References _FILEINFO_, Isis::ChipViewport::geomChip(), Isis::IException::toString(), and Isis::IException::User.
Referenced by createPointEditor(), setLeftMeasure(), and setRightMeasure().
| void Isis::ControlPointEdit::updateRightPositionLabel | ( | double | zoomFactor | ) | [private, slot] |
Update sample/line, lat/lon and zoom factor of right measure.
| zoomFactor | Input zoom factor |
Definition at line 808 of file ControlPointEdit.cpp.
References pos, Isis::UniversalGroundMap::SetImage(), Isis::ChipViewport::tackLine(), Isis::ChipViewport::tackSample(), Isis::UniversalGroundMap::UniversalLatitude(), and Isis::UniversalGroundMap::UniversalLongitude().
Referenced by createPointEditor().