Isis 3.0 Programmer Reference
Back | Home
QnetNavTool.h
Go to the documentation of this file.
1 #ifndef QnetNavTool_h
2 #define QnetNavTool_h
3 
24 #include "Tool.h"
25 
26 // forward declarations
27 class QComboBox;
28 class QDialog;
29 class QLabel;
30 class QListWidget;
31 class QListWidgetItem;
32 class QPushButton;
33 class QStackedWidget;
34 class QString;
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 
131  class QnetNavTool : public Tool {
132  Q_OBJECT
133 
134  public:
135  QnetNavTool(QnetTool *qnetTool, QWidget *parent);
136  ~QnetNavTool();
137 
138  enum FilterIndex {
139  Points,
140  Cubes
141  };
142  enum PointFilterIndex {
143  JigsawErrors,
144  RegistrationErrors,
145  Id,
146  NumberImages,
147  Type,
148  LatLonRange,
149  Distance,
150  MeasureType,
151  GoodnessOfFit,
152  CubeName
153  };
154  enum CubeFilterIndex {
155  Name,
156  NumberPoints,
157  PointDistance
158  };
159 
160  QList<int> &filteredImages();
161  const QList<int> &filteredImages() const;
162 
163  QList<int> &filteredPoints();
164  const QList<int> &filteredPoints() const;
165 
166  ControlNet *controlNet();
167  const ControlNet *controlNet() const;
168 
169  SerialNumberList *serialNumberList();
170  const SerialNumberList *serialNumberList() const;
171 
172  public slots:
173  void resetList();
174  void refreshList();
175  void updateEditPoint(QString pointId);
177  void showNavTool();
178 
179  private slots:
180  void load();
181  void load(QListWidgetItem *);
182  void tie();
183  void filter();
184  void editPoint(QListWidgetItem *ptItem);
185  void filterList();
186  void resetFilter();
187  void enableButtons();
188  void ignorePoints();
189  void deletePoints();
190  void resetCubeList();
191 
192  void aprioriDialog();
193  void setAprioriDialogPoints();
194 
195  signals:
196  void loadPointImages (ControlPoint *);
197  void loadImage(const QString &);
198  void modifyPoint(ControlPoint *);
199  void ignoredPoints();
200  void deletedPoints();
201  void pointChanged(QString pointId);
202  void netChanged();
203  void serialListModified();
204 
205  private:
206  void createNavigationDialog(QWidget *parent);
207  void createFilters();
208 // void listLockedPoints();
209 
210 
211  QDialog *m_navDialog;
212  QPushButton *m_filter;
213  bool m_filtered;
214  QPushButton *m_tie;
215  QPushButton *m_multiIgnore;
216  QPushButton *m_multiDelete;
217  QPushButton *m_setApriori;
218  QStackedWidget *m_filterStack;
219  QComboBox *m_listCombo;
220  QListWidget *m_listBox;
221  QLabel *m_filterCountLabel;
222  int m_filterCount;
223 
224  QString m_editPointId;
225 
226  QnetSetAprioriDialog *m_aprioriDialog;
227 
228  QnetTool *m_qnetTool;
229  QList<int> m_filteredPoints;
230  QList<int> m_filteredImages;
231  };
232 }
233 
234 #endif
void resetFilter()
Resets the visible filter to the default values.
void aprioriDialog()
Bring up apriori dialog.
void resetList()
Resets the list box with whatever is in the global lists.
void filter()
Figures out what type of widget the filter was selected for and calls the filter method for that filt...
QnetNavTool(QnetTool *qnetTool, QWidget *parent)
Constructs the Navigation Tool window.
Definition: QnetNavTool.cpp:65
void filterList()
Updates the list box in the nav window with a new list from one of the filters.
void load()
Tells the filetool to load an image, slot for &quot;View Cube(s)&quot; button.
Distance measurement, usually in meters.
Definition: Distance.h:47
void ignorePoints()
Set Ignored=True for selected Points.
void enableButtons()
Enable/disable buttons depending on whether Points or Cubes is chosen.
a control network
Definition: ControlNet.h:207
void tie()
Calls the qnet tool for the given control point.
void createFilters()
Sets up the tabbed widgets for the different types of filters available.
A single control point.
Definition: ControlPoint.h:339
void resetCubeList()
This slot is connected to the file tool in qnet.cpp.
void setAprioriDialogPoints()
Slot to pass points selected in Nav List Widget to Apriori Dialog.
void refreshList()
Slot to refresh the listBox.
Qnet Navigation Tool.
Definition: QnetNavTool.h:131
void updateEditPoint(QString pointId)
Update the list showing the new point highlighted.
Base class for the Qisis tools.
Definition: Tool.h:81
Qnet tool operations.
Definition: QnetTool.h:251
Serial Number list generator.
void deletePoints()
Delete selected Points from control network.
void createNavigationDialog(QWidget *parent)
Creates and shows the dialog box for the navigation tool.
Definition: QnetNavTool.cpp:96
void showNavTool()
This method sets the Navigation Dialog window to shown=true.
void disconnectAprioriDialog()
Apriori dialog has been closed and needs to be disconnected and deleted so a new dialog can be brough...
void editPoint(QListWidgetItem *ptItem)
Emits a modifyPoint signal.

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:38