0026290: It is neccessary to separate visualization part from TKCAF
authorszy <szy@opencascade.com>
Tue, 1 Dec 2015 15:26:55 +0000 (18:26 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 10 Dec 2015 12:55:00 +0000 (15:55 +0300)
commitf47afe531d1f3892837a0ed8eec90298245d8f9f
treea8f079fc0d16e30f20b800ab20120aa80571e5cc
parentd0fc16452d33f4d1619d3b0b5a5819961a62f016
0026290: It is neccessary to separate visualization part from TKCAF

- Package TPrsStd is moved into new toolkit TKVCAF. This is the only toolkit in OCAF that depends on visualization libraries.

- All persistent data stored in TPrsStd_AISPresentation attribute are moved to new attribute TDataXtd_Presentation, which is maintained automatically on the same label as TPrsStd_AISPresentation.
All parameters used by TPrsStd_AISPresentation are stored in corresponding TDataXtd_Presentation attribute.

- TPrsStd_AISPresentation is not stored in file any more; when OCAF document is loaded from a file, these attributes are created at all labels where TDataXtd_Presentation attribute is located, by TPrsStd_AISViewer::New().

- File src/StdResources/MigrationSheet.txt necessary for reading files written by previous versions of OCCT (lost in one of previous integrations) is restored and updated as necessary to handle this change (defines replacement of TPrsStd_AISPresentation by TDataXtd_Presentation). Environment variable CSF_MIGRATION_TYPES should be defined, pointing to this file.

- Packages BinMPrsStd and XmlMPrsStd are removed; their drivers are moved into BinMDataXtd and XmlMDataXtd respectively.

- Version numbers of BinOCAF and XmlOCAF formats are increased, new files cannot be read by previous versions of OCCT

- New tests added

- Adding new TKVCAF toolkit in sample projects

- Restore IsDisplayed(false) in TPrsStd_AISPresentation::Erase()
113 files changed:
adm/MODULES
adm/UDLIST
dox/dev_guides/upgrade/upgrade.md
samples/mfc/standard/01_Geometry/adm/win/vc10/Geometry.vcxproj
samples/mfc/standard/01_Geometry/adm/win/vc11/Geometry.vcxproj
samples/mfc/standard/01_Geometry/adm/win/vc12/Geometry.vcxproj
samples/mfc/standard/01_Geometry/adm/win/vc8/Geometry.vcproj
samples/mfc/standard/01_Geometry/adm/win/vc9/Geometry.vcproj
samples/mfc/standard/02_Modeling/adm/win/vc10/Modeling.vcxproj
samples/mfc/standard/02_Modeling/adm/win/vc11/Modeling.vcxproj
samples/mfc/standard/02_Modeling/adm/win/vc12/Modeling.vcxproj
samples/mfc/standard/02_Modeling/adm/win/vc8/Modeling.vcproj
samples/mfc/standard/02_Modeling/adm/win/vc9/Modeling.vcproj
samples/mfc/standard/03_Viewer2d/adm/win/vc10/Viewer2d.vcxproj
samples/mfc/standard/03_Viewer2d/adm/win/vc11/Viewer2d.vcxproj
samples/mfc/standard/03_Viewer2d/adm/win/vc12/Viewer2d.vcxproj
samples/mfc/standard/03_Viewer2d/adm/win/vc8/Viewer2d.vcproj
samples/mfc/standard/03_Viewer2d/adm/win/vc9/Viewer2d.vcproj
samples/mfc/standard/04_Viewer3d/adm/win/vc10/Viewer3d.vcxproj
samples/mfc/standard/04_Viewer3d/adm/win/vc11/Viewer3d.vcxproj
samples/mfc/standard/04_Viewer3d/adm/win/vc12/Viewer3d.vcxproj
samples/mfc/standard/04_Viewer3d/adm/win/vc8/Viewer3d.vcproj
samples/mfc/standard/04_Viewer3d/adm/win/vc9/Viewer3d.vcproj
samples/mfc/standard/05_ImportExport/adm/win/vc10/ImportExport.vcxproj
samples/mfc/standard/05_ImportExport/adm/win/vc11/ImportExport.vcxproj
samples/mfc/standard/05_ImportExport/adm/win/vc12/ImportExport.vcxproj
samples/mfc/standard/05_ImportExport/adm/win/vc8/ImportExport.vcproj
samples/mfc/standard/05_ImportExport/adm/win/vc9/ImportExport.vcproj
samples/mfc/standard/06_Ocaf/adm/win/vc10/Ocaf.vcxproj
samples/mfc/standard/06_Ocaf/adm/win/vc11/Ocaf.vcxproj
samples/mfc/standard/06_Ocaf/adm/win/vc12/Ocaf.vcxproj
samples/mfc/standard/06_Ocaf/adm/win/vc8/Ocaf.vcproj
samples/mfc/standard/06_Ocaf/adm/win/vc9/Ocaf.vcproj
samples/mfc/standard/07_Triangulation/adm/win/vc10/Triangulation.vcxproj
samples/mfc/standard/07_Triangulation/adm/win/vc11/Triangulation.vcxproj
samples/mfc/standard/07_Triangulation/adm/win/vc12/Triangulation.vcxproj
samples/mfc/standard/07_Triangulation/adm/win/vc8/Triangulation.vcproj
samples/mfc/standard/07_Triangulation/adm/win/vc9/Triangulation.vcproj
samples/mfc/standard/08_HLR/adm/win/vc10/HLR.vcxproj
samples/mfc/standard/08_HLR/adm/win/vc11/HLR.vcxproj
samples/mfc/standard/08_HLR/adm/win/vc12/HLR.vcxproj
samples/mfc/standard/08_HLR/adm/win/vc8/HLR.vcproj
samples/mfc/standard/08_HLR/adm/win/vc9/HLR.vcproj
samples/mfc/standard/09_Animation/adm/win/vc10/Animation.vcxproj
samples/mfc/standard/09_Animation/adm/win/vc11/Animation.vcxproj
samples/mfc/standard/09_Animation/adm/win/vc12/Animation.vcxproj
samples/mfc/standard/09_Animation/adm/win/vc8/Animation.vcproj
samples/mfc/standard/09_Animation/adm/win/vc9/Animation.vcproj
samples/mfc/standard/10_Convert/adm/win/vc10/Convert.vcxproj
samples/mfc/standard/10_Convert/adm/win/vc11/Convert.vcxproj
samples/mfc/standard/10_Convert/adm/win/vc12/Convert.vcxproj
samples/mfc/standard/10_Convert/adm/win/vc8/Convert.vcproj
samples/mfc/standard/10_Convert/adm/win/vc9/Convert.vcproj
samples/mfc/standard/mfcsample/adm/win/vc10/mfcsample.vcxproj
samples/mfc/standard/mfcsample/adm/win/vc11/mfcsample.vcxproj
samples/mfc/standard/mfcsample/adm/win/vc12/mfcsample.vcxproj
samples/mfc/standard/mfcsample/adm/win/vc8/mfcsample.vcproj
samples/mfc/standard/mfcsample/adm/win/vc9/mfcsample.vcproj
src/BinDrivers/BinDrivers.cxx
src/BinLDrivers/BinLDrivers.cxx
src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx
src/BinMDataXtd/BinMDataXtd.cxx
src/BinMDataXtd/BinMDataXtd_PositionDriver.cxx [moved from src/BinMPrsStd/BinMPrsStd_PositionDriver.cxx with 85% similarity]
src/BinMDataXtd/BinMDataXtd_PositionDriver.hxx [moved from src/BinMPrsStd/BinMPrsStd_PositionDriver.hxx with 74% similarity]
src/BinMDataXtd/BinMDataXtd_PresentationDriver.cxx [new file with mode: 0644]
src/BinMDataXtd/BinMDataXtd_PresentationDriver.hxx [moved from src/BinMPrsStd/BinMPrsStd_AISPresentationDriver.hxx with 71% similarity]
src/BinMDataXtd/FILES
src/BinMPrsStd/BinMPrsStd.cxx [deleted file]
src/BinMPrsStd/BinMPrsStd.hxx [deleted file]
src/BinMPrsStd/BinMPrsStd_AISPresentationDriver.cxx [deleted file]
src/BinMPrsStd/FILES [deleted file]
src/DPrsStd/DPrsStd_AISPresentationCommands.cxx
src/OS/ApplicationFramework.tcl
src/OSD/OSD_File.cxx
src/QABugs/QABugs_3.cxx
src/StdResource/FILES
src/StdResource/MigrationSheet.txt [new file with mode: 0644]
src/TDataXtd/FILES
src/TDataXtd/TDataXtd_Presentation.cxx [new file with mode: 0644]
src/TDataXtd/TDataXtd_Presentation.hxx [new file with mode: 0644]
src/TKBin/CMakeLists.txt
src/TKBin/EXTERNLIB
src/TKBin/PACKAGES
src/TKCAF/EXTERNLIB
src/TKCAF/PACKAGES
src/TKDCAF/EXTERNLIB
src/TKQADraw/EXTERNLIB
src/TKVCAF/CMakeLists.txt [new file with mode: 0644]
src/TKVCAF/EXTERNLIB [new file with mode: 0644]
src/TKVCAF/FILES [new file with mode: 0644]
src/TKVCAF/PACKAGES [new file with mode: 0644]
src/TKXCAF/EXTERNLIB
src/TKXDEDRAW/EXTERNLIB
src/TKXml/EXTERNLIB
src/TKXml/PACKAGES
src/TPrsStd/GUID.txt
src/TPrsStd/TPrsStd_AISPresentation.cxx
src/TPrsStd/TPrsStd_AISPresentation.hxx
src/TPrsStd/TPrsStd_AISViewer.cxx
src/XmlDrivers/XmlDrivers.cxx
src/XmlLDrivers/XmlLDrivers.cxx
src/XmlMDataXtd/FILES
src/XmlMDataXtd/XmlMDataXtd.cxx
src/XmlMDataXtd/XmlMDataXtd_PositionDriver.cxx [moved from src/XmlMPrsStd/XmlMPrsStd_PositionDriver.cxx with 90% similarity]
src/XmlMDataXtd/XmlMDataXtd_PositionDriver.hxx [moved from src/XmlMPrsStd/XmlMPrsStd_PositionDriver.hxx with 72% similarity]
src/XmlMDataXtd/XmlMDataXtd_PresentationDriver.cxx [moved from src/XmlMPrsStd/XmlMPrsStd_AISPresentationDriver.cxx with 80% similarity]
src/XmlMDataXtd/XmlMDataXtd_PresentationDriver.hxx [moved from src/XmlMPrsStd/XmlMPrsStd_AISPresentationDriver.hxx with 70% similarity]
src/XmlMPrsStd/FILES [deleted file]
src/XmlMPrsStd/XmlMPrsStd.cxx [deleted file]
src/XmlMPrsStd/XmlMPrsStd.hxx [deleted file]
tests/bugs/caf/bug26290_compatibility [new file with mode: 0644]
tests/bugs/caf/bug26290_newattribute_1 [new file with mode: 0644]
tests/bugs/caf/bug26290_newattribute_2 [new file with mode: 0644]