1 // Created on : Sat May 02 12:41:15 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_GearPair.hxx>
18
IMPLEMENT_STANDARD_RTTIEXT(StepKinematics_GearPair,StepKinematics_LowOrderKinematicPairWithMotionCoupling)19 IMPLEMENT_STANDARD_RTTIEXT(StepKinematics_GearPair, StepKinematics_LowOrderKinematicPairWithMotionCoupling)
20
21 //=======================================================================
22 //function : StepKinematics_GearPair
23 //purpose :
24 //=======================================================================
25 StepKinematics_GearPair::StepKinematics_GearPair ()
26 {
27 }
28
29 //=======================================================================
30 //function : Init
31 //purpose :
32 //=======================================================================
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_Real theRadiusFirstLink,const Standard_Real theRadiusSecondLink,const Standard_Real theBevel,const Standard_Real theHelicalAngle,const Standard_Real theGearRatio)33 void StepKinematics_GearPair::Init (const Handle(TCollection_HAsciiString)& theRepresentationItem_Name,
34 const Handle(TCollection_HAsciiString)& theItemDefinedTransformation_Name,
35 const Standard_Boolean hasItemDefinedTransformation_Description,
36 const Handle(TCollection_HAsciiString)& theItemDefinedTransformation_Description,
37 const Handle(StepRepr_RepresentationItem)& theItemDefinedTransformation_TransformItem1,
38 const Handle(StepRepr_RepresentationItem)& theItemDefinedTransformation_TransformItem2,
39 const Handle(StepKinematics_KinematicJoint)& theKinematicPair_Joint,
40 const Standard_Real theRadiusFirstLink,
41 const Standard_Real theRadiusSecondLink,
42 const Standard_Real theBevel,
43 const Standard_Real theHelicalAngle,
44 const Standard_Real theGearRatio)
45 {
46 StepKinematics_LowOrderKinematicPairWithMotionCoupling::Init(theRepresentationItem_Name,
47 theItemDefinedTransformation_Name,
48 hasItemDefinedTransformation_Description,
49 theItemDefinedTransformation_Description,
50 theItemDefinedTransformation_TransformItem1,
51 theItemDefinedTransformation_TransformItem2,
52 theKinematicPair_Joint);
53
54 myRadiusFirstLink = theRadiusFirstLink;
55
56 myRadiusSecondLink = theRadiusSecondLink;
57
58 myBevel = theBevel;
59
60 myHelicalAngle = theHelicalAngle;
61
62 myGearRatio = theGearRatio;
63 }
64
65 //=======================================================================
66 //function : RadiusFirstLink
67 //purpose :
68 //=======================================================================
RadiusFirstLink() const69 Standard_Real StepKinematics_GearPair::RadiusFirstLink () const
70 {
71 return myRadiusFirstLink;
72 }
73
74 //=======================================================================
75 //function : SetRadiusFirstLink
76 //purpose :
77 //=======================================================================
SetRadiusFirstLink(const Standard_Real theRadiusFirstLink)78 void StepKinematics_GearPair::SetRadiusFirstLink (const Standard_Real theRadiusFirstLink)
79 {
80 myRadiusFirstLink = theRadiusFirstLink;
81 }
82
83 //=======================================================================
84 //function : RadiusSecondLink
85 //purpose :
86 //=======================================================================
RadiusSecondLink() const87 Standard_Real StepKinematics_GearPair::RadiusSecondLink () const
88 {
89 return myRadiusSecondLink;
90 }
91
92 //=======================================================================
93 //function : SetRadiusSecondLink
94 //purpose :
95 //=======================================================================
SetRadiusSecondLink(const Standard_Real theRadiusSecondLink)96 void StepKinematics_GearPair::SetRadiusSecondLink (const Standard_Real theRadiusSecondLink)
97 {
98 myRadiusSecondLink = theRadiusSecondLink;
99 }
100
101 //=======================================================================
102 //function : Bevel
103 //purpose :
104 //=======================================================================
Bevel() const105 Standard_Real StepKinematics_GearPair::Bevel () const
106 {
107 return myBevel;
108 }
109
110 //=======================================================================
111 //function : SetBevel
112 //purpose :
113 //=======================================================================
SetBevel(const Standard_Real theBevel)114 void StepKinematics_GearPair::SetBevel (const Standard_Real theBevel)
115 {
116 myBevel = theBevel;
117 }
118
119 //=======================================================================
120 //function : HelicalAngle
121 //purpose :
122 //=======================================================================
HelicalAngle() const123 Standard_Real StepKinematics_GearPair::HelicalAngle () const
124 {
125 return myHelicalAngle;
126 }
127
128 //=======================================================================
129 //function : SetHelicalAngle
130 //purpose :
131 //=======================================================================
SetHelicalAngle(const Standard_Real theHelicalAngle)132 void StepKinematics_GearPair::SetHelicalAngle (const Standard_Real theHelicalAngle)
133 {
134 myHelicalAngle = theHelicalAngle;
135 }
136
137 //=======================================================================
138 //function : GearRatio
139 //purpose :
140 //=======================================================================
GearRatio() const141 Standard_Real StepKinematics_GearPair::GearRatio () const
142 {
143 return myGearRatio;
144 }
145
146 //=======================================================================
147 //function : SetGearRatio
148 //purpose :
149 //=======================================================================
SetGearRatio(const Standard_Real theGearRatio)150 void StepKinematics_GearPair::SetGearRatio (const Standard_Real theGearRatio)
151 {
152 myGearRatio = theGearRatio;
153 }
154