Warning, /include/opencascade/TopOpeBRep_LineInter.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1993-11-10
0002 // Created by: Jean Yves LEBEY
0003 // Copyright (c) 1993-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016
0017 #include <IntPatch_Line.hxx>
0018
0019 //=======================================================================
0020 // function : TopOpeBRep_LineInter
0021 // purpose :
0022 //=======================================================================
0023
0024 inline TopOpeBRep_LineInter::TopOpeBRep_LineInter()
0025 : myOK(Standard_True),
0026 myIndex(0),
0027 myNbVPoint(0),
0028 myIsVClosed(Standard_False),
0029 myHasVPonR(Standard_False),
0030 myINL(Standard_False),
0031 myVPBDefined(Standard_False),
0032 myVPF(0),
0033 myVPL(0),
0034 myVPN(0),
0035 myTypeLineCurve(TopOpeBRep_OTHERTYPE),
0036 myexF1(0),
0037 myexF2(0)
0038 // myLineTonF1, myLineTonF2
0039 {
0040 }
0041
0042 //=======================================================================
0043 // function : SetFaces
0044 // purpose :
0045 //=======================================================================
0046
0047 inline void TopOpeBRep_LineInter::SetFaces(const TopoDS_Face& F1, const TopoDS_Face& F2)
0048 {
0049 myF1 = F1;
0050 myF2 = F2;
0051 }
0052
0053 //=======================================================================
0054 // function : TypeLineCurve
0055 // purpose :
0056 //=======================================================================
0057
0058 inline TopOpeBRep_TypeLineCurve TopOpeBRep_LineInter::TypeLineCurve() const
0059 {
0060 return myTypeLineCurve;
0061 }
0062
0063 //=======================================================================
0064 // function : NbVPoint
0065 // purpose :
0066 //=======================================================================
0067
0068 inline Standard_Integer TopOpeBRep_LineInter::NbVPoint() const
0069 {
0070 return myNbVPoint;
0071 }
0072
0073 //=======================================================================
0074 // function : INL
0075 // purpose :
0076 //=======================================================================
0077
0078 inline Standard_Boolean TopOpeBRep_LineInter::INL() const
0079 {
0080 return myINL;
0081 }
0082
0083 //=======================================================================
0084 // function : IsVClosed
0085 // purpose :
0086 //=======================================================================
0087
0088 inline Standard_Boolean TopOpeBRep_LineInter::IsVClosed() const
0089 {
0090 return myIsVClosed;
0091 }
0092
0093 //=======================================================================
0094 // function : HasVPonR
0095 // purpose :
0096 //=======================================================================
0097
0098 inline Standard_Boolean TopOpeBRep_LineInter::HasVPonR() const
0099 {
0100 return myHasVPonR;
0101 }
0102
0103 //=======================================================================
0104 // function : TransitionOnS1
0105 // purpose :
0106 //=======================================================================
0107
0108 inline IntSurf_TypeTrans TopOpeBRep_LineInter::TransitionOnS1() const
0109 {
0110 return myIL->TransitionOnS1();
0111 }
0112
0113 //=======================================================================
0114 // function : TransitionOnS2
0115 // purpose :
0116 //=======================================================================
0117
0118 inline IntSurf_TypeTrans TopOpeBRep_LineInter::TransitionOnS2() const
0119 {
0120 return myIL->TransitionOnS2();
0121 }
0122
0123 //=======================================================================
0124 // function : SituationS1
0125 // purpose :
0126 //=======================================================================
0127
0128 inline IntSurf_Situation TopOpeBRep_LineInter::SituationS1() const
0129 {
0130 return myIL->SituationS1();
0131 }
0132
0133 //=======================================================================
0134 // function : SituationS2
0135 // purpose :
0136 //=======================================================================
0137
0138 inline IntSurf_Situation TopOpeBRep_LineInter::SituationS2() const
0139 {
0140 return myIL->SituationS2();
0141 }
0142
0143 //=======================================================================
0144 // function : LineW
0145 // purpose :
0146 //=======================================================================
0147
0148 inline const Handle(IntPatch_WLine)& TopOpeBRep_LineInter::LineW() const
0149 {
0150 return myILW;
0151 }
0152
0153 //=======================================================================
0154 // function : LineG
0155 // purpose :
0156 //=======================================================================
0157
0158 inline const Handle(IntPatch_GLine)& TopOpeBRep_LineInter::LineG() const
0159 {
0160 return myILG;
0161 }
0162
0163 //=======================================================================
0164 // function : LineR
0165 // purpose :
0166 //=======================================================================
0167
0168 inline const Handle(IntPatch_RLine)& TopOpeBRep_LineInter::LineR() const
0169 {
0170 return myILR;
0171 }
0172
0173 //=======================================================================
0174 // function : Index
0175 // purpose : trace
0176 //=======================================================================
0177
0178 inline void TopOpeBRep_LineInter::Index(const Standard_Integer I)
0179 {
0180 myIndex = I;
0181 }
0182
0183 //=======================================================================
0184 // function : Index
0185 // purpose : trace
0186 //=======================================================================
0187
0188 inline Standard_Integer TopOpeBRep_LineInter::Index() const
0189 {
0190 return myIndex;
0191 }
0192
0193 //=======================================================================
0194 // function : OK
0195 // purpose :
0196 //=======================================================================
0197
0198 inline Standard_Boolean TopOpeBRep_LineInter::OK() const
0199 {
0200 return myOK;
0201 }