]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkFromVtk4DToItk4D.cxx~
c85c4ebf838078e9c43c9d6eb5d2d489210945de
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkFromVtk4DToItk4D.cxx~
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #include "bbcreaVtkFromVtk4DToItk4D.h"
5 #include "bbcreaVtkPackage.h"
6 #include "creaVtkFromVtk4DToItk4D.h"
7 #include "vtkImageData.h"
8 #include "itkImage.h"
9 namespace bbcreaVtk
10 {
11
12 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaVtk,FromVtk4DToItk4D)
13 BBTK_BLACK_BOX_IMPLEMENTATION(FromVtk4DToItk4D,bbtk::AtomicBlackBox);
14 //===== 
15 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
16 //===== 
17 void FromVtk4DToItk4D::Process()
18 {
19                 creaVtkFromVtk4DToItk4D<vtkImageData*> prs;
20                 prs.SetImage4Dvtk(bbGetInputIn());
21                 bbSetOutputOut(prs.Process());
22 }
23 //===== 
24 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
25 //===== 
26 void FromVtk4DToItk4D::bbUserSetDefaultValues()
27 {
28
29 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
30 //    Here we initialize the input 'In' to 0
31    bbSetInputIn(0);
32   
33 }
34 //===== 
35 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
36 //===== 
37 void FromVtk4DToItk4D::bbUserInitializeProcessing()
38 {
39
40 //  THE INITIALIZATION METHOD BODY :
41 //    Here does nothing 
42 //    but this is where you should allocate the internal/output pointers 
43 //    if any 
44
45   
46 }
47 //===== 
48 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
49 //===== 
50 void FromVtk4DToItk4D::bbUserFinalizeProcessing()
51 {
52
53 //  THE FINALIZATION METHOD BODY :
54 //    Here does nothing 
55 //    but this is where you should desallocate the internal/output pointers 
56 //    if any
57   
58 }
59 }
60 // EO namespace bbcreaVtk
61
62