blob: eaf3c44f3b37e2c9271ba0e44889e19ac73d0706 (
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
45
46
47
48
49
50
51
52
53
54
55
56
|
#include <StepShape_RightCircularCylinder.ixx>
StepShape_RightCircularCylinder::StepShape_RightCircularCylinder () {}
void StepShape_RightCircularCylinder::Init(
const Handle(TCollection_HAsciiString)& aName)
{
StepRepr_RepresentationItem::Init(aName);
}
void StepShape_RightCircularCylinder::Init(
const Handle(TCollection_HAsciiString)& aName,
const Handle(StepGeom_Axis1Placement)& aPosition,
const Standard_Real aHeight,
const Standard_Real aRadius)
{
// --- classe own fields ---
position = aPosition;
height = aHeight;
radius = aRadius;
// --- classe inherited fields ---
StepRepr_RepresentationItem::Init(aName);
}
void StepShape_RightCircularCylinder::SetPosition(const Handle(StepGeom_Axis1Placement)& aPosition)
{
position = aPosition;
}
Handle(StepGeom_Axis1Placement) StepShape_RightCircularCylinder::Position() const
{
return position;
}
void StepShape_RightCircularCylinder::SetHeight(const Standard_Real aHeight)
{
height = aHeight;
}
Standard_Real StepShape_RightCircularCylinder::Height() const
{
return height;
}
void StepShape_RightCircularCylinder::SetRadius(const Standard_Real aRadius)
{
radius = aRadius;
}
Standard_Real StepShape_RightCircularCylinder::Radius() const
{
return radius;
}
|