Isis 3.0 Programmer Reference
Back | Home
QnetSetAprioriDialog.h
1 #ifndef QnetSetAprioriDialog_h
2 #define QnetSetAprioriDialog_h
3 
4 #include <QDialog>
5 
6 
7 //forward declarations
8 class QDialog;
9 class QGridLayout;
10 class QGroupBox;
11 class QLabel;
12 class QLineEdit;
13 class QListWidget;
14 class QListWidgetItem;
15 class QPushButton;
16 class QStackedWidget;
17 class QString;
18 class QStringList;
19 class QVBoxLayout;
20 
21 
22 namespace Isis {
23  class QnetTool;
24 
38  class QnetSetAprioriDialog : public QDialog {
39  Q_OBJECT
40 
41  public:
42  QnetSetAprioriDialog(QnetTool *qnetTool, QWidget *parent = 0);
43  void setPoints(QList<QListWidgetItem *> selectedPoints);
44 
45 
46  public slots:
47  void setVisiblity();
48  virtual void reject();
49 
50  signals:
51  void pointChanged(QString pointId);
52  void netChanged();
53  void aprioriDialogClosed();
54 
55  private slots:
59 // void fillGroundSourceAprioriLineEdits();
60  void fillSigmaLineEdits();
61  void clearLineEdits();
62  void resetInfoLabels();
63  void setApriori();
64  void closeEvent();
65 
66 
67  private:
68 
69  void createSetAprioriDialog(QWidget *parent);
70  void setInfoStack(QList<QListWidgetItem *> selectedPoints);
72 
73  QDialog *m_aprioriDialog;
74  QGridLayout *m_aprioriGridLayout;
75  QPushButton *m_okButton;
76  QPushButton *m_cancelButton;
77  QPushButton *m_applyButton;
78  QStackedWidget *m_pointInfoStack;
79 
80  QGroupBox *m_singlePointInfoGroup;
81  QLabel *m_pointIDLabel;
82  QLabel *m_pointTypeLabel;
83  QLabel *m_pointMeasureNumber;
84  QLabel *m_editLockedBoolLabel;
85  QLabel *m_ignoredBoolLabel;
86 
87  QGroupBox *m_multiplePointsInfoGroup;
88  QLabel *m_pointsCount;
89  QLabel *m_pointsMeasuresCount;
90  QLabel *m_constrainedPointsCount;
91  QLabel *m_fixedPointsCount;
92  QLabel *m_freePointsCount;
93  QLabel *m_pointsEditLockedCount;
94  QLabel *m_pointsIgnoredCount;
95 
96  QGroupBox *m_pointGroup;
97  QLabel *m_aprioriLatLabel;
98  QLabel *m_aprioriLonLabel;
99  QLabel *m_aprioriRadiusLabel;
100  QLineEdit *m_latLineEdit;
101  QLineEdit *m_lonLineEdit;
102  QLineEdit *m_radiusLineEdit;
103  QPushButton *m_currentAprioriButton;
104  QPushButton *m_referenceAprioriButton;
105  QPushButton *m_averageAprioriButton;
106 
107  QGroupBox *m_sigmaGroup;
108  QLabel *m_sigmaWarningLabel;
109  QPushButton *m_currentSigmaButton;
110  QLabel *m_latSigmaLabel;
111  QLabel *m_lonSigmaLabel;
112  QLabel *m_radiusSigmaLabel;
113  QLineEdit *m_latSigmaLineEdit;
114  QLineEdit *m_lonSigmaLineEdit;
115  QLineEdit *m_radiusSigmaLineEdit;
116 
117  QList<QListWidgetItem *> m_points;
118  QnetTool *m_qnetTool;
119 
120  enum Source {
121  USER,
122  AVERAGE,
123  REFERENCE,
124  };
125 
126  Source m_aprioriSource;
127 
128  int m_multiPointsMeasureCount;
129  int m_multiPointsConstraintedCount;
130  int m_multiPointsFixedCount;
131  int m_multiPointsFreeCount;
132  int m_multiPointsEditLockedCount;
133  int m_multiPointsIgnoredCount;
134  };
135 }
136 
137 #endif
void fillReferenceAprioriLineEdits()
Populates the apriori lat/lon/radius line edits with the reference measure values.
void clearLineEdits()
Clears the line edits.
void setVisiblity()
Shows the dialog box.
void resetInfoLabels()
Resets and populates the information stack labels.
void fillAverageAprioriLineEdits()
Populates the apriori lat/lon/radius line edits with the average measure values.
virtual void reject()
This is called when the user selects the X button on the top right or they hit ESC.
void fillSigmaLineEdits()
This is the base for a new ticket that allows for a ground source button.
void createSetAprioriDialog(QWidget *parent)
Creates the dialog box for the set apriori tool.
void setPoints(QList< QListWidgetItem * > selectedPoints)
Set control points in the dialog.
void checkPointInfoDisable(QList< QListWidgetItem * > selectedPoints)
Enables/Disables features based on if there are multiple points selected or not.
void setInfoStack(QList< QListWidgetItem * > selectedPoints)
Switches what information is visible based on how many points are selected.
void closeEvent()
Disconnect all of the slots on a close event.
void fillCurrentAprioriLineEdits()
Populates the apriori lat/lon/radius line edits with the current values.
void setApriori()
Slot to set apriori on selected Points from Navigator list box.
Qnet tool operations.
Definition: QnetTool.h:251

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:27:51