b311480e |
1 | // Copyright (c) 1999-2012 OPEN CASCADE SAS |
2 | // |
3 | // The content of this file is subject to the Open CASCADE Technology Public |
4 | // License Version 6.5 (the "License"). You may not use the content of this file |
5 | // except in compliance with the License. Please obtain a copy of the License |
6 | // at http://www.opencascade.org and read it completely before using this file. |
7 | // |
8 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
9 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
10 | // |
11 | // The Original Code and all software distributed under the License is |
12 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
13 | // Initial Developer hereby disclaims all such warranties, including without |
14 | // limitation, any warranties of merchantability, fitness for a particular |
15 | // purpose or non-infringement. Please see the License for the specific terms |
16 | // and conditions governing the rights and limitations under the License. |
17 | |
7fd59977 |
18 | #include <StepGeom_CartesianTransformationOperator3d.ixx> |
19 | |
20 | |
21 | StepGeom_CartesianTransformationOperator3d::StepGeom_CartesianTransformationOperator3d () {} |
22 | |
23 | void StepGeom_CartesianTransformationOperator3d::Init( |
24 | const Handle(TCollection_HAsciiString)& aName, |
25 | const Standard_Boolean hasAaxis1, |
26 | const Handle(StepGeom_Direction)& aAxis1, |
27 | const Standard_Boolean hasAaxis2, |
28 | const Handle(StepGeom_Direction)& aAxis2, |
29 | const Handle(StepGeom_CartesianPoint)& aLocalOrigin, |
30 | const Standard_Boolean hasAscale, |
31 | const Standard_Real aScale) |
32 | { |
33 | |
34 | StepGeom_CartesianTransformationOperator::Init(aName, hasAaxis1, aAxis1, hasAaxis2, aAxis2, aLocalOrigin, hasAscale, aScale); |
35 | } |
36 | |
37 | void StepGeom_CartesianTransformationOperator3d::Init( |
38 | const Handle(TCollection_HAsciiString)& aName, |
39 | const Standard_Boolean hasAaxis1, |
40 | const Handle(StepGeom_Direction)& aAxis1, |
41 | const Standard_Boolean hasAaxis2, |
42 | const Handle(StepGeom_Direction)& aAxis2, |
43 | const Handle(StepGeom_CartesianPoint)& aLocalOrigin, |
44 | const Standard_Boolean hasAscale, |
45 | const Standard_Real aScale, |
46 | const Standard_Boolean hasAaxis3, |
47 | const Handle(StepGeom_Direction)& aAxis3) |
48 | { |
49 | // --- classe own fields --- |
50 | hasAxis3 = hasAaxis3; |
51 | axis3 = aAxis3; |
52 | // --- classe inherited fields --- |
53 | StepGeom_CartesianTransformationOperator::Init(aName, hasAaxis1, aAxis1, hasAaxis2, aAxis2, aLocalOrigin, hasAscale, aScale); |
54 | } |
55 | |
56 | |
57 | void StepGeom_CartesianTransformationOperator3d::SetAxis3(const Handle(StepGeom_Direction)& aAxis3) |
58 | { |
59 | axis3 = aAxis3; |
60 | hasAxis3 = Standard_True; |
61 | } |
62 | |
63 | void StepGeom_CartesianTransformationOperator3d::UnSetAxis3() |
64 | { |
65 | hasAxis3 = Standard_False; |
66 | axis3.Nullify(); |
67 | } |
68 | |
69 | Handle(StepGeom_Direction) StepGeom_CartesianTransformationOperator3d::Axis3() const |
70 | { |
71 | return axis3; |
72 | } |
73 | |
74 | Standard_Boolean StepGeom_CartesianTransformationOperator3d::HasAxis3() const |
75 | { |
76 | return hasAxis3; |
77 | } |