0024166: Unable to create file with "Save" menu of voxeldemo Qt sample
[occt.git] / src / IntImp / IntImp_Int2S.lxx
CommitLineData
b311480e 1// Copyright (c) 1995-1999 Matra Datavision
2// Copyright (c) 1999-2012 OPEN CASCADE SAS
3//
4// The content of this file is subject to the Open CASCADE Technology Public
5// License Version 6.5 (the "License"). You may not use the content of this file
6// except in compliance with the License. Please obtain a copy of the License
7// at http://www.opencascade.org and read it completely before using this file.
8//
9// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
10// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
11//
12// The Original Code and all software distributed under the License is
13// distributed on an "AS IS" basis, without warranty of any kind, and the
14// Initial Developer hereby disclaims all such warranties, including without
15// limitation, any warranties of merchantability, fitness for a particular
16// purpose or non-infringement. Please see the License for the specific terms
17// and conditions governing the rights and limitations under the License.
18
7fd59977 19#include <StdFail_NotDone.hxx>
20#include <StdFail_UndefinedDerivative.hxx>
21#include <Standard_DomainError.hxx>
22
23
24inline Standard_Boolean IntImp_Int2S::IsDone()const { return done;}
25
26inline Standard_Boolean IntImp_Int2S::IsEmpty() const
27{
28 if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::IsEmpty() ");
29 return empty;
30}
31
32inline const IntSurf_PntOn2S& IntImp_Int2S::Point() const
33{
34 if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::Point() ");
35 if (empty) Standard_DomainError::Raise(" IntImp_Int2S::Point() ");
36 return pint;
37}
38
39inline Standard_Boolean IntImp_Int2S::IsTangent () const {
40
41 if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::IsTangent () ");
42 if (empty) Standard_DomainError::Raise(" IntImp_Int2S::IsTangent () ");
43 return tangent;
44}
45
46inline const gp_Dir& IntImp_Int2S::Direction () const {
47
48 if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::Direction () ");
49 if (empty) Standard_DomainError::Raise(" IntImp_Int2S::Direction () ");
50 if (tangent) StdFail_UndefinedDerivative::Raise
51 (" IntImp_Int2S::Direction () ");
52 return d3d;
53}
54
55inline const gp_Dir2d& IntImp_Int2S::DirectionOnS1 () const {
56
57 if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::DirectionOnS1 () ");
58 if (empty) Standard_DomainError::Raise(" IntImp_Int2S::DirectionOnS1 () ");
59 if (tangent) StdFail_UndefinedDerivative::Raise
60 (" IntImp_Int2S::DirectionOnS1 () ");
61 return d2d1;
62}
63
64inline const gp_Dir2d& IntImp_Int2S::DirectionOnS2 () const {
65
66 if (!done) StdFail_NotDone::Raise(" IntImp_Int2S::DirectionOnS2 () ");
67 if (empty) Standard_DomainError::Raise(" IntImp_Int2S::DirectionOnS2 () ");
68 if (tangent) StdFail_UndefinedDerivative::Raise
69 (" IntImp_Int2S::DirectionOnS2 () ");
70 return d2d2;
71}
72
73
74inline IntImp_TheFunction& IntImp_Int2S::Function() {
75 return myZerParFunc;
76}
77