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 : SetTypeOfConcavity
22 //=======================================================================
24 inline void ChFiDS_Spine::SetTypeOfConcavity(const ChFiDS_TypeOfConcavity theType)
26 myTypeOfConcavity = theType;
29 //=======================================================================
30 //function : SetFirstStatus
32 //=======================================================================
34 inline void ChFiDS_Spine::SetFirstStatus(const ChFiDS_State S)
40 //=======================================================================
41 //function : SetLastStatus
43 //=======================================================================
45 inline void ChFiDS_Spine::SetLastStatus(const ChFiDS_State S)
50 //=======================================================================
51 //function : GetTypeOfConcavity
53 //=======================================================================
55 inline ChFiDS_TypeOfConcavity ChFiDS_Spine::GetTypeOfConcavity()const
57 return myTypeOfConcavity;
60 //=======================================================================
61 //function : FirstStatus
63 //=======================================================================
65 inline ChFiDS_State ChFiDS_Spine::FirstStatus()const
71 //=======================================================================
72 //function : LastStatus
74 //=======================================================================
76 inline ChFiDS_State ChFiDS_Spine::LastStatus()const
82 //=======================================================================
83 //function : SetStatus
85 //=======================================================================
87 inline void ChFiDS_Spine::SetStatus(const ChFiDS_State S,
88 const Standard_Boolean IsFirst)
90 if(IsFirst) firstState = S;
93 //=======================================================================
96 //=======================================================================
98 inline ChFiDS_State ChFiDS_Spine::Status(const Standard_Boolean IsFirst)const
100 if (IsFirst) return firstState;
101 else return lastState;
104 //=======================================================================
105 //function : SetTangencyExtremity
107 //=======================================================================
109 inline void ChFiDS_Spine::SetTangencyExtremity(const Standard_Boolean IsTangency,
110 const Standard_Boolean IsFirst)
112 if(IsFirst) firstistgt = IsTangency ;
113 else lastistgt = IsTangency;
115 //=======================================================================
116 //function : IsTangencyExtremity
118 //=======================================================================
120 inline Standard_Boolean
121 ChFiDS_Spine::IsTangencyExtremity(const Standard_Boolean IsFirst)const
123 if (IsFirst) return firstistgt;
124 else return lastistgt;
127 //=======================================================================
130 //=======================================================================
132 inline Standard_Integer ChFiDS_Spine::NbEdges() const
134 return spine.Length();
138 //=======================================================================
141 //=======================================================================
143 inline const TopoDS_Edge& ChFiDS_Spine::Edges(const Standard_Integer I) const
145 return TopoDS::Edge(spine.Value(I));
148 //=======================================================================
149 //function : OffsetEdges
151 //=======================================================================
153 inline const TopoDS_Edge& ChFiDS_Spine::OffsetEdges(const Standard_Integer I) const
155 return TopoDS::Edge(offsetspine.Value(I));
158 //=======================================================================
159 //function : SetEdges
161 //=======================================================================
163 inline void ChFiDS_Spine::SetEdges(const TopoDS_Edge& E)
168 //=======================================================================
169 //function : SetOffsetEdges
171 //=======================================================================
173 inline void ChFiDS_Spine::SetOffsetEdges(const TopoDS_Edge& E)
175 offsetspine.Append(E);
178 //=======================================================================
179 //function : PutInFirst
181 //=======================================================================
183 inline void ChFiDS_Spine::PutInFirst(const TopoDS_Edge& E)
185 spine.InsertBefore(1,E);
188 //=======================================================================
189 //function : PutInFirstOffset
191 //=======================================================================
193 inline void ChFiDS_Spine::PutInFirstOffset(const TopoDS_Edge& E)
195 offsetspine.InsertBefore(1,E);
198 //=======================================================================
199 //function : CurrentIndexOfElementarySpine
201 //=======================================================================
202 inline Standard_Integer ChFiDS_Spine::CurrentIndexOfElementarySpine() const
207 //=======================================================================
210 //=======================================================================
212 inline ChFiDS_ChamfMode ChFiDS_Spine::Mode() const