blob: 845b31fd56690d646196df98fea8920b1089af93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#include <StepVisual_PresentationLayerAssignment.ixx>
StepVisual_PresentationLayerAssignment::StepVisual_PresentationLayerAssignment () {}
void StepVisual_PresentationLayerAssignment::Init(
const Handle(TCollection_HAsciiString)& aName,
const Handle(TCollection_HAsciiString)& aDescription,
const Handle(StepVisual_HArray1OfLayeredItem)& aAssignedItems)
{
// --- classe own fields ---
name = aName;
description = aDescription;
assignedItems = aAssignedItems;
}
void StepVisual_PresentationLayerAssignment::SetName(const Handle(TCollection_HAsciiString)& aName)
{
name = aName;
}
Handle(TCollection_HAsciiString) StepVisual_PresentationLayerAssignment::Name() const
{
return name;
}
void StepVisual_PresentationLayerAssignment::SetDescription(const Handle(TCollection_HAsciiString)& aDescription)
{
description = aDescription;
}
Handle(TCollection_HAsciiString) StepVisual_PresentationLayerAssignment::Description() const
{
return description;
}
void StepVisual_PresentationLayerAssignment::SetAssignedItems(const Handle(StepVisual_HArray1OfLayeredItem)& aAssignedItems)
{
assignedItems = aAssignedItems;
}
Handle(StepVisual_HArray1OfLayeredItem) StepVisual_PresentationLayerAssignment::AssignedItems() const
{
return assignedItems;
}
StepVisual_LayeredItem StepVisual_PresentationLayerAssignment::AssignedItemsValue(const Standard_Integer num) const
{
return assignedItems->Value(num);
}
Standard_Integer StepVisual_PresentationLayerAssignment::NbAssignedItems () const
{
return assignedItems->Length();
}
|