]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To implement RemoveFromStudy for ColoredPrs3dCache instances
authorapo <apo@opencascade.com>
Thu, 30 Nov 2006 13:51:29 +0000 (13:51 +0000)
committerapo <apo@opencascade.com>
Thu, 30 Nov 2006 13:51:29 +0000 (13:51 +0000)
src/VISU_I/VISU_ColoredPrs3dCache_i.cc

index ce6206b06d5f0cfd863cd5112bb218a6616f3ffc..3e7e61dab195ee9b84ce61c9bb95d8e4f1b32e0c 100644 (file)
@@ -220,7 +220,12 @@ VISU::ColoredPrs3dCache_i
 void
 VISU::ColoredPrs3dCache_i
 ::RemoveFromStudy() 
-{}
+{
+  CORBA::String_var anIOR = GetID();
+  SALOMEDS::SObject_var aSObject = GetStudyDocument()->FindObjectIOR(anIOR.in());
+  VISU::RemoveFromStudy(aSObject, false, true);
+  Destroy();
+}
 
 std::string
 VISU::ColoredPrs3dCache_i