Warning, /include/opencascade/IntPatch_Line.lxx is written in an unsupported language. File is not indexed.
0001 // Copyright (c) 1995-1999 Matra Datavision
0002 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0003 //
0004 // This file is part of Open CASCADE Technology software library.
0005 //
0006 // This library is free software; you can redistribute it and/or modify it under
0007 // the terms of the GNU Lesser General Public License version 2.1 as published
0008 // by the Free Software Foundation, with special exception defined in the file
0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0010 // distribution for complete text of the license and disclaimer of any warranty.
0011 //
0012 // Alternatively, this file may be used under the terms of Open CASCADE
0013 // commercial license or contractual agreement.
0014
0015 #include <Standard_DomainError.hxx>
0016
0017
0018 inline void IntPatch_Line::SetValue (const Standard_Boolean Uiso1,
0019 const Standard_Boolean Viso1,
0020 const Standard_Boolean Uiso2,
0021 const Standard_Boolean Viso2) {
0022 uS1 = Uiso1;
0023 vS1 = Viso1;
0024 uS2 = Uiso2;
0025 vS2 = Viso2;
0026 }
0027
0028
0029 inline IntPatch_IType IntPatch_Line::ArcType () const {
0030 return typ;
0031 }
0032
0033 inline Standard_Boolean IntPatch_Line::IsTangent () const {
0034
0035 return tg;
0036 }
0037
0038
0039 inline IntSurf_TypeTrans IntPatch_Line::TransitionOnS1 () const {
0040
0041 return tS1;
0042 }
0043
0044
0045 inline IntSurf_TypeTrans IntPatch_Line::TransitionOnS2 () const {
0046
0047 return tS2;
0048 }
0049
0050
0051 inline IntSurf_Situation IntPatch_Line::SituationS1 () const {
0052
0053 if (tS1 != IntSurf_Touch) {throw Standard_DomainError();}
0054 return sit1;
0055 }
0056
0057
0058 inline IntSurf_Situation IntPatch_Line::SituationS2 () const {
0059
0060 if (tS2 != IntSurf_Touch) {throw Standard_DomainError();}
0061 return sit2;
0062 }
0063
0064
0065 inline Standard_Boolean IntPatch_Line::IsUIsoOnS1 () const {
0066
0067 return uS1;
0068 }
0069
0070
0071 inline Standard_Boolean IntPatch_Line::IsVIsoOnS1 () const {
0072
0073 return vS1;
0074 }
0075
0076
0077 inline Standard_Boolean IntPatch_Line::IsUIsoOnS2 () const {
0078
0079 return uS2;
0080 }
0081
0082
0083
0084 inline Standard_Boolean IntPatch_Line::IsVIsoOnS2 () const {
0085
0086 return vS2;
0087 }