blob: c00c0088d945b69c5f8b535538f6b486b44ae708 (
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
|
#include <StepRepr_GlobalUnitAssignedContext.ixx>
StepRepr_GlobalUnitAssignedContext::StepRepr_GlobalUnitAssignedContext () {}
void StepRepr_GlobalUnitAssignedContext::Init(
const Handle(TCollection_HAsciiString)& aContextIdentifier,
const Handle(TCollection_HAsciiString)& aContextType)
{
StepRepr_RepresentationContext::Init(aContextIdentifier, aContextType);
}
void StepRepr_GlobalUnitAssignedContext::Init(
const Handle(TCollection_HAsciiString)& aContextIdentifier,
const Handle(TCollection_HAsciiString)& aContextType,
const Handle(StepBasic_HArray1OfNamedUnit)& aUnits)
{
// --- classe own fields ---
units = aUnits;
// --- classe inherited fields ---
StepRepr_RepresentationContext::Init(aContextIdentifier, aContextType);
}
void StepRepr_GlobalUnitAssignedContext::SetUnits(const Handle(StepBasic_HArray1OfNamedUnit)& aUnits)
{
units = aUnits;
}
Handle(StepBasic_HArray1OfNamedUnit) StepRepr_GlobalUnitAssignedContext::Units() const
{
return units;
}
Handle(StepBasic_NamedUnit) StepRepr_GlobalUnitAssignedContext::UnitsValue(const Standard_Integer num) const
{
return units->Value(num);
}
Standard_Integer StepRepr_GlobalUnitAssignedContext::NbUnits () const
{
if (units.IsNull()) return 0;
return units->Length();
}
|