Superclass::ShallowCopyPL(thePipeLine);
- VISU_GaussPointsPL* aPipeLine = dynamic_cast<VISU_GaussPointsPL*>(thePipeLine);
+ UpdateInsideCursorSettings();
}
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() );
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();
}
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() );
if(MYDEBUG2) MESSAGE("VISU_GaussPtsAct2::ShallowCopyPL - this = "<<this);
Superclass::ShallowCopyPL(thePipeLine);
- // Restore implicit function
- if(myWidgetCtrl){
- vtkImplicitFunction* aFunction = myWidgetCtrl->ImplicitFunction();
- myDeviceActor->GetPipeLine()->SetImplicitFunction(aFunction);
- }
}