Isis 3.0
| Home |
Gui for editing ControlPoint. More...
#include <ControlPointEditWidget.h>
Inherits QWidget.
Public Types | |
enum | MeasureColumns { FILENAME, CUBESN, SAMPLE, LINE, APRIORISAMPLE, APRIORILINE, SAMPLERESIDUAL, LINERESIDUAL, RESIDUALMAGNITUDE, SAMPLESHIFT, LINESHIFT, PIXELSHIFT, GOODNESSOFFIT, IGNORED, EDITLOCK, TYPE } |
Measure column values for the measure table. More... | |
Public Slots | |
void | setSerialNumberList (SerialNumberList *snList) |
Set the serial number list. More... | |
void | setControl (Control *control) |
New control network being edited. More... | |
void | setEditPoint (ControlPoint *controlPoint) |
Slot called by Directory to set the control point for editing. More... | |
void | deletePoint (ControlPoint *controlPoint) |
void | createControlPoint (double latitude, double longitude, Cube *cube=0, bool isGroundSource=false) |
void | updatePointInfo (ControlPoint &updatedPoint) |
Update the current editPoint information in the Point Editor labels. More... | |
Signals | |
void | controlPointChanged (QString pointId) |
void | controlPointAdded (QString pointId) |
void | ignorePointChanged () |
void | ignoreLeftChanged () |
void | ignoreRightChanged () |
void | netChanged () |
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 | measureColumnToString (MeasureColumns column) |
Gets a string representation of a measure column. More... | |
Static Public Attributes | |
static const int | NUMCOLUMNS = 16 |
Number of entries (columns) in the measure table. More... | |
Protected Member Functions | |
bool | eventFilter (QObject *o, QEvent *e) |
Event filter for ControlPointEditWidget. More... | |
Gui for editing ControlPoint.
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 newControlNetwork().
|
virtual |
|
signal |
Referenced by createControlPoint().
|
signal |
Referenced by deletePoint().
|
slot |
References Isis::ControlPoint::Add(), Isis::Shape::Basemap, Isis::ControlPoint::SurfacePointSource::Basemap, controlPointAdded(), Isis::Shape::cube(), Isis::Shape::Dem, Isis::DisplayProperties::displayName(), Isis::Shape::displayProperties(), Isis::SerialNumberList::fileName(), Isis::Shape::fileName(), Isis::SerialNumberList::fileNameIndex(), Isis::ControlPoint::Free, Isis::ControlPoint::GetId(), Isis::NewControlPointDialog::groundSource(), Isis::Camera::Line(), Isis::ControlMeasure::Manual, Isis::NewControlPointDialog::pointId(), Isis::NewControlPointDialog::pointType(), Isis::Directory::project(), 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::ControlMeasure::SetType(), Isis::ControlPoint::SetType(), Isis::UniversalGroundMap::SetUniversalGround(), Isis::Camera::SetUniversalGround(), Isis::Project::shapes(), Isis::Shape::shapeType(), Isis::SerialNumberList::size(), Isis::Shape::Unprojected, and Isis::Application::UserName().
Referenced by Isis::Directory::createControlPoint().
|
slot |
|
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 |
QString Isis::ControlPointEditWidget::measureColumnToString | ( | ControlPointEditWidget::MeasureColumns | column | ) |
Gets a string representation of a measure column.
column | MeasureColumn to get the string representation of |
IException::Programmer | "Invalid measure column passed to measureColumnToString" |
References _FILEINFO_, APRIORILINE, APRIORISAMPLE, CUBESN, EDITLOCK, FILENAME, GOODNESSOFFIT, IGNORED, LINE, LINERESIDUAL, LINESHIFT, PIXELSHIFT, Isis::IException::Programmer, RESIDUALMAGNITUDE, SAMPLE, SAMPLERESIDUAL, SAMPLESHIFT, and TYPE.
|
signal |
Referenced by deletePoint().
|
signal |
Referenced by ControlPointEditWidget(), and setControl().
|
signal |
|
slot |
New control network being edited.
cnet | (ControlNet *) The control network to edit |
filename | (Qstring) Need filename to write to widget label. ControlNet doesn't contain a filename. |
References Isis::Control::controlNet(), Isis::Control::fileName(), and newControlNetwork().
Referenced by Isis::Directory::addControlPointEditView().
|
slot |
Slot called by Directory to set the control point for editing.
controlPoint | Pointer to the ControlPoint to edit |
Referenced by createControlPoint(), and Isis::Directory::modifyControlPoint().
|
slot |
Set the serial number list.
snList | Pointer to the SerialNumberList |
Referenced by Isis::Directory::addControlPointEditView().
|
signal |
|
slot |
Update the current editPoint information in the Point Editor labels.
updatedPoint | Reference to the ControlPoint to edit information on |
Instead of a single method, should slots be separate for each updated point parameter, ie. ignore, editLock, apriori, etc. This is not robust, if other point attributes are changed outside of ControlPointEditWidget, this method will need to be updated. *** THIS METHOD SHOULD GO AWAY WHEN CONTROLpOINTEDITOR IS INCLUDED IN MATCH *** TODO: THIS IS ONLY CONNECTED IN qnet.cpp FROM THE NAV TOOL. REFACTOR WILL NEED TO CONNECT CORRECT SIGNALS FROM OTHER WIDGETS TO THIS SLOT.
References Isis::ControlPoint::GetId(), Isis::ControlPoint::IsEditLocked(), and Isis::ControlPoint::IsIgnored().
|
static |
Number of entries (columns) in the measure table.