]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.cxx
Implemented deleting of boxes from the scene....
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsVtkGUIEditorGraphic / vtkGObjectView.cxx
index 7ed876b3b8640cc05d1cb3ff78a09e5c817e6356..964c38825ef73075dfd98672338904c0c4a778e2 100644 (file)
@@ -109,6 +109,15 @@ namespace bbtk
 
        //=========================================================================
 
+       void vtkGObjectView::removeVtkActors()//virtual
+       {
+               _baseView->GetRenderer()->RemoveActor(_borderObjectActor);
+               _baseView->GetRenderer()->RemoveActor(_fillObjectActor);
+               _baseView->GetRenderer()->Render();
+       }
+
+       //=========================================================================
+
        bool vtkGObjectView::isPointInside(int X,int Y) //virtual
        {
                // RaC In the actual version, always z=900
@@ -169,6 +178,14 @@ namespace bbtk
        }
 
        //=========================================================================
+       
+       void vtkGObjectView::removeFromScene()
+       {
+               removeVtkActors();
+               setRefreshWaiting();
+       }
+
+       //=========================================================================
 
 
 }  // EO namespace bbtk