File indexing completed on 2025-01-18 10:05:24
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _TopOpeBRep_LineInter_HeaderFile
0018 #define _TopOpeBRep_LineInter_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Standard_Boolean.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <TopOpeBRep_TypeLineCurve.hxx>
0027 #include <TopOpeBRep_WPointInter.hxx>
0028 #include <TopOpeBRep_HArray1OfVPointInter.hxx>
0029 #include <TopoDS_Face.hxx>
0030 #include <TopOpeBRepDS_Transition.hxx>
0031 #include <TopoDS_Shape.hxx>
0032 #include <Standard_Real.hxx>
0033 #include <IntSurf_TypeTrans.hxx>
0034 #include <IntSurf_Situation.hxx>
0035 #include <Standard_OStream.hxx>
0036 class IntPatch_Line;
0037 class IntPatch_ALine;
0038 class IntPatch_RLine;
0039 class IntPatch_WLine;
0040 class IntPatch_GLine;
0041 class BRepAdaptor_Surface;
0042 class TopOpeBRep_VPointInter;
0043 class Geom_Curve;
0044 class TCollection_AsciiString;
0045 class TopOpeBRep_Bipoint;
0046
0047
0048
0049 class TopOpeBRep_LineInter
0050 {
0051 public:
0052
0053 DEFINE_STANDARD_ALLOC
0054
0055
0056 TopOpeBRep_LineInter();
0057
0058 Standard_EXPORT void SetLine (const Handle(IntPatch_Line)& L, const BRepAdaptor_Surface& S1, const BRepAdaptor_Surface& S2);
0059
0060 void SetFaces (const TopoDS_Face& F1, const TopoDS_Face& F2);
0061
0062 TopOpeBRep_TypeLineCurve TypeLineCurve() const;
0063
0064 Standard_Integer NbVPoint() const;
0065
0066 Standard_EXPORT const TopOpeBRep_VPointInter& VPoint (const Standard_Integer I) const;
0067
0068 Standard_EXPORT TopOpeBRep_VPointInter& ChangeVPoint (const Standard_Integer I);
0069
0070 Standard_EXPORT void SetINL();
0071
0072 Standard_Boolean INL() const;
0073
0074 Standard_EXPORT void SetIsVClosed();
0075
0076 Standard_Boolean IsVClosed() const;
0077
0078 Standard_EXPORT void SetOK (const Standard_Boolean B);
0079
0080 Standard_Boolean OK() const;
0081
0082 Standard_EXPORT void SetHasVPonR();
0083
0084 Standard_Boolean HasVPonR() const;
0085
0086 Standard_EXPORT void SetVPBounds();
0087
0088 Standard_EXPORT void VPBounds (Standard_Integer& f, Standard_Integer& l, Standard_Integer& n) const;
0089
0090 Standard_EXPORT Standard_Boolean IsPeriodic() const;
0091
0092 Standard_EXPORT Standard_Real Period() const;
0093
0094 Standard_EXPORT void Bounds (Standard_Real& f, Standard_Real& l) const;
0095
0096 Standard_EXPORT Standard_Boolean HasVInternal();
0097
0098 Standard_EXPORT Standard_Integer NbWPoint() const;
0099
0100 Standard_EXPORT const TopOpeBRep_WPointInter& WPoint (const Standard_Integer I);
0101
0102 IntSurf_TypeTrans TransitionOnS1() const;
0103
0104 IntSurf_TypeTrans TransitionOnS2() const;
0105
0106 IntSurf_Situation SituationS1() const;
0107
0108 IntSurf_Situation SituationS2() const;
0109
0110 Standard_EXPORT Handle(Geom_Curve) Curve() const;
0111
0112 Standard_EXPORT Handle(Geom_Curve) Curve (const Standard_Real parmin, const Standard_Real parmax) const;
0113
0114
0115 Standard_EXPORT const TopoDS_Shape& Arc() const;
0116
0117
0118
0119 Standard_EXPORT Standard_Boolean ArcIsEdge (const Standard_Integer I) const;
0120
0121 const Handle(IntPatch_WLine)& LineW() const;
0122
0123 const Handle(IntPatch_GLine)& LineG() const;
0124
0125 const Handle(IntPatch_RLine)& LineR() const;
0126
0127 Standard_EXPORT Standard_Boolean HasFirstPoint() const;
0128
0129 Standard_EXPORT Standard_Boolean HasLastPoint() const;
0130
0131 Standard_EXPORT void ComputeFaceFaceTransition();
0132
0133 Standard_EXPORT const TopOpeBRepDS_Transition& FaceFaceTransition (const Standard_Integer I) const;
0134
0135 void Index (const Standard_Integer I);
0136
0137 Standard_Integer Index() const;
0138
0139 Standard_EXPORT void DumpType() const;
0140
0141 Standard_EXPORT void DumpVPoint (const Standard_Integer I, const TCollection_AsciiString& s1, const TCollection_AsciiString& s2) const;
0142
0143 Standard_EXPORT void DumpBipoint (const TopOpeBRep_Bipoint& B, const TCollection_AsciiString& s1, const TCollection_AsciiString& s2) const;
0144
0145 Standard_EXPORT void SetTraceIndex (const Standard_Integer exF1, const Standard_Integer exF2);
0146
0147 Standard_EXPORT void GetTraceIndex (Standard_Integer& exF1, Standard_Integer& exF2) const;
0148
0149 Standard_EXPORT Standard_OStream& DumpLineTransitions (Standard_OStream& OS) const;
0150
0151
0152
0153
0154 protected:
0155
0156
0157
0158
0159
0160 private:
0161
0162
0163
0164 Standard_Boolean myOK;
0165 Standard_Integer myIndex;
0166 Standard_Integer myNbVPoint;
0167 Standard_Boolean myIsVClosed;
0168 Standard_Boolean myHasVPonR;
0169 Standard_Boolean myINL;
0170 Standard_Boolean myVPBDefined;
0171 Standard_Integer myVPF;
0172 Standard_Integer myVPL;
0173 Standard_Integer myVPN;
0174 TopOpeBRep_TypeLineCurve myTypeLineCurve;
0175 Handle(IntPatch_Line) myIL;
0176 Handle(IntPatch_ALine) myILA;
0177 Handle(IntPatch_RLine) myILR;
0178 Handle(IntPatch_WLine) myILW;
0179 Handle(IntPatch_GLine) myILG;
0180 TopOpeBRep_WPointInter myCurrentWP;
0181 Handle(TopOpeBRep_HArray1OfVPointInter) myHAVP;
0182 TopoDS_Face myF1;
0183 TopoDS_Face myF2;
0184 TopOpeBRepDS_Transition myLineTonF1;
0185 TopOpeBRepDS_Transition myLineTonF2;
0186 TopoDS_Shape myNullShape;
0187 Standard_Integer myexF1;
0188 Standard_Integer myexF2;
0189
0190
0191 };
0192
0193
0194 #include <TopOpeBRep_LineInter.lxx>
0195
0196
0197
0198
0199
0200 #endif