0026377: Passing Handle objects as arguments to functions as non-const reference...
[occt.git] / src / ChFi2d / ChFi2d_Builder.lxx
... / ...
CommitLineData
1// Created on: 1995-06-12
2// Created by: Philippe DERVIEUX
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#include <TopoDS.hxx>
18#include <TopoDS_Shape.hxx>
19#include <TopoDS_Vertex.hxx>
20#include <TopoDS_Edge.hxx>
21#include <TopoDS_Wire.hxx>
22#include <TopoDS_Face.hxx>
23
24
25//=======================================================================
26//function : Result
27//purpose :
28//=======================================================================
29
30inline TopoDS_Face ChFi2d_Builder::Result() const
31{
32 TopoDS_Face aFace = newFace;
33 aFace.Orientation(refFace.Orientation());
34 return aFace;
35}
36
37//=======================================================================
38//function : IsModified
39//purpose :
40//=======================================================================
41
42 inline Standard_Boolean ChFi2d_Builder::IsModified
43 (const TopoDS_Edge& E) const
44{
45 return history.IsBound(E);
46}
47
48//=======================================================================
49//function : FilletEdges
50//purpose :
51//=======================================================================
52
53 inline const TopTools_SequenceOfShape& ChFi2d_Builder::FilletEdges() const
54{
55 return fillets;
56}
57
58//=======================================================================
59//function : ChamferEdges
60//purpose :
61//=======================================================================
62
63 inline const TopTools_SequenceOfShape& ChFi2d_Builder::ChamferEdges() const
64{
65 return chamfers;
66}
67
68//=======================================================================
69//function : NbFillet
70//purpose :
71//=======================================================================
72
73 inline Standard_Integer ChFi2d_Builder::NbFillet() const
74{
75 return fillets.Length();
76}
77
78//=======================================================================
79//function : NbChamfer
80//purpose :
81//=======================================================================
82
83 inline Standard_Integer ChFi2d_Builder::NbChamfer() const
84{
85 return chamfers.Length();
86}
87
88//=======================================================================
89//function : HasDescendant
90//purpose :
91//=======================================================================
92
93 inline Standard_Boolean ChFi2d_Builder::HasDescendant
94 (const TopoDS_Edge& E) const
95{
96 return history.IsBound(E);
97}
98
99//=======================================================================
100//function : DescendantEdge
101//purpose :
102//=======================================================================
103
104inline const TopoDS_Edge& ChFi2d_Builder::DescendantEdge(const TopoDS_Edge& E) const
105{
106 return TopoDS::Edge(history.Find(E));
107} // DescendantEdge
108
109
110//=======================================================================
111//function : Status
112//purpose :
113//=======================================================================
114
115 inline ChFi2d_ConstructionError ChFi2d_Builder::Status() const
116{
117 return status;
118}