summaryrefslogtreecommitdiff
path: root/src/StepVisual/StepVisual_SurfaceSideStyle.cxx
blob: 9f2edd86b1762b3cab9a4e9acd43d20983805a67 (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
#include <StepVisual_SurfaceSideStyle.ixx>


StepVisual_SurfaceSideStyle::StepVisual_SurfaceSideStyle ()  {}

void StepVisual_SurfaceSideStyle::Init(
	const Handle(TCollection_HAsciiString)& aName,
	const Handle(StepVisual_HArray1OfSurfaceStyleElementSelect)& aStyles)
{
	// --- classe own fields ---
	name = aName;
	styles = aStyles;
}


void StepVisual_SurfaceSideStyle::SetName(const Handle(TCollection_HAsciiString)& aName)
{
	name = aName;
}

Handle(TCollection_HAsciiString) StepVisual_SurfaceSideStyle::Name() const
{
	return name;
}

void StepVisual_SurfaceSideStyle::SetStyles(const Handle(StepVisual_HArray1OfSurfaceStyleElementSelect)& aStyles)
{
	styles = aStyles;
}

Handle(StepVisual_HArray1OfSurfaceStyleElementSelect) StepVisual_SurfaceSideStyle::Styles() const
{
	return styles;
}

StepVisual_SurfaceStyleElementSelect StepVisual_SurfaceSideStyle::StylesValue(const Standard_Integer num) const
{
	return styles->Value(num);
}

Standard_Integer StepVisual_SurfaceSideStyle::NbStyles () const
{
	return styles->Length();
}