]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To decrease memory usage
authorapo <apo@opencascade.com>
Thu, 29 Sep 2005 12:32:56 +0000 (12:32 +0000)
committerapo <apo@opencascade.com>
Thu, 29 Sep 2005 12:32:56 +0000 (12:32 +0000)
src/OBJECT/VISU_GaussPtsAct.cxx
src/OBJECT/VISU_GaussPtsAct.h

index cca667be53cd5d79abd4ab6fdb4919efd1126430..5a32287289d2cfd1a4ed7d358af23b24623f2f33 100644 (file)
@@ -220,11 +220,18 @@ VISU_GaussPtsAct
 
 
 //----------------------------------------------------------------------------
-VISU_OpenGLPointSpriteMapper*
+vtkMapper* 
 VISU_GaussPtsAct
-::GetPSMapper()
+::GetMapper()
 {
-  return myDeviceActor->GetPSMapper();
+  return GetPSMapper();
+}
+
+float* 
+VISU_GaussPtsAct
+::GetBounds()
+{
+  return myDeviceActor->GetBounds();
 }
 
 vtkDataSet* 
@@ -234,11 +241,11 @@ VISU_GaussPtsAct
   return GetMapper()->GetInput();
 }
 
-vtkMapper* 
+VISU_OpenGLPointSpriteMapper*
 VISU_GaussPtsAct
-::GetMapper()
+::GetPSMapper()
 {
-  return GetPSMapper();
+  return myDeviceActor->GetPSMapper();
 }
 
 
@@ -370,7 +377,7 @@ VISU_GaussPtsAct
   if(MYDEBUG) MESSAGE("VISU_GaussPtsAct::SetMapperInput - this = "<<this);
 
   myDeviceActor->SetPipeLine(GetGaussPointsPL());
-  vtkLODActor::SetMapper(GetMapper());
+  //vtkLODActor::SetMapper(GetMapper());
 }
 
 void
@@ -1021,6 +1028,7 @@ VISU_GaussPtsAct2
 
   if(VISU_GaussPointsPL* aPipeLine = CreatePipeLine(GetGaussPointsPL())){
     myDeviceActor->SetPipeLine(aPipeLine);
+    myPipeLine = aPipeLine;
   }
 }
 
@@ -1074,7 +1082,7 @@ VISU_GaussPtsAct2
     myDeviceActor->SetVisibility(GetVisibility() && myWidget->IsEnabled());
     break;
   case vtkCommand::EndInteractionEvent:
-    vtkLODActor::SetMapper(GetMapper());
+    //vtkLODActor::SetMapper(GetMapper());
     break;
   default:
     break;
index 7839f05c1f974256d0bc74da65901e4baa2e5914..1abf7cfc92804866e06856c47d654797f7075dd5 100644 (file)
@@ -121,17 +121,21 @@ class VTKOCC_EXPORT VISU_GaussPtsAct : public VISU_ScalarMapAct
   ShallowCopyPL(VISU_PipeLine* thePipeLine);
 
   //----------------------------------------------------------------------------
-  VISU_OpenGLPointSpriteMapper*
-  GetPSMapper();
-
   virtual
   vtkMapper* 
   GetMapper();
 
+  virtual
+  float* 
+  GetBounds();
+
   virtual
   vtkDataSet* 
   GetInput(); 
 
+  VISU_OpenGLPointSpriteMapper*
+  GetPSMapper();
+
   //----------------------------------------------------------------------------
   virtual
   void