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() );
53 // 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)
55 void PlaneWidget::bbUserSetDefaultValues()
58 // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
59 // Here we initialize the input 'In' to 0
61 bbSetInputActive(false);
63 bbSetInputResolution(60);
64 bbSetInputRenderer(NULL);
66 _boxcreavtkplanewidget.box = this;
69 // 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)
71 void PlaneWidget::bbUserInitializeProcessing()
74 // THE INITIALIZATION METHOD BODY :
76 // but this is where you should allocate the internal/output pointers
82 // 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)
84 void PlaneWidget::bbUserFinalizeProcessing()
87 // THE FINALIZATION METHOD BODY :
89 // but this is where you should desallocate the internal/output pointers
94 // EO namespace bbcreaVtk