Isis 3 Developer Reference
QnetNavTool.h
Go to the documentation of this file.
1 #ifndef QnetNavTool_h
2 #define QnetNavTool_h
3 
24 #include "Tool.h"
25 // forward declarations
26 class QComboBox;
27 class QDialog;
28 class QLabel;
29 class QListWidget;
30 class QListWidgetItem;
31 class QPushButton;
32 class QStackedWidget;
33 class QString;
34 class QVBoxLayout;
35 class QWidget;
36 
37 
38 namespace Isis {
39  class ControlMeasure;
40  class ControlNet;
41  class ControlPoint;
42  class QnetSetAprioriDialog;
43  class QnetTool;
44  class SerialNumberList;
45 
132  class QnetNavTool : public Tool {
133  Q_OBJECT
134 
135  public:
136  QnetNavTool(QnetTool *qnetTool, QWidget *parent);
137  ~QnetNavTool();
138 
139  enum FilterIndex {
142  };
146  Id,
154  };
159  };
160 
162  const QList<int> &filteredImages() const;
163 
165  const QList<int> &filteredPoints() const;
166 
168  const ControlNet *controlNet() const;
169 
171  const SerialNumberList *serialNumberList() const;
172 
173  public slots:
174  void resetList();
175  void refreshList();
176  void updateEditPoint(QString pointId);
178  void showNavTool();
179 
180  private slots:
181  void load();
182  void load(QListWidgetItem *);
183  void tie();
184  void filter();
185  void editPoint(QListWidgetItem *ptItem);
186  void filterList();
187  void resetFilter();
188  void enableButtons();
189  void ignorePoints();
190  void deletePoints();
191  void resetCubeList();
192  void updateActivityHistory(QString activityMessage);
193  void aprioriDialog();
194  void setAprioriDialogPoints();
195 
196  signals:
197  void activityUpdate(QString);
198  void loadPointImages (ControlPoint *);
199  void loadImage(const QString &);
200  void modifyPoint(ControlPoint *);
201  void ignoredPoints();
202  void deletedPoints();
203  void pointChanged(QString pointId);
204  void netChanged();
205  void serialListModified();
206 
207  private:
208  void createNavigationDialog(QWidget *parent);
209  void createFilters();
210 // void listLockedPoints();
211 
212 
213  QDialog *m_navDialog;
214  QPushButton *m_filter;
215  bool m_filtered;
216  QPushButton *m_tie;
217  QPushButton *m_multiIgnore;
218  QPushButton *m_multiDelete;
219  QPushButton *m_setApriori;
220  QStackedWidget *m_filterStack;
221  QComboBox *m_listCombo;
222  QListWidget *m_listBox;
223  QLabel *m_filterCountLabel;
224  QVBoxLayout *m_historyLayout;
225  int m_filterCount;
226 
227  QString m_editPointId;
228 
229  QnetSetAprioriDialog *m_aprioriDialog;
230 
231  QnetTool *m_qnetTool;
232  QList<int> m_filteredPoints;
233  QList<int> m_filteredImages;
234  };
235 }
236 
237 #endif
Definition: QnetNavTool.h:148
void loadPointImages(ControlPoint *)
ControlNet * controlNet()
Definition: QnetNavTool.cpp:476
void resetList()
Resets the list box with whatever is in the global lists.
Definition: QnetNavTool.cpp:517
QnetNavTool(QnetTool *qnetTool, QWidget *parent)
Constructs the Navigation Tool window.
Definition: QnetNavTool.cpp:67
Definition: QnetNavTool.h:158
SerialNumberList * serialNumberList()
Definition: QnetNavTool.cpp:486
void modifyPoint(ControlPoint *)
Definition: QnetNavTool.h:147
CubeFilterIndex
Definition: QnetNavTool.h:155
~QnetNavTool()
Definition: QnetNavTool.cpp:247
void activityUpdate(QString)
Definition: QnetNavTool.h:152
Definition: QnetSetAprioriDialog.h:42
Definition: QnetNavTool.h:146
Definition: QnetNavTool.h:151
a control network
Definition: ControlNet.h:271
Definition: QnetNavTool.h:140
Definition: QnetNavTool.h:144
Definition: QnetNavTool.h:145
QList< int > & filteredImages()
Definition: QnetNavTool.cpp:456
Definition: QnetNavTool.h:156
FilterIndex
Definition: QnetNavTool.h:139
A single control point.
Definition: ControlPoint.h:369
Definition: QnetNavTool.h:150
void serialListModified()
QList< int > & filteredPoints()
Definition: QnetNavTool.cpp:466
void refreshList()
Slot to refresh the listBox.
Definition: QnetNavTool.cpp:641
Definition: QnetNavTool.h:153
Qnet Navigation Tool.
Definition: QnetNavTool.h:132
void loadImage(const QString &)
void updateEditPoint(QString pointId)
Update the list showing the new point highlighted.
Definition: QnetNavTool.cpp:595
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Base class for the Qisis tools.
Definition: Tool.h:81
Definition: QnetNavTool.h:149
Qnet tool operations.
Definition: QnetTool.h:256
Serial Number list generator.
Definition: SerialNumberList.h:80
Definition: QnetNavTool.h:157
Definition: QnetNavTool.h:141
void showNavTool()
This method sets the Navigation Dialog window to shown=true.
Definition: QnetNavTool.cpp:1233
void disconnectAprioriDialog()
Apriori dialog has been closed and needs to be disconnected and deleted so a new dialog can be brough...
Definition: QnetNavTool.cpp:1057
PointFilterIndex
Definition: QnetNavTool.h:143
void pointChanged(QString pointId)