Isis 3 Developer Reference
QnetSetAprioriDialog.h
Go to the documentation of this file.
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 
42  class QnetSetAprioriDialog : public QDialog {
43  Q_OBJECT
44 
45  public:
46  QnetSetAprioriDialog(QnetTool *qnetTool, QWidget *parent = 0);
47  void setPoints(QList<QListWidgetItem *> selectedPoints);
48 
49 
50  public slots:
51  void setVisiblity();
52  virtual void reject();
53 
54  signals:
55  void pointChanged(QString pointId);
56  void netChanged();
57  void aprioriDialogClosed();
58 
59  private slots:
60  void fillCurrentAprioriLineEdits();
61  void fillReferenceAprioriLineEdits();
62  void fillAverageAprioriLineEdits();
63 // void fillGroundSourceAprioriLineEdits();
64  void fillSigmaLineEdits();
65  void clearLineEdits();
66  void resetInfoLabels();
67  void setApriori();
68  void closeEvent();
69 
70 
71  private:
72 
73  void createSetAprioriDialog(QWidget *parent);
74  void setInfoStack(QList<QListWidgetItem *> selectedPoints);
75  void checkPointInfoDisable(QList<QListWidgetItem *> selectedPoints);
76 
77  QDialog *m_aprioriDialog;
78  QGridLayout *m_aprioriGridLayout;
79  QPushButton *m_okButton;
80  QPushButton *m_cancelButton;
81  QPushButton *m_applyButton;
82  QStackedWidget *m_pointInfoStack;
83 
84  QGroupBox *m_singlePointInfoGroup;
85  QLabel *m_pointIDLabel;
86  QLabel *m_pointTypeLabel;
87  QLabel *m_pointMeasureNumber;
88  QLabel *m_editLockedBoolLabel;
89  QLabel *m_ignoredBoolLabel;
90 
91  QGroupBox *m_multiplePointsInfoGroup;
92  QLabel *m_pointsCount;
93  QLabel *m_pointsMeasuresCount;
94  QLabel *m_constrainedPointsCount;
95  QLabel *m_fixedPointsCount;
96  QLabel *m_freePointsCount;
97  QLabel *m_pointsEditLockedCount;
98  QLabel *m_pointsIgnoredCount;
99 
100  QGroupBox *m_pointGroup;
101  QLabel *m_aprioriLatLabel;
102  QLabel *m_aprioriLonLabel;
103  QLabel *m_aprioriRadiusLabel;
104  QLineEdit *m_latLineEdit;
105  QLineEdit *m_lonLineEdit;
106  QLineEdit *m_radiusLineEdit;
107  QPushButton *m_currentAprioriButton;
108  QPushButton *m_referenceAprioriButton;
109  QPushButton *m_averageAprioriButton;
110 
111  QGroupBox *m_sigmaGroup;
112  QLabel *m_sigmaWarningLabel;
113  QPushButton *m_currentSigmaButton;
114  QLabel *m_latSigmaLabel;
115  QLabel *m_lonSigmaLabel;
116  QLabel *m_radiusSigmaLabel;
117  QLineEdit *m_latSigmaLineEdit;
118  QLineEdit *m_lonSigmaLineEdit;
119  QLineEdit *m_radiusSigmaLineEdit;
120 
121  QList<QListWidgetItem *> m_points;
122  QnetTool *m_qnetTool;
123 
124  enum Source {
125  USER,
126  AVERAGE,
127  REFERENCE,
128  };
129 
130  Source m_aprioriSource;
131 
132  int m_multiPointsMeasureCount;
133  int m_multiPointsConstraintedCount;
134  int m_multiPointsFixedCount;
135  int m_multiPointsFreeCount;
136  int m_multiPointsEditLockedCount;
137  int m_multiPointsIgnoredCount;
138  };
139 }
140 
141 #endif
void setVisiblity()
Shows the dialog box.
Definition: QnetSetAprioriDialog.cpp:304
virtual void reject()
This is called when the user selects the X button on the top right or they hit ESC.
Definition: QnetSetAprioriDialog.cpp:267
QnetSetAprioriDialog(QnetTool *qnetTool, QWidget *parent=0)
Definition: QnetSetAprioriDialog.cpp:33
void pointChanged(QString pointId)
Definition: QnetSetAprioriDialog.h:42
void setPoints(QList< QListWidgetItem *> selectedPoints)
Set control points in the dialog.
Definition: QnetSetAprioriDialog.cpp:321
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Qnet tool operations.
Definition: QnetTool.h:256