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)
5 #include "bbcreaVtkTrimmedExtrusionFilter.h"
7 #include "bbcreaVtkPackage.h"
14 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaVtk,TrimmedExtrusionFilter)
15 BBTK_BLACK_BOX_IMPLEMENTATION(TrimmedExtrusionFilter,bbtk::AtomicBlackBox);
17 // 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)
19 void TrimmedExtrusionFilter::Process()
22 // THE MAIN PROCESSING METHOD BODY
23 // Here we simply set the input 'In' value to the output 'Out'
24 // And print out the output value
25 // INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
26 // void bbSet{Input|Output}NAME(const TYPE&)
27 // const TYPE& bbGet{Input|Output}NAME() const
29 // * NAME is the name of the input/output
30 // (the one provided in the attribute 'name' of the tag 'input')
31 // * TYPE is the C++ type of the input/output
32 // (the one provided in the attribute 'type' of the tag 'input')
33 // bbSetOutputOut( bbGetInputIn() );
34 // std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
37 printf("EED Warning!!! TrimmedExtrusionFilter::Process Box not tested....... \n");
38 printf("EED Warning!!! TrimmedExtrusionFilter::Process Box not tested....... \n");
39 printf("EED Warning!!! TrimmedExtrusionFilter::Process Box not tested....... \n");
40 printf("EED Warning!!! TrimmedExtrusionFilter::Process Box not tested....... \n");
41 printf("EED Warning!!! TrimmedExtrusionFilter::Process Box not tested....... \n");
42 printf("EED Warning!!! TrimmedExtrusionFilter::Process Box not tested....... \n");
43 printf("EED Warning!!! TrimmedExtrusionFilter::Process Box not tested....... \n");
47 /* ------ Not exist in windows old VTK 8.1 version ---------
49 if ( (bbGetInputIn()!=NULL) && (bbGetInputIn2()!=NULL) )
55 extrusion = vtkTrimmedExtrusionFilter::New();
56 std::vector<double> dir=bbGetInputDirection();
59 extrusion->SetExtrusionDirection( dir[0],dir[1],dir[2] );
61 extrusion->SetExtrusionDirection( 1,0,0 );
63 extrusion->SetInputData( bbGetInputIn() );
64 extrusion->SetTrimSurfaceData( bbGetInputIn2() );
65 if (bbGetInputType()==0)
67 extrusion->SetExtrusionStrategy(vtkTrimmedExtrusionFilter::BOUNDARY_EDGES);
69 extrusion->SetExtrusionStrategy(vtkTrimmedExtrusionFilter::ALL_EDGES);
72 bbSetOutputOut( extrusion->GetTrimSurface() );
74 printf("EED Warning!!! TrimmedExtrusionFilter::Process Either In or In2 is missing \n");
80 // 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)
82 void TrimmedExtrusionFilter::bbUserSetDefaultValues()
85 // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
86 // Here we initialize the input 'In' to 0
88 // ------ Not exist in windows old VTK 8.1 version ---------
95 std::vector<double> dir;
99 bbSetInputDirection( dir );
103 // 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)
105 void TrimmedExtrusionFilter::bbUserInitializeProcessing()
108 // THE INITIALIZATION METHOD BODY :
110 // but this is where you should allocate the internal/output pointers
116 // 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)
118 void TrimmedExtrusionFilter::bbUserFinalizeProcessing()
121 // THE FINALIZATION METHOD BODY :
123 // but this is where you should desallocate the internal/output pointers
128 } // EO namespace bbcreaVtk