0031505: Point Cloud Rendering - fix on-screen statistics about number of visible...
[occt.git] / src / Graphic3d / Graphic3d_FrameStats.cxx
index eabb962..01e0c65 100644 (file)
@@ -305,6 +305,7 @@ TCollection_AsciiString Graphic3d_FrameStats::FormatStats (Graphic3d_RenderingPa
   if ((theFlags & Graphic3d_RenderingParams::PerfCounters_Groups) != 0
    || (theFlags & Graphic3d_RenderingParams::PerfCounters_GroupArrays) != 0
    || (theFlags & Graphic3d_RenderingParams::PerfCounters_Triangles) != 0
+   || (theFlags & Graphic3d_RenderingParams::PerfCounters_Lines) != 0
    || (theFlags & Graphic3d_RenderingParams::PerfCounters_Points) != 0
    || (!myIsLongLineFormat
     && ((theFlags & Graphic3d_RenderingParams::PerfCounters_Structures) != 0
@@ -338,6 +339,10 @@ TCollection_AsciiString Graphic3d_FrameStats::FormatStats (Graphic3d_RenderingPa
   {
     formatCounter (aBuf, aValWidth, " Triangles: ", aStats[Graphic3d_FrameStatsCounter_NbTrianglesNotCulled], "\n");
   }
+  if ((theFlags & Graphic3d_RenderingParams::PerfCounters_Lines) != 0)
+  {
+    formatCounter (aBuf, aValWidth, "     Lines: ", aStats[Graphic3d_FrameStatsCounter_NbLinesNotCulled], "\n");
+  }
   if ((theFlags & Graphic3d_RenderingParams::PerfCounters_Points) != 0)
   {
     formatCounter (aBuf, aValWidth, "    Points: ", aStats[Graphic3d_FrameStatsCounter_NbPointsNotCulled], "\n");
@@ -437,6 +442,10 @@ void Graphic3d_FrameStats::FormatStats (TColStd_IndexedDataMapOfStringString&
   {
     addInfo (theDict, "Rendered triangles", aStats[Graphic3d_FrameStatsCounter_NbTrianglesNotCulled]);
   }
+  if ((theFlags & Graphic3d_RenderingParams::PerfCounters_Lines) != 0)
+  {
+    addInfo (theDict, "Rendered lines", aStats[Graphic3d_FrameStatsCounter_NbLinesNotCulled]);
+  }
   if ((theFlags & Graphic3d_RenderingParams::PerfCounters_Points) != 0)
   {
     addInfo (theDict, "Rendered points", aStats[Graphic3d_FrameStatsCounter_NbPointsNotCulled]);