Isis 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
15namespace Ui {
16 class JigsawRunWidget;
17}
18
19class QString;
20class QThread;
21
22namespace Isis {
23 class BundleAdjust;
25 class Control;
26 class Cube;
27 class Directory;
28 class FileName;
29 class Project;
30
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);
133
134 protected:
135 void init();
142
143 private:
144 bool m_bRunning;
145 QThread *m_bundleThread;
155 class CopyImageToResultsFunctor :
156 public std::function<Cube *(const FileName &)> {
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
An image bundle adjustment object.
Definition BundleAdjust.h:329
Container class for BundleAdjustment results.
Definition BundleSolutionInfo.h:162
This represents an ISIS control net in a project-based GUI interface.
Definition Control.h:66
IO Handler for Isis Cubes.
Definition Cube.h:168
Definition Directory.h:271
File name manipulation and expansion.
Definition FileName.h:100
This dialog allows the user to select the bundle adjust parameters, run the bundle,...
Definition JigsawRunWidget.h:109
Project * m_project
Definition JigsawRunWidget.h:137
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
void closeEvent(QCloseEvent *event)
This method is called whenever the widget recieves a close request.
Definition JigsawRunWidget.cpp:660
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 notifyThreadFinished()
Notifies the widget that the bundle thread has finished.
Definition JigsawRunWidget.cpp:591
QString m_selectedControlName
Definition JigsawRunWidget.h:139
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
~JigsawRunWidget()
Destructor.
Definition JigsawRunWidget.cpp:110
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
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
Control * m_selectedControl
Definition JigsawRunWidget.h:138
BundleAdjust * m_bundleAdjust
Definition JigsawRunWidget.h:136
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
QString m_outputControlName
Definition JigsawRunWidget.h:140
void init()
Constructor delegate.
Definition JigsawRunWidget.cpp:78
JigsawRunWidget(Project *project, QWidget *parent=0)
Constructor.
Definition JigsawRunWidget.cpp:38
BundleSettingsQsp m_bundleSettings
Definition JigsawRunWidget.h:141
void bundleFinished(BundleSolutionInfo *bundleSolutionInfo)
This method will be called when the bundle is complete.
Definition JigsawRunWidget.cpp:643
The main project for ipce.
Definition Project.h:289
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
Definition JigsawRunWidget.h:15