From 1c1310c01b725774ecf032182cf8390e6bf70a07 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 7 Dec 2005 09:51:52 +0000 Subject: [PATCH] 1. To provide more correct VTK connection manafement. 2. To update in time outside / inside cursor settings --- src/OBJECT/VISU_GaussPtsAct.cxx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/OBJECT/VISU_GaussPtsAct.cxx b/src/OBJECT/VISU_GaussPtsAct.cxx index 8ad1af37..3a284d93 100644 --- a/src/OBJECT/VISU_GaussPtsAct.cxx +++ b/src/OBJECT/VISU_GaussPtsAct.cxx @@ -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(); -- 2.39.2