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