]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
1. To provide more correct VTK connection manafement.
authorapo <apo@opencascade.com>
Wed, 7 Dec 2005 09:51:52 +0000 (09:51 +0000)
committerapo <apo@opencascade.com>
Wed, 7 Dec 2005 09:51:52 +0000 (09:51 +0000)
2. To update in time outside / inside cursor settings

src/OBJECT/VISU_GaussPtsAct.cxx

index 8ad1af37935df1bab1dc1f1d03ba04a8e7cf04c3..3a284d93c9680ca7759c1d11ec735103eed1b9a1 100644 (file)
@@ -166,6 +166,7 @@ VISU_GaussPtsAct
   SetWidgetCtrl(NULL);
   SetInteractor(NULL);
   SetPickingSettings(NULL);
+  SetInsideCursorSettings(NULL);
 }
 
 
@@ -887,10 +888,12 @@ VISU_GaussPtsAct
 
   myInsideCursorSettings = theInsideCursorSettings;
 
-  if(theInsideCursorSettings)
+  if(theInsideCursorSettings){
     theInsideCursorSettings->AddObserver(VISU::UpdateInsideSettingsEvent, 
                                         myEventCallbackCommand.GetPointer(), 
                                         myPriority);
+    UpdateInsideCursorSettings();
+  }
 }
 
 void
@@ -907,9 +910,6 @@ VISU_GaussPtsAct
   if(!myInsideCursorSettings || myInsideCursorSettings->GetInitial())
     return;
 
-  if(!myWidgetCtrl || !myWidgetCtrl->GetEnabled())
-    return;
-
   VISU_GaussPointsPL* aPipeline = theActor->GetPipeLine();
 
   SALOME_ExtractGeometry* anExtractGeometry = aPipeline->GetExtractGeometryFilter();
@@ -934,7 +934,7 @@ VISU_GaussPtsAct
   else
     theActor->GetProperty()->SetRepresentation( VTK_SURFACE );
 
-  //aPipeLine->Update();
+  aPipeline->Update();
 
   Update();
 }
@@ -1127,7 +1127,7 @@ VISU_GaussPtsAct1
     theOutsideCursorSettings->AddObserver(VISU::UpdateOutsideSettingsEvent, 
                                          myEventCallbackCommand.GetPointer(), 
                                          myPriority);
-    this->UpdateOutsideCursorSettings();
+    UpdateOutsideCursorSettings();
   }
 }
 
@@ -1138,9 +1138,6 @@ VISU_GaussPtsAct1
   if(!myOutsideCursorSettings || myOutsideCursorSettings->GetInitial())
     return;
 
-  if(!myWidgetCtrl || !myWidgetCtrl->GetEnabled())
-    return;
-
   VISU_GaussPointsPL* aPipeline = myOutsideDeviceActor->GetPipeLine();
 
   SALOME_ExtractGeometry* anExtractGeometry = aPipeline->GetExtractGeometryFilter();