0024428: Implementation of LGPL license
[occt.git] / src / StepShape / StepShape_LoopAndPath.cxx
CommitLineData
973c2be1 1// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 2//
973c2be1 3// This file is part of Open CASCADE Technology software library.
b311480e 4//
973c2be1 5// This library is free software; you can redistribute it and / or modify it
6// under the terms of the GNU Lesser General Public version 2.1 as published
7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
b311480e 10//
973c2be1 11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
b311480e 13
7fd59977 14#include <StepShape_LoopAndPath.ixx>
15
16#include <StepShape_Loop.hxx>
17
18#include <StepShape_Path.hxx>
19
20
21StepShape_LoopAndPath::StepShape_LoopAndPath () {}
22
23void StepShape_LoopAndPath::Init(
24 const Handle(TCollection_HAsciiString)& aName)
25{
26
27 StepRepr_RepresentationItem::Init(aName);
28}
29
30void StepShape_LoopAndPath::Init(
31 const Handle(TCollection_HAsciiString)& aName,
32 const Handle(StepShape_Loop)& aLoop,
33 const Handle(StepShape_Path)& aPath)
34{
35 // --- classe own fields ---
36 loop = aLoop;
37 path = aPath;
38 // --- classe inherited fields ---
39 StepRepr_RepresentationItem::Init(aName);
40}
41
42
43void StepShape_LoopAndPath::Init(
44 const Handle(TCollection_HAsciiString)& aName,
45 const Handle(StepShape_HArray1OfOrientedEdge)& aEdgeList)
46{
47 // --- classe inherited fields ---
48
49 StepRepr_RepresentationItem::Init(aName);
50
51 // --- ANDOR componant fields ---
52
53 loop = new StepShape_Loop();
54 loop->Init(aName);
55
56 // --- ANDOR componant fields ---
57
58 path = new StepShape_Path();
59 path->Init(aName, aEdgeList);
60}
61
62
63void StepShape_LoopAndPath::SetLoop(const Handle(StepShape_Loop)& aLoop)
64{
65 loop = aLoop;
66}
67
68Handle(StepShape_Loop) StepShape_LoopAndPath::Loop() const
69{
70 return loop;
71}
72
73void StepShape_LoopAndPath::SetPath(const Handle(StepShape_Path)& aPath)
74{
75 path = aPath;
76}
77
78Handle(StepShape_Path) StepShape_LoopAndPath::Path() const
79{
80 return path;
81}
82
83 //--- Specific Methods for AND classe field access ---
84
85
86 //--- Specific Methods for AND classe field access ---
87
88
89void StepShape_LoopAndPath::SetEdgeList(const Handle(StepShape_HArray1OfOrientedEdge)& aEdgeList)
90{
91 path->SetEdgeList(aEdgeList);
92}
93
94Handle(StepShape_HArray1OfOrientedEdge) StepShape_LoopAndPath::EdgeList() const
95{
96 return path->EdgeList();
97}
98
99Handle(StepShape_OrientedEdge) StepShape_LoopAndPath::EdgeListValue(const Standard_Integer num) const
100{
101 return path->EdgeListValue(num);
102}
103
104Standard_Integer StepShape_LoopAndPath::NbEdgeList () const
105{
106 return path->NbEdgeList();
107}