0027961: Visualization - remove unused and no more working OpenGl_AVIWriter
[occt.git] / src / StepDimTol / StepDimTol_GeometricTolerance.cxx
1 // Created on: 2003-06-04
2 // Created by: Galina KULIKOVA
3 // Copyright (c) 2003-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 // Generator:   ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
17
18 #include <Standard_Type.hxx>
19 #include <StepBasic_MeasureWithUnit.hxx>
20 #include <StepDimTol_GeometricTolerance.hxx>
21 #include <StepDimTol_GeometricToleranceTarget.hxx>
22 #include <StepRepr_ShapeAspect.hxx>
23 #include <TCollection_HAsciiString.hxx>
24
25 IMPLEMENT_STANDARD_RTTIEXT(StepDimTol_GeometricTolerance,MMgt_TShared)
26
27 //=======================================================================
28 //function : StepDimTol_GeometricTolerance
29 //purpose  : 
30 //=======================================================================
31 StepDimTol_GeometricTolerance::StepDimTol_GeometricTolerance ()
32 {
33 }
34
35 //=======================================================================
36 //function : Init
37 //purpose  : 
38 //=======================================================================
39
40 void StepDimTol_GeometricTolerance::Init (const Handle(TCollection_HAsciiString) &theName,
41                                           const Handle(TCollection_HAsciiString) &theDescription,
42                                           const Handle(StepBasic_MeasureWithUnit) &theMagnitude,
43                                           const StepDimTol_GeometricToleranceTarget &theTolerancedShapeAspect)
44 {
45
46   myName = theName;
47
48   myDescription = theDescription;
49
50   myMagnitude = theMagnitude;
51
52   myTolerancedShapeAspect = theTolerancedShapeAspect;
53 }
54
55 //=======================================================================
56 //function : Init
57 //purpose  : 
58 //=======================================================================
59
60 void StepDimTol_GeometricTolerance::Init (const Handle(TCollection_HAsciiString) &theName,
61                                           const Handle(TCollection_HAsciiString) &theDescription,
62                                           const Handle(StepBasic_MeasureWithUnit) &theMagnitude,
63                                           const Handle(StepRepr_ShapeAspect) &theTolerancedShapeAspect)
64 {
65
66   myName = theName;
67
68   myDescription = theDescription;
69
70   myMagnitude = theMagnitude;
71
72   myTolerancedShapeAspect.SetValue(theTolerancedShapeAspect);
73 }
74
75 //=======================================================================
76 //function : Name
77 //purpose  : 
78 //=======================================================================
79
80 Handle(TCollection_HAsciiString) StepDimTol_GeometricTolerance::Name () const
81 {
82   return myName;
83 }
84
85 //=======================================================================
86 //function : SetName
87 //purpose  : 
88 //=======================================================================
89
90 void StepDimTol_GeometricTolerance::SetName (const Handle(TCollection_HAsciiString) &theName)
91 {
92   myName = theName;
93 }
94
95 //=======================================================================
96 //function : Description
97 //purpose  : 
98 //=======================================================================
99
100 Handle(TCollection_HAsciiString) StepDimTol_GeometricTolerance::Description () const
101 {
102   return myDescription;
103 }
104
105 //=======================================================================
106 //function : SetDescription
107 //purpose  : 
108 //=======================================================================
109
110 void StepDimTol_GeometricTolerance::SetDescription (const Handle(TCollection_HAsciiString) &theDescription)
111 {
112   myDescription = theDescription;
113 }
114
115 //=======================================================================
116 //function : Magnitude
117 //purpose  : 
118 //=======================================================================
119
120 Handle(StepBasic_MeasureWithUnit) StepDimTol_GeometricTolerance::Magnitude () const
121 {
122   return myMagnitude;
123 }
124
125 //=======================================================================
126 //function : SetMagnitude
127 //purpose  : 
128 //=======================================================================
129
130 void StepDimTol_GeometricTolerance::SetMagnitude (const Handle(StepBasic_MeasureWithUnit) &theMagnitude)
131 {
132   myMagnitude = theMagnitude;
133 }
134
135 //=======================================================================
136 //function : TolerancedShapeAspect
137 //purpose  : 
138 //=======================================================================
139
140 StepDimTol_GeometricToleranceTarget StepDimTol_GeometricTolerance::TolerancedShapeAspect () const
141 {
142   return myTolerancedShapeAspect;
143 }
144
145 //=======================================================================
146 //function : SetTolerancedShapeAspect
147 //purpose  : 
148 //=======================================================================
149
150 void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect (const Handle(StepRepr_ShapeAspect) &theTolerancedShapeAspect)
151 {
152   myTolerancedShapeAspect.SetValue(theTolerancedShapeAspect);
153 }
154
155 //=======================================================================
156 //function : SetTolerancedShapeAspect
157 //purpose  : 
158 //=======================================================================
159
160 void StepDimTol_GeometricTolerance::SetTolerancedShapeAspect (const StepDimTol_GeometricToleranceTarget &theTolerancedShapeAspect)
161 {
162   myTolerancedShapeAspect = theTolerancedShapeAspect;
163 }