]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkPlaneWidget.cxx
MeshManager
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkPlaneWidget.cxx
index 1698e7115dcce0b5b9404034545e8c4b01843a87..d7ae9a41285c7fd28f9737dad30e530e19594762 100644 (file)
@@ -12,6 +12,7 @@ void boxcreaVtkPlaneWidget::Execute()  // virutal
 {
     std::vector<double> center = _box->_boxcreavtkplanewidget.GetCenter();
     std::vector<double> normal = _box->_boxcreavtkplanewidget.GetNormal();
+    SetNormalIn( normal );
     double  delta   = 0.00000001;
     bool    ok      = false;
     
@@ -47,7 +48,6 @@ void boxcreaVtkPlaneWidget::Execute()  // virutal
 //       _box->bbSignalOutputModification(std::string("Center"));
 //       _box->bbSignalOutputModification(std::string("Normal"));
         _box->bbSignalOutputModification();
-
     }
 }
 
@@ -74,18 +74,14 @@ void PlaneWidget::Process()
 //      (the one provided in the attribute 'name' of the tag 'input')
 //    * TYPE is the C++ type of the input/output
 //      (the one provided in the attribute 'type' of the tag 'input')
-    printf("EED PlaneWidget::Process 1 \n");
        if ((bbGetInputIn()==NULL) || (bbGetInputRenderer()==NULL))
        {
-        printf("EED PlaneWidget::Process 2 \n");
                bbSetOutputOut( NULL );
                std::vector<double> center;
                std::vector<double> normal;
                bbSetOutputCenter( center );
                bbSetOutputNormal( normal );
        } else {
-        if (bbGetInputOrigin().size()==3) printf("EED PlaneWidget::Process 3  Origin  %f, %f, %f \n",  bbGetInputOrigin()[0], bbGetInputOrigin()[1], bbGetInputOrigin()[2] );
-        else printf("EED PlaneWidget::Process 3  Origin -1 \n" );
                _boxcreavtkplanewidget.SetActive( bbGetInputActive() );
                _boxcreavtkplanewidget.SetImage( bbGetInputIn() );
                _boxcreavtkplanewidget.SetResolution( bbGetInputResolution() );