42cf5bc1 |
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> |
42cf5bc1 |
27 | class gp_Vec; |
28 | |
29 | |
30 | class GeomFill_DegeneratedBound; |
31 | DEFINE_STANDARD_HANDLE(GeomFill_DegeneratedBound, GeomFill_Boundary) |
32 | |
33 | //! Description of a degenerated boundary (a point). |
34 | //! Class defining a degenerated boundary for a |
35 | //! constrained filling with a point and no other |
36 | //! constraint. Only used to simulate an ordinary bound, |
a25d5aaa |
37 | //! may not be useful and desapear soon. |
42cf5bc1 |
38 | class GeomFill_DegeneratedBound : public GeomFill_Boundary |
39 | { |
40 | |
41 | public: |
42 | |
43 | |
44 | Standard_EXPORT GeomFill_DegeneratedBound(const gp_Pnt& Point, const Standard_Real First, const Standard_Real Last, const Standard_Real Tol3d, const Standard_Real Tolang); |
45 | |
79104795 |
46 | Standard_EXPORT gp_Pnt Value (const Standard_Real U) const Standard_OVERRIDE; |
42cf5bc1 |
47 | |
79104795 |
48 | Standard_EXPORT void D1 (const Standard_Real U, gp_Pnt& P, gp_Vec& V) const Standard_OVERRIDE; |
42cf5bc1 |
49 | |
79104795 |
50 | 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; |
42cf5bc1 |
51 | |
79104795 |
52 | Standard_EXPORT void Bounds (Standard_Real& First, Standard_Real& Last) const Standard_OVERRIDE; |
42cf5bc1 |
53 | |
79104795 |
54 | Standard_EXPORT Standard_Boolean IsDegenerated() const Standard_OVERRIDE; |
42cf5bc1 |
55 | |
56 | |
57 | |
58 | |
92efcf78 |
59 | DEFINE_STANDARD_RTTIEXT(GeomFill_DegeneratedBound,GeomFill_Boundary) |
42cf5bc1 |
60 | |
61 | protected: |
62 | |
63 | |
64 | |
65 | |
66 | private: |
67 | |
68 | |
69 | gp_Pnt myPoint; |
70 | Standard_Real myFirst; |
71 | Standard_Real myLast; |
72 | |
73 | |
74 | }; |
75 | |
76 | |
77 | |
78 | |
79 | |
80 | |
81 | |
82 | #endif // _GeomFill_DegeneratedBound_HeaderFile |