0024023: Revamp the OCCT Handle -- ambiguity
[occt.git] / src / StepShape / StepShape_BoxDomain.cxx
CommitLineData
973c2be1 1// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 2//
973c2be1 3// This file is part of Open CASCADE Technology software library.
b311480e 4//
d5f74e42 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
973c2be1 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.
b311480e 10//
973c2be1 11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
b311480e 13
7fd59977 14#include <StepShape_BoxDomain.ixx>
15
16
17StepShape_BoxDomain::StepShape_BoxDomain () {}
18
19void StepShape_BoxDomain::Init(
20 const Handle(StepGeom_CartesianPoint)& aCorner,
21 const Standard_Real aXlength,
22 const Standard_Real aYlength,
23 const Standard_Real aZlength)
24{
25 // --- classe own fields ---
26 corner = aCorner;
27 xlength = aXlength;
28 ylength = aYlength;
29 zlength = aZlength;
30}
31
32
33void StepShape_BoxDomain::SetCorner(const Handle(StepGeom_CartesianPoint)& aCorner)
34{
35 corner = aCorner;
36}
37
38Handle(StepGeom_CartesianPoint) StepShape_BoxDomain::Corner() const
39{
40 return corner;
41}
42
43void StepShape_BoxDomain::SetXlength(const Standard_Real aXlength)
44{
45 xlength = aXlength;
46}
47
48Standard_Real StepShape_BoxDomain::Xlength() const
49{
50 return xlength;
51}
52
53void StepShape_BoxDomain::SetYlength(const Standard_Real aYlength)
54{
55 ylength = aYlength;
56}
57
58Standard_Real StepShape_BoxDomain::Ylength() const
59{
60 return ylength;
61}
62
63void StepShape_BoxDomain::SetZlength(const Standard_Real aZlength)
64{
65 zlength = aZlength;
66}
67
68Standard_Real StepShape_BoxDomain::Zlength() const
69{
70 return zlength;
71}