summaryrefslogtreecommitdiff
path: root/src/StepVisual/StepVisual_CompositeText.cxx
blob: f1ce0c241087606245e0d2d8ead1d716155f1ca5 (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
#include <StepVisual_CompositeText.ixx>


StepVisual_CompositeText::StepVisual_CompositeText ()  {}

void StepVisual_CompositeText::Init(
	const Handle(TCollection_HAsciiString)& aName)
{

	StepRepr_RepresentationItem::Init(aName);
}

void StepVisual_CompositeText::Init(
	const Handle(TCollection_HAsciiString)& aName,
	const Handle(StepVisual_HArray1OfTextOrCharacter)& aCollectedText)
{
	// --- classe own fields ---
	collectedText = aCollectedText;
	// --- classe inherited fields ---
	StepRepr_RepresentationItem::Init(aName);
}


void StepVisual_CompositeText::SetCollectedText(const Handle(StepVisual_HArray1OfTextOrCharacter)& aCollectedText)
{
	collectedText = aCollectedText;
}

Handle(StepVisual_HArray1OfTextOrCharacter) StepVisual_CompositeText::CollectedText() const
{
	return collectedText;
}

StepVisual_TextOrCharacter StepVisual_CompositeText::CollectedTextValue(const Standard_Integer num) const
{
	return collectedText->Value(num);
}

Standard_Integer StepVisual_CompositeText::NbCollectedText () const
{
	return collectedText->Length();
}