Isis 3 Programmer Reference
Isis::QnetSetAprioriDialog Class Reference

#include <QnetSetAprioriDialog.h>

Inheritance diagram for Isis::QnetSetAprioriDialog:
Inheritance graph
Collaboration diagram for Isis::QnetSetAprioriDialog:
Collaboration graph

Public Slots

void setVisiblity ()
 Shows the dialog box.
 
virtual void reject ()
 This is called when the user selects the X button on the top right or they hit ESC.
 

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.
 

Private Types

enum  Source { USER , AVERAGE , REFERENCE }
 

Private Slots

void fillCurrentAprioriLineEdits ()
 Populates the apriori lat/lon/radius line edits with the current values.
 
void fillReferenceAprioriLineEdits ()
 Populates the apriori lat/lon/radius line edits with the reference measure values.
 
void fillAverageAprioriLineEdits ()
 Populates the apriori lat/lon/radius line edits with the average measure values.
 
void fillSigmaLineEdits ()
 Populates the sigma lat/lon/radius line edits with the current values.
 
void clearLineEdits ()
 Clears the line edits.
 
void resetInfoLabels ()
 Resets and populates the information stack labels.
 
void setApriori ()
 Slot to set apriori on selected Points from Navigator list box.
 
void closeEvent ()
 Disconnect all of the slots on a close event.
 

Private Member Functions

void createSetAprioriDialog (QWidget *parent)
 Creates the dialog box for the set apriori tool.
 
void setInfoStack (QList< QListWidgetItem * > selectedPoints)
 Switches what information is visible based on how many points are selected.
 
void checkPointInfoDisable (QList< QListWidgetItem * > selectedPoints)
 Enables/Disables features based on if there are multiple points selected or not.
 

Private Attributes

QDialogm_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
 
QnetToolm_qnetTool
 
Source m_aprioriSource
 
int m_multiPointsMeasureCount
 
int m_multiPointsConstraintedCount
 
int m_multiPointsFixedCount
 
int m_multiPointsFreeCount
 
int m_multiPointsEditLockedCount
 
int m_multiPointsIgnoredCount
 

Detailed Description

Author
????-??-?? Unknown
History

2016-08-09 Makayla Shepherd - Complete redesign of the user interface. Fixes #2325, #2383.

2016-10-14 Makayla Shepherd - Fixed an issue that caused the apriori sigmas to be set to NULL. You can now set the apriori sigmas. Fixes #4457.

2016-11-18 Makayla Shepherd - Corrected the deletion of this dialog. The incorrect deletion caused an error message to pop up when selecting multiple Free or Fixed points after closing the Set Apriori dialog. Fixes #4490.

2018-06-28 Debbie A. Cook - Removed calls to SurfacePoint::SetRadii which is now obsolete. Fixes #5457.

2018-07-06 Jesse Mapel - Removed calls to ControlNet::GetTargetRadii because it is both no longer needed and no longer available. Fixes #5457.

Definition at line 42 of file QnetSetAprioriDialog.h.

Member Enumeration Documentation

◆ Source

enum Isis::QnetSetAprioriDialog::Source
private

Definition at line 124 of file QnetSetAprioriDialog.h.

Constructor & Destructor Documentation

◆ QnetSetAprioriDialog()

Isis::QnetSetAprioriDialog::QnetSetAprioriDialog ( QnetTool * qnetTool,
QWidget * parent = 0 )

Definition at line 33 of file QnetSetAprioriDialog.cpp.

Member Function Documentation

◆ checkPointInfoDisable()

void Isis::QnetSetAprioriDialog::checkPointInfoDisable ( QList< QListWidgetItem * > selectedPoints)
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.

Author
2016-02-05 Makayla Shepherd

Definition at line 682 of file QnetSetAprioriDialog.cpp.

◆ clearLineEdits

void Isis::QnetSetAprioriDialog::clearLineEdits ( )
privateslot

Clears the line edits.

Author
????-??-?? Unknown
History
2016-02-05 Makayla Shepherd - Modified to work with new UI

Definition at line 770 of file QnetSetAprioriDialog.cpp.

◆ closeEvent

void Isis::QnetSetAprioriDialog::closeEvent ( )
privateslot

Disconnect all of the slots on a close event.

Author
2016-11-18 Makayla Shepherd

Definition at line 278 of file QnetSetAprioriDialog.cpp.

◆ createSetAprioriDialog()

void Isis::QnetSetAprioriDialog::createSetAprioriDialog ( QWidget * parent)
private

Creates the dialog box for the set apriori tool.

