]> Creatis software - creaVtk.git/commitdiff
2164 creaVtk Feature New Normal new outputs for the vtkPlaneWidget (center and normal)
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Wed, 11 Dec 2013 07:39:49 +0000 (08:39 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Wed, 11 Dec 2013 07:39:49 +0000 (08:39 +0100)
bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx

index 071fd0284450f943fb44c04e640dfdb8b2e4e0d2..637898152fa920d21718a8483a5d7d4337074781 100644 (file)
@@ -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)