File indexing completed on 2025-01-18 10:04:09
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IntPatch_GLine_HeaderFile
0018 #define _IntPatch_GLine_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <gp_Ax2.hxx>
0024 #include <Standard_Integer.hxx>
0025 #include <IntPatch_SequenceOfPoint.hxx>
0026 #include <IntPatch_Line.hxx>
0027 #include <IntSurf_TypeTrans.hxx>
0028 #include <IntSurf_Situation.hxx>
0029 #include <gp_Circ.hxx>
0030 class gp_Lin;
0031 class gp_Circ;
0032 class gp_Elips;
0033 class gp_Parab;
0034 class gp_Hypr;
0035 class IntPatch_Point;
0036
0037
0038 class IntPatch_GLine;
0039 DEFINE_STANDARD_HANDLE(IntPatch_GLine, IntPatch_Line)
0040
0041
0042
0043 class IntPatch_GLine : public IntPatch_Line
0044 {
0045
0046 public:
0047
0048
0049
0050
0051 Standard_EXPORT IntPatch_GLine(const gp_Lin& L, const Standard_Boolean Tang, const IntSurf_TypeTrans Trans1, const IntSurf_TypeTrans Trans2);
0052
0053
0054
0055 Standard_EXPORT IntPatch_GLine(const gp_Lin& L, const Standard_Boolean Tang, const IntSurf_Situation Situ1, const IntSurf_Situation Situ2);
0056
0057
0058
0059 Standard_EXPORT IntPatch_GLine(const gp_Lin& L, const Standard_Boolean Tang);
0060
0061
0062
0063 Standard_EXPORT IntPatch_GLine(const gp_Circ& C, const Standard_Boolean Tang, const IntSurf_TypeTrans Trans1, const IntSurf_TypeTrans Trans2);
0064
0065
0066
0067 Standard_EXPORT IntPatch_GLine(const gp_Circ& C, const Standard_Boolean Tang, const IntSurf_Situation Situ1, const IntSurf_Situation Situ2);
0068
0069
0070
0071 Standard_EXPORT IntPatch_GLine(const gp_Circ& C, const Standard_Boolean Tang);
0072
0073
0074
0075 Standard_EXPORT IntPatch_GLine(const gp_Elips& E, const Standard_Boolean Tang, const IntSurf_TypeTrans Trans1, const IntSurf_TypeTrans Trans2);
0076
0077
0078
0079 Standard_EXPORT IntPatch_GLine(const gp_Elips& E, const Standard_Boolean Tang, const IntSurf_Situation Situ1, const IntSurf_Situation Situ2);
0080
0081
0082
0083 Standard_EXPORT IntPatch_GLine(const gp_Elips& E, const Standard_Boolean Tang);
0084
0085
0086
0087 Standard_EXPORT IntPatch_GLine(const gp_Parab& P, const Standard_Boolean Tang, const IntSurf_TypeTrans Trans1, const IntSurf_TypeTrans Trans2);
0088
0089
0090
0091 Standard_EXPORT IntPatch_GLine(const gp_Parab& P, const Standard_Boolean Tang, const IntSurf_Situation Situ1, const IntSurf_Situation Situ2);
0092
0093
0094
0095 Standard_EXPORT IntPatch_GLine(const gp_Parab& P, const Standard_Boolean Tang);
0096
0097
0098
0099 Standard_EXPORT IntPatch_GLine(const gp_Hypr& H, const Standard_Boolean Tang, const IntSurf_TypeTrans Trans1, const IntSurf_TypeTrans Trans2);
0100
0101
0102
0103 Standard_EXPORT IntPatch_GLine(const gp_Hypr& H, const Standard_Boolean Tang, const IntSurf_Situation Situ1, const IntSurf_Situation Situ2);
0104
0105
0106
0107 Standard_EXPORT IntPatch_GLine(const gp_Hypr& H, const Standard_Boolean Tang);
0108
0109
0110 Standard_EXPORT void AddVertex (const IntPatch_Point& Pnt);
0111
0112
0113
0114 Standard_EXPORT void Replace (const Standard_Integer Index, const IntPatch_Point& Pnt);
0115
0116 void SetFirstPoint (const Standard_Integer IndFirst);
0117
0118 void SetLastPoint (const Standard_Integer IndLast);
0119
0120
0121
0122 gp_Lin Line() const;
0123
0124
0125
0126 gp_Circ Circle() const;
0127
0128
0129
0130 gp_Elips Ellipse() const;
0131
0132
0133
0134 gp_Parab Parabola() const;
0135
0136
0137
0138 gp_Hypr Hyperbola() const;
0139
0140
0141
0142 Standard_Boolean HasFirstPoint() const;
0143
0144
0145
0146 Standard_Boolean HasLastPoint() const;
0147
0148
0149
0150 const IntPatch_Point& FirstPoint() const;
0151
0152
0153
0154 const IntPatch_Point& LastPoint() const;
0155
0156 Standard_Integer NbVertex() const;
0157
0158
0159 const IntPatch_Point& Vertex (const Standard_Integer Index) const;
0160
0161
0162
0163
0164
0165 Standard_EXPORT void ComputeVertexParameters (const Standard_Real Tol);
0166
0167
0168
0169
0170 DEFINE_STANDARD_RTTIEXT(IntPatch_GLine,IntPatch_Line)
0171
0172 protected:
0173
0174
0175
0176
0177 private:
0178
0179
0180 gp_Ax2 pos;
0181 Standard_Real par1;
0182 Standard_Real par2;
0183 Standard_Boolean fipt;
0184 Standard_Boolean lapt;
0185 Standard_Integer indf;
0186 Standard_Integer indl;
0187 IntPatch_SequenceOfPoint svtx;
0188
0189
0190 };
0191
0192
0193 #include <IntPatch_GLine.lxx>
0194
0195
0196
0197
0198
0199 #endif