7fd59977 |
1 | #include <StepVisual_CompositeText.ixx> |
2 | |
3 | |
4 | StepVisual_CompositeText::StepVisual_CompositeText () {} |
5 | |
6 | void StepVisual_CompositeText::Init( |
7 | const Handle(TCollection_HAsciiString)& aName) |
8 | { |
9 | |
10 | StepRepr_RepresentationItem::Init(aName); |
11 | } |
12 | |
13 | void StepVisual_CompositeText::Init( |
14 | const Handle(TCollection_HAsciiString)& aName, |
15 | const Handle(StepVisual_HArray1OfTextOrCharacter)& aCollectedText) |
16 | { |
17 | // --- classe own fields --- |
18 | collectedText = aCollectedText; |
19 | // --- classe inherited fields --- |
20 | StepRepr_RepresentationItem::Init(aName); |
21 | } |
22 | |
23 | |
24 | void StepVisual_CompositeText::SetCollectedText(const Handle(StepVisual_HArray1OfTextOrCharacter)& aCollectedText) |
25 | { |
26 | collectedText = aCollectedText; |
27 | } |
28 | |
29 | Handle(StepVisual_HArray1OfTextOrCharacter) StepVisual_CompositeText::CollectedText() const |
30 | { |
31 | return collectedText; |
32 | } |
33 | |
34 | StepVisual_TextOrCharacter StepVisual_CompositeText::CollectedTextValue(const Standard_Integer num) const |
35 | { |
36 | return collectedText->Value(num); |
37 | } |
38 | |
39 | Standard_Integer StepVisual_CompositeText::NbCollectedText () const |
40 | { |
41 | return collectedText->Length(); |
42 | } |