7fd59977 |
1 | #include <StepGeom_CompositeCurve.ixx> |
2 | |
3 | |
4 | StepGeom_CompositeCurve::StepGeom_CompositeCurve () {} |
5 | |
6 | void StepGeom_CompositeCurve::Init( |
7 | const Handle(TCollection_HAsciiString)& aName) |
8 | { |
9 | |
10 | StepRepr_RepresentationItem::Init(aName); |
11 | } |
12 | |
13 | void 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 | |
26 | void StepGeom_CompositeCurve::SetSegments(const Handle(StepGeom_HArray1OfCompositeCurveSegment)& aSegments) |
27 | { |
28 | segments = aSegments; |
29 | } |
30 | |
31 | Handle(StepGeom_HArray1OfCompositeCurveSegment) StepGeom_CompositeCurve::Segments() const |
32 | { |
33 | return segments; |
34 | } |
35 | |
36 | Handle(StepGeom_CompositeCurveSegment) StepGeom_CompositeCurve::SegmentsValue(const Standard_Integer num) const |
37 | { |
38 | return segments->Value(num); |
39 | } |
40 | |
41 | Standard_Integer StepGeom_CompositeCurve::NbSegments () const |
42 | { |
43 | if (segments.IsNull()) return 0; |
44 | return segments->Length(); |
45 | } |
46 | |
47 | void StepGeom_CompositeCurve::SetSelfIntersect(const StepData_Logical aSelfIntersect) |
48 | { |
49 | selfIntersect = aSelfIntersect; |
50 | } |
51 | |
52 | StepData_Logical StepGeom_CompositeCurve::SelfIntersect() const |
53 | { |
54 | return selfIntersect; |
55 | } |