]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To customize debug
authorapo <apo@opencascade.com>
Wed, 17 Jan 2007 08:34:28 +0000 (08:34 +0000)
committerapo <apo@opencascade.com>
Wed, 17 Jan 2007 08:34:28 +0000 (08:34 +0000)
src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx

index 5954c808f9b36a2513dfa14d6c7b4a1a36041573..fba3a746b79a77ebdd4921608121853df8b9bde4 100755 (executable)
@@ -49,6 +49,8 @@
 #include <cmath>
 #include <string>
 
+//#define _DEBUG_RENDERING_PERFORMANCE_
+
 #ifndef GLX_GLXEXT_LEGACY
 #define GLX_GLXEXT_LEGACY
 #endif
@@ -542,13 +544,14 @@ void VISU_OpenGLPointSpriteMapper::RenderPiece(vtkRenderer *ren, vtkActor *act)
        act->GetProperty()->GetMTime() > this->BuildTime ||
        ren->GetRenderWindow() != this->LastWindow)
   {
-    /* To control when the mapper is recalculated
+#ifdef _DEBUG_RENDERING_PERFORMANCE_
+    // To control when the mapper is recalculated
     cout<<"VISU_OpenGLPointSpriteMapper::RenderPiece - "
        <<(this->GetMTime() > this->BuildTime)<<"; "
        <<(input->GetMTime() > this->BuildTime)<<"; "
        <<(act->GetProperty()->GetMTime() > this->BuildTime)<<"; "
        <<endl;
-    */
+#endif
     // sets this->Colors as side effect
     this->MapScalars( act->GetProperty()->GetOpacity() );