0030949: Foundation Classes - Dump improvement for OCCT classes
[occt.git] / src / SelectMgr / SelectMgr_ViewerSelector.cxx
index 9e467d2..e85c0d8 100644 (file)
@@ -1046,3 +1046,26 @@ void SelectMgr_ViewerSelector::AllowOverlapDetection (const Standard_Boolean the
 {
   mySelectingVolumeMgr.AllowOverlapDetection (theIsToAllow);
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+void SelectMgr_ViewerSelector::DumpJson (Standard_OStream& theOStream, const Standard_Integer) const 
+{
+  DUMP_CLASS_BEGIN (theOStream, SelectMgr_ViewerSelector);
+
+  DUMP_FIELD_VALUE_NUMERICAL (theOStream, preferclosest);
+  DUMP_FIELD_VALUE_NUMERICAL (theOStream, myToUpdateTolerance);
+  DUMP_FIELD_VALUE_NUMERICAL (theOStream, mystored.Extent());
+
+  Standard_Integer aNbOfSelected = 0;
+  for (SelectMgr_SelectableObjectSet::Iterator aSelectableIt (mySelectableObjects); aSelectableIt.More(); aSelectableIt.Next())
+  {
+    aNbOfSelected++;
+  }
+  DUMP_FIELD_VALUE_NUMERICAL (theOStream, aNbOfSelected);
+  DUMP_FIELD_VALUE_NUMERICAL (theOStream, myTolerances.Tolerance());
+  DUMP_FIELD_VALUE_NUMERICAL (theOStream, myTolerances.CustomTolerance());
+  DUMP_FIELD_VALUE_NUMERICAL (theOStream, myZLayerOrderMap.Size());
+}