]> OCCT Git - occt-copy.git/commitdiff
0030268: Inspectors - improvements in VInspector plugin
authornds <nds@opencascade.com>
Thu, 16 Jan 2020 12:16:50 +0000 (15:16 +0300)
committernds <nds@opencascade.com>
Thu, 16 Jan 2020 12:16:50 +0000 (15:16 +0300)
# dump for curve/surface brep structures

103 files changed:
src/BRep/BRep_Curve3D.cxx
src/BRep/BRep_Curve3D.hxx
src/BRep/BRep_CurveOn2Surfaces.cxx
src/BRep/BRep_CurveOn2Surfaces.hxx
src/BRep/BRep_CurveOnClosedSurface.cxx
src/BRep/BRep_CurveOnClosedSurface.hxx
src/BRep/BRep_CurveOnSurface.cxx
src/BRep/BRep_CurveOnSurface.hxx
src/BRep/BRep_CurveRepresentation.cxx
src/BRep/BRep_CurveRepresentation.hxx
src/BRep/BRep_GCurve.cxx
src/BRep/BRep_GCurve.hxx
src/BRep/BRep_PointOnCurve.cxx
src/BRep/BRep_PointOnCurve.hxx
src/BRep/BRep_PointOnCurveOnSurface.cxx
src/BRep/BRep_PointRepresentation.cxx
src/BRep/BRep_PointRepresentation.hxx
src/BRep/BRep_PointsOnSurface.hxx
src/BRep/BRep_Polygon3D.cxx
src/BRep/BRep_Polygon3D.hxx
src/BRep/BRep_PolygonOnClosedSurface.cxx
src/BRep/BRep_PolygonOnClosedSurface.hxx
src/BRep/BRep_PolygonOnClosedTriangulation.cxx
src/BRep/BRep_PolygonOnClosedTriangulation.hxx
src/BRep/BRep_PolygonOnSurface.cxx
src/BRep/BRep_PolygonOnSurface.hxx
src/BRep/BRep_PolygonOnTriangulation.cxx
src/BRep/BRep_PolygonOnTriangulation.hxx
src/BRep/BRep_TEdge.cxx
src/BRep/BRep_TEdge.hxx
src/BRep/BRep_TFace.cxx
src/BRep/BRep_TFace.hxx
src/BRep/BRep_TVertex.cxx
src/BRep/BRep_TVertex.hxx
src/Geom/Geom_BSplineCurve.cxx
src/Geom/Geom_BSplineCurve.hxx
src/Geom/Geom_BSplineSurface.cxx
src/Geom/Geom_BSplineSurface.hxx
src/Geom/Geom_BezierCurve.cxx
src/Geom/Geom_BezierCurve.hxx
src/Geom/Geom_BezierSurface.cxx
src/Geom/Geom_BezierSurface.hxx
src/Geom/Geom_BoundedCurve.cxx
src/Geom/Geom_BoundedCurve.hxx
src/Geom/Geom_Circle.cxx
src/Geom/Geom_Circle.hxx
src/Geom/Geom_Conic.cxx
src/Geom/Geom_Conic.hxx
src/Geom/Geom_ConicalSurface.cxx
src/Geom/Geom_ConicalSurface.hxx
src/Geom/Geom_Curve.cxx
src/Geom/Geom_Curve.hxx
src/Geom/Geom_CylindricalSurface.cxx
src/Geom/Geom_CylindricalSurface.hxx
src/Geom/Geom_ElementarySurface.cxx
src/Geom/Geom_ElementarySurface.hxx
src/Geom/Geom_Ellipse.cxx
src/Geom/Geom_Ellipse.hxx
src/Geom/Geom_Geometry.cxx
src/Geom/Geom_Geometry.hxx
src/Geom/Geom_Hyperbola.cxx
src/Geom/Geom_Hyperbola.hxx
src/Geom/Geom_Line.cxx
src/Geom/Geom_Line.hxx
src/Geom/Geom_OffsetCurve.cxx
src/Geom/Geom_OffsetCurve.hxx
src/Geom/Geom_OffsetSurface.cxx
src/Geom/Geom_OffsetSurface.hxx
src/Geom/Geom_OsculatingSurface.cxx
src/Geom/Geom_OsculatingSurface.hxx
src/Geom/Geom_Parabola.cxx
src/Geom/Geom_Parabola.hxx
src/Geom/Geom_Plane.cxx
src/Geom/Geom_Plane.hxx
src/Geom/Geom_RectangularTrimmedSurface.cxx
src/Geom/Geom_RectangularTrimmedSurface.hxx
src/Geom/Geom_SphericalSurface.cxx
src/Geom/Geom_SphericalSurface.hxx
src/Geom/Geom_Surface.cxx
src/Geom/Geom_Surface.hxx
src/Geom/Geom_SurfaceOfLinearExtrusion.cxx
src/Geom/Geom_SurfaceOfLinearExtrusion.hxx
src/Geom/Geom_SurfaceOfRevolution.cxx
src/Geom/Geom_SurfaceOfRevolution.hxx
src/Geom/Geom_SweptSurface.cxx
src/Geom/Geom_SweptSurface.hxx
src/Geom/Geom_ToroidalSurface.cxx
src/Geom/Geom_ToroidalSurface.hxx
src/Geom/Geom_TrimmedCurve.cxx
src/Geom/Geom_TrimmedCurve.hxx
src/Geom2d/Geom2d_Geometry.cxx
src/Geom2d/Geom2d_Geometry.hxx
src/Poly/Poly_Polygon2D.cxx
src/Poly/Poly_Polygon2D.hxx
src/Poly/Poly_Polygon3D.cxx
src/Poly/Poly_Polygon3D.hxx
src/Poly/Poly_PolygonOnTriangulation.cxx
src/Poly/Poly_PolygonOnTriangulation.hxx
src/Poly/Poly_Triangulation.cxx
src/TopoDS/TopoDS_TShape.cxx
src/TopoDS/TopoDS_TShape.hxx
src/gp/gp_Pnt2d.cxx
src/gp/gp_Pnt2d.hxx

