summaryrefslogtreecommitdiff
path: root/src/StepVisual/StepVisual_TextLiteral.cxx
blob: bb7be76945d281dbb519cfa7043ca623701bfeb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#include <StepVisual_TextLiteral.ixx>


StepVisual_TextLiteral::StepVisual_TextLiteral ()  {}

void StepVisual_TextLiteral::Init(
	const Handle(TCollection_HAsciiString)& aName)
{

	StepRepr_RepresentationItem::Init(aName);
}

void StepVisual_TextLiteral::Init(
	const Handle(TCollection_HAsciiString)& aName,
	const Handle(TCollection_HAsciiString)& aLiteral,
	const StepGeom_Axis2Placement& aPlacement,
	const Handle(TCollection_HAsciiString)& aAlignment,
	const StepVisual_TextPath aPath,
	const StepVisual_FontSelect& aFont)
{
	// --- classe own fields ---
	literal = aLiteral;
	placement = aPlacement;
	alignment = aAlignment;
	path = aPath;
	font = aFont;
	// --- classe inherited fields ---
	StepRepr_RepresentationItem::Init(aName);
}


void StepVisual_TextLiteral::SetLiteral(const Handle(TCollection_HAsciiString)& aLiteral)
{
	literal = aLiteral;
}

Handle(TCollection_HAsciiString) StepVisual_TextLiteral::Literal() const
{
	return literal;
}

void StepVisual_TextLiteral::SetPlacement(const StepGeom_Axis2Placement& aPlacement)
{
	placement = aPlacement;
}

StepGeom_Axis2Placement StepVisual_TextLiteral::Placement() const
{
	return placement;
}

void StepVisual_TextLiteral::SetAlignment(const Handle(TCollection_HAsciiString)& aAlignment)
{
	alignment = aAlignment;
}

Handle(TCollection_HAsciiString) StepVisual_TextLiteral::Alignment() const
{
	return alignment;
}

void StepVisual_TextLiteral::SetPath(const StepVisual_TextPath aPath)
{
	path = aPath;
}

StepVisual_TextPath StepVisual_TextLiteral::Path() const
{
	return path;
}

void StepVisual_TextLiteral::SetFont(const StepVisual_FontSelect& aFont)
{
	font = aFont;
}

StepVisual_FontSelect StepVisual_TextLiteral::Font() const
{
	return font;
}