Skip to content

Commit fec8c5c

Browse files
committed
Fixed BSplCLib and BSplSLib wrappers
1 parent a5e3899 commit fec8c5c

File tree

4 files changed

+62
-18
lines changed

4 files changed

+62
-18
lines changed

src/SWIG_files/wrapper/BSplCLib.i

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3535,14 +3535,36 @@ float
35353535
/***********************************
35363536
* class BSplCLib_EvaluatorFunction *
35373537
***********************************/
3538-
/* python proxy for excluded classes */
3539-
%pythoncode {
3540-
@classnotwrapped
3541-
class BSplCLib_EvaluatorFunction:
3542-
pass
3538+
%nodefaultctor BSplCLib_EvaluatorFunction;
3539+
class BSplCLib_EvaluatorFunction {
3540+
public:
3541+
/****************** Evaluate ******************/
3542+
/**** md5 signature: 6d18f8c62d991decc4c1a3aca376d7bf ****/
3543+
%feature("compactdefaultargs") Evaluate;
3544+
%feature("autodoc", "Function evaluation method to be defined by descendant.
3545+
3546+
Parameters
3547+
----------
3548+
theDerivativeRequest: int
3549+
theStartEnd: float *
3550+
theParameter: float
3551+
3552+
Returns
3553+
-------
3554+
theResult: float
3555+
theErrorCode: int
3556+
") Evaluate;
3557+
virtual void Evaluate(const Standard_Integer theDerivativeRequest, const Standard_Real * theStartEnd, const Standard_Real theParameter, Standard_Real &OutValue, Standard_Integer &OutValue);
3558+
3559+
};
3560+
3561+
3562+
%extend BSplCLib_EvaluatorFunction {
3563+
%pythoncode {
3564+
__repr__ = _dumps_object
3565+
}
3566+
};
35433567

3544-
}
3545-
/* end python proxy for excluded classes */
35463568
/* harray1 classes */
35473569
/* harray2 classes */
35483570
/* hsequence classes */

src/SWIG_files/wrapper/BSplCLib.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,8 @@ class BSplCLib_CacheParams:
468468
def LocateParameter(self, theFlatKnots: TColStd_Array1OfReal) -> float: ...
469469
def PeriodicNormalization(self, theParameter: float) -> float: ...
470470

471-
#classnotwrapped
472-
class BSplCLib_EvaluatorFunction: ...
471+
class BSplCLib_EvaluatorFunction:
472+
def Evaluate(self, theDerivativeRequest: int, theStartEnd: float, theParameter: float) -> Tuple[float, int]: ...
473473

474474
# harray1 classes
475475
# harray2 classes

src/SWIG_files/wrapper/BSplSLib.i

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,14 +1128,36 @@ bool
11281128
/***********************************
11291129
* class BSplSLib_EvaluatorFunction *
11301130
***********************************/
1131-
/* python proxy for excluded classes */
1132-
%pythoncode {
1133-
@classnotwrapped
1134-
class BSplSLib_EvaluatorFunction:
1135-
pass
1131+
%nodefaultctor BSplSLib_EvaluatorFunction;
1132+
class BSplSLib_EvaluatorFunction {
1133+
public:
1134+
/****************** Evaluate ******************/
1135+
/**** md5 signature: 1e372440244caef055e485ce59a6c276 ****/
1136+
%feature("compactdefaultargs") Evaluate;
1137+
%feature("autodoc", "Function evaluation method to be defined by descendant.
1138+
1139+
Parameters
1140+
----------
1141+
theDerivativeRequest: int
1142+
theUParameter: float
1143+
theVParameter: float
1144+
1145+
Returns
1146+
-------
1147+
theResult: float
1148+
theErrorCode: int
1149+
") Evaluate;
1150+
virtual void Evaluate(const Standard_Integer theDerivativeRequest, const Standard_Real theUParameter, const Standard_Real theVParameter, Standard_Real &OutValue, Standard_Integer &OutValue);
1151+
1152+
};
1153+
1154+
1155+
%extend BSplSLib_EvaluatorFunction {
1156+
%pythoncode {
1157+
__repr__ = _dumps_object
1158+
}
1159+
};
11361160

1137-
}
1138-
/* end python proxy for excluded classes */
11391161
/* harray1 classes */
11401162
/* harray2 classes */
11411163
/* hsequence classes */

src/SWIG_files/wrapper/BSplSLib.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ class BSplSLib_Cache(Standard_Transient):
102102
def D2(self, theU: float, theV: float, thePoint: gp_Pnt, theTangentU: gp_Vec, theTangentV: gp_Vec, theCurvatureU: gp_Vec, theCurvatureV: gp_Vec, theCurvatureUV: gp_Vec) -> None: ...
103103
def IsCacheValid(self, theParameterU: float, theParameterV: float) -> bool: ...
104104

105-
#classnotwrapped
106-
class BSplSLib_EvaluatorFunction: ...
105+
class BSplSLib_EvaluatorFunction:
106+
def Evaluate(self, theDerivativeRequest: int, theUParameter: float, theVParameter: float) -> Tuple[float, int]: ...
107107

108108
# harray1 classes
109109
# harray2 classes

0 commit comments

Comments
 (0)