mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024761: Convertation of the generic classes to the non-generic. Part 5
1) Generic class "GccEnt_QualifiedCurv" from "GccEnt" package converted to the non-generic class and moved to the "Geom2dGcc" package. Name of this class was changed to "Geom2dGcc_QCurve". 2) Generic classes "HatchGen_ElementGen", "HatchGen_ElementsGen", "HatchGen_HatchingGen" and "HatchGen_Hatcher" from "HatchGen" package converted to the non-generic classes and moved to the "Geom2dHatch" package. Names of this classes were changed to "Geom2dHatch_Element", "Geom2dHatch_Elements", "Geom2dHatch_Hatching" and "Geom2dHatch_Hatcher". Also all instantiations of the "internal" classes of this classes were moved to the "Geom2dHatch.cdl". 3) Generic classes "Extrema_GExtCC", "Extrema_GExtCC2d", "Extrema_GLocateExtCC" and "Extrema_GLocateExtCC2d" from "Extrema" package converted to the non-generic classes. Names of this classes were changed to "Extrema_ExtCC", "Extrema_ExtCC2d", "Extrema_LocateExtCC" and "Extrema_LocateExtCC2d". Also all instantiations of the "internal" classes of this classes were moved to the "Extrema.cdl".
This commit is contained in:
@@ -67,68 +67,67 @@ class Lin2d2Tan;
|
||||
|
||||
class Lin2dTanObl;
|
||||
|
||||
class MyQCurve instantiates QualifiedCurv from GccEnt
|
||||
(Curve from Geom2dAdaptor);
|
||||
class QCurve;
|
||||
|
||||
class MyCurveTool instantiates CurvePGTool from GccGeo
|
||||
(Curve from Geom2dAdaptor,
|
||||
CurveTool from Geom2dGcc ,
|
||||
OffsetCurve from Adaptor3d);
|
||||
|
||||
(Curve from Geom2dAdaptor,
|
||||
CurveTool from Geom2dGcc,
|
||||
OffsetCurve from Adaptor3d);
|
||||
|
||||
class MyCirc2d2TanOn instantiates Circ2d2TanOn from GccGeo
|
||||
(Curve from Geom2dAdaptor,
|
||||
CurveTool from Geom2dGcc,
|
||||
MyQCurve from Geom2dGcc,
|
||||
OffsetCurve from Adaptor3d,
|
||||
HCurve from Geom2dAdaptor,
|
||||
MyCurveTool from Geom2dGcc,
|
||||
TheIntConicCurveOfGInter from Geom2dInt);
|
||||
|
||||
(Curve from Geom2dAdaptor,
|
||||
CurveTool from Geom2dGcc,
|
||||
QCurve from Geom2dGcc,
|
||||
OffsetCurve from Adaptor3d,
|
||||
HCurve from Geom2dAdaptor,
|
||||
MyCurveTool from Geom2dGcc,
|
||||
TheIntConicCurveOfGInter from Geom2dInt);
|
||||
|
||||
class MyCirc2d2TanRad instantiates Circ2d2TanRad from GccGeo
|
||||
(Curve from Geom2dAdaptor ,
|
||||
CurveTool from Geom2dGcc,
|
||||
MyQCurve from Geom2dGcc,
|
||||
OffsetCurve from Adaptor3d,
|
||||
HCurve from Geom2dAdaptor,
|
||||
MyCurveTool from Geom2dGcc,
|
||||
TheIntConicCurveOfGInter from Geom2dInt,
|
||||
GInter from Geom2dInt);
|
||||
(Curve from Geom2dAdaptor,
|
||||
CurveTool from Geom2dGcc,
|
||||
QCurve from Geom2dGcc,
|
||||
OffsetCurve from Adaptor3d,
|
||||
HCurve from Geom2dAdaptor,
|
||||
MyCurveTool from Geom2dGcc,
|
||||
TheIntConicCurveOfGInter from Geom2dInt,
|
||||
GInter from Geom2dInt);
|
||||
|
||||
class MyCirc2dTanOnRad instantiates Circ2dTanOnRad from GccGeo
|
||||
(Curve from Geom2dAdaptor ,
|
||||
CurveTool from Geom2dGcc,
|
||||
MyQCurve from Geom2dGcc,
|
||||
OffsetCurve from Adaptor3d,
|
||||
HCurve from Geom2dAdaptor,
|
||||
MyCurveTool from Geom2dGcc,
|
||||
TheIntConicCurveOfGInter from Geom2dInt,
|
||||
GInter from Geom2dInt);
|
||||
(Curve from Geom2dAdaptor ,
|
||||
CurveTool from Geom2dGcc,
|
||||
QCurve from Geom2dGcc,
|
||||
OffsetCurve from Adaptor3d,
|
||||
HCurve from Geom2dAdaptor,
|
||||
MyCurveTool from Geom2dGcc,
|
||||
TheIntConicCurveOfGInter from Geom2dInt,
|
||||
GInter from Geom2dInt);
|
||||
|
||||
class MyC2d3Tan instantiates Circ2d3Tan from GccIter
|
||||
(Curve from Geom2dAdaptor,
|
||||
CurveTool from Geom2dGcc,
|
||||
MyQCurve from Geom2dGcc);
|
||||
|
||||
class MyCirc2dTanCen instantiates Circ2dTanCen from GccGeo
|
||||
(Curve from Geom2dAdaptor,
|
||||
CurveTool from Geom2dGcc,
|
||||
ExtPC2d from Extrema,
|
||||
MyQCurve from Geom2dGcc);
|
||||
|
||||
class MyC2d2TanOn instantiates Circ2d2TanOn from GccIter
|
||||
(Curve from Geom2dAdaptor,
|
||||
CurveTool from Geom2dGcc,
|
||||
MyQCurve from Geom2dGcc);
|
||||
class MyC2d3Tan instantiates Circ2d3Tan from GccIter
|
||||
(Curve from Geom2dAdaptor,
|
||||
CurveTool from Geom2dGcc,
|
||||
QCurve from Geom2dGcc);
|
||||
|
||||
class MyCirc2dTanCen instantiates Circ2dTanCen from GccGeo
|
||||
(Curve from Geom2dAdaptor,
|
||||
CurveTool from Geom2dGcc,
|
||||
ExtPC2d from Extrema,
|
||||
QCurve from Geom2dGcc);
|
||||
|
||||
class MyC2d2TanOn instantiates Circ2d2TanOn from GccIter
|
||||
(Curve from Geom2dAdaptor,
|
||||
CurveTool from Geom2dGcc,
|
||||
QCurve from Geom2dGcc);
|
||||
|
||||
class MyL2dTanObl instantiates Lin2dTanObl from GccIter
|
||||
(Curve from Geom2dAdaptor,
|
||||
CurveTool from Geom2dGcc,
|
||||
QCurve from Geom2dGcc);
|
||||
|
||||
class MyL2dTanObl instantiates Lin2dTanObl from GccIter
|
||||
(Curve from Geom2dAdaptor,
|
||||
CurveTool from Geom2dGcc,
|
||||
MyQCurve from Geom2dGcc);
|
||||
|
||||
class MyL2d2Tan instantiates Lin2d2Tan from GccIter
|
||||
(Curve from Geom2dAdaptor,
|
||||
CurveTool from Geom2dGcc,
|
||||
MyQCurve from Geom2dGcc);
|
||||
(Curve from Geom2dAdaptor,
|
||||
CurveTool from Geom2dGcc,
|
||||
QCurve from Geom2dGcc);
|
||||
|
||||
Unqualified(Obj : Curve from Geom2dAdaptor) returns QualifiedCurve;
|
||||
---Purpose: Constructs such a qualified curve that the relative
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#include <GccAna_Circ2d2TanOn.hxx>
|
||||
#include <Geom2dGcc_MyCirc2d2TanOn.hxx>
|
||||
#include <Geom2dGcc_MyC2d2TanOn.hxx>
|
||||
#include <Geom2dGcc_MyQCurve.hxx>
|
||||
#include <Geom2dGcc_QCurve.hxx>
|
||||
#include <GccEnt_BadQualifier.hxx>
|
||||
#include <Geom2d_Circle.hxx>
|
||||
#include <Geom2d_Line.hxx>
|
||||
@@ -273,8 +273,8 @@ Geom2dGcc_Circ2d2TanOn::
|
||||
//=============================================================================
|
||||
|
||||
else {
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_MyQCurve Qc2(C2,Qualified2.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc2(C2,Qualified2.Qualifier());
|
||||
if ((Type3 == GeomAbs_Circle || Type3 == GeomAbs_Line)) {
|
||||
if (Type3 == GeomAbs_Circle) {
|
||||
Handle(Geom2d_Circle) CCon = Handle(Geom2d_Circle)::DownCast(Con);
|
||||
@@ -445,7 +445,7 @@ Geom2dGcc_Circ2d2TanOn::
|
||||
//=============================================================================
|
||||
|
||||
else {
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
if ((Type3 == GeomAbs_Circle || Type3 == GeomAbs_Line)) {
|
||||
if (Type3 == GeomAbs_Circle) {
|
||||
Handle(Geom2d_Circle) CCon = Handle(Geom2d_Circle)::DownCast(Con);
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <Geom2dAdaptor_Curve.hxx>
|
||||
#include <GccAna_Circ2d2TanRad.hxx>
|
||||
#include <Geom2dGcc_MyCirc2d2TanRad.hxx>
|
||||
#include <Geom2dGcc_MyQCurve.hxx>
|
||||
#include <Geom2dGcc_QCurve.hxx>
|
||||
#include <GccEnt_BadQualifier.hxx>
|
||||
#include <Geom2d_Circle.hxx>
|
||||
#include <Geom2d_Line.hxx>
|
||||
@@ -177,7 +177,7 @@ Geom2dGcc_Circ2d2TanRad::
|
||||
else {
|
||||
GccEnt_QualifiedLin Ql1 = GccEnt_QualifiedLin(l1,
|
||||
Qualified1.Qualifier());
|
||||
Geom2dGcc_MyQCurve Qc2(C2,Qualified2.Qualifier());
|
||||
Geom2dGcc_QCurve Qc2(C2,Qualified2.Qualifier());
|
||||
Geom2dGcc_MyCirc2d2TanRad CircGeo(Ql1,Qc2,Radius,Tolerance);
|
||||
WellDone = CircGeo.IsDone();
|
||||
NbrSol = CircGeo.NbSolutions();
|
||||
@@ -192,7 +192,7 @@ Geom2dGcc_Circ2d2TanRad::
|
||||
gp_Circ2d c1(CCC1->Circ2d());
|
||||
GccEnt_QualifiedCirc Qc1 = GccEnt_QualifiedCirc(c1,
|
||||
Qualified1.Qualifier());
|
||||
Geom2dGcc_MyQCurve Qc2(C2,Qualified2.Qualifier());
|
||||
Geom2dGcc_QCurve Qc2(C2,Qualified2.Qualifier());
|
||||
Geom2dGcc_MyCirc2d2TanRad CircGeo(Qc1,Qc2,Radius,Tolerance);
|
||||
WellDone = CircGeo.IsDone();
|
||||
NbrSol = CircGeo.NbSolutions();
|
||||
@@ -212,7 +212,7 @@ Geom2dGcc_Circ2d2TanRad::
|
||||
else {
|
||||
GccEnt_QualifiedLin Ql2 = GccEnt_QualifiedLin(l2,
|
||||
Qualified2.Qualifier());
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_MyCirc2d2TanRad CircGeo(Ql2,Qc1,Radius,Tolerance);
|
||||
WellDone = CircGeo.IsDone();
|
||||
NbrSol = CircGeo.NbSolutions();
|
||||
@@ -228,7 +228,7 @@ Geom2dGcc_Circ2d2TanRad::
|
||||
gp_Circ2d c2(CCC2->Circ2d());
|
||||
GccEnt_QualifiedCirc Qc2 = GccEnt_QualifiedCirc(c2,
|
||||
Qualified2.Qualifier());
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_MyCirc2d2TanRad CircGeo(Qc2,Qc1,Radius,Tolerance);
|
||||
WellDone = CircGeo.IsDone();
|
||||
NbrSol = CircGeo.NbSolutions();
|
||||
@@ -238,8 +238,8 @@ Geom2dGcc_Circ2d2TanRad::
|
||||
Results(CircGeo);
|
||||
}
|
||||
else {
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_MyQCurve Qc2(C2,Qualified2.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc2(C2,Qualified2.Qualifier());
|
||||
Geom2dGcc_MyCirc2d2TanRad CircGeo(Qc1,Qc2,Radius,Tolerance);
|
||||
WellDone = CircGeo.IsDone();
|
||||
NbrSol = CircGeo.NbSolutions();
|
||||
@@ -311,7 +311,7 @@ Geom2dGcc_Circ2d2TanRad::
|
||||
// Appel a GccGeo. +
|
||||
//=============================================================================
|
||||
else {
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_MyCirc2d2TanRad CircGeo(Qc1,Point->Pnt2d(),Radius,Tolerance);
|
||||
WellDone = CircGeo.IsDone();
|
||||
NbrSol = CircGeo.NbSolutions();
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <Geom2dAdaptor_Curve.hxx>
|
||||
#include <Geom2d_Line.hxx>
|
||||
#include <Geom2d_Circle.hxx>
|
||||
#include <Geom2dGcc_MyQCurve.hxx>
|
||||
#include <Geom2dGcc_QCurve.hxx>
|
||||
#include <Geom2dGcc_MyC2d3Tan.hxx>
|
||||
#include <GccEnt_QualifiedCirc.hxx>
|
||||
#include <GccEnt_QualifiedLin.hxx>
|
||||
@@ -212,9 +212,9 @@ Geom2dGcc_Circ2d3Tan::
|
||||
}
|
||||
}
|
||||
else {
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_MyQCurve Qc2(C2,Qualified2.Qualifier());
|
||||
Geom2dGcc_MyQCurve Qc3(C3,Qualified3.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc2(C2,Qualified2.Qualifier());
|
||||
Geom2dGcc_QCurve Qc3(C3,Qualified3.Qualifier());
|
||||
Geom2dGcc_MyC2d3Tan Circ(Qc1,Qc2,Qc3,Param1,Param2,Param3,Tolerance);
|
||||
WellDone = Circ.IsDone();
|
||||
NbrSol = 1;
|
||||
@@ -332,8 +332,8 @@ Geom2dGcc_Circ2d3Tan::
|
||||
}
|
||||
}
|
||||
else {
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_MyQCurve Qc2(C2,Qualified2.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc2(C2,Qualified2.Qualifier());
|
||||
Geom2dGcc_MyC2d3Tan Circ(Qc1,Qc2,Point->Pnt2d(),Param1,Param2,Tolerance);
|
||||
WellDone = Circ.IsDone();
|
||||
NbrSol = 1;
|
||||
@@ -412,7 +412,7 @@ Geom2dGcc_Circ2d3Tan::
|
||||
}
|
||||
}
|
||||
else {
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_MyC2d3Tan Circ(Qc1,Point1->Pnt2d(),Point2->Pnt2d(),
|
||||
Param1,Tolerance);
|
||||
WellDone = Circ.IsDone();
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <Geom2dAdaptor_Curve.hxx>
|
||||
#include <GccAna_Circ2dTanCen.hxx>
|
||||
#include <Geom2dGcc_MyCirc2dTanCen.hxx>
|
||||
#include <Geom2dGcc_MyQCurve.hxx>
|
||||
#include <Geom2dGcc_QCurve.hxx>
|
||||
#include <GccEnt_BadQualifier.hxx>
|
||||
#include <Geom2d_Circle.hxx>
|
||||
#include <Geom2d_Line.hxx>
|
||||
@@ -84,7 +84,7 @@ Geom2dGcc_Circ2dTanCen::
|
||||
//=============================================================================
|
||||
|
||||
else {
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_MyCirc2dTanCen Circ(Qc1,pcenter,Tolerance);
|
||||
WellDone = Circ.IsDone();
|
||||
NbrSol = Circ.NbSolutions();
|
||||
|
@@ -18,7 +18,7 @@
|
||||
#include <Geom2dAdaptor_Curve.hxx>
|
||||
#include <GccAna_Circ2dTanOnRad.hxx>
|
||||
#include <Geom2dGcc_MyCirc2dTanOnRad.hxx>
|
||||
#include <Geom2dGcc_MyQCurve.hxx>
|
||||
#include <Geom2dGcc_QCurve.hxx>
|
||||
#include <GccEnt_BadQualifier.hxx>
|
||||
#include <Geom2d_Circle.hxx>
|
||||
#include <Geom2d_Line.hxx>
|
||||
@@ -129,7 +129,7 @@ Geom2dGcc_Circ2dTanOnRad::
|
||||
Results(CircGeo);
|
||||
}
|
||||
else {
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_MyCirc2dTanOnRad CircGeo(Qc1,OnCurve,Radius,Tolerance);
|
||||
WellDone = CircGeo.IsDone();
|
||||
NbrSol = CircGeo.NbSolutions();
|
||||
|
@@ -15,7 +15,7 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Geom2dGcc_Lin2d2Tan.ixx>
|
||||
#include <Geom2dGcc_MyQCurve.hxx>
|
||||
#include <Geom2dGcc_QCurve.hxx>
|
||||
#include <GccAna_Lin2d2Tan.hxx>
|
||||
#include <Geom2dGcc_MyL2d2Tan.hxx>
|
||||
#include <Geom2d_Circle.hxx>
|
||||
@@ -74,13 +74,13 @@ Geom2dGcc_Lin2d2Tan::
|
||||
}
|
||||
}
|
||||
else {
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Standard_Real a1FPar = Geom2dGcc_CurveTool::FirstParameter(C1);
|
||||
Standard_Real a1LPar = Geom2dGcc_CurveTool::LastParameter(C1);
|
||||
Standard_Integer aNbSamples1 = Geom2dGcc_CurveTool::NbSamples(C1);
|
||||
Standard_Real aStep1 = (a1LPar - a1FPar)/aNbSamples1;
|
||||
Standard_Real Param1 = a1FPar;
|
||||
Geom2dGcc_MyQCurve Qc2(C2,Qualified2.Qualifier());
|
||||
Geom2dGcc_QCurve Qc2(C2,Qualified2.Qualifier());
|
||||
Standard_Real a2FPar = Geom2dGcc_CurveTool::FirstParameter(C2);
|
||||
Standard_Real a2LPar = Geom2dGcc_CurveTool::LastParameter(C2);
|
||||
Standard_Integer aNbSamples2 = Geom2dGcc_CurveTool::NbSamples(C2);
|
||||
@@ -149,7 +149,7 @@ Geom2dGcc_Lin2d2Tan::
|
||||
}
|
||||
}
|
||||
else {
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Standard_Real aFirstPar = Geom2dGcc_CurveTool::FirstParameter(C1);
|
||||
Standard_Real aLastPar = Geom2dGcc_CurveTool::LastParameter(C1);
|
||||
Standard_Integer aNbSamples = Geom2dGcc_CurveTool::NbSamples(C1);
|
||||
@@ -224,8 +224,8 @@ Geom2dGcc_Lin2d2Tan::
|
||||
}
|
||||
}
|
||||
else {
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_MyQCurve Qc2(C2,Qualified2.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc2(C2,Qualified2.Qualifier());
|
||||
Geom2dGcc_MyL2d2Tan Lin(Qc1,Qc2,Param1,Param2,Tolang);
|
||||
WellDone = Lin.IsDone();
|
||||
// Modified by Sergey KHROMOV - Thu Apr 5 17:51:59 2001 Begin
|
||||
@@ -283,7 +283,7 @@ Geom2dGcc_Lin2d2Tan::
|
||||
}
|
||||
}
|
||||
else {
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_MyL2d2Tan Lin(Qc1,ThePoint,Param1,Tolang);
|
||||
WellDone = Lin.IsDone();
|
||||
// Modified by Sergey KHROMOV - Thu Apr 5 17:53:01 2001 Begin
|
||||
|
@@ -15,7 +15,7 @@
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Geom2dGcc_Lin2dTanObl.ixx>
|
||||
#include <Geom2dGcc_MyQCurve.hxx>
|
||||
#include <Geom2dGcc_QCurve.hxx>
|
||||
#include <GccAna_Lin2dTanObl.hxx>
|
||||
#include <Geom2dGcc_MyL2dTanObl.hxx>
|
||||
#include <Geom2d_Circle.hxx>
|
||||
@@ -66,7 +66,7 @@ Geom2dGcc_Lin2dTanObl::
|
||||
}
|
||||
}
|
||||
else {
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Standard_Real aFirstPar = Geom2dGcc_CurveTool::FirstParameter(C1);
|
||||
Standard_Real aLastPar = Geom2dGcc_CurveTool::LastParameter(C1);
|
||||
Standard_Integer aNbSamples = Geom2dGcc_CurveTool::NbSamples(C1);
|
||||
@@ -131,7 +131,7 @@ Geom2dGcc_Lin2dTanObl::
|
||||
}
|
||||
}
|
||||
else {
|
||||
Geom2dGcc_MyQCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_QCurve Qc1(C1,Qualified1.Qualifier());
|
||||
Geom2dGcc_MyL2dTanObl Lin(Qc1,TheLine,TolAng,Param1,Angle);
|
||||
WellDone = Lin.IsDone();
|
||||
if(WellDone) {
|
||||
|
64
src/Geom2dGcc/Geom2dGcc_QCurve.cdl
Normal file
64
src/Geom2dGcc/Geom2dGcc_QCurve.cdl
Normal file
@@ -0,0 +1,64 @@
|
||||
-- Created on: 1991-04-15
|
||||
-- Created by: Philippe DAUTRY
|
||||
-- Copyright (c) 1991-1999 Matra Datavision
|
||||
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
--
|
||||
-- This file is part of Open CASCADE Technology software library.
|
||||
--
|
||||
-- This library is free software; you can redistribute it and/or modify it under
|
||||
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
-- by the Free Software Foundation, with special exception defined in the file
|
||||
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
-- distribution for complete text of the license and disclaimer of any warranty.
|
||||
--
|
||||
-- Alternatively, this file may be used under the terms of Open CASCADE
|
||||
-- commercial license or contractual agreement.
|
||||
|
||||
class QCurve from Geom2dGcc
|
||||
|
||||
---Purpose: Creates a qualified 2d line.
|
||||
|
||||
uses Position from GccEnt,
|
||||
Curve from Geom2dAdaptor
|
||||
|
||||
is
|
||||
|
||||
Create(Curve : Curve from Geom2dAdaptor;
|
||||
Qualifier : Position from GccEnt )
|
||||
returns QCurve from Geom2dGcc;
|
||||
-- is private;
|
||||
|
||||
Qualified(me) returns Curve from Geom2dAdaptor
|
||||
is static;
|
||||
|
||||
Qualifier(me) returns Position from GccEnt
|
||||
is static;
|
||||
|
||||
IsUnqualified(me) returns Boolean from Standard
|
||||
is static;
|
||||
---Purpose: Returns true if the solution is unqualified and false in the
|
||||
-- other cases.
|
||||
|
||||
IsEnclosing(me) returns Boolean from Standard
|
||||
is static;
|
||||
---Purpose: Returns true if the solution is Enclosing the Curv and false in
|
||||
-- the other cases.
|
||||
|
||||
IsEnclosed(me) returns Boolean from Standard
|
||||
is static;
|
||||
---Purpose: Returns true if the solution is Enclosed in the Curv and false in
|
||||
-- the other cases.
|
||||
|
||||
IsOutside(me) returns Boolean from Standard
|
||||
is static;
|
||||
---Purpose: Returns true if the solution is Outside the Curv and false in
|
||||
-- the other cases.
|
||||
|
||||
fields
|
||||
|
||||
TheQualifier : Position from GccEnt;
|
||||
TheQualified : Curve from Geom2dAdaptor;
|
||||
|
||||
end QCurve;
|
||||
|
||||
|
54
src/Geom2dGcc/Geom2dGcc_QCurve.cxx
Normal file
54
src/Geom2dGcc/Geom2dGcc_QCurve.cxx
Normal file
@@ -0,0 +1,54 @@
|
||||
// Copyright (c) 1995-1999 Matra Datavision
|
||||
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
||||
//
|
||||
// This file is part of Open CASCADE Technology software library.
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or modify it under
|
||||
// the terms of the GNU Lesser General Public License version 2.1 as published
|
||||
// by the Free Software Foundation, with special exception defined in the file
|
||||
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <Geom2dGcc_QCurve.ixx>
|
||||
|
||||
//#include <Geom2dAdaptor_Curve.hxx>
|
||||
|
||||
Geom2dAdaptor_Curve Geom2dGcc_QCurve::
|
||||
Qualified () const { return TheQualified; }
|
||||
|
||||
GccEnt_Position Geom2dGcc_QCurve::
|
||||
Qualifier () const { return TheQualifier; }
|
||||
|
||||
Standard_Boolean Geom2dGcc_QCurve::
|
||||
IsUnqualified () const {
|
||||
if (TheQualifier == GccEnt_unqualified ) { return Standard_True; }
|
||||
else { return Standard_False; }
|
||||
}
|
||||
|
||||
Standard_Boolean Geom2dGcc_QCurve::
|
||||
IsEnclosing () const {
|
||||
if (TheQualifier == GccEnt_enclosing) { return Standard_True; }
|
||||
else { return Standard_False; }
|
||||
}
|
||||
|
||||
Standard_Boolean Geom2dGcc_QCurve::
|
||||
IsEnclosed () const {
|
||||
if (TheQualifier == GccEnt_enclosed) { return Standard_True; }
|
||||
else { return Standard_False; }
|
||||
}
|
||||
|
||||
Standard_Boolean Geom2dGcc_QCurve::
|
||||
IsOutside () const {
|
||||
if (TheQualifier == GccEnt_outside) { return Standard_True; }
|
||||
else { return Standard_False; }
|
||||
}
|
||||
|
||||
Geom2dGcc_QCurve::
|
||||
Geom2dGcc_QCurve (const Geom2dAdaptor_Curve& Curve,
|
||||
const GccEnt_Position Qualifier) {
|
||||
TheQualified = Curve;
|
||||
TheQualifier = Qualifier;
|
||||
}
|
Reference in New Issue
Block a user