]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To apply deformation to segementation and otherwise
authorapo <apo@opencascade.com>
Thu, 1 Dec 2005 13:33:44 +0000 (13:33 +0000)
committerapo <apo@opencascade.com>
Thu, 1 Dec 2005 13:33:44 +0000 (13:33 +0000)
src/OBJECT/VISU_GaussPtsAct.cxx

index 6ea09ae3e673f1d27091d7ecc6332b84e7e5cae2..2d2138222728ebfefbb5e7e351ba40b0f8c52348 100644 (file)
@@ -191,7 +191,7 @@ VISU_GaussPtsAct
 
   Superclass::ShallowCopyPL(thePipeLine);
 
-  VISU_GaussPointsPL* aPipeLine = dynamic_cast<VISU_GaussPointsPL*>(thePipeLine);
+  UpdateInsideCursorSettings();
 }
 
 
@@ -903,6 +903,12 @@ VISU_GaussPtsAct
 
   aPipeline->SetImplicitFunction(anImplicitFunction); // To restore
 
+  if(!myInsideCursorSettings || myInsideCursorSettings->GetInitial())
+    return;
+
+  if(!myWidgetCtrl->GetEnabled())
+    return;
+
   aPipeline->SetPrimitiveType( myInsideCursorSettings->GetPrimitiveType() );
   aPipeline->SetClamp( myInsideCursorSettings->GetClamp() );
   aPipeline->SetImageData( myInsideCursorSettings->GetTexture() );
@@ -958,15 +964,7 @@ VISU_GaussPtsAct1
 
   Superclass::ShallowCopyPL(thePipeLine);
 
-  VISU_GaussPointsPL* aPipeLine = dynamic_cast<VISU_GaussPointsPL*>(thePipeLine);
-
-  myDeviceActor->ShallowCopyPL(aPipeLine);
-
-  // Restore implicit function
-  if(myWidgetCtrl){
-    vtkImplicitFunction* aFunction = myWidgetCtrl->ImplicitFunction();
-    myInsideDeviceActor->GetPipeLine()->SetImplicitFunction(aFunction);
-  }
+  UpdateOutsideCursorSettings();
 }
 
 
@@ -1131,6 +1129,12 @@ VISU_GaussPtsAct1
   anExtractGeometry->SetExtractBoundaryCells(true);
   anExtractGeometry->SetExtractInside(true);
 
+  if(!myOutsideCursorSettings || myOutsideCursorSettings->GetInitial())
+    return;
+
+  if(!myWidgetCtrl->GetEnabled())
+    return;
+
   aPipeline->SetPrimitiveType( myOutsideCursorSettings->GetPrimitiveType() );
   aPipeline->SetClamp( myOutsideCursorSettings->GetClamp() );
   aPipeline->SetImageData( myOutsideCursorSettings->GetTexture() );
@@ -1221,11 +1225,6 @@ VISU_GaussPtsAct2
   if(MYDEBUG2) MESSAGE("VISU_GaussPtsAct2::ShallowCopyPL - this = "<<this);
 
   Superclass::ShallowCopyPL(thePipeLine);
-  // Restore implicit function
-  if(myWidgetCtrl){
-    vtkImplicitFunction* aFunction = myWidgetCtrl->ImplicitFunction();
-    myDeviceActor->GetPipeLine()->SetImplicitFunction(aFunction);
-  }
 }