Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepGeom / StepGeom_CompositeCurve.cxx
CommitLineData
7fd59977 1#include <StepGeom_CompositeCurve.ixx>
2
3
4StepGeom_CompositeCurve::StepGeom_CompositeCurve () {}
5
6void StepGeom_CompositeCurve::Init(
7 const Handle(TCollection_HAsciiString)& aName)
8{
9
10 StepRepr_RepresentationItem::Init(aName);
11}
12
13void StepGeom_CompositeCurve::Init(
14 const Handle(TCollection_HAsciiString)& aName,
15 const Handle(StepGeom_HArray1OfCompositeCurveSegment)& aSegments,
16 const StepData_Logical aSelfIntersect)
17{
18 // --- classe own fields ---
19 segments = aSegments;
20 selfIntersect = aSelfIntersect;
21 // --- classe inherited fields ---
22 StepRepr_RepresentationItem::Init(aName);
23}
24
25
26void StepGeom_CompositeCurve::SetSegments(const Handle(StepGeom_HArray1OfCompositeCurveSegment)& aSegments)
27{
28 segments = aSegments;
29}
30
31Handle(StepGeom_HArray1OfCompositeCurveSegment) StepGeom_CompositeCurve::Segments() const
32{
33 return segments;
34}
35
36Handle(StepGeom_CompositeCurveSegment) StepGeom_CompositeCurve::SegmentsValue(const Standard_Integer num) const
37{
38 return segments->Value(num);
39}
40
41Standard_Integer StepGeom_CompositeCurve::NbSegments () const
42{
43 if (segments.IsNull()) return 0;
44 return segments->Length();
45}
46
47void StepGeom_CompositeCurve::SetSelfIntersect(const StepData_Logical aSelfIntersect)
48{
49 selfIntersect = aSelfIntersect;
50}
51
52StepData_Logical StepGeom_CompositeCurve::SelfIntersect() const
53{
54 return selfIntersect;
55}