OCCT_DUMP_BASE_CLASS (theOStream, theDepth, BRep_PointRepresentation);
- OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, mySurface.get());
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myPCurve.get());
}
Standard_EXPORT virtual void PCurve (const Handle(Geom2d_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;
mySurface = S;
}
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+
+void BRep_PointsOnSurface::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, BRep_PointsOnSurface);
+
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, BRep_PointRepresentation);
+
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, mySurface.get());
+}
+
{
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_BASE_CLASS (theOStream, theDepth, TopoDS_TVertex);
OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &myPnt);
OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myTolerance);
}
}
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+
+void Geom2d_BSplineCurve::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_BSplineCurve);
+
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom2d_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);
+}
//! Creates a new object which is a copy of this BSpline curve.
Standard_EXPORT Handle(Geom2d_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 Geom2d_BezierCurve::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_BezierCurve);
+
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom2d_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(Geom2d_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;
#include <gp_Pnt2d.hxx>
#include <Standard_Type.hxx>
-IMPLEMENT_STANDARD_RTTIEXT(Geom2d_BoundedCurve,Geom2d_Curve)
\ No newline at end of file
+IMPLEMENT_STANDARD_RTTIEXT(Geom2d_BoundedCurve,Geom2d_Curve)
+
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+
+void Geom2d_BoundedCurve::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_BoundedCurve);
+
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom2d_Curve);
+}
//! "FirstParameter" of the curve.
Standard_EXPORT virtual gp_Pnt2d 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;
gpPnt2d.Transform (T);
}
+
+void Geom2d_CartesianPoint::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_CartesianPoint);
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom2d_Point);
+
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &gpPnt2d);
+}
Standard_EXPORT Handle(Geom2d_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;
radius = radius * Abs(T.ScaleFactor());
pos.Transform (T);
}
+
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+
+void Geom2d_Circle::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_Circle);
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom2d_Conic);
+
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, radius);
+}
//! Creates a new object which is a copy of this circle.
Standard_EXPORT Handle(Geom2d_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 Standard_True;
}
+
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+
+void Geom2d_Conic::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_Conic);
+
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom2d_Curve);
+
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &pos);
+}
//! Returns True, the order of continuity of a conic is infinite.
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;
D0(U,P);
return P;
}
+
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+
+void Geom2d_Curve::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_Curve);
+
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom2d_Geometry);
+}
//! are parallel.
Standard_EXPORT gp_Pnt2d 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;
minorRadius = minorRadius * Abs(T.ScaleFactor());
pos.Transform(T);
}
+
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+
+void Geom2d_Ellipse::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_Ellipse);
+
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom2d_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(Geom2d_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;
minorRadius = minorRadius * Abs (T.ScaleFactor());
pos.Transform(T);
}
+
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+
+void Geom2d_Hyperbola::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_Hyperbola);
+
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom2d_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(Geom2d_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 L.Distance (P);
}
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+
+void Geom2d_Line::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_Line);
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom2d_Curve);
+
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &pos);
+}
//! Creates a new object, which is a copy of this line.
Standard_EXPORT Handle(Geom2d_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 Geom2d_OffsetCurve::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_OffsetCurve);
+
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom2d_Curve);
+
+ OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, basisCurve.get());
+ //OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myEvaluator.get());
+
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, offsetValue);
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myBasisCurveContinuity);
+}
//! 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 Abs(T.ScaleFactor());
}
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+
+void Geom2d_Parabola::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_Parabola);
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom2d_Conic);
+
+ OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, focalLength);
+}
//! Creates a new object, which is a copy of this parabola.
Standard_EXPORT Handle(Geom2d_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;
gp_Pnt2d P2 = Other->Pnt2d ();
return P1.SquareDistance (P2);
}
+
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+
+void Geom2d_Point::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_Point);
+
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom2d_Geometry);
+}
//! computes the square distance between <me> and <Other>.
Standard_EXPORT Standard_Real SquareDistance (const Handle(Geom2d_Point)& Other) 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 basisCurve->ParametricTransformation(T);
}
+//=======================================================================
+//function : DumpJson
+//purpose :
+//=======================================================================
+
+void Geom2d_TrimmedCurve::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
+{
+ OCCT_DUMP_CLASS_BEGIN (theOStream, Geom2d_TrimmedCurve);
+
+ OCCT_DUMP_BASE_CLASS (theOStream, theDepth, Geom2d_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(Geom2d_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;
#include <gp_Trsf2d.hxx>
#include <gp_Vec2d.hxx>
#include <Standard_ConstructionError.hxx>
+#include <Standard_Dump.hxx>
void gp_Ax22d::Mirror (const gp_Pnt2d& P)
{
return Temp;
}
+void gp_Ax22d::DumpJson (Standard_OStream& theOStream, const Standard_Integer) const
+{
+ OCCT_DUMP_VECTOR_CLASS (theOStream, "Location", 2, point.X(), point.Y())
+
+ OCCT_DUMP_VECTOR_CLASS (theOStream, "XAxis", 2, vxdir.X(), vxdir.Y())
+ OCCT_DUMP_VECTOR_CLASS (theOStream, "YAxis", 2, vydir.X(), vydir.Y())
+}
//! point <P2>.
Standard_NODISCARD gp_Ax22d 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;