index 86a06deab875e947c3b9007b6e1323d2e8c17465..bc7f8d85ae00e889371a5eb66d62da45406c76ac 100644 (file)
@@ -92,3 +92,17 @@ Handle(BRep_CurveRepresentation) BRep_Curve3D::Copy() const
   C->SetRange(First(), Last());
   return C;
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void BRep_Curve3D::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_Curve3D);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, BRep_GCurve);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myCurve.get());
+}
index e459d1ddffb406c027bcfc2038cbea1b4df5e453..4909ff4c5b68203f9f8e5fc7dbbb0bd982130dc2 100644 (file)
@@ -54,6 +54,8 @@ public:
   //! Return a copy of this representation.
   Standard_EXPORT Handle(BRep_CurveRepresentation) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 1ce978e4668d41683bb676b38f12bbd57e814e9f..37bde7daafa804456fe79e4883aa22dda2dedb10 100644 (file)
@@ -147,3 +147,21 @@ Handle(BRep_CurveRepresentation) BRep_CurveOn2Surfaces::Copy() const
                          myContinuity);
   return C;
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void BRep_CurveOn2Surfaces::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_CurveOn2Surfaces);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, BRep_CurveRepresentation);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, mySurface.get());
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, mySurface2.get());
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myLocation2);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myContinuity);
+}
index 867423ff2494f181eb45afe1194683553559f619..ab9784b58500ac0c228cb325cd6642ea75cc94f2 100644 (file)
@@ -66,6 +66,8 @@ public:
   //! Return a copy of this representation.
   Standard_EXPORT Handle(BRep_CurveRepresentation) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 5f0b0289316fc103ddd60e78449475953a056e6d..e1f1312d60a793f16ec0df3fdd527c1bd6e04f63 100644 (file)
@@ -180,4 +180,21 @@ void  BRep_CurveOnClosedSurface::Update()
   BRep_CurveOnSurface::Update();
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void BRep_CurveOnClosedSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_CurveOnClosedSurface);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, BRep_CurveOnSurface);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myPCurve2.get());
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myContinuity);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myUV21);
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myUV22);
+}
 
index 5bed28216b61f89f2a5772307f6668d50ed7f837..96e5f22efff6538b4cd484f63b2b8bae7f09649e 100644 (file)
@@ -78,6 +78,8 @@ public:
   //! This is called when the range is modified.
   Standard_EXPORT virtual void Update() Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index f5f6cd377bcd2c1d7c0e19efeb69ac8d1e1c2091..8986686ef024ada767fc5ef606d57fd89a32c726 100644 (file)
@@ -146,4 +146,21 @@ void  BRep_CurveOnSurface::Update()
   }
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void BRep_CurveOnSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_CurveOnSurface);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, BRep_GCurve);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myUV1);
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myUV2);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myPCurve.get());
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, mySurface.get());
+}
 
index baece2ff34fa45d8cee9568c8a357ed4549996e7..a4147170ae65198ec153de96522f9a866f28d753 100644 (file)
@@ -71,6 +71,8 @@ public:
   //! This is called when the range is modified.
   Standard_EXPORT virtual void Update() Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 63ed95bf1154fe7ed004b5e1f7c88d43777dd6bd..78d672761180dcee7dca70df388df3232391515f 100644 (file)
@@ -426,3 +426,14 @@ void BRep_CurveRepresentation::Polygon2(const Handle(Poly_Polygon2D)&)
   throw Standard_DomainError("BRep_CurveRepresentation");
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void BRep_CurveRepresentation::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_CurveRepresentation);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myLocation);
+}
index 354eaa395fa0691c052f44482de86190f6b45b79..3b238ca4d9074b6db97ec1b3ab3425e1f18c29b5 100644 (file)
@@ -144,6 +144,8 @@ public:
   //! Return a copy of this representation.
   Standard_EXPORT virtual Handle(BRep_CurveRepresentation) Copy() const = 0;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const;
 
 
 
index 22c36ccfe47a1466a0136870790afbec336bc1ca..5cd6f936b431de3472ee068ab63c901b35ede8bc 100644 (file)
@@ -46,3 +46,17 @@ void BRep_GCurve::Update()
   
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void BRep_GCurve::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_GCurve);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, BRep_CurveRepresentation);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myFirst);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myLast);
+}
index 1d2c4d5433566b2eaa8af38ac5c666371da38a0a..f57f8f7993766e3d96e9b94141decf2d118bf6df 100644 (file)
@@ -57,6 +57,8 @@ public:
   //! This is called when the range is modified.
   Standard_EXPORT virtual void Update();
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 737c7c1f2b3014dd2214f24d953a4a7390ae9fe6..a81f4890e98a2df2e877721415ec869ef5430fd3 100644 (file)
@@ -80,4 +80,17 @@ void  BRep_PointOnCurve::Curve(const Handle(Geom_Curve)& C)
   myCurve = C;
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void BRep_PointOnCurve::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_PointOnCurve);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, BRep_PointRepresentation);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myCurve.get());
+}
 
index 3e22ee967c06d2f62a73e8e6d879b9cd2c31d0cb..800dade4cc5d1018689f59ef1c250301a4d7071d 100644 (file)
@@ -48,6 +48,8 @@ public:
   
   Standard_EXPORT virtual void Curve (const Handle(Geom_Curve)& C) Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index d82010bd17854a902a27d975dd0bb76719e54e1f..63d609a36543f6b8e27702c76ac0453aaa1ac011 100644 (file)
@@ -84,4 +84,17 @@ void  BRep_PointOnCurveOnSurface::PCurve(const Handle(Geom2d_Curve)& C)
   myPCurve = C;
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void BRep_PointOnCurveOnSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_PointOnCurveOnSurface);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, BRep_PointRepresentation);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, mySurface.get());
+}
 
index 397320651ab657fb18b19e52f732823df8864d4f..d0395e9f3dc608a4369ff861b294ffa6eabca196 100644 (file)
@@ -197,4 +197,16 @@ void  BRep_PointRepresentation::Surface(const Handle(Geom_Surface)& )
   throw Standard_DomainError("BRep_PointRepresentation");
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void BRep_PointRepresentation::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_PointRepresentation);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myLocation);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myParameter);
+}
 
index 22c24b0d637eaa1a602dc0f6438cbf4ece829874..5e49a1bf0b06dc6b5c65c433a8234be8892e9179 100644 (file)
@@ -84,6 +84,8 @@ public:
   
   Standard_EXPORT virtual void Surface (const Handle(Geom_Surface)& S);
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const;
 
 
 
