//===== // 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) //===== #include "bbcreaVtkConcatTransform.h" #include "bbcreaVtkPackage.h" #include "vtkTransform.h" namespace bbcreaVtk { BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaVtk,ConcatTransform) BBTK_BLACK_BOX_IMPLEMENTATION(ConcatTransform,bbtk::AtomicBlackBox); //===== // 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) //===== void ConcatTransform::Process() { // THE MAIN PROCESSING METHOD BODY // Here we simply set the input 'In' value to the output 'Out' // And print out the output value // INPUT/OUTPUT ACCESSORS ARE OF THE FORM : // void bbSet{Input|Output}NAME(const TYPE&) // const TYPE& bbGet{Input|Output}NAME() const // Where : // * NAME is the name of the input/output // (the one provided in the attribute 'name' of the tag 'input') // * TYPE is the C++ type of the input/output // (the one provided in the attribute 'type' of the tag 'input') // bbSetOutputOut( bbGetInputIn() ); // std::cout << "Output value = " <PostMultiply (); result->Identity(); if (bbGetInputIn1()!=NULL) { result->Concatenate( bbGetInputIn1()->GetMatrix() ); } if (bbGetInputIn2()!=NULL) { result->Concatenate( bbGetInputIn2()->GetMatrix() ); } if (bbGetInputIn3()!=NULL) { result->Concatenate( bbGetInputIn3()->GetMatrix() ); } if (bbGetInputIn4()!=NULL) { result->Concatenate( bbGetInputIn4()->GetMatrix() ); } if (bbGetInputIn5()!=NULL) { result->Concatenate( bbGetInputIn5()->GetMatrix() ); } if (bbGetInputIn6()!=NULL) { result->Concatenate( bbGetInputIn6()->GetMatrix() ); } if (bbGetInputIn7()!=NULL) { result->Concatenate( bbGetInputIn7()->GetMatrix() ); } if (bbGetInputIn8()!=NULL) { result->Concatenate( bbGetInputIn8()->GetMatrix() ); } if (bbGetInputIn9()!=NULL) { result->Concatenate( bbGetInputIn9()->GetMatrix() ); } result->Update(); bbSetOutputOut(result); } //===== // 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) //===== void ConcatTransform::bbUserSetDefaultValues() { // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX // Here we initialize the input 'In' to 0 bbSetInputIn1(NULL); bbSetInputIn2(NULL); bbSetInputIn3(NULL); bbSetInputIn4(NULL); bbSetInputIn5(NULL); bbSetInputIn6(NULL); bbSetInputIn7(NULL); bbSetInputIn8(NULL); bbSetInputIn9(NULL); } //===== // 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) //===== void ConcatTransform::bbUserInitializeProcessing() { // THE INITIALIZATION METHOD BODY : // Here does nothing // but this is where you should allocate the internal/output pointers // if any } //===== // 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) //===== void ConcatTransform::bbUserFinalizeProcessing() { // THE FINALIZATION METHOD BODY : // Here does nothing // but this is where you should desallocate the internal/output pointers // if any } } // EO namespace bbcreaVtk