]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To allow to display every VISU presentation into Gauss Viewer
authorapo <apo@opencascade.com>
Thu, 10 Nov 2005 06:31:39 +0000 (06:31 +0000)
committerapo <apo@opencascade.com>
Thu, 10 Nov 2005 06:31:39 +0000 (06:31 +0000)
src/VISU_I/VISU_Prs3d_i.cc
src/VISU_I/VISU_Prs3d_i.hh

index 2cd195836391936d2c8e8e3d22e5d40b1fe11aac..308915169525d599b99d121171413d65d0f1cf1b 100644 (file)
@@ -230,20 +230,29 @@ VISU::Prs3d_i
 
 void
 VISU::Prs3d_i
-::UpdateActor(VISU_Actor* theActor) 
+::RemoveActor(VISU_Actor* theActor) 
 {
-  if(MYDEBUG) MESSAGE("Prs3d_i::UpdateActor - this = "<<this<<"; theActor = "<<theActor);
-  theActor->ShallowCopyPL(myPipeLine);
-  theActor->SetPosition(myOffset);
-  theActor->Modified();
+  if(MYDEBUG) MESSAGE("Prs3d_i::RemoveActor - this = "<<this<<"; theActor = "<<theActor);
+  myActorCollection->RemoveItem(theActor);
 }
 
 void
 VISU::Prs3d_i
-::RemoveActor(VISU_Actor* theActor) 
+::RemoveActors()
 {
-  if(MYDEBUG) MESSAGE("Prs3d_i::RemoveActor - this = "<<this<<"; theActor = "<<theActor);
-  myActorCollection->RemoveItem(theActor);
+  if(MYDEBUG) MESSAGE("Prs3d_i::RemoveActors - this = "<<this);
+  myRemoveActorsFromRendererSignal();
+  myActorCollection->RemoveAllItems();
+}
+
+void
+VISU::Prs3d_i
+::UpdateActor(VISU_Actor* theActor) 
+{
+  if(MYDEBUG) MESSAGE("Prs3d_i::UpdateActor - this = "<<this<<"; theActor = "<<theActor);
+  theActor->ShallowCopyPL(myPipeLine);
+  theActor->SetPosition(myOffset);
+  theActor->Modified();
 }
 
 void
index 7bad0b68048906198ab95dee51e4a5e10052a5b8..4ddeca2b69f7cae9393f496067b44bce0c8f4e8e 100644 (file)
@@ -128,6 +128,10 @@ namespace VISU
     void
     RemoveActor(VISU_Actor* theActor);
 
+    virtual 
+    void
+    RemoveActors();
+
     virtual 
     void
     UpdateActor(VISU_Actor* theActor);