0026689: Necessary to improve STEPCAFControl_Reader to read GD&T data from STEP model...
[occt.git] / src / XCAFDoc / XCAFDoc.cxx
1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14 #include <XCAFDoc.hxx>
15 #include <XCAFDoc_ColorType.hxx>
16
17 #include <TDF_Label.hxx>
18 #include <TDF_Tool.hxx>
19 #include <TDataStd_Name.hxx>
20 #include <TDocStd_Document.hxx>
21
22
23 //=======================================================================
24 //function : ShapeRefGUID
25 //purpose  : 
26 //=======================================================================
27
28 Standard_GUID XCAFDoc::ShapeRefGUID ()
29 {
30   static Standard_GUID ID ("5b896afe-3adf-11d4-b9b7-0060b0ee281b");
31   return ID;
32 }
33
34
35 //=======================================================================
36 //function : AssemblyGUID
37 //purpose  : 
38 //=======================================================================
39
40 Standard_GUID XCAFDoc::AssemblyGUID ()
41 {
42   static Standard_GUID ID ("5b896b00-3adf-11d4-b9b7-0060b0ee281b");
43   return ID;
44 }
45
46
47 //=======================================================================
48 //function : ExternRefGUID
49 //purpose  : 
50 //=======================================================================
51
52 Standard_GUID XCAFDoc::ExternRefGUID ()
53 {
54   static Standard_GUID ID ("6b896b01-3adf-11d4-b9b7-0060b0ee281b");
55   return ID;
56 }
57
58
59 //=======================================================================
60 //function : ColorRefGUID
61 //purpose  : 
62 //=======================================================================
63
64 Standard_GUID XCAFDoc::ColorRefGUID (const XCAFDoc_ColorType type)
65 {
66   static Standard_GUID IDcol     ("efd212e4-6dfd-11d4-b9c8-0060b0ee281b");
67   static Standard_GUID IDcolSurf ("efd212e5-6dfd-11d4-b9c8-0060b0ee281b");
68   static Standard_GUID IDcolCurv ("efd212e6-6dfd-11d4-b9c8-0060b0ee281b");
69
70   switch ( type ) {
71   default:
72   case XCAFDoc_ColorGen : return IDcol;
73   case XCAFDoc_ColorSurf: return IDcolSurf;
74   case XCAFDoc_ColorCurv: return IDcolCurv;
75   }
76 }
77
78
79 //=======================================================================
80 //function : DimTolRefGUID
81 //purpose  : 
82 //=======================================================================
83
84 Standard_GUID XCAFDoc::DimTolRefGUID()
85 {
86   //static Standard_GUID IDDimTol("58ed092d-44de-11d8-8776-001083004c77");
87   static Standard_GUID ID("efd212e9-6dfd-11d4-b9c8-0060b0ee281b");
88   //return IDDimTol;
89   return ID;
90 }
91
92 //=======================================================================
93 //function : DimensionRefGUID
94 //purpose  : 
95 //=======================================================================
96
97 Standard_GUID XCAFDoc::DimensionRefFirstGUID()
98 {
99   static Standard_GUID ID("efd212e3-6dfd-11d4-b9c8-0060b0ee281b");
100   return ID;
101 }
102
103 //=======================================================================
104 //function : DimensionRefGUID
105 //purpose  : 
106 //=======================================================================
107
108 Standard_GUID XCAFDoc::DimensionRefSecondGUID()
109 {
110   static Standard_GUID ID("efd212e0-6dfd-11d4-b9c8-0060b0ee281b");
111   return ID;
112 }
113
114 //=======================================================================
115 //function : GeomToleranceRefGUID
116 //purpose  : 
117 //=======================================================================
118
119 Standard_GUID XCAFDoc::GeomToleranceRefGUID()
120 {
121   static Standard_GUID ID("efd213e3-6dfd-11d4-b9c8-0060b0ee281b");
122   return ID;
123 }
124
125 //=======================================================================
126 //function : DatumRefGUID
127 //purpose  : 
128 //=======================================================================
129
130 Standard_GUID XCAFDoc::DatumRefGUID()
131 {
132   static Standard_GUID ID("efd212e2-6dfd-11d4-b9c8-0060b0ee281b");
133   return ID;
134 }
135
136
137 //=======================================================================
138 //function : DatumTolRefGUID
139 //purpose  : 
140 //=======================================================================
141
142 Standard_GUID XCAFDoc::DatumTolRefGUID()
143 {
144   //static Standard_GUID IDDimTol("58ed092d-44de-11d8-8776-001083004c77");
145   static Standard_GUID ID("efd212e7-6dfd-11d4-b9c8-0060b0ee281b");
146   //return IDDimTol;
147   return ID;
148 }
149
150
151 //=======================================================================
152 //function : LayerRefGUID
153 //purpose  : 
154 //=======================================================================
155
156 Standard_GUID XCAFDoc::LayerRefGUID ()
157 {
158   static Standard_GUID ID ("efd212e8-6dfd-11d4-b9c8-0060b0ee281b");
159   return ID;
160 }
161
162
163 //=======================================================================
164 //function : MaterialRefGUID
165 //purpose  : 
166 //=======================================================================
167
168 Standard_GUID XCAFDoc::MaterialRefGUID ()
169 {
170   static Standard_GUID ID ("efd212f7-6dfd-11d4-b9c8-0060b0ee281b");
171   return ID;
172 }
173
174
175 //=======================================================================
176 //function : InvisibleGUID
177 //purpose  : 
178 //=======================================================================
179
180 Standard_GUID XCAFDoc::InvisibleGUID ()
181 {
182   static Standard_GUID ID ("5b896aff-3adf-11d4-b9b7-0060b0ee281b");
183   return ID;
184 }
185
186
187 //=======================================================================
188 //function : SHUORefGUID
189 //purpose  : 
190 //=======================================================================
191
192 Standard_GUID XCAFDoc::SHUORefGUID ()
193 {
194   static Standard_GUID ID ("efd212ea-6dfd-11d4-b9c8-0060b0ee281b");
195   return ID;
196 }