Warnings on vc14 were eliminated
[occt.git] / src / StepShape / StepShape_Block.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_Block.hxx>
18 #include <TCollection_HAsciiString.hxx>
19
20 IMPLEMENT_STANDARD_RTTIEXT(StepShape_Block,StepGeom_GeometricRepresentationItem)
21
22 StepShape_Block::StepShape_Block ()  {}
23
24 void StepShape_Block::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 {
31         // --- classe own fields ---
32         position = aPosition;
33         x = aX;
34         y = aY;
35         z = aZ;
36         // --- classe inherited fields ---
37         StepRepr_RepresentationItem::Init(aName);
38 }
39
40
41 void StepShape_Block::SetPosition(const Handle(StepGeom_Axis2Placement3d)& aPosition)
42 {
43         position = aPosition;
44 }
45
46 Handle(StepGeom_Axis2Placement3d) StepShape_Block::Position() const
47 {
48         return position;
49 }
50
51 void StepShape_Block::SetX(const Standard_Real aX)
52 {
53         x = aX;
54 }
55
56 Standard_Real StepShape_Block::X() const
57 {
58         return x;
59 }
60
61 void StepShape_Block::SetY(const Standard_Real aY)
62 {
63         y = aY;
64 }
65
66 Standard_Real StepShape_Block::Y() const
67 {
68         return y;
69 }
70
71 void StepShape_Block::SetZ(const Standard_Real aZ)
72 {
73         z = aZ;
74 }
75
76 Standard_Real StepShape_Block::Z() const
77 {
78         return z;
79 }