Parameters
parentThe parent widget for the set apriori dialog
Author
2016-02-05 Makayla Shepherd

Definition at line 122 of file QnetSetAprioriDialog.cpp.

◆ fillAverageAprioriLineEdits

void Isis::QnetSetAprioriDialog::fillAverageAprioriLineEdits ( )
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.

Author
2016-02-05 Makayla Shepherd

Definition at line 465 of file QnetSetAprioriDialog.cpp.

References Isis::Camera::Camera(), Isis::Displacement::meters(), Isis::Null, and Isis::SurfacePoint::SetRectangular().

◆ fillCurrentAprioriLineEdits

void Isis::QnetSetAprioriDialog::fillCurrentAprioriLineEdits ( )
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.

Author
2016-02-05 Makayla Shepherd

Definition at line 345 of file QnetSetAprioriDialog.cpp.

References Isis::Null.

◆ fillReferenceAprioriLineEdits

void Isis::QnetSetAprioriDialog::fillReferenceAprioriLineEdits ( )
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.

Author
2016-02-05 Makayla Shepherd

Definition at line 393 of file QnetSetAprioriDialog.cpp.

References Isis::Camera::Camera(), and Isis::Null.

◆ fillSigmaLineEdits

void Isis::QnetSetAprioriDialog::fillSigmaLineEdits ( )
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.

Author
2016-02-05 Makayla Shepherd

Definition at line 627 of file QnetSetAprioriDialog.cpp.

References Isis::Null.

◆ reject

void Isis::QnetSetAprioriDialog::reject ( )
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.

Author
2016-11-18 Makayla Shepherd

Definition at line 267 of file QnetSetAprioriDialog.cpp.

◆ resetInfoLabels

void Isis::QnetSetAprioriDialog::resetInfoLabels ( )
privateslot

Resets and populates the information stack labels.

Author
2016-02-05 Makayla Shepherd

Definition at line 786 of file QnetSetAprioriDialog.cpp.

◆ setApriori

void Isis::QnetSetAprioriDialog::setApriori ( )
privateslot

Slot to set apriori on selected Points from Navigator list box.

Author
2011-03-24 Tracie Sucharski
History

2011-04-04 Tracie Sucharski - Grey out userEntered if more than a single point is selected. Grey out lat,lon,radius edits if UserEntered is not selected.

2011-04-13 Tracie Sucharski - If single point selected, fill in LineEdit's with current controlPoint values.

2011-04-19 Tracie Sucharski - Redesign using modeless dialog.

2011-04-26 Tracie Sucharski - Move from QnetNavTool to QnetSetAprioriDialog.

2016-02-05 Makayla Shepherd - Redesigned to work with the new UI. This method only takes the values in the line edits and uses them to set the Apriori values. The calculations for reference and average values are made and populated in the fill methods.

2016-10-14 Makayla Shepherd - Fixed an issue that caused the apriori sigmas to be set to NULL. You can now set the apriori sigmas.

2016-11-16 Makayla Shepherd - Fixed the sigma setting for Fixed and Free points.

Definition at line 859 of file QnetSetAprioriDialog.cpp.

References Isis::Null, Isis::ControlPoint::SetAprioriSurfacePoint(), and Isis::SurfacePoint::SetSphericalSigmasDistance().

◆ setInfoStack()

void Isis::QnetSetAprioriDialog::setInfoStack ( QList< QListWidgetItem * > selectedPoints)
private

Switches what information is visible based on how many points are selected.

Defaults to single point information.

Author
2016-02-05 Makayla Shepherd

Definition at line 664 of file QnetSetAprioriDialog.cpp.

◆ setPoints()

void Isis::QnetSetAprioriDialog::setPoints ( QList< QListWidgetItem * > selectedPoints)

Set control points in the dialog.

Parameters
selectedPointsQList<QListWidgetItem *> ControlPoints listed
History

2011-10-03 Tracie Sucharski - Do not enable user Entered Button, this will only be enabled if the group box is enabled.

2016-02-05 Makayla Shepherd - Redesigned to work with new UI

Definition at line 321 of file QnetSetAprioriDialog.cpp.

◆ setVisiblity

void Isis::QnetSetAprioriDialog::setVisiblity ( )
slot

Shows the dialog box.

Author
2016-02-05 Makayla Shepherd

Definition at line 304 of file QnetSetAprioriDialog.cpp.

Member Data Documentation

◆ m_applyButton

QPushButton* Isis::QnetSetAprioriDialog::m_applyButton
private

Definition at line 81 of file QnetSetAprioriDialog.h.

