1 // Created on: 1995-12-05
2 // Created by: Laurent BOURESCHE
3 // Copyright (c) 1995-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 #ifndef _GeomFill_DegeneratedBound_HeaderFile
18 #define _GeomFill_DegeneratedBound_HeaderFile
19 
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22 
23 #include <gp_Pnt.hxx>
24 #include <Standard_Real.hxx>
25 #include <GeomFill_Boundary.hxx>
26 #include <Standard_Boolean.hxx>
27 class gp_Pnt;
28 class gp_Vec;
29 
30 
31 class GeomFill_DegeneratedBound;
32 DEFINE_STANDARD_HANDLE(GeomFill_DegeneratedBound, GeomFill_Boundary)
33 
34 //! Description of a degenerated boundary (a point).
35 //! Class defining  a degenerated  boundary   for   a
36 //! constrained filling   with  a   point  and  no   other
37 //! constraint. Only used to  simulate an  ordinary bound,
38 //! may not be usefull and desapear soon.
39 class GeomFill_DegeneratedBound : public GeomFill_Boundary
40 {
41 
42 public:
43 
44 
45   Standard_EXPORT GeomFill_DegeneratedBound(const gp_Pnt& Point, const Standard_Real First, const Standard_Real Last, const Standard_Real Tol3d, const Standard_Real Tolang);
46 
47   Standard_EXPORT gp_Pnt Value (const Standard_Real U) const Standard_OVERRIDE;
48 
49   Standard_EXPORT void D1 (const Standard_Real U, gp_Pnt& P, gp_Vec& V) const Standard_OVERRIDE;
50 
51   Standard_EXPORT void Reparametrize (const Standard_Real First, const Standard_Real Last, const Standard_Boolean HasDF, const Standard_Boolean HasDL, const Standard_Real DF, const Standard_Real DL, const Standard_Boolean Rev) Standard_OVERRIDE;
52 
53   Standard_EXPORT void Bounds (Standard_Real& First, Standard_Real& Last) const Standard_OVERRIDE;
54 
55   Standard_EXPORT Standard_Boolean IsDegenerated() const Standard_OVERRIDE;
56 
57 
58 
59 
60   DEFINE_STANDARD_RTTIEXT(GeomFill_DegeneratedBound,GeomFill_Boundary)
61 
62 protected:
63 
64 
65 
66 
67 private:
68 
69 
70   gp_Pnt myPoint;
71   Standard_Real myFirst;
72   Standard_Real myLast;
73 
74 
75 };
76 
77 
78 
79 
80 
81 
82 
83 #endif // _GeomFill_DegeneratedBound_HeaderFile
84