0029915: Porting to VC 2017 : Regressions in Modeling Algorithms on VC 2017
[occt.git] / src / BRepFilletAPI / BRepFilletAPI_LocalOperation.hxx
CommitLineData
42cf5bc1 1// Created on: 1998-01-29
2// Created by: Laurent BOURESCHE
3// Copyright (c) 1998-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 _BRepFilletAPI_LocalOperation_HeaderFile
18#define _BRepFilletAPI_LocalOperation_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <BRepBuilderAPI_MakeShape.hxx>
25#include <Standard_Integer.hxx>
26#include <Standard_Real.hxx>
27#include <Standard_Boolean.hxx>
28#include <ChFiDS_SecHArray1.hxx>
29class TopoDS_Edge;
30class TopoDS_Vertex;
31
32
33//! Construction of fillets on the edges of a Shell.
34class BRepFilletAPI_LocalOperation : public BRepBuilderAPI_MakeShape
35{
36public:
37
38 DEFINE_STANDARD_ALLOC
39
40
41 //! Adds a contour in the builder (builds a
42 //! contour of tangent edges).
43 Standard_EXPORT virtual void Add (const TopoDS_Edge& E) = 0;
44
45 //! Reset the contour of index IC, there is nomore
46 //! information in the contour.
47 Standard_EXPORT virtual void ResetContour (const Standard_Integer IC) = 0;
48
49 //! Number of contours.
50 Standard_EXPORT virtual Standard_Integer NbContours() const = 0;
51
52 //! Returns the index of the contour containing the edge
53 //! E, returns 0 if E doesn't belong to any contour.
54 Standard_EXPORT virtual Standard_Integer Contour (const TopoDS_Edge& E) const = 0;
55
56 //! Number of Edges in the contour I.
57 Standard_EXPORT virtual Standard_Integer NbEdges (const Standard_Integer I) const = 0;
58
59 //! Returns the Edge J in the contour I.
60 Standard_EXPORT virtual const TopoDS_Edge& Edge (const Standard_Integer I, const Standard_Integer J) const = 0;
61
62 //! remove the contour containing the Edge E.
63 Standard_EXPORT virtual void Remove (const TopoDS_Edge& E) = 0;
64
65 //! returns the length the contour of index IC.
66 Standard_EXPORT virtual Standard_Real Length (const Standard_Integer IC) const = 0;
67
68 //! Returns the first Vertex of the contour of index IC.
69 Standard_EXPORT virtual TopoDS_Vertex FirstVertex (const Standard_Integer IC) const = 0;
70
71 //! Returns the last Vertex of the contour of index IC.
72 Standard_EXPORT virtual TopoDS_Vertex LastVertex (const Standard_Integer IC) const = 0;
73
74 //! returns the abscissa of the vertex V on
75 //! the contour of index IC.
76 Standard_EXPORT virtual Standard_Real Abscissa (const Standard_Integer IC, const TopoDS_Vertex& V) const = 0;
77
78 //! returns the relative abscissa([0.,1.]) of the
79 //! vertex V on the contour of index IC.
80 Standard_EXPORT virtual Standard_Real RelativeAbscissa (const Standard_Integer IC, const TopoDS_Vertex& V) const = 0;
81
82 //! returns true if the contour of index IC is closed
83 //! an tangent.
84 Standard_EXPORT virtual Standard_Boolean ClosedAndTangent (const Standard_Integer IC) const = 0;
85
86 //! returns true if the contour of index IC is closed
87 Standard_EXPORT virtual Standard_Boolean Closed (const Standard_Integer IC) const = 0;
88
89 //! Reset all the fields updated by Build operation and
90 //! leave the algorithm in the same state than before
91 //! build call. It allows contours and radius
92 //! modifications to build the result another time.
93 Standard_EXPORT virtual void Reset() = 0;
94
95 Standard_EXPORT virtual void Simulate (const Standard_Integer IC) = 0;
96
97 Standard_EXPORT virtual Standard_Integer NbSurf (const Standard_Integer IC) const = 0;
98
99 Standard_EXPORT virtual Handle(ChFiDS_SecHArray1) Sect (const Standard_Integer IC, const Standard_Integer IS) const = 0;
100
101
102
103
104protected:
105
106
107
108
109
110private:
111
112
113
114
115
116};
117
118
119
120
121
122
123
124#endif // _BRepFilletAPI_LocalOperation_HeaderFile