3D Human Airway Tree
Program generuje ludzkie drzewo oskrzelowe
pinkPgmToRaw.h
Idź do dokumentacji tego pliku.
1 /*=========================================================================
2 
3  Program: 3D Human Airway Tree
4  Module: pinkPgmToRaw.h
5 
6  Copyright (c) ESIEE - Michel Couprie 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 #ifndef PINKPGMTORAW_H
17 #define PINKPGMTORAW_H
18 
19 #include <boost/tuple/tuple.hpp>
20 #include <QThread>
21 #include <stdio.h>
22 #include <stdint.h>
23 #include <sys/types.h>
24 #include <stdlib.h>
25 #include <mcimage.h>
26 #include <mccodimage.h>
27 
28 class pinkPgmToRaw : public QThread
29 {
30 Q_OBJECT
31 private:
32  int32_t rs, cs, ds, N, ret;
33  struct xvimage * image;
34  FILE *fd;
35  boost::tuple<std::string,std::string> &argv;
36 protected:
37  virtual void run();
38 public:
39  virtual ~pinkPgmToRaw();
40  pinkPgmToRaw(boost::tuples::tuple< std::string, std::string > &p_argv);
41 signals:
42  void endCompute(QThread *);
43 };
44 
45 #endif // PINKPGMTORAW_H