0028104: Data Exchange - Extract sub-assembly (XDE)
authordpasukhi <dpasukhi@opencascade.com>
Tue, 26 Oct 2021 20:45:42 +0000 (23:45 +0300)
committersmoskvin <smoskvin@opencascade.com>
Thu, 28 Oct 2021 19:04:04 +0000 (22:04 +0300)
commit510d099d154986fa0d1d31f2b9dddb493eaf3929
treed7a711675cca75a8d3c69e88b21e251977d1cb58
parent5bd54bef323f55c3c5b9c5a8834235084d913155
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]