Isis 3 Programmer Reference
|
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. 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 | stretchChipViewport (Stretch *, CubeViewport *) |
Public Member Functions | |
ControlPointEdit (ControlNet *cnet, QWidget *parent=0, bool allowLeftMouse=false, bool useGeometry=true) | |
Constructs a ControlPointEdit widget. More... | |
QString | templateFileName () |
bool | setTemplateFile (QString) |
Allows user to choose a new template file by opening a window from which to select a filename. More... | |
void | allowLeftMouse (bool allowMouse) |
Set the option that allows mouse movements in the left ChipViewport. More... | |
Private Slots | |
void | setNoGeom () |
Slot to turn off geom. More... | |
void | setGeom () |
Turn geom on. More... | |
void | setRotate () |
** 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... | |
Private Member Functions | |
void | createPointEditor (QWidget *parent) |
Design the PointEdit widget. More... | |
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.
Definition at line 155 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 |
Definition at line 64 of file ControlPointEdit.cpp.
References allowLeftMouse(), and createPointEditor().
void Isis::ControlPointEdit::allowLeftMouse | ( | bool | allowMouse | ) |
Set the option that allows mouse movements in the left ChipViewport.
Definition at line 1554 of file ControlPointEdit.cpp.
Referenced by ControlPointEdit().
|
privateslot |
Slot to start blink function.
Definition at line 1441 of file ControlPointEdit.cpp.
References updateBlink().
Referenced by createPointEditor().
|
privateslot |
Slot to stop blink function.
Definition at line 1458 of file ControlPointEdit.cpp.
Referenced by createPointEditor().
|
privateslot |
Set blink rate.
interval | Input Blink rate in seconds |
Definition at line 1475 of file ControlPointEdit.cpp.
Referenced by createPointEditor().
|
slot |
Turn "Save Measure" button text to red.
Definition at line 867 of file ControlPointEdit.cpp.
Referenced by createPointEditor(), findPoint(), and registerPoint().
|
private |
Design the PointEdit widget.
Definition at line 118 of file ControlPointEdit.cpp.
References blinkStart(), blinkStop(), changeBlinkTime(), colorizeSaveButton(), Isis::FileName::expanded(), findPoint(), registerPoint(), saveMeasure(), setCircle(), setGeom(), setNoGeom(), setRotate(), setZoomLink(), updateLeftPositionLabel(), updateRightGeom(), updateRightPositionLabel(), and Isis::VIEWSIZE.
Referenced by ControlPointEdit().
|
privateslot |
Find point from left ChipViewport in the right ChipViewport.
Definition at line 886 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().
|
privateslot |
Sub-pixel register point in right chipViewport with point in left.
Definition at line 941 of file ControlPointEdit.cpp.
References 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(), 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(), and setTemplateFile().
|
slot |
Slot to save registration chips to files and fire off qview.
Definition at line 1590 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().
|
privateslot |
Save control measure under the crosshair in right ChipViewport.
Definition at line 1119 of file ControlPointEdit.cpp.
References Isis::ControlMeasure::DeleteLogData(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::AutoReg::GoodnessOfFit(), Isis::ControlMeasureLogData::GoodnessOfFit, Isis::ControlMeasure::IsEditLocked(), 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 createPointEditor().
|
privateslot |
Turn circle widgets on/off.
checked | Input Turn cirle on or off |
Definition at line 1399 of file ControlPointEdit.cpp.
References Isis::ChipViewport::setCircle().
Referenced by createPointEditor().
|
privateslot |
Turn geom on.
Definition at line 1316 of file ControlPointEdit.cpp.
References Isis::ChipViewport::geomChip(), Isis::IException::toString(), and Isis::IException::User.
Referenced by createPointEditor().
|
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 |
Definition at line 663 of file ControlPointEdit.cpp.
References Isis::Chip::Load(), Isis::ChipViewport::setChip(), Isis::Chip::TackCube(), and updateRightGeom().
Referenced by Isis::StereoTool::loadPoint(), Isis::MatchTool::measureSaved(), saveMeasure(), and Isis::MatchTool::selectLeftMeasure().
|
privateslot |
Slot to turn off geom.
Definition at line 1363 of file ControlPointEdit.cpp.
References Isis::ChipViewport::nogeomChip().
Referenced by createPointEditor().
|
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 |
Definition at line 724 of file ControlPointEdit.cpp.
References Isis::Chip::Load(), Isis::ChipViewport::setChip(), Isis::Chip::TackCube(), Isis::IException::toString(), updateRightGeom(), and Isis::IException::User.
Referenced by Isis::StereoTool::loadPoint(), and Isis::MatchTool::selectRightMeasure().
|
privateslot |
**
Slot to enable the rotate dial
Definition at line 1278 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.
Definition at line 1506 of file ControlPointEdit.cpp.
References Isis::AutoRegFactory::Create(), Isis::IException::Io, registerPoint(), and Isis::IException::toString().
Referenced by Isis::MatchTool::openTemplateFile(), Isis::StereoTool::setTemplateFile(), and Isis::MatchTool::writeTemplateFile().
|
privateslot |
Turn linking of zoom on or off.
checked | Input Turn zoom linking on or off |
Definition at line 1429 of file ControlPointEdit.cpp.
References Isis::ChipViewport::zoom(), and Isis::ChipViewport::zoomFactor().
Referenced by createPointEditor().
|
privateslot |
Slot to cause the blink to happen coinciding with the timer.
Definition at line 1481 of file ControlPointEdit.cpp.
References Isis::ChipViewport::loadView().
Referenced by blinkStart().
|
privateslot |
Update sample/line, lat/lon and zoom factor of left measure.
zoomFactor | Input zoom factor |
Definition at line 792 of file ControlPointEdit.cpp.
References Isis::UniversalGroundMap::SetImage(), Isis::ChipViewport::tackLine(), Isis::ChipViewport::tackSample(), Isis::UniversalGroundMap::UniversalLatitude(), Isis::UniversalGroundMap::UniversalLongitude(), Isis::ChipViewport::zoom(), and Isis::ChipViewport::zoomFactor().
Referenced by createPointEditor().
|
privateslot |
Slot to update the geomed right ChipViewport for zoom operations.
Definition at line 1227 of file ControlPointEdit.cpp.
References Isis::ChipViewport::geomChip(), Isis::IException::toString(), and Isis::IException::User.
Referenced by createPointEditor(), setLeftMeasure(), and setRightMeasure().
|
privateslot |
Update sample/line, lat/lon and zoom factor of right measure.
zoomFactor | Input zoom factor |
Definition at line 827 of file ControlPointEdit.cpp.
References Isis::UniversalGroundMap::SetImage(), Isis::ChipViewport::tackLine(), Isis::ChipViewport::tackSample(), Isis::UniversalGroundMap::UniversalLatitude(), and Isis::UniversalGroundMap::UniversalLongitude().
Referenced by createPointEditor().