b311480e |
1 | // Created on: 2003-06-04 |
2 | // Created by: Galina KULIKOVA |
3 | // Copyright (c) 2003-2012 OPEN CASCADE SAS |
4 | // |
5 | // The content of this file is subject to the Open CASCADE Technology Public |
6 | // License Version 6.5 (the "License"). You may not use the content of this file |
7 | // except in compliance with the License. Please obtain a copy of the License |
8 | // at http://www.opencascade.org and read it completely before using this file. |
9 | // |
10 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
11 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
12 | // |
13 | // The Original Code and all software distributed under the License is |
14 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
15 | // Initial Developer hereby disclaims all such warranties, including without |
16 | // limitation, any warranties of merchantability, fitness for a particular |
17 | // purpose or non-infringement. Please see the License for the specific terms |
18 | // and conditions governing the rights and limitations under the License. |
19 | |
7fd59977 |
20 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2 |
7fd59977 |
21 | |
22 | #include <StepDimTol_GeometricTolerance.ixx> |
23 | |
24 | //======================================================================= |
25 | //function : StepDimTol_GeometricTolerance |
26 | //purpose : |
27 | //======================================================================= |
28 | |
29 | StepDimTol_GeometricTolerance::StepDimTol_GeometricTolerance () |
30 | { |
31 | } |
32 | |
33 | //======================================================================= |
34 | //function : Init |
35 | //purpose : |
36 | //======================================================================= |
37 | |
38 | void StepDimTol_GeometricTolerance::Init (const Handle(TCollection_HAsciiString) &aName, |
39 | const Handle(TCollection_HAsciiString) &aDescription, |
40 | const Handle(StepBasic_MeasureWithUnit) &aMagnitude, |
41 | const Handle(StepRepr_ShapeAspect) &aTolerancedShapeAspect) |
42 | { |
43 | |
44 | theName = aName; |
45 | |
46 | theDescription = aDescription; |
47 | |
48 | theMagnitude = aMagnitude; |
49 | |
50 | theTolerancedShapeAspect = aTolerancedShapeAspect; |
51 | } |
52 | |
53 | //======================================================================= |
54 | //function : Name |
55 | //purpose : |
56 | //======================================================================= |
57 | |
58 | Handle(TCollection_HAsciiString) StepDimTol_GeometricTolerance::Name () const |
59 | { |
60 | return theName; |
61 | } |
62 | |
63 | //======================================================================= |
64 | //function : SetName |
65 | //purpose : |
66 | //======================================================================= |
67 | |
68 | void StepDimTol_GeometricTolerance::SetName (const Handle(TCollection_HAsciiString) &aName) |
69 | { |
70 | theName = aName; |
71 | } |
72 | |
73 | //======================================================================= |
74 | //function : Description |
75 | //purpose : |
76 | //======================================================================= |
77 | |
78 | Handle(TCollection_HAsciiString) StepDimTol_GeometricTolerance::Description () const |
79 | { |
80 | return theDescription; |
81 | } |
82 | |
83 | //======================================================================= |
84 | //function : SetDescription |
85 | //purpose : |
86 | //======================================================================= |
87 | |
88 | void StepDimTol_GeometricTolerance::SetDescription (const Handle(TCollection_HAsciiString) &aDescription) |
89 | { |
90 | theDescription = aDescription; |
91 | } |
92 | |
93 | //======================================================================= |
94 | //function : Magnitude |
95 | //purpose : |
96 | //======================================================================= |
97 | |
98 | Handle(StepBasic_MeasureWithUnit) StepDimTol_GeometricTolerance::Magnitude () const |
99 | { |
100 | return theMagnitude; |
101 | } |
102 | |
103 | //======================================================================= |
104 | //function : SetMagnitude |
105 | //purpose : |
106 | //======================================================================= |
107 | |
108 | void StepDimTol_GeometricTolerance::SetMagnitude (const Handle(StepBasic_MeasureWithUnit) &aMagnitude) |
109 | { |
110 | theMagnitude = aMagnitude; |
111 | } |
112 | |
113 | //======================================================================= |
114 | //function : TolerancedShapeAspect |
115 | //purpose : |
116 | //======================================================================= |
117 | |
118 | Handle(StepRepr_ShapeAspect) StepDimTol_GeometricTolerance::TolerancedShapeAspect () const |
119 | { |
120 | return theTolerancedShapeAspect; |
121 | } |
122 | |
123 | //======================================================================= |
124 | //function : SetTolerancedShapeAspect |
125 | //purpose : |
126 | //======================================================================= |
127 | |
128 | void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect (const Handle(StepRepr_ShapeAspect) &aTolerancedShapeAspect) |
129 | { |
130 | theTolerancedShapeAspect = aTolerancedShapeAspect; |
131 | } |