From: apo Date: Wed, 7 Dec 2005 09:51:52 +0000 (+0000) Subject: 1. To provide more correct VTK connection manafement. X-Git-Tag: TG-D5-38-2003_D2005-20-12~53 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1c1310c01b725774ecf032182cf8390e6bf70a07;p=modules%2Fvisu.git 1. To provide more correct VTK connection manafement. 2. To update in time outside / inside cursor settings --- 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();