Isis 3 Developer Reference
JigsawRunWidget.h
Go to the documentation of this file.
1 #ifndef JigsawRunWidget_h
2 #define JigsawRunWidget_h
3 
4 #include <QDialog>
5 #include <QDir>
6 #include <QDockWidget>
7 #include <QFrame>
8 #include <QMessageBox>
9 #include <QPointer>
10 #include <QWidget>
11 
12 #include "BundleSettings.h"
13 #include "IException.h"
14 
15 namespace Ui {
16  class JigsawRunWidget;
17 }
18 
19 class QString;
20 class QThread;
21 
22 namespace Isis {
23  class BundleAdjust;
24  class BundleSolutionInfo;
25  class Control;
26  class Cube;
27  class Directory;
28  class FileName;
29  class Project;
30 
109  class JigsawRunWidget : public QDockWidget {
110  Q_OBJECT
111 
112  public:
113  explicit JigsawRunWidget(Project *project, QWidget *parent = 0);
114  explicit JigsawRunWidget(Project *project,
115  BundleSettingsQsp bundleSettings,
116  Control *selectedControl,
117  QString outputControlFileName,
118  QWidget *parent = 0);
119 
121  void closeEvent(QCloseEvent *event);
122 
123 
124  public slots:
125  void outputBundleStatus(QString status);
126  void errorString(QString error);
127  void reportException(QString exception);
128  void updateIteration(int iteration);
129  void updatePoint(int point);
130  void updateStatus(QString status);
131  void bundleFinished(BundleSolutionInfo *bundleSolutionInfo);
132  void notifyThreadFinished();
133 
134  protected:
135  void init();
142 
143  private:
144  bool m_bRunning;
145  QThread *m_bundleThread;
155  class CopyImageToResultsFunctor :
156  public std::unary_function<const FileName &, Cube *> {
157  public:
158  CopyImageToResultsFunctor(const QDir &destination);
159  ~CopyImageToResultsFunctor();
160  Cube *operator()(const FileName &image);
161  private:
162  CopyImageToResultsFunctor &operator=(const CopyImageToResultsFunctor &other);
163  QDir m_destinationFolder;
164  };
165 
166  private slots:
167  void on_JigsawSetupButton_clicked();
168  void on_JigsawRunButton_clicked();
169  void on_JigsawAcceptButton_clicked();
170  void clearDialog();
171  void updateScrollBar();
172 
173  private:
175  BundleSolutionInfo *m_bundleSolutionInfo;
177  Ui::JigsawRunWidget *m_ui;
178  };
179 };
180 #endif
This represents an ISIS control net in a project-based GUI interface.
Definition: Control.h:79
void updateStatus(QString status)
Update the label or text edit area with the error message by appending to list and refreshing...
Definition: JigsawRunWidget.cpp:578
The main project for ipce.
Definition: Project.h:289
void closeEvent(QCloseEvent *event)
This method is called whenever the widget recieves a close request.
Definition: JigsawRunWidget.cpp:660
File name manipulation and expansion.
Definition: FileName.h:116
Container class for BundleAdjustment results.
Definition: BundleSolutionInfo.h:171
Control * m_selectedControl
Definition: JigsawRunWidget.h:138
Definition: JigsawRunWidget.h:15
void updateIteration(int iteration)
Update the label or text edit area with the error message by appending to list and refreshing...
Definition: JigsawRunWidget.cpp:556
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
BundleSettingsQsp m_bundleSettings
Definition: JigsawRunWidget.h:141
JigsawRunWidget(Project *project, QWidget *parent=0)
Constructor.
Definition: JigsawRunWidget.cpp:38
void reportException(QString exception)
Update the label or text edit area with the error message by appending to list and refreshing...
Definition: JigsawRunWidget.cpp:541
void init()
Constructor delegate.
Definition: JigsawRunWidget.cpp:78
~JigsawRunWidget()
Destructor.
Definition: JigsawRunWidget.cpp:110
BundleAdjust * m_bundleAdjust
Definition: JigsawRunWidget.h:136
Project * m_project
Definition: JigsawRunWidget.h:137
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
QString m_outputControlName
Definition: JigsawRunWidget.h:140
This dialog allows the user to select the bundle adjust parameters, run the bundle, and view the results.
Definition: JigsawRunWidget.h:109
void updatePoint(int point)
Update the label or text edit area with the error message by appending to list and refreshing...
Definition: JigsawRunWidget.cpp:567
void errorString(QString error)
Update the label or text edit area with the error message by appending to list and refreshing...
Definition: JigsawRunWidget.cpp:526
An image bundle adjustment object.
Definition: BundleAdjust.h:333
void notifyThreadFinished()
Notifies the widget that the bundle thread has finished.
Definition: JigsawRunWidget.cpp:591
void outputBundleStatus(QString status)
Update the label or text edit area with the most recent status update by appending to list and refres...
Definition: JigsawRunWidget.cpp:510
Definition: Directory.h:285
void bundleFinished(BundleSolutionInfo *bundleSolutionInfo)
This method will be called when the bundle is complete.
Definition: JigsawRunWidget.cpp:643
QString m_selectedControlName
Definition: JigsawRunWidget.h:139
IO Handler for Isis Cubes.
Definition: Cube.h:170