]> Creatis software - clitk.git/blob - vv/vvMidPosition.h
removed headers
[clitk.git] / vv / vvMidPosition.h
1 #ifndef vvMidPosition_h
2 #define vvMidPosition_h
3 #include <string>
4 #include <QThread>
5 #include <QProgressDialog>
6 #include "vvImage.h"
7 #include "vvSlicerManager.h"
8
9 class vvMidPosition : public QThread
10 {
11 public:
12     vvMidPosition();
13
14     ///Call this to trigger the computation in a separate thread and wait until it's done
15     void Update();
16     vvSlicerManager * slicer_manager;
17     ///True if there is an error during the computation
18     bool error;
19     std::string error_message;
20     vvImage::Pointer output;
21     int reference_image_index;
22 protected:
23     void run();
24     ///This is called everytime the main thread wakes up, and updates a progress bar
25     void update_progress();
26     QProgressDialog p_bar;
27     ///Counter for the progress bar. We should use a mutex, but it turns out it isn't needed
28     int progress;
29 };
30
31 #endif