index 83f23f64edcaabbbcf328b2fa0da26ed303e4393..600cf7223ffdbb6cbbcdf7bfc79e3fefbd19c8bb 100644 (file)
@@ -40,6 +40,8 @@ public:
   
   Standard_EXPORT virtual void Surface (const Handle(Geom_Surface)& S) Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 921a4ed1f9ec39bdc9d3fd5b5dc6f42985b6c0d7..786ec297ce88eb1d48e881111fc6a1dc15d4df44 100644 (file)
@@ -76,3 +76,16 @@ Handle(BRep_CurveRepresentation) BRep_Polygon3D::Copy() const
   return P;
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void BRep_Polygon3D::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_Polygon3D);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, BRep_CurveRepresentation);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myPolygon3D.get());
+}
index ff5e6d8d95e5d16f2312cf1a7621a74e554973fa..9edba72311ea25be8d5cf98eaf3bad4a9a5fd27e 100644 (file)
@@ -50,6 +50,8 @@ public:
   //! Return a copy of this representation.
   Standard_EXPORT Handle(BRep_CurveRepresentation) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 8696bb816427dda634e2c00c48c283daaba4699b..41a1f49677d5c958a158e70d3f53b97d9dd71c80 100644 (file)
@@ -79,3 +79,16 @@ Handle(BRep_CurveRepresentation) BRep_PolygonOnClosedSurface::Copy() const
   return P;
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+void BRep_PolygonOnClosedSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_PolygonOnClosedSurface);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, BRep_PolygonOnSurface);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myPolygon2.get());
+}
+
index 79ee1ec63364655442c1c7d9b06e444cc6c7a753..7b1739f84cfbd459837408570e02b10d4cc21f00 100644 (file)
@@ -51,6 +51,8 @@ public:
   //! Return a copy of this representation.
   Standard_EXPORT virtual Handle(BRep_CurveRepresentation) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 83bcc2bac59ee5868da96907342a5576b5fd2667..d75f232913c3ec932aca40cb7a86d0601a8fdada 100644 (file)
@@ -84,3 +84,16 @@ Handle(BRep_CurveRepresentation) BRep_PolygonOnClosedTriangulation::Copy() const
   return P;
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void BRep_PolygonOnClosedTriangulation::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_PolygonOnClosedTriangulation);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, BRep_PolygonOnTriangulation);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myPolygon2.get());
+}
index bc9eba85a5ef189b367dc7ecaa33cfa098fa0fc1..345f40af4543c429b5cc78ce61a2d8615ad6367c 100644 (file)
@@ -51,6 +51,8 @@ public:
   //! Return a copy of this representation.
   Standard_EXPORT virtual Handle(BRep_CurveRepresentation) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 197b5b8fa4b1f4747d38d6fb0842a43a15b10bb4..40ef3b48f3e31da42554e7f6a260ca6e8ddc384f 100644 (file)
@@ -102,3 +102,17 @@ Handle(BRep_CurveRepresentation) BRep_PolygonOnSurface::Copy() const
   return P;
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void BRep_PolygonOnSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_PolygonOnSurface);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, BRep_CurveRepresentation);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myPolygon2D.get());
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, mySurface.get());
+}
index b0c165798e97e770a4d9b70db4aef416b66ce0e8..5fef98b137378a0b43c200222b3991d9c116723e 100644 (file)
@@ -59,6 +59,8 @@ public:
   //! Return a copy of this representation.
   Standard_EXPORT virtual Handle(BRep_CurveRepresentation) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 24beb3dc9a21b5933203bafd3801082e9f1eec5e..b5d6ae81bd7f1bafe715bbd0b88cd48f34f086f3 100644 (file)
@@ -104,3 +104,18 @@ Handle(BRep_CurveRepresentation) BRep_PolygonOnTriangulation::Copy() const
   
   return P;
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void BRep_PolygonOnTriangulation::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_PolygonOnTriangulation);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, BRep_CurveRepresentation);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myPolygon.get());
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myTriangulation.get());
+}
index b400ea9d74c61f2cee74dc15f34a83727d7c69c4..f270971135af26472bd4b0e218ea5a156ae6c32e 100644 (file)
@@ -58,6 +58,8 @@ public:
   //! Return a copy of this representation.
   Standard_EXPORT virtual Handle(BRep_CurveRepresentation) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index e8d3be2ed76a6aaf446cbe308410865caf806803..66ce90f397e14b247bc3f66bdf54d7590d9efa1b 100644 (file)
@@ -141,3 +141,26 @@ Handle(TopoDS_TShape) BRep_TEdge::EmptyCopy() const
   return TE;
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void BRep_TEdge::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_TEdge);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TopoDS_TEdge);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myTolerance);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myFlags);
+
+  BRep_ListIteratorOfListOfCurveRepresentation itr(myCurves);
+  while (itr.More())
+  {
+    Handle(BRep_CurveRepresentation) aCurveRepresentation = itr.Value();
+    OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, aCurveRepresentation.get());
+
+    itr.Next();
+  }
+}
index 2bd0642fb83b00a71ca736996ac3232203476346..27a11cc62718de2339da655647ebf9605642ff2c 100644 (file)
@@ -81,7 +81,8 @@ public:
   //! Returns a copy  of the  TShape  with no sub-shapes.
   Standard_EXPORT Handle(TopoDS_TShape) EmptyCopy() const Standard_OVERRIDE;
 
-
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
   DEFINE_STANDARD_RTTIEXT(BRep_TEdge,TopoDS_TEdge)
index 30c2b3c952b14f075e09f8d182f185fb16e88d8c..d7dbe4a0dc5a0f9732212559b872f3a0a973c68d 100644 (file)
@@ -50,3 +50,21 @@ Handle(TopoDS_TShape) BRep_TFace::EmptyCopy() const
   TF->Tolerance(myTolerance);
   return TF;
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+void BRep_TFace::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_TFace);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TopoDS_TFace);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, mySurface.get());
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myTriangulation.get());
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myLocation);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myTolerance);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myNaturalRestriction);
+}
index c24337de47a4b6e264566505aed12be2a5749088..118d1e488c645b7e37b07d5ea44b872578f69f14 100644 (file)
@@ -88,6 +88,8 @@ public:
   //! The new Face has no triangulation.
   Standard_EXPORT virtual Handle(TopoDS_TShape) EmptyCopy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 86145ced1ac11d3103e52f37e6350f9a2854e4aa..ff5fb6a5233f73aa7fc713285af201a26967258c 100644 (file)
