blob: 7b81b4b2c833e0889dfc3c7b892fc4d1abae829c (
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
|
#include <StepGeom_Axis2Placement2d.ixx>
StepGeom_Axis2Placement2d::StepGeom_Axis2Placement2d () {}
void StepGeom_Axis2Placement2d::Init(
const Handle(TCollection_HAsciiString)& aName,
const Handle(StepGeom_CartesianPoint)& aLocation)
{
StepGeom_Placement::Init(aName, aLocation);
}
void StepGeom_Axis2Placement2d::Init(
const Handle(TCollection_HAsciiString)& aName,
const Handle(StepGeom_CartesianPoint)& aLocation,
const Standard_Boolean hasArefDirection,
const Handle(StepGeom_Direction)& aRefDirection)
{
// --- classe own fields ---
hasRefDirection = hasArefDirection;
refDirection = aRefDirection;
// --- classe inherited fields ---
StepGeom_Placement::Init(aName, aLocation);
}
void StepGeom_Axis2Placement2d::SetRefDirection(const Handle(StepGeom_Direction)& aRefDirection)
{
refDirection = aRefDirection;
hasRefDirection = Standard_True;
}
void StepGeom_Axis2Placement2d::UnSetRefDirection()
{
hasRefDirection = Standard_False;
refDirection.Nullify();
}
Handle(StepGeom_Direction) StepGeom_Axis2Placement2d::RefDirection() const
{
return refDirection;
}
Standard_Boolean StepGeom_Axis2Placement2d::HasRefDirection() const
{
return hasRefDirection;
}
|