0031939: Coding - correction of spelling errors in comments
[occt.git] / src / GeomFill / GeomFill_LocationLaw.cxx
1 // Created on: 1997-11-21
2 // Created by: Philippe MANGIN
3 // Copyright (c) 1997-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17
18 #include <Adaptor3d_HCurve.hxx>
19 #include <GeomFill_LocationLaw.hxx>
20 #include <gp_Mat.hxx>
21 #include <gp_Pnt.hxx>
22 #include <gp_Vec.hxx>
23 #include <Standard_NotImplemented.hxx>
24 #include <Standard_OutOfRange.hxx>
25 #include <Standard_Type.hxx>
26
27 IMPLEMENT_STANDARD_RTTIEXT(GeomFill_LocationLaw,Standard_Transient)
28
29 Standard_Boolean GeomFill_LocationLaw::D1(const Standard_Real, gp_Mat&, gp_Vec&,gp_Mat&, gp_Vec&,TColgp_Array1OfPnt2d&,TColgp_Array1OfVec2d&) 
30 {
31   throw Standard_NotImplemented("GeomFill_LocationLaw::D1");
32 }
33
34  Standard_Boolean GeomFill_LocationLaw::D2(const Standard_Real,
35                                            gp_Mat&,gp_Vec&,
36                                            gp_Mat&, gp_Vec&,
37                                            gp_Mat&, gp_Vec&, 
38                                            TColgp_Array1OfPnt2d&,TColgp_Array1OfVec2d&,TColgp_Array1OfVec2d&) 
39 {
40   throw Standard_NotImplemented("GeomFill_LocationLaw::D2");
41 }
42
43  Standard_Integer GeomFill_LocationLaw::Nb2dCurves() const
44 {
45   Standard_Integer N = TraceNumber();
46   if  (HasFirstRestriction()) N++;
47   if  (HasLastRestriction()) N++;
48
49   return N;
50 }
51
52  Standard_Boolean GeomFill_LocationLaw::HasFirstRestriction() const
53 {
54   return Standard_False;
55 }
56
57  Standard_Boolean GeomFill_LocationLaw::HasLastRestriction() const
58 {
59   return Standard_False;
60 }
61
62  Standard_Integer GeomFill_LocationLaw::TraceNumber() const
63 {
64   return 0;
65 }
66
67 //==================================================================
68 //Function : ErrorStatus
69 //Purpose :
70 //==================================================================
71  GeomFill_PipeError GeomFill_LocationLaw::ErrorStatus() const
72 {
73   return GeomFill_PipeOk;
74 }
75
76 // void GeomFill_LocationLaw::Resolution(const Standard_Integer Index,const Standard_Real Tol,Standard_Real& TolU,Standard_Real& TolV) const
77  void GeomFill_LocationLaw::Resolution(const Standard_Integer ,const Standard_Real ,Standard_Real& ,Standard_Real& ) const
78 {
79   throw Standard_NotImplemented("GeomFill_LocationLaw::Resolution");
80 }
81
82  void GeomFill_LocationLaw::SetTolerance(const Standard_Real,
83                                          const Standard_Real ) 
84 {
85  // Ne fait rien !!
86 }
87  Standard_Boolean GeomFill_LocationLaw::IsTranslation(Standard_Real&) const
88 {
89   return Standard_False;
90 }
91
92  Standard_Boolean GeomFill_LocationLaw::IsRotation(Standard_Real&) const
93 {
94   return Standard_False;
95 }
96  void GeomFill_LocationLaw::Rotation(gp_Pnt&) const
97 {
98   throw Standard_NotImplemented("GeomFill_SectionLaw::Rotation");
99 }