@@ -47,3 +47,37 @@ Handle(TopoDS_TShape) BRep_TVertex::EmptyCopy() const
   return TV;
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void BRep_TVertex::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_TVertex);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TopoDS_TEdge);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myTolerance);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myFlags);
+
+  BRep_ListIteratorOfListOfCurveRepresentation itr(myCurves);
+  while (itr.More())
+  {
+    Handle(BRep_CurveRepresentation) aCurveRepresentation = itr.Value();
+    OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, aCurveRepresentation.get());
+
+    itr.Next();
+  }
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPnt);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myTolerance);
+  BRep_ListIteratorOfListOfPointRepresentation itr(myPoints);
+  while (itr.More())
+  {
+    Handle(BRep_PointRepresentation) aPointRepresentation = itr.Value();
+    OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, aPointRepresentation.get());
+
+    itr.Next();
+  }
+}
index 9729fb52f6e7a50c494751a91fc30a1d0d978c00..ff7d4c4670f6c60d38ebc02b5f8c9862ec712458 100644 (file)
@@ -62,6 +62,8 @@ public:
   //! Returns a copy  of the  TShape  with no sub-shapes.
   Standard_EXPORT Handle(TopoDS_TShape) EmptyCopy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 87e6c9fe5f5604ab4889f9dd8be5fca41430586f..cdeaa4ca42d13c9ac4fd937e45738d66a287e5d8 100644 (file)
@@ -1120,3 +1120,34 @@ void Geom_BSplineCurve::PeriodicNormalization(Standard_Real&  Parameter) const
   }
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+void Geom_BSplineCurve::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_BSplineCurve);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_BoundedCurve);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, rational);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, periodic);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, knotSet);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, smooth);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, deg);
+  if (!poles.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, poles->Size());
+
+  if (!weights.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, weights->Size());
+  if (!flatknots.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, flatknots->Size());
+  if (!knots.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, knots->Size());
+  if (!mults.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, mults->Size());
+
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, maxderivinv);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, maxderivinvok);
+}
index ae036654eaf8cd4be579576a3ad92f837c2e37b3..f7c79716a8c7c65f41dd51479b54d3b3d6c34cad 100644 (file)
@@ -786,6 +786,8 @@ public:
   //! Comapare two Bspline curve on identity;
   Standard_EXPORT Standard_Boolean IsEqual (const Handle(Geom_BSplineCurve)& theOther, const Standard_Real thePreci) const;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index f4dbe4f15077aab48e2ff5860633972d444af42d..73233d166435e202c2faa0cc156894e6ecc4662f 100644 (file)
@@ -1272,3 +1272,47 @@ void Geom_BSplineSurface::SetWeightRow
   Rational(Weights, urational, vrational);
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_BSplineSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_BSplineSurface);
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_BoundedSurface);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, urational);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, vrational);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, uperiodic);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, vperiodic);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, uknotSet);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, vknotSet);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, Usmooth);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, Vsmooth);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, udeg);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, vdeg);
+
+  if (!poles.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, poles->Size());
+  if (!weights.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, weights->Size());
+  if (!ufknots.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ufknots->Size());
+  if (!vfknots.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, vfknots->Size());
+
+  if (!uknots.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, uknots->Size());
+  if (!vknots.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, vknots->Size());
+  if (!umults.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, umults->Size());
+  if (!vmults.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, vmults->Size());
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, umaxderivinv);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, vmaxderivinv);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, maxderivinvok);
+}
index 40decdef994aeca57947b582083d8dffc0cbbba7..53cae3afd7ac2a1c91aea60e7c02715644c313fd 100644 (file)
@@ -1190,6 +1190,8 @@ public:
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
   DEFINE_STANDARD_RTTIEXT(Geom_BSplineSurface,Geom_BoundedSurface)
index e25133dcadcf1849aa2f85e8a073a26653c7ec79..f66b237e961e951d94bb3d42af263f2a7ad1ef05 100644 (file)
@@ -812,3 +812,25 @@ void Geom_BezierCurve::Init
     weights.Nullify();
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_BezierCurve::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_BezierCurve);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_BoundedCurve);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, rational);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, closed);
+  if (!poles.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, poles->Size());
+  if (!weights.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, weights->Size());
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, maxderivinv);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, maxderivinvok);
+}
+
index 38cf01356641a744915f487dfc775395e72eac4e..6a10f14db3117d398278db9c87be2bbe3e6c8ff1 100644 (file)
@@ -333,6 +333,8 @@ public:
   //! Creates a new object which is a copy of this Bezier curve.
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index c6ede954d4f4b6389a7c7b738b32c53df2cf9662..ca5a27557d87c9a0a1e2b1092701de37e004af6f 100644 (file)
@@ -1937,3 +1937,24 @@ void Geom_BezierSurface::Init
     weights.Nullify();
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_BezierSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_BezierSurface);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_BoundedSurface);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, urational);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, vrational);
+  if (!poles.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, poles->Size());
+  if (!weights.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, weights->Size());
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, umaxderivinv);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, vmaxderivinv);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, maxderivinvok);
+}
index 0519edf9bcfbfde188d4775ec02d4aebef9b122c..db6716c349a4fdcb05da68a4b886bfc72f0bfbed 100644 (file)
@@ -584,7 +584,8 @@ public:
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
 
-
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
   DEFINE_STANDARD_RTTIEXT(Geom_BezierSurface,Geom_BoundedSurface)
 
index 8dffe7a043e06d0963508c7a07a86ce122dff65d..e0c3a53477c2618be63b557c383a748a01f32788 100644 (file)
 #include <gp_Pnt.hxx>
 #include <Standard_Type.hxx>
 
-IMPLEMENT_STANDARD_RTTIEXT(Geom_BoundedCurve,Geom_Curve)
\ No newline at end of file
+IMPLEMENT_STANDARD_RTTIEXT(Geom_BoundedCurve,Geom_Curve)
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_BoundedCurve::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_BoundedCurve);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_Curve);
+}
index 7af31bd6d2ba72aae02fc1c0b9367b52175ab889..e9b71a4bd2d89c2bd55a0439ef0f05ac592a31b5 100644 (file)
@@ -55,6 +55,8 @@ public:
   Standard_EXPORT virtual gp_Pnt StartPoint() const = 0;
 
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
   DEFINE_STANDARD_RTTIEXT(Geom_BoundedCurve,Geom_Curve)
