Point Editor Widget. More...
#include <ControlMeasureEditWidget.h>
Inherits QWidget.
Public Slots | |
void | setPoint (ControlPoint *editPoint, SerialNumberList *snList) |
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 | |
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... | |
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... | |
Point Editor Widget.
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 |
IException::Io | "Cannot create AutoRegFactory. As a result, sub-pixel registration will not work." |
References _FILEINFO_, allowLeftMouse(), Isis::AutoRegFactory::Create(), Isis::IException::Io, and Isis::IException::toString().
Isis::ControlMeasureEditWidget::~ControlMeasureEditWidget | ( | ) |
Destructor.
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 |
Referenced by ControlMeasureEditWidget().
|
slot |
Turn "Save Measure" button text to red.
|
signal |
|
signal |
|
slot |
|
slot |
Slot to save registration chips to files and fire off qview.
References Isis::AutoReg::FitChip(), Isis::ControlMeasure::GetLine(), Isis::ControlMeasure::GetSample(), Isis::AutoReg::RegistrationPatternChip(), Isis::AutoReg::RegistrationSearchChip(), Isis::ProgramLauncher::RunSystemCommand(), Isis::toString(), and Isis::Chip::Write().
|
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 |
References Isis::ControlMeasure::GetLine(), Isis::ControlMeasure::GetSample(), Isis::Chip::Load(), Isis::ChipViewport::setChip(), and Isis::Chip::TackCube().
|
slot |
|
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 |
References _FILEINFO_, Isis::ControlMeasure::GetLine(), Isis::ControlMeasure::GetSample(), Isis::Chip::Load(), Isis::ChipViewport::setChip(), Isis::Chip::TackCube(), Isis::IException::toString(), and Isis::IException::User.
bool Isis::ControlMeasureEditWidget::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.
fn | Template filename |
References _FILEINFO_, Isis::AutoRegFactory::Create(), Isis::IException::Io, and Isis::IException::toString().
|
signal |
|
inline |
Returns the template filename used for auto-registration.
|
signal |
|
signal |
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the ISIS Support Center File Modified: 07/12/2023 23:35:18 |