1 // Copyright (c) 1995-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 #include <StdFail_NotDone.hxx>
16 #include <StdFail_UndefinedDerivative.hxx>
17 #include <Standard_DomainError.hxx>
20 inline Standard_Boolean IntImp_Int2S::IsDone()const { return done;}
22 inline Standard_Boolean IntImp_Int2S::IsEmpty() const
24 if (!done) throw StdFail_NotDone(" IntImp_Int2S::IsEmpty() ");
28 inline const IntSurf_PntOn2S& IntImp_Int2S::Point() const
30 if (!done) throw StdFail_NotDone(" IntImp_Int2S::Point() ");
31 if (empty) throw Standard_DomainError(" IntImp_Int2S::Point() ");
35 inline Standard_Boolean IntImp_Int2S::IsTangent () const {
37 if (!done) throw StdFail_NotDone(" IntImp_Int2S::IsTangent () ");
38 if (empty) throw Standard_DomainError(" IntImp_Int2S::IsTangent () ");
42 inline const gp_Dir& IntImp_Int2S::Direction () const {
44 if (!done) throw StdFail_NotDone(" IntImp_Int2S::Direction () ");
45 if (empty) throw Standard_DomainError(" IntImp_Int2S::Direction () ");
46 if (tangent) throw StdFail_UndefinedDerivative(" IntImp_Int2S::Direction () ");
50 inline const gp_Dir2d& IntImp_Int2S::DirectionOnS1 () const {
52 if (!done) throw StdFail_NotDone(" IntImp_Int2S::DirectionOnS1 () ");
53 if (empty) throw Standard_DomainError(" IntImp_Int2S::DirectionOnS1 () ");
54 if (tangent) throw StdFail_UndefinedDerivative(" IntImp_Int2S::DirectionOnS1 () ");
58 inline const gp_Dir2d& IntImp_Int2S::DirectionOnS2 () const {
60 if (!done) throw StdFail_NotDone(" IntImp_Int2S::DirectionOnS2 () ");
61 if (empty) throw Standard_DomainError(" IntImp_Int2S::DirectionOnS2 () ");
62 if (tangent) throw StdFail_UndefinedDerivative(" IntImp_Int2S::DirectionOnS2 () ");
67 inline IntImp_TheFunction& IntImp_Int2S::Function() {
71 inline IntSurf_PntOn2S& IntImp_Int2S::ChangePoint()