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 "bbcreaVtkHeartAngles.h"
5 #include "bbcreaVtkPackage.h"
6 #include "creaVtkHeartAngles.h"
11 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaVtk,HeartAngles)
12 BBTK_BLACK_BOX_IMPLEMENTATION(HeartAngles,bbtk::AtomicBlackBox);
14 // 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 void HeartAngles::Process()
18 std::cout << "CFT HeartAngles::Process() Start"<<std::endl;
19 creaVtkHeartAngles ha;
21 //ha.calculateImages (bbGetInputImage(), bbGetInputPlanePoint()[0], bbGetInputPlanePoint()[1], bbGetInputPlanePoint()[2], bbGetInputVector()[0], bbGetInputVector()[1], bbGetInputVector()[2], bbGetInputNormal()[0], bbGetInputNormal()[1], bbGetInputNormal()[2], bbGetInputPoint2()[0], bbGetInputPoint2()[1], bbGetInputPoint2()[2]);
22 // bbSetOutputAlphaImage(ha.getAlphaImage());
23 double p2x = bbGetInputNormal()[0]+ bbGetInputPlanePoint()[0];
24 double p2y = bbGetInputNormal()[1]+ bbGetInputPlanePoint()[1];
25 double p2z = bbGetInputNormal()[2]+ bbGetInputPlanePoint()[2];
27 double Nx = bbGetInputNormal()[0];
28 double Ny = bbGetInputNormal()[1];
29 double Nz = bbGetInputNormal()[2];
31 double Px = bbGetInputPlanePoint()[0];
32 double Py = bbGetInputPlanePoint()[1];
33 double Pz = bbGetInputPlanePoint()[2];
35 ha.calculateImages (bbGetInputImage(), Px, Py, Pz, Nx, Ny, Nz, p2x, p2y, p2z);
36 bbSetOutputAlphaImage(ha.getAlphaImage());
37 bbSetOutputBetaImage(ha.getBetaImage());
38 std::cout << "CFT HeartAngles::Process() End"<<std::endl;
41 // 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)
43 void HeartAngles::bbUserSetDefaultValues()
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)
50 void HeartAngles::bbUserInitializeProcessing()
53 // THE INITIALIZATION METHOD BODY :
55 // but this is where you should allocate the internal/output pointers
61 // 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)
63 void HeartAngles::bbUserFinalizeProcessing()
66 // THE FINALIZATION METHOD BODY :
68 // but this is where you should desallocate the internal/output pointers
73 // EO namespace bbcreaVtk