0022627: Change OCCT memory management defaults
[occt.git] / src / StepShape / StepShape_Face.cxx
1 #include <StepShape_Face.ixx>
2
3
4 StepShape_Face::StepShape_Face ()  {}
5
6 void StepShape_Face::Init(
7         const Handle(TCollection_HAsciiString)& aName)
8 {
9
10         StepRepr_RepresentationItem::Init(aName);
11 }
12
13 void StepShape_Face::Init(
14         const Handle(TCollection_HAsciiString)& aName,
15         const Handle(StepShape_HArray1OfFaceBound)& aBounds)
16 {
17         // --- classe own fields ---
18         bounds = aBounds;
19         // --- classe inherited fields ---
20         StepRepr_RepresentationItem::Init(aName);
21 }
22
23
24 void StepShape_Face::SetBounds(const Handle(StepShape_HArray1OfFaceBound)& aBounds)
25 {
26         bounds = aBounds;
27 }
28
29 Handle(StepShape_HArray1OfFaceBound) StepShape_Face::Bounds() const
30 {
31         return bounds;
32 }
33
34 Handle(StepShape_FaceBound) StepShape_Face::BoundsValue(const Standard_Integer num) const
35 {
36         return bounds->Value(num);
37 }
38
39 Standard_Integer StepShape_Face::NbBounds () const
40 {
41         if (bounds.IsNull()) return 0;
42         return bounds->Length();
43 }