File indexing completed on 2025-01-18 10:04:13
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _MAT2d_Tool2d_HeaderFile
0018 #define _MAT2d_Tool2d_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <GeomAbs_JoinType.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <MAT2d_DataMapOfIntegerBisec.hxx>
0027 #include <MAT2d_DataMapOfIntegerPnt2d.hxx>
0028 #include <MAT2d_DataMapOfIntegerVec2d.hxx>
0029 #include <TColStd_SequenceOfInteger.hxx>
0030 #include <MAT_Side.hxx>
0031 class MAT2d_Circuit;
0032 class MAT_Bisector;
0033 class Bisector_Bisec;
0034 class Geom2d_Geometry;
0035 class gp_Pnt2d;
0036 class gp_Vec2d;
0037
0038
0039
0040
0041 class MAT2d_Tool2d
0042 {
0043 public:
0044
0045 DEFINE_STANDARD_ALLOC
0046
0047
0048
0049 Standard_EXPORT MAT2d_Tool2d();
0050
0051
0052 Standard_EXPORT void Sense (const MAT_Side aside);
0053
0054 Standard_EXPORT void SetJoinType (const GeomAbs_JoinType aJoinType);
0055
0056
0057
0058
0059 Standard_EXPORT void InitItems (const Handle(MAT2d_Circuit)& aCircuit);
0060
0061
0062 Standard_EXPORT Standard_Integer NumberOfItems() const;
0063
0064
0065 Standard_EXPORT Standard_Real ToleranceOfConfusion() const;
0066
0067
0068
0069
0070
0071 Standard_EXPORT Standard_Integer FirstPoint (const Standard_Integer anitem, Standard_Real& dist);
0072
0073
0074
0075
0076 Standard_EXPORT Standard_Integer TangentBefore (const Standard_Integer anitem, const Standard_Boolean IsOpenResult);
0077
0078
0079
0080
0081 Standard_EXPORT Standard_Integer TangentAfter (const Standard_Integer anitem, const Standard_Boolean IsOpenResult);
0082
0083
0084
0085
0086 Standard_EXPORT Standard_Integer Tangent (const Standard_Integer bisector);
0087
0088
0089 Standard_EXPORT void CreateBisector (const Handle(MAT_Bisector)& abisector);
0090
0091
0092
0093
0094
0095 Standard_EXPORT Standard_Boolean TrimBisector (const Handle(MAT_Bisector)& abisector);
0096
0097
0098
0099
0100
0101 Standard_EXPORT Standard_Boolean TrimBisector (const Handle(MAT_Bisector)& abisector, const Standard_Integer apoint);
0102
0103
0104
0105
0106
0107
0108
0109 Standard_EXPORT Standard_Real IntersectBisector (const Handle(MAT_Bisector)& bisectorone, const Handle(MAT_Bisector)& bisectortwo, Standard_Integer& intpnt);
0110
0111
0112
0113 Standard_EXPORT Standard_Real Distance (const Handle(MAT_Bisector)& abisector, const Standard_Real param1, const Standard_Real param2) const;
0114
0115
0116
0117 Standard_EXPORT void Dump (const Standard_Integer bisector, const Standard_Integer erease) const;
0118
0119
0120
0121 Standard_EXPORT const Bisector_Bisec& GeomBis (const Standard_Integer Index) const;
0122
0123
0124 Standard_EXPORT Handle(Geom2d_Geometry) GeomElt (const Standard_Integer Index) const;
0125
0126
0127 Standard_EXPORT const gp_Pnt2d& GeomPnt (const Standard_Integer Index) const;
0128
0129
0130
0131 Standard_EXPORT const gp_Vec2d& GeomVec (const Standard_Integer Index) const;
0132
0133 Standard_EXPORT Handle(MAT2d_Circuit) Circuit() const;
0134
0135 Standard_EXPORT void BisecFusion (const Standard_Integer Index1, const Standard_Integer Index2);
0136
0137
0138
0139 Standard_EXPORT Bisector_Bisec& ChangeGeomBis (const Standard_Integer Index);
0140
0141
0142
0143
0144 protected:
0145
0146
0147
0148
0149
0150 private:
0151
0152
0153
0154
0155
0156
0157
0158 Standard_EXPORT Standard_Boolean IsSameDistance (const Handle(MAT_Bisector)& bisectorone, const Handle(MAT_Bisector)& bisectortwo, const gp_Pnt2d& apoint, Standard_Real& adistance) const;
0159
0160
0161
0162
0163
0164 Standard_EXPORT Standard_Boolean Projection (const Standard_Integer IndexElt, const gp_Pnt2d& Point, Standard_Real& Distance) const;
0165
0166 Standard_EXPORT void TrimBisec (Bisector_Bisec& Bis, const Standard_Integer IndexEdge, const Standard_Boolean OnLine, const Standard_Integer StartOrEnd) const;
0167
0168
0169 Standard_Real theDirection;
0170 GeomAbs_JoinType theJoinType;
0171 Standard_Integer theNumberOfBisectors;
0172 Standard_Integer theNumberOfPnts;
0173 Standard_Integer theNumberOfVecs;
0174 Handle(MAT2d_Circuit) theCircuit;
0175 MAT2d_DataMapOfIntegerBisec theGeomBisectors;
0176 MAT2d_DataMapOfIntegerPnt2d theGeomPnts;
0177 MAT2d_DataMapOfIntegerVec2d theGeomVecs;
0178 TColStd_SequenceOfInteger theLinesLength;
0179
0180
0181 };
0182
0183
0184
0185
0186
0187
0188
0189 #endif