X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkPlaneWidget.cxx;h=869a8f7e58c20346ef43798a1568d4b0db629ec0;hb=290807047e4eee6c704edb1b75fb6e8fd75ac162;hp=91de0a69b588b68b6c2c4bf8d7f404a23116700a;hpb=dccc47ebcfa2ad7a2a6a8770f6975336897d7d06;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx index 91de0a6..869a8f7 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx @@ -16,7 +16,6 @@ void boxcreaVtkPlaneWidget::Execute() // virutal box->bbSignalOutputModification(std::string("Center")); box->bbSetOutputNormal( box->_boxcreavtkplanewidget.GetNormal() ); box->bbSignalOutputModification(std::string("Normal")); - } //---------------------------------------------------------------------------------------------- @@ -44,6 +43,7 @@ void PlaneWidget::Process() // * TYPE is the C++ type of the input/output // (the one provided in the attribute 'type' of the tag 'input') + if ((bbGetInputIn()==NULL) || (bbGetInputRenderer()==NULL)) { bbSetOutputOut( NULL ); @@ -56,11 +56,16 @@ void PlaneWidget::Process() _boxcreavtkplanewidget.SetImage( bbGetInputIn() ); _boxcreavtkplanewidget.SetResolution( bbGetInputResolution() ); _boxcreavtkplanewidget.SetRenderer( bbGetInputRenderer() ); + _boxcreavtkplanewidget.SetRepresentation( bbGetInputRepresentation() ); + _boxcreavtkplanewidget.SetOrigin( bbGetInputOrigin() ); + _boxcreavtkplanewidget.SetNormalIn( bbGetInputNormalIn() ); _boxcreavtkplanewidget.Process(); + bbSetOutputOut( _boxcreavtkplanewidget.GetPlaneSource()->GetOutput() ); bbSetOutputCenter( _boxcreavtkplanewidget.GetCenter() ); bbSetOutputNormal( _boxcreavtkplanewidget.GetNormal() ); } + } //===== // 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) @@ -74,6 +79,7 @@ void PlaneWidget::bbUserSetDefaultValues() bbSetInputActive(false); bbSetInputIn(NULL); bbSetInputResolution(60); + bbSetInputRepresentation(1); bbSetInputRenderer(NULL); bbSetOutputOut(NULL); _boxcreavtkplanewidget.box = this; @@ -103,7 +109,7 @@ void PlaneWidget::bbUserFinalizeProcessing() // if any } -} -// EO namespace bbcreaVtk + +}// EO namespace bbcreaVtk