diff --git a/src/SWIG_files/common/IOStream.i b/src/SWIG_files/common/IOStream.i
index 961bc3823..c8ddd6249 100644
--- a/src/SWIG_files/common/IOStream.i
+++ b/src/SWIG_files/common/IOStream.i
@@ -22,14 +22,36 @@ along with pythonOCC. If not, see .
%include
%include
-/*
-Standard_OStream & function transformation
-The float number is returned in the output tuple
-*/
-%typemap(argout) Standard_OStream &OutValue {
+// Standard_IStream
+%typemap(in) std::istream& {
+ PyObject* temp_bytes = PyUnicode_AsEncodedString($input, "UTF-8", "strict");
+ std::string data(PyBytes_AsString(temp_bytes));
+ std::stringstream* ss = new std::stringstream(data);
+ $1 = ss;
+}
+
+%typemap(freearg) std::istream& {
+ delete $1;
+}
+
+// Standard_SStream
+%typemap(in) std::stringstream & {
+ PyObject* temp_bytes = PyUnicode_AsEncodedString($input, "UTF-8", "strict");
+ std::string data(PyBytes_AsString(temp_bytes));
+ std::stringstream* ss = new std::stringstream(data);
+ $1 = ss;
+}
+
+%typemap(freearg) std::stringstream & {
+ delete $1;
+}
+
+%typemap(argout) std::ostream &OutValue {
PyObject *o, *o2, *o3;
- std::ostringstream *output = static_cast ($1);
- o = PyString_FromString(output->str().c_str());
+
+ std::string str = ((std::stringstream*)$1)->str();
+ o = PyUnicode_FromString(str.c_str());
+
if ((!$result) || ($result == Py_None)) {
$result = o;
} else {
@@ -47,16 +69,7 @@ The float number is returned in the output tuple
}
}
-%typemap(in, numinputs=0) Standard_OStream &OutValue (std::ostringstream temp) {
+%typemap(in, numinputs=0) std::ostream &OutValue (std::stringstream temp) {
$1 = &temp;
}
-/*
-Standard_IStream & function transformation
-takes a string as input
-*/
-%typemap(in) Standard_IStream & {
- char * in = PyString_AsString($input);
- std::istringstream ss(in);
- $1 = &ss;
-}
diff --git a/src/SWIG_files/wrapper/AIS.i b/src/SWIG_files/wrapper/AIS.i
index 12afa666b..b8258bb38 100644
--- a/src/SWIG_files/wrapper/AIS.i
+++ b/src/SWIG_files/wrapper/AIS.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_ais.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -3252,10 +3253,22 @@ Returns standard_true if the hidden lines are to be drawn. by default the hidden
Standard_Boolean DrawHiddenLine();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -6245,10 +6258,22 @@ Each interactive object has methods which allow us to attribute an owner to it i
void ClearOwner();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -15415,10 +15440,22 @@ Returns the color attributes of the shape accordingly to the current facing mode
virtual void Color(Quantity_Color & aColor);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
diff --git a/src/SWIG_files/wrapper/AIS.pyi b/src/SWIG_files/wrapper/AIS.pyi
index 5b53c5bcd..71e0f2aa7 100644
--- a/src/SWIG_files/wrapper/AIS.pyi
+++ b/src/SWIG_files/wrapper/AIS.pyi
@@ -571,6 +571,7 @@ class AIS_InteractiveContext(Standard_Transient):
@overload
def DisplayedObjects(self, theWhichKind: AIS_KindOfInteractive, theWhichSignature: int, theListOfIO: AIS_ListOfInteractive) -> None: ...
def DrawHiddenLine(self) -> bool: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EnableDrawHiddenLine(self) -> None: ...
@overload
def EndImmediateDraw(self, theView: V3d_View) -> bool: ...
@@ -792,6 +793,7 @@ class AIS_InteractiveContext(Standard_Transient):
class AIS_InteractiveObject(SelectMgr_SelectableObject):
def ClearOwner(self) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def GetContext(self) -> AIS_InteractiveContext: ...
def GetOwner(self) -> Standard_Transient: ...
def HasInteractiveContext(self) -> bool: ...
@@ -1424,6 +1426,7 @@ class AIS_Shape(AIS_InteractiveObject):
def AcceptShapeDecomposition(self) -> bool: ...
def BoundingBox(self) -> Bnd_Box: ...
def Color(self, aColor: Quantity_Color) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Material(self) -> Graphic3d_NameOfMaterial: ...
def OwnDeviationAngle(self) -> Tuple[bool, float, float]: ...
def OwnDeviationCoefficient(self) -> Tuple[bool, float, float]: ...
diff --git a/src/SWIG_files/wrapper/APIHeaderSection.i b/src/SWIG_files/wrapper/APIHeaderSection.i
index df5678406..c6d2631ba 100644
--- a/src/SWIG_files/wrapper/APIHeaderSection.i
+++ b/src/SWIG_files/wrapper/APIHeaderSection.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_apiheadersection.
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Adaptor2d.i b/src/SWIG_files/wrapper/Adaptor2d.i
index 8b61df5b5..c54086f34 100644
--- a/src/SWIG_files/wrapper/Adaptor2d.i
+++ b/src/SWIG_files/wrapper/Adaptor2d.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_adaptor2d.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Adaptor3d.i b/src/SWIG_files/wrapper/Adaptor3d.i
index 1f24d192b..a9dd58f11 100644
--- a/src/SWIG_files/wrapper/Adaptor3d.i
+++ b/src/SWIG_files/wrapper/Adaptor3d.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_adaptor3d.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/AdvApp2Var.i b/src/SWIG_files/wrapper/AdvApp2Var.i
index 90f09ef9d..ae4147ab8 100644
--- a/src/SWIG_files/wrapper/AdvApp2Var.i
+++ b/src/SWIG_files/wrapper/AdvApp2Var.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_advapp2var.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -314,14 +315,23 @@ No available documentation.
") CritError;
Standard_Real CritError(const Standard_Integer Dimension, const Standard_Integer Index);
+ /****************** Dump ******************/
+ /**** md5 signature: d37b43e0b2386dc096d5d707876db157 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Prints on the stream 'o' information on the current state of the object.
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** HasResult ******************/
/**** md5 signature: 345d4b0f7e88f528928167976d8256d5 ****/
%feature("compactdefaultargs") HasResult;
diff --git a/src/SWIG_files/wrapper/AdvApp2Var.pyi b/src/SWIG_files/wrapper/AdvApp2Var.pyi
index 514d0c84d..3d6bee684 100644
--- a/src/SWIG_files/wrapper/AdvApp2Var.pyi
+++ b/src/SWIG_files/wrapper/AdvApp2Var.pyi
@@ -120,6 +120,7 @@ class AdvApp2Var_ApproxAFunc2Var:
@overload
def AverageError(self, Dimension: int, Index: int) -> float: ...
def CritError(self, Dimension: int, Index: int) -> float: ...
+ def Dump(self) -> str: ...
def HasResult(self) -> bool: ...
def IsDone(self) -> bool: ...
@overload
diff --git a/src/SWIG_files/wrapper/AdvApprox.i b/src/SWIG_files/wrapper/AdvApprox.i
index ba1615682..62aba5fd0 100644
--- a/src/SWIG_files/wrapper/AdvApprox.i
+++ b/src/SWIG_files/wrapper/AdvApprox.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_advapprox.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -230,14 +231,23 @@ No available documentation.
") Degree;
Standard_Integer Degree();
+ /****************** Dump ******************/
+ /**** md5 signature: d37b43e0b2386dc096d5d707876db157 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Display information on approximation.
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** HasResult ******************/
/**** md5 signature: 345d4b0f7e88f528928167976d8256d5 ****/
%feature("compactdefaultargs") HasResult;
@@ -599,14 +609,23 @@ No available documentation.
") DifTab;
opencascade::handle DifTab();
+ /****************** Dump ******************/
+ /**** md5 signature: d37b43e0b2386dc096d5d707876db157 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Display information on approximation.
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** FirstConstr ******************/
/**** md5 signature: f7818f8b2283dc680ce2b42c85a59f9d ****/
%feature("compactdefaultargs") FirstConstr;
diff --git a/src/SWIG_files/wrapper/AdvApprox.pyi b/src/SWIG_files/wrapper/AdvApprox.pyi
index fe65d1f4e..29eec8d20 100644
--- a/src/SWIG_files/wrapper/AdvApprox.pyi
+++ b/src/SWIG_files/wrapper/AdvApprox.pyi
@@ -21,6 +21,7 @@ class AdvApprox_ApproxAFunction:
@overload
def AverageError(self, Dimension: int, Index: int) -> float: ...
def Degree(self) -> int: ...
+ def Dump(self) -> str: ...
def HasResult(self) -> bool: ...
def IsDone(self) -> bool: ...
def Knots(self) -> TColStd_HArray1OfReal: ...
@@ -54,6 +55,7 @@ class AdvApprox_SimpleApprox:
def Coefficients(self) -> TColStd_HArray1OfReal: ...
def Degree(self) -> int: ...
def DifTab(self) -> TColStd_HArray1OfReal: ...
+ def Dump(self) -> str: ...
def FirstConstr(self) -> TColStd_HArray2OfReal: ...
def IsDone(self) -> bool: ...
def LastConstr(self) -> TColStd_HArray2OfReal: ...
diff --git a/src/SWIG_files/wrapper/AppBlend.i b/src/SWIG_files/wrapper/AppBlend.i
index 66c0792e8..15b703224 100644
--- a/src/SWIG_files/wrapper/AppBlend.i
+++ b/src/SWIG_files/wrapper/AppBlend.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_appblend.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/AppCont.i b/src/SWIG_files/wrapper/AppCont.i
index dd1c7fe26..5974cdc4a 100644
--- a/src/SWIG_files/wrapper/AppCont.i
+++ b/src/SWIG_files/wrapper/AppCont.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_appcont.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/AppDef.i b/src/SWIG_files/wrapper/AppDef.i
index 05009c889..b3257957f 100644
--- a/src/SWIG_files/wrapper/AppDef.i
+++ b/src/SWIG_files/wrapper/AppDef.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_appdef.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -1875,14 +1876,23 @@ The multiline constructed will have one line of 2d points without their tangenci
") AppDef_MultiLine;
AppDef_MultiLine(const TColgp_Array1OfPnt2d & tabP2d);
+ /****************** Dump ******************/
+ /**** md5 signature: d37b43e0b2386dc096d5d707876db157 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Prints on the stream o information on the current state of the object. is used to redefine the operator <<.
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** NbMultiPoints ******************/
/**** md5 signature: 3773aba9a0a09cf608eddf5448da667d ****/
%feature("compactdefaultargs") NbMultiPoints;
@@ -2209,14 +2219,23 @@ Returns the normal vector at the point of range index. an exception is raised if
") Curv2d;
gp_Vec2d Curv2d(const Standard_Integer Index);
+ /****************** Dump ******************/
+ /**** md5 signature: b42defe2d7a7208961fa81b225a70479 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Prints on the stream o information on the current state of the object. is used to redefine the operator <<.
+") Dump;
+ virtual void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** IsCurvaturePoint ******************/
/**** md5 signature: d472719ada146163920fff12150b4a88 ****/
%feature("compactdefaultargs") IsCurvaturePoint;
@@ -6492,14 +6511,23 @@ Returns the distances between the points of the multiline and the approximation
") Distance;
void Distance(math_Matrix & mat);
+ /****************** Dump ******************/
+ /**** md5 signature: d37b43e0b2386dc096d5d707876db157 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Prints on the stream o information on the current state of the object. maxerror,maxerrorindex,averageerror,quadraticerror,criterium distances,degre,nombre de poles, parametres, noeuds.
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** IsCreated ******************/
/**** md5 signature: ee98cd23a823f97ff49721b779c9bc76 ****/
%feature("compactdefaultargs") IsCreated;
diff --git a/src/SWIG_files/wrapper/AppDef.pyi b/src/SWIG_files/wrapper/AppDef.pyi
index a150208d3..34f791b49 100644
--- a/src/SWIG_files/wrapper/AppDef.pyi
+++ b/src/SWIG_files/wrapper/AppDef.pyi
@@ -165,6 +165,7 @@ class AppDef_MultiLine:
def __init__(self, tabP3d: TColgp_Array1OfPnt) -> None: ...
@overload
def __init__(self, tabP2d: TColgp_Array1OfPnt2d) -> None: ...
+ def Dump(self) -> str: ...
def NbMultiPoints(self) -> int: ...
def NbPoints(self) -> int: ...
def SetValue(self, Index: int, MPoint: AppDef_MultiPointConstraint) -> None: ...
@@ -195,6 +196,7 @@ class AppDef_MultiPointConstraint(AppParCurves_MultiPoint):
def __init__(self, tabP2d: TColgp_Array1OfPnt2d, tabVec2d: TColgp_Array1OfVec2d, tabCur2d: TColgp_Array1OfVec2d) -> None: ...
def Curv(self, Index: int) -> gp_Vec: ...
def Curv2d(self, Index: int) -> gp_Vec2d: ...
+ def Dump(self) -> str: ...
def IsCurvaturePoint(self) -> bool: ...
def IsTangencyPoint(self) -> bool: ...
def SetCurv(self, Index: int, Curv: gp_Vec) -> None: ...
@@ -526,6 +528,7 @@ class AppDef_Variational:
def Criterium(self) -> Tuple[float, float, float]: ...
def CriteriumWeight(self) -> Tuple[float, float, float]: ...
def Distance(self, mat: math_Matrix) -> None: ...
+ def Dump(self) -> str: ...
def IsCreated(self) -> bool: ...
def IsDone(self) -> bool: ...
def IsOverConstrained(self) -> bool: ...
diff --git a/src/SWIG_files/wrapper/AppParCurves.i b/src/SWIG_files/wrapper/AppParCurves.i
index 95a40317d..c31a211a3 100644
--- a/src/SWIG_files/wrapper/AppParCurves.i
+++ b/src/SWIG_files/wrapper/AppParCurves.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_appparcurves.html
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -680,14 +681,23 @@ Returns the dimension of the cuindex curve. an exception is raised if cuindex<0
") Dimension;
Standard_Integer Dimension(const Standard_Integer CuIndex);
+ /****************** Dump ******************/
+ /**** md5 signature: 3285fe47a669df0eece9c96593dad879 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Prints on the stream o information on the current state of the object. is used to redefine the operator <<.
+") Dump;
+ virtual void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** NbCurves ******************/
/**** md5 signature: f7f6dbd981df076443155a5a87b5c223 ****/
%feature("compactdefaultargs") NbCurves;
@@ -1012,14 +1022,23 @@ Returns the dimension of the point of range index. an exception is raised if ind
") Dimension;
Standard_Integer Dimension(const Standard_Integer Index);
+ /****************** Dump ******************/
+ /**** md5 signature: 3285fe47a669df0eece9c96593dad879 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Prints on the stream o information on the current state of the object. is used to redefine the operator <<.
+") Dump;
+ virtual void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** NbPoints ******************/
/**** md5 signature: 1d4bbbd7c4dda4f1e56c00ae994bedbe ****/
%feature("compactdefaultargs") NbPoints;
@@ -1350,14 +1369,23 @@ Returns the degree of the curve(s).
") Degree;
virtual Standard_Integer Degree();
+ /****************** Dump ******************/
+ /**** md5 signature: b42defe2d7a7208961fa81b225a70479 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Prints on the stream o information on the current state of the object. is used to redefine the operator <<.
+") Dump;
+ virtual void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** Knots ******************/
/**** md5 signature: 8001460ab922c7159116eb85f0693b97 ****/
%feature("compactdefaultargs") Knots;
diff --git a/src/SWIG_files/wrapper/AppParCurves.pyi b/src/SWIG_files/wrapper/AppParCurves.pyi
index f7d2c5229..0f8a7c244 100644
--- a/src/SWIG_files/wrapper/AppParCurves.pyi
+++ b/src/SWIG_files/wrapper/AppParCurves.pyi
@@ -187,6 +187,7 @@ class AppParCurves_MultiCurve:
def D2(self, CuIndex: int, U: float, Pt: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ...
def Degree(self) -> int: ...
def Dimension(self, CuIndex: int) -> int: ...
+ def Dump(self) -> str: ...
def NbCurves(self) -> int: ...
def NbPoles(self) -> int: ...
def Pole(self, CuIndex: int, Nieme: int) -> gp_Pnt: ...
@@ -214,6 +215,7 @@ class AppParCurves_MultiPoint:
@overload
def __init__(self, tabP: TColgp_Array1OfPnt, tabP2d: TColgp_Array1OfPnt2d) -> None: ...
def Dimension(self, Index: int) -> int: ...
+ def Dump(self) -> str: ...
def NbPoints(self) -> int: ...
def NbPoints2d(self) -> int: ...
def Point(self, Index: int) -> gp_Pnt: ...
@@ -241,6 +243,7 @@ class AppParCurves_MultiBSpCurve(AppParCurves_MultiCurve):
@overload
def D2(self, CuIndex: int, U: float, Pt: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ...
def Degree(self) -> int: ...
+ def Dump(self) -> str: ...
def Knots(self) -> TColStd_Array1OfReal: ...
def Multiplicities(self) -> TColStd_Array1OfInteger: ...
def SetKnots(self, theKnots: TColStd_Array1OfReal) -> None: ...
diff --git a/src/SWIG_files/wrapper/AppStd.i b/src/SWIG_files/wrapper/AppStd.i
index a70701450..92ac7f68a 100644
--- a/src/SWIG_files/wrapper/AppStd.i
+++ b/src/SWIG_files/wrapper/AppStd.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_appstd.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -87,10 +88,22 @@ from OCC.Core.Exception import *
class AppStd_Application : public TDocStd_Application {
public:
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
diff --git a/src/SWIG_files/wrapper/AppStd.pyi b/src/SWIG_files/wrapper/AppStd.pyi
index 5098d7093..aa2be3a73 100644
--- a/src/SWIG_files/wrapper/AppStd.pyi
+++ b/src/SWIG_files/wrapper/AppStd.pyi
@@ -7,6 +7,7 @@ from OCC.Core.TDocStd import *
class AppStd_Application(TDocStd_Application):
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def ResourcesName(self) -> str: ...
# harray1 classes
diff --git a/src/SWIG_files/wrapper/AppStdL.i b/src/SWIG_files/wrapper/AppStdL.i
index 89299be60..8826c2b2e 100644
--- a/src/SWIG_files/wrapper/AppStdL.i
+++ b/src/SWIG_files/wrapper/AppStdL.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_appstdl.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -88,10 +89,22 @@ from OCC.Core.Exception import *
class AppStdL_Application : public TDocStd_Application {
public:
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
diff --git a/src/SWIG_files/wrapper/AppStdL.pyi b/src/SWIG_files/wrapper/AppStdL.pyi
index 22d93bbae..05c1da490 100644
--- a/src/SWIG_files/wrapper/AppStdL.pyi
+++ b/src/SWIG_files/wrapper/AppStdL.pyi
@@ -7,6 +7,7 @@ from OCC.Core.TDocStd import *
class AppStdL_Application(TDocStd_Application):
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def ResourcesName(self) -> str: ...
# harray1 classes
diff --git a/src/SWIG_files/wrapper/Approx.i b/src/SWIG_files/wrapper/Approx.i
index 935bd1bbd..085417bd9 100644
--- a/src/SWIG_files/wrapper/Approx.i
+++ b/src/SWIG_files/wrapper/Approx.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_approx.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -352,14 +353,23 @@ No available documentation.
") Curve;
opencascade::handle Curve();
+ /****************** Dump ******************/
+ /**** md5 signature: d37b43e0b2386dc096d5d707876db157 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Print on the stream o information about the object.
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** HasResult ******************/
/**** md5 signature: 345d4b0f7e88f528928167976d8256d5 ****/
%feature("compactdefaultargs") HasResult;
@@ -698,14 +708,23 @@ Returns the bspline curve corresponding to the reparametrized 3d curve.
") Curve3d;
opencascade::handle Curve3d();
+ /****************** Dump ******************/
+ /**** md5 signature: d37b43e0b2386dc096d5d707876db157 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Print the maximum errors(s).
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** HasResult ******************/
/**** md5 signature: 345d4b0f7e88f528928167976d8256d5 ****/
%feature("compactdefaultargs") HasResult;
@@ -2098,14 +2117,23 @@ No available documentation.
") Curves2dShape;
void Curves2dShape(Standard_Integer &OutValue, Standard_Integer &OutValue, Standard_Integer &OutValue);
+ /****************** Dump ******************/
+ /**** md5 signature: d37b43e0b2386dc096d5d707876db157 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Display information on approximation.
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** Eval ******************/
/**** md5 signature: 71e7f11e45548ac47de3b270019a0b2d ****/
%feature("compactdefaultargs") Eval;
diff --git a/src/SWIG_files/wrapper/Approx.pyi b/src/SWIG_files/wrapper/Approx.pyi
index b30870a3a..84ebb353c 100644
--- a/src/SWIG_files/wrapper/Approx.pyi
+++ b/src/SWIG_files/wrapper/Approx.pyi
@@ -107,6 +107,7 @@ class Approx_Curve2d:
class Approx_Curve3d:
def __init__(self, Curve: Adaptor3d_Curve, Tol3d: float, Order: GeomAbs_Shape, MaxSegments: int, MaxDegree: int) -> None: ...
def Curve(self) -> Geom_BSplineCurve: ...
+ def Dump(self) -> str: ...
def HasResult(self) -> bool: ...
def IsDone(self) -> bool: ...
def MaxError(self) -> float: ...
@@ -135,6 +136,7 @@ class Approx_CurvilinearParameter:
def Curve2d1(self) -> Geom2d_BSplineCurve: ...
def Curve2d2(self) -> Geom2d_BSplineCurve: ...
def Curve3d(self) -> Geom_BSplineCurve: ...
+ def Dump(self) -> str: ...
def HasResult(self) -> bool: ...
def IsDone(self) -> bool: ...
def MaxError2d1(self) -> float: ...
@@ -238,6 +240,7 @@ class Approx_SweepApproximation:
def Curves2dKnots(self) -> TColStd_Array1OfReal: ...
def Curves2dMults(self) -> TColStd_Array1OfInteger: ...
def Curves2dShape(self) -> Tuple[int, int, int]: ...
+ def Dump(self) -> str: ...
def Eval(self, Parameter: float, DerivativeRequest: int, First: float, Last: float) -> Tuple[int, float]: ...
def IsDone(self) -> bool: ...
def Max2dError(self, Index: int) -> float: ...
diff --git a/src/SWIG_files/wrapper/ApproxInt.i b/src/SWIG_files/wrapper/ApproxInt.i
index 52b038778..24b78e72d 100644
--- a/src/SWIG_files/wrapper/ApproxInt.i
+++ b/src/SWIG_files/wrapper/ApproxInt.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_approxint.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Aspect.i b/src/SWIG_files/wrapper/Aspect.i
index 0a383c72d..a97c4c5fd 100644
--- a/src/SWIG_files/wrapper/Aspect.i
+++ b/src/SWIG_files/wrapper/Aspect.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_aspect.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -1250,10 +1251,22 @@ Returns the colour of the window background .
Quantity_Color Color();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -1430,10 +1443,22 @@ Returns the number of available identifiers.
Standard_Integer Available();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -1645,10 +1670,22 @@ Returns the grid aspect.
Aspect_GridDrawMode DrawMode();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -2051,10 +2088,22 @@ Get cloud intensity. by default this value is 0.2 0.0 means no clouds at all and
Standard_ShortReal Cloudiness();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -2696,10 +2745,22 @@ Apply the resizing to the window .
virtual Aspect_TypeOfResize DoResize();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -4671,10 +4732,22 @@ Returns colours of the window gradient background.
void Colors(Quantity_Color & theColor1, Quantity_Color & theColor2);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
diff --git a/src/SWIG_files/wrapper/Aspect.pyi b/src/SWIG_files/wrapper/Aspect.pyi
index f9bbdd7c8..5bbfdeaa7 100644
--- a/src/SWIG_files/wrapper/Aspect.pyi
+++ b/src/SWIG_files/wrapper/Aspect.pyi
@@ -759,6 +759,7 @@ class Aspect_Background:
@overload
def __init__(self, AColor: Quantity_Color) -> None: ...
def Color(self) -> Quantity_Color: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def SetColor(self, AColor: Quantity_Color) -> None: ...
class Aspect_DisplayConnection(Standard_Transient):
@@ -772,6 +773,7 @@ class Aspect_GenId:
@overload
def __init__(self, theLow: int, theUpper: int) -> None: ...
def Available(self) -> int: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
@overload
def Free(self) -> None: ...
@overload
@@ -791,6 +793,7 @@ class Aspect_Grid(Standard_Transient):
def Deactivate(self) -> None: ...
def Display(self) -> None: ...
def DrawMode(self) -> Aspect_GridDrawMode: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Erase(self) -> None: ...
def Hit(self, X: float, Y: float) -> Tuple[float, float]: ...
def Init(self) -> None: ...
@@ -821,6 +824,7 @@ class Aspect_SkydomeBackground:
@overload
def __init__(self, theSunDirection: gp_Dir, theCloudiness: float, theTime: float, theFogginess: float, theSize: int) -> None: ...
def Cloudiness(self) -> float: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Fogginess(self) -> float: ...
def SetCloudiness(self, theCloudiness: float) -> None: ...
def SetFogginess(self, theFogginess: float) -> None: ...
@@ -864,6 +868,7 @@ class Aspect_Window(Standard_Transient):
def DisplayConnection(self) -> Aspect_DisplayConnection: ...
def DoMapping(self) -> bool: ...
def DoResize(self) -> Aspect_TypeOfResize: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def GradientBackground(self) -> Aspect_GradientBackground: ...
def InvalidateContent(self, theDisp: Aspect_DisplayConnection) -> None: ...
def IsMapped(self) -> bool: ...
@@ -994,6 +999,7 @@ class Aspect_GradientBackground(Aspect_Background):
def __init__(self, theColor1: Quantity_Color, theColor2: Quantity_Color, theMethod: Optional[Aspect_GradientFillMethod] = Aspect_GradientFillMethod_Horizontal) -> None: ...
def BgGradientFillMethod(self) -> Aspect_GradientFillMethod: ...
def Colors(self, theColor1: Quantity_Color, theColor2: Quantity_Color) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def SetColors(self, theColor1: Quantity_Color, theColor2: Quantity_Color, theMethod: Optional[Aspect_GradientFillMethod] = Aspect_GradientFillMethod_Horizontal) -> None: ...
class Aspect_OpenVRSession(Aspect_XRSession):
diff --git a/src/SWIG_files/wrapper/BOPAlgo.i b/src/SWIG_files/wrapper/BOPAlgo.i
index 71504b291..b8160a06a 100644
--- a/src/SWIG_files/wrapper/BOPAlgo.i
+++ b/src/SWIG_files/wrapper/BOPAlgo.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_bopalgo.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -623,22 +624,40 @@ Clears the warnings of the algorithm.
") ClearWarnings;
void ClearWarnings();
+ /****************** DumpErrors ******************/
+ /**** md5 signature: 90a98b1a0d228edd0b78f11fc13715d9 ****/
+ %feature("compactdefaultargs") DumpErrors;
+ %feature("autodoc", "
+Parameters
+----------
- %feature("autodoc", "1");
- %extend{
- std::string DumpErrorsToString() {
- std::stringstream s;
- self->DumpErrors(s);
- return s.str();}
- };
+Return
+-------
+theOS: Standard_OStream
+
+Description
+-----------
+Dumps the error status into the given stream.
+") DumpErrors;
+ void DumpErrors(std::ostream &OutValue);
+
+ /****************** DumpWarnings ******************/
+ /**** md5 signature: b7a54acbfda1ad785ffbd552beb749fd ****/
+ %feature("compactdefaultargs") DumpWarnings;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+theOS: Standard_OStream
+
+Description
+-----------
+Dumps the warning statuses into the given stream.
+") DumpWarnings;
+ void DumpWarnings(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpWarningsToString() {
- std::stringstream s;
- self->DumpWarnings(s);
- return s.str();}
- };
/****************** FuzzyValue ******************/
/**** md5 signature: c7081d612ee5325e18733e215807d19f ****/
%feature("compactdefaultargs") FuzzyValue;
diff --git a/src/SWIG_files/wrapper/BOPAlgo.pyi b/src/SWIG_files/wrapper/BOPAlgo.pyi
index 82148dddf..8c61157e1 100644
--- a/src/SWIG_files/wrapper/BOPAlgo.pyi
+++ b/src/SWIG_files/wrapper/BOPAlgo.pyi
@@ -120,6 +120,8 @@ class BOPAlgo_Options:
def Allocator(self) -> NCollection_BaseAllocator: ...
def Clear(self) -> None: ...
def ClearWarnings(self) -> None: ...
+ def DumpErrors(self) -> str: ...
+ def DumpWarnings(self) -> str: ...
def FuzzyValue(self) -> float: ...
@staticmethod
def GetParallelMode() -> bool: ...
diff --git a/src/SWIG_files/wrapper/BOPDS.i b/src/SWIG_files/wrapper/BOPDS.i
index 6580111eb..5ad2685c7 100644
--- a/src/SWIG_files/wrapper/BOPDS.i
+++ b/src/SWIG_files/wrapper/BOPDS.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_bopds.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BOPTools.i b/src/SWIG_files/wrapper/BOPTools.i
index db2c21ba5..afbd9ce44 100644
--- a/src/SWIG_files/wrapper/BOPTools.i
+++ b/src/SWIG_files/wrapper/BOPTools.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_boptools.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRep.i b/src/SWIG_files/wrapper/BRep.i
index 816328413..7502e55cf 100644
--- a/src/SWIG_files/wrapper/BRep.i
+++ b/src/SWIG_files/wrapper/BRep.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brep.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -1298,10 +1299,22 @@ No available documentation.
virtual void Curve3D(const opencascade::handle & C);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -1850,10 +1863,22 @@ No available documentation.
virtual void Curve(const opencascade::handle & C);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -2197,10 +2222,22 @@ No available documentation.
void Degenerated(const Standard_Boolean S);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -2372,10 +2409,22 @@ Returns current active triangulation.
const opencascade::handle & ActiveTriangulation();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -2642,10 +2691,22 @@ No available documentation.
BRep_ListOfPointRepresentation & ChangePoints();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -3900,10 +3961,22 @@ Raises an error.
void D0(const Standard_Real U, gp_Pnt & P);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -4018,10 +4091,22 @@ Computes the point at parameter u.
virtual void D0(const Standard_Real U, gp_Pnt & P);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -4206,10 +4291,22 @@ No available documentation.
virtual void Curve(const opencascade::handle & C);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -4264,10 +4361,22 @@ No available documentation.
class BRep_PointsOnSurface : public BRep_PointRepresentation {
public:
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -4352,10 +4461,22 @@ Return a copy of this representation.
opencascade::handle Copy();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -4454,10 +4575,22 @@ Return a copy of this representation.
virtual opencascade::handle Copy();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -4588,10 +4721,22 @@ Return a copy of this representation.
virtual opencascade::handle Copy();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -4771,10 +4916,22 @@ Computes the point at parameter u.
void D0(const Standard_Real U, gp_Pnt & P);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -4861,10 +5018,22 @@ Computes the point at parameter u.
void D0(const Standard_Real U, gp_Pnt & P);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -5034,10 +5203,22 @@ No available documentation.
BRep_PointOnCurveOnSurface(const Standard_Real P, const opencascade::handle & C, const opencascade::handle & S, const TopLoc_Location & L);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -5257,10 +5438,22 @@ Return a copy of this representation.
virtual opencascade::handle Copy();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -5360,10 +5553,22 @@ Return a copy of this representation.
virtual opencascade::handle Copy();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -5495,10 +5700,22 @@ Return a copy of this representation.
virtual opencascade::handle Copy();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
diff --git a/src/SWIG_files/wrapper/BRep.pyi b/src/SWIG_files/wrapper/BRep.pyi
index 2bab5fa02..7c3a19143 100644
--- a/src/SWIG_files/wrapper/BRep.pyi
+++ b/src/SWIG_files/wrapper/BRep.pyi
@@ -153,6 +153,7 @@ class BRep_CurveRepresentation(Standard_Transient):
def Curve3D(self) -> Geom_Curve: ...
@overload
def Curve3D(self, C: Geom_Curve) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsCurve3D(self) -> bool: ...
def IsCurveOnClosedSurface(self) -> bool: ...
@overload
@@ -216,6 +217,7 @@ class BRep_PointRepresentation(Standard_Transient):
def Curve(self) -> Geom_Curve: ...
@overload
def Curve(self, C: Geom_Curve) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
@overload
def IsPointOnCurve(self) -> bool: ...
@overload
@@ -257,6 +259,7 @@ class BRep_TEdge(TopoDS_TEdge):
def Degenerated(self) -> bool: ...
@overload
def Degenerated(self, S: bool) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EmptyCopy(self) -> TopoDS_TShape: ...
@overload
def SameParameter(self) -> bool: ...
@@ -275,6 +278,7 @@ class BRep_TEdge(TopoDS_TEdge):
class BRep_TFace(TopoDS_TFace):
def __init__(self) -> None: ...
def ActiveTriangulation(self) -> Poly_Triangulation: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EmptyCopy(self) -> TopoDS_TShape: ...
@overload
def Location(self) -> TopLoc_Location: ...
@@ -305,6 +309,7 @@ class BRep_TFace(TopoDS_TFace):
class BRep_TVertex(TopoDS_TVertex):
def __init__(self) -> None: ...
def ChangePoints(self) -> BRep_ListOfPointRepresentation: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EmptyCopy(self) -> TopoDS_TShape: ...
@overload
def Pnt(self) -> gp_Pnt: ...
@@ -471,6 +476,7 @@ class BRep_CurveOn2Surfaces(BRep_CurveRepresentation):
def Continuity(self, C: GeomAbs_Shape) -> None: ...
def Copy(self) -> BRep_CurveRepresentation: ...
def D0(self, U: float, P: gp_Pnt) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
@overload
def IsRegularity(self) -> bool: ...
@overload
@@ -481,6 +487,7 @@ class BRep_CurveOn2Surfaces(BRep_CurveRepresentation):
class BRep_GCurve(BRep_CurveRepresentation):
def D0(self, U: float, P: gp_Pnt) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
@overload
def First(self) -> float: ...
@overload
@@ -499,12 +506,14 @@ class BRep_PointOnCurve(BRep_PointRepresentation):
def Curve(self) -> Geom_Curve: ...
@overload
def Curve(self, C: Geom_Curve) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
@overload
def IsPointOnCurve(self) -> bool: ...
@overload
def IsPointOnCurve(self, C: Geom_Curve, L: TopLoc_Location) -> bool: ...
class BRep_PointsOnSurface(BRep_PointRepresentation):
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
@overload
def Surface(self) -> Geom_Surface: ...
@overload
@@ -513,6 +522,7 @@ class BRep_PointsOnSurface(BRep_PointRepresentation):
class BRep_Polygon3D(BRep_CurveRepresentation):
def __init__(self, P: Poly_Polygon3D, L: TopLoc_Location) -> None: ...
def Copy(self) -> BRep_CurveRepresentation: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsPolygon3D(self) -> bool: ...
@overload
def Polygon3D(self) -> Poly_Polygon3D: ...
@@ -522,6 +532,7 @@ class BRep_Polygon3D(BRep_CurveRepresentation):
class BRep_PolygonOnSurface(BRep_CurveRepresentation):
def __init__(self, P: Poly_Polygon2D, S: Geom_Surface, L: TopLoc_Location) -> None: ...
def Copy(self) -> BRep_CurveRepresentation: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
@overload
def IsPolygonOnSurface(self) -> bool: ...
@overload
@@ -535,6 +546,7 @@ class BRep_PolygonOnSurface(BRep_CurveRepresentation):
class BRep_PolygonOnTriangulation(BRep_CurveRepresentation):
def __init__(self, P: Poly_PolygonOnTriangulation, T: Poly_Triangulation, L: TopLoc_Location) -> None: ...
def Copy(self) -> BRep_CurveRepresentation: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
@overload
def IsPolygonOnTriangulation(self) -> bool: ...
@overload
@@ -553,12 +565,14 @@ class BRep_Curve3D(BRep_GCurve):
@overload
def Curve3D(self, C: Geom_Curve) -> None: ...
def D0(self, U: float, P: gp_Pnt) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsCurve3D(self) -> bool: ...
class BRep_CurveOnSurface(BRep_GCurve):
def __init__(self, PC: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location) -> None: ...
def Copy(self) -> BRep_CurveRepresentation: ...
def D0(self, U: float, P: gp_Pnt) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
@overload
def IsCurveOnSurface(self) -> bool: ...
@overload
@@ -574,6 +588,7 @@ class BRep_CurveOnSurface(BRep_GCurve):
class BRep_PointOnCurveOnSurface(BRep_PointsOnSurface):
def __init__(self, P: float, C: Geom2d_Curve, S: Geom_Surface, L: TopLoc_Location) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
@overload
def IsPointOnCurveOnSurface(self) -> bool: ...
@overload
@@ -597,6 +612,7 @@ class BRep_PointOnSurface(BRep_PointsOnSurface):
class BRep_PolygonOnClosedSurface(BRep_PolygonOnSurface):
def __init__(self, P1: Poly_Polygon2D, P2: Poly_Polygon2D, S: Geom_Surface, L: TopLoc_Location) -> None: ...
def Copy(self) -> BRep_CurveRepresentation: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsPolygonOnClosedSurface(self) -> bool: ...
@overload
def Polygon2(self) -> Poly_Polygon2D: ...
@@ -606,6 +622,7 @@ class BRep_PolygonOnClosedSurface(BRep_PolygonOnSurface):
class BRep_PolygonOnClosedTriangulation(BRep_PolygonOnTriangulation):
def __init__(self, P1: Poly_PolygonOnTriangulation, P2: Poly_PolygonOnTriangulation, Tr: Poly_Triangulation, L: TopLoc_Location) -> None: ...
def Copy(self) -> BRep_CurveRepresentation: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsPolygonOnClosedTriangulation(self) -> bool: ...
@overload
def PolygonOnTriangulation2(self, P2: Poly_PolygonOnTriangulation) -> None: ...
@@ -619,6 +636,7 @@ class BRep_CurveOnClosedSurface(BRep_CurveOnSurface):
@overload
def Continuity(self, C: GeomAbs_Shape) -> None: ...
def Copy(self) -> BRep_CurveRepresentation: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsCurveOnClosedSurface(self) -> bool: ...
@overload
def IsRegularity(self) -> bool: ...
diff --git a/src/SWIG_files/wrapper/BRepAdaptor.i b/src/SWIG_files/wrapper/BRepAdaptor.i
index 65f2bf66a..10b5d0180 100644
--- a/src/SWIG_files/wrapper/BRepAdaptor.i
+++ b/src/SWIG_files/wrapper/BRepAdaptor.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepadaptor.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepAlgo.i b/src/SWIG_files/wrapper/BRepAlgo.i
index a0888bcff..08f748ef8 100644
--- a/src/SWIG_files/wrapper/BRepAlgo.i
+++ b/src/SWIG_files/wrapper/BRepAlgo.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepalgo.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepAlgoAPI.i b/src/SWIG_files/wrapper/BRepAlgoAPI.i
index ea9baf6f1..3d4f0b3c3 100644
--- a/src/SWIG_files/wrapper/BRepAlgoAPI.i
+++ b/src/SWIG_files/wrapper/BRepAlgoAPI.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepalgoapi.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepApprox.i b/src/SWIG_files/wrapper/BRepApprox.i
index 0f163a295..540a103a0 100644
--- a/src/SWIG_files/wrapper/BRepApprox.i
+++ b/src/SWIG_files/wrapper/BRepApprox.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepapprox.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepBlend.i b/src/SWIG_files/wrapper/BRepBlend.i
index 184521179..14952b506 100644
--- a/src/SWIG_files/wrapper/BRepBlend.i
+++ b/src/SWIG_files/wrapper/BRepBlend.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepblend.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -1206,14 +1207,23 @@ No available documentation.
") Curves2dShape;
void Curves2dShape(Standard_Integer &OutValue, Standard_Integer &OutValue, Standard_Integer &OutValue);
+ /****************** Dump ******************/
+ /**** md5 signature: d37b43e0b2386dc096d5d707876db157 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Display information on approximation.
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** IsDone ******************/
/**** md5 signature: ec0624071ec7da54b3d9dacc7bcb05f9 ****/
%feature("compactdefaultargs") IsDone;
diff --git a/src/SWIG_files/wrapper/BRepBlend.pyi b/src/SWIG_files/wrapper/BRepBlend.pyi
index df35bab03..9df18d9b7 100644
--- a/src/SWIG_files/wrapper/BRepBlend.pyi
+++ b/src/SWIG_files/wrapper/BRepBlend.pyi
@@ -135,6 +135,7 @@ class BRepBlend_AppSurface(AppBlend_Approx):
def Curves2dKnots(self) -> TColStd_Array1OfReal: ...
def Curves2dMults(self) -> TColStd_Array1OfInteger: ...
def Curves2dShape(self) -> Tuple[int, int, int]: ...
+ def Dump(self) -> str: ...
def IsDone(self) -> bool: ...
def Max2dError(self, Index: int) -> float: ...
def MaxErrorOnSurf(self) -> float: ...
diff --git a/src/SWIG_files/wrapper/BRepBndLib.i b/src/SWIG_files/wrapper/BRepBndLib.i
index 5855acc6a..93011d888 100644
--- a/src/SWIG_files/wrapper/BRepBndLib.i
+++ b/src/SWIG_files/wrapper/BRepBndLib.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepbndlib.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepBuilderAPI.i b/src/SWIG_files/wrapper/BRepBuilderAPI.i
index ea762ecb9..8b6850219 100644
--- a/src/SWIG_files/wrapper/BRepBuilderAPI.i
+++ b/src/SWIG_files/wrapper/BRepBuilderAPI.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepbuilderapi.ht
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepCheck.i b/src/SWIG_files/wrapper/BRepCheck.i
index 8798f1e29..d59df7cf3 100644
--- a/src/SWIG_files/wrapper/BRepCheck.i
+++ b/src/SWIG_files/wrapper/BRepCheck.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepcheck.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -284,6 +285,24 @@ Returns the resolution on the surface.
") PrecSurface;
static Standard_Real PrecSurface(const opencascade::handle & aAHSurf);
+ /****************** Print ******************/
+ /**** md5 signature: 0f4f5589255e0cda18fd387e5d4e5b49 ****/
+ %feature("compactdefaultargs") Print;
+ %feature("autodoc", "
+Parameters
+----------
+Stat: BRepCheck_Status
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+No available documentation.
+") Print;
+ static void Print(const BRepCheck_Status Stat, std::ostream &OutValue);
+
/****************** SelfIntersection ******************/
/**** md5 signature: bb04b20d19bd60ec83e4525199c06c3b ****/
%feature("compactdefaultargs") SelfIntersection;
@@ -1681,6 +1700,10 @@ def brepcheck_PrecCurve(*args):
def brepcheck_PrecSurface(*args):
return brepcheck.PrecSurface(*args)
+@deprecated
+def brepcheck_Print(*args):
+ return brepcheck.Print(*args)
+
@deprecated
def brepcheck_SelfIntersection(*args):
return brepcheck.SelfIntersection(*args)
diff --git a/src/SWIG_files/wrapper/BRepCheck.pyi b/src/SWIG_files/wrapper/BRepCheck.pyi
index e29850203..ae14486b3 100644
--- a/src/SWIG_files/wrapper/BRepCheck.pyi
+++ b/src/SWIG_files/wrapper/BRepCheck.pyi
@@ -111,6 +111,8 @@ class brepcheck:
@staticmethod
def PrecSurface(aAHSurf: Adaptor3d_Surface) -> float: ...
@staticmethod
+ def Print(Stat: BRepCheck_Status) -> str: ...
+ @staticmethod
def SelfIntersection(W: TopoDS_Wire, F: TopoDS_Face, E1: TopoDS_Edge, E2: TopoDS_Edge) -> bool: ...
class BRepCheck_Analyzer:
diff --git a/src/SWIG_files/wrapper/BRepClass.i b/src/SWIG_files/wrapper/BRepClass.i
index d60667326..311f2df0c 100644
--- a/src/SWIG_files/wrapper/BRepClass.i
+++ b/src/SWIG_files/wrapper/BRepClass.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepclass.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepClass3d.i b/src/SWIG_files/wrapper/BRepClass3d.i
index 9bd394212..d448672f1 100644
--- a/src/SWIG_files/wrapper/BRepClass3d.i
+++ b/src/SWIG_files/wrapper/BRepClass3d.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepclass3d.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepExtrema.i b/src/SWIG_files/wrapper/BRepExtrema.i
index 54fd7ba01..919b284c4 100644
--- a/src/SWIG_files/wrapper/BRepExtrema.i
+++ b/src/SWIG_files/wrapper/BRepExtrema.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepextrema.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -197,14 +198,23 @@ Create tool and computation of the minimum distance (value and pair of points) i
") BRepExtrema_DistShapeShape;
BRepExtrema_DistShapeShape(const TopoDS_Shape & Shape1, const TopoDS_Shape & Shape2, const Standard_Real theDeflection, const Extrema_ExtFlag F = Extrema_ExtFlag_MINMAX, const Extrema_ExtAlgo A = Extrema_ExtAlgo_Grad, const Message_ProgressRange & theRange = Message_ProgressRange());
+ /****************** Dump ******************/
+ /**** md5 signature: d37b43e0b2386dc096d5d707876db157 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Prints on the stream o information on the current state of the object. .
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** InnerSolution ******************/
/**** md5 signature: c2076c783e4f1c4305057f88c3c68086 ****/
%feature("compactdefaultargs") InnerSolution;
diff --git a/src/SWIG_files/wrapper/BRepExtrema.pyi b/src/SWIG_files/wrapper/BRepExtrema.pyi
index 8ad08f1e8..03aeb6bba 100644
--- a/src/SWIG_files/wrapper/BRepExtrema.pyi
+++ b/src/SWIG_files/wrapper/BRepExtrema.pyi
@@ -45,6 +45,7 @@ class BRepExtrema_DistShapeShape:
def __init__(self, Shape1: TopoDS_Shape, Shape2: TopoDS_Shape, F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
@overload
def __init__(self, Shape1: TopoDS_Shape, Shape2: TopoDS_Shape, theDeflection: float, F: Optional[Extrema_ExtFlag] = Extrema_ExtFlag_MINMAX, A: Optional[Extrema_ExtAlgo] = Extrema_ExtAlgo_Grad, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ def Dump(self) -> str: ...
def InnerSolution(self) -> bool: ...
def IsDone(self) -> bool: ...
def IsMultiThread(self) -> bool: ...
diff --git a/src/SWIG_files/wrapper/BRepFeat.i b/src/SWIG_files/wrapper/BRepFeat.i
index e8a6cd01a..882be2668 100644
--- a/src/SWIG_files/wrapper/BRepFeat.i
+++ b/src/SWIG_files/wrapper/BRepFeat.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepfeat.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -344,6 +345,24 @@ Ori = true taking account the orientation.
") ParametricMinMax;
static void ParametricMinMax(const TopoDS_Shape & S, const opencascade::handle & C, Standard_Real &OutValue, Standard_Real &OutValue, Standard_Real &OutValue, Standard_Real &OutValue, Standard_Boolean &OutValue, const Standard_Boolean Ori = Standard_False);
+ /****************** Print ******************/
+ /**** md5 signature: a6852c8c0afb9e1a2f070d2ece4eddfa ****/
+ %feature("compactdefaultargs") Print;
+ %feature("autodoc", "
+Parameters
+----------
+SE: BRepFeat_StatusError
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Prints the error description of the state as a string on the stream and returns .
+") Print;
+ static Standard_OStream & Print(const BRepFeat_StatusError SE, std::ostream &OutValue);
+
/****************** SampleEdges ******************/
/**** md5 signature: f1154ae22c369e9497c31a5a83612489 ****/
%feature("compactdefaultargs") SampleEdges;
@@ -2953,6 +2972,10 @@ def brepfeat_ParametricBarycenter(*args):
def brepfeat_ParametricMinMax(*args):
return brepfeat.ParametricMinMax(*args)
+@deprecated
+def brepfeat_Print(*args):
+ return brepfeat.Print(*args)
+
@deprecated
def brepfeat_SampleEdges(*args):
return brepfeat.SampleEdges(*args)
diff --git a/src/SWIG_files/wrapper/BRepFeat.pyi b/src/SWIG_files/wrapper/BRepFeat.pyi
index e7fe9ecdc..233b8ee3b 100644
--- a/src/SWIG_files/wrapper/BRepFeat.pyi
+++ b/src/SWIG_files/wrapper/BRepFeat.pyi
@@ -109,6 +109,8 @@ class brepfeat:
@staticmethod
def ParametricMinMax(S: TopoDS_Shape, C: Geom_Curve, Ori: Optional[bool] = False) -> Tuple[float, float, float, float, bool]: ...
@staticmethod
+ def Print(SE: BRepFeat_StatusError) -> Tuple[Standard_OStream, str]: ...
+ @staticmethod
def SampleEdges(S: TopoDS_Shape, Pt: TColgp_SequenceOfPnt) -> None: ...
@staticmethod
def Tool(SRef: TopoDS_Shape, Fac: TopoDS_Face, Orf: TopAbs_Orientation) -> TopoDS_Solid: ...
diff --git a/src/SWIG_files/wrapper/BRepFill.i b/src/SWIG_files/wrapper/BRepFill.i
index e2780e71c..95c30172b 100644
--- a/src/SWIG_files/wrapper/BRepFill.i
+++ b/src/SWIG_files/wrapper/BRepFill.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepfill.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepFilletAPI.i b/src/SWIG_files/wrapper/BRepFilletAPI.i
index 63232e09c..587dffa3f 100644
--- a/src/SWIG_files/wrapper/BRepFilletAPI.i
+++ b/src/SWIG_files/wrapper/BRepFilletAPI.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepfilletapi.htm
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepGProp.i b/src/SWIG_files/wrapper/BRepGProp.i
index a29eae963..56c116434 100644
--- a/src/SWIG_files/wrapper/BRepGProp.i
+++ b/src/SWIG_files/wrapper/BRepGProp.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepgprop.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepIntCurveSurface.i b/src/SWIG_files/wrapper/BRepIntCurveSurface.i
index a8176e1c3..40d4ee82f 100644
--- a/src/SWIG_files/wrapper/BRepIntCurveSurface.i
+++ b/src/SWIG_files/wrapper/BRepIntCurveSurface.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepintcurvesurfa
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepLProp.i b/src/SWIG_files/wrapper/BRepLProp.i
index 652b1a773..fb94567e1 100644
--- a/src/SWIG_files/wrapper/BRepLProp.i
+++ b/src/SWIG_files/wrapper/BRepLProp.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_breplprop.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepLib.i b/src/SWIG_files/wrapper/BRepLib.i
index 74f8e653b..aa3c98444 100644
--- a/src/SWIG_files/wrapper/BRepLib.i
+++ b/src/SWIG_files/wrapper/BRepLib.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_breplib.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepMAT2d.i b/src/SWIG_files/wrapper/BRepMAT2d.i
index 1210f1325..197a46e90 100644
--- a/src/SWIG_files/wrapper/BRepMAT2d.i
+++ b/src/SWIG_files/wrapper/BRepMAT2d.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepmat2d.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepMesh.i b/src/SWIG_files/wrapper/BRepMesh.i
index 8991a44fc..88534358d 100644
--- a/src/SWIG_files/wrapper/BRepMesh.i
+++ b/src/SWIG_files/wrapper/BRepMesh.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepmesh.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -1328,14 +1329,23 @@ Removes node from the mesh in case if it has no connected links and its type is
") RemoveNode;
void RemoveNode(const Standard_Integer theIndex, const Standard_Boolean isForce = Standard_False);
+ /****************** Statistics ******************/
+ /**** md5 signature: 1a1dab8d9fff60f7ef456c28f93e75d1 ****/
+ %feature("compactdefaultargs") Statistics;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+theStream: Standard_OStream
+
+Description
+-----------
+Dumps information about this structure. @param thestream stream to be used for dump.
+") Statistics;
+ void Statistics(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string StatisticsToString() {
- std::stringstream s;
- self->Statistics(s);
- return s.str();}
- };
/****************** SubstituteElement ******************/
/**** md5 signature: 12a4e39048c62f85d59c6cb6b113dccd ****/
%feature("compactdefaultargs") SubstituteElement;
@@ -5063,14 +5073,23 @@ Sets the tolerance to be used for identification of coincident vertices. @param
") SetTolerance;
void SetTolerance(const Standard_Real theToleranceX, const Standard_Real theToleranceY);
+ /****************** Statistics ******************/
+ /**** md5 signature: 1a1dab8d9fff60f7ef456c28f93e75d1 ****/
+ %feature("compactdefaultargs") Statistics;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+theStream: Standard_OStream
+
+Description
+-----------
+Prints statistics.
+") Statistics;
+ void Statistics(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string StatisticsToString() {
- std::stringstream s;
- self->Statistics(s);
- return s.str();}
- };
/****************** Substitute ******************/
/**** md5 signature: 02ac53c87b5a046c4ee9a0b10ac44d20 ****/
%feature("compactdefaultargs") Substitute;
diff --git a/src/SWIG_files/wrapper/BRepMesh.pyi b/src/SWIG_files/wrapper/BRepMesh.pyi
index fbbba1208..aa0fc2314 100644
--- a/src/SWIG_files/wrapper/BRepMesh.pyi
+++ b/src/SWIG_files/wrapper/BRepMesh.pyi
@@ -133,6 +133,7 @@ class BRepMesh_DataStructureOfDelaun(Standard_Transient):
def RemoveElement(self, theIndex: int) -> None: ...
def RemoveLink(self, theIndex: int, isForce: Optional[bool] = False) -> None: ...
def RemoveNode(self, theIndex: int, isForce: Optional[bool] = False) -> None: ...
+ def Statistics(self) -> str: ...
def SubstituteElement(self, theIndex: int, theNewElement: BRepMesh_Triangle) -> bool: ...
def SubstituteLink(self, theIndex: int, theNewLink: BRepMesh_Edge) -> bool: ...
def SubstituteNode(self, theIndex: int, theNewNode: BRepMesh_Vertex) -> bool: ...
@@ -399,6 +400,7 @@ class BRepMesh_VertexTool(Standard_Transient):
def SetTolerance(self, theTolerance: float) -> None: ...
@overload
def SetTolerance(self, theToleranceX: float, theToleranceY: float) -> None: ...
+ def Statistics(self) -> str: ...
def Substitute(self, theIndex: int, theVertex: BRepMesh_Vertex) -> None: ...
class BRepMesh_ConeRangeSplitter(BRepMesh_DefaultRangeSplitter):
diff --git a/src/SWIG_files/wrapper/BRepMeshData.i b/src/SWIG_files/wrapper/BRepMeshData.i
index e3b0f7dae..972ff1962 100644
--- a/src/SWIG_files/wrapper/BRepMeshData.i
+++ b/src/SWIG_files/wrapper/BRepMeshData.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepmeshdata.html
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepOffset.i b/src/SWIG_files/wrapper/BRepOffset.i
index 736ca7057..7ef121323 100644
--- a/src/SWIG_files/wrapper/BRepOffset.i
+++ b/src/SWIG_files/wrapper/BRepOffset.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepoffset.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepOffsetAPI.i b/src/SWIG_files/wrapper/BRepOffsetAPI.i
index 557d33fe3..ef11f526d 100644
--- a/src/SWIG_files/wrapper/BRepOffsetAPI.i
+++ b/src/SWIG_files/wrapper/BRepOffsetAPI.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepoffsetapi.htm
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepPrim.i b/src/SWIG_files/wrapper/BRepPrim.i
index 0e7d20163..de6d1e1e1 100644
--- a/src/SWIG_files/wrapper/BRepPrim.i
+++ b/src/SWIG_files/wrapper/BRepPrim.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepprim.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepPrimAPI.i b/src/SWIG_files/wrapper/BRepPrimAPI.i
index 41fbee912..c3674e8be 100644
--- a/src/SWIG_files/wrapper/BRepPrimAPI.i
+++ b/src/SWIG_files/wrapper/BRepPrimAPI.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepprimapi.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepProj.i b/src/SWIG_files/wrapper/BRepProj.i
index eff3e40aa..4e712853f 100644
--- a/src/SWIG_files/wrapper/BRepProj.i
+++ b/src/SWIG_files/wrapper/BRepProj.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepproj.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepSweep.i b/src/SWIG_files/wrapper/BRepSweep.i
index ad4aa48af..8a9399525 100644
--- a/src/SWIG_files/wrapper/BRepSweep.i
+++ b/src/SWIG_files/wrapper/BRepSweep.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_brepsweep.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BRepTools.i b/src/SWIG_files/wrapper/BRepTools.i
index d084af0d0..27d742673 100644
--- a/src/SWIG_files/wrapper/BRepTools.i
+++ b/src/SWIG_files/wrapper/BRepTools.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_breptools.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -308,6 +309,24 @@ Detect closedness of face in u and v directions.
") DetectClosedness;
static void DetectClosedness(const TopoDS_Face & theFace, Standard_Boolean &OutValue, Standard_Boolean &OutValue);
+ /****************** Dump ******************/
+ /**** md5 signature: d8fbac42c489d0bae98b03b1387b21c5 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+Sh: TopoDS_Shape
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Dumps the topological structure and the geometry of on the stream .
+") Dump;
+ static void Dump(const TopoDS_Shape & Sh, std::ostream &OutValue);
+
/****************** EvalAndUpdateTol ******************/
/**** md5 signature: 16be652a9c224d56f94960b2cade0539 ****/
%feature("compactdefaultargs") EvalAndUpdateTol;
@@ -446,6 +465,27 @@ Returns the outer most wire of . returns a null wire if has no wires.
") OuterWire;
static TopoDS_Wire OuterWire(const TopoDS_Face & F);
+ /****************** Read ******************/
+ /**** md5 signature: f8f4ebe237e52067b8c32d38777547cb ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+Sh: TopoDS_Shape
+S: str
+B: BRep_Builder
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads a shape from in returns it in . is used to build the shape.
+") Read;
+ static void Read(TopoDS_Shape & Sh, std::istream & S, const BRep_Builder & B, const Message_ProgressRange & theProgress = Message_ProgressRange());
+
/****************** Read ******************/
/**** md5 signature: 5e5d6e702af29b2284954f484072b531 ****/
%feature("compactdefaultargs") Read;
@@ -806,6 +846,47 @@ For each edge of the face reset the uv points to the bounding points of the
") UpdateFaceUVPoints;
static void UpdateFaceUVPoints(const TopoDS_Face & theF);
+ /****************** Write ******************/
+ /**** md5 signature: 92da105c9c540199f80c0283d45c56e0 ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+theShape: TopoDS_Shape
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+theStream: Standard_OStream
+
+Description
+-----------
+Writes the shape to the stream in an ascii format toptools_formatversion_version_1. this alias writes shape with triangulation data. @param theshape [in] the shape to write @param thestream [in][out] the stream to output shape into @param therange the range of progress indicator to fill in.
+") Write;
+ static void Write(const TopoDS_Shape & theShape, std::ostream &OutValue, const Message_ProgressRange & theProgress = Message_ProgressRange());
+
+ /****************** Write ******************/
+ /**** md5 signature: 9549ae676c065d5541189e667b74dffd ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+theShape: TopoDS_Shape
+theWithTriangles: bool
+theWithNormals: bool
+theVersion: TopTools_FormatVersion
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+theStream: Standard_OStream
+
+Description
+-----------
+Writes the shape to the stream in an ascii format of specified version. @param theshape [in] the shape to write @param thestream [in][out] the stream to output shape into @param thewithtriangles [in] flag which specifies whether to save shape with (true) or without (false) triangles; has no effect on triangulation-only geometry @param thewithnormals [in] flag which specifies whether to save triangulation with (true) or without (false) normals; has no effect on triangulation-only geometry @param theversion [in] the toptools format version @param theprogress the range of progress indicator to fill in.
+") Write;
+ static void Write(const TopoDS_Shape & theShape, std::ostream &OutValue, const Standard_Boolean theWithTriangles, const Standard_Boolean theWithNormals, const TopTools_FormatVersion theVersion, const Message_ProgressRange & theProgress = Message_ProgressRange());
+
/****************** Write ******************/
/**** md5 signature: 2b0742433c64d0c04f4d2d4d98afcfa2 ****/
%feature("compactdefaultargs") Write;
@@ -957,14 +1038,23 @@ Clears the history.
") Clear;
void Clear();
+ /****************** Dump ******************/
+ /**** md5 signature: b0b4810c084d0c0f210602a019840cff ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+theS: Standard_OStream
+
+Description
+-----------
+Prints the brief description of the history into a stream.
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** Generated ******************/
/**** md5 signature: 308ecbb5e9f94e72f26d5a5fd518be68 ****/
%feature("compactdefaultargs") Generated;
@@ -2084,38 +2174,92 @@ Clears the content of the set.
") Clear;
virtual void Clear();
+ /****************** DumpGeometry ******************/
+ /**** md5 signature: 8a10297a2e0a44206d544cf3208c2ebd ****/
+ %feature("compactdefaultargs") DumpGeometry;
+ %feature("autodoc", "
+Parameters
+----------
- %feature("autodoc", "1");
- %extend{
- std::string DumpGeometryToString() {
- std::stringstream s;
- self->DumpGeometry(s);
- return s.str();}
- };
+Return
+-------
+OS: Standard_OStream
- %feature("autodoc", "1");
- %extend{
- std::string DumpPolygon3DToString() {
- std::stringstream s;
- self->DumpPolygon3D(s);
- return s.str();}
- };
+Description
+-----------
+Dumps the geometry of me on the stream .
+") DumpGeometry;
+ virtual void DumpGeometry(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpPolygonOnTriangulationToString() {
- std::stringstream s;
- self->DumpPolygonOnTriangulation(s);
- return s.str();}
- };
+ /****************** DumpGeometry ******************/
+ /**** md5 signature: 441eb2169ad0b3222fe794ba8ea21d05 ****/
+ %feature("compactdefaultargs") DumpGeometry;
+ %feature("autodoc", "
+Parameters
+----------
+S: TopoDS_Shape
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Dumps the geometry of on the stream .
+") DumpGeometry;
+ virtual void DumpGeometry(const TopoDS_Shape & S, std::ostream &OutValue);
+
+ /****************** DumpPolygon3D ******************/
+ /**** md5 signature: d71dc2828833ae37d1fdf2e355dbb1b6 ****/
+ %feature("compactdefaultargs") DumpPolygon3D;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Dumps the 3d polygons on the stream .
+") DumpPolygon3D;
+ void DumpPolygon3D(std::ostream &OutValue);
+
+ /****************** DumpPolygonOnTriangulation ******************/
+ /**** md5 signature: ebede4d5757370c7f0a77e3b47b20ea8 ****/
+ %feature("compactdefaultargs") DumpPolygonOnTriangulation;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Dumps the polygons on triangulation on the stream .
+") DumpPolygonOnTriangulation;
+ void DumpPolygonOnTriangulation(std::ostream &OutValue);
+
+ /****************** DumpTriangulation ******************/
+ /**** md5 signature: 573377e15caf72db43c4f0909c6d6c4b ****/
+ %feature("compactdefaultargs") DumpTriangulation;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Dumps the triangulation on the stream .
+") DumpTriangulation;
+ void DumpTriangulation(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpTriangulationToString() {
- std::stringstream s;
- self->DumpTriangulation(s);
- return s.str();}
- };
/****************** IsWithNormals ******************/
/**** md5 signature: 49f5baecd893691e08f163fb559d8b06 ****/
%feature("compactdefaultargs") IsWithNormals;
@@ -2142,34 +2286,102 @@ Return true if shape should be stored with triangles.
") IsWithTriangles;
Standard_Boolean IsWithTriangles();
+ /****************** ReadGeometry ******************/
+ /**** md5 signature: 29982a86f8628bd19687b88946d88b2b ****/
+ %feature("compactdefaultargs") ReadGeometry;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
- %feature("autodoc", "1");
- %extend{
- void ReadGeometryFromString(std::string src) {
- std::stringstream s(src);
- self->ReadGeometry(s);}
- };
+Description
+-----------
+Reads the geometry of me from the stream .
+") ReadGeometry;
+ virtual void ReadGeometry(std::istream & IS, const Message_ProgressRange & theProgress = Message_ProgressRange());
- %feature("autodoc", "1");
- %extend{
- void ReadPolygon3DFromString(std::string src) {
- std::stringstream s(src);
- self->ReadPolygon3D(s);}
- };
+ /****************** ReadGeometry ******************/
+ /**** md5 signature: aec2489bee709d857b09eddd7a62d272 ****/
+ %feature("compactdefaultargs") ReadGeometry;
+ %feature("autodoc", "
+Parameters
+----------
+T: TopAbs_ShapeEnum
+IS: str
+S: TopoDS_Shape
- %feature("autodoc", "1");
- %extend{
- void ReadPolygonOnTriangulationFromString(std::string src) {
- std::stringstream s(src);
- self->ReadPolygonOnTriangulation(s);}
- };
+Return
+-------
+None
+
+Description
+-----------
+Reads the geometry of a shape of type from the stream and returns it in .
+") ReadGeometry;
+ virtual void ReadGeometry(const TopAbs_ShapeEnum T, std::istream & IS, TopoDS_Shape & S);
+
+ /****************** ReadPolygon3D ******************/
+ /**** md5 signature: e637370098b2bac74ea2ad781985457f ****/
+ %feature("compactdefaultargs") ReadPolygon3D;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the 3d polygons of me from the stream .
+") ReadPolygon3D;
+ void ReadPolygon3D(std::istream & IS, const Message_ProgressRange & theProgress = Message_ProgressRange());
+
+ /****************** ReadPolygonOnTriangulation ******************/
+ /**** md5 signature: 8c589d9572a02a58a24994948b7ca837 ****/
+ %feature("compactdefaultargs") ReadPolygonOnTriangulation;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the polygons on triangulation of me from the stream .
+") ReadPolygonOnTriangulation;
+ void ReadPolygonOnTriangulation(std::istream & IS, const Message_ProgressRange & theProgress = Message_ProgressRange());
+
+ /****************** ReadTriangulation ******************/
+ /**** md5 signature: 2c884f46fbe1934a9efd5f890623beee ****/
+ %feature("compactdefaultargs") ReadTriangulation;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the triangulation of me from the stream .
+") ReadTriangulation;
+ void ReadTriangulation(std::istream & IS, const Message_ProgressRange & theProgress = Message_ProgressRange());
- %feature("autodoc", "1");
- %extend{
- void ReadTriangulationFromString(std::string src) {
- std::stringstream s(src);
- self->ReadTriangulation(s);}
- };
/****************** SetWithNormals ******************/
/**** md5 signature: 9f03f91e56766f46bd17d99a089a0a21 ****/
%feature("compactdefaultargs") SetWithNormals;
@@ -2206,14 +2418,99 @@ Define if shape will be stored with triangles. ignored (always written) if face
") SetWithTriangles;
void SetWithTriangles(const Standard_Boolean theWithTriangles);
+ /****************** WriteGeometry ******************/
+ /**** md5 signature: 4f112c9f4ab0e11dc4ef39084df9e9d4 ****/
+ %feature("compactdefaultargs") WriteGeometry;
+ %feature("autodoc", "
+Parameters
+----------
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the geometry of me on the stream in a format that can be read back by read.
+") WriteGeometry;
+ virtual void WriteGeometry(std::ostream &OutValue, const Message_ProgressRange & theProgress = Message_ProgressRange());
+
+ /****************** WriteGeometry ******************/
+ /**** md5 signature: ce5d0a3d33cc100dd52fd3b965ea1743 ****/
+ %feature("compactdefaultargs") WriteGeometry;
+ %feature("autodoc", "
+Parameters
+----------
+S: TopoDS_Shape
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the geometry of on the stream in a format that can be read back by read.
+") WriteGeometry;
+ virtual void WriteGeometry(const TopoDS_Shape & S, std::ostream &OutValue);
+
+ /****************** WritePolygon3D ******************/
+ /**** md5 signature: adec09c9b52ff86073162dcfc4f3bda4 ****/
+ %feature("compactdefaultargs") WritePolygon3D;
+ %feature("autodoc", "
+Parameters
+----------
+Compact: bool (optional, default to Standard_True)
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the 3d polygons on the stream in a format that can be read back by read.
+") WritePolygon3D;
+ void WritePolygon3D(std::ostream &OutValue, const Standard_Boolean Compact = Standard_True, const Message_ProgressRange & theProgress = Message_ProgressRange());
+
+ /****************** WritePolygonOnTriangulation ******************/
+ /**** md5 signature: b6577cbf6cdb2bc0baa774f88dfd3418 ****/
+ %feature("compactdefaultargs") WritePolygonOnTriangulation;
+ %feature("autodoc", "
+Parameters
+----------
+Compact: bool (optional, default to Standard_True)
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the polygons on triangulation on the stream in a format that can be read back by read.
+") WritePolygonOnTriangulation;
+ void WritePolygonOnTriangulation(std::ostream &OutValue, const Standard_Boolean Compact = Standard_True, const Message_ProgressRange & theProgress = Message_ProgressRange());
+
+ /****************** WriteTriangulation ******************/
+ /**** md5 signature: 63a7d12f83f3bef281e1178d99ed272d ****/
+ %feature("compactdefaultargs") WriteTriangulation;
+ %feature("autodoc", "
+Parameters
+----------
+Compact: bool (optional, default to Standard_True)
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the triangulation on the stream in a format that can be read back by read.
+") WriteTriangulation;
+ void WriteTriangulation(std::ostream &OutValue, const Standard_Boolean Compact = Standard_True, const Message_ProgressRange & theProgress = Message_ProgressRange());
- %feature("autodoc", "1");
- %extend{
- std::string WriteGeometryToString() {
- std::stringstream s;
- self->WriteGeometry(s);
- return s.str();}
- };
};
@@ -3506,6 +3803,10 @@ def breptools_Compare(*args):
def breptools_DetectClosedness(*args):
return breptools.DetectClosedness(*args)
+@deprecated
+def breptools_Dump(*args):
+ return breptools.Dump(*args)
+
@deprecated
def breptools_EvalAndUpdateTol(*args):
return breptools.EvalAndUpdateTol(*args)
@@ -3538,6 +3839,10 @@ def breptools_OuterWire(*args):
def breptools_Read(*args):
return breptools.Read(*args)
+@deprecated
+def breptools_Read(*args):
+ return breptools.Read(*args)
+
@deprecated
def breptools_RemoveInternals(*args):
return breptools.RemoveInternals(*args)
@@ -3618,6 +3923,14 @@ def breptools_Write(*args):
def breptools_Write(*args):
return breptools.Write(*args)
+@deprecated
+def breptools_Write(*args):
+ return breptools.Write(*args)
+
+@deprecated
+def breptools_Write(*args):
+ return breptools.Write(*args)
+
@deprecated
def BRepTools_History_IsSupportedType(*args):
return BRepTools_History.IsSupportedType(*args)
diff --git a/src/SWIG_files/wrapper/BRepTools.pyi b/src/SWIG_files/wrapper/BRepTools.pyi
index e5d5543d2..26c798d5a 100644
--- a/src/SWIG_files/wrapper/BRepTools.pyi
+++ b/src/SWIG_files/wrapper/BRepTools.pyi
@@ -45,6 +45,8 @@ class breptools:
@staticmethod
def DetectClosedness(theFace: TopoDS_Face) -> Tuple[bool, bool]: ...
@staticmethod
+ def Dump(Sh: TopoDS_Shape) -> str: ...
+ @staticmethod
def EvalAndUpdateTol(theE: TopoDS_Edge, theC3d: Geom_Curve, theC2d: Geom2d_Curve, theS: Geom_Surface, theF: float, theL: float) -> float: ...
@staticmethod
def IsReallyClosed(E: TopoDS_Edge, F: TopoDS_Face) -> bool: ...
@@ -60,6 +62,9 @@ class breptools:
def OuterWire(F: TopoDS_Face) -> TopoDS_Wire: ...
@overload
@staticmethod
+ def Read(Sh: TopoDS_Shape, S: str, B: BRep_Builder, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ @overload
+ @staticmethod
def Read(Sh: TopoDS_Shape, File: str, B: BRep_Builder, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ...
@staticmethod
def RemoveInternals(theS: TopoDS_Shape, theForce: Optional[bool] = False) -> None: ...
@@ -111,6 +116,12 @@ class breptools:
def UpdateFaceUVPoints(theF: TopoDS_Face) -> None: ...
@overload
@staticmethod
+ def Write(theShape: TopoDS_Shape, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
+ @overload
+ @staticmethod
+ def Write(theShape: TopoDS_Shape, theWithTriangles: bool, theWithNormals: bool, theVersion: TopTools_FormatVersion, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
+ @overload
+ @staticmethod
def Write(theShape: TopoDS_Shape, theFile: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ...
@overload
@staticmethod
@@ -124,6 +135,7 @@ class BRepTools_History(Standard_Transient):
def AddGenerated(self, theInitial: TopoDS_Shape, theGenerated: TopoDS_Shape) -> None: ...
def AddModified(self, theInitial: TopoDS_Shape, theModified: TopoDS_Shape) -> None: ...
def Clear(self) -> None: ...
+ def Dump(self) -> str: ...
def Generated(self, theInitial: TopoDS_Shape) -> TopTools_ListOfShape: ...
def HasGenerated(self) -> bool: ...
def HasModified(self) -> bool: ...
@@ -204,10 +216,31 @@ class BRepTools_ShapeSet(TopTools_ShapeSet):
def AddShapes(self, S1: TopoDS_Shape, S2: TopoDS_Shape) -> None: ...
def Check(self, T: TopAbs_ShapeEnum, S: TopoDS_Shape) -> None: ...
def Clear(self) -> None: ...
+ @overload
+ def DumpGeometry(self) -> str: ...
+ @overload
+ def DumpGeometry(self, S: TopoDS_Shape) -> str: ...
+ def DumpPolygon3D(self) -> str: ...
+ def DumpPolygonOnTriangulation(self) -> str: ...
+ def DumpTriangulation(self) -> str: ...
def IsWithNormals(self) -> bool: ...
def IsWithTriangles(self) -> bool: ...
+ @overload
+ def ReadGeometry(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ @overload
+ def ReadGeometry(self, T: TopAbs_ShapeEnum, IS: str, S: TopoDS_Shape) -> None: ...
+ def ReadPolygon3D(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ def ReadPolygonOnTriangulation(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ def ReadTriangulation(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
def SetWithNormals(self, theWithNormals: bool) -> None: ...
def SetWithTriangles(self, theWithTriangles: bool) -> None: ...
+ @overload
+ def WriteGeometry(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
+ @overload
+ def WriteGeometry(self, S: TopoDS_Shape) -> str: ...
+ def WritePolygon3D(self, Compact: Optional[bool] = True, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
+ def WritePolygonOnTriangulation(self, Compact: Optional[bool] = True, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
+ def WriteTriangulation(self, Compact: Optional[bool] = True, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
class BRepTools_Substitution:
def __init__(self) -> None: ...
diff --git a/src/SWIG_files/wrapper/BRepTopAdaptor.i b/src/SWIG_files/wrapper/BRepTopAdaptor.i
index 48fa4990c..319d8f2f1 100644
--- a/src/SWIG_files/wrapper/BRepTopAdaptor.i
+++ b/src/SWIG_files/wrapper/BRepTopAdaptor.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_breptopadaptor.ht
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BSplCLib.i b/src/SWIG_files/wrapper/BSplCLib.i
index d44bbf8bc..fa4e5c914 100644
--- a/src/SWIG_files/wrapper/BSplCLib.i
+++ b/src/SWIG_files/wrapper/BSplCLib.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_bsplclib.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BSplSLib.i b/src/SWIG_files/wrapper/BSplSLib.i
index c50048659..2ed9bb370 100644
--- a/src/SWIG_files/wrapper/BSplSLib.i
+++ b/src/SWIG_files/wrapper/BSplSLib.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_bsplslib.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BVH.i b/src/SWIG_files/wrapper/BVH.i
index 0952781e0..53d192d5a 100644
--- a/src/SWIG_files/wrapper/BVH.i
+++ b/src/SWIG_files/wrapper/BVH.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_bvh.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BiTgte.i b/src/SWIG_files/wrapper/BiTgte.i
index 6af40c37a..97067c543 100644
--- a/src/SWIG_files/wrapper/BiTgte.i
+++ b/src/SWIG_files/wrapper/BiTgte.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_bitgte.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BinDrivers.i b/src/SWIG_files/wrapper/BinDrivers.i
index eb49b7a96..23d2d9d80 100644
--- a/src/SWIG_files/wrapper/BinDrivers.i
+++ b/src/SWIG_files/wrapper/BinDrivers.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_bindrivers.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -205,6 +206,25 @@ No available documentation.
") AttributeDrivers;
virtual opencascade::handle AttributeDrivers(const opencascade::handle & theMsgDriver);
+ /****************** CheckShapeSection ******************/
+ /**** md5 signature: 700e6a408d65152684bc7e5f46482651 ****/
+ %feature("compactdefaultargs") CheckShapeSection;
+ %feature("autodoc", "
+Parameters
+----------
+thePos: Storage_Position
+theIS: str
+
+Return
+-------
+None
+
+Description
+-----------
+No available documentation.
+") CheckShapeSection;
+ virtual void CheckShapeSection(const Storage_Position & thePos, std::istream & theIS);
+
/****************** Clear ******************/
/**** md5 signature: f671931d03948860d0ead34afbe920aa ****/
%feature("compactdefaultargs") Clear;
@@ -237,6 +257,27 @@ Enables reading in the quick part access mode.
") EnableQuickPartReading;
virtual void EnableQuickPartReading(const opencascade::handle & theMessageDriver, Standard_Boolean theValue);
+ /****************** ReadShapeSection ******************/
+ /**** md5 signature: 7bf07d0fc30fd0c1486d23e896f3c271 ****/
+ %feature("compactdefaultargs") ReadShapeSection;
+ %feature("autodoc", "
+Parameters
+----------
+theSection: BinLDrivers_DocumentSection
+theIS: str
+isMess: bool (optional, default to Standard_False)
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+No available documentation.
+") ReadShapeSection;
+ virtual void ReadShapeSection(BinLDrivers_DocumentSection & theSection, std::istream & theIS, const Standard_Boolean isMess = Standard_False, const Message_ProgressRange & theRange = Message_ProgressRange());
+
};
@@ -380,6 +421,26 @@ Set if triangulation should be stored or not.
") SetWithTriangles;
void SetWithTriangles(const opencascade::handle & theMessageDriver, const Standard_Boolean theWithTriangulation);
+ /****************** WriteShapeSection ******************/
+ /**** md5 signature: 64e554649673659ee22057bde5256cf5 ****/
+ %feature("compactdefaultargs") WriteShapeSection;
+ %feature("autodoc", "
+Parameters
+----------
+theDocSection: BinLDrivers_DocumentSection
+theDocVer: TDocStd_FormatVersion
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+theOS: Standard_OStream
+
+Description
+-----------
+Implements the procedure of writing a shape section to file.
+") WriteShapeSection;
+ virtual void WriteShapeSection(BinLDrivers_DocumentSection & theDocSection, std::ostream &OutValue, const TDocStd_FormatVersion theDocVer, const Message_ProgressRange & theRange = Message_ProgressRange());
+
};
diff --git a/src/SWIG_files/wrapper/BinDrivers.pyi b/src/SWIG_files/wrapper/BinDrivers.pyi
index eedcddd6e..04cbaaab1 100644
--- a/src/SWIG_files/wrapper/BinDrivers.pyi
+++ b/src/SWIG_files/wrapper/BinDrivers.pyi
@@ -28,8 +28,10 @@ class bindrivers:
class BinDrivers_DocumentRetrievalDriver(BinLDrivers_DocumentRetrievalDriver):
def __init__(self) -> None: ...
def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> BinMDF_ADriverTable: ...
+ def CheckShapeSection(self, thePos: Storage_Position, theIS: str) -> None: ...
def Clear(self) -> None: ...
def EnableQuickPartReading(self, theMessageDriver: Message_Messenger, theValue: bool) -> None: ...
+ def ReadShapeSection(self, theSection: BinLDrivers_DocumentSection, theIS: str, isMess: Optional[bool] = False, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
class BinDrivers_DocumentStorageDriver(BinLDrivers_DocumentStorageDriver):
def __init__(self) -> None: ...
@@ -40,6 +42,7 @@ class BinDrivers_DocumentStorageDriver(BinLDrivers_DocumentStorageDriver):
def IsWithTriangles(self) -> bool: ...
def SetWithNormals(self, theMessageDriver: Message_Messenger, theWithTriangulation: bool) -> None: ...
def SetWithTriangles(self, theMessageDriver: Message_Messenger, theWithTriangulation: bool) -> None: ...
+ def WriteShapeSection(self, theDocSection: BinLDrivers_DocumentSection, theDocVer: TDocStd_FormatVersion, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
# harray1 classes
# harray2 classes
diff --git a/src/SWIG_files/wrapper/BinLDrivers.i b/src/SWIG_files/wrapper/BinLDrivers.i
index 1154a4447..24bda5b40 100644
--- a/src/SWIG_files/wrapper/BinLDrivers.i
+++ b/src/SWIG_files/wrapper/BinLDrivers.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_binldrivers.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -231,6 +232,29 @@ Retrieves the content of the file into a new document.
") Read;
virtual void Read(TCollection_ExtendedString theFileName, const opencascade::handle & theNewDocument, const opencascade::handle & theApplication, const opencascade::handle & theFilter = opencascade::handle(), const Message_ProgressRange & theProgress = Message_ProgressRange());
+ /****************** Read ******************/
+ /**** md5 signature: 771be11c877b12fef9f44e77dfdf48ba ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+theIStream: str
+theStorageData: Storage_Data
+theDoc: CDM_Document
+theApplication: CDM_Application
+theFilter: PCDM_ReaderFilter (optional, default to opencascade::handle())
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+No available documentation.
+") Read;
+ virtual void Read(std::istream & theIStream, const opencascade::handle & theStorageData, const opencascade::handle & theDoc, const opencascade::handle & theApplication, const opencascade::handle & theFilter = opencascade::handle(), const Message_ProgressRange & theProgress = Message_ProgressRange());
+
};
@@ -331,6 +355,26 @@ Query the offset of the section in the persistent file.
") Offset;
uint64_t Offset();
+ /****************** ReadTOC ******************/
+ /**** md5 signature: 6d892ade1242a16e99246162955f59d3 ****/
+ %feature("compactdefaultargs") ReadTOC;
+ %feature("autodoc", "
+Parameters
+----------
+theSection: BinLDrivers_DocumentSection
+theIS: str
+theDocFormatVersion: TDocStd_FormatVersion
+
+Return
+-------
+bool
+
+Description
+-----------
+Fill a documentsection instance from the data that are read from toc. returns false in case of the stream reading problem.
+") ReadTOC;
+ static Standard_Boolean ReadTOC(BinLDrivers_DocumentSection & theSection, std::istream & theIS, const TDocStd_FormatVersion theDocFormatVersion);
+
/****************** SetLength ******************/
/**** md5 signature: 9c89e70c52c75c8f071a4a8b0807f508 ****/
%feature("compactdefaultargs") SetLength;
@@ -367,6 +411,43 @@ Set the offset of the section in the persistent file.
") SetOffset;
void SetOffset(const uint64_t theOffset);
+ /****************** Write ******************/
+ /**** md5 signature: f8a305892a9630863531b16bb0e8d748 ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+theOffset: uint64_t
+theDocFormatVersion: TDocStd_FormatVersion
+
+Return
+-------
+theOS: Standard_OStream
+
+Description
+-----------
+Save offset and length data into the section entry in the document toc (list of sections).
+") Write;
+ void Write(std::ostream &OutValue, const uint64_t theOffset, const TDocStd_FormatVersion theDocFormatVersion);
+
+ /****************** WriteTOC ******************/
+ /**** md5 signature: 1286c7467df97ba170437cf09bae7984 ****/
+ %feature("compactdefaultargs") WriteTOC;
+ %feature("autodoc", "
+Parameters
+----------
+theDocFormatVersion: TDocStd_FormatVersion
+
+Return
+-------
+theOS: Standard_OStream
+
+Description
+-----------
+Create a section entry in the document toc (list of sections).
+") WriteTOC;
+ void WriteTOC(std::ostream &OutValue, const TDocStd_FormatVersion theDocFormatVersion);
+
};
@@ -469,6 +550,25 @@ Write to the binary file .
") Write;
virtual void Write(const opencascade::handle & theDocument, TCollection_ExtendedString theFileName, const Message_ProgressRange & theRange = Message_ProgressRange());
+ /****************** Write ******************/
+ /**** md5 signature: 1593005190d18463c833b2c78ffb13a5 ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+theDocument: CDM_Document
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+theOStream: Standard_OStream
+
+Description
+-----------
+Write to theostream.
+") Write;
+ virtual void Write(const opencascade::handle & theDocument, std::ostream &OutValue, const Message_ProgressRange & theRange = Message_ProgressRange());
+
};
@@ -500,4 +600,8 @@ def binldrivers_DefineFormat(*args):
def binldrivers_Factory(*args):
return binldrivers.Factory(*args)
+@deprecated
+def BinLDrivers_DocumentSection_ReadTOC(*args):
+ return BinLDrivers_DocumentSection.ReadTOC(*args)
+
}
diff --git a/src/SWIG_files/wrapper/BinLDrivers.pyi b/src/SWIG_files/wrapper/BinLDrivers.pyi
index 59ce93d34..1b11c42e9 100644
--- a/src/SWIG_files/wrapper/BinLDrivers.pyi
+++ b/src/SWIG_files/wrapper/BinLDrivers.pyi
@@ -34,6 +34,8 @@ class BinLDrivers_DocumentRetrievalDriver(PCDM_RetrievalDriver):
def AttributeDrivers(self, theMsgDriver: Message_Messenger) -> BinMDF_ADriverTable: ...
@overload
def Read(self, theFileName: str, theNewDocument: CDM_Document, theApplication: CDM_Application, theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ @overload
+ def Read(self, theIStream: str, theStorageData: Storage_Data, theDoc: CDM_Document, theApplication: CDM_Application, theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
class BinLDrivers_DocumentSection:
@overload
@@ -44,6 +46,9 @@ class BinLDrivers_DocumentSection:
def Length(self) -> False: ...
def Name(self) -> str: ...
def Offset(self) -> False: ...
+ @staticmethod
+ def ReadTOC(theSection: BinLDrivers_DocumentSection, theIS: str, theDocFormatVersion: TDocStd_FormatVersion) -> bool: ...
+ def WriteTOC(self, theDocFormatVersion: TDocStd_FormatVersion) -> str: ...
class BinLDrivers_DocumentStorageDriver(PCDM_StorageDriver):
def __init__(self) -> None: ...
@@ -52,6 +57,8 @@ class BinLDrivers_DocumentStorageDriver(PCDM_StorageDriver):
def IsQuickPart(self, theVersion: int) -> bool: ...
@overload
def Write(self, theDocument: CDM_Document, theFileName: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ @overload
+ def Write(self, theDocument: CDM_Document, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
# harray1 classes
# harray2 classes
diff --git a/src/SWIG_files/wrapper/BinMDF.i b/src/SWIG_files/wrapper/BinMDF.i
index 89f2e9c27..1a3b3222b 100644
--- a/src/SWIG_files/wrapper/BinMDF.i
+++ b/src/SWIG_files/wrapper/BinMDF.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_binmdf.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BinMDataStd.i b/src/SWIG_files/wrapper/BinMDataStd.i
index d425d52dc..288eed30c 100644
--- a/src/SWIG_files/wrapper/BinMDataStd.i
+++ b/src/SWIG_files/wrapper/BinMDataStd.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_binmdatastd.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BinMDataXtd.i b/src/SWIG_files/wrapper/BinMDataXtd.i
index 85409398b..580af208a 100644
--- a/src/SWIG_files/wrapper/BinMDataXtd.i
+++ b/src/SWIG_files/wrapper/BinMDataXtd.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_binmdataxtd.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BinMDocStd.i b/src/SWIG_files/wrapper/BinMDocStd.i
index 2f67e145a..07c08db04 100644
--- a/src/SWIG_files/wrapper/BinMDocStd.i
+++ b/src/SWIG_files/wrapper/BinMDocStd.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_binmdocstd.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BinMFunction.i b/src/SWIG_files/wrapper/BinMFunction.i
index 688462d5e..0397cd4ff 100644
--- a/src/SWIG_files/wrapper/BinMFunction.i
+++ b/src/SWIG_files/wrapper/BinMFunction.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_binmfunction.html
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BinMNaming.i b/src/SWIG_files/wrapper/BinMNaming.i
index c04410bd8..174d2ab31 100644
--- a/src/SWIG_files/wrapper/BinMNaming.i
+++ b/src/SWIG_files/wrapper/BinMNaming.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_binmnaming.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -284,13 +285,25 @@ No available documentation.
") Paste;
void Paste(const opencascade::handle & Source, BinObjMgt_Persistent & Target, BinObjMgt_SRelocationTable & RelocTable);
+ /****************** ReadShapeSection ******************/
+ /**** md5 signature: 66ff232ed5a17a346bcdcc9d0bc2b9ce ****/
+ %feature("compactdefaultargs") ReadShapeSection;
+ %feature("autodoc", "
+Parameters
+----------
+theIS: str
+therange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Input the shapes from bin document file.
+") ReadShapeSection;
+ void ReadShapeSection(std::istream & theIS, const Message_ProgressRange & therange = Message_ProgressRange());
- %feature("autodoc", "1");
- %extend{
- void ReadShapeSectionFromString(std::string src) {
- std::stringstream s(src);
- self->ReadShapeSection(s);}
- };
/****************** SetWithNormals ******************/
/**** md5 signature: 2f7757cd59d0573f368c1b217c28b7f5 ****/
%feature("compactdefaultargs") SetWithNormals;
@@ -345,6 +358,25 @@ Returns shape-set of the needed type.
") ShapeSet;
BinTools_ShapeSetBase * ShapeSet(const Standard_Boolean theReading);
+ /****************** WriteShapeSection ******************/
+ /**** md5 signature: 257dfbc6e624d2b0bb9fa1de0712dd47 ****/
+ %feature("compactdefaultargs") WriteShapeSection;
+ %feature("autodoc", "
+Parameters
+----------
+theDocVer: int
+therange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+theOS: Standard_OStream
+
+Description
+-----------
+Output the shapes into bin document file.
+") WriteShapeSection;
+ void WriteShapeSection(std::ostream &OutValue, const Standard_Integer theDocVer, const Message_ProgressRange & therange = Message_ProgressRange());
+
};
diff --git a/src/SWIG_files/wrapper/BinMNaming.pyi b/src/SWIG_files/wrapper/BinMNaming.pyi
index 023e8f01e..7d39da69a 100644
--- a/src/SWIG_files/wrapper/BinMNaming.pyi
+++ b/src/SWIG_files/wrapper/BinMNaming.pyi
@@ -27,9 +27,11 @@ class BinMNaming_NamedShapeDriver(BinMDF_ADriver):
def Paste(self, Source: BinObjMgt_Persistent, Target: TDF_Attribute, RelocTable: BinObjMgt_RRelocationTable) -> bool: ...
@overload
def Paste(self, Source: TDF_Attribute, Target: BinObjMgt_Persistent, RelocTable: BinObjMgt_SRelocationTable) -> None: ...
+ def ReadShapeSection(self, theIS: str, therange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
def SetWithNormals(self, isWithNormals: bool) -> None: ...
def SetWithTriangles(self, isWithTriangles: bool) -> None: ...
def ShapeSet(self, theReading: bool) -> BinTools_ShapeSetBase: ...
+ def WriteShapeSection(self, theDocVer: int, therange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
class BinMNaming_NamingDriver(BinMDF_ADriver):
def __init__(self, theMessageDriver: Message_Messenger) -> None: ...
diff --git a/src/SWIG_files/wrapper/BinMXCAFDoc.i b/src/SWIG_files/wrapper/BinMXCAFDoc.i
index 35b1f145d..3114a2730 100644
--- a/src/SWIG_files/wrapper/BinMXCAFDoc.i
+++ b/src/SWIG_files/wrapper/BinMXCAFDoc.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_binmxcafdoc.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BinObjMgt.i b/src/SWIG_files/wrapper/BinObjMgt.i
index 464f25bbb..ecae1c1a3 100644
--- a/src/SWIG_files/wrapper/BinObjMgt.i
+++ b/src/SWIG_files/wrapper/BinObjMgt.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_binobjmgt.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -875,20 +876,42 @@ Put c array of float, thelength is the number of elements.
") PutShortRealArray;
BinObjMgt_Persistent & PutShortRealArray(const BinObjMgt_PShortReal theArray, const Standard_Integer theLength);
+ /****************** Read ******************/
+ /**** md5 signature: 703e11a3fb46f18575a45a43966aa937 ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+theIS: str
+
+Return
+-------
+Standard_IStream
- %feature("autodoc", "1");
- %extend{
- void ReadFromString(std::string src) {
- std::stringstream s(src);
- self->Read(s);}
- };
+Description
+-----------
+Retrieves from the stream. inline standard_istream& operator>> (standard_istream&, binobjmgt_persistent&) is also available.
+") Read;
+ Standard_IStream & Read(std::istream & theIS);
+
+ /****************** SetIStream ******************/
+ /**** md5 signature: 5d0249291c7182c496c2994cfe459a5d ****/
+ %feature("compactdefaultargs") SetIStream;
+ %feature("autodoc", "
+Parameters
+----------
+theStream: str
+
+Return
+-------
+None
+
+Description
+-----------
+Sets the stream for direct reading.
+") SetIStream;
+ void SetIStream(std::istream & theStream);
- %feature("autodoc", "1");
- %extend{
- void SetIStreamFromString(std::string src) {
- std::stringstream s(src);
- self->SetIStream(s);}
- };
/****************** SetId ******************/
/**** md5 signature: 3131e8337f46d2a085b133db913d7e12 ****/
%feature("compactdefaultargs") SetId;
@@ -907,14 +930,23 @@ Sets the id of the object.
") SetId;
void SetId(const Standard_Integer theId);
+ /****************** SetOStream ******************/
+ /**** md5 signature: 05ebcdbd2bdd64c5cb2e8dd9a9b0f378 ****/
+ %feature("compactdefaultargs") SetOStream;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+theStream: Standard_OStream
+
+Description
+-----------
+Sets the stream for direct writing.
+") SetOStream;
+ void SetOStream(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string SetOStreamToString() {
- std::stringstream s;
- self->SetOStream(s);
- return s.str();}
- };
/****************** SetPosition ******************/
/**** md5 signature: 734a09cc1c2f91af755a362f6ac9dbb1 ****/
%feature("compactdefaultargs") SetPosition;
@@ -990,6 +1022,24 @@ Returns the id of the type of the object.
") TypeId;
Standard_Integer TypeId();
+ /****************** Write ******************/
+ /**** md5 signature: 84710283a2afe6c7aea0d3158b3cf2ea ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+theDirectStream: bool (optional, default to Standard_False)
+
+Return
+-------
+theOS: Standard_OStream
+
+Description
+-----------
+Stores to the stream. inline standard_ostream& operator<< (standard_ostream&, binobjmgt_persistent&) is also available. if thedirectstream is true, after this data the direct stream data is stored.
+") Write;
+ Standard_OStream & Write(std::ostream &OutValue, const Standard_Boolean theDirectStream = Standard_False);
+
};
diff --git a/src/SWIG_files/wrapper/BinObjMgt.pyi b/src/SWIG_files/wrapper/BinObjMgt.pyi
index 356a9a150..a7018836b 100644
--- a/src/SWIG_files/wrapper/BinObjMgt.pyi
+++ b/src/SWIG_files/wrapper/BinObjMgt.pyi
@@ -64,12 +64,16 @@ class BinObjMgt_Persistent:
def PutRealArray(self, theArray: BinObjMgt_PReal, theLength: int) -> BinObjMgt_Persistent: ...
def PutShortReal(self, theValue: float) -> BinObjMgt_Persistent: ...
def PutShortRealArray(self, theArray: BinObjMgt_PShortReal, theLength: int) -> BinObjMgt_Persistent: ...
+ def Read(self, theIS: str) -> Standard_IStream: ...
+ def SetIStream(self, theStream: str) -> None: ...
def SetId(self, theId: int) -> None: ...
+ def SetOStream(self) -> str: ...
def SetPosition(self, thePos: int) -> bool: ...
def SetTypeId(self, theId: int) -> None: ...
def StreamStart(self) -> BinObjMgt_Position: ...
def Truncate(self) -> None: ...
def TypeId(self) -> int: ...
+ def Write(self, theDirectStream: Optional[bool] = False) -> Tuple[Standard_OStream, str]: ...
class BinObjMgt_RRelocationTable(TColStd_DataMapOfIntegerTransient):
def Clear(self, doReleaseMemory: Optional[bool] = True) -> None: ...
diff --git a/src/SWIG_files/wrapper/BinTObjDrivers.i b/src/SWIG_files/wrapper/BinTObjDrivers.i
index 5b62950ae..ed125ce2e 100644
--- a/src/SWIG_files/wrapper/BinTObjDrivers.i
+++ b/src/SWIG_files/wrapper/BinTObjDrivers.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_bintobjdrivers.ht
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BinTools.i b/src/SWIG_files/wrapper/BinTools.i
index bc971bd9a..32698ab72 100644
--- a/src/SWIG_files/wrapper/BinTools.i
+++ b/src/SWIG_files/wrapper/BinTools.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_bintools.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -192,6 +193,207 @@ typedef BinTools_LocationSet * BinTools_LocationSetPtr;
%rename(bintools) BinTools;
class BinTools {
public:
+ /****************** GetBool ******************/
+ /**** md5 signature: 790955f4f4ba6908f582aee44fb265dd ****/
+ %feature("compactdefaultargs") GetBool;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+
+Return
+-------
+theValue: bool
+
+Description
+-----------
+No available documentation.
+") GetBool;
+ static Standard_IStream & GetBool(std::istream & IS, Standard_Boolean &OutValue);
+
+ /****************** GetExtChar ******************/
+ /**** md5 signature: 123b0c66c3051e9feb92d9bfbbb192e6 ****/
+ %feature("compactdefaultargs") GetExtChar;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+theValue: Standard_ExtCharacter
+
+Return
+-------
+Standard_IStream
+
+Description
+-----------
+No available documentation.
+") GetExtChar;
+ static Standard_IStream & GetExtChar(std::istream & IS, Standard_ExtCharacter & theValue);
+
+ /****************** GetInteger ******************/
+ /**** md5 signature: 651f0a33e9e7502671bc3ef42df123eb ****/
+ %feature("compactdefaultargs") GetInteger;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+
+Return
+-------
+theValue: int
+
+Description
+-----------
+No available documentation.
+") GetInteger;
+ static Standard_IStream & GetInteger(std::istream & IS, Standard_Integer &OutValue);
+
+ /****************** GetReal ******************/
+ /**** md5 signature: 38bb080ad1790d03931bd0c0aa629b48 ****/
+ %feature("compactdefaultargs") GetReal;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+
+Return
+-------
+theValue: float
+
+Description
+-----------
+No available documentation.
+") GetReal;
+ static Standard_IStream & GetReal(std::istream & IS, Standard_Real &OutValue);
+
+ /****************** GetShortReal ******************/
+ /**** md5 signature: 825f85854ff0d067143065401770de68 ****/
+ %feature("compactdefaultargs") GetShortReal;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+
+Return
+-------
+theValue: float
+
+Description
+-----------
+No available documentation.
+") GetShortReal;
+ static Standard_IStream & GetShortReal(std::istream & IS, Standard_ShortReal &OutValue);
+
+ /****************** PutBool ******************/
+ /**** md5 signature: 0afdd320ec549f8b3da2cea1881b2e46 ****/
+ %feature("compactdefaultargs") PutBool;
+ %feature("autodoc", "
+Parameters
+----------
+theValue: bool
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+No available documentation.
+") PutBool;
+ static Standard_OStream & PutBool(std::ostream &OutValue, const Standard_Boolean theValue);
+
+ /****************** PutExtChar ******************/
+ /**** md5 signature: 6f5f97a4001fb0c14520fc2b5b0888a6 ****/
+ %feature("compactdefaultargs") PutExtChar;
+ %feature("autodoc", "
+Parameters
+----------
+theValue: Standard_ExtCharacter
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+No available documentation.
+") PutExtChar;
+ static Standard_OStream & PutExtChar(std::ostream &OutValue, const Standard_ExtCharacter theValue);
+
+ /****************** PutInteger ******************/
+ /**** md5 signature: 9e70411996f2de65be7008dfb8c34a78 ****/
+ %feature("compactdefaultargs") PutInteger;
+ %feature("autodoc", "
+Parameters
+----------
+theValue: int
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+No available documentation.
+") PutInteger;
+ static Standard_OStream & PutInteger(std::ostream &OutValue, const Standard_Integer theValue);
+
+ /****************** PutReal ******************/
+ /**** md5 signature: f7775506bd4618f420e375baa72bb4b9 ****/
+ %feature("compactdefaultargs") PutReal;
+ %feature("autodoc", "
+Parameters
+----------
+theValue: float
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+No available documentation.
+") PutReal;
+ static Standard_OStream & PutReal(std::ostream &OutValue, const Standard_Real & theValue);
+
+ /****************** PutShortReal ******************/
+ /**** md5 signature: 042b4eea8e6fbf4023588ae3edf72eee ****/
+ %feature("compactdefaultargs") PutShortReal;
+ %feature("autodoc", "
+Parameters
+----------
+theValue: float
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+No available documentation.
+") PutShortReal;
+ static Standard_OStream & PutShortReal(std::ostream &OutValue, const Standard_ShortReal & theValue);
+
+ /****************** Read ******************/
+ /**** md5 signature: f85bd54e020fe6af72c5aebd07ae8a7b ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+theShape: TopoDS_Shape
+theStream: str
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads a shape from and returns it in .
+") Read;
+ static void Read(TopoDS_Shape & theShape, std::istream & theStream, const Message_ProgressRange & theRange = Message_ProgressRange());
+
/****************** Read ******************/
/**** md5 signature: 8f3081f8c29c84c71da9267be3a08fa6 ****/
%feature("compactdefaultargs") Read;
@@ -212,6 +414,47 @@ Reads a shape from and returns it in .
") Read;
static Standard_Boolean Read(TopoDS_Shape & theShape, Standard_CString theFile, const Message_ProgressRange & theRange = Message_ProgressRange());
+ /****************** Write ******************/
+ /**** md5 signature: 66b06396144ebe349cc1d4ffe3194b4c ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+theShape: TopoDS_Shape
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+theStream: Standard_OStream
+
+Description
+-----------
+Writes the shape to the stream in binary format bintools_formatversion_current. this alias writes shape with triangulation data. @param theshape [in] the shape to write @param thestream [in][out] the stream to output shape into @param therange the range of progress indicator to fill in.
+") Write;
+ static void Write(const TopoDS_Shape & theShape, std::ostream &OutValue, const Message_ProgressRange & theRange = Message_ProgressRange());
+
+ /****************** Write ******************/
+ /**** md5 signature: cfe16f73efe24f22e21aa7c502d4ad33 ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+theShape: TopoDS_Shape
+theWithTriangles: bool
+theWithNormals: bool
+theVersion: BinTools_FormatVersion
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+theStream: Standard_OStream
+
+Description
+-----------
+Writes the shape to the stream in binary format of specified version. @param theshape [in] the shape to write @param thestream [in][out] the stream to output shape into @param thewithtriangles [in] flag which specifies whether to save shape with (true) or without (false) triangles; has no effect on triangulation-only geometry @param thewithnormals [in] flag which specifies whether to save triangulation with (true) or without (false) normals; has no effect on triangulation-only geometry @param theversion [in] the bintools format version @param therange the range of progress indicator to fill in.
+") Write;
+ static void Write(const TopoDS_Shape & theShape, std::ostream &OutValue, const Standard_Boolean theWithTriangles, const Standard_Boolean theWithNormals, const BinTools_FormatVersion theVersion, const Message_ProgressRange & theRange = Message_ProgressRange());
+
/****************** Write ******************/
/**** md5 signature: 3881a3762eede8c671fff2911d095012 ****/
%feature("compactdefaultargs") Write;
@@ -349,21 +592,62 @@ Returns the index of .
") Index;
Standard_Integer Index(const opencascade::handle & C);
+ /****************** Read ******************/
+ /**** md5 signature: 5f2f4456946ffa93c620ea243e0f1362 ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the content of me from the stream . me is first cleared.
+") Read;
+ void Read(std::istream & IS, const Message_ProgressRange & theRange = Message_ProgressRange());
+
+ /****************** ReadCurve2d ******************/
+ /**** md5 signature: 8e76149c6e11b24fea6111aef9de38d2 ****/
+ %feature("compactdefaultargs") ReadCurve2d;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+C: Geom2d_Curve
+
+Return
+-------
+Standard_IStream
+
+Description
+-----------
+Reads the curve from the stream. the curve is assumed to have been written with the write method.
+") ReadCurve2d;
+ static Standard_IStream & ReadCurve2d(std::istream & IS, opencascade::handle & C);
+
+ /****************** Write ******************/
+ /**** md5 signature: d5d3cef6bd5a493e7490071dfb7ee4a9 ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the content of me on the stream in a format that can be read back by read.
+") Write;
+ void Write(std::ostream &OutValue, const Message_ProgressRange & theRange = Message_ProgressRange());
- %feature("autodoc", "1");
- %extend{
- void ReadFromString(std::string src) {
- std::stringstream s(src);
- self->Read(s);}
- };
-
- %feature("autodoc", "1");
- %extend{
- std::string WriteToString() {
- std::stringstream s;
- self->Write(s);
- return s.str();}
- };
/****************** WriteCurve2d ******************/
/**** md5 signature: fb004cea29fe8c8fbe520368a3fabd33 ****/
%feature("compactdefaultargs") WriteCurve2d;
@@ -481,21 +765,62 @@ Returns the index of .
") Index;
Standard_Integer Index(const opencascade::handle & C);
+ /****************** Read ******************/
+ /**** md5 signature: 5f2f4456946ffa93c620ea243e0f1362 ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the content of me from the stream . me is first cleared.
+") Read;
+ void Read(std::istream & IS, const Message_ProgressRange & theRange = Message_ProgressRange());
+
+ /****************** ReadCurve ******************/
+ /**** md5 signature: dd391fb5d956a43e1ec7bd591b8d99ee ****/
+ %feature("compactdefaultargs") ReadCurve;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+C: Geom_Curve
+
+Return
+-------
+Standard_IStream
+
+Description
+-----------
+Reads the curve from the stream. the curve is assumed to have been written with the write method.
+") ReadCurve;
+ static Standard_IStream & ReadCurve(std::istream & IS, opencascade::handle & C);
+
+ /****************** Write ******************/
+ /**** md5 signature: d5d3cef6bd5a493e7490071dfb7ee4a9 ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the content of me on the stream in a format that can be read back by read.
+") Write;
+ void Write(std::ostream &OutValue, const Message_ProgressRange & theRange = Message_ProgressRange());
- %feature("autodoc", "1");
- %extend{
- void ReadFromString(std::string src) {
- std::stringstream s(src);
- self->Read(s);}
- };
-
- %feature("autodoc", "1");
- %extend{
- std::string WriteToString() {
- std::stringstream s;
- self->Write(s);
- return s.str();}
- };
/****************** WriteCurve ******************/
/**** md5 signature: 0fd9a95014467f2918a41d1253d1067c ****/
%feature("compactdefaultargs") WriteCurve;
@@ -625,31 +950,51 @@ Returns number of locations.
") NbLocations;
Standard_Integer NbLocations();
+ /****************** Read ******************/
+ /**** md5 signature: e0ade46168fbfd205cb072426bbabac5 ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
- %feature("autodoc", "1");
- %extend{
- void ReadFromString(std::string src) {
- std::stringstream s(src);
- self->Read(s);}
- };
-
- %feature("autodoc", "1");
- %extend{
- std::string WriteToString() {
- std::stringstream s;
- self->Write(s);
- return s.str();}
- };
-};
-
+Return
+-------
+None
-%extend BinTools_LocationSet {
- %pythoncode {
- __repr__ = _dumps_object
- }
-};
+Description
+-----------
+Reads the content of me from the stream . me is first cleared.
+") Read;
+ void Read(std::istream & IS);
-/*************************
+ /****************** Write ******************/
+ /**** md5 signature: 26d5c57dbc383da9144a6151592feb6a ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the content of me on the stream in a format that can be read back by read.
+") Write;
+ void Write(std::ostream &OutValue);
+
+};
+
+
+%extend BinTools_LocationSet {
+ %pythoncode {
+ __repr__ = _dumps_object
+ }
+};
+
+/*************************
* class BinTools_OStream *
*************************/
/******************************
@@ -722,13 +1067,44 @@ Return true if shape should be stored with triangles.
") IsWithTriangles;
Standard_Boolean IsWithTriangles();
+ /****************** Read ******************/
+ /**** md5 signature: 15d2ae9c24a20dde18a097c304597a5b ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+&: std::istream
+&: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the content of me from the binary stream . me is first cleared. //! reads the locations. //! reads the geometry calling readgeometry. //! reads the shapes. for each shape reads the type. calls readgeometry(t,s). reads the flag, the subshapes.
+") Read;
+ virtual void Read(std::istream &, const Message_ProgressRange & = Message_ProgressRange());
+
+ /****************** Read ******************/
+ /**** md5 signature: 9e512dab6bca19a0eddcb7c7167d7163 ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+&: std::istream
+&: TopoDS_Shape
+
+Return
+-------
+None
+
+Description
+-----------
+An empty virtual method for redefinition in shape-reader.
+") Read;
+ virtual void Read(std::istream &, TopoDS_Shape &);
- %feature("autodoc", "1");
- %extend{
- void ReadFromString(std::string src) {
- std::stringstream s(src);
- self->Read(s);}
- };
/****************** SetFormatNb ******************/
/**** md5 signature: efa61c5f0aa586c699f53e1139cd95f9 ****/
%feature("compactdefaultargs") SetFormatNb;
@@ -783,14 +1159,42 @@ Define if shape will be stored with triangles. ignored (always written) if face
") SetWithTriangles;
void SetWithTriangles(const Standard_Boolean theWithTriangles);
+ /****************** Write ******************/
+ /**** md5 signature: eae5f683a0f7fae7ee4a50d676192413 ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+&: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+&: Standard_OStream
+
+Description
+-----------
+Writes the content of me on the stream in binary format that can be read back by read. //! writes the locations. //! writes the geometry calling writegeometry. //! dumps the shapes from last to first. for each shape: write the type. calls writegeometry(s). write the flags, the subshapes.
+") Write;
+ virtual void Write(std::ostream &OutValue, const Message_ProgressRange & = Message_ProgressRange());
+
+ /****************** Write ******************/
+ /**** md5 signature: 7494fb2ca2dcbcd64d26ab29a1473ab5 ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+&: TopoDS_Shape
+
+Return
+-------
+&: Standard_OStream
+
+Description
+-----------
+Writes on the shape . writes the orientation, the index of the tshape and the index of the location.
+") Write;
+ virtual void Write(const TopoDS_Shape &, std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string WriteToString() {
- std::stringstream s;
- self->Write(s);
- return s.str();}
- };
};
@@ -867,13 +1271,44 @@ Returns the index of .
") Index;
Standard_Integer Index(const opencascade::handle & S);
+ /****************** Read ******************/
+ /**** md5 signature: 5f2f4456946ffa93c620ea243e0f1362 ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+therange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the content of me from the stream . me is first cleared.
+") Read;
+ void Read(std::istream & IS, const Message_ProgressRange & therange = Message_ProgressRange());
+
+ /****************** ReadSurface ******************/
+ /**** md5 signature: aadfa21c3ae4baf4c6a6f03347b99a89 ****/
+ %feature("compactdefaultargs") ReadSurface;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+S: Geom_Surface
+
+Return
+-------
+Standard_IStream
+
+Description
+-----------
+Reads the surface from the stream. the surface is assumed to have been written with the write method.
+") ReadSurface;
+ static Standard_IStream & ReadSurface(std::istream & IS, opencascade::handle & S);
- %feature("autodoc", "1");
- %extend{
- void ReadFromString(std::string src) {
- std::stringstream s(src);
- self->Read(s);}
- };
/****************** Surface ******************/
/**** md5 signature: f08a9f2a886e0a3933ae15a38f9b8dda ****/
%feature("compactdefaultargs") Surface;
@@ -892,14 +1327,24 @@ Returns the surface of index .
") Surface;
opencascade::handle Surface(const Standard_Integer I);
+ /****************** Write ******************/
+ /**** md5 signature: d5d3cef6bd5a493e7490071dfb7ee4a9 ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the content of me on the stream in binary format that can be read back by read.
+") Write;
+ void Write(std::ostream &OutValue, const Message_ProgressRange & theRange = Message_ProgressRange());
- %feature("autodoc", "1");
- %extend{
- std::string WriteToString() {
- std::stringstream s;
- self->Write(s);
- return s.str();}
- };
/****************** WriteSurface ******************/
/**** md5 signature: 41c510c34876aa6bbad25b27f75b3a30 ****/
%feature("compactdefaultargs") WriteSurface;
@@ -959,6 +1404,25 @@ Clears the content of the set.
") Clear;
virtual void Clear();
+ /****************** Read ******************/
+ /**** md5 signature: 25227b6e5e5f66e65787f684a82d38bd ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+theStream: str
+theShape: TopoDS_Shape
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the shape from stream using previously restored shapes and objects by references.
+") Read;
+ void Read(std::istream & theStream, TopoDS_Shape & theShape);
+
/****************** ReadLocation ******************/
/**** md5 signature: bd5aa45e9ea119dbeec11eb219039ce0 ****/
%feature("compactdefaultargs") ReadLocation;
@@ -1129,41 +1593,181 @@ Returns number of shapes read from file.
") NbShapes;
Standard_Integer NbShapes();
+ /****************** Read ******************/
+ /**** md5 signature: 4b07273aaddc061dc208ad849f29a02f ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the content of me from the binary stream . me is first cleared. //! reads the locations. //! reads the geometry calling readgeometry. //! reads the shapes. for each shape reads the type. calls readgeometry(t,s). reads the flag, the subshapes.
+") Read;
+ virtual void Read(std::istream & IS, const Message_ProgressRange & theRange = Message_ProgressRange());
+
+ /****************** Read ******************/
+ /**** md5 signature: 9e512dab6bca19a0eddcb7c7167d7163 ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+&: std::istream
+&: TopoDS_Shape
+
+Return
+-------
+None
+
+Description
+-----------
+An empty virtual method for redefinition in shape-reader.
+") Read;
+ virtual void Read(std::istream &, TopoDS_Shape &);
+
+ /****************** ReadFlagsAndSubs ******************/
+ /**** md5 signature: ec793d841cfc55e44fec35b171f31924 ****/
+ %feature("compactdefaultargs") ReadFlagsAndSubs;
+ %feature("autodoc", "
+Parameters
+----------
+S: TopoDS_Shape
+T: TopAbs_ShapeEnum
+IS: str
+NbShapes: int
+
+Return
+-------
+None
+
+Description
+-----------
+Reads from a shape flags and sub-shapes and modifies s.
+") ReadFlagsAndSubs;
+ virtual void ReadFlagsAndSubs(TopoDS_Shape & S, const TopAbs_ShapeEnum T, std::istream & IS, const Standard_Integer NbShapes);
+
+ /****************** ReadGeometry ******************/
+ /**** md5 signature: 8c49d87428ea54564c18dee1e735e34e ****/
+ %feature("compactdefaultargs") ReadGeometry;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the geometry of me from the stream .
+") ReadGeometry;
+ virtual void ReadGeometry(std::istream & IS, const Message_ProgressRange & theRange = Message_ProgressRange());
+
+ /****************** ReadPolygon3D ******************/
+ /**** md5 signature: cd88a23b4835946311db7bfe884e93c4 ****/
+ %feature("compactdefaultargs") ReadPolygon3D;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the 3d polygons of me from the stream .
+") ReadPolygon3D;
+ void ReadPolygon3D(std::istream & IS, const Message_ProgressRange & theRange = Message_ProgressRange());
+
+ /****************** ReadPolygonOnTriangulation ******************/
+ /**** md5 signature: c12c2902aa15103beb764ae29fc6d436 ****/
+ %feature("compactdefaultargs") ReadPolygonOnTriangulation;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the polygons on triangulation of me from the stream .
+") ReadPolygonOnTriangulation;
+ void ReadPolygonOnTriangulation(std::istream & IS, const Message_ProgressRange & theRange = Message_ProgressRange());
+
+ /****************** ReadShape ******************/
+ /**** md5 signature: d4336c38e7a97a10044a8170fcfa8cf4 ****/
+ %feature("compactdefaultargs") ReadShape;
+ %feature("autodoc", "
+Parameters
+----------
+T: TopAbs_ShapeEnum
+IS: str
+S: TopoDS_Shape
+
+Return
+-------
+None
+
+Description
+-----------
+Reads a shape of type from the stream and returns it in .
+") ReadShape;
+ virtual void ReadShape(const TopAbs_ShapeEnum T, std::istream & IS, TopoDS_Shape & S);
+
+ /****************** ReadSubs ******************/
+ /**** md5 signature: 7a4bfadead50fe32d0ef7d49caa4db13 ****/
+ %feature("compactdefaultargs") ReadSubs;
+ %feature("autodoc", "
+Parameters
+----------
+S: TopoDS_Shape
+IS: str
+NbShapes: int
+
+Return
+-------
+None
+
+Description
+-----------
+Reads from a shape and returns it in s. is the number of tshapes in the set.
+") ReadSubs;
+ virtual void ReadSubs(TopoDS_Shape & S, std::istream & IS, const Standard_Integer NbShapes);
+
+ /****************** ReadTriangulation ******************/
+ /**** md5 signature: 90589deefe94d4f2b164d615d1250312 ****/
+ %feature("compactdefaultargs") ReadTriangulation;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the triangulation of me from the stream .
+") ReadTriangulation;
+ void ReadTriangulation(std::istream & IS, const Message_ProgressRange & theRange = Message_ProgressRange());
- %feature("autodoc", "1");
- %extend{
- void ReadFromString(std::string src) {
- std::stringstream s(src);
- self->Read(s);}
- };
-
- %feature("autodoc", "1");
- %extend{
- void ReadGeometryFromString(std::string src) {
- std::stringstream s(src);
- self->ReadGeometry(s);}
- };
-
- %feature("autodoc", "1");
- %extend{
- void ReadPolygon3DFromString(std::string src) {
- std::stringstream s(src);
- self->ReadPolygon3D(s);}
- };
-
- %feature("autodoc", "1");
- %extend{
- void ReadPolygonOnTriangulationFromString(std::string src) {
- std::stringstream s(src);
- self->ReadPolygonOnTriangulation(s);}
- };
-
- %feature("autodoc", "1");
- %extend{
- void ReadTriangulationFromString(std::string src) {
- std::stringstream s(src);
- self->ReadTriangulation(s);}
- };
/****************** Shape ******************/
/**** md5 signature: e70e8ec038f807ea515f2fa1e45089cf ****/
%feature("compactdefaultargs") Shape;
@@ -1182,46 +1786,132 @@ Returns the sub-shape of index .
") Shape;
const TopoDS_Shape Shape(const Standard_Integer I);
+ /****************** Write ******************/
+ /**** md5 signature: 2090695479553866c37ac063a125c102 ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the content of me on the stream in binary format that can be read back by read. //! writes the locations. //! writes the geometry calling writegeometry. //! dumps the shapes from last to first. for each shape: write the type. calls writegeometry(s). write the flags, the subshapes.
+") Write;
+ virtual void Write(std::ostream &OutValue, const Message_ProgressRange & theRange = Message_ProgressRange());
+
+ /****************** Write ******************/
+ /**** md5 signature: abb0b72362303f9400b3c04f195f92e2 ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+S: TopoDS_Shape
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes on the shape . writes the orientation, the index of the tshape and the index of the location.
+") Write;
+ virtual void Write(const TopoDS_Shape & S, std::ostream &OutValue);
+
+ /****************** WriteGeometry ******************/
+ /**** md5 signature: 79b02143ea9e44b9406698e1fc0e4a65 ****/
+ %feature("compactdefaultargs") WriteGeometry;
+ %feature("autodoc", "
+Parameters
+----------
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the geometry of me on the stream in a binary format that can be read back by read.
+") WriteGeometry;
+ virtual void WriteGeometry(std::ostream &OutValue, const Message_ProgressRange & theRange = Message_ProgressRange());
+
+ /****************** WritePolygon3D ******************/
+ /**** md5 signature: f7a844b3f174b4082764be44bdeba902 ****/
+ %feature("compactdefaultargs") WritePolygon3D;
+ %feature("autodoc", "
+Parameters
+----------
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the 3d polygons on the stream in a format that can be read back by read.
+") WritePolygon3D;
+ void WritePolygon3D(std::ostream &OutValue, const Message_ProgressRange & theRange = Message_ProgressRange());
+
+ /****************** WritePolygonOnTriangulation ******************/
+ /**** md5 signature: 42a0cb0fd4ac67791ede7550f408592e ****/
+ %feature("compactdefaultargs") WritePolygonOnTriangulation;
+ %feature("autodoc", "
+Parameters
+----------
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the polygons on triangulation on the stream in a format that can be read back by read.
+") WritePolygonOnTriangulation;
+ void WritePolygonOnTriangulation(std::ostream &OutValue, const Message_ProgressRange & theRange = Message_ProgressRange());
+
+ /****************** WriteShape ******************/
+ /**** md5 signature: 7c621dc2ecbfe0ab8412c61c3966b71b ****/
+ %feature("compactdefaultargs") WriteShape;
+ %feature("autodoc", "
+Parameters
+----------
+S: TopoDS_Shape
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the shape on the stream in a binary format that can be read back by read.
+") WriteShape;
+ virtual void WriteShape(const TopoDS_Shape & S, std::ostream &OutValue);
+
+ /****************** WriteTriangulation ******************/
+ /**** md5 signature: 86067a9cabf0d76ba9ca5aaa8394eeef ****/
+ %feature("compactdefaultargs") WriteTriangulation;
+ %feature("autodoc", "
+Parameters
+----------
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the triangulation on the stream in a format that can be read back by read.
+") WriteTriangulation;
+ void WriteTriangulation(std::ostream &OutValue, const Message_ProgressRange & theRange = Message_ProgressRange());
- %feature("autodoc", "1");
- %extend{
- std::string WriteToString() {
- std::stringstream s;
- self->Write(s);
- return s.str();}
- };
-
- %feature("autodoc", "1");
- %extend{
- std::string WriteGeometryToString() {
- std::stringstream s;
- self->WriteGeometry(s);
- return s.str();}
- };
-
- %feature("autodoc", "1");
- %extend{
- std::string WritePolygon3DToString() {
- std::stringstream s;
- self->WritePolygon3D(s);
- return s.str();}
- };
-
- %feature("autodoc", "1");
- %extend{
- std::string WritePolygonOnTriangulationToString() {
- std::stringstream s;
- self->WritePolygonOnTriangulation(s);
- return s.str();}
- };
-
- %feature("autodoc", "1");
- %extend{
- std::string WriteTriangulationToString() {
- std::stringstream s;
- self->WriteTriangulation(s);
- return s.str();}
- };
};
@@ -1262,6 +1952,24 @@ Clears the content of the set.
") Clear;
virtual void Clear();
+ /****************** Write ******************/
+ /**** md5 signature: 59a6a83cf3635e21cdb1e1ebc16aadda ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+theShape: TopoDS_Shape
+
+Return
+-------
+theStream: Standard_OStream
+
+Description
+-----------
+Writes the shape to stream using previously stored shapes and objects to refer them.
+") Write;
+ virtual void Write(const TopoDS_Shape & theShape, std::ostream &OutValue);
+
/****************** WriteLocation ******************/
/**** md5 signature: 650139b9f368324efb64446489116d9f ****/
%feature("compactdefaultargs") WriteLocation;
@@ -1310,6 +2018,50 @@ class BinTools_OStream:
}
/* deprecated methods */
%pythoncode {
+@deprecated
+def bintools_GetBool(*args):
+ return bintools.GetBool(*args)
+
+@deprecated
+def bintools_GetExtChar(*args):
+ return bintools.GetExtChar(*args)
+
+@deprecated
+def bintools_GetInteger(*args):
+ return bintools.GetInteger(*args)
+
+@deprecated
+def bintools_GetReal(*args):
+ return bintools.GetReal(*args)
+
+@deprecated
+def bintools_GetShortReal(*args):
+ return bintools.GetShortReal(*args)
+
+@deprecated
+def bintools_PutBool(*args):
+ return bintools.PutBool(*args)
+
+@deprecated
+def bintools_PutExtChar(*args):
+ return bintools.PutExtChar(*args)
+
+@deprecated
+def bintools_PutInteger(*args):
+ return bintools.PutInteger(*args)
+
+@deprecated
+def bintools_PutReal(*args):
+ return bintools.PutReal(*args)
+
+@deprecated
+def bintools_PutShortReal(*args):
+ return bintools.PutShortReal(*args)
+
+@deprecated
+def bintools_Read(*args):
+ return bintools.Read(*args)
+
@deprecated
def bintools_Read(*args):
return bintools.Read(*args)
@@ -1322,14 +2074,34 @@ def bintools_Write(*args):
def bintools_Write(*args):
return bintools.Write(*args)
+@deprecated
+def bintools_Write(*args):
+ return bintools.Write(*args)
+
+@deprecated
+def bintools_Write(*args):
+ return bintools.Write(*args)
+
+@deprecated
+def BinTools_Curve2dSet_ReadCurve2d(*args):
+ return BinTools_Curve2dSet.ReadCurve2d(*args)
+
@deprecated
def BinTools_Curve2dSet_WriteCurve2d(*args):
return BinTools_Curve2dSet.WriteCurve2d(*args)
+@deprecated
+def BinTools_CurveSet_ReadCurve(*args):
+ return BinTools_CurveSet.ReadCurve(*args)
+
@deprecated
def BinTools_CurveSet_WriteCurve(*args):
return BinTools_CurveSet.WriteCurve(*args)
+@deprecated
+def BinTools_SurfaceSet_ReadSurface(*args):
+ return BinTools_SurfaceSet.ReadSurface(*args)
+
@deprecated
def BinTools_SurfaceSet_WriteSurface(*args):
return BinTools_SurfaceSet.WriteSurface(*args)
diff --git a/src/SWIG_files/wrapper/BinTools.pyi b/src/SWIG_files/wrapper/BinTools.pyi
index cedd6d00a..f9dd6758f 100644
--- a/src/SWIG_files/wrapper/BinTools.pyi
+++ b/src/SWIG_files/wrapper/BinTools.pyi
@@ -76,11 +76,40 @@ BinTools_ObjectType_EmptyShape = BinTools_ObjectType.BinTools_ObjectType_EmptySh
BinTools_ObjectType_EndShape = BinTools_ObjectType.BinTools_ObjectType_EndShape
class bintools:
+ @staticmethod
+ def GetBool(IS: str) -> Tuple[Standard_IStream, bool]: ...
+ @staticmethod
+ def GetExtChar(IS: str, theValue: Standard_ExtCharacter) -> Standard_IStream: ...
+ @staticmethod
+ def GetInteger(IS: str) -> Tuple[Standard_IStream, int]: ...
+ @staticmethod
+ def GetReal(IS: str) -> Tuple[Standard_IStream, float]: ...
+ @staticmethod
+ def GetShortReal(IS: str) -> Tuple[Standard_IStream, float]: ...
+ @staticmethod
+ def PutBool(theValue: bool) -> Tuple[Standard_OStream, str]: ...
+ @staticmethod
+ def PutExtChar(theValue: Standard_ExtCharacter) -> Tuple[Standard_OStream, str]: ...
+ @staticmethod
+ def PutInteger(theValue: int) -> Tuple[Standard_OStream, str]: ...
+ @staticmethod
+ def PutReal(theValue: float) -> Tuple[Standard_OStream, str]: ...
+ @staticmethod
+ def PutShortReal(theValue: float) -> Tuple[Standard_OStream, str]: ...
+ @overload
+ @staticmethod
+ def Read(theShape: TopoDS_Shape, theStream: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
@overload
@staticmethod
def Read(theShape: TopoDS_Shape, theFile: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ...
@overload
@staticmethod
+ def Write(theShape: TopoDS_Shape, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
+ @overload
+ @staticmethod
+ def Write(theShape: TopoDS_Shape, theWithTriangles: bool, theWithNormals: bool, theVersion: BinTools_FormatVersion, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
+ @overload
+ @staticmethod
def Write(theShape: TopoDS_Shape, theFile: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> bool: ...
@overload
@staticmethod
@@ -92,6 +121,10 @@ class BinTools_Curve2dSet:
def Clear(self) -> None: ...
def Curve2d(self, I: int) -> Geom2d_Curve: ...
def Index(self, C: Geom2d_Curve) -> int: ...
+ def Read(self, IS: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ @staticmethod
+ def ReadCurve2d(IS: str, C: Geom2d_Curve) -> Standard_IStream: ...
+ def Write(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
@staticmethod
def WriteCurve2d(C: Geom2d_Curve, OS: BinTools_OStream) -> None: ...
@@ -101,6 +134,10 @@ class BinTools_CurveSet:
def Clear(self) -> None: ...
def Curve(self, I: int) -> Geom_Curve: ...
def Index(self, C: Geom_Curve) -> int: ...
+ def Read(self, IS: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ @staticmethod
+ def ReadCurve(IS: str, C: Geom_Curve) -> Standard_IStream: ...
+ def Write(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
@staticmethod
def WriteCurve(C: Geom_Curve, OS: BinTools_OStream) -> None: ...
@@ -111,6 +148,8 @@ class BinTools_LocationSet:
def Index(self, L: TopLoc_Location) -> int: ...
def Location(self, I: int) -> TopLoc_Location: ...
def NbLocations(self) -> int: ...
+ def Read(self, IS: str) -> None: ...
+ def Write(self) -> str: ...
class BinTools_ShapeSetBase:
def __init__(self) -> None: ...
@@ -127,13 +166,18 @@ class BinTools_SurfaceSet:
def Add(self, S: Geom_Surface) -> int: ...
def Clear(self) -> None: ...
def Index(self, S: Geom_Surface) -> int: ...
+ def Read(self, IS: str, therange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ @staticmethod
+ def ReadSurface(IS: str, S: Geom_Surface) -> Standard_IStream: ...
def Surface(self, I: int) -> Geom_Surface: ...
+ def Write(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
@staticmethod
def WriteSurface(S: Geom_Surface, OS: BinTools_OStream) -> None: ...
class BinTools_ShapeReader(BinTools_ShapeSetBase):
def __init__(self) -> None: ...
def Clear(self) -> None: ...
+ def Read(self, theStream: str, theShape: TopoDS_Shape) -> None: ...
def ReadLocation(self, theStream: BinTools_IStream) -> TopLoc_Location: ...
class BinTools_ShapeSet(BinTools_ShapeSetBase):
@@ -146,11 +190,30 @@ class BinTools_ShapeSet(BinTools_ShapeSetBase):
def Index(self, S: TopoDS_Shape) -> int: ...
def Locations(self) -> BinTools_LocationSet: ...
def NbShapes(self) -> int: ...
+ @overload
+ def Read(self, IS: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ def ReadFlagsAndSubs(self, S: TopoDS_Shape, T: TopAbs_ShapeEnum, IS: str, NbShapes: int) -> None: ...
+ def ReadGeometry(self, IS: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ def ReadPolygon3D(self, IS: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ def ReadPolygonOnTriangulation(self, IS: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ def ReadShape(self, T: TopAbs_ShapeEnum, IS: str, S: TopoDS_Shape) -> None: ...
+ def ReadSubs(self, S: TopoDS_Shape, IS: str, NbShapes: int) -> None: ...
+ def ReadTriangulation(self, IS: str, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
def Shape(self, I: int) -> TopoDS_Shape: ...
+ @overload
+ def Write(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
+ @overload
+ def Write(self, S: TopoDS_Shape) -> str: ...
+ def WriteGeometry(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
+ def WritePolygon3D(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
+ def WritePolygonOnTriangulation(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
+ def WriteShape(self, S: TopoDS_Shape) -> str: ...
+ def WriteTriangulation(self, theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
class BinTools_ShapeWriter(BinTools_ShapeSetBase):
def __init__(self) -> None: ...
def Clear(self) -> None: ...
+ def Write(self, theShape: TopoDS_Shape) -> str: ...
def WriteLocation(self, theStream: BinTools_OStream, theLocation: TopLoc_Location) -> None: ...
#classnotwrapped
diff --git a/src/SWIG_files/wrapper/BinXCAFDrivers.i b/src/SWIG_files/wrapper/BinXCAFDrivers.i
index 7d2de6a20..8fff828e1 100644
--- a/src/SWIG_files/wrapper/BinXCAFDrivers.i
+++ b/src/SWIG_files/wrapper/BinXCAFDrivers.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_binxcafdrivers.ht
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Bisector.i b/src/SWIG_files/wrapper/Bisector.i
index 877f6d513..0389d1f21 100644
--- a/src/SWIG_files/wrapper/Bisector.i
+++ b/src/SWIG_files/wrapper/Bisector.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_bisector.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Blend.i b/src/SWIG_files/wrapper/Blend.i
index ab43530ef..d8c1299a8 100644
--- a/src/SWIG_files/wrapper/Blend.i
+++ b/src/SWIG_files/wrapper/Blend.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_blend.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/BlendFunc.i b/src/SWIG_files/wrapper/BlendFunc.i
index 5fbd834f0..5c8c5ef54 100644
--- a/src/SWIG_files/wrapper/BlendFunc.i
+++ b/src/SWIG_files/wrapper/BlendFunc.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_blendfunc.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Bnd.i b/src/SWIG_files/wrapper/Bnd.i
index 499fc9783..d3f4ea193 100644
--- a/src/SWIG_files/wrapper/Bnd.i
+++ b/src/SWIG_files/wrapper/Bnd.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_bnd.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -2141,10 +2142,22 @@ No available documentation.
void Dump();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -2229,10 +2242,22 @@ Returns true if this box has finite part.
Standard_Boolean HasFinitePart();
- /****************** InitFromJsonString ******************/
- %feature("autodoc", "1");
+ /****************** InitFromJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+json_string: the string
+
+Return
+-------
+bool
+
+Description
+-----------
+Init the object from a JSON string.
+") InitFromJson;
%extend{
- bool InitFromJsonString(std::string json_string) {
+ bool InitFromJson(std::string json_string) {
std::stringstream s(json_string);
Standard_Integer pos=2;
return self->InitFromJson(s, pos);}
@@ -2797,7 +2822,7 @@ Adds a point of coordinates (x,y,z) to this bounding box.
%extend Bnd_Box {
%pythoncode {
def __getstate__(self):
- return self.DumpJsonToString()
+ return self.DumpJson()
}
};
@@ -2805,7 +2830,7 @@ Adds a point of coordinates (x,y,z) to this bounding box.
%pythoncode {
def __setstate__(self, state):
inst = Bnd_Box()
- if inst.InitFromJsonString(state):
+ if inst.InitFromJson(state):
self.this = inst.this
else:
raise IOError('Failed to set state of Bnd_Box')
@@ -3373,7 +3398,7 @@ Adds a point of coordinates (x,y) to this bounding box.
%extend Bnd_Box2d {
%pythoncode {
def __getstate__(self):
- return self.DumpJsonToString()
+ return self.DumpJson()
}
};
@@ -3381,7 +3406,7 @@ Adds a point of coordinates (x,y) to this bounding box.
%pythoncode {
def __setstate__(self, state):
inst = Bnd_Box2d()
- if inst.InitFromJsonString(state):
+ if inst.InitFromJson(state):
self.this = inst.this
else:
raise IOError('Failed to set state of Bnd_Box2d')
@@ -3503,10 +3528,22 @@ Returns the center of obb.
const gp_XYZ Center();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -3864,7 +3901,7 @@ Returns the z dimension of obb.
%extend Bnd_OBB {
%pythoncode {
def __getstate__(self):
- return self.DumpJsonToString()
+ return self.DumpJson()
}
};
@@ -3872,7 +3909,7 @@ Returns the z dimension of obb.
%pythoncode {
def __setstate__(self, state):
inst = Bnd_OBB()
- if inst.InitFromJsonString(state):
+ if inst.InitFromJson(state):
self.this = inst.this
else:
raise IOError('Failed to set state of Bnd_OBB')
@@ -3989,10 +4026,22 @@ Returns range value (max-min). returns negative value for void range.
Standard_Real Delta();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -4297,7 +4346,7 @@ def __eq__(self, right):
%extend Bnd_Range {
%pythoncode {
def __getstate__(self):
- return self.DumpJsonToString()
+ return self.DumpJson()
}
};
@@ -4305,7 +4354,7 @@ def __eq__(self, right):
%pythoncode {
def __setstate__(self, state):
inst = Bnd_Range()
- if inst.InitFromJsonString(state):
+ if inst.InitFromJson(state):
self.this = inst.this
else:
raise IOError('Failed to set state of Bnd_Range')
@@ -4607,7 +4656,7 @@ Returns the v parameter on shape.
%extend Bnd_Sphere {
%pythoncode {
def __getstate__(self):
- return self.DumpJsonToString()
+ return self.DumpJson()
}
};
@@ -4615,7 +4664,7 @@ Returns the v parameter on shape.
%pythoncode {
def __setstate__(self, state):
inst = Bnd_Sphere()
- if inst.InitFromJsonString(state):
+ if inst.InitFromJson(state):
self.this = inst.this
else:
raise IOError('Failed to set state of Bnd_Sphere')
@@ -4675,7 +4724,7 @@ Converts the given bnd_box to bvh_box.
%extend Bnd_Tools {
%pythoncode {
def __getstate__(self):
- return self.DumpJsonToString()
+ return self.DumpJson()
}
};
@@ -4683,7 +4732,7 @@ Converts the given bnd_box to bvh_box.
%pythoncode {
def __setstate__(self, state):
inst = Bnd_Tools()
- if inst.InitFromJsonString(state):
+ if inst.InitFromJson(state):
self.this = inst.this
else:
raise IOError('Failed to set state of Bnd_Tools')
diff --git a/src/SWIG_files/wrapper/Bnd.pyi b/src/SWIG_files/wrapper/Bnd.pyi
index 364641bca..37b25be4f 100644
--- a/src/SWIG_files/wrapper/Bnd.pyi
+++ b/src/SWIG_files/wrapper/Bnd.pyi
@@ -266,11 +266,13 @@ class Bnd_Box:
def CornerMin(self) -> gp_Pnt: ...
def Distance(self, Other: Bnd_Box) -> float: ...
def Dump(self) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Enlarge(self, Tol: float) -> None: ...
def FinitePart(self) -> Bnd_Box: ...
def Get(self) -> Tuple[float, float, float, float, float, float]: ...
def GetGap(self) -> float: ...
def HasFinitePart(self) -> bool: ...
+ def InitFromJson(self, json_string: str) -> bool: ...
def IsOpen(self) -> bool: ...
def IsOpenXmax(self) -> bool: ...
def IsOpenXmin(self) -> bool: ...
@@ -380,6 +382,7 @@ class Bnd_OBB:
@overload
def Add(self, theP: gp_Pnt) -> None: ...
def Center(self) -> gp_XYZ: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Enlarge(self, theGapAdd: float) -> None: ...
def GetVertex(self, theP_list: List[gp_Pnt]) -> bool: ...
def IsAABox(self) -> bool: ...
@@ -416,6 +419,7 @@ class Bnd_Range:
def Add(self, theRange: Bnd_Range) -> None: ...
def Common(self, theOther: Bnd_Range) -> None: ...
def Delta(self) -> float: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Enlarge(self, theDelta: float) -> None: ...
def GetBounds(self) -> Tuple[bool, float, float]: ...
def GetIntermediatePoint(self, theLambda: float) -> Tuple[bool, float]: ...
diff --git a/src/SWIG_files/wrapper/BndLib.i b/src/SWIG_files/wrapper/BndLib.i
index 4558af926..275e55c4b 100644
--- a/src/SWIG_files/wrapper/BndLib.i
+++ b/src/SWIG_files/wrapper/BndLib.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_bndlib.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/CDF.i b/src/SWIG_files/wrapper/CDF.i
index 21d117eec..b16d559cf 100644
--- a/src/SWIG_files/wrapper/CDF.i
+++ b/src/SWIG_files/wrapper/CDF.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_cdf.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -366,6 +367,27 @@ Puts the document in the current session directory and calls the virtual method
") Open;
void Open(const opencascade::handle & aDocument);
+ /****************** Read ******************/
+ /**** md5 signature: fed3647299064218aa4c2d8dceec103f ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+theIStream: str
+theDocument: CDM_Document
+theFilter: PCDM_ReaderFilter (optional, default to opencascade::handle())
+theRange: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads thedocument from standard seekable stream theistream, the stream should support seek functionality.
+") Read;
+ void Read(std::istream & theIStream, opencascade::handle & theDocument, const opencascade::handle & theFilter = opencascade::handle(), const Message_ProgressRange & theRange = Message_ProgressRange());
+
/****************** ReaderFromFormat ******************/
/**** md5 signature: aab6344d555db3220a1fcf7db3c7d59e ****/
%feature("compactdefaultargs") ReaderFromFormat;
diff --git a/src/SWIG_files/wrapper/CDF.pyi b/src/SWIG_files/wrapper/CDF.pyi
index 37cf672f2..f70000b1d 100644
--- a/src/SWIG_files/wrapper/CDF.pyi
+++ b/src/SWIG_files/wrapper/CDF.pyi
@@ -65,6 +65,7 @@ class CDF_Application(CDM_Application):
def MetaDataDriver(self) -> CDF_MetaDataDriver: ...
def NewDocument(self, theFormat: str, theDoc: CDM_Document) -> None: ...
def Open(self, aDocument: CDM_Document) -> None: ...
+ def Read(self, theIStream: str, theDocument: CDM_Document, theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
def ReaderFromFormat(self, aFormat: str) -> PCDM_Reader: ...
@overload
def Retrieve(self, aFolder: str, aName: str, UseStorageConfiguration: Optional[bool] = True, theFilter: Optional[PCDM_ReaderFilter] = PCDM_ReaderFilter(), theRange: Optional[Message_ProgressRange] = Message_ProgressRange()) -> CDM_Document: ...
diff --git a/src/SWIG_files/wrapper/CDM.i b/src/SWIG_files/wrapper/CDM.i
index 5dd512150..8b0f14d83 100644
--- a/src/SWIG_files/wrapper/CDM.i
+++ b/src/SWIG_files/wrapper/CDM.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_cdm.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -161,10 +162,22 @@ This method is called before the update of a document. by default, writes in mes
virtual void BeginOfUpdate(const opencascade::handle & aDocument);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -546,10 +559,22 @@ Returns the to document of the reference identified by areferenceidentifier. if
opencascade::handle Document(const Standard_Integer aReferenceIdentifier);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -912,14 +937,23 @@ No available documentation.
") Open;
void Open(const opencascade::handle & anApplication);
+ /****************** Print ******************/
+ /**** md5 signature: fb65164879bb8268c90b67d68359a682 ****/
+ %feature("compactdefaultargs") Print;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+anOStream: Standard_OStream
+
+Description
+-----------
+No available documentation.
+") Print;
+ Standard_OStream & Print(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string PrintToString() {
- std::stringstream s;
- self->Print(s);
- return s.str();}
- };
/****************** Reference ******************/
/**** md5 signature: 8fb9128b48e5f8568694a49ff83331ff ****/
%feature("compactdefaultargs") Reference;
@@ -1436,10 +1470,22 @@ No available documentation.
opencascade::handle Document();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -1582,14 +1628,23 @@ No available documentation.
") Path;
TCollection_ExtendedString Path();
+ /****************** Print ******************/
+ /**** md5 signature: fb65164879bb8268c90b67d68359a682 ****/
+ %feature("compactdefaultargs") Print;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+anOStream: Standard_OStream
+
+Description
+-----------
+No available documentation.
+") Print;
+ Standard_OStream & Print(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string PrintToString() {
- std::stringstream s;
- self->Print(s);
- return s.str();}
- };
/****************** SetIsReadOnly ******************/
/**** md5 signature: 9f4f8649234a1411f6086a147fb0f5ad ****/
%feature("compactdefaultargs") SetIsReadOnly;
@@ -1673,10 +1728,22 @@ No available documentation.
Standard_Integer DocumentVersion();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
diff --git a/src/SWIG_files/wrapper/CDM.pyi b/src/SWIG_files/wrapper/CDM.pyi
index 279a3f62d..b825b8887 100644
--- a/src/SWIG_files/wrapper/CDM.pyi
+++ b/src/SWIG_files/wrapper/CDM.pyi
@@ -60,6 +60,7 @@ CDM_CCS_ReferenceRejection = CDM_CanCloseStatus.CDM_CCS_ReferenceRejection
class CDM_Application(Standard_Transient):
def BeginOfUpdate(self, aDocument: CDM_Document) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EndOfUpdate(self, aDocument: CDM_Document, theStatus: bool, ErrorString: str) -> None: ...
def MessageDriver(self) -> Message_Messenger: ...
def MetaDataLookUpTable(self) -> CDM_MetaDataLookUpTable: ...
@@ -87,6 +88,7 @@ class CDM_Document(Standard_Transient):
def DeepReferences(self, aDocument: CDM_Document) -> bool: ...
def Description(self) -> str: ...
def Document(self, aReferenceIdentifier: int) -> CDM_Document: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Extensions(self, Extensions: TColStd_SequenceOfExtendedString) -> None: ...
def FileExtension(self) -> str: ...
def FindDescription(self) -> bool: ...
@@ -117,6 +119,7 @@ class CDM_Document(Standard_Transient):
def Modify(self) -> None: ...
def Name(self, aReferenceIdentifier: int) -> str: ...
def Open(self, anApplication: CDM_Application) -> None: ...
+ def Print(self) -> Tuple[Standard_OStream, str]: ...
def Reference(self, aReferenceIdentifier: int) -> CDM_Reference: ...
def ReferenceCounter(self) -> int: ...
def RemoveAllReferences(self) -> None: ...
@@ -154,6 +157,7 @@ class CDM_Document(Standard_Transient):
class CDM_MetaData(Standard_Transient):
def Document(self) -> CDM_Document: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def FileName(self) -> str: ...
def Folder(self) -> str: ...
def HasVersion(self) -> bool: ...
@@ -167,6 +171,7 @@ class CDM_MetaData(Standard_Transient):
def LookUp(theLookUpTable: CDM_MetaDataLookUpTable, aFolder: str, aName: str, aPath: str, aVersion: str, aFileName: str, ReadOnly: bool) -> CDM_MetaData: ...
def Name(self) -> str: ...
def Path(self) -> str: ...
+ def Print(self) -> Tuple[Standard_OStream, str]: ...
def SetIsReadOnly(self) -> None: ...
def UnsetDocument(self) -> None: ...
def UnsetIsReadOnly(self) -> None: ...
@@ -174,6 +179,7 @@ class CDM_MetaData(Standard_Transient):
class CDM_Reference(Standard_Transient):
def DocumentVersion(self) -> int: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def FromDocument(self) -> CDM_Document: ...
def IsReadOnly(self) -> bool: ...
def ReferenceIdentifier(self) -> int: ...
diff --git a/src/SWIG_files/wrapper/CPnts.i b/src/SWIG_files/wrapper/CPnts.i
index 81c2bd703..6cbcee586 100644
--- a/src/SWIG_files/wrapper/CPnts.i
+++ b/src/SWIG_files/wrapper/CPnts.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_cpnts.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/CSLib.i b/src/SWIG_files/wrapper/CSLib.i
index 0f1dae5da..5fcd62855 100644
--- a/src/SWIG_files/wrapper/CSLib.i
+++ b/src/SWIG_files/wrapper/CSLib.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_cslib.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/ChFi2d.i b/src/SWIG_files/wrapper/ChFi2d.i
index 934347c5c..08f1eb161 100644
--- a/src/SWIG_files/wrapper/ChFi2d.i
+++ b/src/SWIG_files/wrapper/ChFi2d.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_chfi2d.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/ChFi3d.i b/src/SWIG_files/wrapper/ChFi3d.i
index dbe9b62a6..e98ff851e 100644
--- a/src/SWIG_files/wrapper/ChFi3d.i
+++ b/src/SWIG_files/wrapper/ChFi3d.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_chfi3d.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/ChFiDS.i b/src/SWIG_files/wrapper/ChFiDS.i
index 90ba150fc..2e35bde22 100644
--- a/src/SWIG_files/wrapper/ChFiDS.i
+++ b/src/SWIG_files/wrapper/ChFiDS.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_chfids.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/ChFiKPart.i b/src/SWIG_files/wrapper/ChFiKPart.i
index 8d1b53e47..8b4463907 100644
--- a/src/SWIG_files/wrapper/ChFiKPart.i
+++ b/src/SWIG_files/wrapper/ChFiKPart.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_chfikpart.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Contap.i b/src/SWIG_files/wrapper/Contap.i
index 4bb1d69c4..bbfbc7731 100644
--- a/src/SWIG_files/wrapper/Contap.i
+++ b/src/SWIG_files/wrapper/Contap.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_contap.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Convert.i b/src/SWIG_files/wrapper/Convert.i
index 4c21caa8e..32c856f2d 100644
--- a/src/SWIG_files/wrapper/Convert.i
+++ b/src/SWIG_files/wrapper/Convert.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_convert.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/DE.i b/src/SWIG_files/wrapper/DE.i
index 023f50f52..ed4d0fcee 100644
--- a/src/SWIG_files/wrapper/DE.i
+++ b/src/SWIG_files/wrapper/DE.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_de.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/DEBRepCascade.i b/src/SWIG_files/wrapper/DEBRepCascade.i
index 6af8ecc10..c94d96269 100644
--- a/src/SWIG_files/wrapper/DEBRepCascade.i
+++ b/src/SWIG_files/wrapper/DEBRepCascade.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_debrepcascade.htm
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/DEXCAFCascade.i b/src/SWIG_files/wrapper/DEXCAFCascade.i
index 72b1148e9..990cc1369 100644
--- a/src/SWIG_files/wrapper/DEXCAFCascade.i
+++ b/src/SWIG_files/wrapper/DEXCAFCascade.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_dexcafcascade.htm
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Draft.i b/src/SWIG_files/wrapper/Draft.i
index 4f4ab0d6d..d95a97725 100644
--- a/src/SWIG_files/wrapper/Draft.i
+++ b/src/SWIG_files/wrapper/Draft.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_draft.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/DsgPrs.i b/src/SWIG_files/wrapper/DsgPrs.i
index e5c2e5407..69b970d72 100644
--- a/src/SWIG_files/wrapper/DsgPrs.i
+++ b/src/SWIG_files/wrapper/DsgPrs.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_dsgprs.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/ElCLib.i b/src/SWIG_files/wrapper/ElCLib.i
index 9c92ad14d..610a00ce5 100644
--- a/src/SWIG_files/wrapper/ElCLib.i
+++ b/src/SWIG_files/wrapper/ElCLib.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_elclib.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/ElSLib.i b/src/SWIG_files/wrapper/ElSLib.i
index 98fbdcef2..35a7d48de 100644
--- a/src/SWIG_files/wrapper/ElSLib.i
+++ b/src/SWIG_files/wrapper/ElSLib.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_elslib.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Expr.i b/src/SWIG_files/wrapper/Expr.i
index 8c8e10178..ee8fcdcd2 100644
--- a/src/SWIG_files/wrapper/Expr.i
+++ b/src/SWIG_files/wrapper/Expr.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_expr.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/ExprIntrp.i b/src/SWIG_files/wrapper/ExprIntrp.i
index 047d78b4e..22e350179 100644
--- a/src/SWIG_files/wrapper/ExprIntrp.i
+++ b/src/SWIG_files/wrapper/ExprIntrp.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_exprintrp.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Extrema.i b/src/SWIG_files/wrapper/Extrema.i
index 7efb42d30..e097ffacf 100644
--- a/src/SWIG_files/wrapper/Extrema.i
+++ b/src/SWIG_files/wrapper/Extrema.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_extrema.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/FEmTool.i b/src/SWIG_files/wrapper/FEmTool.i
index 06224054c..4281eea45 100644
--- a/src/SWIG_files/wrapper/FEmTool.i
+++ b/src/SWIG_files/wrapper/FEmTool.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_femtool.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/FSD.i b/src/SWIG_files/wrapper/FSD.i
index a820843f9..bd396fd0c 100644
--- a/src/SWIG_files/wrapper/FSD.i
+++ b/src/SWIG_files/wrapper/FSD.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_fsd.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/FairCurve.i b/src/SWIG_files/wrapper/FairCurve.i
index 8c10a14a3..a3095f7b9 100644
--- a/src/SWIG_files/wrapper/FairCurve.i
+++ b/src/SWIG_files/wrapper/FairCurve.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_faircurve.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -158,14 +159,23 @@ Returns the computed curve a 2d bspline.
") Curve;
opencascade::handle Curve();
+ /****************** Dump ******************/
+ /**** md5 signature: 3285fe47a669df0eece9c96593dad879 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Prints on the stream o information on the current state of the object. //! private methodes --------------------------------------.
+") Dump;
+ virtual void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** GetAngle1 ******************/
/**** md5 signature: 4d8e16f87d9a075ff3d1c86749675db9 ****/
%feature("compactdefaultargs") GetAngle1;
@@ -1255,14 +1265,23 @@ Computes the curve with respect to the constraints, nbiterations and tolerance.
") Compute;
virtual Standard_Boolean Compute(FairCurve_AnalysisCode &OutValue, const Standard_Integer NbIterations = 50, const Standard_Real Tolerance = 1.0e-3);
+ /****************** Dump ******************/
+ /**** md5 signature: b42defe2d7a7208961fa81b225a70479 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Prints on the stream o information on the current state of the object. is used to redefine the operator <<.
+") Dump;
+ virtual void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** GetCurvature1 ******************/
/**** md5 signature: 52b65eab76a83b1bbd4a765dc4226232 ****/
%feature("compactdefaultargs") GetCurvature1;
diff --git a/src/SWIG_files/wrapper/FairCurve.pyi b/src/SWIG_files/wrapper/FairCurve.pyi
index 87a049f5d..febe2eac8 100644
--- a/src/SWIG_files/wrapper/FairCurve.pyi
+++ b/src/SWIG_files/wrapper/FairCurve.pyi
@@ -25,6 +25,7 @@ class FairCurve_Batten:
def __init__(self, P1: gp_Pnt2d, P2: gp_Pnt2d, Height: float, Slope: Optional[float] = 0) -> None: ...
def Compute(self, NbIterations: Optional[int] = 50, Tolerance: Optional[float] = 1.0e-3) -> Tuple[bool, FairCurve_AnalysisCode]: ...
def Curve(self) -> Geom2d_BSplineCurve: ...
+ def Dump(self) -> str: ...
def GetAngle1(self) -> float: ...
def GetAngle2(self) -> float: ...
def GetConstraintOrder1(self) -> int: ...
@@ -102,6 +103,7 @@ class FairCurve_EnergyOfMVC(FairCurve_Energy):
class FairCurve_MinimalVariation(FairCurve_Batten):
def __init__(self, P1: gp_Pnt2d, P2: gp_Pnt2d, Heigth: float, Slope: Optional[float] = 0, PhysicalRatio: Optional[float] = 0) -> None: ...
def Compute(self, NbIterations: Optional[int] = 50, Tolerance: Optional[float] = 1.0e-3) -> Tuple[bool, FairCurve_AnalysisCode]: ...
+ def Dump(self) -> str: ...
def GetCurvature1(self) -> float: ...
def GetCurvature2(self) -> float: ...
def GetPhysicalRatio(self) -> float: ...
diff --git a/src/SWIG_files/wrapper/FilletSurf.i b/src/SWIG_files/wrapper/FilletSurf.i
index a28477ae8..001f933e8 100644
--- a/src/SWIG_files/wrapper/FilletSurf.i
+++ b/src/SWIG_files/wrapper/FilletSurf.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_filletsurf.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GC.i b/src/SWIG_files/wrapper/GC.i
index 144f2cda5..782b09b19 100644
--- a/src/SWIG_files/wrapper/GC.i
+++ b/src/SWIG_files/wrapper/GC.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_gc.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GCE2d.i b/src/SWIG_files/wrapper/GCE2d.i
index 820f7ecd6..d59e5431b 100644
--- a/src/SWIG_files/wrapper/GCE2d.i
+++ b/src/SWIG_files/wrapper/GCE2d.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_gce2d.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GCPnts.i b/src/SWIG_files/wrapper/GCPnts.i
index fe9d3211a..51e544209 100644
--- a/src/SWIG_files/wrapper/GCPnts.i
+++ b/src/SWIG_files/wrapper/GCPnts.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_gcpnts.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GProp.i b/src/SWIG_files/wrapper/GProp.i
index 711bbe61c..26bbc0707 100644
--- a/src/SWIG_files/wrapper/GProp.i
+++ b/src/SWIG_files/wrapper/GProp.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_gprop.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GccAna.i b/src/SWIG_files/wrapper/GccAna.i
index 8a1a0340c..cd8f473fc 100644
--- a/src/SWIG_files/wrapper/GccAna.i
+++ b/src/SWIG_files/wrapper/GccAna.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_gccana.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GccEnt.i b/src/SWIG_files/wrapper/GccEnt.i
index 3e98462c0..253a73bf2 100644
--- a/src/SWIG_files/wrapper/GccEnt.i
+++ b/src/SWIG_files/wrapper/GccEnt.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_gccent.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -280,6 +281,24 @@ Returns the string name for a given position. @param theposition position type r
") PositionToString;
static Standard_CString PositionToString(GccEnt_Position thePosition);
+ /****************** Print ******************/
+ /**** md5 signature: 068a92268570b76299d24afa3d55cb04 ****/
+ %feature("compactdefaultargs") Print;
+ %feature("autodoc", "
+Parameters
+----------
+thePosition: GccEnt_Position
+
+Return
+-------
+theStream: Standard_OStream
+
+Description
+-----------
+Prints the name of position type as a string on the stream.
+") Print;
+ static Standard_OStream & Print(const GccEnt_Position thePosition, std::ostream &OutValue);
+
/****************** Unqualified ******************/
/**** md5 signature: 0b3ce4b2adf987fc69edb4f535e49b85 ****/
%feature("compactdefaultargs") Unqualified;
@@ -574,6 +593,10 @@ def gccent_PositionFromString(*args):
def gccent_PositionToString(*args):
return gccent.PositionToString(*args)
+@deprecated
+def gccent_Print(*args):
+ return gccent.Print(*args)
+
@deprecated
def gccent_Unqualified(*args):
return gccent.Unqualified(*args)
diff --git a/src/SWIG_files/wrapper/GccEnt.pyi b/src/SWIG_files/wrapper/GccEnt.pyi
index b6c9f816c..c77a2adbb 100644
--- a/src/SWIG_files/wrapper/GccEnt.pyi
+++ b/src/SWIG_files/wrapper/GccEnt.pyi
@@ -66,6 +66,8 @@ class gccent:
def PositionFromString(thePositionString: str) -> Tuple[bool, GccEnt_Position]: ...
@staticmethod
def PositionToString(thePosition: GccEnt_Position) -> str: ...
+ @staticmethod
+ def Print(thePosition: GccEnt_Position) -> Tuple[Standard_OStream, str]: ...
@overload
@staticmethod
def Unqualified(Obj: gp_Lin2d) -> GccEnt_QualifiedLin: ...
diff --git a/src/SWIG_files/wrapper/GccInt.i b/src/SWIG_files/wrapper/GccInt.i
index 177f5efd1..abaf45ad2 100644
--- a/src/SWIG_files/wrapper/GccInt.i
+++ b/src/SWIG_files/wrapper/GccInt.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_gccint.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Geom.i b/src/SWIG_files/wrapper/Geom.i
index 2e7df447f..35cb24111 100644
--- a/src/SWIG_files/wrapper/Geom.i
+++ b/src/SWIG_files/wrapper/Geom.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geom.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -148,10 +149,22 @@ Creates a new object which is a copy of this geometric object.
virtual opencascade::handle Copy();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -512,10 +525,22 @@ No available documentation.
opencascade::handle BasisSurface();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -653,10 +678,22 @@ Creates a new object which is a copy of this transformation.
opencascade::handle Copy();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -1311,10 +1348,22 @@ The returned vector gives the value of the derivative for the order of derivatio
virtual gp_Vec DN(const Standard_Real U, const Standard_Integer N);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -1793,10 +1842,22 @@ Computes the derivative of order nu in the direction u and nv in the direction v
virtual gp_Vec DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -2738,10 +2799,22 @@ Returns the 'ydirection'. this is a unit vector.
class Geom_BoundedCurve : public Geom_Curve {
public:
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -3081,10 +3154,22 @@ The continuity of the conic is cn.
GeomAbs_Shape Continuity();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -3591,10 +3676,22 @@ Returns geomabs_cn, the global continuity of any elementary surface.
GeomAbs_Shape Continuity();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -3976,10 +4073,22 @@ The returned vector gives the value of the derivative for the order of derivatio
gp_Vec DN(const Standard_Real U, const Standard_Integer N);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -4429,10 +4538,22 @@ Returns the reference vector of this offset curve. value and derivatives warning
const gp_Dir Direction();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -4900,10 +5021,22 @@ Computes the derivative of order nu in the direction u and nv in the direction v
gp_Vec DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -5361,10 +5494,22 @@ Returns the reference direction of the swept surface. for a surface of revolutio
const gp_Dir Direction();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -6038,10 +6183,22 @@ Returns the degree of this bspline curve. the degree of a geom_bsplinecurve curv
Standard_Integer Degree();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -7373,10 +7530,22 @@ Nu is the order of derivation in the u parametric direction and nv is the order
gp_Vec DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -9312,10 +9481,22 @@ Returns the polynomial degree of the curve. it is the number of poles - 1 point
Standard_Integer Degree();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -10028,10 +10209,22 @@ Computes the derivative of order nu in the u parametric direction, and nv in the
gp_Vec DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -11053,10 +11246,22 @@ The returned vector gives the value of the derivative for the order of derivatio
gp_Vec DN(const Standard_Real U, const Standard_Integer N);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -11468,10 +11673,22 @@ Computes the derivative of order nu in the u parametric direction, and nv in the
gp_Vec DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -11991,10 +12208,22 @@ Computes the derivative of order nu in the direction u and nv in the direction v
gp_Vec DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -12422,10 +12651,22 @@ This line is obtained by the symmetrical transformation of 'directrix1' with res
gp_Ax1 Directrix2();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -12923,10 +13164,22 @@ This line is obtained by the symmetrical transformation of 'directrix1' with res
gp_Ax1 Directrix2();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -13390,10 +13643,22 @@ Computes the directrix of this parabola. this is a line normal to the axis of sy
gp_Ax1 Directrix();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -13887,10 +14152,22 @@ Computes the derivative of order nu in the direction u and nv in the direction v
gp_Vec DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -14370,10 +14647,22 @@ The returned derivative has the same orientation as the derivative of the basis
gp_Vec DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -14932,10 +15221,22 @@ Computes the derivative of order nu in the direction u and nv in the direction v
gp_Vec DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -15343,10 +15644,22 @@ Computes the derivative of order nu in the direction u and nv in the direction v
gp_Vec DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -15827,10 +16140,22 @@ Computes the derivative of order nu in the direction u and nv in the direction v
gp_Vec DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -16410,10 +16735,22 @@ Computes the derivative of order nu in the direction u and nv in the direction v
gp_Vec DN(const Standard_Real U, const Standard_Real V, const Standard_Integer Nu, const Standard_Integer Nv);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -16845,10 +17182,22 @@ N is the order of derivation. raised if the continuity of the curve is not cn. r
gp_Vec DN(const Standard_Real U, const Standard_Integer N);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
diff --git a/src/SWIG_files/wrapper/Geom.pyi b/src/SWIG_files/wrapper/Geom.pyi
index d15ab082d..7c45a9227 100644
--- a/src/SWIG_files/wrapper/Geom.pyi
+++ b/src/SWIG_files/wrapper/Geom.pyi
@@ -26,6 +26,7 @@ class Geom_SequenceOfBSplineSurface:
class Geom_Geometry(Standard_Transient):
def Copy(self) -> Geom_Geometry: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
@overload
def Mirror(self, P: gp_Pnt) -> None: ...
@overload
@@ -59,6 +60,7 @@ class Geom_OsculatingSurface(Standard_Transient):
@overload
def __init__(self, BS: Geom_Surface, Tol: float) -> None: ...
def BasisSurface(self) -> Geom_Surface: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Init(self, BS: Geom_Surface, Tol: float) -> None: ...
def Tolerance(self) -> float: ...
def UOscSurf(self, U: float, V: float, L: Geom_BSplineSurface) -> Tuple[bool, bool]: ...
@@ -70,6 +72,7 @@ class Geom_Transformation(Standard_Transient):
@overload
def __init__(self, T: gp_Trsf) -> None: ...
def Copy(self) -> Geom_Transformation: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Form(self) -> gp_TrsfForm: ...
def Invert(self) -> None: ...
def Inverted(self) -> Geom_Transformation: ...
@@ -117,6 +120,7 @@ class Geom_Curve(Geom_Geometry):
def D2(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ...
def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ...
def DN(self, U: float, N: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def FirstParameter(self) -> float: ...
def IsCN(self, N: int) -> bool: ...
def IsClosed(self) -> bool: ...
@@ -147,6 +151,7 @@ class Geom_Surface(Geom_Geometry):
def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ...
def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ...
def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsCNu(self, N: int) -> bool: ...
def IsCNv(self, N: int) -> bool: ...
def IsUClosed(self) -> bool: ...
@@ -214,6 +219,7 @@ class Geom_Axis2Placement(Geom_AxisPlacement):
def YDirection(self) -> gp_Dir: ...
class Geom_BoundedCurve(Geom_Curve):
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EndPoint(self) -> gp_Pnt: ...
def StartPoint(self) -> gp_Pnt: ...
@@ -241,6 +247,7 @@ class Geom_CartesianPoint(Geom_Point):
class Geom_Conic(Geom_Curve):
def Axis(self) -> gp_Ax1: ...
def Continuity(self) -> GeomAbs_Shape: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Eccentricity(self) -> float: ...
def IsCN(self, N: int) -> bool: ...
def Location(self) -> gp_Pnt: ...
@@ -276,6 +283,7 @@ class Geom_Direction(Geom_Vector):
class Geom_ElementarySurface(Geom_Surface):
def Axis(self) -> gp_Ax1: ...
def Continuity(self) -> GeomAbs_Shape: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsCNu(self, N: int) -> bool: ...
def IsCNv(self, N: int) -> bool: ...
def Location(self) -> gp_Pnt: ...
@@ -302,6 +310,7 @@ class Geom_Line(Geom_Curve):
def D2(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ...
def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ...
def DN(self, U: float, N: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def FirstParameter(self) -> float: ...
def IsCN(self, N: int) -> bool: ...
def IsClosed(self) -> bool: ...
@@ -330,6 +339,7 @@ class Geom_OffsetCurve(Geom_Curve):
def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ...
def DN(self, U: float, N: int) -> gp_Vec: ...
def Direction(self) -> gp_Dir: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def FirstParameter(self) -> float: ...
def GetBasisCurveContinuity(self) -> GeomAbs_Shape: ...
def IsCN(self, N: int) -> bool: ...
@@ -358,6 +368,7 @@ class Geom_OffsetSurface(Geom_Surface):
def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ...
def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ...
def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def GetBasisSurfContinuity(self) -> GeomAbs_Shape: ...
def IsCNu(self, N: int) -> bool: ...
def IsCNv(self, N: int) -> bool: ...
@@ -388,6 +399,7 @@ class Geom_SweptSurface(Geom_Surface):
def BasisCurve(self) -> Geom_Curve: ...
def Continuity(self) -> GeomAbs_Shape: ...
def Direction(self) -> gp_Dir: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
class Geom_VectorWithMagnitude(Geom_Vector):
@overload
@@ -433,6 +445,7 @@ class Geom_BSplineCurve(Geom_BoundedCurve):
def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ...
def DN(self, U: float, N: int) -> gp_Vec: ...
def Degree(self) -> int: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EndPoint(self) -> gp_Pnt: ...
def FirstParameter(self) -> float: ...
def FirstUKnotIndex(self) -> int: ...
@@ -529,6 +542,7 @@ class Geom_BSplineSurface(Geom_BoundedSurface):
def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ...
def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ...
def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def ExchangeUV(self) -> None: ...
def FirstUKnotIndex(self) -> int: ...
def FirstVKnotIndex(self) -> int: ...
@@ -677,6 +691,7 @@ class Geom_BezierCurve(Geom_BoundedCurve):
def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ...
def DN(self, U: float, N: int) -> gp_Vec: ...
def Degree(self) -> int: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EndPoint(self) -> gp_Pnt: ...
def FirstParameter(self) -> float: ...
def Increase(self, Degree: int) -> None: ...
@@ -732,6 +747,7 @@ class Geom_BezierSurface(Geom_BoundedSurface):
def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ...
def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ...
def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def ExchangeUV(self) -> None: ...
def Increase(self, UDeg: int, VDeg: int) -> None: ...
@overload
@@ -813,6 +829,7 @@ class Geom_Circle(Geom_Conic):
def D2(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ...
def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ...
def DN(self, U: float, N: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Eccentricity(self) -> float: ...
def FirstParameter(self) -> float: ...
def IsClosed(self) -> bool: ...
@@ -839,6 +856,7 @@ class Geom_ConicalSurface(Geom_ElementarySurface):
def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ...
def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ...
def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsUClosed(self) -> bool: ...
def IsUPeriodic(self) -> bool: ...
def IsVClosed(self) -> bool: ...
@@ -871,6 +889,7 @@ class Geom_CylindricalSurface(Geom_ElementarySurface):
def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ...
def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ...
def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsUClosed(self) -> bool: ...
def IsUPeriodic(self) -> bool: ...
def IsVClosed(self) -> bool: ...
@@ -899,6 +918,7 @@ class Geom_Ellipse(Geom_Conic):
def DN(self, U: float, N: int) -> gp_Vec: ...
def Directrix1(self) -> gp_Ax1: ...
def Directrix2(self) -> gp_Ax1: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Eccentricity(self) -> float: ...
def Elips(self) -> gp_Elips: ...
def FirstParameter(self) -> float: ...
@@ -934,6 +954,7 @@ class Geom_Hyperbola(Geom_Conic):
def DN(self, U: float, N: int) -> gp_Vec: ...
def Directrix1(self) -> gp_Ax1: ...
def Directrix2(self) -> gp_Ax1: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Eccentricity(self) -> float: ...
def FirstParameter(self) -> float: ...
def Focal(self) -> float: ...
@@ -967,6 +988,7 @@ class Geom_Parabola(Geom_Conic):
def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ...
def DN(self, U: float, N: int) -> gp_Vec: ...
def Directrix(self) -> gp_Ax1: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Eccentricity(self) -> float: ...
def FirstParameter(self) -> float: ...
def Focal(self) -> float: ...
@@ -1000,6 +1022,7 @@ class Geom_Plane(Geom_ElementarySurface):
def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ...
def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ...
def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsUClosed(self) -> bool: ...
def IsUPeriodic(self) -> bool: ...
def IsVClosed(self) -> bool: ...
@@ -1030,6 +1053,7 @@ class Geom_RectangularTrimmedSurface(Geom_BoundedSurface):
def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ...
def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ...
def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsCNu(self, N: int) -> bool: ...
def IsCNv(self, N: int) -> bool: ...
def IsUClosed(self) -> bool: ...
@@ -1066,6 +1090,7 @@ class Geom_SphericalSurface(Geom_ElementarySurface):
def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ...
def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ...
def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsUClosed(self) -> bool: ...
def IsUPeriodic(self) -> bool: ...
def IsVClosed(self) -> bool: ...
@@ -1090,6 +1115,7 @@ class Geom_SurfaceOfLinearExtrusion(Geom_SweptSurface):
def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ...
def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ...
def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsCNu(self, N: int) -> bool: ...
def IsCNv(self, N: int) -> bool: ...
def IsUClosed(self) -> bool: ...
@@ -1118,6 +1144,7 @@ class Geom_SurfaceOfRevolution(Geom_SweptSurface):
def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ...
def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ...
def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsCNu(self, N: int) -> bool: ...
def IsCNv(self, N: int) -> bool: ...
def IsUClosed(self) -> bool: ...
@@ -1154,6 +1181,7 @@ class Geom_ToroidalSurface(Geom_ElementarySurface):
def D2(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec) -> None: ...
def D3(self, U: float, V: float, P: gp_Pnt, D1U: gp_Vec, D1V: gp_Vec, D2U: gp_Vec, D2V: gp_Vec, D2UV: gp_Vec, D3U: gp_Vec, D3V: gp_Vec, D3UUV: gp_Vec, D3UVV: gp_Vec) -> None: ...
def DN(self, U: float, V: float, Nu: int, Nv: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsUClosed(self) -> bool: ...
def IsUPeriodic(self) -> bool: ...
def IsVClosed(self) -> bool: ...
@@ -1181,6 +1209,7 @@ class Geom_TrimmedCurve(Geom_BoundedCurve):
def D2(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec) -> None: ...
def D3(self, U: float, P: gp_Pnt, V1: gp_Vec, V2: gp_Vec, V3: gp_Vec) -> None: ...
def DN(self, U: float, N: int) -> gp_Vec: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EndPoint(self) -> gp_Pnt: ...
def FirstParameter(self) -> float: ...
def IsCN(self, N: int) -> bool: ...
diff --git a/src/SWIG_files/wrapper/Geom2d.i b/src/SWIG_files/wrapper/Geom2d.i
index 0c3ba32cb..5f329a18d 100644
--- a/src/SWIG_files/wrapper/Geom2d.i
+++ b/src/SWIG_files/wrapper/Geom2d.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geom2d.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -120,10 +121,22 @@ No available documentation.
virtual opencascade::handle Copy();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -1199,10 +1212,22 @@ For the point of parameter u of this curve, computes the vector corresponding to
virtual gp_Vec2d DN(const Standard_Real U, const Standard_Integer N);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -1443,10 +1468,22 @@ Computes the distance between and .
Standard_Real Distance(const opencascade::handle & Other);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -1706,10 +1743,22 @@ Returns the y coordinate of .
class Geom2d_BoundedCurve : public Geom2d_Curve {
public:
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -1825,10 +1874,22 @@ No available documentation.
opencascade::handle Copy();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -1994,10 +2055,22 @@ Returns geomabs_cn which is the global continuity of any conic.
GeomAbs_Shape Continuity();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -2632,10 +2705,22 @@ Computes the distance between and the point p.
Standard_Real Distance(const gp_Pnt2d & P);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -3084,10 +3169,22 @@ The returned vector gives the value of the derivative for the order of derivatio
gp_Vec2d DN(const Standard_Real U, const Standard_Integer N);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -4014,10 +4111,22 @@ Returns the degree of this bspline curve. in this class the degree of the basis
Standard_Integer Degree();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -5306,10 +5415,22 @@ Returns the polynomial degree of the curve. it is the number of poles less one.
Standard_Integer Degree();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -5968,10 +6089,22 @@ For the point of parameter u of this circle, computes the vector corresponding t
gp_Vec2d DN(const Standard_Real U, const Standard_Integer N);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -6342,10 +6475,22 @@ This line is obtained by the symmetrical transformation of 'directrix1' with res
gp_Ax2d Directrix2();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -6864,10 +7009,22 @@ This line is obtained by the symmetrical transformation of 'directrix1' with res
gp_Ax2d Directrix2();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -7351,10 +7508,22 @@ The directrix is parallel to the 'yaxis' of the parabola. the 'location' point o
gp_Ax2d Directrix();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -7764,10 +7933,22 @@ For the point of parameter u of this trimmed curve, computes the vector correspo
gp_Vec2d DN(const Standard_Real U, const Standard_Integer N);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
diff --git a/src/SWIG_files/wrapper/Geom2d.pyi b/src/SWIG_files/wrapper/Geom2d.pyi
index b927e7f62..66109955b 100644
--- a/src/SWIG_files/wrapper/Geom2d.pyi
+++ b/src/SWIG_files/wrapper/Geom2d.pyi
@@ -11,6 +11,7 @@ from OCC.Core.TColStd import *
class Geom2d_Geometry(Standard_Transient):
def Copy(self) -> Geom2d_Geometry: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
@overload
def Mirror(self, P: gp_Pnt2d) -> None: ...
@overload
@@ -93,6 +94,7 @@ class Geom2d_Curve(Geom2d_Geometry):
def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ...
def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ...
def DN(self, U: float, N: int) -> gp_Vec2d: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def FirstParameter(self) -> float: ...
def IsCN(self, N: int) -> bool: ...
def IsClosed(self) -> bool: ...
@@ -109,6 +111,7 @@ class Geom2d_Curve(Geom2d_Geometry):
class Geom2d_Point(Geom2d_Geometry):
def Coord(self) -> Tuple[float, float]: ...
def Distance(self, Other: Geom2d_Point) -> float: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Pnt2d(self) -> gp_Pnt2d: ...
def SquareDistance(self, Other: Geom2d_Point) -> float: ...
def X(self) -> float: ...
@@ -128,6 +131,7 @@ class Geom2d_Vector(Geom2d_Geometry):
def Y(self) -> float: ...
class Geom2d_BoundedCurve(Geom2d_Curve):
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EndPoint(self) -> gp_Pnt2d: ...
def StartPoint(self) -> gp_Pnt2d: ...
@@ -138,6 +142,7 @@ class Geom2d_CartesianPoint(Geom2d_Point):
def __init__(self, X: float, Y: float) -> None: ...
def Coord(self) -> Tuple[float, float]: ...
def Copy(self) -> Geom2d_Geometry: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Pnt2d(self) -> gp_Pnt2d: ...
def SetCoord(self, X: float, Y: float) -> None: ...
def SetPnt2d(self, P: gp_Pnt2d) -> None: ...
@@ -149,6 +154,7 @@ class Geom2d_CartesianPoint(Geom2d_Point):
class Geom2d_Conic(Geom2d_Curve):
def Continuity(self) -> GeomAbs_Shape: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Eccentricity(self) -> float: ...
def IsCN(self, N: int) -> bool: ...
def Location(self) -> gp_Pnt2d: ...
@@ -194,6 +200,7 @@ class Geom2d_Line(Geom2d_Curve):
def DN(self, U: float, N: int) -> gp_Vec2d: ...
def Direction(self) -> gp_Dir2d: ...
def Distance(self, P: gp_Pnt2d) -> float: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def FirstParameter(self) -> float: ...
def IsCN(self, N: int) -> bool: ...
def IsClosed(self) -> bool: ...
@@ -222,6 +229,7 @@ class Geom2d_OffsetCurve(Geom2d_Curve):
def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ...
def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ...
def DN(self, U: float, N: int) -> gp_Vec2d: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def FirstParameter(self) -> float: ...
def GetBasisCurveContinuity(self) -> GeomAbs_Shape: ...
def IsCN(self, N: int) -> bool: ...
@@ -278,6 +286,7 @@ class Geom2d_BSplineCurve(Geom2d_BoundedCurve):
def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ...
def DN(self, U: float, N: int) -> gp_Vec2d: ...
def Degree(self) -> int: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EndPoint(self) -> gp_Pnt2d: ...
def FirstParameter(self) -> float: ...
def FirstUKnotIndex(self) -> int: ...
@@ -372,6 +381,7 @@ class Geom2d_BezierCurve(Geom2d_BoundedCurve):
def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ...
def DN(self, U: float, N: int) -> gp_Vec2d: ...
def Degree(self) -> int: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EndPoint(self) -> gp_Pnt2d: ...
def FirstParameter(self) -> float: ...
def Increase(self, Degree: int) -> None: ...
@@ -422,6 +432,7 @@ class Geom2d_Circle(Geom2d_Conic):
def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ...
def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ...
def DN(self, U: float, N: int) -> gp_Vec2d: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Eccentricity(self) -> float: ...
def FirstParameter(self) -> float: ...
def IsClosed(self) -> bool: ...
@@ -448,6 +459,7 @@ class Geom2d_Ellipse(Geom2d_Conic):
def DN(self, U: float, N: int) -> gp_Vec2d: ...
def Directrix1(self) -> gp_Ax2d: ...
def Directrix2(self) -> gp_Ax2d: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Eccentricity(self) -> float: ...
def Elips2d(self) -> gp_Elips2d: ...
def FirstParameter(self) -> float: ...
@@ -485,6 +497,7 @@ class Geom2d_Hyperbola(Geom2d_Conic):
def DN(self, U: float, N: int) -> gp_Vec2d: ...
def Directrix1(self) -> gp_Ax2d: ...
def Directrix2(self) -> gp_Ax2d: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Eccentricity(self) -> float: ...
def FirstParameter(self) -> float: ...
def Focal(self) -> float: ...
@@ -520,6 +533,7 @@ class Geom2d_Parabola(Geom2d_Conic):
def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ...
def DN(self, U: float, N: int) -> gp_Vec2d: ...
def Directrix(self) -> gp_Ax2d: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Eccentricity(self) -> float: ...
def FirstParameter(self) -> float: ...
def Focal(self) -> float: ...
@@ -546,6 +560,7 @@ class Geom2d_TrimmedCurve(Geom2d_BoundedCurve):
def D2(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d) -> None: ...
def D3(self, U: float, P: gp_Pnt2d, V1: gp_Vec2d, V2: gp_Vec2d, V3: gp_Vec2d) -> None: ...
def DN(self, U: float, N: int) -> gp_Vec2d: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EndPoint(self) -> gp_Pnt2d: ...
def FirstParameter(self) -> float: ...
def IsCN(self, N: int) -> bool: ...
diff --git a/src/SWIG_files/wrapper/Geom2dAPI.i b/src/SWIG_files/wrapper/Geom2dAPI.i
index 924f452e6..3a27a400c 100644
--- a/src/SWIG_files/wrapper/Geom2dAPI.i
+++ b/src/SWIG_files/wrapper/Geom2dAPI.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geom2dapi.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Geom2dAdaptor.i b/src/SWIG_files/wrapper/Geom2dAdaptor.i
index ad54c7bcb..fcbf7de68 100644
--- a/src/SWIG_files/wrapper/Geom2dAdaptor.i
+++ b/src/SWIG_files/wrapper/Geom2dAdaptor.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geom2dadaptor.htm
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Geom2dConvert.i b/src/SWIG_files/wrapper/Geom2dConvert.i
index bae301c04..7be684956 100644
--- a/src/SWIG_files/wrapper/Geom2dConvert.i
+++ b/src/SWIG_files/wrapper/Geom2dConvert.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geom2dconvert.htm
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -430,14 +431,23 @@ Returns the 2d bspline curve resulting from the approximation algorithm.
") Curve;
opencascade::handle Curve();
+ /****************** Dump ******************/
+ /**** md5 signature: d37b43e0b2386dc096d5d707876db157 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Print on the stream o information about the object.
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** HasResult ******************/
/**** md5 signature: 345d4b0f7e88f528928167976d8256d5 ****/
%feature("compactdefaultargs") HasResult;
diff --git a/src/SWIG_files/wrapper/Geom2dConvert.pyi b/src/SWIG_files/wrapper/Geom2dConvert.pyi
index 36e7585ce..74de85fd6 100644
--- a/src/SWIG_files/wrapper/Geom2dConvert.pyi
+++ b/src/SWIG_files/wrapper/Geom2dConvert.pyi
@@ -63,6 +63,7 @@ class Geom2dConvert_ApproxCurve:
@overload
def __init__(self, Curve: Adaptor2d_Curve2d, Tol2d: float, Order: GeomAbs_Shape, MaxSegments: int, MaxDegree: int) -> None: ...
def Curve(self) -> Geom2d_BSplineCurve: ...
+ def Dump(self) -> str: ...
def HasResult(self) -> bool: ...
def IsDone(self) -> bool: ...
def MaxError(self) -> float: ...
diff --git a/src/SWIG_files/wrapper/Geom2dEvaluator.i b/src/SWIG_files/wrapper/Geom2dEvaluator.i
index 75e90a900..3f0d0aba9 100644
--- a/src/SWIG_files/wrapper/Geom2dEvaluator.i
+++ b/src/SWIG_files/wrapper/Geom2dEvaluator.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geom2devaluator.h
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Geom2dGcc.i b/src/SWIG_files/wrapper/Geom2dGcc.i
index 643cadd17..9ea4d108b 100644
--- a/src/SWIG_files/wrapper/Geom2dGcc.i
+++ b/src/SWIG_files/wrapper/Geom2dGcc.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geom2dgcc.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Geom2dHatch.i b/src/SWIG_files/wrapper/Geom2dHatch.i
index 7b08a80cb..3a9cdaf54 100644
--- a/src/SWIG_files/wrapper/Geom2dHatch.i
+++ b/src/SWIG_files/wrapper/Geom2dHatch.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geom2dhatch.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Geom2dInt.i b/src/SWIG_files/wrapper/Geom2dInt.i
index ea09bfbee..aec3a8e4f 100644
--- a/src/SWIG_files/wrapper/Geom2dInt.i
+++ b/src/SWIG_files/wrapper/Geom2dInt.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geom2dint.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Geom2dLProp.i b/src/SWIG_files/wrapper/Geom2dLProp.i
index 7bbfcc9ff..31937de2e 100644
--- a/src/SWIG_files/wrapper/Geom2dLProp.i
+++ b/src/SWIG_files/wrapper/Geom2dLProp.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geom2dlprop.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GeomAPI.i b/src/SWIG_files/wrapper/GeomAPI.i
index b15cb0ec3..d8214cefc 100644
--- a/src/SWIG_files/wrapper/GeomAPI.i
+++ b/src/SWIG_files/wrapper/GeomAPI.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geomapi.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GeomAbs.i b/src/SWIG_files/wrapper/GeomAbs.i
index d0603105e..f52cf9995 100644
--- a/src/SWIG_files/wrapper/GeomAbs.i
+++ b/src/SWIG_files/wrapper/GeomAbs.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geomabs.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GeomAdaptor.i b/src/SWIG_files/wrapper/GeomAdaptor.i
index 9f14481c2..312bad572 100644
--- a/src/SWIG_files/wrapper/GeomAdaptor.i
+++ b/src/SWIG_files/wrapper/GeomAdaptor.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geomadaptor.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GeomConvert.i b/src/SWIG_files/wrapper/GeomConvert.i
index c4aa3f260..5ab9fb5bb 100644
--- a/src/SWIG_files/wrapper/GeomConvert.i
+++ b/src/SWIG_files/wrapper/GeomConvert.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geomconvert.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -488,14 +489,23 @@ Returns the bspline curve resulting from the approximation algorithm.
") Curve;
opencascade::handle Curve();
+ /****************** Dump ******************/
+ /**** md5 signature: d37b43e0b2386dc096d5d707876db157 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Print on the stream o information about the object.
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** HasResult ******************/
/**** md5 signature: 345d4b0f7e88f528928167976d8256d5 ****/
%feature("compactdefaultargs") HasResult;
@@ -599,14 +609,23 @@ Constructs a surface approximation framework defined by - the surf - the toleran
") GeomConvert_ApproxSurface;
GeomConvert_ApproxSurface(const opencascade::handle & Surf, const Standard_Real Tol3d, const GeomAbs_Shape UContinuity, const GeomAbs_Shape VContinuity, const Standard_Integer MaxDegU, const Standard_Integer MaxDegV, const Standard_Integer MaxSegments, const Standard_Integer PrecisCode);
+ /****************** Dump ******************/
+ /**** md5 signature: d37b43e0b2386dc096d5d707876db157 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+o: Standard_OStream
+
+Description
+-----------
+Prints on the stream o information on the current state of the object.
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** HasResult ******************/
/**** md5 signature: 345d4b0f7e88f528928167976d8256d5 ****/
%feature("compactdefaultargs") HasResult;
diff --git a/src/SWIG_files/wrapper/GeomConvert.pyi b/src/SWIG_files/wrapper/GeomConvert.pyi
index 6840981df..ba96923dc 100644
--- a/src/SWIG_files/wrapper/GeomConvert.pyi
+++ b/src/SWIG_files/wrapper/GeomConvert.pyi
@@ -70,6 +70,7 @@ class GeomConvert_ApproxCurve:
@overload
def __init__(self, Curve: Adaptor3d_Curve, Tol3d: float, Order: GeomAbs_Shape, MaxSegments: int, MaxDegree: int) -> None: ...
def Curve(self) -> Geom_BSplineCurve: ...
+ def Dump(self) -> str: ...
def HasResult(self) -> bool: ...
def IsDone(self) -> bool: ...
def MaxError(self) -> float: ...
@@ -79,6 +80,7 @@ class GeomConvert_ApproxSurface:
def __init__(self, Surf: Geom_Surface, Tol3d: float, UContinuity: GeomAbs_Shape, VContinuity: GeomAbs_Shape, MaxDegU: int, MaxDegV: int, MaxSegments: int, PrecisCode: int) -> None: ...
@overload
def __init__(self, Surf: Adaptor3d_Surface, Tol3d: float, UContinuity: GeomAbs_Shape, VContinuity: GeomAbs_Shape, MaxDegU: int, MaxDegV: int, MaxSegments: int, PrecisCode: int) -> None: ...
+ def Dump(self) -> str: ...
def HasResult(self) -> bool: ...
def IsDone(self) -> bool: ...
def MaxError(self) -> float: ...
diff --git a/src/SWIG_files/wrapper/GeomEvaluator.i b/src/SWIG_files/wrapper/GeomEvaluator.i
index e98e3cb51..75c70cd46 100644
--- a/src/SWIG_files/wrapper/GeomEvaluator.i
+++ b/src/SWIG_files/wrapper/GeomEvaluator.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geomevaluator.htm
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GeomFill.i b/src/SWIG_files/wrapper/GeomFill.i
index 6964212c7..d2211b073 100644
--- a/src/SWIG_files/wrapper/GeomFill.i
+++ b/src/SWIG_files/wrapper/GeomFill.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geomfill.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GeomInt.i b/src/SWIG_files/wrapper/GeomInt.i
index 932f3cbc5..28651aea6 100644
--- a/src/SWIG_files/wrapper/GeomInt.i
+++ b/src/SWIG_files/wrapper/GeomInt.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geomint.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GeomLProp.i b/src/SWIG_files/wrapper/GeomLProp.i
index a120ab4aa..29535c011 100644
--- a/src/SWIG_files/wrapper/GeomLProp.i
+++ b/src/SWIG_files/wrapper/GeomLProp.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geomlprop.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GeomLib.i b/src/SWIG_files/wrapper/GeomLib.i
index 510e0cb40..31e6205af 100644
--- a/src/SWIG_files/wrapper/GeomLib.i
+++ b/src/SWIG_files/wrapper/GeomLib.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geomlib.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GeomPlate.i b/src/SWIG_files/wrapper/GeomPlate.i
index 6bf325dcd..e325e9c9d 100644
--- a/src/SWIG_files/wrapper/GeomPlate.i
+++ b/src/SWIG_files/wrapper/GeomPlate.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geomplate.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GeomProjLib.i b/src/SWIG_files/wrapper/GeomProjLib.i
index 096f2e0fe..2b79fa1aa 100644
--- a/src/SWIG_files/wrapper/GeomProjLib.i
+++ b/src/SWIG_files/wrapper/GeomProjLib.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geomprojlib.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GeomToStep.i b/src/SWIG_files/wrapper/GeomToStep.i
index 3bd741095..d35967b56 100644
--- a/src/SWIG_files/wrapper/GeomToStep.i
+++ b/src/SWIG_files/wrapper/GeomToStep.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geomtostep.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/GeomTools.i b/src/SWIG_files/wrapper/GeomTools.i
index a07b237bb..a39dab808 100644
--- a/src/SWIG_files/wrapper/GeomTools.i
+++ b/src/SWIG_files/wrapper/GeomTools.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geomtools.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -44,6 +45,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geomtools.html"
#include
#include
#include
+#include
#include
#include
#include
@@ -55,6 +57,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_geomtools.html"
%import NCollection.i
%import Geom.i
%import Geom2d.i
+%import Message.i
%pythoncode {
from enum import IntEnum
@@ -85,6 +88,78 @@ from OCC.Core.Exception import *
%rename(geomtools) GeomTools;
class GeomTools {
public:
+ /****************** Dump ******************/
+ /**** md5 signature: 3a6cd44b2ef16268d7f58b9b7270cde3 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+S: Geom_Surface
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+A set of curves from geom2d. dumps the surface on the stream.
+") Dump;
+ static void Dump(const opencascade::handle & S, std::ostream &OutValue);
+
+ /****************** Dump ******************/
+ /**** md5 signature: 20c6add2ce10d173c8b9bb0b25454934 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+C: Geom_Curve
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Dumps the curve on the stream.
+") Dump;
+ static void Dump(const opencascade::handle & C, std::ostream &OutValue);
+
+ /****************** Dump ******************/
+ /**** md5 signature: 9175efaa435a7d1386eb4799ecf3c40c ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+C: Geom2d_Curve
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Dumps the curve on the stream.
+") Dump;
+ static void Dump(const opencascade::handle & C, std::ostream &OutValue);
+
+ /****************** GetReal ******************/
+ /**** md5 signature: c50fd53b89ec2e186f253d0a770a36c5 ****/
+ %feature("compactdefaultargs") GetReal;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+
+Return
+-------
+theValue: float
+
+Description
+-----------
+Reads the standard_real value from the stream. zero is read in case of error.
+") GetReal;
+ static void GetReal(std::istream & IS, Standard_Real &OutValue);
+
/****************** GetUndefinedTypeHandler ******************/
/**** md5 signature: 4feeff4a1f6ab5a12fb2effedf9bc1c3 ****/
%feature("compactdefaultargs") GetUndefinedTypeHandler;
@@ -98,6 +173,63 @@ No available documentation.
") GetUndefinedTypeHandler;
static opencascade::handle GetUndefinedTypeHandler();
+ /****************** Read ******************/
+ /**** md5 signature: 191d80cccc353bbf07985fe0caac76a3 ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+S: Geom_Surface
+IS: str
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the surface from the stream.
+") Read;
+ static void Read(opencascade::handle & S, std::istream & IS);
+
+ /****************** Read ******************/
+ /**** md5 signature: 43eb96c4a0f249b2667438b2ff88caea ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+C: Geom_Curve
+IS: str
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the curve from the stream.
+") Read;
+ static void Read(opencascade::handle & C, std::istream & IS);
+
+ /****************** Read ******************/
+ /**** md5 signature: 79ef9bb82a3316be119a2083f299bda0 ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+C: Geom2d_Curve
+IS: str
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the curve from the stream.
+") Read;
+ static void Read(opencascade::handle & C, std::istream & IS);
+
/****************** SetUndefinedTypeHandler ******************/
/**** md5 signature: 924bb9ac20d7bc97a8eee36d4f9f3c0b ****/
%feature("compactdefaultargs") SetUndefinedTypeHandler;
@@ -116,6 +248,60 @@ No available documentation.
") SetUndefinedTypeHandler;
static void SetUndefinedTypeHandler(const opencascade::handle & aHandler);
+ /****************** Write ******************/
+ /**** md5 signature: b224a56a31c778e86a088ef67369cbeb ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+S: Geom_Surface
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the surface on the stream.
+") Write;
+ static void Write(const opencascade::handle & S, std::ostream &OutValue);
+
+ /****************** Write ******************/
+ /**** md5 signature: 5fef400262c9232ed45a679c8f37278e ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+C: Geom_Curve
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the curve on the stream.
+") Write;
+ static void Write(const opencascade::handle & C, std::ostream &OutValue);
+
+ /****************** Write ******************/
+ /**** md5 signature: 1496e488409705f4e06b0e25cc3dde78 ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+C: Geom2d_Curve
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the curve on the stream.
+") Write;
+ static void Write(const opencascade::handle & C, std::ostream &OutValue);
+
};
@@ -192,14 +378,23 @@ Returns the curve of index .
") Curve2d;
opencascade::handle Curve2d(const Standard_Integer I);
+ /****************** Dump ******************/
+ /**** md5 signature: e60d722f65a7811be636699da7600e78 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Dumps the content of me on the stream .
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** Index ******************/
/**** md5 signature: e1559320ddf80ce0263d324c781a3407 ****/
%feature("compactdefaultargs") Index;
@@ -218,28 +413,80 @@ Returns the index of .
") Index;
Standard_Integer Index(const opencascade::handle & C);
+ /****************** PrintCurve2d ******************/
+ /**** md5 signature: ffcee85cd663bb79253e2d08e26c9b19 ****/
+ %feature("compactdefaultargs") PrintCurve2d;
+ %feature("autodoc", "
+Parameters
+----------
+C: Geom2d_Curve
+compact: bool (optional, default to Standard_False)
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Dumps the curve on the stream, if compact is true use the compact format that can be read back.
+") PrintCurve2d;
+ static void PrintCurve2d(const opencascade::handle & C, std::ostream &OutValue, const Standard_Boolean compact = Standard_False);
+
+ /****************** Read ******************/
+ /**** md5 signature: e5ce096318e6663d7e9f744e8d66b70b ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the content of me from the stream . me is first cleared.
+") Read;
+ void Read(std::istream & IS, const Message_ProgressRange & theProgress = Message_ProgressRange());
+
+ /****************** ReadCurve2d ******************/
+ /**** md5 signature: 5d3b82b1ffef248fe3d83a98f1b80a19 ****/
+ %feature("compactdefaultargs") ReadCurve2d;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+
+Return
+-------
+opencascade::handle
+
+Description
+-----------
+Reads the curve from the stream. the curve is assumed to have been written with the print method (compact = true).
+") ReadCurve2d;
+ static opencascade::handle ReadCurve2d(std::istream & IS);
+
+ /****************** Write ******************/
+ /**** md5 signature: 6a95f1af9efa3b2eec48861a606241ee ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the content of me on the stream in a format that can be read back by read.
+") Write;
+ void Write(std::ostream &OutValue, const Message_ProgressRange & theProgress = Message_ProgressRange());
- %feature("autodoc", "1");
- %extend{
- void ReadFromString(std::string src) {
- std::stringstream s(src);
- self->Read(s);}
- };
-
- %feature("autodoc", "1");
- %extend{
- void ReadCurve2dFromString(std::string src) {
- std::stringstream s(src);
- self->ReadCurve2d(s);}
- };
-
- %feature("autodoc", "1");
- %extend{
- std::string WriteToString() {
- std::stringstream s;
- self->Write(s);
- return s.str();}
- };
};
@@ -316,14 +563,23 @@ Returns the curve of index .
") Curve;
opencascade::handle Curve(const Standard_Integer I);
+ /****************** Dump ******************/
+ /**** md5 signature: e60d722f65a7811be636699da7600e78 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Dumps the content of me on the stream .
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** Index ******************/
/**** md5 signature: c53cbf4d0efdfb90843e67e9b32c5252 ****/
%feature("compactdefaultargs") Index;
@@ -342,28 +598,80 @@ Returns the index of .
") Index;
Standard_Integer Index(const opencascade::handle & C);
+ /****************** PrintCurve ******************/
+ /**** md5 signature: 9cb5308983a4ee0a89defb9c26e1cdb3 ****/
+ %feature("compactdefaultargs") PrintCurve;
+ %feature("autodoc", "
+Parameters
+----------
+C: Geom_Curve
+compact: bool (optional, default to Standard_False)
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Dumps the curve on the stream, if compact is true use the compact format that can be read back.
+") PrintCurve;
+ static void PrintCurve(const opencascade::handle & C, std::ostream &OutValue, const Standard_Boolean compact = Standard_False);
+
+ /****************** Read ******************/
+ /**** md5 signature: e5ce096318e6663d7e9f744e8d66b70b ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
+
+Description
+-----------
+Reads the content of me from the stream . me is first cleared.
+") Read;
+ void Read(std::istream & IS, const Message_ProgressRange & theProgress = Message_ProgressRange());
+
+ /****************** ReadCurve ******************/
+ /**** md5 signature: 7beb4c6e38ccc7af597e9d8bc17c7088 ****/
+ %feature("compactdefaultargs") ReadCurve;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+
+Return
+-------
+opencascade::handle
+
+Description
+-----------
+Reads the curve from the stream. the curve is assumed to have been written with the print method (compact = true).
+") ReadCurve;
+ static opencascade::handle ReadCurve(std::istream & IS);
+
+ /****************** Write ******************/
+ /**** md5 signature: 6a95f1af9efa3b2eec48861a606241ee ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the content of me on the stream in a format that can be read back by read.
+") Write;
+ void Write(std::ostream &OutValue, const Message_ProgressRange & theProgress = Message_ProgressRange());
- %feature("autodoc", "1");
- %extend{
- void ReadFromString(std::string src) {
- std::stringstream s(src);
- self->Read(s);}
- };
-
- %feature("autodoc", "1");
- %extend{
- void ReadCurveFromString(std::string src) {
- std::stringstream s(src);
- self->ReadCurve(s);}
- };
-
- %feature("autodoc", "1");
- %extend{
- std::string WriteToString() {
- std::stringstream s;
- self->Write(s);
- return s.str();}
- };
};
@@ -422,14 +730,23 @@ Clears the content of the set.
") Clear;
void Clear();
+ /****************** Dump ******************/
+ /**** md5 signature: e60d722f65a7811be636699da7600e78 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Dumps the content of me on the stream .
+") Dump;
+ void Dump(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string DumpToString() {
- std::stringstream s;
- self->Dump(s);
- return s.str();}
- };
/****************** Index ******************/
/**** md5 signature: 7fc50802d17ebd7c660284e6560fb7f6 ****/
%feature("compactdefaultargs") Index;
@@ -448,20 +765,62 @@ Returns the index of .
") Index;
Standard_Integer Index(const opencascade::handle & S);
+ /****************** PrintSurface ******************/
+ /**** md5 signature: f03cd58b0fc54c8e16b1b9c3619b768f ****/
+ %feature("compactdefaultargs") PrintSurface;
+ %feature("autodoc", "
+Parameters
+----------
+S: Geom_Surface
+compact: bool (optional, default to Standard_False)
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Dumps the surface on the stream, if compact is true use the compact format that can be read back.
+") PrintSurface;
+ static void PrintSurface(const opencascade::handle & S, std::ostream &OutValue, const Standard_Boolean compact = Standard_False);
+
+ /****************** Read ******************/
+ /**** md5 signature: e5ce096318e6663d7e9f744e8d66b70b ****/
+ %feature("compactdefaultargs") Read;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+None
- %feature("autodoc", "1");
- %extend{
- void ReadFromString(std::string src) {
- std::stringstream s(src);
- self->Read(s);}
- };
+Description
+-----------
+Reads the content of me from the stream . me is first cleared.
+") Read;
+ void Read(std::istream & IS, const Message_ProgressRange & theProgress = Message_ProgressRange());
+
+ /****************** ReadSurface ******************/
+ /**** md5 signature: c678c8ab6d4fb0ee948ec3e0b84c9046 ****/
+ %feature("compactdefaultargs") ReadSurface;
+ %feature("autodoc", "
+Parameters
+----------
+IS: str
+
+Return
+-------
+opencascade::handle
+
+Description
+-----------
+Reads the surface from the stream. the surface is assumed to have been written with the print method (compact = true).
+") ReadSurface;
+ static opencascade::handle ReadSurface(std::istream & IS);
- %feature("autodoc", "1");
- %extend{
- void ReadSurfaceFromString(std::string src) {
- std::stringstream s(src);
- self->ReadSurface(s);}
- };
/****************** Surface ******************/
/**** md5 signature: f08a9f2a886e0a3933ae15a38f9b8dda ****/
%feature("compactdefaultargs") Surface;
@@ -480,14 +839,24 @@ Returns the surface of index .
") Surface;
opencascade::handle Surface(const Standard_Integer I);
+ /****************** Write ******************/
+ /**** md5 signature: 6a95f1af9efa3b2eec48861a606241ee ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+theProgress: Message_ProgressRange (optional, default to Message_ProgressRange())
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+Writes the content of me on the stream in a format that can be read back by read.
+") Write;
+ void Write(std::ostream &OutValue, const Message_ProgressRange & theProgress = Message_ProgressRange());
- %feature("autodoc", "1");
- %extend{
- std::string WriteToString() {
- std::stringstream s;
- self->Write(s);
- return s.str();}
- };
};
@@ -515,6 +884,123 @@ No available documentation.
") GeomTools_UndefinedTypeHandler;
GeomTools_UndefinedTypeHandler();
+ /****************** PrintCurve ******************/
+ /**** md5 signature: 9229a0d70724577ea967874667e632bc ****/
+ %feature("compactdefaultargs") PrintCurve;
+ %feature("autodoc", "
+Parameters
+----------
+C: Geom_Curve
+compact: bool (optional, default to Standard_False)
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+No available documentation.
+") PrintCurve;
+ virtual void PrintCurve(const opencascade::handle & C, std::ostream &OutValue, const Standard_Boolean compact = Standard_False);
+
+ /****************** PrintCurve2d ******************/
+ /**** md5 signature: 7e257c476bf0d68e904e2daed78d6479 ****/
+ %feature("compactdefaultargs") PrintCurve2d;
+ %feature("autodoc", "
+Parameters
+----------
+C: Geom2d_Curve
+compact: bool (optional, default to Standard_False)
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+No available documentation.
+") PrintCurve2d;
+ virtual void PrintCurve2d(const opencascade::handle & C, std::ostream &OutValue, const Standard_Boolean compact = Standard_False);
+
+ /****************** PrintSurface ******************/
+ /**** md5 signature: 6b4c01c323e1d0fad05dea4d7e15f780 ****/
+ %feature("compactdefaultargs") PrintSurface;
+ %feature("autodoc", "
+Parameters
+----------
+S: Geom_Surface
+compact: bool (optional, default to Standard_False)
+
+Return
+-------
+OS: Standard_OStream
+
+Description
+-----------
+No available documentation.
+") PrintSurface;
+ virtual void PrintSurface(const opencascade::handle & S, std::ostream &OutValue, const Standard_Boolean compact = Standard_False);
+
+ /****************** ReadCurve ******************/
+ /**** md5 signature: ec4aea4a5365adad6fc1b3ae7538554c ****/
+ %feature("compactdefaultargs") ReadCurve;
+ %feature("autodoc", "
+Parameters
+----------
+ctype: int
+IS: str
+C: Geom_Curve
+
+Return
+-------
+Standard_IStream
+
+Description
+-----------
+No available documentation.
+") ReadCurve;
+ virtual Standard_IStream & ReadCurve(const Standard_Integer ctype, std::istream & IS, opencascade::handle & C);
+
+ /****************** ReadCurve2d ******************/
+ /**** md5 signature: ad483c9803fa37d94a5a9dad7bf1987d ****/
+ %feature("compactdefaultargs") ReadCurve2d;
+ %feature("autodoc", "
+Parameters
+----------
+ctype: int
+IS: str
+C: Geom2d_Curve
+
+Return
+-------
+Standard_IStream
+
+Description
+-----------
+No available documentation.
+") ReadCurve2d;
+ virtual Standard_IStream & ReadCurve2d(const Standard_Integer ctype, std::istream & IS, opencascade::handle & C);
+
+ /****************** ReadSurface ******************/
+ /**** md5 signature: acd0062fe378bd76a7b522c9793520ec ****/
+ %feature("compactdefaultargs") ReadSurface;
+ %feature("autodoc", "
+Parameters
+----------
+ctype: int
+IS: str
+S: Geom_Surface
+
+Return
+-------
+Standard_IStream
+
+Description
+-----------
+No available documentation.
+") ReadSurface;
+ virtual Standard_IStream & ReadSurface(const Standard_Integer ctype, std::istream & IS, opencascade::handle & S);
+
};
@@ -534,12 +1020,76 @@ No available documentation.
}
/* deprecated methods */
%pythoncode {
+@deprecated
+def geomtools_Dump(*args):
+ return geomtools.Dump(*args)
+
+@deprecated
+def geomtools_Dump(*args):
+ return geomtools.Dump(*args)
+
+@deprecated
+def geomtools_Dump(*args):
+ return geomtools.Dump(*args)
+
+@deprecated
+def geomtools_GetReal(*args):
+ return geomtools.GetReal(*args)
+
@deprecated
def geomtools_GetUndefinedTypeHandler(*args):
return geomtools.GetUndefinedTypeHandler(*args)
+@deprecated
+def geomtools_Read(*args):
+ return geomtools.Read(*args)
+
+@deprecated
+def geomtools_Read(*args):
+ return geomtools.Read(*args)
+
+@deprecated
+def geomtools_Read(*args):
+ return geomtools.Read(*args)
+
@deprecated
def geomtools_SetUndefinedTypeHandler(*args):
return geomtools.SetUndefinedTypeHandler(*args)
+@deprecated
+def geomtools_Write(*args):
+ return geomtools.Write(*args)
+
+@deprecated
+def geomtools_Write(*args):
+ return geomtools.Write(*args)
+
+@deprecated
+def geomtools_Write(*args):
+ return geomtools.Write(*args)
+
+@deprecated
+def GeomTools_Curve2dSet_PrintCurve2d(*args):
+ return GeomTools_Curve2dSet.PrintCurve2d(*args)
+
+@deprecated
+def GeomTools_Curve2dSet_ReadCurve2d(*args):
+ return GeomTools_Curve2dSet.ReadCurve2d(*args)
+
+@deprecated
+def GeomTools_CurveSet_PrintCurve(*args):
+ return GeomTools_CurveSet.PrintCurve(*args)
+
+@deprecated
+def GeomTools_CurveSet_ReadCurve(*args):
+ return GeomTools_CurveSet.ReadCurve(*args)
+
+@deprecated
+def GeomTools_SurfaceSet_PrintSurface(*args):
+ return GeomTools_SurfaceSet.PrintSurface(*args)
+
+@deprecated
+def GeomTools_SurfaceSet_ReadSurface(*args):
+ return GeomTools_SurfaceSet.ReadSurface(*args)
+
}
diff --git a/src/SWIG_files/wrapper/GeomTools.pyi b/src/SWIG_files/wrapper/GeomTools.pyi
index 9caaa13e2..949f30db1 100644
--- a/src/SWIG_files/wrapper/GeomTools.pyi
+++ b/src/SWIG_files/wrapper/GeomTools.pyi
@@ -5,37 +5,94 @@ from OCC.Core.Standard import *
from OCC.Core.NCollection import *
from OCC.Core.Geom import *
from OCC.Core.Geom2d import *
+from OCC.Core.Message import *
class geomtools:
+ @overload
+ @staticmethod
+ def Dump(S: Geom_Surface) -> str: ...
+ @overload
+ @staticmethod
+ def Dump(C: Geom_Curve) -> str: ...
+ @overload
+ @staticmethod
+ def Dump(C: Geom2d_Curve) -> str: ...
+ @staticmethod
+ def GetReal(IS: str) -> float: ...
@staticmethod
def GetUndefinedTypeHandler() -> GeomTools_UndefinedTypeHandler: ...
+ @overload
+ @staticmethod
+ def Read(S: Geom_Surface, IS: str) -> None: ...
+ @overload
+ @staticmethod
+ def Read(C: Geom_Curve, IS: str) -> None: ...
+ @overload
+ @staticmethod
+ def Read(C: Geom2d_Curve, IS: str) -> None: ...
@staticmethod
def SetUndefinedTypeHandler(aHandler: GeomTools_UndefinedTypeHandler) -> None: ...
+ @overload
+ @staticmethod
+ def Write(S: Geom_Surface) -> str: ...
+ @overload
+ @staticmethod
+ def Write(C: Geom_Curve) -> str: ...
+ @overload
+ @staticmethod
+ def Write(C: Geom2d_Curve) -> str: ...
class GeomTools_Curve2dSet:
def __init__(self) -> None: ...
def Add(self, C: Geom2d_Curve) -> int: ...
def Clear(self) -> None: ...
def Curve2d(self, I: int) -> Geom2d_Curve: ...
+ def Dump(self) -> str: ...
def Index(self, C: Geom2d_Curve) -> int: ...
+ @staticmethod
+ def PrintCurve2d(C: Geom2d_Curve, compact: Optional[bool] = False) -> str: ...
+ def Read(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ @staticmethod
+ def ReadCurve2d(IS: str) -> Geom2d_Curve: ...
+ def Write(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
class GeomTools_CurveSet:
def __init__(self) -> None: ...
def Add(self, C: Geom_Curve) -> int: ...
def Clear(self) -> None: ...
def Curve(self, I: int) -> Geom_Curve: ...
+ def Dump(self) -> str: ...
def Index(self, C: Geom_Curve) -> int: ...
+ @staticmethod
+ def PrintCurve(C: Geom_Curve, compact: Optional[bool] = False) -> str: ...
+ def Read(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ @staticmethod
+ def ReadCurve(IS: str) -> Geom_Curve: ...
+ def Write(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
class GeomTools_SurfaceSet:
def __init__(self) -> None: ...
def Add(self, S: Geom_Surface) -> int: ...
def Clear(self) -> None: ...
+ def Dump(self) -> str: ...
def Index(self, S: Geom_Surface) -> int: ...
+ @staticmethod
+ def PrintSurface(S: Geom_Surface, compact: Optional[bool] = False) -> str: ...
+ def Read(self, IS: str, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> None: ...
+ @staticmethod
+ def ReadSurface(IS: str) -> Geom_Surface: ...
def Surface(self, I: int) -> Geom_Surface: ...
+ def Write(self, theProgress: Optional[Message_ProgressRange] = Message_ProgressRange()) -> str: ...
class GeomTools_UndefinedTypeHandler(Standard_Transient):
def __init__(self) -> None: ...
+ def PrintCurve(self, C: Geom_Curve, compact: Optional[bool] = False) -> str: ...
+ def PrintCurve2d(self, C: Geom2d_Curve, compact: Optional[bool] = False) -> str: ...
+ def PrintSurface(self, S: Geom_Surface, compact: Optional[bool] = False) -> str: ...
+ def ReadCurve(self, ctype: int, IS: str, C: Geom_Curve) -> Standard_IStream: ...
+ def ReadCurve2d(self, ctype: int, IS: str, C: Geom2d_Curve) -> Standard_IStream: ...
+ def ReadSurface(self, ctype: int, IS: str, S: Geom_Surface) -> Standard_IStream: ...
# harray1 classes
# harray2 classes
diff --git a/src/SWIG_files/wrapper/Graphic3d.i b/src/SWIG_files/wrapper/Graphic3d.i
index 8e0e8b661..817832cf1 100644
--- a/src/SWIG_files/wrapper/Graphic3d.i
+++ b/src/SWIG_files/wrapper/Graphic3d.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_graphic3d.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -3487,10 +3488,22 @@ Returns true if material properties should be distinguished for back and front f
bool Distinguish();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -5037,10 +5050,22 @@ Creates bsdf describing transparent object. transparent bsdf models simple trans
static Graphic3d_BSDF CreateTransparent(const Graphic3d_Vec3 & theWeight, const Graphic3d_Vec3 & theAbsorptionColor, const Standard_ShortReal theAbsorptionCoeff);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -5109,10 +5134,22 @@ Empty constructor.
Graphic3d_BoundBuffer(const opencascade::handle & theAlloc);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -5532,10 +5569,22 @@ Returns location of positional/spot/directional light, which is the same as retu
const gp_Pnt DisplayPosition();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -6234,10 +6283,22 @@ Disconnect other structure to this one.
virtual void Disconnect(Graphic3d_CStructure & theStructure);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -7017,10 +7078,22 @@ Get distance of eye from camera center. return the distance.
Standard_Real Distance();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -8247,10 +8320,22 @@ Return the copy cropped by total size.
Graphic3d_CameraTile Cropped();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -8495,10 +8580,22 @@ Clone plane. virtual method to simplify copying procedure if plane class is rede
virtual opencascade::handle Clone();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -10101,10 +10198,22 @@ Creates schlick's approximation of fresnel factor.
static Graphic3d_Fresnel CreateSchlick(const Graphic3d_Vec3 & theSpecularColor);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -10702,10 +10811,22 @@ No available documentation.
virtual Standard_ShortReal DefaultTextHeight();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -11319,10 +11440,22 @@ Suppress all primitives and attributes of . to clear group without update
virtual void Clear(const Standard_Boolean theUpdateStructureMgr = Standard_True);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -11792,10 +11925,22 @@ Creates a new predefined hatch style with the given id in aspect_hatchstyle enum
Graphic3d_HatchStyle(const Aspect_HatchStyle theType);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -11943,10 +12088,22 @@ Returns set of transform persistent graphic3d_cstructures for building bvh tree.
const Graphic3d_BvhCStructureSetTrsfPers & CullableTrsfPersStructuresBVH();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -12804,10 +12961,22 @@ Returns the diffuse color of the surface.
const Quantity_Color & DiffuseColor();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -13495,10 +13664,22 @@ Returns albedo color with alpha component of material.
const Quantity_ColorRGBA & Color();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -13863,10 +14044,22 @@ Empty constructor.
Graphic3d_PolygonOffset();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -13965,10 +14158,22 @@ Returns display mode, 0 by default. -1 means undefined (main display mode of pre
Standard_Integer DisplayMode();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -14312,10 +14517,22 @@ Creates default rendering parameters.
Graphic3d_RenderingParams();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -14393,10 +14610,22 @@ Clear the items out.
void Clear();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -15956,10 +16185,22 @@ Returns the current display priority for this structure.
Graphic3d_DisplayPriority DisplayPriority();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -16985,10 +17226,22 @@ Returns the set of structures displayed in visualiser .
void DisplayedStructures(Graphic3d_MapOfStructure & SG);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -18445,10 +18698,22 @@ Return the corner for 2d/trihedron transformation persistence.
Aspect_TypeOfTriedronPosition Corner2d();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -18973,10 +19238,22 @@ Returns the distance between two points.
Standard_ShortReal Distance(const Graphic3d_Vertex & theOther);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -19088,10 +19365,22 @@ Empty constructor.
Graphic3d_ViewAffinity();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -19201,10 +19490,22 @@ Constructor for custom projector type. @param theprojectionstate [in] the projec
Graphic3d_WorldViewProjState(const Standard_Size theProjectionState, const Standard_Size theWorldViewState, const Standard_Transient * theCamera = NULL);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -19448,10 +19749,22 @@ Return the size to discard drawing of small objects; by default it is infinite (
Standard_Real CullingSize();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -20944,10 +21257,22 @@ Return display type.
Aspect_TypeOfDisplayText DisplayType();
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
@@ -21746,10 +22071,22 @@ Returns the set of structures displayed in this view.
void DisplayedStructures(Graphic3d_MapOfStructure & theStructures);
- /****************** DumpJsonToString ******************/
- %feature("autodoc", "Json string serializer.");
+ /****************** DumpJson ******************/
+ %feature("autodoc", "
+Parameters
+----------
+depth: int, default=-1
+
+Return
+-------
+str
+
+Description
+-----------
+Dump the object to JSON string.
+") DumpJson;
%extend{
- std::string DumpJsonToString(int depth=-1) {
+ std::string DumpJson(int depth=-1) {
std::stringstream s;
self->DumpJson(s, depth);
return "{" + s.str() + "}" ;}
diff --git a/src/SWIG_files/wrapper/Graphic3d.pyi b/src/SWIG_files/wrapper/Graphic3d.pyi
index 8fde1c305..ce939abb0 100644
--- a/src/SWIG_files/wrapper/Graphic3d.pyi
+++ b/src/SWIG_files/wrapper/Graphic3d.pyi
@@ -1305,6 +1305,7 @@ class Graphic3d_Aspects(Standard_Transient):
@staticmethod
def DefaultLinePatternForType(theType: Aspect_TypeOfLine) -> False: ...
def Distinguish(self) -> bool: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EdgeColor(self) -> Quantity_Color: ...
def EdgeColorRGBA(self) -> Quantity_ColorRGBA: ...
def EdgeLineType(self) -> Aspect_TypeOfLine: ...
@@ -1421,10 +1422,12 @@ class Graphic3d_BSDF:
def CreateMetallicRoughness(thePbr: Graphic3d_PBRMaterial) -> Graphic3d_BSDF: ...
@staticmethod
def CreateTransparent(theWeight: Graphic3d_Vec3, theAbsorptionColor: Graphic3d_Vec3, theAbsorptionCoeff: float) -> Graphic3d_BSDF: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Normalize(self) -> None: ...
class Graphic3d_BoundBuffer(NCollection_Buffer):
def __init__(self, theAlloc: NCollection_BaseAllocator) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Init(self, theNbBounds: int, theHasColors: bool) -> bool: ...
class Graphic3d_BufferRange:
@@ -1457,6 +1460,7 @@ class Graphic3d_CLight(Standard_Transient):
@overload
def Direction(self) -> Tuple[float, float, float]: ...
def DisplayPosition(self) -> gp_Pnt: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def GetId(self) -> str: ...
def HasRange(self) -> bool: ...
def Headlight(self) -> bool: ...
@@ -1508,6 +1512,7 @@ class Graphic3d_CStructure(Standard_Transient):
def ClipPlanes(self) -> Graphic3d_SequenceOfHClipPlane: ...
def Connect(self, theStructure: Graphic3d_CStructure) -> None: ...
def Disconnect(self, theStructure: Graphic3d_CStructure) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def GraphicDriver(self) -> Graphic3d_GraphicDriver: ...
def GraphicHighlight(self, theStyle: Graphic3d_PresentationAttributes) -> None: ...
def GraphicUnhighlight(self) -> None: ...
@@ -1559,6 +1564,7 @@ class Graphic3d_Camera(Standard_Transient):
def CopyOrientationData(self, theOtherCamera: Graphic3d_Camera) -> None: ...
def Direction(self) -> gp_Dir: ...
def Distance(self) -> float: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Eye(self) -> gp_Pnt: ...
def FOV2d(self) -> float: ...
def FOVx(self) -> float: ...
@@ -1638,6 +1644,7 @@ class Graphic3d_Camera(Standard_Transient):
class Graphic3d_CameraTile:
def __init__(self) -> None: ...
def Cropped(self) -> Graphic3d_CameraTile: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsValid(self) -> bool: ...
def OffsetLowerLeft(self) -> Graphic3d_Vec2i: ...
@@ -1659,6 +1666,7 @@ class Graphic3d_ClipPlane(Standard_Transient):
def ChainNextPlane(self) -> Graphic3d_ClipPlane: ...
def ChainPreviousPlane(self) -> Graphic3d_ClipPlane: ...
def Clone(self) -> Graphic3d_ClipPlane: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def GetEquation(self) -> Graphic3d_Vec4d: ...
def GetId(self) -> str: ...
def IsBoxFullInHalfspace(self, theBox: Graphic3d_BndBox3d) -> bool: ...
@@ -1769,6 +1777,7 @@ class Graphic3d_Fresnel:
def CreateDielectric(theRefractionIndex: float) -> Graphic3d_Fresnel: ...
@staticmethod
def CreateSchlick(theSpecularColor: Graphic3d_Vec3) -> Graphic3d_Fresnel: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def FresnelType(self) -> Graphic3d_FresnelModel: ...
def Serialize(self) -> Graphic3d_Vec4: ...
@@ -1805,6 +1814,7 @@ class Graphic3d_GraphicDriver(Standard_Transient):
def CreateStructure(self, theManager: Graphic3d_StructureManager) -> Graphic3d_CStructure: ...
def CreateView(self, theMgr: Graphic3d_StructureManager) -> Graphic3d_CView: ...
def DefaultTextHeight(self) -> float: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EnableVBO(self, status: bool) -> None: ...
def GetDisplayConnection(self) -> Aspect_DisplayConnection: ...
def InquireLightLimit(self) -> int: ...
@@ -1849,6 +1859,7 @@ class Graphic3d_Group(Standard_Transient):
def BoundingBox(self) -> Graphic3d_BndBox4f: ...
def ChangeBoundingBox(self) -> Graphic3d_BndBox4f: ...
def Clear(self, theUpdateStructureMgr: Optional[bool] = True) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsClosed(self) -> bool: ...
def IsDeleted(self) -> bool: ...
def IsEmpty(self) -> bool: ...
@@ -1883,6 +1894,7 @@ class Graphic3d_HatchStyle(Standard_Transient):
def __init__(self, thePattern: Image_PixMap) -> None: ...
@overload
def __init__(self, theType: Aspect_HatchStyle) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def HatchType(self) -> int: ...
def Pattern(self) -> str: ...
@@ -1893,6 +1905,7 @@ class Graphic3d_Layer(Standard_Transient):
def BoundingBox(self, theViewId: int, theCamera: Graphic3d_Camera, theWindowWidth: int, theWindowHeight: int, theToIncludeAuxiliary: bool) -> Bnd_Box: ...
def CullableStructuresBVH(self) -> Graphic3d_BvhCStructureSet: ...
def CullableTrsfPersStructuresBVH(self) -> Graphic3d_BvhCStructureSetTrsfPers: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def InvalidateBVHData(self) -> None: ...
def InvalidateBoundingBox(self) -> None: ...
def IsCulled(self) -> bool: ...
@@ -1954,6 +1967,7 @@ class Graphic3d_MaterialAspect:
def BSDF(self) -> Graphic3d_BSDF: ...
def Color(self) -> Quantity_Color: ...
def DiffuseColor(self) -> Quantity_Color: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def EmissiveColor(self) -> Quantity_Color: ...
def IncreaseShine(self, theDelta: float) -> None: ...
def IsDifferent(self, theOther: Graphic3d_MaterialAspect) -> bool: ...
@@ -2010,6 +2024,7 @@ class Graphic3d_PBRMaterial:
def __init__(self, theBSDF: Graphic3d_BSDF) -> None: ...
def Alpha(self) -> float: ...
def Color(self) -> Quantity_ColorRGBA: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Emission(self) -> Graphic3d_Vec3: ...
@staticmethod
def GenerateEnvLUT(theLUT: Image_PixMap, theNbIntegralSamples: Optional[int] = 1024) -> None: ...
@@ -2042,6 +2057,7 @@ class Graphic3d_PBRMaterial:
class Graphic3d_PolygonOffset:
def __init__(self) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
class Graphic3d_PresentationAttributes(Standard_Transient):
def __init__(self) -> None: ...
@@ -2049,6 +2065,7 @@ class Graphic3d_PresentationAttributes(Standard_Transient):
def Color(self) -> Quantity_Color: ...
def ColorRGBA(self) -> Quantity_ColorRGBA: ...
def DisplayMode(self) -> int: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Method(self) -> Aspect_TypeOfHighlightMethod: ...
def SetBasicFillAreaAspect(self, theAspect: Graphic3d_AspectFillArea3d) -> None: ...
def SetColor(self, theColor: Quantity_Color) -> None: ...
@@ -2061,12 +2078,14 @@ class Graphic3d_PresentationAttributes(Standard_Transient):
class Graphic3d_RenderingParams:
def __init__(self) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def ResolutionRatio(self) -> float: ...
class Graphic3d_SequenceOfHClipPlane(Standard_Transient):
def __init__(self) -> None: ...
def Append(self, theItem: Graphic3d_ClipPlane) -> bool: ...
def Clear(self) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def First(self) -> Graphic3d_ClipPlane: ...
def IsEmpty(self) -> bool: ...
@overload
@@ -2177,6 +2196,7 @@ class Graphic3d_Structure(Standard_Transient):
def DisconnectAll(self, AType: Graphic3d_TypeOfConnection) -> None: ...
def Display(self) -> None: ...
def DisplayPriority(self) -> Graphic3d_DisplayPriority: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Erase(self) -> None: ...
def GetZLayer(self) -> Graphic3d_ZLayerId: ...
def GraphicClear(self, WithDestruction: bool) -> None: ...
@@ -2249,6 +2269,7 @@ class Graphic3d_StructureManager(Standard_Transient):
def Disconnect(self, theMother: Graphic3d_Structure, theDaughter: Graphic3d_Structure) -> None: ...
def Display(self, theStructure: Graphic3d_Structure) -> None: ...
def DisplayedStructures(self, SG: Graphic3d_MapOfStructure) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
@overload
def Erase(self) -> None: ...
@overload
@@ -2360,6 +2381,7 @@ class Graphic3d_TransformPers(Standard_Transient):
def __init__(self, theMode: Graphic3d_TransModeFlags, theCorner: Aspect_TypeOfTriedronPosition, theOffset: Optional[Graphic3d_Vec2i] = Graphic3d_Vec2i(0,0)) -> None: ...
def AnchorPoint(self) -> gp_Pnt: ...
def Corner2d(self) -> Aspect_TypeOfTriedronPosition: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Flags(self) -> Graphic3d_TransModeFlags: ...
@overload
@staticmethod
@@ -2424,6 +2446,7 @@ class Graphic3d_Vertex:
@overload
def Coord(self) -> Tuple[float, float, float]: ...
def Distance(self, theOther: Graphic3d_Vertex) -> float: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
@overload
def SetCoord(self, theX: float, theY: float, theZ: float) -> None: ...
@overload
@@ -2434,6 +2457,7 @@ class Graphic3d_Vertex:
class Graphic3d_ViewAffinity(Standard_Transient):
def __init__(self) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def IsVisible(self, theViewId: int) -> bool: ...
@overload
def SetVisible(self, theIsVisible: bool) -> None: ...
@@ -2445,6 +2469,7 @@ class Graphic3d_WorldViewProjState:
def __init__(self) -> None: ...
@overload
def __init__(self, theProjectionState: int, theWorldViewState: int, theCamera: Optional[Standard_Transient] = None) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
@overload
def Initialize(self, theProjectionState: int, theWorldViewState: int, theCamera: Optional[Standard_Transient] = None) -> None: ...
@overload
@@ -2462,6 +2487,7 @@ class Graphic3d_ZLayerSettings:
def ChangePolygonOffset(self) -> Graphic3d_PolygonOffset: ...
def CullingDistance(self) -> float: ...
def CullingSize(self) -> float: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def HasCullingDistance(self) -> bool: ...
def HasCullingSize(self) -> bool: ...
def IsImmediate(self) -> bool: ...
@@ -2594,6 +2620,7 @@ class Graphic3d_AspectText3d(Graphic3d_Aspects):
def Color(self) -> Quantity_Color: ...
def ColorRGBA(self) -> Quantity_ColorRGBA: ...
def DisplayType(self) -> Aspect_TypeOfDisplayText: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def Font(self) -> str: ...
def GetTextAngle(self) -> float: ...
def GetTextFontAspect(self) -> False: ...
@@ -2657,6 +2684,7 @@ class Graphic3d_CView(Graphic3d_DataStructureManager):
def Deactivate(self) -> None: ...
def DiagnosticInformation(self, theDict: TColStd_IndexedDataMapOfStringString, theFlags: Graphic3d_DiagnosticInfo) -> None: ...
def DisplayedStructures(self, theStructures: Graphic3d_MapOfStructure) -> None: ...
+ def DumpJson(self, depth: Optional[int]=-1) -> str: ...
def FBO(self) -> Standard_Transient: ...
def FBOChangeViewport(self, theFbo: Standard_Transient, theWidth: int, theHeight: int) -> None: ...
def FBOCreate(self, theWidth: int, theHeight: int) -> Standard_Transient: ...
diff --git a/src/SWIG_files/wrapper/HLRAlgo.i b/src/SWIG_files/wrapper/HLRAlgo.i
index 160415688..2d5c90545 100644
--- a/src/SWIG_files/wrapper/HLRAlgo.i
+++ b/src/SWIG_files/wrapper/HLRAlgo.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_hlralgo.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/HLRAppli.i b/src/SWIG_files/wrapper/HLRAppli.i
index 6fc67e94a..c82bde679 100644
--- a/src/SWIG_files/wrapper/HLRAppli.i
+++ b/src/SWIG_files/wrapper/HLRAppli.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_hlrappli.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/HLRBRep.i b/src/SWIG_files/wrapper/HLRBRep.i
index 713ced8c7..95343bfed 100644
--- a/src/SWIG_files/wrapper/HLRBRep.i
+++ b/src/SWIG_files/wrapper/HLRBRep.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_hlrbrep.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/HLRTopoBRep.i b/src/SWIG_files/wrapper/HLRTopoBRep.i
index 66c918493..7c91569ed 100644
--- a/src/SWIG_files/wrapper/HLRTopoBRep.i
+++ b/src/SWIG_files/wrapper/HLRTopoBRep.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_hlrtopobrep.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Hatch.i b/src/SWIG_files/wrapper/Hatch.i
index aa0d8a7cf..cdb34656e 100644
--- a/src/SWIG_files/wrapper/Hatch.i
+++ b/src/SWIG_files/wrapper/Hatch.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_hatch.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/HatchGen.i b/src/SWIG_files/wrapper/HatchGen.i
index 1328a3231..448aa4bbb 100644
--- a/src/SWIG_files/wrapper/HatchGen.i
+++ b/src/SWIG_files/wrapper/HatchGen.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_hatchgen.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/HeaderSection.i b/src/SWIG_files/wrapper/HeaderSection.i
index e8f0742c0..0e31dffd5 100644
--- a/src/SWIG_files/wrapper/HeaderSection.i
+++ b/src/SWIG_files/wrapper/HeaderSection.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_headersection.htm
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/Hermit.i b/src/SWIG_files/wrapper/Hermit.i
index bd1ebed16..c25458818 100644
--- a/src/SWIG_files/wrapper/Hermit.i
+++ b/src/SWIG_files/wrapper/Hermit.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_hermit.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/IFSelect.i b/src/SWIG_files/wrapper/IFSelect.i
index 100e3cf84..21d3e5ad3 100644
--- a/src/SWIG_files/wrapper/IFSelect.i
+++ b/src/SWIG_files/wrapper/IFSelect.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_ifselect.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -2378,14 +2379,43 @@ From an edited value, returns its ... value (original one) null means that this
") OriginalValue;
opencascade::handle OriginalValue(const Standard_Integer num);
+ /****************** PrintDefs ******************/
+ /**** md5 signature: 46629d4f069d37bd12c0384fcc538c0d ****/
+ %feature("compactdefaultargs") PrintDefs;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Prints definitions, relative to the editor.
+") PrintDefs;
+ void PrintDefs(std::ostream &OutValue);
+
+ /****************** PrintValues ******************/
+ /**** md5 signature: 9580ee383589529b4c579a30e8eb8c2b ****/
+ %feature("compactdefaultargs") PrintValues;
+ %feature("autodoc", "
+Parameters
+----------
+what: int
+names: bool
+alsolist: bool (optional, default to Standard_False)
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Prints values, according to what and alsolist true: prints long names; false: prints short names < 0: prints original values (+ flag modified) > 0: prints final values (+flag modified) = 0: prints modified values (original + edited) false (d): lists are printed only as their count true: lists are printed for all their items.
+") PrintValues;
+ void PrintValues(std::ostream &OutValue, const Standard_Integer what, const Standard_Boolean names, const Standard_Boolean alsolist = Standard_False);
- %feature("autodoc", "1");
- %extend{
- std::string PrintDefsToString() {
- std::stringstream s;
- self->PrintDefs(s);
- return s.str();}
- };
/****************** RankFromNumber ******************/
/**** md5 signature: fe822a7d919e60ec0cdab5e6f2363afe ****/
%feature("compactdefaultargs") RankFromNumber;
@@ -2775,14 +2805,41 @@ Returns the count of typed values.
") NbValues;
Standard_Integer NbValues();
+ /****************** PrintDefs ******************/
+ /**** md5 signature: 5eb01ddb6757ab25c90b1081fcc7f846 ****/
+ %feature("compactdefaultargs") PrintDefs;
+ %feature("autodoc", "
+Parameters
+----------
+labels: bool (optional, default to Standard_False)
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+No available documentation.
+") PrintDefs;
+ void PrintDefs(std::ostream &OutValue, const Standard_Boolean labels = Standard_False);
+
+ /****************** PrintNames ******************/
+ /**** md5 signature: 02f5b2a426678e69e3d51e32f074a88c ****/
+ %feature("compactdefaultargs") PrintNames;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+No available documentation.
+") PrintNames;
+ void PrintNames(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string PrintNamesToString() {
- std::stringstream s;
- self->PrintNames(s);
- return s.str();}
- };
/****************** Recognize ******************/
/**** md5 signature: 8378a2193566cc16fc414dbb42c7fa11 ****/
%feature("compactdefaultargs") Recognize;
@@ -6394,22 +6451,59 @@ Returns the number of times a signature was counted, 0 if it has not been record
") NbTimes;
Standard_Integer NbTimes(Standard_CString sign);
+ /****************** PrintCount ******************/
+ /**** md5 signature: 52dc9956b3be6f0fa8745979cb86a350 ****/
+ %feature("compactdefaultargs") PrintCount;
+ %feature("autodoc", "
+Parameters
+----------
- %feature("autodoc", "1");
- %extend{
- std::string PrintCountToString() {
- std::stringstream s;
- self->PrintCount(s);
- return s.str();}
- };
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Prints the counts of items (not the list).
+") PrintCount;
+ virtual void PrintCount(std::ostream &OutValue);
+
+ /****************** PrintList ******************/
+ /**** md5 signature: bcbb5a17846c2054455e1d0575bea15a ****/
+ %feature("compactdefaultargs") PrintList;
+ %feature("autodoc", "
+Parameters
+----------
+model: Interface_InterfaceModel
+mod: IFSelect_PrintCount (optional, default to IFSelect_ListByItem)
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Prints the lists of items, if they are present (else, prints a message 'no list available') uses to determine for each entity to be listed, its number, and its specific identifier (by printlabel) gives a mode for printing: - countbyitem: just count (as printcount) - shortbyitem: minimum i.e. count plus 5 first entity numbers - shortbyitem(d) complete list of entity numbers (0: 'global') - entitiesbyitem: list of (entity number/printlabel from the model) other modes are ignored.
+") PrintList;
+ virtual void PrintList(std::ostream &OutValue, const opencascade::handle & model, const IFSelect_PrintCount mod = IFSelect_ListByItem);
+
+ /****************** PrintSum ******************/
+ /**** md5 signature: 12295d942889bf52eeb33b08fd2a6899 ****/
+ %feature("compactdefaultargs") PrintSum;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Prints a summary item which has the greatest count of entities for items which are numeric values: their count, maximum, minimum values, cumul, average.
+") PrintSum;
+ virtual void PrintSum(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string PrintSumToString() {
- std::stringstream s;
- self->PrintSum(s);
- return s.str();}
- };
/****************** SetList ******************/
/**** md5 signature: b238846d95b165f74a942ebb6e50644f ****/
%feature("compactdefaultargs") SetList;
@@ -6572,6 +6666,47 @@ Performs the copy of entities from an original model to a new one. it must also
") CopyModel;
virtual Standard_Boolean CopyModel(const opencascade::handle & original, const opencascade::handle & newmodel, const Interface_EntityIterator & list, Interface_CopyTool & TC);
+ /****************** DumpEntity ******************/
+ /**** md5 signature: f8408c5a3c33881cd6f64d4f853e5b90 ****/
+ %feature("compactdefaultargs") DumpEntity;
+ %feature("autodoc", "
+Parameters
+----------
+model: Interface_InterfaceModel
+protocol: Interface_Protocol
+entity: Standard_Transient
+level: int
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Gives the way of dumping an entity under a form comprehensive for each norm. helps to identify, number ... entities. is to be interpreted for each norm (because of the formats which can be very different).
+") DumpEntity;
+ virtual void DumpEntity(const opencascade::handle & model, const opencascade::handle & protocol, const opencascade::handle & entity, std::ostream &OutValue, const Standard_Integer level);
+
+ /****************** DumpEntity ******************/
+ /**** md5 signature: d4ac4e0fc19594eff493ccd280b9aab2 ****/
+ %feature("compactdefaultargs") DumpEntity;
+ %feature("autodoc", "
+Parameters
+----------
+model: Interface_InterfaceModel
+protocol: Interface_Protocol
+entity: Standard_Transient
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Calls deferred dumpentity with the recorded default level.
+") DumpEntity;
+ void DumpEntity(const opencascade::handle & model, const opencascade::handle & protocol, const opencascade::handle & entity, std::ostream &OutValue);
+
/****************** DumpHelp ******************/
/**** md5 signature: f61ff69745dfa047c7a47cefecb0fa1c ****/
%feature("compactdefaultargs") DumpHelp;
@@ -6635,7 +6770,7 @@ Gives the way to read a file and transfer it to a model is the resulting m
Parameters
----------
theName: str
-theIStream: std::istream
+theIStream: str
model: Interface_InterfaceModel
protocol: Interface_Protocol
@@ -7117,6 +7252,43 @@ Returns the rank of a dispatch in the shareout, or 0 if is not in the sha
") DispatchRank;
Standard_Integer DispatchRank(const opencascade::handle & disp);
+ /****************** DumpEntity ******************/
+ /**** md5 signature: f990cff2a6a7f265e11d7bac988dbbd6 ****/
+ %feature("compactdefaultargs") DumpEntity;
+ %feature("autodoc", "
+Parameters
+----------
+ent: Standard_Transient
+level: int
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Dumps a starting entity according to the current norm. to do this, it calls dumpentity from worklibrary. is to be interpreted for each norm: see specific classes of worklibrary for it. generally, 0 if for very basic (only type ...), greater values give more and more details.
+") DumpEntity;
+ void DumpEntity(const opencascade::handle & ent, const Standard_Integer level, std::ostream &OutValue);
+
+ /****************** DumpModel ******************/
+ /**** md5 signature: d1b07e5d32687faa97f239407098b2d6 ****/
+ %feature("compactdefaultargs") DumpModel;
+ %feature("autodoc", "
+Parameters
+----------
+level: int
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Lists the content of the input model (if there is one) according level: 0 -> gives only count of entities and roots 1 -> lists also roots; 2 -> lists all entities (by tracetype) 3 -> performs a call to checklist (fails) and lists the result 4 -> as 3 but all checklist (fails + warnings) 5,6,7: as 3 but resp. count,list,labels by fail 8,9,10: as 4 but resp. count,list,labels by message.
+") DumpModel;
+ void DumpModel(const Standard_Integer level, std::ostream &OutValue);
+
/****************** DumpSelection ******************/
/**** md5 signature: 678949be99cdcf061da9cb44548ea4f4 ****/
%feature("compactdefaultargs") DumpSelection;
@@ -7818,6 +7990,25 @@ Returns the check list produced by the last execution of either: evaluatefile(fo
") LastRunCheckList;
Interface_CheckIterator LastRunCheckList();
+ /****************** ListEntities ******************/
+ /**** md5 signature: 7dcb72658ee62c200859aa51b254701d ****/
+ %feature("compactdefaultargs") ListEntities;
+ %feature("autodoc", "
+Parameters
+----------
+iter: Interface_EntityIterator
+mode: int
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Internal method which displays an entityiterator 0 gives short display (only entity numbers) 1 gives a more complete trace (1 line per entity) (can be used each time a trace has to be output from a list) 2 gives a form suitable for givelist: (n1,n2,n3...).
+") ListEntities;
+ void ListEntities(const Interface_EntityIterator & iter, const Standard_Integer mode, std::ostream &OutValue);
+
/****************** ListFinalModifiers ******************/
/**** md5 signature: b6f48db447f14a56611601af586a67c5 ****/
%feature("compactdefaultargs") ListFinalModifiers;
@@ -8239,6 +8430,63 @@ From a given label in model, returns the corresponding number starts from first
") NumberFromLabel;
Standard_Integer NumberFromLabel(Standard_CString val, const Standard_Integer afternum = 0);
+ /****************** PrintCheckList ******************/
+ /**** md5 signature: abe5e5f6e65ec20b5fa1bdc0150abd4b ****/
+ %feature("compactdefaultargs") PrintCheckList;
+ %feature("autodoc", "
+Parameters
+----------
+checklist: Interface_CheckIterator
+failsonly: bool
+mode: IFSelect_PrintCount
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Prints a checkiterator to the current trace file, controlled with the current model complete or fails only, according to defines the mode of printing 0: sequential, according entities; else with a checkcounter 1: according messages, count of entities 2: id but with list of entities, designated by their numbers 3: as 2 but with labels of entities.
+") PrintCheckList;
+ void PrintCheckList(std::ostream &OutValue, const Interface_CheckIterator & checklist, const Standard_Boolean failsonly, const IFSelect_PrintCount mode);
+
+ /****************** PrintEntityStatus ******************/
+ /**** md5 signature: 23f12785981bcfcd0d9cd330e2c76792 ****/
+ %feature("compactdefaultargs") PrintEntityStatus;
+ %feature("autodoc", "
+Parameters
+----------
+ent: Standard_Transient
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Prints main information about an entity: its number, type, validity (and checks if any), category, shareds and sharings.. mutable because it can recompute checks as necessary.
+") PrintEntityStatus;
+ void PrintEntityStatus(const opencascade::handle & ent, std::ostream &OutValue);
+
+ /****************** PrintSignatureList ******************/
+ /**** md5 signature: eea2888114f184bae9fc2d6912607a7f ****/
+ %feature("compactdefaultargs") PrintSignatureList;
+ %feature("autodoc", "
+Parameters
+----------
+signlist: IFSelect_SignatureList
+mode: IFSelect_PrintCount
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Prints a signaturelist to the current trace file, controlled with the current model defines the mode of printing (see signaturelist).
+") PrintSignatureList;
+ void PrintSignatureList(std::ostream &OutValue, const opencascade::handle & signlist, const IFSelect_PrintCount mode);
+
/****************** Protocol ******************/
/**** md5 signature: 1c9ddeeacf191f917e4377fcdad955ea ****/
%feature("compactdefaultargs") Protocol;
@@ -8332,7 +8580,7 @@ Reads a file with the worklibrary (sets model and loadedfile) returns a integer
Parameters
----------
theName: str
-theIStream: std::istream
+theIStream: str
Return
-------
diff --git a/src/SWIG_files/wrapper/IFSelect.pyi b/src/SWIG_files/wrapper/IFSelect.pyi
index ecda679cc..cbbddac39 100644
--- a/src/SWIG_files/wrapper/IFSelect.pyi
+++ b/src/SWIG_files/wrapper/IFSelect.pyi
@@ -305,6 +305,8 @@ class IFSelect_EditForm(Standard_Transient):
def NumberFromRank(self, rank: int) -> int: ...
def OriginalList(self, num: int) -> TColStd_HSequenceOfHAsciiString: ...
def OriginalValue(self, num: int) -> TCollection_HAsciiString: ...
+ def PrintDefs(self) -> str: ...
+ def PrintValues(self, what: int, names: bool, alsolist: Optional[bool] = False) -> str: ...
def RankFromNumber(self, number: int) -> int: ...
def Recognize(self) -> bool: ...
def SetData(self, ent: Standard_Transient, model: Interface_InterfaceModel) -> None: ...
@@ -328,6 +330,8 @@ class IFSelect_Editor(Standard_Transient):
def Name(self, num: int, isshort: Optional[bool] = False) -> str: ...
def NameNumber(self, name: str) -> int: ...
def NbValues(self) -> int: ...
+ def PrintDefs(self, labels: Optional[bool] = False) -> str: ...
+ def PrintNames(self) -> str: ...
def Recognize(self, form: IFSelect_EditForm) -> bool: ...
def SetList(self, num: int, max: Optional[int] = 0) -> None: ...
def SetValue(self, num: int, typval: Interface_TypedValue, shortname: Optional[str] = "", accessmode: Optional[IFSelect_EditValue] = IFSelect_Editable) -> None: ...
@@ -580,6 +584,9 @@ class IFSelect_SignatureList(Standard_Transient):
def Name(self) -> str: ...
def NbNulls(self) -> int: ...
def NbTimes(self, sign: str) -> int: ...
+ def PrintCount(self) -> str: ...
+ def PrintList(self, model: Interface_InterfaceModel, mod: Optional[IFSelect_PrintCount] = IFSelect_ListByItem) -> str: ...
+ def PrintSum(self) -> str: ...
def SetList(self, withlist: bool) -> None: ...
def SetName(self, name: str) -> None: ...
@@ -591,9 +598,14 @@ class IFSelect_Transformer(Standard_Transient):
class IFSelect_WorkLibrary(Standard_Transient):
def CopyModel(self, original: Interface_InterfaceModel, newmodel: Interface_InterfaceModel, list: Interface_EntityIterator, TC: Interface_CopyTool) -> bool: ...
+ @overload
+ def DumpEntity(self, model: Interface_InterfaceModel, protocol: Interface_Protocol, entity: Standard_Transient, level: int) -> str: ...
+ @overload
+ def DumpEntity(self, model: Interface_InterfaceModel, protocol: Interface_Protocol, entity: Standard_Transient) -> str: ...
def DumpHelp(self, level: int) -> str: ...
def DumpLevels(self) -> Tuple[int, int]: ...
def ReadFile(self, name: str, model: Interface_InterfaceModel, protocol: Interface_Protocol) -> int: ...
+ def ReadStream(self, theName: str, theIStream: str, model: Interface_InterfaceModel, protocol: Interface_Protocol) -> int: ...
def SetDumpHelp(self, level: int, help: str) -> None: ...
def SetDumpLevels(self, def_: int, max: int) -> None: ...
def WriteFile(self, ctx: IFSelect_ContextWrite) -> bool: ...
@@ -622,6 +634,8 @@ class IFSelect_WorkSession(Standard_Transient):
def DefaultFileRoot(self) -> TCollection_HAsciiString: ...
def Dispatch(self, id: int) -> IFSelect_Dispatch: ...
def DispatchRank(self, disp: IFSelect_Dispatch) -> int: ...
+ def DumpEntity(self, ent: Standard_Transient, level: int) -> str: ...
+ def DumpModel(self, level: int) -> str: ...
def DumpSelection(self, sel: IFSelect_Selection) -> None: ...
def DumpShare(self) -> None: ...
def EntityLabel(self, ent: Standard_Transient) -> TCollection_HAsciiString: ...
@@ -666,6 +680,7 @@ class IFSelect_WorkSession(Standard_Transient):
def ItemNamesForLabel(self, label: str) -> TColStd_HSequenceOfHAsciiString: ...
def ItemSelection(self, item: Standard_Transient) -> IFSelect_Selection: ...
def LastRunCheckList(self) -> Interface_CheckIterator: ...
+ def ListEntities(self, iter: Interface_EntityIterator, mode: int) -> str: ...
def ListFinalModifiers(self, formodel: bool) -> None: ...
def ListItems(self, label: Optional[str] = "") -> None: ...
def LoadedFile(self) -> str: ...
@@ -693,11 +708,15 @@ class IFSelect_WorkSession(Standard_Transient):
def NewTransformStandard(self, copy: bool, name: Optional[str] = "") -> IFSelect_Transformer: ...
def NextIdentForLabel(self, label: str, id: int, mode: Optional[int] = 0) -> int: ...
def NumberFromLabel(self, val: str, afternum: Optional[int] = 0) -> int: ...
+ def PrintCheckList(self, checklist: Interface_CheckIterator, failsonly: bool, mode: IFSelect_PrintCount) -> str: ...
+ def PrintEntityStatus(self, ent: Standard_Transient) -> str: ...
+ def PrintSignatureList(self, signlist: IFSelect_SignatureList, mode: IFSelect_PrintCount) -> str: ...
def Protocol(self) -> Interface_Protocol: ...
def QueryCheckList(self, chl: Interface_CheckIterator) -> None: ...
def QueryCheckStatus(self, ent: Standard_Transient) -> int: ...
def QueryParent(self, entdad: Standard_Transient, entson: Standard_Transient) -> int: ...
def ReadFile(self, filename: str) -> IFSelect_ReturnStatus: ...
+ def ReadStream(self, theName: str, theIStream: str) -> IFSelect_ReturnStatus: ...
def RemoveItem(self, item: Standard_Transient) -> bool: ...
def RemoveName(self, name: str) -> bool: ...
def RemoveNamedItem(self, name: str) -> bool: ...
diff --git a/src/SWIG_files/wrapper/IGESCAFControl.i b/src/SWIG_files/wrapper/IGESCAFControl.i
index 59dc4ced1..35eb6b473 100644
--- a/src/SWIG_files/wrapper/IGESCAFControl.i
+++ b/src/SWIG_files/wrapper/IGESCAFControl.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_igescafcontrol.ht
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
diff --git a/src/SWIG_files/wrapper/IGESControl.i b/src/SWIG_files/wrapper/IGESControl.i
index 710b13872..2fb603dd2 100644
--- a/src/SWIG_files/wrapper/IGESControl.i
+++ b/src/SWIG_files/wrapper/IGESControl.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_igescontrol.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -723,6 +724,24 @@ No available documentation.
") TransferProcess;
const opencascade::handle & TransferProcess();
+ /****************** Write ******************/
+ /**** md5 signature: 641c31af3cf254e70aab3e12c5732d18 ****/
+ %feature("compactdefaultargs") Write;
+ %feature("autodoc", "
+Parameters
+----------
+fnes: bool (optional, default to Standard_False)
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Computes then writes the model to an ostream returns true when done, false in case of error.
+") Write;
+ Standard_Boolean Write(std::ostream &OutValue, const Standard_Boolean fnes = Standard_False);
+
/****************** Write ******************/
/**** md5 signature: 336d0511a9ae227341af6444cb65363f ****/
%feature("compactdefaultargs") Write;
diff --git a/src/SWIG_files/wrapper/IGESControl.pyi b/src/SWIG_files/wrapper/IGESControl.pyi
index 30e2691b5..4922599a3 100644
--- a/src/SWIG_files/wrapper/IGESControl.pyi
+++ b/src/SWIG_files/wrapper/IGESControl.pyi
@@ -67,6 +67,8 @@ class IGESControl_Writer:
def SetTransferProcess(self, TP: Transfer_FinderProcess) -> None: ...
def TransferProcess(self) -> Transfer_FinderProcess: ...
@overload
+ def Write(self, fnes: Optional[bool] = False) -> Tuple[bool, str]: ...
+ @overload
def Write(self, file: str, fnes: Optional[bool] = False) -> bool: ...
# harray1 classes
diff --git a/src/SWIG_files/wrapper/IGESData.i b/src/SWIG_files/wrapper/IGESData.i
index 29b90c2d0..42580fc76 100644
--- a/src/SWIG_files/wrapper/IGESData.i
+++ b/src/SWIG_files/wrapper/IGESData.i
@@ -34,6 +34,7 @@ https://www.opencascade.com/doc/occt-7.7.0/refman/html/package_igesdata.html"
%include ../common/EnumTemplates.i
%include ../common/Operators.i
%include ../common/OccHandle.i
+%include ../common/IOStream.i
%{
@@ -2929,6 +2930,81 @@ Returns an igesdumper ready to work. the igesmodel provides the numbering of ent
") IGESData_IGESDumper;
IGESData_IGESDumper(const opencascade::handle & model, const opencascade::handle & protocol);
+ /****************** Dump ******************/
+ /**** md5 signature: c347dc756919bc04f1eac57ddbe6e2a8 ****/
+ %feature("compactdefaultargs") Dump;
+ %feature("autodoc", "
+Parameters
+----------
+ent: IGESData_IGESEntity
+own: int
+attached: int (optional, default to -1)
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+No available documentation.
+") Dump;
+ void Dump(const opencascade::handle & ent, std::ostream &OutValue, const Standard_Integer own, const Standard_Integer attached = -1);
+
+ /****************** OwnDump ******************/
+ /**** md5 signature: 3235d2f595b46c51344158ad01916bf5 ****/
+ %feature("compactdefaultargs") OwnDump;
+ %feature("autodoc", "
+Parameters
+----------
+ent: IGESData_IGESEntity
+own: int
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Specific dump for each iges entity, call by dump (just above) is the parameter from dump.
+") OwnDump;
+ void OwnDump(const opencascade::handle & ent, std::ostream &OutValue, const Standard_Integer own);
+
+ /****************** PrintDNum ******************/
+ /**** md5 signature: 843ade9a40f705735dc483822de7ae21 ****/
+ %feature("compactdefaultargs") PrintDNum;
+ %feature("autodoc", "
+Parameters
+----------
+ent: IGESData_IGESEntity
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Prints onto an output, the 'number of directory entry' which corresponds to an igesentity in the igesmodel, under the form 'd#nnn' (a null handle gives d#0).
+") PrintDNum;
+ void PrintDNum(const opencascade::handle & ent, std::ostream &OutValue);
+
+ /****************** PrintShort ******************/
+ /**** md5 signature: 70b65854c8626a1ea0446479ed6c8a1a ****/
+ %feature("compactdefaultargs") PrintShort;
+ %feature("autodoc", "
+Parameters
+----------
+ent: IGESData_IGESEntity
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Prints onto an output, the 'number of directory entry' (see printdnum) plus iges type and form numbers, which gives 'd#nnn type nnn form nnn'.
+") PrintShort;
+ void PrintShort(const opencascade::handle & ent, std::ostream &OutValue);
+
};
@@ -4039,6 +4115,24 @@ Returns the equivalent de number for an entity, i.e. 2*number(ent)-1 , or 0 if <
") DNum;
Standard_Integer DNum(const opencascade::handle & ent);
+ /****************** DumpHeader ******************/
+ /**** md5 signature: 56f8df745054635fd7397075063f4387 ****/
+ %feature("compactdefaultargs") DumpHeader;
+ %feature("autodoc", "
+Parameters
+----------
+level: int (optional, default to 0)
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Prints the iges file header (start and global sections) to the log file. the integer parameter is intended to be used as a level indicator but is not used at present.
+") DumpHeader;
+ void DumpHeader(std::ostream &OutValue, const Standard_Integer level = 0);
+
/****************** Entity ******************/
/**** md5 signature: 9ad99fc403d738612d5a7261abb4e74e ****/
%feature("compactdefaultargs") Entity;
@@ -4114,6 +4208,60 @@ Returns a new empty model, same type as i.e. igesmodel.
") NewEmptyModel;
opencascade::handle NewEmptyModel();
+ /****************** PrintInfo ******************/
+ /**** md5 signature: 048e00e2b50d28afc8b7b531cd4b786a ****/
+ %feature("compactdefaultargs") PrintInfo;
+ %feature("autodoc", "
+Parameters
+----------
+ent: Standard_Transient
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Prints label specific to iges norm for a given entity, i.e. its directory entry number (2*number-1).
+") PrintInfo;
+ void PrintInfo(const opencascade::handle & ent, std::ostream &OutValue);
+
+ /****************** PrintLabel ******************/
+ /**** md5 signature: 70ad5739c870581f6dca5167f0b3bae0 ****/
+ %feature("compactdefaultargs") PrintLabel;
+ %feature("autodoc", "
+Parameters
+----------
+ent: Standard_Transient
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Prints label specific to iges norm for a given entity, i.e. its directory entry number (2*number-1).
+") PrintLabel;
+ void PrintLabel(const opencascade::handle & ent, std::ostream &OutValue);
+
+ /****************** PrintToLog ******************/
+ /**** md5 signature: 0993bb95706cbffcda2c98453ed6b557 ****/
+ %feature("compactdefaultargs") PrintToLog;
+ %feature("autodoc", "
+Parameters
+----------
+ent: Standard_Transient
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Prints label specific to iges norm for a given -- -- entity, i.e. its directory entry number (2*number-1) in the log file format.
+") PrintToLog;
+ virtual void PrintToLog(const opencascade::handle & ent, std::ostream &OutValue);
+
/****************** ReShape ******************/
/**** md5 signature: acfc9c298bd502c36bf4f2873869a723 ****/
%feature("compactdefaultargs") ReShape;
@@ -5049,14 +5197,23 @@ Sends own parameters of the entity, by sending firstly its type, then calling sp
") OwnParams;
void OwnParams(const opencascade::handle & anent);
+ /****************** Print ******************/
+ /**** md5 signature: 5e5b127c01c68c6fb6a747c286a95265 ****/
+ %feature("compactdefaultargs") Print;
+ %feature("autodoc", "
+Parameters
+----------
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Writes result on an output defined as an ostream resolves stored infos at this time; in particular, numbers of lines used to address p-section from d-section and final totals takes writemode into account.
+") Print;
+ Standard_Boolean Print(std::ostream &OutValue);
- %feature("autodoc", "1");
- %extend{
- std::string PrintToString() {
- std::stringstream s;
- self->Print(s);
- return s.str();}
- };
/****************** Properties ******************/
/**** md5 signature: 593129876ee8c43cc811cf1423c82b5d ****/
%feature("compactdefaultargs") Properties;
@@ -7147,6 +7304,27 @@ Specific automatic correction on own parameters of an entity. it works by settin
") OwnCorrect;
virtual Standard_Boolean OwnCorrect(const Standard_Integer CN, const opencascade::handle & ent);
+ /****************** OwnDump ******************/
+ /**** md5 signature: f276487f02d27b508cdd766536f98d29 ****/
+ %feature("compactdefaultargs") OwnDump;
+ %feature("autodoc", "
+Parameters
+----------
+CN: int
+ent: IGESData_IGESEntity
+dumper: IGESData_IGESDumper
+own: int
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Specific dump for each type of iges entity: it concerns only own parameters, the general data (directory part, lists) are taken into account by the igesdumper see class igesdumper for the rules to follow for and level.
+") OwnDump;
+ virtual void OwnDump(const Standard_Integer CN, const opencascade::handle & ent, const IGESData_IGESDumper & dumper, std::ostream &OutValue, const Standard_Integer own);
+
};
@@ -7873,6 +8051,27 @@ Creates a defaultspecific and puts it into specificlib.
") IGESData_DefaultSpecific;
IGESData_DefaultSpecific();
+ /****************** OwnDump ******************/
+ /**** md5 signature: 97551005b4180a704e712d2024f870d6 ****/
+ %feature("compactdefaultargs") OwnDump;
+ %feature("autodoc", "
+Parameters
+----------
+CN: int
+ent: IGESData_IGESEntity
+dumper: IGESData_IGESDumper
+own: int
+
+Return
+-------
+S: Standard_OStream
+
+Description
+-----------
+Specific dump for undefinedentity: it concerns only own parameters, the general data (directory part, lists) are taken into account by the igesdumper.
+") OwnDump;
+ void OwnDump(const Standard_Integer CN, const opencascade::handle