Isis 3 Programmer Reference
|
#include <QnetSetAprioriDialog.h>
Public Slots | |
void | setVisiblity () |
Shows the dialog box. More... | |
virtual void | reject () |
This is called when the user selects the X button on the top right or they hit ESC. More... | |
Signals | |
void | pointChanged (QString pointId) |
void | netChanged () |
void | aprioriDialogClosed () |
Public Member Functions | |
QnetSetAprioriDialog (QnetTool *qnetTool, QWidget *parent=0) | |
void | setPoints (QList< QListWidgetItem * > selectedPoints) |
Set control points in the dialog. More... | |
Private Types | |
enum | Source { USER, AVERAGE, REFERENCE } |
Private Slots | |
void | fillCurrentAprioriLineEdits () |
Populates the apriori lat/lon/radius line edits with the current values. More... | |
void | fillReferenceAprioriLineEdits () |
Populates the apriori lat/lon/radius line edits with the reference measure values. More... | |
void | fillAverageAprioriLineEdits () |
Populates the apriori lat/lon/radius line edits with the average measure values. More... | |
void | fillSigmaLineEdits () |
Populates the sigma lat/lon/radius line edits with the current values. More... | |
void | clearLineEdits () |
Clears the line edits. More... | |
void | resetInfoLabels () |
Resets and populates the information stack labels. More... | |
void | setApriori () |
Slot to set apriori on selected Points from Navigator list box. More... | |
void | closeEvent () |
Disconnect all of the slots on a close event. More... | |
Private Member Functions | |
void | createSetAprioriDialog (QWidget *parent) |
Creates the dialog box for the set apriori tool. More... | |
void | setInfoStack (QList< QListWidgetItem * > selectedPoints) |
Switches what information is visible based on how many points are selected. More... | |
void | checkPointInfoDisable (QList< QListWidgetItem * > selectedPoints) |
Enables/Disables features based on if there are multiple points selected or not. More... | |
Private Attributes | |
QDialog * | m_aprioriDialog |
QGridLayout * | m_aprioriGridLayout |
QPushButton * | m_okButton |
QPushButton * | m_cancelButton |
QPushButton * | m_applyButton |
QStackedWidget * | m_pointInfoStack |
QGroupBox * | m_singlePointInfoGroup |
QLabel * | m_pointIDLabel |
QLabel * | m_pointTypeLabel |
QLabel * | m_pointMeasureNumber |
QLabel * | m_editLockedBoolLabel |
QLabel * | m_ignoredBoolLabel |
QGroupBox * | m_multiplePointsInfoGroup |
QLabel * | m_pointsCount |
QLabel * | m_pointsMeasuresCount |
QLabel * | m_constrainedPointsCount |
QLabel * | m_fixedPointsCount |
QLabel * | m_freePointsCount |
QLabel * | m_pointsEditLockedCount |
QLabel * | m_pointsIgnoredCount |
QGroupBox * | m_pointGroup |
QLabel * | m_aprioriLatLabel |
QLabel * | m_aprioriLonLabel |
QLabel * | m_aprioriRadiusLabel |
QLineEdit * | m_latLineEdit |
QLineEdit * | m_lonLineEdit |
QLineEdit * | m_radiusLineEdit |
QPushButton * | m_currentAprioriButton |
QPushButton * | m_referenceAprioriButton |
QPushButton * | m_averageAprioriButton |
QGroupBox * | m_sigmaGroup |
QLabel * | m_sigmaWarningLabel |
QPushButton * | m_currentSigmaButton |
QLabel * | m_latSigmaLabel |
QLabel * | m_lonSigmaLabel |
QLabel * | m_radiusSigmaLabel |
QLineEdit * | m_latSigmaLineEdit |
QLineEdit * | m_lonSigmaLineEdit |
QLineEdit * | m_radiusSigmaLineEdit |
QList< QListWidgetItem * > | m_points |
QnetTool * | m_qnetTool |
Source | m_aprioriSource |
int | m_multiPointsMeasureCount |
int | m_multiPointsConstraintedCount |
int | m_multiPointsFixedCount |
int | m_multiPointsFreeCount |
int | m_multiPointsEditLockedCount |
int | m_multiPointsIgnoredCount |
Definition at line 42 of file QnetSetAprioriDialog.h.
|
private |
Enables/Disables features based on if there are multiple points selected or not.
If multiple points are selected it also counts how many are EditLocked, Ignored, the number of each type of point, and the total number of measures.
Definition at line 682 of file QnetSetAprioriDialog.cpp.
References Isis::ControlPoint::GetPointTypeString().
Referenced by setPoints().
|
privateslot |
Clears the line edits.
Definition at line 770 of file QnetSetAprioriDialog.cpp.
Referenced by setPoints().
|
privateslot |
Disconnect all of the slots on a close event.
Definition at line 278 of file QnetSetAprioriDialog.cpp.
References fillAverageAprioriLineEdits(), fillCurrentAprioriLineEdits(), fillReferenceAprioriLineEdits(), fillSigmaLineEdits(), and setApriori().
Referenced by reject().
|
private |
Creates the dialog box for the set apriori tool.
parent | The parent widget for the set apriori dialog |
Definition at line 122 of file QnetSetAprioriDialog.cpp.
References setVisiblity().
|
privateslot |
Populates the apriori lat/lon/radius line edits with the average measure values.
This only works on single points and is disabled for multiple points. The calculations were moved from setApriori.
the code used to compute the average of the measures is copied from ControlPoint::ComputeApriori
There is a known issue with this code that if something goes wrong and the average cannot be computed then the lat, lon, radius is set to null. In that case, clear the line edits and display an error message.
Definition at line 465 of file QnetSetAprioriDialog.cpp.
References Isis::Sensor::Coordinate(), Isis::Angle::degrees(), Isis::SurfacePoint::GetLatitude(), Isis::SurfacePoint::GetLocalRadius(), Isis::SurfacePoint::GetLongitude(), Isis::ControlPoint::GetMeasure(), Isis::ControlPoint::GetPointTypeString(), Isis::ControlPoint::IsCoord1Constrained(), Isis::ControlPoint::IsCoord2Constrained(), Isis::ControlPoint::IsCoord3Constrained(), Isis::Displacement::Kilometers, Isis::Displacement::Meters, Isis::Displacement::meters(), Isis::Distance::meters(), Isis::Null, Isis::ControlPoint::NumberOfConstrainedCoordinates(), Isis::IException::Programmer, Isis::Camera::SetImage(), Isis::SurfacePoint::SetRectangular(), and Isis::IException::User.
Referenced by closeEvent().
|
privateslot |
Populates the apriori lat/lon/radius line edits with the current values.
If there are no current values, the line edits are empty. This only works on single points and is disabled for multiple points.
Definition at line 345 of file QnetSetAprioriDialog.cpp.
References Isis::Angle::degrees(), Isis::SurfacePoint::GetLatitude(), Isis::SurfacePoint::GetLocalRadius(), Isis::SurfacePoint::GetLongitude(), Isis::Distance::meters(), and Isis::Null.
Referenced by closeEvent(), and setPoints().
|
privateslot |
Populates the apriori lat/lon/radius line edits with the reference measure values.
This only works on single points and is disabled for multiple points. The calculations were moved from setApriori.
Definition at line 393 of file QnetSetAprioriDialog.cpp.
References Isis::ControlNet::Camera(), Isis::Angle::degrees(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::SurfacePoint::GetLatitude(), Isis::SurfacePoint::GetLocalRadius(), Isis::SurfacePoint::GetLongitude(), Isis::ControlPoint::GetRefMeasure(), Isis::Sensor::GetSurfacePoint(), Isis::Distance::meters(), Isis::Null, Isis::SerialNumberList::serialNumberIndex(), and Isis::Camera::SetImage().
Referenced by closeEvent().
|
privateslot |
Populates the sigma lat/lon/radius line edits with the current values.
If there are no current sigma values, the line edits are empty. This only works on single points and is disabled for multiple points.
Definition at line 627 of file QnetSetAprioriDialog.cpp.
References Isis::SurfacePoint::GetLatSigmaDistance(), Isis::SurfacePoint::GetLonSigmaDistance(), Isis::Distance::meters(), and Isis::Null.
Referenced by closeEvent(), and setPoints().
|
virtualslot |
This is called when the user selects the X button on the top right or they hit ESC.
Disconnect all slots on close event.
Definition at line 267 of file QnetSetAprioriDialog.cpp.
References closeEvent().
|
privateslot |
Resets and populates the information stack labels.
Definition at line 786 of file QnetSetAprioriDialog.cpp.
References Isis::ControlPoint::GetPointTypeString().
Referenced by setPoints().
|
privateslot |
Slot to set apriori on selected Points from Navigator list box.
Definition at line 859 of file QnetSetAprioriDialog.cpp.
References Isis::Angle::Degrees, Isis::Distance::Meters, Isis::Null, Isis::ControlPoint::SetAprioriSurfacePoint(), Isis::ControlPoint::SetAprioriSurfacePointSource(), Isis::SurfacePoint::SetSphericalSigmasDistance(), and Isis::IException::toString().
Referenced by closeEvent().
|
private |
Switches what information is visible based on how many points are selected.
Defaults to single point information.
Definition at line 664 of file QnetSetAprioriDialog.cpp.
Referenced by setPoints().
void Isis::QnetSetAprioriDialog::setPoints | ( | QList< QListWidgetItem * > | selectedPoints | ) |
Set control points in the dialog.
selectedPoints | QList<QListWidgetItem *> ControlPoints listed |
Definition at line 321 of file QnetSetAprioriDialog.cpp.
References checkPointInfoDisable(), clearLineEdits(), fillCurrentAprioriLineEdits(), fillSigmaLineEdits(), resetInfoLabels(), and setInfoStack().
|
slot |
Shows the dialog box.
Definition at line 304 of file QnetSetAprioriDialog.cpp.
Referenced by createSetAprioriDialog().