]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Added a field myPrimitiveType to store a type of the current primitive used to displa... Before_Merging_With_T32x_16Aug2007_16h00m
authorsrn <srn@opencascade.com>
Tue, 7 Aug 2007 07:06:32 +0000 (07:06 +0000)
committersrn <srn@opencascade.com>
Tue, 7 Aug 2007 07:06:32 +0000 (07:06 +0000)
src/PIPELINE/VISU_GaussPointsPL.cxx
src/PIPELINE/VISU_GaussPointsPL.hxx

index dc9bc13715b98ca94c14dbe7e88333feea7293bc..12a895b612e9a2ee1c2c201b9ce815b2d490e562 100644 (file)
@@ -71,6 +71,8 @@ VISU_GaussPointsPL
 
   for(int i = 0; i < 3; i++)
     myPassFilter.push_back(vtkPassThroughFilter::New());
+    
+  myPrimitiveType == VISU_OpenGLPointSpriteMapper::GeomSphere;    
 }
 
 
@@ -417,6 +419,8 @@ VISU_GaussPointsPL
     myPassFilter[2]->SetInput(myPassFilter[1]->GetOutput());
 
   GetPointSpriteMapper()->SetPrimitiveType( thePrimitiveType );
+  
+  myPrimitiveType = thePrimitiveType;
 }
 
 
@@ -425,11 +429,7 @@ int
 VISU_GaussPointsPL
 ::GetPrimitiveType()
 {    
-  if( myPassFilter[2]->GetInput() == myPassFilter[1]->GetOutput() ) {
-    return VISU_OpenGLPointSpriteMapper::GeomSphere;
-  }
-
-  return GetPointSpriteMapper()->GetPrimitiveType();
+  return myPrimitiveType;
 }
 
 
index d8cd2f594e63515a353682cd8b63edb67bbe3031..d489362ce041ee71fa04053aff05feaa25d02517 100644 (file)
@@ -302,6 +302,8 @@ private:
   vtkSphereSource* mySphereSource;
 
   vtkFloatingPointType myMagnificationIncrement;
+
+  int myPrimitiveType;
 };
   
 #endif