blob: a36c979a8bc309ad7d2fc240ece98fbb6971b2d6 (
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_GlobalUncertaintyAssignedContext.ixx>
StepRepr_GlobalUncertaintyAssignedContext::StepRepr_GlobalUncertaintyAssignedContext () {}
void StepRepr_GlobalUncertaintyAssignedContext::Init(
const Handle(TCollection_HAsciiString)& aContextIdentifier,
const Handle(TCollection_HAsciiString)& aContextType)
{
StepRepr_RepresentationContext::Init(aContextIdentifier, aContextType);
}
void StepRepr_GlobalUncertaintyAssignedContext::Init(
const Handle(TCollection_HAsciiString)& aContextIdentifier,
const Handle(TCollection_HAsciiString)& aContextType,
const Handle(StepBasic_HArray1OfUncertaintyMeasureWithUnit)& aUncertainty)
{
// --- classe own fields ---
uncertainty = aUncertainty;
// --- classe inherited fields ---
StepRepr_RepresentationContext::Init(aContextIdentifier, aContextType);
}
void StepRepr_GlobalUncertaintyAssignedContext::SetUncertainty(const Handle(StepBasic_HArray1OfUncertaintyMeasureWithUnit)& aUncertainty)
{
uncertainty = aUncertainty;
}
Handle(StepBasic_HArray1OfUncertaintyMeasureWithUnit) StepRepr_GlobalUncertaintyAssignedContext::Uncertainty() const
{
return uncertainty;
}
Handle(StepBasic_UncertaintyMeasureWithUnit) StepRepr_GlobalUncertaintyAssignedContext::UncertaintyValue(const Standard_Integer num) const
{
return uncertainty->Value(num);
}
Standard_Integer StepRepr_GlobalUncertaintyAssignedContext::NbUncertainty () const
{
if (uncertainty.IsNull()) return 0;
return uncertainty->Length();
}
|