X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsVtkGUIEditorGraphic%2FvtkGObjectView.cxx;fp=lib%2FEditorGraphicBBS%2FbbsVtkGUIEditorGraphic%2FvtkGObjectView.cxx;h=964c38825ef73075dfd98672338904c0c4a778e2;hb=a6d479881eeb637cd06afa3b2177e430fa05571e;hp=7ed876b3b8640cc05d1cb3ff78a09e5c817e6356;hpb=148148d87a5ed486b321de977e8bb64f39e1e49c;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.cxx b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.cxx index 7ed876b..964c388 100644 --- a/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.cxx +++ b/lib/EditorGraphicBBS/bbsVtkGUIEditorGraphic/vtkGObjectView.cxx @@ -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