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 | |
42cf5bc1 |
15 | #include <Standard_Type.hxx> |
16 | #include <StepGeom_CartesianPoint.hxx> |
17 | #include <StepGeom_CartesianTransformationOperator3d.hxx> |
18 | #include <StepGeom_Direction.hxx> |
19 | #include <TCollection_HAsciiString.hxx> |
7fd59977 |
20 | |
92efcf78 |
21 | IMPLEMENT_STANDARD_RTTIEXT(StepGeom_CartesianTransformationOperator3d,StepGeom_CartesianTransformationOperator) |
22 | |
7fd59977 |
23 | StepGeom_CartesianTransformationOperator3d::StepGeom_CartesianTransformationOperator3d () {} |
24 | |
25 | void StepGeom_CartesianTransformationOperator3d::Init( |
26 | const Handle(TCollection_HAsciiString)& aName, |
27 | const Standard_Boolean hasAaxis1, |
28 | const Handle(StepGeom_Direction)& aAxis1, |
29 | const Standard_Boolean hasAaxis2, |
30 | const Handle(StepGeom_Direction)& aAxis2, |
31 | const Handle(StepGeom_CartesianPoint)& aLocalOrigin, |
32 | const Standard_Boolean hasAscale, |
33 | const Standard_Real aScale) |
34 | { |
35 | |
36 | StepGeom_CartesianTransformationOperator::Init(aName, hasAaxis1, aAxis1, hasAaxis2, aAxis2, aLocalOrigin, hasAscale, aScale); |
37 | } |
38 | |
39 | void StepGeom_CartesianTransformationOperator3d::Init( |
40 | const Handle(TCollection_HAsciiString)& aName, |
41 | const Standard_Boolean hasAaxis1, |
42 | const Handle(StepGeom_Direction)& aAxis1, |
43 | const Standard_Boolean hasAaxis2, |
44 | const Handle(StepGeom_Direction)& aAxis2, |
45 | const Handle(StepGeom_CartesianPoint)& aLocalOrigin, |
46 | const Standard_Boolean hasAscale, |
47 | const Standard_Real aScale, |
48 | const Standard_Boolean hasAaxis3, |
49 | const Handle(StepGeom_Direction)& aAxis3) |
50 | { |
51 | // --- classe own fields --- |
52 | hasAxis3 = hasAaxis3; |
53 | axis3 = aAxis3; |
54 | // --- classe inherited fields --- |
55 | StepGeom_CartesianTransformationOperator::Init(aName, hasAaxis1, aAxis1, hasAaxis2, aAxis2, aLocalOrigin, hasAscale, aScale); |
56 | } |
57 | |
58 | |
59 | void StepGeom_CartesianTransformationOperator3d::SetAxis3(const Handle(StepGeom_Direction)& aAxis3) |
60 | { |
61 | axis3 = aAxis3; |
62 | hasAxis3 = Standard_True; |
63 | } |
64 | |
65 | void StepGeom_CartesianTransformationOperator3d::UnSetAxis3() |
66 | { |
67 | hasAxis3 = Standard_False; |
68 | axis3.Nullify(); |
69 | } |
70 | |
71 | Handle(StepGeom_Direction) StepGeom_CartesianTransformationOperator3d::Axis3() const |
72 | { |
73 | return axis3; |
74 | } |
75 | |
76 | Standard_Boolean StepGeom_CartesianTransformationOperator3d::HasAxis3() const |
77 | { |
78 | return hasAxis3; |
79 | } |