7fd59977 |
1 | #include <StepRepr_ReprItemAndLengthMeasureWithUnit.ixx> |
2 | |
3 | |
4 | //======================================================================= |
5 | //function : StepRepr_ReprItemAndLengthMeasureWithUnit |
6 | //purpose : |
7 | //======================================================================= |
8 | |
9 | StepRepr_ReprItemAndLengthMeasureWithUnit::StepRepr_ReprItemAndLengthMeasureWithUnit() |
10 | { |
11 | myLengthMeasureWithUnit = new StepBasic_LengthMeasureWithUnit(); |
12 | myMeasureWithUnit = new StepBasic_MeasureWithUnit(); |
13 | myMeasureRepresentationItem = new StepRepr_MeasureRepresentationItem(); |
14 | } |
15 | |
16 | |
17 | //======================================================================= |
18 | //function : Init |
19 | //purpose : |
20 | //======================================================================= |
21 | |
22 | void StepRepr_ReprItemAndLengthMeasureWithUnit::Init |
23 | (const Handle(StepBasic_MeasureWithUnit)& aMWU, |
24 | const Handle(StepRepr_RepresentationItem)& aRI) |
25 | { |
26 | myMeasureWithUnit = aMWU; |
27 | SetName(aRI->Name()); |
28 | } |
29 | |
30 | |
31 | //======================================================================= |
32 | //function : SetLengthMeasureWithUnit |
33 | //purpose : |
34 | //======================================================================= |
35 | |
36 | void StepRepr_ReprItemAndLengthMeasureWithUnit::SetLengthMeasureWithUnit |
37 | (const Handle(StepBasic_LengthMeasureWithUnit)& aLMWU) |
38 | { |
39 | myLengthMeasureWithUnit = aLMWU; |
40 | } |
41 | |
42 | |
43 | //======================================================================= |
44 | //function : GetLengthMeasureWithUnit |
45 | //purpose : |
46 | //======================================================================= |
47 | |
48 | Handle(StepBasic_LengthMeasureWithUnit) StepRepr_ReprItemAndLengthMeasureWithUnit:: |
49 | GetLengthMeasureWithUnit() const |
50 | { |
51 | return myLengthMeasureWithUnit; |
52 | } |
53 | |
54 | |
55 | //======================================================================= |
56 | //function : GetMeasureRepresentationItem |
57 | //purpose : |
58 | //======================================================================= |
59 | |
60 | Handle(StepRepr_MeasureRepresentationItem) StepRepr_ReprItemAndLengthMeasureWithUnit:: |
61 | GetMeasureRepresentationItem() const |
62 | { |
63 | return myMeasureRepresentationItem; |
64 | } |
65 | |
66 | |
67 | //======================================================================= |
68 | //function : SetMeasureWithUnit |
69 | //purpose : |
70 | //======================================================================= |
71 | |
72 | void StepRepr_ReprItemAndLengthMeasureWithUnit::SetMeasureWithUnit |
73 | (const Handle(StepBasic_MeasureWithUnit)& aMWU) |
74 | { |
75 | myMeasureWithUnit = aMWU; |
76 | } |
77 | |
78 | |
79 | //======================================================================= |
80 | //function : GetMeasureWithUnit |
81 | //purpose : |
82 | //======================================================================= |
83 | |
84 | Handle(StepBasic_MeasureWithUnit) StepRepr_ReprItemAndLengthMeasureWithUnit:: |
85 | GetMeasureWithUnit() const |
86 | { |
87 | return myMeasureWithUnit; |
88 | } |
89 | |
90 | |
91 | //======================================================================= |
92 | //function : GetRepresentationItem |
93 | //purpose : |
94 | //======================================================================= |
95 | |
96 | Handle(StepRepr_RepresentationItem) StepRepr_ReprItemAndLengthMeasureWithUnit:: |
97 | GetRepresentationItem() const |
98 | { |
99 | Handle(StepRepr_RepresentationItem) RI = new StepRepr_RepresentationItem(); |
100 | RI->Init(Name()); |
101 | return RI; |
102 | } |
103 | |
104 | |