◆ m_aprioriDialog

QDialog* Isis::QnetSetAprioriDialog::m_aprioriDialog
private

Definition at line 77 of file QnetSetAprioriDialog.h.

◆ m_aprioriGridLayout

QGridLayout* Isis::QnetSetAprioriDialog::m_aprioriGridLayout
private

Definition at line 78 of file QnetSetAprioriDialog.h.

◆ m_aprioriLatLabel

QLabel* Isis::QnetSetAprioriDialog::m_aprioriLatLabel
private

Definition at line 101 of file QnetSetAprioriDialog.h.

◆ m_aprioriLonLabel

QLabel* Isis::QnetSetAprioriDialog::m_aprioriLonLabel
private

Definition at line 102 of file QnetSetAprioriDialog.h.

◆ m_aprioriRadiusLabel

QLabel* Isis::QnetSetAprioriDialog::m_aprioriRadiusLabel
private

Definition at line 103 of file QnetSetAprioriDialog.h.

◆ m_aprioriSource

Source Isis::QnetSetAprioriDialog::m_aprioriSource
private

Definition at line 130 of file QnetSetAprioriDialog.h.

◆ m_averageAprioriButton

QPushButton* Isis::QnetSetAprioriDialog::m_averageAprioriButton
private

Definition at line 109 of file QnetSetAprioriDialog.h.

◆ m_cancelButton

QPushButton* Isis::QnetSetAprioriDialog::m_cancelButton
private

Definition at line 80 of file QnetSetAprioriDialog.h.

◆ m_constrainedPointsCount

QLabel* Isis::QnetSetAprioriDialog::m_constrainedPointsCount
private

Definition at line 94 of file QnetSetAprioriDialog.h.

◆ m_currentAprioriButton

QPushButton* Isis::QnetSetAprioriDialog::m_currentAprioriButton
private

Definition at line 107 of file QnetSetAprioriDialog.h.

◆ m_currentSigmaButton

QPushButton* Isis::QnetSetAprioriDialog::m_currentSigmaButton
private

Definition at line 113 of file QnetSetAprioriDialog.h.

◆ m_editLockedBoolLabel

QLabel* Isis::QnetSetAprioriDialog::m_editLockedBoolLabel
private

Definition at line 88 of file QnetSetAprioriDialog.h.

◆ m_fixedPointsCount

QLabel* Isis::QnetSetAprioriDialog::m_fixedPointsCount
private

Definition at line 95 of file QnetSetAprioriDialog.h.

◆ m_freePointsCount

QLabel* Isis::QnetSetAprioriDialog::m_freePointsCount
private

Definition at line 96 of file QnetSetAprioriDialog.h.

◆ m_ignoredBoolLabel

QLabel* Isis::QnetSetAprioriDialog::m_ignoredBoolLabel
private

Definition at line 89 of file QnetSetAprioriDialog.h.

◆ m_latLineEdit

QLineEdit* Isis::QnetSetAprioriDialog::m_latLineEdit
private

Definition at line 104 of file QnetSetAprioriDialog.h.

◆ m_latSigmaLabel

QLabel* Isis::QnetSetAprioriDialog::m_latSigmaLabel
private

Definition at line 114 of file QnetSetAprioriDialog.h.

◆ m_latSigmaLineEdit

QLineEdit* Isis::QnetSetAprioriDialog::m_latSigmaLineEdit
private

Definition at line 117 of file QnetSetAprioriDialog.h.

◆ m_lonLineEdit

QLineEdit* Isis::QnetSetAprioriDialog::m_lonLineEdit
private

Definition at line 105 of file QnetSetAprioriDialog.h.

◆ m_lonSigmaLabel

QLabel* Isis::QnetSetAprioriDialog::m_lonSigmaLabel
private

Definition at line 115 of file QnetSetAprioriDialog.h.

◆ m_lonSigmaLineEdit

QLineEdit* Isis::QnetSetAprioriDialog::m_lonSigmaLineEdit
private

Definition at line 118 of file QnetSetAprioriDialog.h.

◆ m_multiplePointsInfoGroup

QGroupBox* Isis::QnetSetAprioriDialog::m_multiplePointsInfoGroup
private

Definition at line 91 of file QnetSetAprioriDialog.h.

◆ m_multiPointsConstraintedCount

int Isis::QnetSetAprioriDialog::m_multiPointsConstraintedCount
private

Definition at line 133 of file QnetSetAprioriDialog.h.

◆ m_multiPointsEditLockedCount

