-- Created on: 2000-08-08 -- Created by: data exchange team -- Copyright (c) 2000-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. package XCAFDoc ---Purpose: Definition of general structure of DECAF document -- and tools to work with it -- -- The document is composed of sections, each section -- storing its own kind of data and managing by corresponding -- tool -- Some properties can be attached directly to shapes. These properties are: -- * Name (the standard definition from OCAF) - class TDataStd_Name -- * Centroid (for the validation of transfer) - class XCAFDoc_Centroid -- * Volume (for the validation of transfer) - class XCAFDoc_Volume -- * Area (for the validation of transfer) - class XCafDoc_Area -- Management of these attributes is realized by OCAF. For getting -- the attributes attached to a label the method class -- TDF_Label::FindAttribute() should be used. uses Quantity, TCollection, TColStd, TopLoc, TopoDS, TopTools, TDF, TDocStd, TDataStd, gp is enumeration ColorType is ---Purpose: Defines types of color assignments -- Color of shape is defined following way -- in dependance with type of color. -- If type of color is XCAFDoc_ColorGen - then this color -- defines default color for surfaces and curves. -- If for shape color with types XCAFDoc_ColorSurf or XCAFDoc_ColorCurv is specified -- then such color overrides generic color. ColorGen, -- simple color ColorSurf, -- color of surfaces ColorCurv -- color of curves end ColorType; class DocumentTool; class Location; class Color; class DimTol; class Datum; class Material; class Volume; class Area; class Centroid; class ShapeTool; class ShapeMapTool; class ColorTool; class DimTolTool; class LayerTool; class MaterialTool; class GraphNode; class GraphNodeSequence instantiates Sequence from TCollection (GraphNode from XCAFDoc); ---Purpose: class for containing GraphNodes. class DataMapOfShapeLabel instantiates DataMap from TCollection (Shape from TopoDS, Label from TDF, ShapeMapHasher from TopTools); ---Package methods: definition of GUIDs AssemblyGUID returns GUID from Standard; ---Purpose: Returns GUID for UAttribute identifying assembly ShapeRefGUID returns GUID from Standard; ---Purpose: Returns GUID for TreeNode representing assembly link ColorRefGUID (type: ColorType from XCAFDoc) returns GUID from Standard; ---Purpose: Return GUIDs for TreeNode representing specified types of colors DimTolRefGUID returns GUID from Standard; ---Purpose: Return GUIDs for TreeNode representing specified types of DGT DatumRefGUID returns GUID from Standard; ---Purpose: Return GUIDs for TreeNode representing specified types of datum DatumTolRefGUID returns GUID from Standard; ---Purpose: Return GUIDs for TreeNode representing connections Datum-Toler LayerRefGUID returns GUID from Standard; MaterialRefGUID returns GUID from Standard; InvisibleGUID returns GUID from Standard; ExternRefGUID returns GUID from Standard; ---Purpose: Returns GUID for UAttribute identifying external reference on no-step file SHUORefGUID returns GUID from Standard; ---Purpose: Returns GUID for UAttribute identifying specified higher usage occurrence end XCAFDoc;