Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepShape / StepShape_EdgeLoop.cxx
1 #include <StepShape_EdgeLoop.ixx>
2
3
4 StepShape_EdgeLoop::StepShape_EdgeLoop ()  {}
5
6 void StepShape_EdgeLoop::Init(const Handle(TCollection_HAsciiString)& aName)
7 {
8   StepRepr_RepresentationItem::Init(aName);
9 }
10
11 void StepShape_EdgeLoop::Init
12 (const Handle(TCollection_HAsciiString)& aName,
13  const Handle(StepShape_HArray1OfOrientedEdge)& aEdgeList)
14 {
15   // --- class inherited fields ---
16   StepRepr_RepresentationItem::Init(aName);
17   // --- class own fields ---
18   edgeList = aEdgeList;
19 }
20
21
22 void StepShape_EdgeLoop::SetEdgeList(const Handle(StepShape_HArray1OfOrientedEdge)& aEdgeList)
23 {
24         edgeList = aEdgeList;
25 }
26
27 Handle(StepShape_HArray1OfOrientedEdge) StepShape_EdgeLoop::EdgeList() const
28 {
29         return edgeList;
30 }
31
32 Handle(StepShape_OrientedEdge) StepShape_EdgeLoop::EdgeListValue(const Standard_Integer num) const
33 {
34         return edgeList->Value(num);
35 }
36
37 Standard_Integer StepShape_EdgeLoop::NbEdgeList () const
38 {
39         if (edgeList.IsNull()) return 0;
40         return edgeList->Length();
41 }