1 // Created on: 1993-11-18
2 // Created by: Isabelle GRIGNON
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
19 //=======================================================================
20 //function : SetFirstStatus
22 //=======================================================================
24 inline void ChFiDS_Spine::SetFirstStatus(const ChFiDS_State S)
30 //=======================================================================
31 //function : SetLastStatus
33 //=======================================================================
35 inline void ChFiDS_Spine::SetLastStatus(const ChFiDS_State S)
39 //=======================================================================
40 //function : FirstStatus
42 //=======================================================================
44 inline ChFiDS_State ChFiDS_Spine::FirstStatus()const
50 //=======================================================================
51 //function : LastStatus
53 //=======================================================================
55 inline ChFiDS_State ChFiDS_Spine::LastStatus()const
61 //=======================================================================
62 //function : SetStatus
64 //=======================================================================
66 inline void ChFiDS_Spine::SetStatus(const ChFiDS_State S,
67 const Standard_Boolean IsFirst)
69 if(IsFirst) firstState = S;
72 //=======================================================================
75 //=======================================================================
77 inline ChFiDS_State ChFiDS_Spine::Status(const Standard_Boolean IsFirst)const
79 if (IsFirst) return firstState;
80 else return lastState;
83 //=======================================================================
84 //function : SetTangencyExtremity
86 //=======================================================================
88 inline void ChFiDS_Spine::SetTangencyExtremity(const Standard_Boolean IsTangency,
89 const Standard_Boolean IsFirst)
91 if(IsFirst) firstistgt = IsTangency ;
92 else lastistgt = IsTangency;
94 //=======================================================================
95 //function : IsTangencyExtremity
97 //=======================================================================
99 inline Standard_Boolean
100 ChFiDS_Spine::IsTangencyExtremity(const Standard_Boolean IsFirst)const
102 if (IsFirst) return firstistgt;
103 else return lastistgt;
106 //=======================================================================
109 //=======================================================================
111 inline Standard_Integer ChFiDS_Spine::NbEdges() const
113 return spine.Length();
117 //=======================================================================
120 //=======================================================================
122 inline const TopoDS_Edge& ChFiDS_Spine::Edges(const Standard_Integer I) const
124 return TopoDS::Edge(spine.Value(I));
127 //=======================================================================
128 //function : OffsetEdges
130 //=======================================================================
132 inline const TopoDS_Edge& ChFiDS_Spine::OffsetEdges(const Standard_Integer I) const
134 return TopoDS::Edge(offsetspine.Value(I));
137 //=======================================================================
138 //function : SetEdges
140 //=======================================================================
142 inline void ChFiDS_Spine::SetEdges(const TopoDS_Edge& E)
147 //=======================================================================
148 //function : SetOffsetEdges
150 //=======================================================================
152 inline void ChFiDS_Spine::SetOffsetEdges(const TopoDS_Edge& E)
154 offsetspine.Append(E);
157 //=======================================================================
158 //function : PutInFirst
160 //=======================================================================
162 inline void ChFiDS_Spine::PutInFirst(const TopoDS_Edge& E)
164 spine.InsertBefore(1,E);
167 //=======================================================================
168 //function : PutInFirstOffset
170 //=======================================================================
172 inline void ChFiDS_Spine::PutInFirstOffset(const TopoDS_Edge& E)
174 offsetspine.InsertBefore(1,E);
177 //=======================================================================
178 //function : CurrentIndexOfElementarySpine
180 //=======================================================================
181 inline Standard_Integer ChFiDS_Spine::CurrentIndexOfElementarySpine() const
186 //=======================================================================
189 //=======================================================================
191 inline ChFiDS_ChamfMode ChFiDS_Spine::Mode() const