1 #include <StepRepr_Representation.ixx>
4 StepRepr_Representation::StepRepr_Representation () {}
6 void StepRepr_Representation::Init(
7 const Handle(TCollection_HAsciiString)& aName,
8 const Handle(StepRepr_HArray1OfRepresentationItem)& aItems,
9 const Handle(StepRepr_RepresentationContext)& aContextOfItems)
11 // --- classe own fields ---
14 contextOfItems = aContextOfItems;
18 void StepRepr_Representation::SetName(const Handle(TCollection_HAsciiString)& aName)
23 Handle(TCollection_HAsciiString) StepRepr_Representation::Name() const
28 void StepRepr_Representation::SetItems(const Handle(StepRepr_HArray1OfRepresentationItem)& aItems)
33 Handle(StepRepr_HArray1OfRepresentationItem) StepRepr_Representation::Items() const
38 Handle(StepRepr_RepresentationItem) StepRepr_Representation::ItemsValue(const Standard_Integer num) const
40 return items->Value(num);
43 Standard_Integer StepRepr_Representation::NbItems () const
45 if (items.IsNull()) return 0;
46 return items->Length();
49 void StepRepr_Representation::SetContextOfItems(const Handle(StepRepr_RepresentationContext)& aContextOfItems)
51 contextOfItems = aContextOfItems;
54 Handle(StepRepr_RepresentationContext) StepRepr_Representation::ContextOfItems() const
56 return contextOfItems;