Isis 3 Programmer Reference
JigsawRunWidget.h
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();
136  BundleAdjust *m_bundleAdjust;
137  Project *m_project;
138  Control *m_selectedControl;
139  QString m_selectedControlName;
140  QString m_outputControlName;
141  BundleSettingsQsp m_bundleSettings;
142 
143  private:
144  bool m_bRunning;
156  public std::unary_function<const FileName &, Cube *> {
157  public:
158  CopyImageToResultsFunctor(const QDir &destination);
160  Cube *operator()(const FileName &image);
161  private:
162  CopyImageToResultsFunctor &operator=(const CopyImageToResultsFunctor &other);
164  };
165 
166  private slots:
167  void on_JigsawSetupButton_clicked();
168  void on_JigsawRunButton_clicked();
170  void clearDialog();
171  void updateScrollBar();
172 
173  private:
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...
Functor used to copy images to a specified destination directory.
The main project for ipce.
Definition: Project.h:289
void closeEvent(QCloseEvent *event)
This method is called whenever the widget recieves a close request.
File name manipulation and expansion.
Definition: FileName.h:116
Container class for BundleAdjustment results.
QDir m_destinationFolder
Directory to copy the image to.
void updateIteration(int iteration)
Update the label or text edit area with the error message by appending to list and refreshing...
QThread * m_bundleThread
separate thread for running bundle adjust calculations in.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
void on_JigsawAcceptButton_clicked()
Accepts the bundle results and saves them to the project.
void clearDialog()
Resets the dialog&#39;s status widgets to their default state.
JigsawRunWidget(Project *project, QWidget *parent=0)
Constructor.
void reportException(QString exception)
Update the label or text edit area with the error message by appending to list and refreshing...
Cube * operator()(const FileName &image)
Callable operator that copies an image to the bundle solution info results.
void init()
Constructor delegate.
~JigsawRunWidget()
Destructor.
void updateScrollBar()
Updates the scroll bar to position to its maximum setting (the bottom).
Ui::JigsawRunWidget * m_ui
Reference to self&#39;s UI generated with QtDesigner.
bool m_bRunning
Indicates whether or not the bundle adjust is running.
BundleSolutionInfo * m_bundleSolutionInfo
Captures the most recent results of a bundle.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
This dialog allows the user to select the bundle adjust parameters, run the bundle, and view the results.
void updatePoint(int point)
Update the label or text edit area with the error message by appending to list and refreshing...
void errorString(QString error)
Update the label or text edit area with the error message by appending to list and refreshing...
An image bundle adjustment object.
Definition: BundleAdjust.h:333
void notifyThreadFinished()
Notifies the widget that the bundle thread has finished.
void outputBundleStatus(QString status)
Update the label or text edit area with the most recent status update by appending to list and refres...
void bundleFinished(BundleSolutionInfo *bundleSolutionInfo)
This method will be called when the bundle is complete.
CopyImageToResultsFunctor(const QDir &destination)
Constructs a image copier functor for copying images used in the bundle adjustment to the bundle solu...
IO Handler for Isis Cubes.
Definition: Cube.h:170