index 2ed3d420c9c9677b052314a6d92705125d5c3e48..bd6f58492ee5606657a22cbbe2cc0105e7f02fca 100644 (file)
@@ -234,3 +234,17 @@ void Geom_Circle::Transform (const Trsf& T) {
    radius = radius * Abs(T.ScaleFactor());
    pos.Transform (T);
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_Circle::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_Circle);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_Conic);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, radius);
+}
index 4b75cb1f3591bae4637b1102774028ffa09a75d3..60d45592765fec7dc2b8d52d4f30a79c5be8535f 100644 (file)
@@ -158,6 +158,8 @@ public:
   //! Creates a new object which is a copy of this circle.
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index c5a12b6cada97b1c17b206e6702486e03ca7d581..32280131a3901cbbbc3ac61e626277268fedc7e4 100644 (file)
@@ -61,3 +61,9 @@ Ax1 Geom_Conic::YAxis () const {return Ax1(pos.Location(), pos.YDirection());}
 
 Standard_Boolean Geom_Conic::IsCN (const Standard_Integer ) const { return Standard_True; }
 
+void Geom_Conic::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_Conic);
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_Curve);
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &pos);
+}
index 7dad5062b842350ce663f6749c645a552fe3144a..461ca99c770b7d3fb555ebc5df374e2ca6ca487a 100644 (file)
@@ -136,6 +136,8 @@ public:
   //! Raised if N < 0.
   Standard_EXPORT Standard_Boolean IsCN (const Standard_Integer N) const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 5dd0e7029b393ebd8c683ec526cb9baa66367735..05ab7e34ab4fe63d57db1ae5ae9633eca7598444 100644 (file)
@@ -433,3 +433,17 @@ const
   return T2;
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_ConicalSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_ConicalSurface);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_ElementarySurface);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, radius);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, semiAngle);
+}
index 5db22203b8138d2ae7c0c00f8b04046cc11c1a13..ee62f67e320429873658ef9bacd0931875da9e13 100644 (file)
@@ -283,6 +283,8 @@ public:
   //! Creates a new object which is a copy of this cone.
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 6f0ba329a54f03220f4de6cc3e671c9b05075c97..3def1d91f45486f99ce11b09215415b364be7345 100644 (file)
@@ -88,4 +88,15 @@ Standard_Real Geom_Curve::ParametricTransformation(const gp_Trsf& ) const
   return 1.;
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_Curve::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_Curve);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_Geometry);
+}
 
index 4ec6137d2c9a0c6c658e6e86f6070b2243e97a93..8026e1fbfe36754948d24d7b356eb104d9651e39 100644 (file)
@@ -225,6 +225,8 @@ public:
   //! derivative on the basis curve and the offset direction are parallel.
   Standard_EXPORT gp_Pnt Value (const Standard_Real U) const;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index dd500cb31986c8f117b830ed97045b9474dabf09..2319217689a905c100b51d5471f924528b42be1f 100644 (file)
@@ -374,3 +374,18 @@ const
   T2.SetAffinity(Axis, Abs(T.ScaleFactor()));
   return T2;
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_CylindricalSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_CylindricalSurface);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_ElementarySurface);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, radius);
+}
+
index 8f4ae4dabc9dae6a61d1e91b21496cc1db4f5dc5..ba6e84dae1ff525321cb380e607ab6592d7a71d7 100644 (file)
@@ -212,6 +212,8 @@ public:
   //! Creates a new object which is a copy of this cylinder.
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index a111852617febf4d7452bddb9c79378db04a519f..46c60a9b9f49d7ad436c5a7edff137bf81b3b010 100644 (file)
@@ -146,3 +146,16 @@ void Geom_ElementarySurface::VReverse () {
 }
 
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_ElementarySurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_ElementarySurface);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_Surface);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &pos);
+}
index ef82db27a80e7127d8224ee60ee862e50df6b780..c3474f7b90c505a50cd839623393050669bf3fb9 100644 (file)
@@ -139,6 +139,8 @@ public:
   //! Returns True.
   Standard_EXPORT Standard_Boolean IsCNv (const Standard_Integer N) const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index f272490102f692146d26ae687f81f93a0e44a7a4..a03b0dab8c74d778a6683a68d72b23084fce3a34 100644 (file)
@@ -343,3 +343,18 @@ 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, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_Ellipse);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_Conic);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, majorRadius);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, minorRadius);
+}
index 845c1a76b68af25092b8ea89edc4cd9708268659..75ff0a85ef3850d5aa649538f92f0947e6d1c77f 100644 (file)
@@ -220,6 +220,8 @@ public:
   //! Creates a new object which is a copy of this ellipse.
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 955bd5942db7c096eb4952b2a5e4956f781f2db3..8cf735462da27d3d68c2ffa31a72bde85e1036bc 100644 (file)
@@ -165,3 +165,8 @@ Handle(Geom_Geometry) Geom_Geometry::Translated (const gp_Pnt& P1, const gp_Pnt&
 }
 
 
+void Geom_Geometry::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_Geometry);
+}
+
index 4b6799a5506882c617cbf75911367439c2355645..a24fe642c067aad5d3e5fdcd371ff86235494de1 100644 (file)
@@ -119,6 +119,8 @@ public:
   Standard_EXPORT virtual Handle(Geom_Geometry) Copy() const = 0;
 
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const;
 
 
   DEFINE_STANDARD_RTTIEXT(Geom_Geometry,Standard_Transient)
index 9c06858b5bfe36b9aaa08f8ae97b0ddd6cbbef15..8b731cb775ddfcff8326da696d5d28987c42ae2f 100644 (file)
@@ -388,3 +388,18 @@ void Geom_Hyperbola::Transform (const Trsf& T) {
   minorRadius = minorRadius * Abs(T.ScaleFactor());
   pos.Transform(T);
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_Hyperbola::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_Hyperbola);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_Conic);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, majorRadius);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, minorRadius);
+}
index 19023092b074d06f256fa4baa1e64f4b7e6fa0da..982beb27f5d8cf7262f04afcd35665368a111214 100644 (file)
@@ -276,6 +276,8 @@ public:
   //! Creates a new object which is a copy of this hyperbola.
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index de103abf451b7e22a34591ce10208ca83c4bcbf0..336e9394caeb29f3500b74cacdd9069dc41d30e1 100644 (file)
@@ -251,4 +251,16 @@ Standard_Real Geom_Line::ParametricTransformation(const gp_Trsf& T) const
   return Abs(T.ScaleFactor());
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_Line::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_Line);
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_Curve);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &pos);
+}
 
