summaryrefslogtreecommitdiff
path: root/src/StepVisual/StepVisual_CurveStyleFont.cxx
blob: a037a220c9f9101b8afd8c117e819d76ac09e353 (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 <StepVisual_CurveStyleFont.ixx>


StepVisual_CurveStyleFont::StepVisual_CurveStyleFont ()  {}

void StepVisual_CurveStyleFont::Init(
	const Handle(TCollection_HAsciiString)& aName,
	const Handle(StepVisual_HArray1OfCurveStyleFontPattern)& aPatternList)
{
	// --- classe own fields ---
	name = aName;
	patternList = aPatternList;
}


void StepVisual_CurveStyleFont::SetName(const Handle(TCollection_HAsciiString)& aName)
{
	name = aName;
}

Handle(TCollection_HAsciiString) StepVisual_CurveStyleFont::Name() const
{
	return name;
}

void StepVisual_CurveStyleFont::SetPatternList(const Handle(StepVisual_HArray1OfCurveStyleFontPattern)& aPatternList)
{
	patternList = aPatternList;
}

Handle(StepVisual_HArray1OfCurveStyleFontPattern) StepVisual_CurveStyleFont::PatternList() const
{
	return patternList;
}

Handle(StepVisual_CurveStyleFontPattern) StepVisual_CurveStyleFont::PatternListValue(const Standard_Integer num) const
{
	return patternList->Value(num);
}

Standard_Integer StepVisual_CurveStyleFont::NbPatternList () const
{
	if (patternList.IsNull()) return 0;
	return patternList->Length();
}