]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To remove useless code
authorapo <apo@opencascade.com>
Thu, 6 Oct 2005 05:04:09 +0000 (05:04 +0000)
committerapo <apo@opencascade.com>
Thu, 6 Oct 2005 05:04:09 +0000 (05:04 +0000)
src/OBJECT/VISU_GaussPtsAct.cxx

index a7c686cf34715186bfcdb64ce99c57e3a7c3e339..0a829cad802139ffa320125aaf84af6995122439 100644 (file)
@@ -316,10 +316,11 @@ void
 VISU_GaussPtsAct
 ::SetImplicitFunctionWidget(VISU_ImplicitFunctionWidget* theWidget)
 {
-  if(MYDEBUG) MESSAGE("VISU_GaussPtsAct::SetImplicitFunctionWidget - this = "<<this);
   if(myWidget == theWidget)
     return;
 
+  if(MYDEBUG) MESSAGE("VISU_GaussPtsAct::SetImplicitFunctionWidget - this = "<<this<<"; theWidget = "<<theWidget);
+
   if(myWidget)
     myWidget->RemoveObserver(myEventCallbackCommand.GetPointer());
 
@@ -556,7 +557,7 @@ VISU_GaussPtsAct
            aLookupTable->GetColor(aVal,aColor);
            mySphereActor->GetProperty()->SetColor(aColor);
            //
-           float aPyramidHeight=myPickingSettings->GetPyramidHeight();
+           float aPyramidHeight = myPickingSettings->GetPyramidHeight();
            aPyramidHeight=aPyramidHeight*myGaussPointsPL->GetMaxPointSize();
            myCursorPyramid->Init(aPyramidHeight,
                                  aRadius,
@@ -838,19 +839,6 @@ VISU_GaussPtsAct1
   VISU_GaussPointsPL* aPipeLine = dynamic_cast<VISU_GaussPointsPL*>(thePipeLine);
 
   myInsideDeviceActor->ShallowCopyPL(aPipeLine);
-
-  //myOutsideDeviceActor->ShallowCopyPL(aPipeLine);
-  myOutsideDeviceActor->GetMapper()->ScalarVisibilityOff();
-  myOutsideDeviceActor->GetPipeLine()->SetExtractInside(true);
-
-  // Restore implicit function
-  if(myWidget){
-    vtkImplicitFunction* aFunction = myWidget->ImplicitFunction();
-    
-    myInsideDeviceActor->GetPipeLine()->SetImplicitFunction(aFunction);
-    
-    myOutsideDeviceActor->GetPipeLine()->SetImplicitFunction(aFunction);
-  }
 }
 
 //----------------------------------------------------------------------------
@@ -996,11 +984,6 @@ VISU_GaussPtsAct1
 
   myOutsideDeviceActor->GetProperty()->SetColor(myOutsideCursorSettings->GetColor());
 
-  cout << "UpdateOutsideCursorSettings" << endl;
-  cout << this << endl;
-  cout << myOutsideDeviceActor << endl;
-  cout << aMapper << endl;
-  
   Update();
 }