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 
0020 inline Standard_Boolean IntImp_Int2S::IsDone()const { return done;}
0021 
0022 inline Standard_Boolean IntImp_Int2S::IsEmpty() const
0023 { 
0024   if (!done) throw StdFail_NotDone(" IntImp_Int2S::IsEmpty() ");
0025   return empty;
0026 }
0027 
0028 inline const IntSurf_PntOn2S& IntImp_Int2S::Point() const
0029 { 
0030   if (!done) throw StdFail_NotDone(" IntImp_Int2S::Point() ");
0031   if (empty) throw Standard_DomainError(" IntImp_Int2S::Point() ");
0032   return pint;
0033 }
0034 
0035 inline Standard_Boolean IntImp_Int2S::IsTangent () const {
0036 
0037   if (!done) throw StdFail_NotDone(" IntImp_Int2S::IsTangent () ");
0038   if (empty) throw Standard_DomainError(" IntImp_Int2S::IsTangent () ");
0039   return tangent;
0040 }
0041 
0042 inline const gp_Dir& IntImp_Int2S::Direction () const {
0043 
0044   if (!done) throw StdFail_NotDone(" IntImp_Int2S::Direction () ");
0045   if (empty) throw Standard_DomainError(" IntImp_Int2S::Direction () ");
0046   if (tangent) throw StdFail_UndefinedDerivative(" IntImp_Int2S::Direction () ");
0047   return d3d;
0048 }
0049 
0050 inline const gp_Dir2d& IntImp_Int2S::DirectionOnS1 () const {
0051 
0052   if (!done) throw StdFail_NotDone(" IntImp_Int2S::DirectionOnS1 () ");
0053   if (empty) throw Standard_DomainError(" IntImp_Int2S::DirectionOnS1 () ");
0054   if (tangent) throw StdFail_UndefinedDerivative(" IntImp_Int2S::DirectionOnS1 () ");
0055   return d2d1;
0056 }
0057 
0058 inline const gp_Dir2d& IntImp_Int2S::DirectionOnS2 () const {
0059 
0060   if (!done) throw StdFail_NotDone(" IntImp_Int2S::DirectionOnS2 () ");
0061   if (empty) throw Standard_DomainError(" IntImp_Int2S::DirectionOnS2 () ");
0062   if (tangent) throw StdFail_UndefinedDerivative(" IntImp_Int2S::DirectionOnS2 () ");
0063   return d2d2;
0064 }
0065 
0066 
0067 inline IntImp_TheFunction& IntImp_Int2S::Function()  {
0068   return myZerParFunc;
0069 } 
0070 
0071 inline IntSurf_PntOn2S& IntImp_Int2S::ChangePoint()
0072 {
0073   return pint;
0074 }