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());
+}
//! 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;
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);
+}
//! 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;
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);
+}
//! 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;
}
}
+//=======================================================================
+//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());
+}
//! 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;
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);
+}
//! 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;
}
+//=======================================================================
+//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);
+}
//! 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;
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());
+}
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;
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());
+}
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);
+}
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;
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;
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());
+}
//! 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;
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());
+}
+
//! 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;
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());
+}
//! 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;
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());
+}
//! 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;
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());
+}
//! 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;
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();
+ }
+}
//! 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)
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);
+}
//! 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;
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();
+ }
+}
//! 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;
}
}
+//=======================================================================
+//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);
+}
//! 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;
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);
+}
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)
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);
+}
+
//! 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;
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);
+}
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)
#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);
+}
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)
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);
+}
//! 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;
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);
+}
//! 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;
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);
+}
//! 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;
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);
+}
//! 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;
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);
+}
+
//! 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;
}
+//=======================================================================
+//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);
+}
//! 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;
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);
+}
//! 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;
}
+void Geom_Geometry::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom_Geometry);
+}
+
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)
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);
+}
//! 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;
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);
+}
//! 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;
{
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;
+}
//! 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;
{
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());
+}
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:
}
+//=======================================================================
+//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());
+}
//! 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)
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);
+}
+
//! 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;
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);
+}
//! 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;
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);
+}
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)
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);
+}
//! 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;
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);
+}
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)
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;
+}
//! 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;
+
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);
+}
//! 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)
{
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);
+}
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)
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);
+}
//! 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;
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);
+}
+
//! 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;
G->Translate (P1, P2);
return G;
}
+
+void Geom2d_Geometry::DumpJson (Standard_OStream& theOStream, const Standard_Integer) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_Geometry);
+}
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;
}
+//=======================================================================
+//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());
+}
+
//! 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;
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());
+}
//! 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;
#include <Poly_PolygonOnTriangulation.hxx>
+#include <Standard_Dump.hxx>
#include <Standard_NullObject.hxx>
#include <Standard_Type.hxx>
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());
+}
//! 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;
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
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());
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;
#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)
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())
+}
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: