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");
19 box->bbSetOutputCenter( box->_boxcreavtkplanewidget.GetCenter() );
20 box->bbSignalOutputModification(std::string("Center"));
21 box->bbSetOutputNormal( box->_boxcreavtkplanewidget.GetNormal() );
22 box->bbSignalOutputModification(std::string("Normal"));
26 //----------------------------------------------------------------------------------------------
27 //----------------------------------------------------------------------------------------------
28 //----------------------------------------------------------------------------------------------
29 //----------------------------------------------------------------------------------------------
31 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaVtk,PlaneWidget)
32 BBTK_BLACK_BOX_IMPLEMENTATION(PlaneWidget,bbtk::AtomicBlackBox);
34 // 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)
36 void PlaneWidget::Process()
39 // THE MAIN PROCESSING METHOD BODY
40 // Here we simply set the input 'In' value to the output 'Out'
41 // And print out the output value
42 // INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
43 // void bbSet{Input|Output}NAME(const TYPE&)
44 // const TYPE& bbGet{Input|Output}NAME() const
46 // * NAME is the name of the input/output
47 // (the one provided in the attribute 'name' of the tag 'input')
48 // * TYPE is the C++ type of the input/output
49 // (the one provided in the attribute 'type' of the tag 'input')
51 _boxcreavtkplanewidget.SetActive( bbGetInputActive() );
52 _boxcreavtkplanewidget.SetImage( bbGetInputIn() );
53 _boxcreavtkplanewidget.SetResolution( bbGetInputResolution() );
54 _boxcreavtkplanewidget.SetRenderer( bbGetInputRenderer() );
55 _boxcreavtkplanewidget.Process();
56 bbSetOutputOut( _boxcreavtkplanewidget.GetPlaneSource()->GetOutput() );
57 bbSetOutputCenter( _boxcreavtkplanewidget.GetCenter() );
58 bbSetOutputNormal( _boxcreavtkplanewidget.GetNormal() );
61 // 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)
63 void PlaneWidget::bbUserSetDefaultValues()
66 // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
67 // Here we initialize the input 'In' to 0
69 bbSetInputActive(false);
71 bbSetInputResolution(60);
72 bbSetInputRenderer(NULL);
74 _boxcreavtkplanewidget.box = this;
77 // 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)
79 void PlaneWidget::bbUserInitializeProcessing()
82 // THE INITIALIZATION METHOD BODY :
84 // but this is where you should allocate the internal/output pointers
90 // 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)
92 void PlaneWidget::bbUserFinalizeProcessing()
95 // THE FINALIZATION METHOD BODY :
97 // but this is where you should desallocate the internal/output pointers
102 // EO namespace bbcreaVtk