mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
Mostly duplicated comments were removed and missing ones were moved into dedicated class CDL files. Some more duplicated comments were removed from CDL files. Correction of merge
118 lines
4.3 KiB
Plaintext
118 lines
4.3 KiB
Plaintext
-- Created on: 2000-08-30
|
|
-- 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.
|
|
|
|
class DocumentTool from XCAFDoc inherits Attribute from TDF
|
|
|
|
---Purpose: Defines sections structure of an XDE document.
|
|
-- attribute marking CAF document as being DECAF document.
|
|
-- Creates the sections structure of the document.
|
|
uses
|
|
Label from TDF,
|
|
Document from TDocStd,
|
|
RelocationTable from TDF,
|
|
ShapeTool from XCAFDoc,
|
|
ColorTool from XCAFDoc,
|
|
LayerTool from XCAFDoc,
|
|
DimTolTool from XCAFDoc,
|
|
MaterialTool from XCAFDoc
|
|
|
|
is
|
|
|
|
GetID (myclass)
|
|
---C++: return const &
|
|
returns GUID from Standard;
|
|
|
|
Set (myclass; L: Label from TDF;
|
|
IsAcces: Boolean from Standard = Standard_True)
|
|
---Purpose: Create (if not exist) DocumentTool attribute
|
|
-- on 0.1 label if <IsAcces> is true, else
|
|
-- on <L> label.
|
|
-- This label will be returned by DocLabel();
|
|
-- If the attribute is already set it won't be reset on
|
|
-- <L> even if <IsAcces> is false.
|
|
-- ColorTool and ShapeTool attributes are also set by this method.
|
|
returns DocumentTool from XCAFDoc;
|
|
|
|
IsXCAFDocument(myclass; Doc : Document from TDocStd)
|
|
returns Boolean from Standard;
|
|
|
|
|
|
|
|
---Category: methods defining document structure
|
|
|
|
DocLabel(myclass; acces: Label from TDF) returns Label from TDF;
|
|
---Purpose: Returns label where the DocumentTool attribute is or
|
|
-- 0.1 if DocumentTool is not yet set.
|
|
|
|
ShapesLabel (myclass; acces: Label from TDF) returns Label from TDF;
|
|
---Purpose: Returns sub-label of DocLabel() with tag 1.
|
|
|
|
ColorsLabel (myclass; acces: Label from TDF) returns Label from TDF;
|
|
---Purpose: Returns sub-label of DocLabel() with tag 2.
|
|
|
|
LayersLabel (myclass; acces: Label from TDF) returns Label from TDF;
|
|
---Purpose: Returns sub-label of DocLabel() with tag 3.
|
|
|
|
DGTsLabel (myclass; acces: Label from TDF) returns Label from TDF;
|
|
---Purpose: Returns sub-label of DocLabel() with tag 4.
|
|
|
|
MaterialsLabel (myclass; acces: Label from TDF) returns Label from TDF;
|
|
---Purpose: Returns sub-label of DocLabel() with tag 5.
|
|
|
|
|
|
ShapeTool (myclass; acces: Label from TDF) returns ShapeTool from XCAFDoc;
|
|
---Purpose: Creates (if it does not exist) ShapeTool attribute on ShapesLabel().
|
|
|
|
ColorTool(myclass; acces: Label from TDF) returns ColorTool from XCAFDoc;
|
|
---Purpose: Creates (if it does not exist) ColorTool attribute on ColorsLabel().
|
|
|
|
LayerTool(myclass; acces: Label from TDF) returns LayerTool from XCAFDoc;
|
|
---Purpose: Creates (if it does not exist) LayerTool attribute on LayersLabel().
|
|
|
|
DimTolTool(myclass; acces: Label from TDF) returns DimTolTool from XCAFDoc;
|
|
---Purpose: Creates (if it does not exist) DimTolTool attribute on DGTsLabel().
|
|
|
|
MaterialTool(myclass; acces: Label from TDF) returns MaterialTool from XCAFDoc;
|
|
---Purpose: Creates (if it does not exist) DimTolTool attribute on DGTsLabel().
|
|
|
|
|
|
Create
|
|
returns DocumentTool from XCAFDoc;
|
|
|
|
Init(me);
|
|
---Purpose: to be called when reading this attribute from file
|
|
|
|
---Category: TDF_Attribute methods
|
|
-- =====================
|
|
|
|
ID (me)
|
|
---C++: return const &
|
|
returns GUID from Standard;
|
|
|
|
Restore (me: mutable; with : Attribute from TDF);
|
|
|
|
NewEmpty (me)
|
|
returns Attribute from TDF;
|
|
|
|
Paste (me; into : Attribute from TDF;
|
|
RT : RelocationTable from TDF);
|
|
|
|
Destroy (me: mutable) is virtual;
|
|
---C++ : alias ~
|
|
---Purpose: Unregisters the document holding this attribute from an
|
|
-- internal global map of XDE documents.
|
|
|
|
end DocumentTool;
|