Isis Developer 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... | |
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 |
References allowLeftMouse().
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().
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 |
References Isis::Chip::TackCube(), and updateLeftView().
|
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 |
|
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.
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 |
References Isis::Chip::TackCube(), and updateRightView().
|
signal |
Referenced by setTemplateFile().
|
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 |
References _FILEINFO_, Isis::AutoRegFactory::Create(), Isis::IException::Io, setTemplateFailed(), and Isis::IException::toString().
|
signal |
|
inline |
Returns the template filename used for auto-registration.
|
signal |
Referenced by setLeftPosition().
|
signal |
Referenced by setRightPosition().