index 77355dbec8908c75d83ddb57bf60ffd7c05690f2..1f586b672e1552056d4ef64e6fa12a8636f1bf49 100644 (file)
@@ -179,6 +179,8 @@ public:
   //! Creates a new object which is a copy of this line.
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 5bdffddbf0d0b99584ed2516cf8f553f0649b27e..42664d651c4b99466d3bfbf87d8ecd8d44490046 100644 (file)
@@ -444,3 +444,21 @@ GeomAbs_Shape Geom_OffsetCurve::GetBasisCurveContinuity() const
 {
   return myBasisCurveContinuity;
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+void Geom_OffsetCurve::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_OffsetCurve);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_Curve);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, basisCurve.get());
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &direction);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, offsetValue);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myBasisCurveContinuity);
+  //Handle(GeomEvaluator_OffsetCurve) myEvaluator;
+}
index a195a85e92ad4c305f482b76e8018e4086b2885a..fd1e0cca816ea95eef75d1f416b0c9d70f72e2bc 100644 (file)
@@ -281,6 +281,8 @@ public:
   //! Returns continuity of the basis curve.
   Standard_EXPORT GeomAbs_Shape GetBasisCurveContinuity() const;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 207deca32d79d88a142f2b5bde825fb0fb60a435..de315999ebd07784c2d6cddd029d91aa87237c63 100644 (file)
@@ -966,3 +966,23 @@ Standard_Boolean Geom_OffsetSurface::VOsculatingSurface(const Standard_Real U, c
 {
   return !myOscSurf.IsNull() && myOscSurf->VOscSurf(U, V, t, L);
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_OffsetSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_OffsetSurface);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_Surface);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, basisSurf.get());
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, equivSurf.get());
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, offsetValue);
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myOscSurf.get());
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myBasisSurfContinuity);
+  //OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myEvaluator.get());
+}
index c568f3abac5440cd19ab42b7fda374e88617fa21..8f5b16a3023a562752a971331b7739fa371c50b2 100644 (file)
@@ -357,6 +357,9 @@ public:
   inline GeomAbs_Shape GetBasisSurfContinuity() const
   { return myBasisSurfContinuity; }
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
+
   DEFINE_STANDARD_RTTIEXT(Geom_OffsetSurface,Geom_Surface)
 
 private:
index da2a54df775fc98f0f9f46feb7967e26284cfa14..54936b37dc2af1e652fbe91b7f669150370d3f2c 100644 (file)
@@ -799,5 +799,24 @@ void Geom_OsculatingSurface::ClearOsculFlags()
 
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
 
+void Geom_OsculatingSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_OsculatingSurface);
 
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myBasisSurf.get());
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myTol);
+
+  if (!myOsculSurf1.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myOsculSurf1->Size());
+  if (!myOsculSurf2.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myOsculSurf2->Size());
+  if (!myKdeg.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myKdeg->Size());
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myAlong.Size());
+}
index b96fcd2f2ca4da0d06bd65c0edc9449fc14ef489..ffe671866de7a71dcb5ae25288d8fd7db1fa0778 100644 (file)
@@ -65,6 +65,9 @@ public:
   //! along V at the point U,V.
   Standard_EXPORT Standard_Boolean VOscSurf (const Standard_Real U, const Standard_Real V, Standard_Boolean& t, Handle(Geom_BSplineSurface)& L) const;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const;
+
 
   DEFINE_STANDARD_RTTIEXT(Geom_OsculatingSurface,Standard_Transient)
 
index 4115c294b3ad70e565b655958c648f3713a9a5a5..e37b6f4576eab9af79bbc92600bfcd321949ed8a 100644 (file)
@@ -306,4 +306,18 @@ Standard_Real Geom_Parabola::ParametricTransformation(const gp_Trsf& T) const
   return Abs(T.ScaleFactor());
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_Parabola::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_Parabola);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_Conic);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, focalLength);
+}
+
 
index 8757c5594b8530184e4d4777be6ad90b61a0d579..2cab9ae1a8aeba7511a3e961a3720de1420c29aa 100644 (file)
@@ -223,6 +223,8 @@ public:
   //! Creates a new object which is a copy of this parabola.
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 65188e4f4ce5a9a6d4ae398b487f9d4094274bae..f22674987f12be28c3d0b22ab03e4c7adbe5dea4 100644 (file)
@@ -381,3 +381,15 @@ gp_GTrsf2d Geom_Plane::ParametricTransformation(const gp_Trsf& T) const
   T2.SetScale(gp::Origin2d(), Abs(T.ScaleFactor()));
   return gp_GTrsf2d(T2);
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_Plane::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_Plane);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_ElementarySurface);
+}
index 07caac24454a85ee76573aa9cfe22a33fa74151c..d23135b09232db0734462437b40569a785fba58a 100644 (file)
@@ -218,6 +218,8 @@ public:
   //! Creates a new object which is a copy of this plane.
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index eec0b8aeca012cca7d903d16b8861f8ceda2a682..c74df46715fdc8cec3352c10fb3ee846d4a498d9 100644 (file)
@@ -653,3 +653,23 @@ gp_GTrsf2d Geom_RectangularTrimmedSurface::ParametricTransformation
   return basisSurf->ParametricTransformation(T);
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_RectangularTrimmedSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_RectangularTrimmedSurface);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_BoundedSurface);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, basisSurf.get());
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, utrim1);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, vtrim1);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, utrim2);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, vtrim2);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, isutrimmed);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, isvtrimmed);
+}
index 857797370bc2081f27819ab1495e4ed4ee779054..a8329247f90b5f5055936f6131b48693239a4ab6 100644 (file)
@@ -306,6 +306,8 @@ public:
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
   DEFINE_STANDARD_RTTIEXT(Geom_RectangularTrimmedSurface,Geom_BoundedSurface)
