973c2be1 |
1 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
2 | // |
973c2be1 |
3 | // This file is part of Open CASCADE Technology software library. |
b311480e |
4 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
10 | // |
973c2be1 |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
b311480e |
13 | |
7fd59977 |
14 | #include <XCAFDoc.hxx> |
15 | #include <XCAFDoc_ColorType.hxx> |
b311480e |
16 | |
7fd59977 |
17 | #include <TDF_Label.hxx> |
18 | #include <TDF_Tool.hxx> |
19 | #include <TDataStd_Name.hxx> |
20 | #include <TDocStd_Document.hxx> |
6fe96f84 |
21 | #include <Standard_GUID.hxx> |
7fd59977 |
22 | |
23 | //======================================================================= |
24 | //function : ShapeRefGUID |
25 | //purpose : |
26 | //======================================================================= |
27 | |
f6973d90 |
28 | const Standard_GUID& XCAFDoc::ShapeRefGUID () |
7fd59977 |
29 | { |
f6973d90 |
30 | static const Standard_GUID ID ("5b896afe-3adf-11d4-b9b7-0060b0ee281b"); |
7fd59977 |
31 | return ID; |
32 | } |
33 | |
34 | |
35 | //======================================================================= |
36 | //function : AssemblyGUID |
37 | //purpose : |
38 | //======================================================================= |
39 | |
f6973d90 |
40 | const Standard_GUID& XCAFDoc::AssemblyGUID () |
7fd59977 |
41 | { |
f6973d90 |
42 | static const Standard_GUID ID ("5b896b00-3adf-11d4-b9b7-0060b0ee281b"); |
7fd59977 |
43 | return ID; |
44 | } |
45 | |
46 | |
47 | //======================================================================= |
48 | //function : ExternRefGUID |
49 | //purpose : |
50 | //======================================================================= |
51 | |
f6973d90 |
52 | const Standard_GUID& XCAFDoc::ExternRefGUID () |
7fd59977 |
53 | { |
f6973d90 |
54 | static const Standard_GUID ID ("6b896b01-3adf-11d4-b9b7-0060b0ee281b"); |
7fd59977 |
55 | return ID; |
56 | } |
57 | |
58 | |
59 | //======================================================================= |
60 | //function : ColorRefGUID |
61 | //purpose : |
62 | //======================================================================= |
63 | |
f6973d90 |
64 | const Standard_GUID& XCAFDoc::ColorRefGUID (const XCAFDoc_ColorType type) |
7fd59977 |
65 | { |
f6973d90 |
66 | static const Standard_GUID IDcol ("efd212e4-6dfd-11d4-b9c8-0060b0ee281b"); |
67 | static const Standard_GUID IDcolSurf ("efd212e5-6dfd-11d4-b9c8-0060b0ee281b"); |
68 | static const Standard_GUID IDcolCurv ("efd212e6-6dfd-11d4-b9c8-0060b0ee281b"); |
7fd59977 |
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 | |
f6973d90 |
84 | const Standard_GUID& XCAFDoc::DimTolRefGUID() |
7fd59977 |
85 | { |
f6973d90 |
86 | //static const Standard_GUID IDDimTol("58ed092d-44de-11d8-8776-001083004c77"); |
87 | static const Standard_GUID ID("efd212e9-6dfd-11d4-b9c8-0060b0ee281b"); |
7fd59977 |
88 | //return IDDimTol; |
89 | return ID; |
90 | } |
91 | |
9ebaae37 |
92 | //======================================================================= |
93 | //function : DimensionRefGUID |
94 | //purpose : |
95 | //======================================================================= |
96 | |
f6973d90 |
97 | const Standard_GUID& XCAFDoc::DimensionRefFirstGUID() |
9ebaae37 |
98 | { |
f6973d90 |
99 | static const Standard_GUID ID("efd212e3-6dfd-11d4-b9c8-0060b0ee281b"); |
9ebaae37 |
100 | return ID; |
101 | } |
102 | |
1c9d3225 |
103 | //======================================================================= |
104 | //function : DimensionRefGUID |
105 | //purpose : |
106 | //======================================================================= |
107 | |
f6973d90 |
108 | const Standard_GUID& XCAFDoc::DimensionRefSecondGUID() |
1c9d3225 |
109 | { |
f6973d90 |
110 | static const Standard_GUID ID("efd212e0-6dfd-11d4-b9c8-0060b0ee281b"); |
1c9d3225 |
111 | return ID; |
112 | } |
113 | |
9ebaae37 |
114 | //======================================================================= |
115 | //function : GeomToleranceRefGUID |
116 | //purpose : |
117 | //======================================================================= |
118 | |
f6973d90 |
119 | const Standard_GUID& XCAFDoc::GeomToleranceRefGUID() |
9ebaae37 |
120 | { |
f6973d90 |
121 | static const Standard_GUID ID("efd213e3-6dfd-11d4-b9c8-0060b0ee281b"); |
9ebaae37 |
122 | return ID; |
123 | } |
7fd59977 |
124 | |
125 | //======================================================================= |
126 | //function : DatumRefGUID |
127 | //purpose : |
128 | //======================================================================= |
129 | |
f6973d90 |
130 | const Standard_GUID& XCAFDoc::DatumRefGUID() |
7fd59977 |
131 | { |
f6973d90 |
132 | static const Standard_GUID ID("efd212e2-6dfd-11d4-b9c8-0060b0ee281b"); |
7fd59977 |
133 | return ID; |
134 | } |
135 | |
136 | |
137 | //======================================================================= |
138 | //function : DatumTolRefGUID |
139 | //purpose : |
140 | //======================================================================= |
141 | |
f6973d90 |
142 | const Standard_GUID& XCAFDoc::DatumTolRefGUID() |
7fd59977 |
143 | { |
f6973d90 |
144 | //static const Standard_GUID IDDimTol("58ed092d-44de-11d8-8776-001083004c77"); |
145 | static const Standard_GUID ID("efd212e7-6dfd-11d4-b9c8-0060b0ee281b"); |
7fd59977 |
146 | //return IDDimTol; |
147 | return ID; |
148 | } |
149 | |
150 | |
151 | //======================================================================= |
152 | //function : LayerRefGUID |
153 | //purpose : |
154 | //======================================================================= |
155 | |
f6973d90 |
156 | const Standard_GUID& XCAFDoc::LayerRefGUID () |
7fd59977 |
157 | { |
f6973d90 |
158 | static const Standard_GUID ID ("efd212e8-6dfd-11d4-b9c8-0060b0ee281b"); |
7fd59977 |
159 | return ID; |
160 | } |
161 | |
162 | |
163 | //======================================================================= |
164 | //function : MaterialRefGUID |
165 | //purpose : |
166 | //======================================================================= |
167 | |
f6973d90 |
168 | const Standard_GUID& XCAFDoc::MaterialRefGUID () |
7fd59977 |
169 | { |
f6973d90 |
170 | static const Standard_GUID ID ("efd212f7-6dfd-11d4-b9c8-0060b0ee281b"); |
7fd59977 |
171 | return ID; |
172 | } |
173 | |
a4815d55 |
174 | //======================================================================= |
175 | //function : VisMaterialRefGUID |
176 | //purpose : |
177 | //======================================================================= |
178 | const Standard_GUID& XCAFDoc::VisMaterialRefGUID() |
179 | { |
180 | static const Standard_GUID ID ("936F4070-5369-405D-A7AD-2AC76C860EC8"); |
181 | return ID; |
182 | } |
7fd59977 |
183 | |
024d6f77 |
184 | //======================================================================= |
185 | //function : NoteRefGUID |
186 | //purpose : |
187 | //======================================================================= |
188 | |
f6973d90 |
189 | const Standard_GUID& XCAFDoc::NoteRefGUID() |
024d6f77 |
190 | { |
f6973d90 |
191 | static const Standard_GUID ID ("F3599E50-F84A-493e-8D1B-1284E79322F1"); |
024d6f77 |
192 | return ID; |
193 | } |
194 | |
7fd59977 |
195 | //======================================================================= |
196 | //function : InvisibleGUID |
197 | //purpose : |
198 | //======================================================================= |
199 | |
f6973d90 |
200 | const Standard_GUID& XCAFDoc::InvisibleGUID () |
7fd59977 |
201 | { |
f6973d90 |
202 | static const Standard_GUID ID ("5b896aff-3adf-11d4-b9b7-0060b0ee281b"); |
7fd59977 |
203 | return ID; |
204 | } |
205 | |
206 | |
08b183fe |
207 | //======================================================================= |
208 | //function : ColorByLayerGUID |
209 | //purpose : |
210 | //======================================================================= |
211 | |
f6973d90 |
212 | const Standard_GUID& XCAFDoc::ColorByLayerGUID () |
08b183fe |
213 | { |
f6973d90 |
214 | static const Standard_GUID ID ("279e8c1e-70af-4130-b626-9cc52a537db8"); |
08b183fe |
215 | return ID; |
216 | } |
217 | |
218 | |
7fd59977 |
219 | //======================================================================= |
220 | //function : SHUORefGUID |
221 | //purpose : |
222 | //======================================================================= |
223 | |
f6973d90 |
224 | const Standard_GUID& XCAFDoc::SHUORefGUID () |
7fd59977 |
225 | { |
f6973d90 |
226 | static const Standard_GUID ID ("efd212ea-6dfd-11d4-b9c8-0060b0ee281b"); |
7fd59977 |
227 | return ID; |
228 | } |
2df785d7 |
229 | |
230 | //======================================================================= |
231 | //function : ViewRefGUID |
232 | //purpose : |
233 | //======================================================================= |
234 | |
f6973d90 |
235 | const Standard_GUID& XCAFDoc::ViewRefGUID() |
2df785d7 |
236 | { |
f6973d90 |
237 | static const Standard_GUID ID("efd213e5-6dfd-11d4-b9c8-0060b0ee281b"); |
2df785d7 |
238 | return ID; |
239 | } |
240 | |
241 | //======================================================================= |
242 | //function : ViewRefShapeGUID |
243 | //purpose : |
244 | //======================================================================= |
245 | |
f6973d90 |
246 | const Standard_GUID& XCAFDoc::ViewRefShapeGUID() |
2df785d7 |
247 | { |
f6973d90 |
248 | static const Standard_GUID ID("efd213e6-6dfd-11d4-b9c8-0060b0ee281b"); |
2df785d7 |
249 | return ID; |
250 | } |
251 | |
252 | //======================================================================= |
253 | //function : ViewRefGDTGUID |
254 | //purpose : |
255 | //======================================================================= |
256 | |
f6973d90 |
257 | const Standard_GUID& XCAFDoc::ViewRefGDTGUID() |
2df785d7 |
258 | { |
f6973d90 |
259 | static const Standard_GUID ID("efd213e7-6dfd-11d4-b9c8-0060b0ee281b"); |
2df785d7 |
260 | return ID; |
261 | } |
0c63f2f8 |
262 | |
263 | //======================================================================= |
264 | //function : ViewRefPlaneGUID |
265 | //purpose : |
266 | //======================================================================= |
267 | |
f6973d90 |
268 | const Standard_GUID& XCAFDoc::ViewRefPlaneGUID() |
0c63f2f8 |
269 | { |
f6973d90 |
270 | static const Standard_GUID ID("efd213e9-6dfd-11d4-b9c8-0060b0ee281b"); |
0c63f2f8 |
271 | return ID; |
272 | } |
273 | |
024d6f77 |
274 | //======================================================================= |
275 | //function : ViewRefPlaneGUID |
276 | //purpose : |
277 | //======================================================================= |
278 | |
f6973d90 |
279 | const Standard_GUID& XCAFDoc::ViewRefNoteGUID() |
024d6f77 |
280 | { |
f6973d90 |
281 | static const Standard_GUID ID("C814ACC6-43AC-4812-9B2A-4E9A2A549354"); |
024d6f77 |
282 | return ID; |
283 | } |
284 | |
285 | //======================================================================= |
286 | //function : ViewRefPlaneGUID |
287 | //purpose : |
288 | //======================================================================= |
289 | |
f6973d90 |
290 | const Standard_GUID& XCAFDoc::ViewRefAnnotationGUID() |
024d6f77 |
291 | { |
f6973d90 |
292 | static const Standard_GUID ID("A2B5BA42-DD00-43f5-8882-4B5F8E76B9D2"); |
024d6f77 |
293 | return ID; |
294 | } |
295 | |
0c63f2f8 |
296 | //======================================================================= |
297 | //function : LockGUID |
298 | //purpose : |
299 | //======================================================================= |
300 | |
f6973d90 |
301 | const Standard_GUID& XCAFDoc::LockGUID() |
0c63f2f8 |
302 | { |
f6973d90 |
303 | static const Standard_GUID ID("efd213eb-6dfd-11d4-b9c8-0060b0ee281b"); |
0c63f2f8 |
304 | return ID; |
305 | } |