summaryrefslogtreecommitdiff
path: root/src/StepShape/StepShape_EdgeCurve.cxx
blob: 3eee039051b3609ee9bf5d8a68f28f53a9d09018 (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
#include <StepShape_EdgeCurve.ixx>


StepShape_EdgeCurve::StepShape_EdgeCurve ()  {}

void StepShape_EdgeCurve::Init(
	const Handle(TCollection_HAsciiString)& aName,
	const Handle(StepShape_Vertex)& aEdgeStart,
	const Handle(StepShape_Vertex)& aEdgeEnd)
{

	StepShape_Edge::Init(aName, aEdgeStart, aEdgeEnd);
}

void StepShape_EdgeCurve::Init(
	const Handle(TCollection_HAsciiString)& aName,
	const Handle(StepShape_Vertex)& aEdgeStart,
	const Handle(StepShape_Vertex)& aEdgeEnd,
	const Handle(StepGeom_Curve)& aEdgeGeometry,
	const Standard_Boolean aSameSense)
{
	// --- classe own fields ---
	edgeGeometry = aEdgeGeometry;
	sameSense = aSameSense;
	// --- classe inherited fields ---
	StepShape_Edge::Init(aName, aEdgeStart, aEdgeEnd);
}


void StepShape_EdgeCurve::SetEdgeGeometry(const Handle(StepGeom_Curve)& aEdgeGeometry)
{
	edgeGeometry = aEdgeGeometry;
}

Handle(StepGeom_Curve) StepShape_EdgeCurve::EdgeGeometry() const
{
	return edgeGeometry;
}

void StepShape_EdgeCurve::SetSameSense(const Standard_Boolean aSameSense)
{
	sameSense = aSameSense;
}

Standard_Boolean StepShape_EdgeCurve::SameSense() const
{
	return sameSense;
}