0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / GeomFill / GeomFill_Boundary.hxx
CommitLineData
42cf5bc1 1// Created on: 1995-10-17
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_Boundary_HeaderFile
18#define _GeomFill_Boundary_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <Standard_Real.hxx>
24#include <MMgt_TShared.hxx>
25#include <Standard_Boolean.hxx>
26class gp_Pnt;
27class gp_Vec;
28
29
30class GeomFill_Boundary;
31DEFINE_STANDARD_HANDLE(GeomFill_Boundary, MMgt_TShared)
32
33//! Root class to define a boundary which will form part of a
34//! contour around a gap requiring filling.
35//! Any new type of constrained boundary must inherit this class.
36//! The GeomFill package provides two classes to define constrained boundaries:
37//! - GeomFill_SimpleBound to define an unattached boundary
38//! - GeomFill_BoundWithSurf to define a boundary attached to a surface.
39//! These objects are used to define the boundaries for a
40//! GeomFill_ConstrainedFilling framework.
41class GeomFill_Boundary : public MMgt_TShared
42{
43
44public:
45
46
47 Standard_EXPORT virtual gp_Pnt Value (const Standard_Real U) const = 0;
48
49 Standard_EXPORT virtual void D1 (const Standard_Real U, gp_Pnt& P, gp_Vec& V) const = 0;
50
51 Standard_EXPORT virtual Standard_Boolean HasNormals() const;
52
53 Standard_EXPORT virtual gp_Vec Norm (const Standard_Real U) const;
54
55 Standard_EXPORT virtual void D1Norm (const Standard_Real U, gp_Vec& N, gp_Vec& DN) const;
56
57 Standard_EXPORT virtual 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) = 0;
58
59 Standard_EXPORT void Points (gp_Pnt& PFirst, gp_Pnt& PLast) const;
60
61 Standard_EXPORT virtual void Bounds (Standard_Real& First, Standard_Real& Last) const = 0;
62
63 Standard_EXPORT virtual Standard_Boolean IsDegenerated() const = 0;
64
65 Standard_EXPORT Standard_Real Tol3d() const;
66
67 Standard_EXPORT void Tol3d (const Standard_Real Tol);
68
69 Standard_EXPORT Standard_Real Tolang() const;
70
71 Standard_EXPORT void Tolang (const Standard_Real Tol);
72
73
74
75
76 DEFINE_STANDARD_RTTI(GeomFill_Boundary,MMgt_TShared)
77
78protected:
79
80
81 Standard_EXPORT GeomFill_Boundary(const Standard_Real Tol3d, const Standard_Real Tolang);
82
83
84
85private:
86
87
88 Standard_Real myT3d;
89 Standard_Real myTang;
90
91
92};
93
94
95
96
97
98
99
100#endif // _GeomFill_Boundary_HeaderFile