Back to home page

EIC code displayed by LXR

 
 

    


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 inline void IntPatch_Line::SetValue(const bool Uiso1,
0018                                     const bool Viso1,
0019                                     const bool Uiso2,
0020                                     const bool Viso2)
0021 {
0022   uS1 = Uiso1;
0023   vS1 = Viso1;
0024   uS2 = Uiso2;
0025   vS2 = Viso2;
0026 }
0027 
0028 inline IntPatch_IType IntPatch_Line::ArcType() const
0029 {
0030   return typ;
0031 }
0032 
0033 inline bool IntPatch_Line::IsTangent() const
0034 {
0035 
0036   return tg;
0037 }
0038 
0039 inline IntSurf_TypeTrans IntPatch_Line::TransitionOnS1() const
0040 {
0041 
0042   return tS1;
0043 }
0044 
0045 inline IntSurf_TypeTrans IntPatch_Line::TransitionOnS2() const
0046 {
0047 
0048   return tS2;
0049 }
0050 
0051 inline IntSurf_Situation IntPatch_Line::SituationS1() const
0052 {
0053 
0054   if (tS1 != IntSurf_Touch)
0055   {
0056     throw Standard_DomainError();
0057   }
0058   return sit1;
0059 }
0060 
0061 inline IntSurf_Situation IntPatch_Line::SituationS2() const
0062 {
0063 
0064   if (tS2 != IntSurf_Touch)
0065   {
0066     throw Standard_DomainError();
0067   }
0068   return sit2;
0069 }
0070 
0071 inline bool IntPatch_Line::IsUIsoOnS1() const
0072 {
0073 
0074   return uS1;
0075 }
0076 
0077 inline bool IntPatch_Line::IsVIsoOnS1() const
0078 {
0079 
0080   return vS1;
0081 }
0082 
0083 inline bool IntPatch_Line::IsUIsoOnS2() const
0084 {
0085 
0086   return uS2;
0087 }
0088 
0089 inline bool IntPatch_Line::IsVIsoOnS2() const
0090 {
0091 
0092   return vS2;
0093 }