Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepVisual / StepVisual_CurveStyleFont.cxx
CommitLineData
7fd59977 1#include <StepVisual_CurveStyleFont.ixx>
2
3
4StepVisual_CurveStyleFont::StepVisual_CurveStyleFont () {}
5
6void StepVisual_CurveStyleFont::Init(
7 const Handle(TCollection_HAsciiString)& aName,
8 const Handle(StepVisual_HArray1OfCurveStyleFontPattern)& aPatternList)
9{
10 // --- classe own fields ---
11 name = aName;
12 patternList = aPatternList;
13}
14
15
16void StepVisual_CurveStyleFont::SetName(const Handle(TCollection_HAsciiString)& aName)
17{
18 name = aName;
19}
20
21Handle(TCollection_HAsciiString) StepVisual_CurveStyleFont::Name() const
22{
23 return name;
24}
25
26void StepVisual_CurveStyleFont::SetPatternList(const Handle(StepVisual_HArray1OfCurveStyleFontPattern)& aPatternList)
27{
28 patternList = aPatternList;
29}
30
31Handle(StepVisual_HArray1OfCurveStyleFontPattern) StepVisual_CurveStyleFont::PatternList() const
32{
33 return patternList;
34}
35
36Handle(StepVisual_CurveStyleFontPattern) StepVisual_CurveStyleFont::PatternListValue(const Standard_Integer num) const
37{
38 return patternList->Value(num);
39}
40
41Standard_Integer StepVisual_CurveStyleFont::NbPatternList () const
42{
43 if (patternList.IsNull()) return 0;
44 return patternList->Length();
45}