]> 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>
Thu, 28 Oct 2021 07:24:54 +0000 (10:24 +0300)
commit0d6efcedb2d6a6288b0753f19baf270d5cfb99ed
tree534cb1cc25efadd7df4ec8521d0f577adee23fa3
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]