]> OCCT Git - occt.git/commit
0028104: Data Exchange - Extract sub-assembly (XDE)
authordpasukhi <dpasukhi@opencascade.com>
Tue, 26 Oct 2021 20:45:42 +0000 (23:45 +0300)
committerdpasukhi <dpasukhi@opencascade.com>
Wed, 27 Oct 2021 06:29:10 +0000 (09:29 +0300)
commit97ec42b02ad38dd87421defa5174eeeb261f9e8a
treef70749327008fa0506a78ca922ef8943e0c35570
parent5b756182c269a3d4fc19b82fe8527f0fcabf5c57
0028104: Data Exchange - Extract sub-assembly (XDE)

- Added getting and setting Material, VisMaterial and Props to XCAFDoc_Editor::Expand.
- Added XCAFDoc_Editor::Extract to transfer part to a new location
  - XCAFDoc_Editor::Extract allows to extract a part as a component or simply extract to an empty label with attached colors, layers, materials, vismaterials and props
- Added XCAFDoc_Editor::CloneMetaData to clone shape's attributes to new location
- Added XCAFDoc_Editor::CloneShapeLabel to clone shape to new document
- Added XCAFDoc_DocumentTool::Check*Tool methods to check an existing of an any tool
- Protected against creating a new label for non-existent tools via extract or expand process
src/XCAFDoc/XCAFDoc_DocumentTool.cxx
src/XCAFDoc/XCAFDoc_DocumentTool.hxx
src/XCAFDoc/XCAFDoc_Editor.cxx
src/XCAFDoc/XCAFDoc_Editor.hxx
src/XDEDRAW/XDEDRAW_Common.cxx
tests/bugs/xde/bug28104 [new file with mode: 0644]
tests/bugs/xde/bug28104_1 [new file with mode: 0644]