0024750: Replace instantiations of TCollection generic classes by NCollection templat...
[occt.git] / src / StepGeom / StepGeom_Axis2Placement3d.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 <StepGeom_Axis2Placement3d.ixx>
15
16
17StepGeom_Axis2Placement3d::StepGeom_Axis2Placement3d () {}
18
19void StepGeom_Axis2Placement3d::Init(
20 const Handle(TCollection_HAsciiString)& aName,
21 const Handle(StepGeom_CartesianPoint)& aLocation)
22{
23
24 StepGeom_Placement::Init(aName, aLocation);
25}
26
27void StepGeom_Axis2Placement3d::Init(
28 const Handle(TCollection_HAsciiString)& aName,
29 const Handle(StepGeom_CartesianPoint)& aLocation,
30 const Standard_Boolean hasAaxis,
31 const Handle(StepGeom_Direction)& aAxis,
32 const Standard_Boolean hasArefDirection,
33 const Handle(StepGeom_Direction)& aRefDirection)
34{
35 // --- classe own fields ---
36 hasAxis = hasAaxis;
37 axis = aAxis;
38 hasRefDirection = hasArefDirection;
39 refDirection = aRefDirection;
40 // --- classe inherited fields ---
41 StepGeom_Placement::Init(aName, aLocation);
42}
43
44
45void StepGeom_Axis2Placement3d::SetAxis(const Handle(StepGeom_Direction)& aAxis)
46{
47 axis = aAxis;
48 hasAxis = Standard_True;
49}
50
51void StepGeom_Axis2Placement3d::UnSetAxis()
52{
53 hasAxis = Standard_False;
54 axis.Nullify();
55}
56
57Handle(StepGeom_Direction) StepGeom_Axis2Placement3d::Axis() const
58{
59 return axis;
60}
61
62Standard_Boolean StepGeom_Axis2Placement3d::HasAxis() const
63{
64 return hasAxis;
65}
66
67void StepGeom_Axis2Placement3d::SetRefDirection(const Handle(StepGeom_Direction)& aRefDirection)
68{
69 refDirection = aRefDirection;
70 hasRefDirection = Standard_True;
71}
72
73void StepGeom_Axis2Placement3d::UnSetRefDirection()
74{
75 hasRefDirection = Standard_False;
76 refDirection.Nullify();
77}
78
79Handle(StepGeom_Direction) StepGeom_Axis2Placement3d::RefDirection() const
80{
81 return refDirection;
82}
83
84Standard_Boolean StepGeom_Axis2Placement3d::HasRefDirection() const
85{
86 return hasRefDirection;
87}