1 #ifndef vvMidPosition_h
2 #define vvMidPosition_h
5 #include <QProgressDialog>
7 #include "vvSlicerManager.h"
9 class vvMidPosition : public QThread
14 ///Call this to trigger the computation in a separate thread and wait until it's done
16 vvSlicerManager * slicer_manager;
17 ///True if there is an error during the computation
19 std::string error_message;
20 vvImage::Pointer output;
21 int reference_image_index;
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