3D Human Airway Tree
Program generuje ludzkie drzewo oskrzelowe
pinkEden.h
Idź do dokumentacji tego pliku.
1 /*=========================================================================
2 
3  Program: 3D Human Airway Tree
4  Module: pinkEden.h
5 
6  Copyright (c) ESIEE - Hugues Talbot and and Kacper Pluta <kacperp@wsinf.edu.pl>
7  All rights reserved.
8  See Copyright.txt or http://leo.wsinf.edu.pl/~kacperp/3dtree for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
16 
17 #ifndef EDEN_H
18 #define EDEN_H
19 
20 #include <QtCore/QThread>
21 
22 #include <stdio.h>
23 #include <stdint.h>
24 #include <sys/types.h>
25 #include <stdlib.h>
26 #include <mccodimage.h>
27 #include "boost/tuple/tuple.hpp"
28 #include <vtkImageData.h>
29 
30 class pinkEden : public QThread
31 {
32 Q_OBJECT
33 private:
34  struct xvimage * image1;
35  index_t rs, cs, ds;
36  int32_t niter, grow, shrink, topo;
37  uint8_t *In;
38 
39  vtkImageData *rawTree;
40 
41  long long unsigned int voxCount;
42  int dims[3];
43 
44  const boost::tuple<std::string,long long unsigned int,int, int, int, std::string, vtkImageData *> &argv;
45 protected:
46  void VoxCounter();
47  virtual void run();
48 public:
49  virtual ~pinkEden();
50  pinkEden(const boost::tuple<std::string,long long unsigned int,int, int, int, std::string, vtkImageData *> &);
51 signals:
52  QThread *endCompute(QThread *);
53 };
54 
55 #endif // EDEN_H