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 "bbcreaVtkPlaneWidget.h"
5 #include "bbcreaVtkPackage.h"
11 void boxcreaVtkPlaneWidget::Execute() // virutal
13 printf("EED bbcreaVtkPlaneWidget::Execute (virtual) start \n");
14 box->bbSetOutputOut( box->_boxcreavtkplanewidget.GetPlaneSource()->GetOutput() );
15 printf("EED bbcreaVtkPlaneWidget::Execute (virtual) start 1\n");
16 box->bbSignalOutputModification(std::string("Out"));
17 printf("EED bbcreaVtkPlaneWidget::Execute (virtual) end \n");
20 //----------------------------------------------------------------------------------------------
21 //----------------------------------------------------------------------------------------------
22 //----------------------------------------------------------------------------------------------
23 //----------------------------------------------------------------------------------------------
25 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaVtk,PlaneWidget)
26 BBTK_BLACK_BOX_IMPLEMENTATION(PlaneWidget,bbtk::AtomicBlackBox);
28 // 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)
30 void PlaneWidget::Process()
33 // THE MAIN PROCESSING METHOD BODY
34 // Here we simply set the input 'In' value to the output 'Out'
35 // And print out the output value
36 // INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
37 // void bbSet{Input|Output}NAME(const TYPE&)
38 // const TYPE& bbGet{Input|Output}NAME() const
40 // * NAME is the name of the input/output
41 // (the one provided in the attribute 'name' of the tag 'input')
42 // * TYPE is the C++ type of the input/output
43 // (the one provided in the attribute 'type' of the tag 'input')
45 _boxcreavtkplanewidget.SetActive( bbGetInputActive() );
46 _boxcreavtkplanewidget.SetImage( bbGetInputIn() );
47 _boxcreavtkplanewidget.SetResolution( bbGetInputResolution() );
48 _boxcreavtkplanewidget.SetRenderer( bbGetInputRenderer() );
49 _boxcreavtkplanewidget.Process();
50 bbSetOutputOut( _boxcreavtkplanewidget.GetPlaneSource()->GetOutput() );
51 bbSetOutputCenter( _boxcreavtkplanewidget.GetCenter() );
52 bbSetOutputCenter( _boxcreavtkplanewidget.GetNormal() );
55 // 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)
57 void PlaneWidget::bbUserSetDefaultValues()
60 // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
61 // Here we initialize the input 'In' to 0
63 bbSetInputActive(false);
65 bbSetInputResolution(60);
66 bbSetInputRenderer(NULL);
68 _boxcreavtkplanewidget.box = this;
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 PlaneWidget::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 PlaneWidget::bbUserFinalizeProcessing()
89 // THE FINALIZATION METHOD BODY :
91 // but this is where you should desallocate the internal/output pointers
96 // EO namespace bbcreaVtk