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
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();
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:
156 public std::function<Cube *(const FileName &)> {
157 public:
158 CopyImageToResultsFunctor(const QDir &destination);
160 Cube *operator()(const FileName &image);
161 private:
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
An image bundle adjustment object.
Container class for BundleAdjustment results.
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
File name manipulation and expansion.
Definition FileName.h:100
Functor used to copy images to a specified destination directory.
CopyImageToResultsFunctor(const QDir &destination)
Constructs a image copier functor for copying images used in the bundle adjustment to the bundle solu...
Cube * operator()(const FileName &image)
Callable operator that copies an image to the bundle solution info results.
QDir m_destinationFolder
Directory to copy the image to.
This dialog allows the user to select the bundle adjust parameters, run the bundle,...
void on_JigsawAcceptButton_clicked()
Accepts the bundle results and saves them to the project.
void updateScrollBar()
Updates the scroll bar to position to its maximum setting (the bottom).
void errorString(QString error)
Update the label or text edit area with the error message by appending to list and refreshing.
void closeEvent(QCloseEvent *event)
This method is called whenever the widget recieves a close request.
void reportException(QString exception)
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.
void notifyThreadFinished()
Notifies the widget that the bundle thread has finished.
void clearDialog()
Resets the dialog's status widgets to their default state.
void updatePoint(int point)
Update the label or text edit area with the error message by appending to list and refreshing.
void updateIteration(int iteration)
Update the label or text edit area with the error message by appending to list and refreshing.
void outputBundleStatus(QString status)
Update the label or text edit area with the most recent status update by appending to list and refres...
bool m_bRunning
Indicates whether or not the bundle adjust is running.
void updateStatus(QString status)
Update the label or text edit area with the error message by appending to list and refreshing.
Ui::JigsawRunWidget * m_ui
Reference to self's UI generated with QtDesigner.
BundleSolutionInfo * m_bundleSolutionInfo
Captures the most recent results of a bundle.
void init()
Constructor delegate.
JigsawRunWidget(Project *project, QWidget *parent=0)
Constructor.
void bundleFinished(BundleSolutionInfo *bundleSolutionInfo)
This method will be called when the bundle is complete.
The main project for ipce.
Definition Project.h:289
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16