0027047: STEP -- eliminate useless polymorhic methods Init()
[occt.git] / src / StepShape / StepShape_RightAngularWedge.cxx
1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14
15 #include <Standard_Type.hxx>
16 #include <StepGeom_Axis2Placement3d.hxx>
17 #include <StepShape_RightAngularWedge.hxx>
18 #include <TCollection_HAsciiString.hxx>
19
20 IMPLEMENT_STANDARD_RTTIEXT(StepShape_RightAngularWedge,StepGeom_GeometricRepresentationItem)
21
22 StepShape_RightAngularWedge::StepShape_RightAngularWedge ()  {}
23
24 void StepShape_RightAngularWedge::Init(
25         const Handle(TCollection_HAsciiString)& aName,
26         const Handle(StepGeom_Axis2Placement3d)& aPosition,
27         const Standard_Real aX,
28         const Standard_Real aY,
29         const Standard_Real aZ,
30         const Standard_Real aLtx)
31 {
32         // --- classe own fields ---
33         position = aPosition;
34         x = aX;
35         y = aY;
36         z = aZ;
37         ltx = aLtx;
38         // --- classe inherited fields ---
39         StepRepr_RepresentationItem::Init(aName);
40 }
41
42
43 void StepShape_RightAngularWedge::SetPosition(const Handle(StepGeom_Axis2Placement3d)& aPosition)
44 {
45         position = aPosition;
46 }
47
48 Handle(StepGeom_Axis2Placement3d) StepShape_RightAngularWedge::Position() const
49 {
50         return position;
51 }
52
53 void StepShape_RightAngularWedge::SetX(const Standard_Real aX)
54 {
55         x = aX;
56 }
57
58 Standard_Real StepShape_RightAngularWedge::X() const
59 {
60         return x;
61 }
62
63 void StepShape_RightAngularWedge::SetY(const Standard_Real aY)
64 {
65         y = aY;
66 }
67
68 Standard_Real StepShape_RightAngularWedge::Y() const
69 {
70         return y;
71 }
72
73 void StepShape_RightAngularWedge::SetZ(const Standard_Real aZ)
74 {
75         z = aZ;
76 }
77
78 Standard_Real StepShape_RightAngularWedge::Z() const
79 {
80         return z;
81 }
82
83 void StepShape_RightAngularWedge::SetLtx(const Standard_Real aLtx)
84 {
85         ltx = aLtx;
86 }
87
88 Standard_Real StepShape_RightAngularWedge::Ltx() const
89 {
90         return ltx;
91 }