mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
328 lines
9.4 KiB
C++
328 lines
9.4 KiB
C++
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
#include <XCAFDoc.hxx>
|
|
#include <XCAFDoc_ColorType.hxx>
|
|
|
|
#include <TDF_Label.hxx>
|
|
#include <TDF_Tool.hxx>
|
|
#include <TDataStd_Name.hxx>
|
|
#include <TDocStd_Document.hxx>
|
|
#include <Standard_GUID.hxx>
|
|
|
|
//=======================================================================
|
|
//function : ShapeRefGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::ShapeRefGUID ()
|
|
{
|
|
static Standard_GUID ID ("5b896afe-3adf-11d4-b9b7-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : AssemblyGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::AssemblyGUID ()
|
|
{
|
|
static Standard_GUID ID ("5b896b00-3adf-11d4-b9b7-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : ExternRefGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::ExternRefGUID ()
|
|
{
|
|
static Standard_GUID ID ("6b896b01-3adf-11d4-b9b7-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : ColorRefGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::ColorRefGUID (const XCAFDoc_ColorType type)
|
|
{
|
|
static Standard_GUID IDcol ("efd212e4-6dfd-11d4-b9c8-0060b0ee281b");
|
|
static Standard_GUID IDcolSurf ("efd212e5-6dfd-11d4-b9c8-0060b0ee281b");
|
|
static Standard_GUID IDcolCurv ("efd212e6-6dfd-11d4-b9c8-0060b0ee281b");
|
|
|
|
switch ( type ) {
|
|
default:
|
|
case XCAFDoc_ColorGen : return IDcol;
|
|
case XCAFDoc_ColorSurf: return IDcolSurf;
|
|
case XCAFDoc_ColorCurv: return IDcolCurv;
|
|
}
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : DimTolRefGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::DimTolRefGUID()
|
|
{
|
|
//static Standard_GUID IDDimTol("58ed092d-44de-11d8-8776-001083004c77");
|
|
static Standard_GUID ID("efd212e9-6dfd-11d4-b9c8-0060b0ee281b");
|
|
//return IDDimTol;
|
|
return ID;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : DimensionRefGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::DimensionRefFirstGUID()
|
|
{
|
|
static Standard_GUID ID("efd212e3-6dfd-11d4-b9c8-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : DimensionRefGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::DimensionRefSecondGUID()
|
|
{
|
|
static Standard_GUID ID("efd212e0-6dfd-11d4-b9c8-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : GeomToleranceRefGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::GeomToleranceRefGUID()
|
|
{
|
|
static Standard_GUID ID("efd213e3-6dfd-11d4-b9c8-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : DatumRefGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::DatumRefGUID()
|
|
{
|
|
static Standard_GUID ID("efd212e2-6dfd-11d4-b9c8-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : DatumTolRefGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::DatumTolRefGUID()
|
|
{
|
|
//static Standard_GUID IDDimTol("58ed092d-44de-11d8-8776-001083004c77");
|
|
static Standard_GUID ID("efd212e7-6dfd-11d4-b9c8-0060b0ee281b");
|
|
//return IDDimTol;
|
|
return ID;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : LayerRefGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::LayerRefGUID ()
|
|
{
|
|
static Standard_GUID ID ("efd212e8-6dfd-11d4-b9c8-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : MaterialRefGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::MaterialRefGUID ()
|
|
{
|
|
static Standard_GUID ID ("efd212f7-6dfd-11d4-b9c8-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : NoteRefGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::NoteRefGUID()
|
|
{
|
|
static Standard_GUID ID ("F3599E50-F84A-493e-8D1B-1284E79322F1");
|
|
return ID;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : InvisibleGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::InvisibleGUID ()
|
|
{
|
|
static Standard_GUID ID ("5b896aff-3adf-11d4-b9b7-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : ColorByLayerGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::ColorByLayerGUID ()
|
|
{
|
|
static Standard_GUID ID ("279e8c1e-70af-4130-b626-9cc52a537db8");
|
|
return ID;
|
|
}
|
|
|
|
|
|
//=======================================================================
|
|
//function : SHUORefGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::SHUORefGUID ()
|
|
{
|
|
static Standard_GUID ID ("efd212ea-6dfd-11d4-b9c8-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : ViewRefGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::ViewRefGUID()
|
|
{
|
|
static Standard_GUID ID("efd213e5-6dfd-11d4-b9c8-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : ViewRefShapeGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::ViewRefShapeGUID()
|
|
{
|
|
static Standard_GUID ID("efd213e6-6dfd-11d4-b9c8-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : ViewRefGDTGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::ViewRefGDTGUID()
|
|
{
|
|
static Standard_GUID ID("efd213e7-6dfd-11d4-b9c8-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : ViewRefPlaneGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::ViewRefPlaneGUID()
|
|
{
|
|
static Standard_GUID ID("efd213e9-6dfd-11d4-b9c8-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : ViewRefNoteGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::ViewRefNoteGUID()
|
|
{
|
|
static Standard_GUID ID("efd213e2-6dfd-11d4-b9c8-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : ViewRefEnabledShapesGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::ViewRefEnabledShapesGUID()
|
|
{
|
|
static Standard_GUID ID("efd213e4-6dfd-11d4-b9c8-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : ViewRefPlaneGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::ViewRefAnnotationGUID()
|
|
{
|
|
static Standard_GUID ID("A2B5BA42-DD00-43f5-8882-4B5F8E76B9D2");
|
|
return ID;
|
|
}
|
|
|
|
//=======================================================================
|
|
//function : LockGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::LockGUID()
|
|
{
|
|
static Standard_GUID ID("efd213eb-6dfd-11d4-b9c8-0060b0ee281b");
|
|
return ID;
|
|
}
|
|
//=======================================================================
|
|
//function : ViewRefEnabledShapesGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::ClipPlaneCappingRefGUID()
|
|
{
|
|
static Standard_GUID ID("50976BC9-A2B0-497C-9A66-443FB8703DAD");
|
|
return ID;
|
|
}
|
|
//=======================================================================
|
|
//function : LockGUID
|
|
//purpose :
|
|
//=======================================================================
|
|
|
|
Standard_GUID XCAFDoc::ClipPlaneVisibleRefGUID()
|
|
{
|
|
static Standard_GUID ID("279E76D5-4EFF-4F48-81D5-01CA307A5634");
|
|
return ID;
|
|
}
|