Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepVisual / StepVisual_SurfaceStyleParameterLine.cxx
CommitLineData
7fd59977 1#include <StepVisual_SurfaceStyleParameterLine.ixx>
2
3
4StepVisual_SurfaceStyleParameterLine::StepVisual_SurfaceStyleParameterLine () {}
5
6void StepVisual_SurfaceStyleParameterLine::Init(
7 const Handle(StepVisual_CurveStyle)& aStyleOfParameterLines,
8 const Handle(StepVisual_HArray1OfDirectionCountSelect)& aDirectionCounts)
9{
10 // --- classe own fields ---
11 styleOfParameterLines = aStyleOfParameterLines;
12 directionCounts = aDirectionCounts;
13}
14
15
16void StepVisual_SurfaceStyleParameterLine::SetStyleOfParameterLines(const Handle(StepVisual_CurveStyle)& aStyleOfParameterLines)
17{
18 styleOfParameterLines = aStyleOfParameterLines;
19}
20
21Handle(StepVisual_CurveStyle) StepVisual_SurfaceStyleParameterLine::StyleOfParameterLines() const
22{
23 return styleOfParameterLines;
24}
25
26void StepVisual_SurfaceStyleParameterLine::SetDirectionCounts(const Handle(StepVisual_HArray1OfDirectionCountSelect)& aDirectionCounts)
27{
28 directionCounts = aDirectionCounts;
29}
30
31Handle(StepVisual_HArray1OfDirectionCountSelect) StepVisual_SurfaceStyleParameterLine::DirectionCounts() const
32{
33 return directionCounts;
34}
35
36StepVisual_DirectionCountSelect StepVisual_SurfaceStyleParameterLine::DirectionCountsValue(const Standard_Integer num) const
37{
38 return directionCounts->Value(num);
39}
40
41Standard_Integer StepVisual_SurfaceStyleParameterLine::NbDirectionCounts () const
42{
43 return directionCounts->Length();
44}