3D Human Airway Tree
Program generuje ludzkie drzewo oskrzelowe
PrepareFile.h
Idź do dokumentacji tego pliku.
1 /*=========================================================================
2 
3  Program: 3D Human Airway Tree
4  Module: PrepareFile.h
5  Copyright (c) Kacper Pluta <kacperp@wsinf.edu.pl>
6  All rights reserved.
7  See Copyright.txt or http://leo.wsinf.edu.pl/~kacperp/3dtree for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
20 #ifndef PREPAREFILE_H
21 #define PREPAREFILE_H
22 
23 #include <QtCore/QThread>
24 #include "boost/tuple/tuple.hpp"
25 #include <vtkImageData.h>
26 #include <vtkMetaImageWriter.h>
27 
28 class PrepareFile : public QThread
29 {
30 Q_OBJECT
31 private:
32  vtkMetaImageWriter *mhdWriter;
33  boost::tuple<vtkImageData *, int, int, int, std::string> &argv;
34  int dims[3];
35  vtkImageData *rawTree;
36  vtkImageData *whiteImage;
37  int l, r;
38  double b;
39 protected:
40  virtual void run();
41 public:
42  PrepareFile(boost::tuple<vtkImageData *, int, int, int, std::string> &);
43  virtual ~PrepareFile();
44 signals:
45  QThread *endCompute(QThread *);
46 
47 };
48 
49 #endif // PREPAREFILE_H