Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/IntImp_Int2S.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 <StdFail_NotDone.hxx>
0016 #include <StdFail_UndefinedDerivative.hxx>
0017 #include <Standard_DomainError.hxx>
0018 
0019 inline bool IntImp_Int2S::IsDone() const
0020 {
0021   return done;
0022 }
0023 
0024 inline bool IntImp_Int2S::IsEmpty() const
0025 {
0026   if (!done)
0027     throw StdFail_NotDone(" IntImp_Int2S::IsEmpty() ");
0028   return empty;
0029 }
0030 
0031 inline const IntSurf_PntOn2S& IntImp_Int2S::Point() const
0032 {
0033   if (!done)
0034     throw StdFail_NotDone(" IntImp_Int2S::Point() ");
0035   if (empty)
0036     throw Standard_DomainError(" IntImp_Int2S::Point() ");
0037   return pint;
0038 }
0039 
0040 inline bool IntImp_Int2S::IsTangent() const
0041 {
0042 
0043   if (!done)
0044     throw StdFail_NotDone(" IntImp_Int2S::IsTangent () ");
0045   if (empty)
0046     throw Standard_DomainError(" IntImp_Int2S::IsTangent () ");
0047   return tangent;
0048 }
0049 
0050 inline const gp_Dir& IntImp_Int2S::Direction() const
0051 {
0052 
0053   if (!done)
0054     throw StdFail_NotDone(" IntImp_Int2S::Direction () ");
0055   if (empty)
0056     throw Standard_DomainError(" IntImp_Int2S::Direction () ");
0057   if (tangent)
0058     throw StdFail_UndefinedDerivative(" IntImp_Int2S::Direction () ");
0059   return d3d;
0060 }
0061 
0062 inline const gp_Dir2d& IntImp_Int2S::DirectionOnS1() const
0063 {
0064 
0065   if (!done)
0066     throw StdFail_NotDone(" IntImp_Int2S::DirectionOnS1 () ");
0067   if (empty)
0068     throw Standard_DomainError(" IntImp_Int2S::DirectionOnS1 () ");
0069   if (tangent)
0070     throw StdFail_UndefinedDerivative(" IntImp_Int2S::DirectionOnS1 () ");
0071   return d2d1;
0072 }
0073 
0074 inline const gp_Dir2d& IntImp_Int2S::DirectionOnS2() const
0075 {
0076 
0077   if (!done)
0078     throw StdFail_NotDone(" IntImp_Int2S::DirectionOnS2 () ");
0079   if (empty)
0080     throw Standard_DomainError(" IntImp_Int2S::DirectionOnS2 () ");
0081   if (tangent)
0082     throw StdFail_UndefinedDerivative(" IntImp_Int2S::DirectionOnS2 () ");
0083   return d2d2;
0084 }
0085 
0086 inline IntImp_TheFunction& IntImp_Int2S::Function()
0087 {
0088   return myZerParFunc;
0089 }
0090 
0091 inline IntSurf_PntOn2S& IntImp_Int2S::ChangePoint()
0092 {
0093   return pint;
0094 }