Isis Developer Reference
|
Gui for editing ControlPoints in ipce application. More...
#include <ControlPointEditWidget.h>
Public Slots | |
void | setSerialNumberList (SerialNumberList *snList) |
Set the serial number list. More... | |
void | setControl (Control *control) |
New control network being edited. More... | |
void | setControlFromActive () |
New active control was set from ipce. More... | |
void | setEditPoint (ControlPoint *controlPoint, QString serialNumber="") |
Slot called by Directory to set the control point for editing. More... | |
void | deletePoint (ControlPoint *controlPoint) |
Gives user options for deleting a control point from the control network. More... | |
void | createControlPoint (double latitude, double longitude, Cube *cube=0, bool isGroundSource=false) |
Create a new control point at the given latitude, longitude. More... | |
void | colorizeSaveNetButton (bool reset=false) |
Turn "Save Net" button text to red. More... | |
void | addTemplates (TemplateList *templateList) |
Add registration TemplateList to combobox when imported to project. More... | |
Signals | |
void | controlPointChanged (QString pointId) |
void | controlPointAdded (QString pointId) |
void | ignorePointChanged () |
void | ignoreLeftChanged () |
void | ignoreRightChanged () |
void | cnetModified () |
void | newControlNetwork (ControlNet *) |
void | stretchChipViewport (Stretch *, CubeViewport *) |
void | measureChanged () |
void | saveControlNet () |
Public Member Functions | |
ControlPointEditWidget (Directory *directory, QWidget *parent, bool addMeasures=false) | |
Consructs the ControlPointEditWidget widget. More... | |
virtual | ~ControlPointEditWidget () |
QString | editPointId () |
ControlPoint * | editPoint () |
Protected Member Functions | |
bool | eventFilter (QObject *o, QEvent *e) |
Event filter for ControlPointEditWidget. More... | |
Gui for editing ControlPoints in ipce application.
Isis::ControlPointEditWidget::ControlPointEditWidget | ( | Directory * | directory, |
QWidget * | parent, | ||
bool | addMeasures = false |
||
) |
Consructs the ControlPointEditWidget widget.
parent | Pointer to the parent widget for the ControlPointEditWidget |
addMeasures | Whether or not to add the Add Measure to Point button |
References addTemplates(), newControlNetwork(), and Isis::Directory::project().
|
virtual |
|
slot |
Add registration TemplateList to combobox when imported to project.
templateList | Reference to TemplateList that was imported |
References Isis::FileName::name(), and Isis::TemplateList::type().
Referenced by ControlPointEditWidget().
|
signal |
Referenced by deletePoint().
|
slot |
Turn "Save Net" button text to red.
TODO Need whoever is actually saving network to emit signal when net has been saved, so that button can be set back to black.
Referenced by deletePoint().
|
signal |
Referenced by createControlPoint().
|
signal |
|
slot |
Create a new control point at the given latitude, longitude.
latitude | The latitude position for the new control point |
longitude | The longitude position for the new control point |
cube | The cube that the user used to select position for new control point |
isGroundSource | Boolean indicating whether the cube used to choose position is a ground source |
References Isis::ControlPoint::Add(), controlPointAdded(), Isis::Shape::cube(), Isis::ControlPoint::RadiusSource::DEM, Isis::FileName::expanded(), Isis::Cube::externalCubeFileName(), Isis::Shape::fileName(), Isis::SerialNumberList::fileName(), Isis::SerialNumberList::fileNameIndex(), Isis::ControlPoint::Free, Isis::ControlPoint::GetId(), Isis::NewControlPointDialog::groundSource(), Isis::Camera::Line(), Isis::ControlMeasure::Manual, Isis::ControlPoint::SurfacePointSource::None, Isis::NewControlPointDialog::pointId(), Isis::NewControlPointDialog::pointType(), Isis::Shape::radiusSource(), Isis::Camera::Sample(), Isis::NewControlPointDialog::selectedFiles(), Isis::SerialNumberList::serialNumber(), Isis::ControlMeasure::SetAprioriLine(), Isis::ControlMeasure::SetAprioriSample(), Isis::ControlPoint::SetAprioriSurfacePointSource(), Isis::ControlPoint::SetAprioriSurfacePointSourceFile(), Isis::ControlMeasure::SetCamera(), Isis::ControlMeasure::SetChooserName(), Isis::ControlPoint::SetChooserName(), Isis::ControlMeasure::SetCoordinate(), Isis::ControlMeasure::SetCubeSerialNumber(), setEditPoint(), Isis::NewControlPointDialog::setFiles(), Isis::NewControlPointDialog::setGroundSource(), Isis::NewControlPointDialog::setRadiusSource(), Isis::ControlMeasure::SetType(), Isis::ControlPoint::SetType(), Isis::Camera::SetUniversalGround(), Isis::SerialNumberList::size(), Isis::Shape::surfacePointSource(), and Isis::Application::UserName().
Referenced by Isis::Directory::createControlPoint().
|
slot |
Gives user options for deleting a control point from the control network.
controlPoint | (ControlPoint *) Control point to be deleted |
References cnetModified(), colorizeSaveNetButton(), Isis::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlMeasure::MeasureLocked, and Isis::ControlPoint::PointLocked.
Referenced by Isis::Directory::deleteControlPoint().
ControlPoint * Isis::ControlPointEditWidget::editPoint | ( | ) |
QString Isis::ControlPointEditWidget::editPointId | ( | ) |
Referenced by Isis::Directory::createControlPoint().
|
protected |
Event filter for ControlPointEditWidget.
Determines whether to update left or right measure info.
o | Pointer to QObject |
e | Pointer to QEvent |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
Referenced by ControlPointEditWidget(), setControl(), and setControlFromActive().
|
signal |
|
slot |
New control network being edited.
cnet | (Control *) The control network to edit |
References Isis::Control::controlNet(), Isis::Control::fileName(), and newControlNetwork().
Referenced by Isis::Directory::addControlPointEditView().
|
slot |
New active control was set from ipce.
TODO: This will need to be redesigned with the ::setControl method to better handle editing points from different cnets.
References Isis::Project::activeControl(), newControlNetwork(), and Isis::Directory::project().
|
slot |
Slot called by Directory to set the control point for editing.
controlPoint | (ControlPoint *) ControlPoint that will be loaded into editor |
serialNumber | (QString) Optional parameter indicating the serial number of the cube that the point was chosen from |
References Isis::ControlPoint::Parent().
Referenced by createControlPoint(), and Isis::Directory::modifyControlPoint().
|
slot |
Set the serial number list.
snList | Pointer to the SerialNumberList |
Referenced by Isis::Directory::addControlPointEditView().
|
signal |