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
0021 inline TopOpeBRep_LineInter::TopOpeBRep_LineInter()
0022 : myOK(true),
0023 myIndex(0),
0024 myNbVPoint(0),
0025 myIsVClosed(false),
0026 myHasVPonR(false),
0027 myINL(false),
0028 myVPBDefined(false),
0029 myVPF(0),
0030 myVPL(0),
0031 myVPN(0),
0032 myTypeLineCurve(TopOpeBRep_OTHERTYPE),
0033 myexF1(0),
0034 myexF2(0)
0035 // myLineTonF1, myLineTonF2
0036 {
0037 }
0038
0039 //=================================================================================================
0040
0041 inline void TopOpeBRep_LineInter::SetFaces(const TopoDS_Face& F1, const TopoDS_Face& F2)
0042 {
0043 myF1 = F1;
0044 myF2 = F2;
0045 }
0046
0047 //=================================================================================================
0048
0049 inline TopOpeBRep_TypeLineCurve TopOpeBRep_LineInter::TypeLineCurve() const
0050 {
0051 return myTypeLineCurve;
0052 }
0053
0054 //=================================================================================================
0055
0056 inline int TopOpeBRep_LineInter::NbVPoint() const
0057 {
0058 return myNbVPoint;
0059 }
0060
0061 //=================================================================================================
0062
0063 inline bool TopOpeBRep_LineInter::INL() const
0064 {
0065 return myINL;
0066 }
0067
0068 //=================================================================================================
0069
0070 inline bool TopOpeBRep_LineInter::IsVClosed() const
0071 {
0072 return myIsVClosed;
0073 }
0074
0075 //=================================================================================================
0076
0077 inline bool TopOpeBRep_LineInter::HasVPonR() const
0078 {
0079 return myHasVPonR;
0080 }
0081
0082 //=================================================================================================
0083
0084 inline IntSurf_TypeTrans TopOpeBRep_LineInter::TransitionOnS1() const
0085 {
0086 return myIL->TransitionOnS1();
0087 }
0088
0089 //=================================================================================================
0090
0091 inline IntSurf_TypeTrans TopOpeBRep_LineInter::TransitionOnS2() const
0092 {
0093 return myIL->TransitionOnS2();
0094 }
0095
0096 //=================================================================================================
0097
0098 inline IntSurf_Situation TopOpeBRep_LineInter::SituationS1() const
0099 {
0100 return myIL->SituationS1();
0101 }
0102
0103 //=================================================================================================
0104
0105 inline IntSurf_Situation TopOpeBRep_LineInter::SituationS2() const
0106 {
0107 return myIL->SituationS2();
0108 }
0109
0110 //=================================================================================================
0111
0112 inline const occ::handle<IntPatch_WLine>& TopOpeBRep_LineInter::LineW() const
0113 {
0114 return myILW;
0115 }
0116
0117 //=================================================================================================
0118
0119 inline const occ::handle<IntPatch_GLine>& TopOpeBRep_LineInter::LineG() const
0120 {
0121 return myILG;
0122 }
0123
0124 //=================================================================================================
0125
0126 inline const occ::handle<IntPatch_RLine>& TopOpeBRep_LineInter::LineR() const
0127 {
0128 return myILR;
0129 }
0130
0131 //=================================================================================================
0132
0133 inline void TopOpeBRep_LineInter::Index(const int I)
0134 {
0135 myIndex = I;
0136 }
0137
0138 //=================================================================================================
0139
0140 inline int TopOpeBRep_LineInter::Index() const
0141 {
0142 return myIndex;
0143 }
0144
0145 //=================================================================================================
0146
0147 inline bool TopOpeBRep_LineInter::OK() const
0148 {
0149 return myOK;
0150 }