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 | |
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 | |
9ebaae37 |
92 | //======================================================================= |
93 | //function : DimensionRefGUID |
94 | //purpose : |
95 | //======================================================================= |
96 | |
1c9d3225 |
97 | Standard_GUID XCAFDoc::DimensionRefFirstGUID() |
9ebaae37 |
98 | { |
99 | static Standard_GUID ID("efd212e3-6dfd-11d4-b9c8-0060b0ee281b"); |
100 | return ID; |
101 | } |
102 | |
1c9d3225 |
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 | |
9ebaae37 |
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 | } |
7fd59977 |
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 | } |
2df785d7 |
197 | |
198 | //======================================================================= |
199 | //function : ViewRefGUID |
200 | //purpose : |
201 | //======================================================================= |
202 | |
203 | Standard_GUID XCAFDoc::ViewRefGUID() |
204 | { |
205 | static Standard_GUID ID("efd213e5-6dfd-11d4-b9c8-0060b0ee281b"); |
206 | return ID; |
207 | } |
208 | |
209 | //======================================================================= |
210 | //function : ViewRefShapeGUID |
211 | //purpose : |
212 | //======================================================================= |
213 | |
214 | Standard_GUID XCAFDoc::ViewRefShapeGUID() |
215 | { |
216 | static Standard_GUID ID("efd213e6-6dfd-11d4-b9c8-0060b0ee281b"); |
217 | return ID; |
218 | } |
219 | |
220 | //======================================================================= |
221 | //function : ViewRefGDTGUID |
222 | //purpose : |
223 | //======================================================================= |
224 | |
225 | Standard_GUID XCAFDoc::ViewRefGDTGUID() |
226 | { |
227 | static Standard_GUID ID("efd213e7-6dfd-11d4-b9c8-0060b0ee281b"); |
228 | return ID; |
229 | } |
0c63f2f8 |
230 | |
231 | //======================================================================= |
232 | //function : ViewRefPlaneGUID |
233 | //purpose : |
234 | //======================================================================= |
235 | |
236 | Standard_GUID XCAFDoc::ViewRefPlaneGUID() |
237 | { |
238 | static Standard_GUID ID("efd213e9-6dfd-11d4-b9c8-0060b0ee281b"); |
239 | return ID; |
240 | } |
241 | |
242 | //======================================================================= |
243 | //function : LockGUID |
244 | //purpose : |
245 | //======================================================================= |
246 | |
247 | Standard_GUID XCAFDoc::LockGUID() |
248 | { |
249 | static Standard_GUID ID("efd213eb-6dfd-11d4-b9c8-0060b0ee281b"); |
250 | return ID; |
251 | } |