Skip to content

Commit a502e72

Browse files
authored
Merge pull request tpaviot#900 from tpaviot/review/Standard_Type
Review/standard type
2 parents 6564f03 + e141b2d commit a502e72

File tree

18 files changed

+1029
-983
lines changed

18 files changed

+1029
-983
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

src/SWIG_files/wrapper/Prs3d.i

Lines changed: 47 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4507,6 +4507,53 @@ None
45074507
/********************
45084508
* class Prs3d_Point *
45094509
********************/
4510+
class Prs3d_Point : private Prs3d_Root {
4511+
public:
4512+
/****************** Add ******************/
4513+
/**** md5 signature: f098a76bd5f794fe58bf9a789f260112 ****/
4514+
%feature("compactdefaultargs") Add;
4515+
%feature("autodoc", "No available documentation.
4516+
4517+
Parameters
4518+
----------
4519+
thePresentation: Handle ( Prs3d_Presentation )
4520+
thePoint: AnyPoint
4521+
theDrawer: Handle ( Prs3d_Drawer )
4522+
4523+
Returns
4524+
-------
4525+
None
4526+
") Add;
4527+
static void Add(const Handle ( Prs3d_Presentation ) & thePresentation, const AnyPoint & thePoint, const Handle ( Prs3d_Drawer ) & theDrawer);
4528+
4529+
/****************** Match ******************/
4530+
/**** md5 signature: 0b99a7d2ff1fac1a4a91e5728b1339c9 ****/
4531+
%feature("compactdefaultargs") Match;
4532+
%feature("autodoc", "No available documentation.
4533+
4534+
Parameters
4535+
----------
4536+
thePoint: AnyPoint
4537+
theX: float
4538+
theY: float
4539+
theZ: float
4540+
theDistance: float
4541+
4542+
Returns
4543+
-------
4544+
bool
4545+
") Match;
4546+
static Standard_Boolean Match(const AnyPoint & thePoint, const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ, const Standard_Real theDistance);
4547+
4548+
};
4549+
4550+
4551+
%extend Prs3d_Point {
4552+
%pythoncode {
4553+
__repr__ = _dumps_object
4554+
}
4555+
};
4556+
45104557
/**************************
45114558
* class Prs3d_PointAspect *
45124559
**************************/
@@ -5475,18 +5522,6 @@ None
54755522
}
54765523
};
54775524

5478-
/* python proxy for excluded classes */
5479-
%pythoncode {
5480-
@classnotwrapped
5481-
class Prs3d_WFShape:
5482-
pass
5483-
5484-
@classnotwrapped
5485-
class Prs3d_Point:
5486-
pass
5487-
5488-
}
5489-
/* end python proxy for excluded classes */
54905525
/* harray1 classes */
54915526
/* harray2 classes */
54925527
/* hsequence classes */

src/SWIG_files/wrapper/Prs3d.pyi

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ class Prs3d_PlaneAspect(Prs3d_BasicAspect):
532532
def SetIsoDistance(self, theL: float) -> None: ...
533533
def SetPlaneLength(self, theLX: float, theLY: float) -> None: ...
534534

535+
class Prs3d_Point(Prs3d_Root):
536+
pass
537+
535538
class Prs3d_PointAspect(Prs3d_BasicAspect):
536539
@overload
537540
def __init__(self, theType: Aspect_TypeOfMarker, theColor: Quantity_Color, theScale: float) -> None: ...
@@ -624,12 +627,6 @@ class Prs3d_IsoAspect(Prs3d_LineAspect):
624627
def Number(self) -> int: ...
625628
def SetNumber(self, theNumber: int) -> None: ...
626629

627-
#classnotwrapped
628-
class Prs3d_WFShape: ...
629-
630-
#classnotwrapped
631-
class Prs3d_Point: ...
632-
633630
# harray1 classes
634631
# harray2 classes
635632
# hsequence classes
@@ -646,6 +643,8 @@ Prs3d_Arrow_Draw = Prs3d_Arrow.Draw
646643
Prs3d_Arrow_Draw = Prs3d_Arrow.Draw
647644
Prs3d_Arrow_DrawSegments = Prs3d_Arrow.DrawSegments
648645
Prs3d_Arrow_DrawShaded = Prs3d_Arrow.DrawShaded
646+
Prs3d_Point_Add = Prs3d_Point.Add
647+
Prs3d_Point_Match = Prs3d_Point.Match
649648
Prs3d_Text_Draw = Prs3d_Text.Draw
650649
Prs3d_Text_Draw = Prs3d_Text.Draw
651650
Prs3d_Text_Draw = Prs3d_Text.Draw

0 commit comments

Comments
 (0)