0031313: Foundation Classes - Dump improvement for classes
[occt.git] / src / Geom / Geom_Ellipse.cxx
index f272490..8e4c7cc 100644 (file)
@@ -343,3 +343,17 @@ void Geom_Ellipse::Transform (const Trsf& T) {
   minorRadius = minorRadius * Abs(T.ScaleFactor());
   pos.Transform(T);
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+void Geom_Ellipse::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
+{
+  OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_Conic)
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, majorRadius)
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, minorRadius)
+}