int Isis::QnetSetAprioriDialog::m_multiPointsEditLockedCount
private

Definition at line 136 of file QnetSetAprioriDialog.h.

◆ m_multiPointsFixedCount

int Isis::QnetSetAprioriDialog::m_multiPointsFixedCount
private

Definition at line 134 of file QnetSetAprioriDialog.h.

◆ m_multiPointsFreeCount

int Isis::QnetSetAprioriDialog::m_multiPointsFreeCount
private

Definition at line 135 of file QnetSetAprioriDialog.h.

◆ m_multiPointsIgnoredCount

int Isis::QnetSetAprioriDialog::m_multiPointsIgnoredCount
private

Definition at line 137 of file QnetSetAprioriDialog.h.

◆ m_multiPointsMeasureCount

int Isis::QnetSetAprioriDialog::m_multiPointsMeasureCount
private

Definition at line 132 of file QnetSetAprioriDialog.h.

◆ m_okButton

QPushButton* Isis::QnetSetAprioriDialog::m_okButton
private

Definition at line 79 of file QnetSetAprioriDialog.h.

◆ m_pointGroup

QGroupBox* Isis::QnetSetAprioriDialog::m_pointGroup
private

Definition at line 100 of file QnetSetAprioriDialog.h.

◆ m_pointIDLabel

QLabel* Isis::QnetSetAprioriDialog::m_pointIDLabel
private

Definition at line 85 of file QnetSetAprioriDialog.h.

◆ m_pointInfoStack

QStackedWidget* Isis::QnetSetAprioriDialog::m_pointInfoStack
private

Definition at line 82 of file QnetSetAprioriDialog.h.

◆ m_pointMeasureNumber

QLabel* Isis::QnetSetAprioriDialog::m_pointMeasureNumber
private

Definition at line 87 of file QnetSetAprioriDialog.h.

◆ m_points

QList<QListWidgetItem *> Isis::QnetSetAprioriDialog::m_points
private

Definition at line 121 of file QnetSetAprioriDialog.h.

◆ m_pointsCount

QLabel* Isis::QnetSetAprioriDialog::m_pointsCount
private

Definition at line 92 of file QnetSetAprioriDialog.h.

◆ m_pointsEditLockedCount

QLabel* Isis::QnetSetAprioriDialog::m_pointsEditLockedCount
private

Definition at line 97 of file QnetSetAprioriDialog.h.

◆ m_pointsIgnoredCount

QLabel* Isis::QnetSetAprioriDialog::m_pointsIgnoredCount
private

Definition at line 98 of file QnetSetAprioriDialog.h.

◆ m_pointsMeasuresCount

QLabel* Isis::QnetSetAprioriDialog::m_pointsMeasuresCount
private

Definition at line 93 of file QnetSetAprioriDialog.h.

◆ m_pointTypeLabel

QLabel* Isis::QnetSetAprioriDialog::m_pointTypeLabel
private

Definition at line 86 of file QnetSetAprioriDialog.h.

◆ m_qnetTool

QnetTool* Isis::QnetSetAprioriDialog::m_qnetTool
private

Definition at line 122 of file QnetSetAprioriDialog.h.

◆ m_radiusLineEdit

QLineEdit* Isis::QnetSetAprioriDialog::m_radiusLineEdit
private

Definition at line 106 of file QnetSetAprioriDialog.h.

◆ m_radiusSigmaLabel

QLabel* Isis::QnetSetAprioriDialog::m_radiusSigmaLabel
private

Definition at line 116 of file QnetSetAprioriDialog.h.

◆ m_radiusSigmaLineEdit

QLineEdit* Isis::QnetSetAprioriDialog::m_radiusSigmaLineEdit
private

Definition at line 119 of file QnetSetAprioriDialog.h.

◆ m_referenceAprioriButton

QPushButton* Isis::QnetSetAprioriDialog::m_referenceAprioriButton
private

Definition at line 108 of file QnetSetAprioriDialog.h.

◆ m_sigmaGroup

QGroupBox* Isis::QnetSetAprioriDialog::m_sigmaGroup
private

Definition at line 111 of file QnetSetAprioriDialog.h.

◆ m_sigmaWarningLabel

QLabel* Isis::QnetSetAprioriDialog::m_sigmaWarningLabel
private

Definition at line 112 of file QnetSetAprioriDialog.h.

◆ m_singlePointInfoGroup

QGroupBox* Isis::QnetSetAprioriDialog::m_singlePointInfoGroup
private

Definition at line 84 of file QnetSetAprioriDialog.h.


The documentation for this class was generated from the following files: