1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
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.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 #include <XCAFDoc.hxx>
15 #include <XCAFDoc_ColorType.hxx>
17 #include <TDF_Label.hxx>
18 #include <TDF_Tool.hxx>
19 #include <TDataStd_Name.hxx>
20 #include <TDocStd_Document.hxx>
23 //=======================================================================
24 //function : ShapeRefGUID
26 //=======================================================================
28 Standard_GUID XCAFDoc::ShapeRefGUID ()
30 static Standard_GUID ID ("5b896afe-3adf-11d4-b9b7-0060b0ee281b");
35 //=======================================================================
36 //function : AssemblyGUID
38 //=======================================================================
40 Standard_GUID XCAFDoc::AssemblyGUID ()
42 static Standard_GUID ID ("5b896b00-3adf-11d4-b9b7-0060b0ee281b");
47 //=======================================================================
48 //function : ExternRefGUID
50 //=======================================================================
52 Standard_GUID XCAFDoc::ExternRefGUID ()
54 static Standard_GUID ID ("6b896b01-3adf-11d4-b9b7-0060b0ee281b");
59 //=======================================================================
60 //function : ColorRefGUID
62 //=======================================================================
64 Standard_GUID XCAFDoc::ColorRefGUID (const XCAFDoc_ColorType type)
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");
72 case XCAFDoc_ColorGen : return IDcol;
73 case XCAFDoc_ColorSurf: return IDcolSurf;
74 case XCAFDoc_ColorCurv: return IDcolCurv;
79 //=======================================================================
80 //function : DimTolRefGUID
82 //=======================================================================
84 Standard_GUID XCAFDoc::DimTolRefGUID()
86 //static Standard_GUID IDDimTol("58ed092d-44de-11d8-8776-001083004c77");
87 static Standard_GUID ID("efd212e9-6dfd-11d4-b9c8-0060b0ee281b");
92 //=======================================================================
93 //function : DimensionRefGUID
95 //=======================================================================
97 Standard_GUID XCAFDoc::DimensionRefFirstGUID()
99 static Standard_GUID ID("efd212e3-6dfd-11d4-b9c8-0060b0ee281b");
103 //=======================================================================
104 //function : DimensionRefGUID
106 //=======================================================================
108 Standard_GUID XCAFDoc::DimensionRefSecondGUID()
110 static Standard_GUID ID("efd212e0-6dfd-11d4-b9c8-0060b0ee281b");
114 //=======================================================================
115 //function : GeomToleranceRefGUID
117 //=======================================================================
119 Standard_GUID XCAFDoc::GeomToleranceRefGUID()
121 static Standard_GUID ID("efd213e3-6dfd-11d4-b9c8-0060b0ee281b");
125 //=======================================================================
126 //function : DatumRefGUID
128 //=======================================================================
130 Standard_GUID XCAFDoc::DatumRefGUID()
132 static Standard_GUID ID("efd212e2-6dfd-11d4-b9c8-0060b0ee281b");
137 //=======================================================================
138 //function : DatumTolRefGUID
140 //=======================================================================
142 Standard_GUID XCAFDoc::DatumTolRefGUID()
144 //static Standard_GUID IDDimTol("58ed092d-44de-11d8-8776-001083004c77");
145 static Standard_GUID ID("efd212e7-6dfd-11d4-b9c8-0060b0ee281b");
151 //=======================================================================
152 //function : LayerRefGUID
154 //=======================================================================
156 Standard_GUID XCAFDoc::LayerRefGUID ()
158 static Standard_GUID ID ("efd212e8-6dfd-11d4-b9c8-0060b0ee281b");
163 //=======================================================================
164 //function : MaterialRefGUID
166 //=======================================================================
168 Standard_GUID XCAFDoc::MaterialRefGUID ()
170 static Standard_GUID ID ("efd212f7-6dfd-11d4-b9c8-0060b0ee281b");
175 //=======================================================================
176 //function : InvisibleGUID
178 //=======================================================================
180 Standard_GUID XCAFDoc::InvisibleGUID ()
182 static Standard_GUID ID ("5b896aff-3adf-11d4-b9b7-0060b0ee281b");
187 //=======================================================================
188 //function : SHUORefGUID
190 //=======================================================================
192 Standard_GUID XCAFDoc::SHUORefGUID ()
194 static Standard_GUID ID ("efd212ea-6dfd-11d4-b9c8-0060b0ee281b");