1 // Created on : Sat May 02 12:41:16 2020
2 // Created by: Irina KRYLOVA
3 // Generator:	Express (EXPRESS -> CASCADE/XSTEP Translator) V3.0
4 // Copyright (c) Open CASCADE 2020
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16 
17 #include <StepKinematics_UniversalPairWithRange.hxx>
18 
IMPLEMENT_STANDARD_RTTIEXT(StepKinematics_UniversalPairWithRange,StepKinematics_UniversalPair)19 IMPLEMENT_STANDARD_RTTIEXT(StepKinematics_UniversalPairWithRange, StepKinematics_UniversalPair)
20 
21 //=======================================================================
22 //function : StepKinematics_UniversalPairWithRange
23 //purpose  :
24 //=======================================================================
25 StepKinematics_UniversalPairWithRange::StepKinematics_UniversalPairWithRange ()
26 {
27   defLowerLimitFirstRotation = Standard_False;
28   defUpperLimitFirstRotation = Standard_False;
29   defLowerLimitSecondRotation = Standard_False;
30   defUpperLimitSecondRotation = Standard_False;
31 }
32 
33 //=======================================================================
34 //function : Init
35 //purpose  :
36 //=======================================================================
Init(const Handle (TCollection_HAsciiString)& theRepresentationItem_Name,const Handle (TCollection_HAsciiString)& theItemDefinedTransformation_Name,const Standard_Boolean hasItemDefinedTransformation_Description,const Handle (TCollection_HAsciiString)& theItemDefinedTransformation_Description,const Handle (StepRepr_RepresentationItem)& theItemDefinedTransformation_TransformItem1,const Handle (StepRepr_RepresentationItem)& theItemDefinedTransformation_TransformItem2,const Handle (StepKinematics_KinematicJoint)& theKinematicPair_Joint,const Standard_Boolean theLowOrderKinematicPair_TX,const Standard_Boolean theLowOrderKinematicPair_TY,const Standard_Boolean theLowOrderKinematicPair_TZ,const Standard_Boolean theLowOrderKinematicPair_RX,const Standard_Boolean theLowOrderKinematicPair_RY,const Standard_Boolean theLowOrderKinematicPair_RZ,const Standard_Boolean hasUniversalPair_InputSkewAngle,const Standard_Real theUniversalPair_InputSkewAngle,const Standard_Boolean hasLowerLimitFirstRotation,const Standard_Real theLowerLimitFirstRotation,const Standard_Boolean hasUpperLimitFirstRotation,const Standard_Real theUpperLimitFirstRotation,const Standard_Boolean hasLowerLimitSecondRotation,const Standard_Real theLowerLimitSecondRotation,const Standard_Boolean hasUpperLimitSecondRotation,const Standard_Real theUpperLimitSecondRotation)37 void StepKinematics_UniversalPairWithRange::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
38                                                   const Handle(TCollection_HAsciiString)& theItemDefinedTransformation_Name,
39                                                   const Standard_Boolean hasItemDefinedTransformation_Description,
40                                                   const Handle(TCollection_HAsciiString)& theItemDefinedTransformation_Description,
41                                                   const Handle(StepRepr_RepresentationItem)& theItemDefinedTransformation_TransformItem1,
42                                                   const Handle(StepRepr_RepresentationItem)& theItemDefinedTransformation_TransformItem2,
43                                                   const Handle(StepKinematics_KinematicJoint)& theKinematicPair_Joint,
44                                                   const Standard_Boolean theLowOrderKinematicPair_TX,
45                                                   const Standard_Boolean theLowOrderKinematicPair_TY,
46                                                   const Standard_Boolean theLowOrderKinematicPair_TZ,
47                                                   const Standard_Boolean theLowOrderKinematicPair_RX,
48                                                   const Standard_Boolean theLowOrderKinematicPair_RY,
49                                                   const Standard_Boolean theLowOrderKinematicPair_RZ,
50                                                   const Standard_Boolean hasUniversalPair_InputSkewAngle,
51                                                   const Standard_Real theUniversalPair_InputSkewAngle,
52                                                   const Standard_Boolean hasLowerLimitFirstRotation,
53                                                   const Standard_Real theLowerLimitFirstRotation,
54                                                   const Standard_Boolean hasUpperLimitFirstRotation,
55                                                   const Standard_Real theUpperLimitFirstRotation,
56                                                   const Standard_Boolean hasLowerLimitSecondRotation,
57                                                   const Standard_Real theLowerLimitSecondRotation,
58                                                   const Standard_Boolean hasUpperLimitSecondRotation,
59                                                   const Standard_Real theUpperLimitSecondRotation)
60 {
61   StepKinematics_UniversalPair::Init(theRepresentationItem_Name,
62                                      theItemDefinedTransformation_Name,
63                                      hasItemDefinedTransformation_Description,
64                                      theItemDefinedTransformation_Description,
65                                      theItemDefinedTransformation_TransformItem1,
66                                      theItemDefinedTransformation_TransformItem2,
67                                      theKinematicPair_Joint,
68                                      theLowOrderKinematicPair_TX,
69                                      theLowOrderKinematicPair_TY,
70                                      theLowOrderKinematicPair_TZ,
71                                      theLowOrderKinematicPair_RX,
72                                      theLowOrderKinematicPair_RY,
73                                      theLowOrderKinematicPair_RZ,
74                                      hasUniversalPair_InputSkewAngle,
75                                      theUniversalPair_InputSkewAngle);
76 
77   defLowerLimitFirstRotation = hasLowerLimitFirstRotation;
78   if (defLowerLimitFirstRotation) {
79     myLowerLimitFirstRotation = theLowerLimitFirstRotation;
80   }
81   else myLowerLimitFirstRotation = 0;
82 
83   defUpperLimitFirstRotation = hasUpperLimitFirstRotation;
84   if (defUpperLimitFirstRotation) {
85     myUpperLimitFirstRotation = theUpperLimitFirstRotation;
86   }
87   else myUpperLimitFirstRotation = 0;
88 
89   defLowerLimitSecondRotation = hasLowerLimitSecondRotation;
90   if (defLowerLimitSecondRotation) {
91     myLowerLimitSecondRotation = theLowerLimitSecondRotation;
92   }
93   else myLowerLimitSecondRotation = 0;
94 
95   defUpperLimitSecondRotation = hasUpperLimitSecondRotation;
96   if (defUpperLimitSecondRotation) {
97     myUpperLimitSecondRotation = theUpperLimitSecondRotation;
98   }
99   else myUpperLimitSecondRotation = 0;
100 }
101 
102 //=======================================================================
103 //function : LowerLimitFirstRotation
104 //purpose  :
105 //=======================================================================
LowerLimitFirstRotation() const106 Standard_Real StepKinematics_UniversalPairWithRange::LowerLimitFirstRotation () const
107 {
108   return myLowerLimitFirstRotation;
109 }
110 
111 //=======================================================================
112 //function : SetLowerLimitFirstRotation
113 //purpose  :
114 //=======================================================================
SetLowerLimitFirstRotation(const Standard_Real theLowerLimitFirstRotation)115 void StepKinematics_UniversalPairWithRange::SetLowerLimitFirstRotation (const Standard_Real theLowerLimitFirstRotation)
116 {
117   myLowerLimitFirstRotation = theLowerLimitFirstRotation;
118 }
119 
120 //=======================================================================
121 //function : HasLowerLimitFirstRotation
122 //purpose  :
123 //=======================================================================
HasLowerLimitFirstRotation() const124 Standard_Boolean StepKinematics_UniversalPairWithRange::HasLowerLimitFirstRotation () const
125 {
126   return defLowerLimitFirstRotation;
127 }
128 
129 //=======================================================================
130 //function : UpperLimitFirstRotation
131 //purpose  :
132 //=======================================================================
UpperLimitFirstRotation() const133 Standard_Real StepKinematics_UniversalPairWithRange::UpperLimitFirstRotation () const
134 {
135   return myUpperLimitFirstRotation;
136 }
137 
138 //=======================================================================
139 //function : SetUpperLimitFirstRotation
140 //purpose  :
141 //=======================================================================
SetUpperLimitFirstRotation(const Standard_Real theUpperLimitFirstRotation)142 void StepKinematics_UniversalPairWithRange::SetUpperLimitFirstRotation (const Standard_Real theUpperLimitFirstRotation)
143 {
144   myUpperLimitFirstRotation = theUpperLimitFirstRotation;
145 }
146 
147 //=======================================================================
148 //function : HasUpperLimitFirstRotation
149 //purpose  :
150 //=======================================================================
HasUpperLimitFirstRotation() const151 Standard_Boolean StepKinematics_UniversalPairWithRange::HasUpperLimitFirstRotation () const
152 {
153   return defUpperLimitFirstRotation;
154 }
155 
156 //=======================================================================
157 //function : LowerLimitSecondRotation
158 //purpose  :
159 //=======================================================================
LowerLimitSecondRotation() const160 Standard_Real StepKinematics_UniversalPairWithRange::LowerLimitSecondRotation () const
161 {
162   return myLowerLimitSecondRotation;
163 }
164 
165 //=======================================================================
166 //function : SetLowerLimitSecondRotation
167 //purpose  :
168 //=======================================================================
SetLowerLimitSecondRotation(const Standard_Real theLowerLimitSecondRotation)169 void StepKinematics_UniversalPairWithRange::SetLowerLimitSecondRotation (const Standard_Real theLowerLimitSecondRotation)
170 {
171   myLowerLimitSecondRotation = theLowerLimitSecondRotation;
172 }
173 
174 //=======================================================================
175 //function : HasLowerLimitSecondRotation
176 //purpose  :
177 //=======================================================================
HasLowerLimitSecondRotation() const178 Standard_Boolean StepKinematics_UniversalPairWithRange::HasLowerLimitSecondRotation () const
179 {
180   return defLowerLimitSecondRotation;
181 }
182 
183 //=======================================================================
184 //function : UpperLimitSecondRotation
185 //purpose  :
186 //=======================================================================
UpperLimitSecondRotation() const187 Standard_Real StepKinematics_UniversalPairWithRange::UpperLimitSecondRotation () const
188 {
189   return myUpperLimitSecondRotation;
190 }
191 
192 //=======================================================================
193 //function : SetUpperLimitSecondRotation
194 //purpose  :
195 //=======================================================================
SetUpperLimitSecondRotation(const Standard_Real theUpperLimitSecondRotation)196 void StepKinematics_UniversalPairWithRange::SetUpperLimitSecondRotation (const Standard_Real theUpperLimitSecondRotation)
197 {
198   myUpperLimitSecondRotation = theUpperLimitSecondRotation;
199 }
200 
201 //=======================================================================
202 //function : HasUpperLimitSecondRotation
203 //purpose  :
204 //=======================================================================
HasUpperLimitSecondRotation() const205 Standard_Boolean StepKinematics_UniversalPairWithRange::HasUpperLimitSecondRotation () const
206 {
207   return defUpperLimitSecondRotation;
208 }
209