]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGBlackBoxView.cxx
#3066 bbGEditor Bug New Normal - Refresh vtk objects
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / vtkGBlackBoxView.cxx
index 4549df8ce9160387a7bd42e3d34cc4b459de332f..97e98f4c55b0eb4818825e5abfaf5c570ebd7ff5 100644 (file)
@@ -114,33 +114,12 @@ namespace bbtk
        //=========================================================================
        void vtkGBlackBoxView::update(int idController,int command)
        {
-               updateColors();
-
+//EED 2017-03)02
+               update_X_Fin();
+               vtkGBoxView::update(idController,command);
                double xInic, yInic,zInic,xFin, yFin,zFin;
                _model->getInicPoint(xInic,yInic,zInic);
-
                updatePositionTextActor(xInic, yInic,zInic);
-        update_X_Fin();
-               _model->getFinalPoint(xFin, yFin,zFin);
-
-               // RaC In the actual version, zInic=zFin=GPOSITION_Z
-
-               _pts->SetPoint(0, xInic, yInic, zInic );
-               _pts->SetPoint(1, xInic, yFin, zInic );
-               _pts->SetPoint(2, xFin, yFin, zFin );
-               _pts->SetPoint(3, xFin, yInic, zFin );
-
-               updatePorts();
-
-
-// update position for one Actor that represents all OutputPorts
-
-
-//             _borderPolyMapper->Modified();
-               _fillPolyMapper->Modified();
-               //-----------
-
-               //-----------
                setRefreshWaiting();
        }
 
@@ -168,10 +147,13 @@ namespace bbtk
 //EED          _pts->SetPoint(1, xInic, yFin, zInic );
 //EED          _pts->SetPoint(2, xFin, yFin, zFin );
 //EED          _pts->SetPoint(3, xFin, yInic, zFin );
-               _pts->SetPoint(0, -1000, -1000, -1000 );
-               _pts->SetPoint(1, xInic, yFin, zInic );
-               _pts->SetPoint(2, 1000, 1000, 1000 );
-               _pts->SetPoint(3, xFin, yInic, zFin );
+
+//EED 2017-03-02
+//             _pts->SetPoint(0, -1000, -1000, -1000 );
+//             _pts->SetPoint(1, xInic, yFin, zInic );
+//             _pts->SetPoint(2, 1000, 1000, 1000 );
+//             _pts->SetPoint(3, xFin, yInic, zFin );
+
 
 //             lines->InsertNextCell(5);
 //             lines->InsertCellPoint(0);
@@ -230,7 +212,7 @@ namespace bbtk
                updatePositionTextActor( xInic,  yInic,  zInic);
        }
 
-       //=========================================================================
+       //===============BoundaryEdgesOn==========================================================
 
        void vtkGBlackBoxView::addVtkActors()//virtual
        {