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 "bbcreaVtkConcatTransform.h"
5 #include "bbcreaVtkPackage.h"
7 #include "vtkTransform.h"
12 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaVtk,ConcatTransform)
13 BBTK_BLACK_BOX_IMPLEMENTATION(ConcatTransform,bbtk::AtomicBlackBox);
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)
17 void ConcatTransform::Process()
20 // THE MAIN PROCESSING METHOD BODY
21 // Here we simply set the input 'In' value to the output 'Out'
22 // And print out the output value
23 // INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
24 // void bbSet{Input|Output}NAME(const TYPE&)
25 // const TYPE& bbGet{Input|Output}NAME() const
27 // * NAME is the name of the input/output
28 // (the one provided in the attribute 'name' of the tag 'input')
29 // * TYPE is the C++ type of the input/output
30 // (the one provided in the attribute 'type' of the tag 'input')
32 // bbSetOutputOut( bbGetInputIn() );
33 // std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
35 vtkTransform *result = vtkTransform::New();
36 result->PostMultiply();
38 if (bbGetInputIn1()!=NULL) { result->Concatenate( bbGetInputIn1()->GetMatrix() ); result->Update(); }
39 if (bbGetInputIn2()!=NULL) { result->Concatenate( bbGetInputIn2()->GetMatrix() ); result->Update(); }
40 if (bbGetInputIn3()!=NULL) { result->Concatenate( bbGetInputIn3()->GetMatrix() ); result->Update(); }
41 if (bbGetInputIn4()!=NULL) { result->Concatenate( bbGetInputIn4()->GetMatrix() ); result->Update(); }
42 if (bbGetInputIn5()!=NULL) { result->Concatenate( bbGetInputIn5()->GetMatrix() ); result->Update(); }
43 if (bbGetInputIn6()!=NULL) { result->Concatenate( bbGetInputIn6()->GetMatrix() ); result->Update(); }
44 if (bbGetInputIn7()!=NULL) { result->Concatenate( bbGetInputIn7()->GetMatrix() ); result->Update(); }
45 if (bbGetInputIn8()!=NULL) { result->Concatenate( bbGetInputIn8()->GetMatrix() ); result->Update(); }
46 if (bbGetInputIn9()!=NULL) { result->Concatenate( bbGetInputIn9()->GetMatrix() ); result->Update(); }
49 bbSetOutputOut(result);
52 // 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)
54 void ConcatTransform::bbUserSetDefaultValues()
57 // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
58 // Here we initialize the input 'In' to 0
71 // 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)
73 void ConcatTransform::bbUserInitializeProcessing()
76 // THE INITIALIZATION METHOD BODY :
78 // but this is where you should allocate the internal/output pointers
84 // 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)
86 void ConcatTransform::bbUserFinalizeProcessing()
89 // THE FINALIZATION METHOD BODY :
91 // but this is where you should desallocate the internal/output pointers
96 // EO namespace bbcreaVtk