index a373e59b7a57b387ceec00d89397325326887012..a4484b0d791b079bbdc092850c57ea00b6b54a81 100644 (file)
@@ -360,3 +360,17 @@ void Geom_SphericalSurface::Transform (const Trsf& T) {
    radius = radius * Abs(T.ScaleFactor());
    pos.Transform (T);
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_SphericalSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_SphericalSurface);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_ElementarySurface);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, radius);
+}
index 827a4686738b8edf38bb904ee617614235d7bea7..e4c10330c47f5483d2165d73ba1a009142bacf2b 100644 (file)
@@ -221,6 +221,8 @@ public:
   //! Creates a new object which is a copy of this sphere.
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index d01f1a9979c81d59491a44deb2d03dd1d40cd540..2ddc39566d69e949df35be7e498147f57522de63 100644 (file)
@@ -122,3 +122,15 @@ gp_Pnt  Geom_Surface::Value(const Standard_Real U,
   D0(U,V,P);
   return P;
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_Surface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_Surface);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_Geometry);
+}
index a9faaf62996f904926e52e05380b261e0b040e90..5e330bf5f96175da6d6f1a0e57312895edb9f3ac 100644 (file)
@@ -277,6 +277,8 @@ public:
   Standard_EXPORT gp_Pnt Value (const Standard_Real U, const Standard_Real V) const;
 
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
   DEFINE_STANDARD_RTTIEXT(Geom_Surface,Geom_Geometry)
index 62d816d99490609959bb35c1a6e16e47425c8f0d..a184d2c795482c3558a8d60ec7b160d642b21bb4 100644 (file)
@@ -391,3 +391,17 @@ gp_GTrsf2d Geom_SurfaceOfLinearExtrusion::ParametricTransformation
  
   return TU * TV;
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_SurfaceOfLinearExtrusion::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_SurfaceOfLinearExtrusion);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_SweptSurface);
+
+  //Handle(GeomEvaluator_SurfaceOfExtrusion) myEvaluator;
+}
index e0fb9d2f2f2c46921f1daacb0f1a5eab503c275e..110ed2128f9544c75877681ab8748db80467199b 100644 (file)
@@ -249,6 +249,9 @@ public:
   //! Creates a new object which is a copy of this surface of linear extrusion.
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
+
 
 
 
index d1b86e43e9c3492a9e65fb849762aad935c630e0..0e16233f321dde33ba87f7e45ed9ee0b8bf39f90 100644 (file)
@@ -457,3 +457,17 @@ gp_GTrsf2d Geom_SurfaceOfRevolution::ParametricTransformation
   return T2;
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_SurfaceOfRevolution::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_SurfaceOfRevolution);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_SweptSurface);
+
+  //Handle(GeomEvaluator_SurfaceOfRevolution) myEvaluator;
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &loc);
+}
index e83528e7329a7b6674334968cec7984d394e727e..d071d4a12840328f90011391d3ba87f9eb3eaa39 100644 (file)
@@ -303,6 +303,9 @@ public:
   //! Creates a new object which is a copy of this surface of revolution.
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
+
 
   DEFINE_STANDARD_RTTIEXT(Geom_SurfaceOfRevolution,Geom_SweptSurface)
 
index d3c921f13af64e837cfd90f078f31025860151a3..d164b5d4e874d4fa4faba04978bc0873b21c58b8 100644 (file)
@@ -44,3 +44,19 @@ Handle(Geom_Curve) Geom_SweptSurface::BasisCurve () const
 { 
   return basisCurve;
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_SweptSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_SweptSurface);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_Surface);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, basisCurve.get());
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &direction);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, smooth);
+}
index f7be27b3d1ac748a9cf893b1a509b17d51ae6089..ae79e9d2991792ba083fbab6a35309617d82f855 100644 (file)
@@ -66,6 +66,10 @@ public:
   Standard_EXPORT Handle(Geom_Curve) BasisCurve() const;
 
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
+
+
 
 
   DEFINE_STANDARD_RTTIEXT(Geom_SweptSurface,Geom_Surface)
index 2cba526d8d6514d15af85d061a380c470a6a0fa3..79c101222f568353672e5123e0c3288cb7311ac2 100644 (file)
@@ -397,3 +397,18 @@ void Geom_ToroidalSurface::Transform (const Trsf& T) {
    minorRadius = minorRadius * Abs(T.ScaleFactor());
    pos.Transform (T);
 }
+
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Geom_ToroidalSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_ToroidalSurface);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_ElementarySurface);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, majorRadius);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, minorRadius);
+}
index 6c22fcafdb646adaf86d79079ebd6217b36db7c2..d8bdeb6dd856327471beee7b2bd3f63d17fa00f5 100644 (file)
@@ -245,6 +245,8 @@ public:
   //! Creates a new object which is a copy of this torus.
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 7fc934707b00883620d6e5cf92f04177e28d6478..b3344cd5046cc2671c90a4e98c2637c098f1beac 100644 (file)
@@ -368,3 +368,19 @@ const
   return basisCurve->ParametricTransformation(T);
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+void Geom_TrimmedCurve::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_TrimmedCurve);
+
+  OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom_BoundedCurve);
+
+  OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, basisCurve.get());
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, uTrim1);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, uTrim2);
+}
+
index 76569080707c9e507e2c00439a48d1bcaf8d08e2..39a785c67b5005355b0d00388f4e19cae3cc3c2d 100644 (file)
@@ -252,6 +252,8 @@ public:
   //! Creates a new object which is a copy of this trimmed curve.
   Standard_EXPORT Handle(Geom_Geometry) Copy() const Standard_OVERRIDE;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const Standard_OVERRIDE;
 
 
 
index 8d83dc26990190b74f66a6751db56578820b2033..529c7d09c4c3b3da1f9ef2d25589cf44719c8a72 100644 (file)
@@ -133,3 +133,8 @@ Handle(Geom2d_Geometry) Geom2d_Geometry::Translated (const gp_Pnt2d& P1, const g
   G->Translate (P1, P2);
   return G;
 }
+
+void Geom2d_Geometry::DumpJson (Standard_OStream& theOStream, const Standard_Integer) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_Geometry);
+}
index b28d45359d15a339de0789ce2694670c20bc060c..3fdfe54570d9f17f7f34cc961a9dfb0342223748 100644 (file)
@@ -110,6 +110,8 @@ public:
   
   Standard_EXPORT virtual Handle(Geom2d_Geometry) Copy() const = 0;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const;
 
 
 
