blob: b66029cdff9d833a8101132ddea651a25d5542f3 (
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
|
#include <StepShape_Sphere.ixx>
StepShape_Sphere::StepShape_Sphere () {}
void StepShape_Sphere::Init(
const Handle(TCollection_HAsciiString)& aName)
{
StepRepr_RepresentationItem::Init(aName);
}
void StepShape_Sphere::Init(
const Handle(TCollection_HAsciiString)& aName,
const Standard_Real aRadius,
const Handle(StepGeom_Point)& aCentre)
{
// --- classe own fields ---
radius = aRadius;
centre = aCentre;
// --- classe inherited fields ---
StepRepr_RepresentationItem::Init(aName);
}
void StepShape_Sphere::SetRadius(const Standard_Real aRadius)
{
radius = aRadius;
}
Standard_Real StepShape_Sphere::Radius() const
{
return radius;
}
void StepShape_Sphere::SetCentre(const Handle(StepGeom_Point)& aCentre)
{
centre = aCentre;
}
Handle(StepGeom_Point) StepShape_Sphere::Centre() const
{
return centre;
}
|