Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepVisual / StepVisual_TextLiteral.cxx
1 #include <StepVisual_TextLiteral.ixx>
2
3
4 StepVisual_TextLiteral::StepVisual_TextLiteral ()  {}
5
6 void StepVisual_TextLiteral::Init(
7         const Handle(TCollection_HAsciiString)& aName)
8 {
9
10         StepRepr_RepresentationItem::Init(aName);
11 }
12
13 void StepVisual_TextLiteral::Init(
14         const Handle(TCollection_HAsciiString)& aName,
15         const Handle(TCollection_HAsciiString)& aLiteral,
16         const StepGeom_Axis2Placement& aPlacement,
17         const Handle(TCollection_HAsciiString)& aAlignment,
18         const StepVisual_TextPath aPath,
19         const StepVisual_FontSelect& aFont)
20 {
21         // --- classe own fields ---
22         literal = aLiteral;
23         placement = aPlacement;
24         alignment = aAlignment;
25         path = aPath;
26         font = aFont;
27         // --- classe inherited fields ---
28         StepRepr_RepresentationItem::Init(aName);
29 }
30
31
32 void StepVisual_TextLiteral::SetLiteral(const Handle(TCollection_HAsciiString)& aLiteral)
33 {
34         literal = aLiteral;
35 }
36
37 Handle(TCollection_HAsciiString) StepVisual_TextLiteral::Literal() const
38 {
39         return literal;
40 }
41
42 void StepVisual_TextLiteral::SetPlacement(const StepGeom_Axis2Placement& aPlacement)
43 {
44         placement = aPlacement;
45 }
46
47 StepGeom_Axis2Placement StepVisual_TextLiteral::Placement() const
48 {
49         return placement;
50 }
51
52 void StepVisual_TextLiteral::SetAlignment(const Handle(TCollection_HAsciiString)& aAlignment)
53 {
54         alignment = aAlignment;
55 }
56
57 Handle(TCollection_HAsciiString) StepVisual_TextLiteral::Alignment() const
58 {
59         return alignment;
60 }
61
62 void StepVisual_TextLiteral::SetPath(const StepVisual_TextPath aPath)
63 {
64         path = aPath;
65 }
66
67 StepVisual_TextPath StepVisual_TextLiteral::Path() const
68 {
69         return path;
70 }
71
72 void StepVisual_TextLiteral::SetFont(const StepVisual_FontSelect& aFont)
73 {
74         font = aFont;
75 }
76
77 StepVisual_FontSelect StepVisual_TextLiteral::Font() const
78 {
79         return font;
80 }