index 4e6fc6213ed4108565ecc7c2191b888dac1f8617..948295b8df4a1e18931fe9a396d40bc821757b4a 100644 (file)
@@ -66,3 +66,16 @@ const TColgp_Array1OfPnt2d& Poly_Polygon2D::Nodes() const
 }
 
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Poly_Polygon2D::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Poly_Polygon2D);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myDeflection);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myNodes.Size());
+}
+
index 6e7d3dc93cb350fcdd466730110789324bfc44d7..d74eba11b387772e4c0d911cbb535deec1d426b1 100644 (file)
@@ -78,6 +78,8 @@ public:
   //! Returns the table of nodes for this polygon.
   Standard_EXPORT const TColgp_Array1OfPnt2d& Nodes() const;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const;
 
 
 
index a4f2881a9d178037fece774c6101d40b202ede18..4899fba6793cb7c221c492e3ab31d54f674b93a0 100644 (file)
@@ -133,4 +133,18 @@ TColStd_Array1OfReal& Poly_Polygon3D::ChangeParameters() const
   return myParameters->ChangeArray1();
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Poly_Polygon3D::DumpJson (Standard_OStream& theOStream, const Standard_Integer) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Poly_Polygon3D);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myDeflection);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myNodes.Size());
+  if (!myParameters.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myParameters->Size());
+}
 
index da57e3999474dfd35dcd8bea427df8ace19ae36d..5795266dd0bc1f1db1ccb95707bbd0bc3c46acfb 100644 (file)
@@ -91,6 +91,8 @@ public:
   //! the data structure of this polygon.
   Standard_EXPORT TColStd_Array1OfReal& ChangeParameters() const;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const;
 
 
 
index 989c3c16fde6f345d5efe95a99bf7b57c7f8e35a..9f520a3ef16b585106c4e84ee47969edd49d46da 100644 (file)
@@ -16,6 +16,7 @@
 
 
 #include <Poly_PolygonOnTriangulation.hxx>
+#include <Standard_Dump.hxx>
 #include <Standard_NullObject.hxx>
 #include <Standard_Type.hxx>
 
@@ -116,3 +117,17 @@ Handle(TColStd_HArray1OfReal) Poly_PolygonOnTriangulation::Parameters() const
   return myParameters;
 }
 
+//=======================================================================
+//function : DumpJson
+//purpose  : 
+//=======================================================================
+
+void Poly_PolygonOnTriangulation::DumpJson (Standard_OStream& theOStream, const Standard_Integer) const
+{
+  OCCT_DUMP_CLASS_BEGIN (theOStream, Poly_PolygonOnTriangulation);
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myDeflection);
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myNodes.Size());
+  if (!myParameters.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myParameters->Size());
+}
index d12424a47c113c08fa67c9da011f4045b20f1204..f9bf6f85341869506e8a5fbd1699bb9dcb32f987 100644 (file)
@@ -101,6 +101,8 @@ public:
   //! are associated with the nodes in this polygon.
   Standard_EXPORT Handle(TColStd_HArray1OfReal) Parameters() const;
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const;
 
 
 
index 3fa87b7323cc3b40cf7f99f929421dc25926c60e..7805ab967ba72ae323104a83586ce09182f1d74b 100644 (file)
@@ -321,8 +321,11 @@ void Poly_Triangulation::DumpJson (Standard_OStream& theOStream, const Standard_
 
   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myDeflection);
 
-  //TColgp_Array1OfPnt                 myNodes;
-  //Handle(TColgp_HArray1OfPnt2d)      myUVNodes;
-  //Poly_Array1OfTriangle              myTriangles;
-  //Handle(TShort_HArray1OfShortReal)  myNormals;
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myNodes.Size());
+  if (!myUVNodes.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myUVNodes->Size());
+
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myTriangles.Size());
+  if (!myNormals.IsNull())
+    OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myNormals->Size());
 }
\ No newline at end of file
index 5451b966229be0700630badeed61f141da9e890b..f0f41f0487a0480d6f626ae29ae987ce1d3bd52c 100644 (file)
@@ -28,11 +28,12 @@ IMPLEMENT_STANDARD_RTTIEXT(TopoDS_TShape,Standard_Transient)
 void TopoDS_TShape::DumpJson (Standard_OStream& theOStream, const Standard_Integer) const
 {
   OCCT_DUMP_CLASS_BEGIN (theOStream, TopoDS_TShape);
-  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myFlags);
 
   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, ShapeType());
   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, NbChildren());
 
+  OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myFlags);
+
   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, Free());
 
   OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, Free());
index 342436d3583804ed04a072cf1c61b71c451b3322..d1371a284340351e1cc3e7ddee9be95f6f35e441 100644 (file)
@@ -127,7 +127,7 @@ public:
   Standard_Integer NbChildren() const { return myShapes.Size(); }
 
   //! Dumps the content of me into the stream
-  Standard_EXPORT void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const;
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const;
 
 friend class TopoDS_Iterator;
 friend class TopoDS_Builder;
index f51542f05c36175ae5aadaaa17f7c24464c50499..918783e9910e65bec8c8b282ce8d33ab1f64f2eb 100644 (file)
@@ -22,6 +22,7 @@
 #include <gp_Trsf2d.hxx>
 #include <gp_Vec2d.hxx>
 #include <gp_XY.hxx>
+#include <Standard_Dump.hxx>
 #include <Standard_OutOfRange.hxx>
 
 void gp_Pnt2d::Transform (const gp_Trsf2d& T)
@@ -69,3 +70,7 @@ gp_Pnt2d gp_Pnt2d::Mirrored (const gp_Ax2d& A) const
   return P;
 }
 
+void gp_Pnt2d::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+  OCCT_DUMP_VECTOR_CLASS (theOStream, "gp_Pnt2d", 2, coord.X(), coord.Y())
+}
index f991621ae1ba15fa529dac3d08acf1082617b89a..a4c61267f54e6b75068339dcd704be61fe27ef57 100644 (file)
@@ -151,6 +151,8 @@ public:
     Standard_NODISCARD gp_Pnt2d Translated (const gp_Pnt2d& P1, const gp_Pnt2d& P2) const;
 
 
+  //! Dumps the content of me into the stream
+  Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth = -1) const;
 
 
 protected: