Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepVisual / StepVisual_TextStyleWithBoxCharacteristics.cxx
CommitLineData
7fd59977 1#include <StepVisual_TextStyleWithBoxCharacteristics.ixx>
2
3
4StepVisual_TextStyleWithBoxCharacteristics::StepVisual_TextStyleWithBoxCharacteristics () {}
5
6void 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
14void 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
26void StepVisual_TextStyleWithBoxCharacteristics::SetCharacteristics(const Handle(StepVisual_HArray1OfBoxCharacteristicSelect)& aCharacteristics)
27{
28 characteristics = aCharacteristics;
29}
30
31Handle(StepVisual_HArray1OfBoxCharacteristicSelect) StepVisual_TextStyleWithBoxCharacteristics::Characteristics() const
32{
33 return characteristics;
34}
35
36StepVisual_BoxCharacteristicSelect StepVisual_TextStyleWithBoxCharacteristics::CharacteristicsValue(const Standard_Integer num) const
37{
38 return characteristics->Value(num);
39}
40
41Standard_Integer StepVisual_TextStyleWithBoxCharacteristics::NbCharacteristics () const
42{
43 return characteristics->Length();
44}