Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepShape / StepShape_Sphere.cxx
1 #include <StepShape_Sphere.ixx>
2
3
4 StepShape_Sphere::StepShape_Sphere ()  {}
5
6 void StepShape_Sphere::Init(
7         const Handle(TCollection_HAsciiString)& aName)
8 {
9
10         StepRepr_RepresentationItem::Init(aName);
11 }
12
13 void StepShape_Sphere::Init(
14         const Handle(TCollection_HAsciiString)& aName,
15         const Standard_Real aRadius,
16         const Handle(StepGeom_Point)& aCentre)
17 {
18         // --- classe own fields ---
19         radius = aRadius;
20         centre = aCentre;
21         // --- classe inherited fields ---
22         StepRepr_RepresentationItem::Init(aName);
23 }
24
25
26 void StepShape_Sphere::SetRadius(const Standard_Real aRadius)
27 {
28         radius = aRadius;
29 }
30
31 Standard_Real StepShape_Sphere::Radius() const
32 {
33         return radius;
34 }
35
36 void StepShape_Sphere::SetCentre(const Handle(StepGeom_Point)& aCentre)
37 {
38         centre = aCentre;
39 }
40
41 Handle(StepGeom_Point) StepShape_Sphere::Centre() const
42 {
43         return centre;
44 }