blob: c63fd8f032336ae65776ef123c273d2bae3231ef (
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
|
#include <StepGeom_Polyline.ixx>
StepGeom_Polyline::StepGeom_Polyline () {}
void StepGeom_Polyline::Init(
const Handle(TCollection_HAsciiString)& aName)
{
StepRepr_RepresentationItem::Init(aName);
}
void StepGeom_Polyline::Init(
const Handle(TCollection_HAsciiString)& aName,
const Handle(StepGeom_HArray1OfCartesianPoint)& aPoints)
{
// --- classe own fields ---
points = aPoints;
// --- classe inherited fields ---
StepRepr_RepresentationItem::Init(aName);
}
void StepGeom_Polyline::SetPoints(const Handle(StepGeom_HArray1OfCartesianPoint)& aPoints)
{
points = aPoints;
}
Handle(StepGeom_HArray1OfCartesianPoint) StepGeom_Polyline::Points() const
{
return points;
}
Handle(StepGeom_CartesianPoint) StepGeom_Polyline::PointsValue(const Standard_Integer num) const
{
return points->Value(num);
}
Standard_Integer StepGeom_Polyline::NbPoints () const
{
if (points.IsNull()) return 0;
return points->Length();
}
|