b311480e |
1 | // Created on: 2003-06-04 |
2 | // Created by: Galina KULIKOVA |
973c2be1 |
3 | // Copyright (c) 2003-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
b311480e |
15 | |
7fd59977 |
16 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2 |
7fd59977 |
17 | |
42cf5bc1 |
18 | #include <Standard_Type.hxx> |
19 | #include <StepBasic_MeasureWithUnit.hxx> |
20 | #include <StepDimTol_ModifiedGeometricTolerance.hxx> |
28a73c1f |
21 | #include <StepDimTol_GeometricToleranceTarget.hxx> |
42cf5bc1 |
22 | #include <StepRepr_ShapeAspect.hxx> |
23 | #include <TCollection_HAsciiString.hxx> |
7fd59977 |
24 | |
25 | //======================================================================= |
26 | //function : StepDimTol_ModifiedGeometricTolerance |
27 | //purpose : |
28 | //======================================================================= |
7fd59977 |
29 | StepDimTol_ModifiedGeometricTolerance::StepDimTol_ModifiedGeometricTolerance () |
30 | { |
31 | } |
32 | |
33 | //======================================================================= |
34 | //function : Init |
35 | //purpose : |
36 | //======================================================================= |
37 | |
2f220b97 |
38 | void StepDimTol_ModifiedGeometricTolerance::Init (const Handle(TCollection_HAsciiString) &theGeometricTolerance_Name, |
39 | const Handle(TCollection_HAsciiString) &theGeometricTolerance_Description, |
40 | const Handle(StepBasic_MeasureWithUnit) &theGeometricTolerance_Magnitude, |
41 | const Handle(StepRepr_ShapeAspect) &theGeometricTolerance_TolerancedShapeAspect, |
42 | const StepDimTol_LimitCondition theModifier) |
28a73c1f |
43 | { |
2f220b97 |
44 | StepDimTol_GeometricTolerance::Init(theGeometricTolerance_Name, |
45 | theGeometricTolerance_Description, |
46 | theGeometricTolerance_Magnitude, |
47 | theGeometricTolerance_TolerancedShapeAspect); |
28a73c1f |
48 | |
2f220b97 |
49 | myModifier = theModifier; |
28a73c1f |
50 | } |
51 | |
52 | //======================================================================= |
53 | //function : Init |
54 | //purpose : |
55 | //======================================================================= |
56 | |
2f220b97 |
57 | void StepDimTol_ModifiedGeometricTolerance::Init (const Handle(TCollection_HAsciiString) &theGeometricTolerance_Name, |
58 | const Handle(TCollection_HAsciiString) &theGeometricTolerance_Description, |
59 | const Handle(StepBasic_MeasureWithUnit) &theGeometricTolerance_Magnitude, |
60 | const StepDimTol_GeometricToleranceTarget &theGeometricTolerance_TolerancedShapeAspect, |
61 | const StepDimTol_LimitCondition theModifier) |
7fd59977 |
62 | { |
2f220b97 |
63 | StepDimTol_GeometricTolerance::Init(theGeometricTolerance_Name, |
64 | theGeometricTolerance_Description, |
65 | theGeometricTolerance_Magnitude, |
66 | theGeometricTolerance_TolerancedShapeAspect); |
7fd59977 |
67 | |
2f220b97 |
68 | myModifier = theModifier; |
7fd59977 |
69 | } |
70 | |
71 | //======================================================================= |
72 | //function : Modifier |
73 | //purpose : |
74 | //======================================================================= |
75 | |
76 | StepDimTol_LimitCondition StepDimTol_ModifiedGeometricTolerance::Modifier () const |
77 | { |
2f220b97 |
78 | return myModifier; |
7fd59977 |
79 | } |
80 | |
81 | //======================================================================= |
82 | //function : SetModifier |
83 | //purpose : |
84 | //======================================================================= |
85 | |
2f220b97 |
86 | void StepDimTol_ModifiedGeometricTolerance::SetModifier (const StepDimTol_LimitCondition theModifier) |
7fd59977 |
87 | { |
2f220b97 |
88 | myModifier = theModifier; |
7fd59977 |
89 | } |