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)
4 #include "bbPackRecalageGridOnImageGenerator.h"
5 #include "bbPackRecalagePackage.h"
6 namespace bbPackRecalage
9 BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,GridOnImageGenerator)
10 BBTK_BLACK_BOX_IMPLEMENTATION(GridOnImageGenerator,bbtk::AtomicBlackBox);
12 // 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)
14 void GridOnImageGenerator::Process()
16 std::cout << "GridOnImageGenerator" << std::endl;
18 vtkImageData* inImage = NULL;
19 vtkImageData* outputImage = NULL;
20 double gridSpcX = 0, gridSpcY = 0, gridSpcZ = 0;
23 inImage = bbGetInputIn();
24 gridSpcX = bbGetInputGridSpcX();
25 gridSpcY = bbGetInputGridSpcY();
26 gridSpcZ = bbGetInputGridSpcZ();
28 //Grid on image generator
29 gridOnImageGenerator = new MyGridOnImageGenerator(inImage, gridSpcX, gridSpcY, gridSpcZ);
31 outputImage = gridOnImageGenerator->getGridOnImage();
32 bbSetOutputOut( outputImage );
33 std::cout << "GridOnImageGenerator ... OK" << std::endl;
37 // 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)
39 void GridOnImageGenerator::bbUserSetDefaultValues()
42 bbSetInputGridSpcX(0);
43 bbSetInputGridSpcY(0);
44 bbSetInputGridSpcZ(0);
47 // 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 void GridOnImageGenerator::bbUserInitializeProcessing()
52 // THE INITIALIZATION METHOD BODY :
54 // but this is where you should allocate the internal/output pointers
60 // 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)
62 void GridOnImageGenerator::bbUserFinalizeProcessing()
65 if(gridOnImageGenerator != NULL)
66 delete gridOnImageGenerator;
70 // EO namespace bbPackRecalage