From: Eduardo DAVILA Date: Wed, 11 Dec 2013 07:39:49 +0000 (+0100) Subject: 2164 creaVtk Feature New Normal new outputs for the vtkPlaneWidget (center and normal) X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=creaVtk.git;a=commitdiff_plain;h=d1bdee9512bbd9129786ad6cd9f1b147624a7f8f 2164 creaVtk Feature New Normal new outputs for the vtkPlaneWidget (center and normal) --- diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx index 071fd02..6378981 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx @@ -15,6 +15,12 @@ void boxcreaVtkPlaneWidget::Execute() // virutal printf("EED bbcreaVtkPlaneWidget::Execute (virtual) start 1\n"); box->bbSignalOutputModification(std::string("Out")); printf("EED bbcreaVtkPlaneWidget::Execute (virtual) end \n"); + + box->bbSetOutputCenter( box->_boxcreavtkplanewidget.GetCenter() ); + box->bbSignalOutputModification(std::string("Center")); + box->bbSetOutputNormal( box->_boxcreavtkplanewidget.GetNormal() ); + box->bbSignalOutputModification(std::string("Normal")); + } //---------------------------------------------------------------------------------------------- @@ -49,7 +55,7 @@ void PlaneWidget::Process() _boxcreavtkplanewidget.Process(); bbSetOutputOut( _boxcreavtkplanewidget.GetPlaneSource()->GetOutput() ); bbSetOutputCenter( _boxcreavtkplanewidget.GetCenter() ); - bbSetOutputCenter( _boxcreavtkplanewidget.GetNormal() ); + 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)