Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepVisual / StepVisual_TextStyleWithBoxCharacteristics.cxx
1 #include <StepVisual_TextStyleWithBoxCharacteristics.ixx>
2
3
4 StepVisual_TextStyleWithBoxCharacteristics::StepVisual_TextStyleWithBoxCharacteristics ()  {}
5
6 void StepVisual_TextStyleWithBoxCharacteristics::Init(
7         const Handle(TCollection_HAsciiString)& aName,
8         const Handle(StepVisual_TextStyleForDefinedFont)& aCharacterAppearance)
9 {
10
11         StepVisual_TextStyle::Init(aName, aCharacterAppearance);
12 }
13
14 void StepVisual_TextStyleWithBoxCharacteristics::Init(
15         const Handle(TCollection_HAsciiString)& aName,
16         const Handle(StepVisual_TextStyleForDefinedFont)& aCharacterAppearance,
17         const Handle(StepVisual_HArray1OfBoxCharacteristicSelect)& aCharacteristics)
18 {
19         // --- classe own fields ---
20         characteristics = aCharacteristics;
21         // --- classe inherited fields ---
22         StepVisual_TextStyle::Init(aName, aCharacterAppearance);
23 }
24
25
26 void StepVisual_TextStyleWithBoxCharacteristics::SetCharacteristics(const Handle(StepVisual_HArray1OfBoxCharacteristicSelect)& aCharacteristics)
27 {
28         characteristics = aCharacteristics;
29 }
30
31 Handle(StepVisual_HArray1OfBoxCharacteristicSelect) StepVisual_TextStyleWithBoxCharacteristics::Characteristics() const
32 {
33         return characteristics;
34 }
35
36 StepVisual_BoxCharacteristicSelect StepVisual_TextStyleWithBoxCharacteristics::CharacteristicsValue(const Standard_Integer num) const
37 {
38         return characteristics->Value(num);
39 }
40
41 Standard_Integer StepVisual_TextStyleWithBoxCharacteristics::NbCharacteristics () const
42 {
43         return characteristics->Length();
44 }