]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
AddActor() and RemoveActor() added
authorouv <ouv@opencascade.com>
Wed, 28 Sep 2005 14:25:13 +0000 (14:25 +0000)
committerouv <ouv@opencascade.com>
Wed, 28 Sep 2005 14:25:13 +0000 (14:25 +0000)
src/VVTK/VVTK_View.cxx
src/VVTK/VVTK_View.h

index 519b23260da5ac31fbac8dea6176e9cdfb80e167..c184e25428ed43224812a2fe21da19a89d9dea9b 100644 (file)
@@ -29,6 +29,7 @@
 #include "VVTK_View.h"
 #include "VVTK_InteractorStyle.h"
 #include "VISU_ImplicitFunctionWidget.h"
+#include "VISU_GaussPtsAct.h"
 
 #include "SVTK_RenderWindowInteractor.h"
 #include "VVTK_Renderer.h"
@@ -181,6 +182,32 @@ VVTK_MainWindow1
 {}
 
 
+//----------------------------------------------------------------------------
+void
+VVTK_MainWindow1
+::AddActor(VTKViewer_Actor* theActor, 
+          bool theIsUpdate)
+{
+  VISU_GaussPtsAct* anActor = dynamic_cast<VISU_GaussPtsAct*>(theActor);
+  if( anActor )
+    mySegmentationCursorDlg->AddActor( anActor );
+
+  SVTK_MainWindow::AddActor( theActor, theIsUpdate );
+}
+
+//----------------------------------------------------------------------------
+void
+VVTK_MainWindow1
+::RemoveActor(VTKViewer_Actor* theActor, 
+             bool theIsUpdate)
+{
+  VISU_GaussPtsAct* anActor = dynamic_cast<VISU_GaussPtsAct*>(theActor);
+  if( anActor )
+    mySegmentationCursorDlg->RemoveActor( anActor );
+
+  SVTK_MainWindow::RemoveActor( theActor, theIsUpdate );
+}
+
 //----------------------------------------------------------------------------
 VVTK_Renderer1* 
 VVTK_MainWindow1
@@ -212,7 +239,8 @@ VVTK_MainWindow1
 
   if( theIsPlaneSegmentationOn )
   {
-    mySegmentationCursorDlg->Update();
+    mySegmentationCursorDlg->UpdateSegmentation();
+    mySegmentationCursorDlg->UpdateOutsideCursor();
     mySegmentationCursorDlg->show();
   }
   else
index 22993d4b2ba6645ef4092289125c9bcb9ce9787f..1be8c53ddcccb9496c2c0e6ea1b75176fac0d049 100644 (file)
@@ -61,7 +61,17 @@ public:
   virtual
   ~VVTK_MainWindow1();
 
-  VVTK_Renderer1* 
+  virtual
+  void 
+  AddActor(VTKViewer_Actor* theActor, 
+          bool theIsUpdate = false);
+
+  virtual
+  void 
+  RemoveActor(VTKViewer_Actor* theActor, 
+             bool theIsUpdate = false);
+
+ VVTK_Renderer1* 
   GetRenderer1();
 
   virtual