]> OCCT Git - occt.git/commitdiff
0032709: Samples, MFC - remove samples Viewer2d, Viewer3d, Ocaf, Triangulation, Anima... IR-2021-12-03
authorkgv <kgv@opencascade.com>
Thu, 2 Dec 2021 15:54:45 +0000 (18:54 +0300)
committersmoskvin <smoskvin@opencascade.com>
Fri, 3 Dec 2021 15:00:22 +0000 (18:00 +0300)
299 files changed:
CMakeLists.txt
samples/mfc/standard/03_ImportExport/CMakeLists.txt [new file with mode: 0644]
samples/mfc/standard/03_ImportExport/adm/win/vc10/ImportExport.vcxproj [new file with mode: 0644]
samples/mfc/standard/03_ImportExport/adm/win/vc10/ImportExport.vcxproj.filters [new file with mode: 0644]
samples/mfc/standard/03_ImportExport/res/ImportExport.rc [new file with mode: 0644]
samples/mfc/standard/03_ImportExport/res/Toolbar.bmp [new file with mode: 0644]
samples/mfc/standard/03_ImportExport/res/resource.h [new file with mode: 0644]
samples/mfc/standard/03_ImportExport/src/ColoredShapes.cpp [new file with mode: 0644]
samples/mfc/standard/03_ImportExport/src/ColoredShapes.h [new file with mode: 0644]
samples/mfc/standard/03_ImportExport/src/ImportExportApp.cpp [new file with mode: 0644]
samples/mfc/standard/03_ImportExport/src/ImportExportApp.h [new file with mode: 0644]
samples/mfc/standard/03_ImportExport/src/ImportExportDoc.cpp [new file with mode: 0644]
samples/mfc/standard/03_ImportExport/src/ImportExportDoc.h [new file with mode: 0644]
samples/mfc/standard/03_ImportExport/src/StdAfx.cpp [new file with mode: 0644]
samples/mfc/standard/03_ImportExport/src/StdAfx.h [new file with mode: 0644]
samples/mfc/standard/03_Viewer2d/CMakeLists.txt [deleted file]
samples/mfc/standard/03_Viewer2d/README.txt [deleted file]
samples/mfc/standard/03_Viewer2d/adm/win/vc10/Viewer2d.vcxproj [deleted file]
samples/mfc/standard/03_Viewer2d/adm/win/vc10/Viewer2d.vcxproj.filters [deleted file]
samples/mfc/standard/03_Viewer2d/res/Toolbar.bmp [deleted file]
samples/mfc/standard/03_Viewer2d/res/Viewer2d.rc [deleted file]
samples/mfc/standard/03_Viewer2d/res/resource.h [deleted file]
samples/mfc/standard/03_Viewer2d/src/StdAfx.cpp [deleted file]
samples/mfc/standard/03_Viewer2d/src/StdAfx.h [deleted file]
samples/mfc/standard/03_Viewer2d/src/Viewer2dApp.cpp [deleted file]
samples/mfc/standard/03_Viewer2d/src/Viewer2dApp.h [deleted file]
samples/mfc/standard/03_Viewer2d/src/Viewer2dDoc.cpp [deleted file]
samples/mfc/standard/03_Viewer2d/src/Viewer2dDoc.h [deleted file]
samples/mfc/standard/04_HLR/CMakeLists.txt [new file with mode: 0644]
samples/mfc/standard/04_HLR/README.txt [new file with mode: 0644]
samples/mfc/standard/04_HLR/adm/win/vc10/HLR.vcxproj [new file with mode: 0644]
samples/mfc/standard/04_HLR/adm/win/vc10/HLR.vcxproj.filters [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/AXOVIEWU.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/BACKVIEWD.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/BACKVIEWF.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/BACKVIEWU.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/BOTTOMVIEWD.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/BOTTOMVIEWF.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/BOTTOMVIEWU.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/ChildFrame2D.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/ChildFrame3D.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/FRONTVIEWD.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/FRONTVIEWF.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/FRONTVIEWU.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/HLR.rc [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/LEFTVIEWD.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/LEFTVIEWF.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/LEFTVIEWU.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/RIGHTVIEWD.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/RIGHTVIEWF.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/RIGHTVIEWU.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/ToolBarObjects.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/Toolbar.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/axoviewd.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/axoviewf.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/dummyd.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/dummyf.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/dummyu.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/resource.h [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/topviewd.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/topviewf.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/res/topviewu.bmp [new file with mode: 0644]
samples/mfc/standard/04_HLR/src/HLRApp.cpp [new file with mode: 0644]
samples/mfc/standard/04_HLR/src/HLRApp.h [new file with mode: 0644]
samples/mfc/standard/04_HLR/src/HLRDoc.cpp [new file with mode: 0644]
samples/mfc/standard/04_HLR/src/HLRDoc.h [new file with mode: 0644]
samples/mfc/standard/04_HLR/src/HLRView2D.cpp [new file with mode: 0644]
samples/mfc/standard/04_HLR/src/HLRView2D.h [new file with mode: 0644]
samples/mfc/standard/04_HLR/src/HLRView3D.cpp [new file with mode: 0644]
samples/mfc/standard/04_HLR/src/HLRView3D.h [new file with mode: 0644]
samples/mfc/standard/04_HLR/src/SelectionDialog.cpp [new file with mode: 0644]
samples/mfc/standard/04_HLR/src/SelectionDialog.h [new file with mode: 0644]
samples/mfc/standard/04_HLR/src/StdAfx.cpp [new file with mode: 0644]
samples/mfc/standard/04_HLR/src/StdAfx.h [new file with mode: 0644]
samples/mfc/standard/04_Viewer3d/CMakeLists.txt [deleted file]
samples/mfc/standard/04_Viewer3d/adm/win/vc10/Viewer3d.vcxproj [deleted file]
samples/mfc/standard/04_Viewer3d/adm/win/vc10/Viewer3d.vcxproj.filters [deleted file]
samples/mfc/standard/04_Viewer3d/res/AISToolbar.bmp [deleted file]
samples/mfc/standard/04_Viewer3d/res/AIS_TB.bmp [deleted file]
samples/mfc/standard/04_Viewer3d/res/Toolbar.bmp [deleted file]
samples/mfc/standard/04_Viewer3d/res/Viewer3d.rc [deleted file]
samples/mfc/standard/04_Viewer3d/res/resource.h [deleted file]
samples/mfc/standard/04_Viewer3d/res/resource.hm [deleted file]
samples/mfc/standard/04_Viewer3d/src/BoxRadius.cpp [deleted file]
samples/mfc/standard/04_Viewer3d/src/BoxRadius.h [deleted file]
samples/mfc/standard/04_Viewer3d/src/ConvertClickToPoint.cxx [deleted file]
samples/mfc/standard/04_Viewer3d/src/DlgAttributes.cpp [deleted file]
samples/mfc/standard/04_Viewer3d/src/DlgAttributes.h [deleted file]
samples/mfc/standard/04_Viewer3d/src/DlgIsos.cpp [deleted file]
samples/mfc/standard/04_Viewer3d/src/DlgIsos.h [deleted file]
samples/mfc/standard/04_Viewer3d/src/ISession_Curve.cpp [deleted file]
samples/mfc/standard/04_Viewer3d/src/ISession_Curve.h [deleted file]
samples/mfc/standard/04_Viewer3d/src/ModelClippingDlg.cpp [deleted file]
samples/mfc/standard/04_Viewer3d/src/ModelClippingDlg.h [deleted file]
samples/mfc/standard/04_Viewer3d/src/OCCDemo_Presentation.cpp [deleted file]
samples/mfc/standard/04_Viewer3d/src/OCCDemo_Presentation.h [deleted file]
samples/mfc/standard/04_Viewer3d/src/OffsetDlg.cpp [deleted file]
samples/mfc/standard/04_Viewer3d/src/OffsetDlg.h [deleted file]
samples/mfc/standard/04_Viewer3d/src/ScaleDlg.cpp [deleted file]
samples/mfc/standard/04_Viewer3d/src/ScaleDlg.h [deleted file]
samples/mfc/standard/04_Viewer3d/src/ShadingModelDlg.cpp [deleted file]
samples/mfc/standard/04_Viewer3d/src/ShadingModelDlg.h [deleted file]
samples/mfc/standard/04_Viewer3d/src/State.h [deleted file]
samples/mfc/standard/04_Viewer3d/src/StdAfx.cpp [deleted file]
samples/mfc/standard/04_Viewer3d/src/StdAfx.h [deleted file]
samples/mfc/standard/04_Viewer3d/src/TexturesExt_Presentation.cpp [deleted file]
samples/mfc/standard/04_Viewer3d/src/TexturesExt_Presentation.h [deleted file]
samples/mfc/standard/04_Viewer3d/src/TrihedronDlg.cpp [deleted file]
samples/mfc/standard/04_Viewer3d/src/TrihedronDlg.h [deleted file]
samples/mfc/standard/04_Viewer3d/src/Viewer3dApp.cpp [deleted file]
samples/mfc/standard/04_Viewer3d/src/Viewer3dApp.h [deleted file]
samples/mfc/standard/04_Viewer3d/src/Viewer3dDoc.cpp [deleted file]
samples/mfc/standard/04_Viewer3d/src/Viewer3dDoc.h [deleted file]
samples/mfc/standard/04_Viewer3d/src/Viewer3dView.cpp [deleted file]
samples/mfc/standard/04_Viewer3d/src/Viewer3dView.h [deleted file]
samples/mfc/standard/05_ImportExport/CMakeLists.txt [deleted file]
samples/mfc/standard/05_ImportExport/adm/win/vc10/ImportExport.vcxproj [deleted file]
samples/mfc/standard/05_ImportExport/adm/win/vc10/ImportExport.vcxproj.filters [deleted file]
samples/mfc/standard/05_ImportExport/res/ImportExport.rc [deleted file]
samples/mfc/standard/05_ImportExport/res/Toolbar.bmp [deleted file]
samples/mfc/standard/05_ImportExport/res/resource.h [deleted file]
samples/mfc/standard/05_ImportExport/src/ColoredShapes.cpp [deleted file]
samples/mfc/standard/05_ImportExport/src/ColoredShapes.h [deleted file]
samples/mfc/standard/05_ImportExport/src/ImportExportApp.cpp [deleted file]
samples/mfc/standard/05_ImportExport/src/ImportExportApp.h [deleted file]
samples/mfc/standard/05_ImportExport/src/ImportExportDoc.cpp [deleted file]
samples/mfc/standard/05_ImportExport/src/ImportExportDoc.h [deleted file]
samples/mfc/standard/05_ImportExport/src/StdAfx.cpp [deleted file]
samples/mfc/standard/05_ImportExport/src/StdAfx.h [deleted file]
samples/mfc/standard/06_Ocaf/CMakeLists.txt [deleted file]
samples/mfc/standard/06_Ocaf/adm/win/vc10/Ocaf.vcxproj [deleted file]
samples/mfc/standard/06_Ocaf/adm/win/vc10/Ocaf.vcxproj.filters [deleted file]
samples/mfc/standard/06_Ocaf/res/AIS_TB.bmp [deleted file]
samples/mfc/standard/06_Ocaf/res/ActionsTB.bmp [deleted file]
samples/mfc/standard/06_Ocaf/res/Ocaf.rc [deleted file]
samples/mfc/standard/06_Ocaf/res/Plugin [deleted file]
samples/mfc/standard/06_Ocaf/res/Resources [deleted file]
samples/mfc/standard/06_Ocaf/res/Toolbar.bmp [deleted file]
samples/mfc/standard/06_Ocaf/res/UndoRedoTB.bmp [deleted file]
samples/mfc/standard/06_Ocaf/res/resource.h [deleted file]
samples/mfc/standard/06_Ocaf/src/DebugBrowser.hxx [deleted file]
samples/mfc/standard/06_Ocaf/src/NewBoxDlg.cpp [deleted file]
samples/mfc/standard/06_Ocaf/src/NewBoxDlg.h [deleted file]
samples/mfc/standard/06_Ocaf/src/NewCylDlg.cpp [deleted file]
samples/mfc/standard/06_Ocaf/src/NewCylDlg.h [deleted file]
samples/mfc/standard/06_Ocaf/src/OCAFSample_CommonDriver.cxx [deleted file]
samples/mfc/standard/06_Ocaf/src/OCAFSample_CommonDriver.hxx [deleted file]
samples/mfc/standard/06_Ocaf/src/OCAFSample_Driver.hxx [deleted file]
samples/mfc/standard/06_Ocaf/src/OcafApp.cpp [deleted file]
samples/mfc/standard/06_Ocaf/src/OcafApp.h [deleted file]
samples/mfc/standard/06_Ocaf/src/OcafDoc.cpp [deleted file]
samples/mfc/standard/06_Ocaf/src/OcafDoc.h [deleted file]
samples/mfc/standard/06_Ocaf/src/OcafMainFrm.cpp [deleted file]
samples/mfc/standard/06_Ocaf/src/OcafMainFrm.h [deleted file]
samples/mfc/standard/06_Ocaf/src/StdAfx.cpp [deleted file]
samples/mfc/standard/06_Ocaf/src/StdAfx.h [deleted file]
samples/mfc/standard/06_Ocaf/src/TOcafFunction_BoxDriver.cxx [deleted file]
samples/mfc/standard/06_Ocaf/src/TOcafFunction_BoxDriver.hxx [deleted file]
samples/mfc/standard/06_Ocaf/src/TOcafFunction_CutDriver.cxx [deleted file]
samples/mfc/standard/06_Ocaf/src/TOcafFunction_CutDriver.hxx [deleted file]
samples/mfc/standard/06_Ocaf/src/TOcafFunction_CylDriver.cxx [deleted file]
samples/mfc/standard/06_Ocaf/src/TOcafFunction_CylDriver.hxx [deleted file]
samples/mfc/standard/06_Ocaf/src/TOcaf_Application.cxx [deleted file]
samples/mfc/standard/06_Ocaf/src/TOcaf_Application.hxx [deleted file]
samples/mfc/standard/06_Ocaf/src/TOcaf_Commands.cxx [deleted file]
samples/mfc/standard/06_Ocaf/src/TOcaf_Commands.hxx [deleted file]
samples/mfc/standard/07_Triangulation/CMakeLists.txt [deleted file]
samples/mfc/standard/07_Triangulation/adm/win/vc10/Triangulation.vcxproj [deleted file]
samples/mfc/standard/07_Triangulation/adm/win/vc10/Triangulation.vcxproj.filters [deleted file]
samples/mfc/standard/07_Triangulation/res/RCa05792 [deleted file]
samples/mfc/standard/07_Triangulation/res/Toolbar.bmp [deleted file]
samples/mfc/standard/07_Triangulation/res/Triangulation.rc [deleted file]
samples/mfc/standard/07_Triangulation/res/resource.h [deleted file]
samples/mfc/standard/07_Triangulation/src/ISession_Curve.cpp [deleted file]
samples/mfc/standard/07_Triangulation/src/ISession_Curve.h [deleted file]
samples/mfc/standard/07_Triangulation/src/OCCDemo_Presentation.cpp [deleted file]
samples/mfc/standard/07_Triangulation/src/OCCDemo_Presentation.h [deleted file]
samples/mfc/standard/07_Triangulation/src/StdAfx.cpp [deleted file]
samples/mfc/standard/07_Triangulation/src/StdAfx.h [deleted file]
samples/mfc/standard/07_Triangulation/src/Tesselate_Presentation.cpp [deleted file]
samples/mfc/standard/07_Triangulation/src/Tesselate_Presentation.h [deleted file]
samples/mfc/standard/07_Triangulation/src/TriangulationApp.cpp [deleted file]
samples/mfc/standard/07_Triangulation/src/TriangulationApp.h [deleted file]
samples/mfc/standard/07_Triangulation/src/TriangulationDoc.cpp [deleted file]
samples/mfc/standard/07_Triangulation/src/TriangulationDoc.h [deleted file]
samples/mfc/standard/08_HLR/CMakeLists.txt [deleted file]
samples/mfc/standard/08_HLR/README.txt [deleted file]
samples/mfc/standard/08_HLR/adm/win/vc10/HLR.vcxproj [deleted file]
samples/mfc/standard/08_HLR/adm/win/vc10/HLR.vcxproj.filters [deleted file]
samples/mfc/standard/08_HLR/res/AXOVIEWU.bmp [deleted file]
samples/mfc/standard/08_HLR/res/BACKVIEWD.bmp [deleted file]
samples/mfc/standard/08_HLR/res/BACKVIEWF.bmp [deleted file]
samples/mfc/standard/08_HLR/res/BACKVIEWU.bmp [deleted file]
samples/mfc/standard/08_HLR/res/BOTTOMVIEWD.bmp [deleted file]
samples/mfc/standard/08_HLR/res/BOTTOMVIEWF.bmp [deleted file]
samples/mfc/standard/08_HLR/res/BOTTOMVIEWU.bmp [deleted file]
samples/mfc/standard/08_HLR/res/ChildFrame2D.bmp [deleted file]
samples/mfc/standard/08_HLR/res/ChildFrame3D.bmp [deleted file]
samples/mfc/standard/08_HLR/res/FRONTVIEWD.bmp [deleted file]
samples/mfc/standard/08_HLR/res/FRONTVIEWF.bmp [deleted file]
samples/mfc/standard/08_HLR/res/FRONTVIEWU.bmp [deleted file]
samples/mfc/standard/08_HLR/res/HLR.rc [deleted file]
samples/mfc/standard/08_HLR/res/LEFTVIEWD.bmp [deleted file]
samples/mfc/standard/08_HLR/res/LEFTVIEWF.bmp [deleted file]
samples/mfc/standard/08_HLR/res/LEFTVIEWU.bmp [deleted file]
samples/mfc/standard/08_HLR/res/RIGHTVIEWD.bmp [deleted file]
samples/mfc/standard/08_HLR/res/RIGHTVIEWF.bmp [deleted file]
samples/mfc/standard/08_HLR/res/RIGHTVIEWU.bmp [deleted file]
samples/mfc/standard/08_HLR/res/ToolBarObjects.bmp [deleted file]
samples/mfc/standard/08_HLR/res/Toolbar.bmp [deleted file]
samples/mfc/standard/08_HLR/res/axoviewd.bmp [deleted file]
samples/mfc/standard/08_HLR/res/axoviewf.bmp [deleted file]
samples/mfc/standard/08_HLR/res/dummyd.bmp [deleted file]
samples/mfc/standard/08_HLR/res/dummyf.bmp [deleted file]
samples/mfc/standard/08_HLR/res/dummyu.bmp [deleted file]
samples/mfc/standard/08_HLR/res/resource.h [deleted file]
samples/mfc/standard/08_HLR/res/topviewd.bmp [deleted file]
samples/mfc/standard/08_HLR/res/topviewf.bmp [deleted file]
samples/mfc/standard/08_HLR/res/topviewu.bmp [deleted file]
samples/mfc/standard/08_HLR/src/HLRApp.cpp [deleted file]
samples/mfc/standard/08_HLR/src/HLRApp.h [deleted file]
samples/mfc/standard/08_HLR/src/HLRDoc.cpp [deleted file]
samples/mfc/standard/08_HLR/src/HLRDoc.h [deleted file]
samples/mfc/standard/08_HLR/src/HLRView2D.cpp [deleted file]
samples/mfc/standard/08_HLR/src/HLRView2D.h [deleted file]
samples/mfc/standard/08_HLR/src/HLRView3D.cpp [deleted file]
samples/mfc/standard/08_HLR/src/HLRView3D.h [deleted file]
samples/mfc/standard/08_HLR/src/SelectionDialog.cpp [deleted file]
samples/mfc/standard/08_HLR/src/SelectionDialog.h [deleted file]
samples/mfc/standard/08_HLR/src/StdAfx.cpp [deleted file]
samples/mfc/standard/08_HLR/src/StdAfx.h [deleted file]
samples/mfc/standard/09_Animation/CMakeLists.txt [deleted file]
samples/mfc/standard/09_Animation/adm/win/vc10/Animation.vcxproj [deleted file]
samples/mfc/standard/09_Animation/adm/win/vc10/Animation.vcxproj.filters [deleted file]
samples/mfc/standard/09_Animation/res/Animation.rc [deleted file]
samples/mfc/standard/09_Animation/res/Toolbar.bmp [deleted file]
samples/mfc/standard/09_Animation/res/child2.bmp [deleted file]
samples/mfc/standard/09_Animation/res/resource.h [deleted file]
samples/mfc/standard/09_Animation/src/AnimationApp.cpp [deleted file]
samples/mfc/standard/09_Animation/src/AnimationApp.h [deleted file]
samples/mfc/standard/09_Animation/src/AnimationDoc.cpp [deleted file]
samples/mfc/standard/09_Animation/src/AnimationDoc.h [deleted file]
samples/mfc/standard/09_Animation/src/AnimationView3D.cpp [deleted file]
samples/mfc/standard/09_Animation/src/AnimationView3D.h [deleted file]
samples/mfc/standard/09_Animation/src/Fonc.cxx [deleted file]
samples/mfc/standard/09_Animation/src/Fonc.hxx [deleted file]
samples/mfc/standard/09_Animation/src/ShadingDialog.cpp [deleted file]
samples/mfc/standard/09_Animation/src/ShadingDialog.h [deleted file]
samples/mfc/standard/09_Animation/src/StdAfx.cpp [deleted file]
samples/mfc/standard/09_Animation/src/StdAfx.h [deleted file]
samples/mfc/standard/09_Animation/src/ThreadDialog.cpp [deleted file]
samples/mfc/standard/09_Animation/src/ThreadDialog.h [deleted file]
samples/mfc/standard/10_Convert/CMakeLists.txt [deleted file]
samples/mfc/standard/10_Convert/adm/win/vc10/Convert.vcxproj [deleted file]
samples/mfc/standard/10_Convert/adm/win/vc10/Convert.vcxproj.filters [deleted file]
samples/mfc/standard/10_Convert/src/Convert_Presentation.cpp [deleted file]
samples/mfc/standard/10_Convert/src/Convert_Presentation.h [deleted file]
samples/mfc/standard/10_Convert/src/ISession/ISession_Curve.cpp [deleted file]
samples/mfc/standard/10_Convert/src/ISession/ISession_Curve.h [deleted file]
samples/mfc/standard/10_Convert/src/OCCDemo_Presentation.cpp [deleted file]
samples/mfc/standard/10_Convert/src/OCCDemo_Presentation.h [deleted file]
samples/mfc/standard/10_Convert/src/WNT/MainFrm.cpp [deleted file]
samples/mfc/standard/10_Convert/src/WNT/MainFrm.h [deleted file]
samples/mfc/standard/10_Convert/src/WNT/OCCDemo.cpp [deleted file]
samples/mfc/standard/10_Convert/src/WNT/OCCDemo.h [deleted file]
samples/mfc/standard/10_Convert/src/WNT/OCCDemo.rc [deleted file]
samples/mfc/standard/10_Convert/src/WNT/OCCDemoDoc.cpp [deleted file]
samples/mfc/standard/10_Convert/src/WNT/OCCDemoDoc.h [deleted file]
samples/mfc/standard/10_Convert/src/WNT/OCCDemoView.cpp [deleted file]
samples/mfc/standard/10_Convert/src/WNT/OCCDemoView.h [deleted file]
samples/mfc/standard/10_Convert/src/WNT/ResultDialog.cpp [deleted file]
samples/mfc/standard/10_Convert/src/WNT/ResultDialog.h [deleted file]
samples/mfc/standard/10_Convert/src/WNT/StdAfx.cpp [deleted file]
samples/mfc/standard/10_Convert/src/WNT/StdAfx.h [deleted file]
samples/mfc/standard/10_Convert/src/WNT/res/OCCDemo.ico [deleted file]
samples/mfc/standard/10_Convert/src/WNT/res/OCCDemo.rc2 [deleted file]
samples/mfc/standard/10_Convert/src/WNT/res/logopen.bmp [deleted file]
samples/mfc/standard/10_Convert/src/WNT/res/occlogo.bmp [deleted file]
samples/mfc/standard/10_Convert/src/WNT/res/toolbar.bmp [deleted file]
samples/mfc/standard/10_Convert/src/WNT/res/toolbar1.bmp [deleted file]
samples/mfc/standard/10_Convert/src/WNT/resource.h [deleted file]
samples/mfc/standard/All-vc10.sln
samples/mfc/standard/All-vc11.sln
samples/mfc/standard/All-vc12.sln
samples/mfc/standard/All-vc14.sln
samples/mfc/standard/All-vc141.sln
samples/mfc/standard/All-vc142.sln
samples/mfc/standard/Common/Primitive/Sample2D_Face.cpp [deleted file]
samples/mfc/standard/Common/Primitive/Sample2D_Face.h [deleted file]
samples/mfc/standard/Common/Primitive/Sample2D_Image.cpp [deleted file]
samples/mfc/standard/Common/Primitive/Sample2D_Image.h [deleted file]
samples/mfc/standard/Common/Primitive/Sample2D_Markers.cpp [deleted file]
samples/mfc/standard/Common/Primitive/Sample2D_Markers.h [deleted file]
samples/mfc/standard/Common/User_Cylinder.cxx [deleted file]
samples/mfc/standard/Common/User_Cylinder.hxx [deleted file]
samples/mfc/standard/ReadMe.md
samples/mfc/standard/mfcsample/CMakeLists.txt
samples/mfc/standard/mfcsample/adm/win/vc10/mfcsample.vcxproj
samples/mfc/standard/mfcsample/adm/win/vc10/mfcsample.vcxproj.filters

index d98acc0ff9d399be437a194e884303f25550a969..208a5ab255be075d2589dcdf0452be3e32debc68 100644 (file)
@@ -1124,14 +1124,8 @@ if (BUILD_SAMPLES_MFC)
   add_subdirectory(samples/mfc/standard/mfcsample)
   add_subdirectory(samples/mfc/standard/01_Geometry)
   add_subdirectory(samples/mfc/standard/02_Modeling)
-  add_subdirectory(samples/mfc/standard/03_Viewer2d)
-  add_subdirectory(samples/mfc/standard/04_Viewer3d)
-  add_subdirectory(samples/mfc/standard/05_ImportExport)
-  add_subdirectory(samples/mfc/standard/06_Ocaf)
-  add_subdirectory(samples/mfc/standard/07_Triangulation)
-  add_subdirectory(samples/mfc/standard/08_HLR)
-  add_subdirectory(samples/mfc/standard/09_Animation)
-  add_subdirectory(samples/mfc/standard/10_Convert)
+  add_subdirectory(samples/mfc/standard/03_ImportExport)
+  add_subdirectory(samples/mfc/standard/04_HLR)
 
   message (STATUS "Info: \(${CURRENT_TIME}\) MFC Sample projects added")
 endif()
diff --git a/samples/mfc/standard/03_ImportExport/CMakeLists.txt b/samples/mfc/standard/03_ImportExport/CMakeLists.txt
new file mode 100644 (file)
index 0000000..93f728e
--- /dev/null
@@ -0,0 +1,56 @@
+cmake_minimum_required (VERSION 2.6)
+
+project (ImportExport)
+
+add_definitions (-DWINVER=0x0501 -DUNICODE -D_UNICODE)
+set (CMAKE_MFC_FLAG 2)
+
+set (ImportExport_SRC_DIR      ${MFC_STANDARD_SAMPLES_DIR}/05_ImportExport/src)
+set (ImportExport_HEADER_FILES ${ImportExport_SRC_DIR}/ColoredShapes.h
+                               ${ImportExport_SRC_DIR}/ImportExportApp.h
+                               ${ImportExport_SRC_DIR}/ImportExportDoc.h
+                               ${ImportExport_SRC_DIR}/StdAfx.h )
+set (ImportExport_SOURCE_FILES ${ImportExport_SRC_DIR}/ColoredShapes.cpp
+                               ${ImportExport_SRC_DIR}/ImportExportApp.cpp
+                               ${ImportExport_SRC_DIR}/ImportExportDoc.cpp
+                               ${ImportExport_SRC_DIR}/StdAfx.cpp)
+
+set (ImportExport_RESOURCE_DIR    ${MFC_STANDARD_SAMPLES_DIR}/05_ImportExport/res)
+set (ImportExport_RESOURCE_HEADER ${ImportExport_RESOURCE_DIR}/resource.h)
+set (ImportExport_RESOURCE_FILES  ${ImportExport_RESOURCE_DIR}/Toolbar.bmp
+                                  ${ImportExport_RESOURCE_DIR}/ImportExport.rc)
+
+# groups in the VS solution
+source_group ("Source Files" FILES ${ImportExport_SOURCE_FILES}
+                                   ${COMMON_WINMAIN_FILE})
+
+source_group ("Header Files" FILES ${ImportExport_HEADER_FILES}
+                                   ${ImportExport_RESOURCE_HEADER})
+
+source_group ("Resource Files" FILES ${ImportExport_RESOURCE_FILES})
+
+add_executable (ImportExport WIN32 ${ImportExport_SOURCE_FILES}
+                                   ${ImportExport_HEADER_FILES}
+                                   ${COMMON_WINMAIN_FILE}
+                                   ${ImportExport_RESOURCE_HEADER}
+                                   ${ImportExport_RESOURCE_FILES})
+
+set_property (TARGET ImportExport PROPERTY FOLDER "Samples/mfc")
+
+if (SINGLE_GENERATOR)
+  install (TARGETS ImportExport DESTINATION "${INSTALL_DIR_BIN}")
+else()
+  install (TARGETS ImportExport
+           CONFIGURATIONS Release RelWithDebInfo
+           DESTINATION "${INSTALL_DIR_BIN}")
+  install (TARGETS ImportExport
+           CONFIGURATIONS Debug
+           DESTINATION "${INSTALL_DIR_BIN}d")
+endif()
+
+include_directories (${CMAKE_BINARY_DIR}/inc
+                     ${MFC_STANDARD_SAMPLES_DIR}/05_ImportExport
+                     ${ImportExport_SRC_DIR}
+                     ${MFC_STANDARD_SAMPLES_DIR}/Common)
+
+target_link_libraries (ImportExport mfcsample)
\ No newline at end of file
diff --git a/samples/mfc/standard/03_ImportExport/adm/win/vc10/ImportExport.vcxproj b/samples/mfc/standard/03_ImportExport/adm/win/vc10/ImportExport.vcxproj
new file mode 100644 (file)
index 0000000..44d11fe
--- /dev/null
@@ -0,0 +1,356 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ItemGroup Label="ProjectConfigurations">
+    <ProjectConfiguration Include="Debug|Win32">
+      <Configuration>Debug</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Debug|x64">
+      <Configuration>Debug</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|Win32">
+      <Configuration>Release</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|x64">
+      <Configuration>Release</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+  </ItemGroup>
+  <PropertyGroup Label="Globals">
+    <ProjectGuid>{1C9A05AE-AF5A-4ACE-9A72-83436D77504C}</ProjectGuid>
+    <RootNamespace>ImportExport</RootNamespace>
+    <Keyword>MFCProj</Keyword>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseOfMfc>Dynamic</UseOfMfc>
+    <CharacterSet>Unicode</CharacterSet>
+    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseOfMfc>Dynamic</UseOfMfc>
+    <CharacterSet>Unicode</CharacterSet>
+    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseOfMfc>Dynamic</UseOfMfc>
+    <CharacterSet>Unicode</CharacterSet>
+    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseOfMfc>Dynamic</UseOfMfc>
+    <CharacterSet>Unicode</CharacterSet>
+    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <ImportGroup Label="ExtensionSettings">
+  </ImportGroup>
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
+  </ImportGroup>
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
+  </ImportGroup>
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
+  </ImportGroup>
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
+  </ImportGroup>
+  <PropertyGroup Label="UserMacros" />
+  <PropertyGroup>
+    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
+    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../../../win32\$(VCFMT)\bin\</OutDir>
+    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\win32\obj\</IntDir>
+    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
+    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">../../../../win64\$(VCFMT)\bin\</OutDir>
+    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\win64\objd\</IntDir>
+    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
+    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../../../../win32\$(VCFMT)\bind\</OutDir>
+    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\win32\objd\</IntDir>
+    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
+    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">../../../../win64\$(VCFMT)\bind\</OutDir>
+    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\win64\objd\</IntDir>
+    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
+  </PropertyGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <Midl>
+      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <MkTypLibCompatible>true</MkTypLibCompatible>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <TargetEnvironment>Win32</TargetEnvironment>
+      <TypeLibraryName>.\win32\obj/ImportExport.tlb</TypeLibraryName>
+      <HeaderFileName>
+      </HeaderFileName>
+    </Midl>
+    <ClCompile>
+      <Optimization>MaxSpeed</Optimization>
+      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
+      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <StringPooling>true</StringPooling>
+      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
+      <FunctionLevelLinking>true</FunctionLevelLinking>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
+      <PrecompiledHeaderOutputFile>.\win32\obj/ImportExport.pch</PrecompiledHeaderOutputFile>
+      <AssemblerListingLocation>.\win32\obj/</AssemblerListingLocation>
+      <ObjectFileName>.\win32\obj/</ObjectFileName>
+      <ProgramDataBaseFileName>.\win32\obj/</ProgramDataBaseFileName>
+      <WarningLevel>Level4</WarningLevel>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <CompileAs>Default</CompileAs>
+    </ClCompile>
+    <ResourceCompile>
+      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Culture>0x0409</Culture>
+    </ResourceCompile>
+    <Link>
+      <AdditionalDependencies>TKVCAF.lib;TKVrml.lib;TKStl.lib;TKBrep.lib;TKIGES.lib;TKShHealing.lib;TKStep.lib;TKXSBase.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKLCAF.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <OutputFile>../../../../win32\$(VCFMT)\bin/ImportExport.exe</OutputFile>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bin/ImportExport.pdb</ProgramDatabaseFile>
+      <SubSystem>Windows</SubSystem>
+      <TargetMachine>MachineX86</TargetMachine>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+    <Midl>
+      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <MkTypLibCompatible>true</MkTypLibCompatible>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <TargetEnvironment>X64</TargetEnvironment>
+      <TypeLibraryName>.\win64\obj/ImportExport.tlb</TypeLibraryName>
+      <HeaderFileName>
+      </HeaderFileName>
+    </Midl>
+    <ClCompile>
+      <Optimization>MaxSpeed</Optimization>
+      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
+      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <StringPooling>true</StringPooling>
+      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
+      <FunctionLevelLinking>true</FunctionLevelLinking>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
+      <PrecompiledHeaderOutputFile>.\win64\obj/ImportExport.pch</PrecompiledHeaderOutputFile>
+      <AssemblerListingLocation>.\win64\obj/</AssemblerListingLocation>
+      <ObjectFileName>.\win64\obj/</ObjectFileName>
+      <ProgramDataBaseFileName>.\win64\obj/</ProgramDataBaseFileName>
+      <WarningLevel>Level4</WarningLevel>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <CompileAs>Default</CompileAs>
+    </ClCompile>
+    <ResourceCompile>
+      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Culture>0x0409</Culture>
+    </ResourceCompile>
+    <Link>
+      <AdditionalDependencies>TKVCAF.lib;TKVrml.lib;TKStl.lib;TKBrep.lib;TKIGES.lib;TKShHealing.lib;TKStep.lib;TKXSBase.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKLCAF.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <OutputFile>../../../../win64\$(VCFMT)\bin/ImportExport.exe</OutputFile>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bin/ImportExport.pdb</ProgramDatabaseFile>
+      <SubSystem>Windows</SubSystem>
+      <TargetMachine>MachineX64</TargetMachine>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <Midl>
+      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <MkTypLibCompatible>true</MkTypLibCompatible>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <TargetEnvironment>Win32</TargetEnvironment>
+      <TypeLibraryName>.\win32\objd/ImportExport.tlb</TypeLibraryName>
+      <HeaderFileName>
+      </HeaderFileName>
+    </Midl>
+    <ClCompile>
+      <Optimization>Disabled</Optimization>
+      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
+      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
+      <PrecompiledHeaderOutputFile>.\win32\objd/ImportExport.pch</PrecompiledHeaderOutputFile>
+      <AssemblerListingLocation>.\win32\objd/</AssemblerListingLocation>
+      <ObjectFileName>.\win32\objd/</ObjectFileName>
+      <ProgramDataBaseFileName>.\win32\objd/</ProgramDataBaseFileName>
+      <WarningLevel>Level4</WarningLevel>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
+      <CompileAs>Default</CompileAs>
+    </ClCompile>
+    <ResourceCompile>
+      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Culture>0x0409</Culture>
+    </ResourceCompile>
+    <Link>
+      <AdditionalDependencies>TKVCAF.lib;TKVrml.lib;TKStl.lib;TKBrep.lib;TKIGES.lib;TKShHealing.lib;TKStep.lib;TKXSBase.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKLCAF.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <OutputFile>../../../../win32\$(VCFMT)\bind/ImportExport.exe</OutputFile>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bind/ImportExport.pdb</ProgramDatabaseFile>
+      <SubSystem>Windows</SubSystem>
+      <TargetMachine>MachineX86</TargetMachine>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+    <Midl>
+      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <MkTypLibCompatible>true</MkTypLibCompatible>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <TargetEnvironment>X64</TargetEnvironment>
+      <TypeLibraryName>.\win64\objd/ImportExport.tlb</TypeLibraryName>
+      <HeaderFileName>
+      </HeaderFileName>
+    </Midl>
+    <ClCompile>
+      <Optimization>Disabled</Optimization>
+      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
+      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
+      <PrecompiledHeaderOutputFile>.\win64\objd/ImportExport.pch</PrecompiledHeaderOutputFile>
+      <AssemblerListingLocation>.\win64\objd/</AssemblerListingLocation>
+      <ObjectFileName>.\win64\objd/</ObjectFileName>
+      <ProgramDataBaseFileName>.\win64\objd/</ProgramDataBaseFileName>
+      <WarningLevel>Level4</WarningLevel>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
+      <CompileAs>Default</CompileAs>
+    </ClCompile>
+    <ResourceCompile>
+      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Culture>0x0409</Culture>
+    </ResourceCompile>
+    <Link>
+      <AdditionalDependencies>TKVCAF.lib;TKVrml.lib;TKStl.lib;TKBrep.lib;TKIGES.lib;TKShHealing.lib;TKStep.lib;TKXSBase.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKLCAF.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <OutputFile>../../../../win64\$(VCFMT)\bind/ImportExport.exe</OutputFile>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bind/ImportExport.pdb</ProgramDatabaseFile>
+      <SubSystem>Windows</SubSystem>
+      <TargetMachine>MachineX64</TargetMachine>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemGroup>
+    <ClCompile Include="..\..\..\src\ColoredShapes.cpp" />
+    <ClCompile Include="..\..\..\src\ImportExportApp.cpp">
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+    </ClCompile>
+    <ClCompile Include="..\..\..\src\ImportExportDoc.cpp">
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+    </ClCompile>
+    <ClCompile Include="..\..\..\src\StdAfx.cpp">
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
+      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
+      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
+    </ClCompile>
+    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+    </ClCompile>
+  </ItemGroup>
+  <ItemGroup>
+    <ResourceCompile Include="..\..\..\res\ImportExport.rc">
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+    </ResourceCompile>
+  </ItemGroup>
+  <ItemGroup>
+    <ClInclude Include="..\..\..\src\ColoredShapes.h" />
+    <ClInclude Include="..\..\..\src\ImportExportApp.h" />
+    <ClInclude Include="..\..\..\src\ImportExportDoc.h" />
+    <ClInclude Include="..\..\..\res\resource.h" />
+    <ClInclude Include="..\..\..\src\StdAfx.h" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="..\..\..\res\Toolbar.bmp" />
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\..\..\..\mfcsample\adm\win\vc10\mfcsample.vcxproj">
+      <Project>{2d6cbbe8-6965-4016-b503-0d715ae26691}</Project>
+      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+    </ProjectReference>
+  </ItemGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+  <ImportGroup Label="ExtensionTargets">
+  </ImportGroup>
+</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/03_ImportExport/adm/win/vc10/ImportExport.vcxproj.filters b/samples/mfc/standard/03_ImportExport/adm/win/vc10/ImportExport.vcxproj.filters
new file mode 100644 (file)
index 0000000..9e69403
--- /dev/null
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ItemGroup>
+    <Filter Include="Source Files">
+      <UniqueIdentifier>{6fe93ff4-3fc7-4248-af1c-9d15b9b1904d}</UniqueIdentifier>
+      <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
+    </Filter>
+    <Filter Include="Header Files">
+      <UniqueIdentifier>{0387f39d-921d-4c19-9e7d-d397e90e235a}</UniqueIdentifier>
+      <Extensions>h;hpp;hxx;hm;inl</Extensions>
+    </Filter>
+    <Filter Include="Resource Files">
+      <UniqueIdentifier>{116ea642-b0c0-4973-bfbc-4814645fe955}</UniqueIdentifier>
+    </Filter>
+  </ItemGroup>
+  <ItemGroup>
+    <ClCompile Include="..\..\..\src\ColoredShapes.cpp">
+      <Filter>Source Files</Filter>
+    </ClCompile>
+    <ClCompile Include="..\..\..\src\ImportExportApp.cpp">
+      <Filter>Source Files</Filter>
+    </ClCompile>
+    <ClCompile Include="..\..\..\src\ImportExportDoc.cpp">
+      <Filter>Source Files</Filter>
+    </ClCompile>
+    <ClCompile Include="..\..\..\src\StdAfx.cpp">
+      <Filter>Source Files</Filter>
+    </ClCompile>
+    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
+      <Filter>Source Files</Filter>
+    </ClCompile>
+  </ItemGroup>
+  <ItemGroup>
+    <ResourceCompile Include="..\..\..\res\ImportExport.rc">
+      <Filter>Source Files</Filter>
+    </ResourceCompile>
+  </ItemGroup>
+  <ItemGroup>
+    <ClInclude Include="..\..\..\src\ColoredShapes.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
+    <ClInclude Include="..\..\..\src\ImportExportApp.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
+    <ClInclude Include="..\..\..\src\ImportExportDoc.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
+    <ClInclude Include="..\..\..\res\resource.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
+    <ClInclude Include="..\..\..\src\StdAfx.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="..\..\..\res\Toolbar.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+  </ItemGroup>
+</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/03_ImportExport/res/ImportExport.rc b/samples/mfc/standard/03_ImportExport/res/ImportExport.rc
new file mode 100644 (file)
index 0000000..f7bada8
--- /dev/null
@@ -0,0 +1,286 @@
+// Microsoft Visual C++ generated resource script.
+//
+#include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#include "afxres.h"
+#include "..\..\Common\res\OCC_Resource.h"
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// English (U.S.) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+#ifdef _WIN32
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+#pragma code_page(1252)
+#endif //_WIN32
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE 
+BEGIN
+    "resource.h\0"
+END
+
+2 TEXTINCLUDE 
+BEGIN
+    "#include ""afxres.h""\r\n"
+    "#include ""..\\..\\Common\\res\\OCC_Resource.h""\0"
+END
+
+3 TEXTINCLUDE 
+BEGIN
+    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
+    "#define _AFX_NO_OLE_RESOURCES\r\n"
+    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
+    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
+    "\r\n"
+    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
+    "#ifdef _WIN32\r\n"
+    "LANGUAGE 9, 1\r\n"
+    "#pragma code_page(1252)\r\n"
+    "#endif\r\n"
+    "#include ""afxres.rc""         // Standard components\r\n"
+    "#endif\0"
+END
+
+#endif    // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Bitmap
+//
+
+IDR_MAINFRAME           BITMAP                  "Toolbar.bmp"
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Toolbar
+//
+
+IDR_MAINFRAME TOOLBAR  20, 20
+BEGIN
+    BUTTON      ID_FILE_NEW
+    SEPARATOR
+    BUTTON      ID_BOX
+    BUTTON      ID_Cylinder
+    SEPARATOR
+    BUTTON      ID_FILE_IMPORT_BREP
+    BUTTON      ID_FILE_IMPORT_IGES
+    BUTTON      ID_FILE_IMPORT_STEP
+    SEPARATOR
+    BUTTON      ID_FILE_EXPORT_BREP
+    BUTTON      ID_FILE_EXPORT_IGES
+    BUTTON      ID_FILE_EXPORT_STEP
+    BUTTON      ID_FILE_EXPORT_STL
+    BUTTON      ID_FILE_EXPORT_VRML
+    SEPARATOR
+    BUTTON      ID_FILE_EXPORT_IMAGE
+    SEPARATOR
+    BUTTON      ID_BUTTON_STEREO
+    SEPARATOR
+    BUTTON      ID_APP_ABOUT
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Menu
+//
+
+IDR_MAINFRAME MENU 
+BEGIN
+    POPUP "&File"
+    BEGIN
+        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
+        MENUITEM "&Open...\tCtrl+O",            ID_FILE_OPEN
+        MENUITEM SEPARATOR
+        MENUITEM "Recent File",                 ID_FILE_MRU_FILE12
+        MENUITEM SEPARATOR
+        MENUITEM "E&xit",                       ID_APP_EXIT
+    END
+    POPUP "&View"
+    BEGIN
+        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
+        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
+    END
+    POPUP "&Help"
+    BEGIN
+        MENUITEM "&About ImportExport...",      ID_APP_ABOUT
+    END
+END
+
+IDR_3DTYPE MENU 
+BEGIN
+    POPUP "&File"
+    BEGIN
+        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
+        MENUITEM "&Open...\tCtrl+O",            ID_FILE_OPEN
+        MENUITEM "&Close",                      ID_FILE_CLOSE
+        MENUITEM SEPARATOR
+        MENUITEM "&Save...\tCtrl+S",            ID_FILE_SAVE
+        MENUITEM "Save As...",                  ID_FILE_SAVE_AS
+        MENUITEM SEPARATOR
+        POPUP "Import"
+        BEGIN
+            MENUITEM "BREP...",                     ID_FILE_IMPORT_BREP
+            MENUITEM "STEP...",                     ID_FILE_IMPORT_STEP
+            MENUITEM "IGES...",                     ID_FILE_IMPORT_IGES
+        END
+        POPUP "Export"
+        BEGIN
+            MENUITEM "BREP...",                     ID_FILE_EXPORT_BREP
+            MENUITEM "STEP...",                     ID_FILE_EXPORT_STEP
+            MENUITEM "IGES...",                     ID_FILE_EXPORT_IGES
+            MENUITEM "STL...",                      ID_FILE_EXPORT_STL
+            MENUITEM "VRML...",                     ID_FILE_EXPORT_VRML
+            MENUITEM SEPARATOR
+            MENUITEM "Image...",                    ID_FILE_EXPORT_IMAGE
+        END
+        MENUITEM SEPARATOR
+        MENUITEM "Recent File",                 ID_FILE_MRU_FILE1
+        MENUITEM SEPARATOR
+        MENUITEM "E&xit",                       ID_APP_EXIT
+    END
+    POPUP "&View"
+    BEGIN
+        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
+        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
+    END
+    POPUP "&Window"
+    BEGIN
+        MENUITEM "New Window",                  ID_WINDOW_NEW
+        MENUITEM "&Cascade",                    ID_WINDOW_CASCADE
+        MENUITEM "&Tile",                       ID_WINDOW_TILE_HORZ
+        MENUITEM "&Arrange Icons",              ID_WINDOW_ARRANGE
+    END
+    POPUP "&Help"
+    BEGIN
+        MENUITEM "&About ImportExport...",      ID_APP_ABOUT
+    END
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 1,0,0,1
+ PRODUCTVERSION 1,0,0,1
+ FILEFLAGSMASK 0x3fL
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x1L
+ FILESUBTYPE 0x0L
+BEGIN
+    BLOCK "StringFileInfo"
+    BEGIN
+        BLOCK "040904B0"
+        BEGIN
+            VALUE "CompanyName", "Matra Datavision"
+            VALUE "FileDescription", "SampleImportExport MFC Application"
+            VALUE "FileVersion", "1, 0, 0, 1"
+            VALUE "InternalName", "SampleImportExport"
+            VALUE "LegalCopyright", "Copyright (C) 1998"
+            VALUE "OriginalFilename", "SampleImportExport.EXE"
+            VALUE "ProductName", "SampleImportExport Application"
+            VALUE "ProductVersion", "1, 0, 0, 1"
+        END
+    END
+    BLOCK "VarFileInfo"
+    BEGIN
+        VALUE "Translation", 0x409, 1200
+    END
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Dialog
+//
+
+IDD_FILESAVESTEP DIALOG  0, 0, 288, 165
+STYLE DS_SETFONT | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS
+FONT 8, "MS Sans Serif"
+BEGIN
+    GROUPBOX        "",1119,7,7,274,126,NOT WS_VISIBLE
+    COMBOBOX        IDC_FSaveSTEP_Type,80,138,127,57,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// String Table
+//
+
+STRINGTABLE 
+BEGIN
+    IDR_MAINFRAME           "ImportExport"
+    IDR_3DTYPE              "\nImportExport\nImportExport\n\n\nImportExport.Document\nImportExport Document"
+END
+
+STRINGTABLE 
+BEGIN
+    ID_BOX                  "Create a box\nBox"
+    ID_Cylinder             "Create a cylinder\nCylinder"
+END
+
+STRINGTABLE 
+BEGIN
+    ID_FILE_OPEN            "Open file\nOpen"
+    ID_FILE_SAVE            "Save File\nSave"
+    ID_FILE_SAVE_AS         "Save file as...\nSave As"
+END
+
+STRINGTABLE 
+BEGIN
+    ID_FILE_MRU_FILE1       "Open recent file\nRecent file"
+END
+
+STRINGTABLE
+BEGIN
+    ID_BUTTON_STEREO        "Toggle stereographic mode on / off"
+END
+
+#endif    // English (U.S.) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+#define _AFX_NO_SPLITTER_RESOURCES
+#define _AFX_NO_OLE_RESOURCES
+#define _AFX_NO_TRACKER_RESOURCES
+#define _AFX_NO_PROPERTY_RESOURCES
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+#ifdef _WIN32
+LANGUAGE 9, 1
+#pragma code_page(1252)
+#endif
+#include "afxres.rc"         // Standard components
+#endif
+/////////////////////////////////////////////////////////////////////////////
+#endif    // not APSTUDIO_INVOKED
+
diff --git a/samples/mfc/standard/03_ImportExport/res/Toolbar.bmp b/samples/mfc/standard/03_ImportExport/res/Toolbar.bmp
new file mode 100644 (file)
index 0000000..b521a8d
Binary files /dev/null and b/samples/mfc/standard/03_ImportExport/res/Toolbar.bmp differ
diff --git a/samples/mfc/standard/03_ImportExport/res/resource.h b/samples/mfc/standard/03_ImportExport/res/resource.h
new file mode 100644 (file)
index 0000000..59e19b5
--- /dev/null
@@ -0,0 +1,25 @@
+//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by ImportExport.rc
+//
+#define ID_FILE_OPEN32803               32803
+#define ID_BOX                          32804
+#define ID_Cylinder                     32806
+#define ID_FILE_OPEN32807               32807
+#define ID_FILE_SAVEAS                  32808
+#define ID_FILE_SAVE32809               32809
+#define ID_FILE_RECENTFILE              32810
+#define ID_FILE_EXPORT_STL              32896
+#define ID_FILE_EXPORT_VRML             32897
+
+// Next default values for new objects
+// 
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_3D_CONTROLS                     1
+#define _APS_NEXT_RESOURCE_VALUE        178
+#define _APS_NEXT_COMMAND_VALUE         32811
+#define _APS_NEXT_CONTROL_VALUE         1505
+#define _APS_NEXT_SYMED_VALUE           170
+#endif
+#endif
diff --git a/samples/mfc/standard/03_ImportExport/src/ColoredShapes.cpp b/samples/mfc/standard/03_ImportExport/src/ColoredShapes.cpp
new file mode 100644 (file)
index 0000000..71b0752
--- /dev/null
@@ -0,0 +1,53 @@
+// ColoredShapes.cpp: implementation of the CColoredShape class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#include "stdafx.h"
+
+#include <afxtempl.h>
+
+#include "ColoredShapes.h"
+
+//////////////////////////////////////////////////////////////////////
+// Construction/Destruction
+//////////////////////////////////////////////////////////////////////
+
+CColoredShapes::CColoredShapes()
+{
+}
+
+
+void CColoredShapes::Add(const Quantity_NameOfColor aColor, const TopoDS_Shape& aShape)
+{
+       m_shapeList.Append(aShape);
+       m_colorMap.Bind(aShape, aColor);
+}
+
+void CColoredShapes::Remove(const TopoDS_Shape& aShape)
+{
+       m_colorMap.UnBind(aShape);
+       for ( TopoDS_ListIteratorOfListOfShape iter(m_shapeList); iter.More(); iter.Next() ) {
+               if(iter.Value() == aShape) {
+                       m_shapeList.Remove(iter);
+                       break;
+               }
+       }
+}
+
+IMPLEMENT_SERIAL(CColoredShapes, CObject,1);
+
+#include <TopoDS_Shape.hxx>
+
+// Tools to put Persistent Object in an archive
+
+void CColoredShapes::Display(Handle(AIS_InteractiveContext)& anAIScontext)
+{
+       for ( TopoDS_ListIteratorOfListOfShape iter(m_shapeList); iter.More(); iter.Next() )
+       {
+               Handle(AIS_Shape) ais = new AIS_Shape(iter.Value());
+               anAIScontext->SetColor(ais, (Quantity_NameOfColor)m_colorMap.Find(iter.Value()), Standard_False);
+    anAIScontext->SetMaterial(ais, Graphic3d_NameOfMaterial_Gold, Standard_False);
+               anAIScontext->Display(ais, Standard_False);
+       }
+  anAIScontext->UpdateCurrentViewer();
+}
diff --git a/samples/mfc/standard/03_ImportExport/src/ColoredShapes.h b/samples/mfc/standard/03_ImportExport/src/ColoredShapes.h
new file mode 100644 (file)
index 0000000..937816d
--- /dev/null
@@ -0,0 +1,33 @@
+// ColoredShape.h: interface for the CColoredShape class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_COLOREDSHAPES_H__C6419AF3_A78A_11D1_8C93_00AA00D10994__INCLUDED_)
+#define AFX_COLOREDSHAPES_H__C6419AF3_A78A_11D1_8C93_00AA00D10994__INCLUDED_
+
+#if _MSC_VER >= 1000
+#pragma once
+#endif // _MSC_VER >= 1000
+
+class CColoredShapes : public CObject  
+{
+public:
+       CColoredShapes();
+       void Add(const Quantity_NameOfColor aColor, const TopoDS_Shape& aShape);
+       void Remove(const TopoDS_Shape& aShape);
+
+       void Display( Handle(AIS_InteractiveContext)& anAIScontext);
+
+       TopoDS_ListOfShape getShapes();
+       Quantity_NameOfColor getShapeColor(TopoDS_Shape aShape);
+
+protected:
+       // Declare CArchive >> operator
+       DECLARE_SERIAL(CColoredShapes);
+
+private:
+       TopTools_DataMapOfShapeInteger m_colorMap;
+       TopoDS_ListOfShape   m_shapeList;
+};
+
+#endif // !defined(AFX_COLOREDSHAPES_H__C6419AF3_A78A_11D1_8C93_00AA00D10994__INCLUDED_)
diff --git a/samples/mfc/standard/03_ImportExport/src/ImportExportApp.cpp b/samples/mfc/standard/03_ImportExport/src/ImportExportApp.cpp
new file mode 100644 (file)
index 0000000..733021c
--- /dev/null
@@ -0,0 +1,158 @@
+// ImportExportApp.cpp : Defines the class behaviors for the application.
+//
+
+#include "stdafx.h"
+
+#include "ImportExportApp.h"
+
+#include "OCC_MainFrame.h"
+#include "OCC_3dChildFrame.h"
+#include "ImportExportDoc.h"
+#include <OCC_3dView.h>
+#include <res/resource.h>
+
+BEGIN_MESSAGE_MAP(CImportExportApp, OCC_App)
+       //{{AFX_MSG_MAP(CSerializeApp)
+       ON_COMMAND(ID_FILE_OPEN, OnFileOpen)
+       //}}AFX_MSG_MAP
+END_MESSAGE_MAP()
+
+/////////////////////////////////////////////////////////////////////////////
+// CImportExportApp construction
+
+CImportExportApp::CImportExportApp() : OCC_App()
+{
+}
+
+/////////////////////////////////////////////////////////////////////////////
+// The one and only CImportExportApp object
+
+CImportExportApp theApp;
+
+/////////////////////////////////////////////////////////////////////////////
+// CImportExportApp initialization
+
+BOOL CImportExportApp::InitInstance()
+{
+  // Set the local system units
+  try
+  {
+    UnitsAPI::SetLocalSystem (UnitsAPI_MDTV);
+  }
+  catch (Standard_Failure)
+  {
+    AfxMessageBox (L"Fatal Error in units initialisation");
+  }
+
+  SampleName = "ImportExport"; //for about dialog
+  SetSamplePath (L"..\\..\\05_ImportExport");
+
+  AfxEnableControlContainer();
+
+       // Standard initialization
+       // If you are not using these features and wish to reduce the size
+       //  of your final executable, you should remove from the following
+       //  the specific initialization routines you do not need.
+
+       // Change the registry key under which our settings are stored.
+       // You should modify this string to be something appropriate
+       // such as the name of your company or organization.
+       // Modified by CasCade :
+       SetRegistryKey(_T("Local CasCade Applications"));
+
+       LoadStdProfileSettings();  // Load standard INI file options (including MRU)
+
+       // Register the application's document templates.  Document templates
+       //  serve as the connection between documents, frame windows and views.
+
+       CMultiDocTemplate* pDocTemplate;
+    pDocTemplate = new CMultiDocTemplate(
+               IDR_3DTYPE,
+               RUNTIME_CLASS(CImportExportDoc),
+               RUNTIME_CLASS(OCC_3dChildFrame), 
+               RUNTIME_CLASS(OCC_3dView));
+       AddDocTemplate(pDocTemplate);
+
+       // create main MDI Frame window
+       OCC_MainFrame* pMainFrame = new OCC_MainFrame(with_AIS_TB);
+       if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
+               return FALSE;
+       m_pMainWnd = pMainFrame;
+
+       // Parse command line for standard shell commands, DDE, file open
+       CCommandLineInfo cmdInfo;
+       ParseCommandLine(cmdInfo);
+
+       // Dispatch commands specified on the command line
+       if (!ProcessShellCommand(cmdInfo))
+               return FALSE;
+
+       // The main window has been initialized, so show and update it.
+       pMainFrame->ShowWindow(m_nCmdShow);
+       pMainFrame->UpdateWindow();
+
+       return TRUE;
+}
+
+CDocument* CImportExportApp::OpenDocumentFile(LPCTSTR lpszFileName) 
+{
+       CFile cf;
+       
+       if (!cf.Open(lpszFileName,CFile::modeReadWrite)){ 
+               AfxMessageBox (L"File not found!");
+               return NULL;
+       }
+       cf.Close();
+       return CWinApp::OpenDocumentFile(lpszFileName); 
+}
+
+void CImportExportApp::OnFileOpen() 
+{
+  CFileDialog dlg(TRUE,
+                                 NULL,
+                                 NULL,
+                                 OFN_HIDEREADONLY | OFN_FILEMUSTEXIST,
+                                 NULL, 
+                                 NULL );
+  
+
+       CString initdir;
+       initdir.GetEnvironmentVariable (L"CSF_OCCTDataPath");
+
+       dlg.m_ofn.lpstrInitialDir = initdir;
+
+       CString strFilter;
+       CString strDefault;
+
+       POSITION pos = GetFirstDocTemplatePosition();
+
+       CDocTemplate* pTemplate = GetNextDocTemplate(pos);
+       CString strFilterExt, strFilterName;
+       if (pTemplate->GetDocString(strFilterExt, CDocTemplate::filterExt) &&
+               !strFilterExt.IsEmpty() &&
+               pTemplate->GetDocString(strFilterName, CDocTemplate::filterName) &&
+               !strFilterName.IsEmpty()) {
+               // add to filter
+               strFilter += strFilterName;
+               ASSERT(!strFilter.IsEmpty());  // must have a file type name
+               strFilter += L'\0';  // next string please
+               strFilter += L'*';
+               strFilter += strFilterExt;
+               strFilter += L'\0';  // next string please
+               dlg.m_ofn.nMaxCustFilter++;             
+       }
+       // append the "*.*" all files filter
+       CString allFilter;
+       VERIFY(allFilter.LoadString(AFX_IDS_ALLFILTER));
+       strFilter += allFilter;
+       strFilter += L'\0';   // next string please
+       strFilter += L"*.*";
+       strFilter += L'\0';   // last string
+       dlg.m_ofn.nMaxCustFilter++;
+       dlg.m_ofn.lpstrFilter = strFilter;
+
+  if (dlg.DoModal() == IDOK) 
+  {
+       AfxGetApp()->OpenDocumentFile(dlg.GetPathName());
+  }    
+}
diff --git a/samples/mfc/standard/03_ImportExport/src/ImportExportApp.h b/samples/mfc/standard/03_ImportExport/src/ImportExportApp.h
new file mode 100644 (file)
index 0000000..e023367
--- /dev/null
@@ -0,0 +1,38 @@
+// ImportExportApp.h : main header file for the IMPORTEXPORT application
+//
+
+#if !defined(AFX_IMPORTEXPORT_H__88A21474_3B23_11D2_8E1E_0800369C8A03__INCLUDED_)
+#define AFX_IMPORTEXPORT_H__88A21474_3B23_11D2_8E1E_0800369C8A03__INCLUDED_
+
+#if _MSC_VER >= 1000
+#pragma once
+#endif // _MSC_VER >= 1000
+
+#include <OCC_App.h>
+
+class CImportExportApp : public OCC_App
+{
+public:
+
+  CImportExportApp();
+
+// Overrides
+  // ClassWizard generated virtual function overrides
+  //{{AFX_VIRTUAL(CImportExportApp)
+  public:
+  virtual BOOL InitInstance();
+  virtual CDocument* OpenDocumentFile(LPCTSTR lpszFileName);
+  //}}AFX_VIRTUAL
+
+protected:
+
+  //{{AFX_MSG(CSerializeApp)
+  afx_msg void OnFileOpen();
+  //}}AFX_MSG
+
+  DECLARE_MESSAGE_MAP()
+};
+
+/////////////////////////////////////////////////////////////////////////////
+
+#endif // !defined(AFX_IMPORTEXPORT_H__88A21474_3B23_11D2_8E1E_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/03_ImportExport/src/ImportExportDoc.cpp b/samples/mfc/standard/03_ImportExport/src/ImportExportDoc.cpp
new file mode 100644 (file)
index 0000000..eaca832
--- /dev/null
@@ -0,0 +1,288 @@
+// ImportExportDoc.cpp : implementation of the CImportExportDoc class
+//
+
+
+#include "stdafx.h"
+#include "ImportExportApp.h"
+
+#include "ImportExportDoc.h"
+
+#include <ImportExport/ImportExport.h>
+
+#include <AISDialogs.h>
+#include "res/resource.h"
+
+
+#ifdef _DEBUG
+//#define new DEBUG_NEW  // by cascade
+#undef THIS_FILE
+static char THIS_FILE[] = __FILE__;
+#endif
+
+/////////////////////////////////////////////////////////////////////////////
+// CImportExportDoc
+
+IMPLEMENT_DYNCREATE(CImportExportDoc, OCC_3dDoc)
+
+BEGIN_MESSAGE_MAP(CImportExportDoc, OCC_3dDoc)
+       //{{AFX_MSG_MAP(CImportExportDoc)
+       ON_COMMAND(ID_FILE_IMPORT_BREP, OnFileImportBrep)
+       ON_COMMAND(ID_FILE_IMPORT_IGES, OnFileImportIges)
+       ON_COMMAND(ID_FILE_EXPORT_IGES, OnFileExportIges)
+       ON_COMMAND(ID_FILE_IMPORT_STEP, OnFileImportStep)
+       ON_COMMAND(ID_FILE_EXPORT_STEP, OnFileExportStep)
+       ON_COMMAND(ID_FILE_EXPORT_VRML, OnFileExportVrml)
+       ON_COMMAND(ID_FILE_EXPORT_STL, OnFileExportStl)
+       ON_COMMAND(ID_BOX, OnBox)
+       ON_COMMAND(ID_Cylinder, OnCylinder)
+       ON_COMMAND(ID_OBJECT_REMOVE, OnObjectRemove)
+       ON_COMMAND(ID_OBJECT_ERASE, OnObjectErase)
+       ON_COMMAND(ID_OBJECT_DISPLAYALL, OnObjectDisplayall)
+       //}}AFX_MSG_MAP
+
+END_MESSAGE_MAP()
+
+/////////////////////////////////////////////////////////////////////////////
+// CImportExportDoc construction/destruction
+
+CImportExportDoc::CImportExportDoc()
+: OCC_3dDoc (false)
+{
+/*
+    // TRIHEDRON
+       Handle(AIS_Trihedron) aTrihedron;
+       Handle(Geom_Axis2Placement) aTrihedronAxis=new Geom_Axis2Placement(gp::XOY());
+       aTrihedron=new AIS_Trihedron(aTrihedronAxis);
+       myAISContext->Display(aTrihedron);
+*/
+
+       m_pcoloredshapeList = new CColoredShapes();
+}
+
+CImportExportDoc::~CImportExportDoc()
+{
+       if( m_pcoloredshapeList ) delete m_pcoloredshapeList;
+}
+
+
+/////////////////////////////////////////////////////////////////////////////
+// CSerializeDoc serialization
+
+void CImportExportDoc::Serialize(CArchive& ar)
+{
+       if (ar.IsStoring())
+       {
+               // Put the current CColoredShape in the archive
+               ar << m_pcoloredshapeList;
+       }
+       else
+       {
+               // Read from the archive the current CColoredShape
+               ar >> m_pcoloredshapeList;
+
+               // Display the new object
+               m_pcoloredshapeList->Display(myAISContext);
+       }
+}
+
+
+/*
+void CImportExportDoc::OnWindowNew3d() 
+{
+       ((CImportExportApp*)AfxGetApp())->CreateView3D(this);   
+}
+*/
+
+//  nCmdShow could be :    ( default is SW_RESTORE ) 
+// SW_HIDE   SW_SHOWNORMAL   SW_NORMAL   
+// SW_SHOWMINIMIZED     SW_SHOWMAXIMIZED    
+// SW_MAXIMIZE          SW_SHOWNOACTIVATE   
+// SW_SHOW              SW_MINIMIZE         
+// SW_SHOWMINNOACTIVE   SW_SHOWNA           
+// SW_RESTORE           SW_SHOWDEFAULT      
+// SW_MAX    
+
+// use pViewClass = RUNTIME_CLASS( CImportExportView3D ) for 3D Views
+
+void CImportExportDoc::ActivateFrame(CRuntimeClass* pViewClass,int nCmdShow)
+{
+  POSITION position = GetFirstViewPosition();
+  while (position != (POSITION)NULL)
+  {
+    CView* pCurrentView = (CView*)GetNextView(position);
+     if(pCurrentView->IsKindOf(pViewClass) )
+    {
+        ASSERT_VALID(pCurrentView);
+        CFrameWnd* pParentFrm = pCurrentView->GetParentFrame();
+           ASSERT(pParentFrm != (CFrameWnd *)NULL);
+        // simply make the frame window visible
+           pParentFrm->ActivateFrame(nCmdShow);
+    }
+  }
+
+}
+
+/////////////////////////////////////////////////////////////////////////////
+// CImportExportDoc diagnostics
+
+#ifdef _DEBUG
+void CImportExportDoc::AssertValid() const
+{
+       CDocument::AssertValid();
+}
+
+void CImportExportDoc::Dump(CDumpContext& dc) const
+{
+       CDocument::Dump(dc);
+}
+#endif //_DEBUG
+
+/////////////////////////////////////////////////////////////////////////////
+// CImportExportDoc commands
+
+
+void CImportExportDoc::OnFileImportBrep()
+{
+       Handle(TopTools_HSequenceOfShape) aSeqOfShape = CImportExport::ReadBREP();
+       for(int i=1;i<= aSeqOfShape->Length();i++)
+       {
+               m_pcoloredshapeList->Add(Quantity_NOC_YELLOW, aSeqOfShape->Value(i));
+        m_pcoloredshapeList->Display(myAISContext);
+       }
+       Fit();
+}
+
+void CImportExportDoc::OnFileImportIges() 
+{   
+       Handle(TopTools_HSequenceOfShape) aSeqOfShape = CImportExport::ReadIGES();
+       for(int i=1;i<= aSeqOfShape->Length();i++)
+       {
+               m_pcoloredshapeList->Add(Quantity_NOC_YELLOW, aSeqOfShape->Value(i));
+        m_pcoloredshapeList->Display(myAISContext);
+       }
+       Fit();
+}
+void CImportExportDoc::OnFileExportIges() 
+{   CImportExport::SaveIGES(myAISContext);}
+
+void CImportExportDoc::OnFileImportStep() 
+{   
+       Handle(TopTools_HSequenceOfShape) aSeqOfShape = CImportExport::ReadSTEP();
+       for(int i=1;i<= aSeqOfShape->Length();i++)
+       {
+               m_pcoloredshapeList->Add(Quantity_NOC_YELLOW, aSeqOfShape->Value(i));
+        m_pcoloredshapeList->Display(myAISContext);
+       }
+       Fit();
+}
+void CImportExportDoc::OnFileExportStep() 
+{   CImportExport::SaveSTEP(myAISContext);}
+
+
+void CImportExportDoc::OnFileExportVrml() 
+{   CImportExport::SaveVRML(myAISContext);}
+
+void CImportExportDoc::OnFileExportStl() 
+{   CImportExport::SaveSTL(myAISContext);}
+
+void  CImportExportDoc::Popup(const Standard_Integer  x,
+                                                          const Standard_Integer  y ,
+                               const Handle(V3d_View)& aView   ) 
+{
+  Standard_Integer PopupMenuNumber=0;
+ myAISContext->InitSelected();
+  if (myAISContext->MoreSelected())
+    PopupMenuNumber=1;
+
+  CMenu menu;
+  VERIFY(menu.LoadMenu(IDR_Popup3D));
+  CMenu* pPopup = menu.GetSubMenu(PopupMenuNumber);
+
+  ASSERT(pPopup != NULL);
+   if (PopupMenuNumber == 1) // more than 1 object.
+  {
+    bool OneOrMoreInShading = false;
+       for (myAISContext->InitSelected();myAISContext->MoreSelected ();myAISContext->NextSelected ())
+    if (myAISContext->IsDisplayed(myAISContext->SelectedInteractive(),1)) OneOrMoreInShading=true;
+       if(!OneOrMoreInShading)
+       pPopup->EnableMenuItem(5, MF_BYPOSITION | MF_DISABLED | MF_GRAYED);
+   }
+
+  POINT winCoord = { x , y };
+  Handle(WNT_Window) aWNTWindow=
+  Handle(WNT_Window)::DownCast(aView->Window());
+  ClientToScreen ( (HWND)(aWNTWindow->HWindow()),&winCoord);
+  pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON , winCoord.x, winCoord.y , 
+                         AfxGetMainWnd());
+
+
+}
+
+void CImportExportDoc::OnBox() 
+{
+       AIS_ListOfInteractive aList;
+       myAISContext->DisplayedObjects(aList);
+       AIS_ListIteratorOfListOfInteractive aListIterator;
+       for(aListIterator.Initialize(aList);aListIterator.More();aListIterator.Next()){
+               myAISContext->Remove (aListIterator.Value(), Standard_False);
+       }
+
+       BRepPrimAPI_MakeBox B(200.,150.,100.);
+
+       m_pcoloredshapeList->Add(Quantity_NOC_YELLOW, B.Shape());
+
+       m_pcoloredshapeList->Display(myAISContext);
+       Fit();
+
+       // document has been modified
+       SetModifiedFlag(TRUE);
+}
+
+void CImportExportDoc::OnCylinder() 
+{
+       AIS_ListOfInteractive aList;
+       myAISContext->DisplayedObjects(aList);
+       AIS_ListIteratorOfListOfInteractive aListIterator;
+       for(aListIterator.Initialize(aList);aListIterator.More();aListIterator.Next()){
+               myAISContext->Remove (aListIterator.Value(), Standard_False);
+       }
+
+       BRepPrimAPI_MakeCylinder C(50.,200.);
+
+       m_pcoloredshapeList->Add(Quantity_NOC_GREEN, C.Shape());
+
+       m_pcoloredshapeList->Display(myAISContext);
+       Fit();
+
+       // document has been modified
+       SetModifiedFlag(TRUE);
+}
+void CImportExportDoc::OnObjectRemove() 
+
+{
+       for(GetAISContext()->InitSelected();GetAISContext()->MoreSelected();GetAISContext()->NextSelected()) {
+               Handle(AIS_Shape) aShape = Handle(AIS_Shape)::DownCast(GetAISContext()->SelectedInteractive());
+               if(!aShape.IsNull()) {
+                       m_pcoloredshapeList->Remove(aShape->Shape());
+               }
+       }
+       OCC_3dBaseDoc::OnObjectRemove();
+}
+
+void CImportExportDoc::OnObjectErase() 
+
+{
+       for(GetAISContext()->InitSelected();GetAISContext()->MoreSelected();GetAISContext()->NextSelected()) {
+               Handle(AIS_Shape) aShape = Handle(AIS_Shape)::DownCast(GetAISContext()->SelectedInteractive());
+               if(!aShape.IsNull()) {
+                       m_pcoloredshapeList->Remove(aShape->Shape());
+               }
+       }
+       OCC_3dBaseDoc::OnObjectErase(); 
+}
+
+void CImportExportDoc::OnObjectDisplayall() 
+
+{
+       OCC_3dBaseDoc::OnObjectDisplayall(); 
+}
\ No newline at end of file
diff --git a/samples/mfc/standard/03_ImportExport/src/ImportExportDoc.h b/samples/mfc/standard/03_ImportExport/src/ImportExportDoc.h
new file mode 100644 (file)
index 0000000..7765948
--- /dev/null
@@ -0,0 +1,64 @@
+// ImportExportDoc.h : interface of the CImportExportDoc class
+//
+/////////////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_IMPORTEXPORTDOC_H__88A2147C_3B23_11D2_8E1E_0800369C8A03__INCLUDED_)
+#define AFX_IMPORTEXPORTDOC_H__88A2147C_3B23_11D2_8E1E_0800369C8A03__INCLUDED_
+
+#if _MSC_VER >= 1000
+#pragma once
+#endif // _MSC_VER >= 1000
+
+#include <ColoredShapes.h>
+#include <OCC_3dDoc.h>
+
+class CImportExportDoc : public OCC_3dDoc
+{
+       DECLARE_DYNCREATE(CImportExportDoc)
+public:
+       CImportExportDoc();
+       virtual ~CImportExportDoc();
+       virtual void Serialize(CArchive& ar);
+
+       void ActivateFrame(CRuntimeClass* pViewClass, int nCmdShow = SW_RESTORE  );
+    virtual void Popup (const Standard_Integer  x       ,
+                                       const Standard_Integer  y       ,
+                        const Handle(V3d_View)& aView   ); 
+
+
+// Implementation
+#ifdef _DEBUG
+       virtual void AssertValid() const;
+       virtual void Dump(CDumpContext& dc) const;
+#endif
+
+// Generated message map functions
+protected:
+       //{{AFX_MSG(CImportExportDoc)
+       afx_msg void OnFileImportIges();
+       afx_msg void OnFileExportIges();
+       afx_msg void OnFileImportStep();
+       afx_msg void OnFileExportStep();
+       afx_msg void OnFileImportBrep();
+//     afx_msg void OnWindowNew3d();
+       afx_msg void OnFileExportVrml();
+       afx_msg void OnFileExportStl();
+       afx_msg void OnBox();
+       afx_msg void OnCylinder();
+       afx_msg void OnObjectRemove();
+       afx_msg void OnObjectErase();
+       afx_msg void OnObjectDisplayall();
+       //}}AFX_MSG
+       DECLARE_MESSAGE_MAP()
+
+//Attributes
+protected:
+       CColoredShapes* m_pcoloredshapeList;
+};
+
+/////////////////////////////////////////////////////////////////////////////
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_IMPORTEXPORTDOC_H__88A2147C_3B23_11D2_8E1E_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/03_ImportExport/src/StdAfx.cpp b/samples/mfc/standard/03_ImportExport/src/StdAfx.cpp
new file mode 100644 (file)
index 0000000..4db8d13
--- /dev/null
@@ -0,0 +1,6 @@
+// stdafx.cpp : source file that includes just the standard includes
+//     SampleImportExport.pch will be the pre-compiled header
+//     stdafx.obj will contain the pre-compiled type information
+
+#include "stdafx.h"
+
diff --git a/samples/mfc/standard/03_ImportExport/src/StdAfx.h b/samples/mfc/standard/03_ImportExport/src/StdAfx.h
new file mode 100644 (file)
index 0000000..8f0a7a0
--- /dev/null
@@ -0,0 +1,161 @@
+// stdafx.h : include file for standard system include files,
+//  or project specific include files that are used frequently, but
+//      are changed infrequently
+//
+
+#if !defined(AFX_STDAFX_H__88A21476_3B23_11D2_8E1E_0800369C8A03__INCLUDED_)
+#define AFX_STDAFX_H__88A21476_3B23_11D2_8E1E_0800369C8A03__INCLUDED_
+
+#if _MSC_VER >= 1000
+#pragma once
+#endif // _MSC_VER >= 1000
+
+#define VC_EXTRALEAN           // Exclude rarely-used stuff from Windows headers
+
+#include <afxwin.h>         // MFC core and standard components
+#include <afxext.h>         // MFC extensions
+#include <afxdisp.h>        // MFC OLE automation classes
+#ifndef _AFX_NO_AFXCMN_SUPPORT
+#include <afxcmn.h>                    // MFC support for Windows Common Controls
+#endif // _AFX_NO_AFXCMN_SUPPORT
+
+#define DEFAULT_DEVIATIONCOEFFICIENT 0.001
+#define DEFAULT_DCBIG 0.005
+#define DEFAULT_DCVBIG 0.01
+#define DEFAULT_DCSMALL 0.0002
+#define DEFAULT_DCVSMALL 0.00004
+#define DEFAULT_COLOR Quantity_NOC_CYAN1
+#define DEFAULT_MATERIAL Graphic3d_NameOfMaterial_Plastered
+#define DEFAULT_BACKGROUNDCOLOR Quantity_NOC_MATRAGRAY
+#define DEFAULT_HILIGHTCOLOR Quantity_NOC_YELLOW
+
+#pragma warning(  disable : 4244 )        // Issue warning 4244
+#include <Standard_ShortReal.hxx>
+#pragma warning(  default : 4244 )        // Issue warning 4244
+
+#include <AIS_InteractiveContext.hxx>
+#include <AIS_InteractiveObject.hxx>
+#include <AIS_ListOfInteractive.hxx>
+#include <AIS_ListIteratorOfListOfInteractive.hxx>
+#include <AIS_Shape.hxx>
+#include <AIS_Trihedron.hxx>
+
+#include <Aspect_Background.hxx>
+#include <Aspect_TypeOfline.hxx>
+#include <Aspect_WidthOfline.hxx>
+#include <Aspect_Window.hxx>
+#include <Bnd_Box2d.hxx>
+#include <BndLib_Add2dCurve.hxx>
+#include <BRep_Builder.hxx>
+#include <BRep_Tool.hxx>
+
+#include <BRepBuilderAPI.hxx> 
+#include <BRepAlgo.hxx> 
+#include <BRepTools.hxx>
+#include <BRepPrimAPI_MakeBox.hxx>
+#include <BRepPrimAPI_MakeCylinder.hxx>
+#include <Standard_DefineHandle.hxx>
+#include <DsgPrs_LengthPresentation.hxx>
+#include <GCE2d_MakeSegment.hxx>
+#include <GCPnts_TangentialDeflection.hxx>
+#include <Geom_CartesianPoint.hxx>
+#include <Geom_Axis2Placement.hxx>
+#include <Geom_CartesianPoint.hxx>
+#include <Geom_Line.hxx>
+#include <Geom_Surface.hxx>
+#include <Geom2d_BezierCurve.hxx>
+#include <Geom2d_BSplineCurve.hxx>
+#include <Geom2d_Curve.hxx>
+#include <Geom2d_TrimmedCurve.hxx>
+#include <Geom2dAdaptor_Curve.hxx>
+#include <GeomAbs_CurveType.hxx>
+#include <GeomAdaptor_Curve.hxx>
+#include <GeomTools_Curve2dSet.hxx>
+#include <gp_Ax2d.hxx>
+#include <gp_Circ2d.hxx>
+#include <gp_Dir2d.hxx>
+#include <gp_Lin2d.hxx>
+#include <gp_Pnt2d.hxx>
+#include <gp_Vec.hxx>
+#include <gp_Vec2d.hxx>
+#include <OSD_Environment.hxx>
+#include <Precision.hxx>
+#include <Prs3d_Drawer.hxx>
+#include <Prs3d_IsoAspect.hxx>
+#include <Prs3d_LineAspect.hxx>
+#include <Prs3d_Text.hxx>
+#include <Quantity_NameOfColor.hxx>
+#include <Quantity_TypeOfColor.hxx>
+#include <SelectMgr_EntityOwner.hxx>
+#include <SelectMgr_SelectableObject.hxx>
+#include <SelectMgr_Selection.hxx>
+#include <SelectMgr_SelectionManager.hxx>
+#include <Standard_Boolean.hxx>
+#include <Standard_CString.hxx>
+#include <Standard_ErrorHandler.hxx>
+#include <Standard_Integer.hxx>
+#include <Standard_IStream.hxx>
+#include <Standard_Macro.hxx>
+#include <Standard_NotImplemented.hxx>
+#include <Standard_OStream.hxx>
+#include <Standard_Real.hxx>
+#include <StdPrs_Curve.hxx>
+#include <StdPrs_Point.hxx>
+#include <StdPrs_PoleCurve.hxx>
+#include <TCollection_AsciiString.hxx>
+#include <TColgp_Array1OfPnt2d.hxx>
+#include <TColgp_HArray1OfPnt2d.hxx>
+#include <TCollection_AsciiString.hxx>
+#include <TColStd_HSequenceOfTransient.hxx>
+#include <TColStd_MapIteratorOfMapOfTransient.hxx>
+#include <TColStd_MapOfTransient.hxx>
+#include <TopExp_Explorer.hxx>
+#include <TopoDS.hxx>
+#include <TopoDS_Compound.hxx>
+#include <TopoDS_ListIteratorOfListOfShape.hxx>
+#include <TopoDS_Shape.hxx>
+#include <TopoDS_Solid.hxx>
+#include <TopoDS_Vertex.hxx>
+#include <TopExp.hxx>
+#include <TopTools_ListIteratorOfListOfShape.hxx>
+#include <TopTools_HSequenceOfShape.hxx>
+#include <TopTools_DataMapOfShapeInteger.hxx>
+#include <UnitsAPI.hxx>
+#include <V3d_View.hxx>
+#include <V3d_Viewer.hxx>
+#include <WNT_Window.hxx>
+
+// specific STEP
+
+#include <STEPControl_Controller.hxx>
+#include <STEPControl_Reader.hxx>
+#include <STEPControl_Writer.hxx>
+
+
+// specific IGES
+#include <Interface_InterfaceModel.hxx>
+#include <Interface_Static.hxx>
+
+#include <IGESControl_Controller.hxx>
+#include <IGESControl_Writer.hxx>
+
+#include <IGESToBRep_Actor.hxx>
+#include <IGESToBRep_Reader.hxx>
+#include <XSControl_WorkSession.hxx>
+
+#include <STEPControl_StepModelType.hxx>
+
+//#include <TransferBRep_Analyzer.hxx>
+
+// specific STL VRML
+#include "StlAPI_Writer.hxx"
+#include "VrmlAPI_Writer.hxx"
+
+//End CasCade
+
+
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_STDAFX_H__88A21476_3B23_11D2_8E1E_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/03_Viewer2d/CMakeLists.txt b/samples/mfc/standard/03_Viewer2d/CMakeLists.txt
deleted file mode 100644 (file)
index 45ea6c8..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-cmake_minimum_required (VERSION 2.6)
-
-project (Viewer2d)
-
-add_definitions (-DWINVER=0x0501 -DUNICODE -D_UNICODE)
-set (CMAKE_MFC_FLAG 2)
-
-set (Viewer2d_SOURCE_DIR   ${MFC_STANDARD_SAMPLES_DIR}/03_Viewer2d/src)
-set (Viewer2d_HEADER_FILES ${Viewer2d_SOURCE_DIR}/Viewer2dApp.h
-                           ${Viewer2d_SOURCE_DIR}/Viewer2dDoc.h
-                           ${Viewer2d_SOURCE_DIR}/StdAfx.h )
-set (Viewer2d_SOURCE_FILES ${Viewer2d_SOURCE_DIR}/Viewer2dApp.cpp
-                           ${Viewer2d_SOURCE_DIR}/Viewer2dDoc.cpp
-                           ${Viewer2d_SOURCE_DIR}/StdAfx.cpp )
-
-set (Viewer2d_RESOURCE_DIR    ${MFC_STANDARD_SAMPLES_DIR}/03_Viewer2d/res)
-set (Viewer2d_RESOURCE_HEADER ${Viewer2d_RESOURCE_DIR}/resource.h)
-set (Viewer2d_RESOURCE_FILES  ${Viewer2d_RESOURCE_DIR}/Toolbar.bmp
-                              ${Viewer2d_RESOURCE_DIR}/Viewer2d.rc)
-
-# groups in the VS solution
-source_group ("Source Files" FILES ${Viewer2d_SOURCE_FILES}
-                                   ${COMMON_WINMAIN_FILE})
-
-source_group ("Header Files" FILES ${Viewer2d_HEADER_FILES}
-                                   ${Viewer2d_RESOURCE_HEADER})
-
-source_group ("Resource Files" FILES ${Viewer2d_RESOURCE_FILES})
-
-add_executable (Viewer2d WIN32 ${Viewer2d_SOURCE_FILES}
-                               ${Viewer2d_HEADER_FILES}
-                               ${COMMON_WINMAIN_FILE}
-                               ${Viewer2d_RESOURCE_HEADER}
-                               ${Viewer2d_RESOURCE_FILES})
-
-set_property (TARGET Viewer2d PROPERTY FOLDER "Samples/mfc")
-
-if (SINGLE_GENERATOR)
-  install (TARGETS Viewer2d DESTINATION "${INSTALL_DIR_BIN}")
-else()
-  install (TARGETS Viewer2d
-           CONFIGURATIONS Release RelWithDebInfo
-           DESTINATION "${INSTALL_DIR_BIN}")
-  install (TARGETS Viewer2d
-           CONFIGURATIONS Debug
-           DESTINATION "${INSTALL_DIR_BIN}d")
-endif()
-
-include_directories (${CMAKE_BINARY_DIR}/inc
-                     ${MFC_STANDARD_SAMPLES_DIR}/03_Viewer2d
-                     ${Viewer2d_SOURCE_DIR}
-                     ${MFC_STANDARD_SAMPLES_DIR}/Common)
-
-target_link_libraries (Viewer2d mfcsample)
\ No newline at end of file
diff --git a/samples/mfc/standard/03_Viewer2d/README.txt b/samples/mfc/standard/03_Viewer2d/README.txt
deleted file mode 100644 (file)
index fa8efd0..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-Viewer2d sample demonstrates how the functionality of TKV3d package can be
-used for 2D visualization. It provides samples of 2D objects visualization,
-dynamic selection and highlighting.
-It illustrates how to:
-1) implement 2D view behavior with V3d_View class, with interactive zooming
-and panning of the 2D scene;
-2) draw 2D primitives like rectangles, lines, curves;
-3) draw different types of markers;
-4) draw text defined by its font, height, style, angle;
-5) display 2D curves of a face' edges and group them using orientation 
-criterion;
-6) display zoomable images;
-6) display circular and rectangular grids .
-
-Viewer2d support zooming ,panning of displayed objects and
-circular and rectangular grids. 
\ No newline at end of file
diff --git a/samples/mfc/standard/03_Viewer2d/adm/win/vc10/Viewer2d.vcxproj b/samples/mfc/standard/03_Viewer2d/adm/win/vc10/Viewer2d.vcxproj
deleted file mode 100644 (file)
index cbf9eef..0000000
+++ /dev/null
@@ -1,354 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|Win32">
-      <Configuration>Debug</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Debug|x64">
-      <Configuration>Debug</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|x64">
-      <Configuration>Release</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectGuid>{6B905DC2-4E72-4EDA-99C2-7473634690FE}</ProjectGuid>
-    <RootNamespace>Viewer2d</RootNamespace>
-    <Keyword>MFCProj</Keyword>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <PropertyGroup>
-    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../../../win32\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\win32\obj\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">../../../../win64\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\win64\obj\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../../../../win32\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\win32\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">../../../../win64\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\win64\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\obj/Viewer2d.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>..\..\..\src\Properties;.;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\obj/Viewer2d.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bin/Viewer2d.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bin/Viewer2d.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\obj/Viewer2d.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>..\..\..\src\Properties;.;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\obj/Viewer2d.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bin/Viewer2d.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bin/Viewer2d.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\objd/Viewer2d.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\..\..\src\Properties;.;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\objd/Viewer2d.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\objd/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bind/Viewer2d.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bind/Viewer2d.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\objd/Viewer2d.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\..\..\src\Properties;.;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\objd/Viewer2d.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\objd/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bind/Viewer2d.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bind/Viewer2d.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\StdAfx.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\Viewer2dApp.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\Viewer2dDoc.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\res\Viewer2d.rc">
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-    </ResourceCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\res\resource.h" />
-    <ClInclude Include="..\..\..\src\StdAfx.h" />
-    <ClInclude Include="..\..\..\src\Viewer2dApp.h" />
-    <ClInclude Include="..\..\..\src\Viewer2dDoc.h" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\res\Toolbar.bmp" />
-  </ItemGroup>
-  <ItemGroup>
-    <ProjectReference Include="..\..\..\..\mfcsample\adm\win\vc10\mfcsample.vcxproj">
-      <Project>{2d6cbbe8-6965-4016-b503-0d715ae26691}</Project>
-      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
-    </ProjectReference>
-  </ItemGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/03_Viewer2d/adm/win/vc10/Viewer2d.vcxproj.filters b/samples/mfc/standard/03_Viewer2d/adm/win/vc10/Viewer2d.vcxproj.filters
deleted file mode 100644 (file)
index 77f8789..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
-    <Filter Include="Source Files">
-      <UniqueIdentifier>{a5fbdc06-d5d7-4c8a-b829-e986d5c86642}</UniqueIdentifier>
-      <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
-    </Filter>
-    <Filter Include="Header Files">
-      <UniqueIdentifier>{c7319851-4cde-42ce-b4aa-8b7ddd5f0c21}</UniqueIdentifier>
-      <Extensions>h;hpp;hxx;hm;inl</Extensions>
-    </Filter>
-    <Filter Include="Resource Files">
-      <UniqueIdentifier>{ffedd656-2b68-4a6e-8df3-973a1a5b136e}</UniqueIdentifier>
-      <Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
-    </Filter>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\StdAfx.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\Viewer2dApp.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\Viewer2dDoc.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\res\Viewer2d.rc">
-      <Filter>Source Files</Filter>
-    </ResourceCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\res\resource.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\StdAfx.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\Viewer2dApp.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\Viewer2dDoc.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\res\Toolbar.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-  </ItemGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/03_Viewer2d/res/Toolbar.bmp b/samples/mfc/standard/03_Viewer2d/res/Toolbar.bmp
deleted file mode 100755 (executable)
index a6928bd..0000000
Binary files a/samples/mfc/standard/03_Viewer2d/res/Toolbar.bmp and /dev/null differ
diff --git a/samples/mfc/standard/03_Viewer2d/res/Viewer2d.rc b/samples/mfc/standard/03_Viewer2d/res/Viewer2d.rc
deleted file mode 100755 (executable)
index 2402389..0000000
+++ /dev/null
@@ -1,420 +0,0 @@
-// Microsoft Visual C++ generated resource script.
-//
-#include "resource.h"
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
-#include "afxres.h"
-#include "..\..\Common\res\OCC_Resource.h"
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-// English (U.S.) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-#pragma code_page(1252)
-#endif //_WIN32
-
-#ifdef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE 
-BEGIN
-    "resource.h\0"
-END
-
-2 TEXTINCLUDE 
-BEGIN
-    "#include ""afxres.h""\r\n"
-    "#include ""..\\..\\..\\Common\\res\\OCC_Resource.h""\0"
-END
-
-3 TEXTINCLUDE 
-BEGIN
-    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
-    "#define _AFX_NO_OLE_RESOURCES\r\n"
-    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
-    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
-    "\r\n"
-    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
-    "#ifdef _WIN32\r\n"
-    "LANGUAGE 9, 1\r\n"
-    "#pragma code_page(1252)\r\n"
-    "#endif\r\n"
-    "#include ""afxres.rc""         // Standard components\r\n"
-    "#endif\0"
-END
-
-#endif    // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Toolbar
-//
-
-IDR_MAINFRAME TOOLBAR  16, 15
-BEGIN
-    BUTTON      ID_FILE_NEW
-    SEPARATOR
-    BUTTON      ID_BUTTON_Test_Text
-    BUTTON      ID_BUTTON_Test_Markers
-    BUTTON      ID_BUTTON_Test_Line
-    SEPARATOR
-    BUTTON      ID_BUTTON_Test_Face
-    SEPARATOR
-    BUTTON      ID_BUTTON_Test_Rect
-    SEPARATOR
-    BUTTON      ID_BUTTON_Test_Curve
-    SEPARATOR
-    BUTTON      ID_BUTTON32793
-    BUTTON      ID_BUTTON_Test_MultiImages
-    SEPARATOR
-    BUTTON      ID_BUTTON_Erase
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Dialog
-//
-
-IDD_DIALOG_Color DIALOG  0, 0, 281, 186
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Color Map "
-FONT 8, "MS Sans Serif"
-BEGIN
-    LTEXT           "Type Of The Color Map :",IDC_STATIC,20,10,87,10
-    LTEXT           "To be updated ...",IDC_ColorMap_STATIC_Type,110,10,69,10
-    LTEXT           "Size Of The Color Map :",IDC_STATIC,20,20,79,10
-    CONTROL         "Tab1",IDC_ColorMap_TAB,"SysTabControl32",TCS_BUTTONS,19,53,242,15
-    LTEXT           "To be updated ...",IDC_ColorMap_STATIC_Size,110,20,69,10
-    GROUPBOX        "Entries :",IDC_STATIC,10,40,264,50
-    LTEXT           "Color Name :",IDC_STATIC,20,75,50,10
-    LTEXT           "To be updated ...",IDC_ColorMap_STATIC_EntryColorName,204,75,69,10
-    PUSHBUTTON      "Add",IDC_ColorMap_BUTTON_AddNewEntry,110,145,55,15
-    GROUPBOX        "New Entry",IDC_STATIC,10,100,267,79
-    PUSHBUTTON      "Update Current",IDC_ColorMap_BUTTON_UpdateCurrentEntry,20,145,55,15
-    LTEXT           "Color Name :",IDC_ColorMap_STATIC_NewEntryColorNameStatic,20,120,55,10
-    PUSHBUTTON      "Edit...",IDC_ColorMap_BUTTON_NewEntry_EditColor,204,145,55,15
-    LTEXT           "999",IDC_ColorMap_STATIC_EntryColorRed,75,75,35,10
-    LTEXT           "999",IDC_ColorMap_STATIC_EntryColorGreen,120,75,35,10
-    LTEXT           "999",IDC_ColorMap_STATIC_EntryColorBlue,165,75,35,10
-    EDITTEXT        IDC_ColorMap_EDIT_NewEntryColorRed,75,120,35,12,ES_AUTOHSCROLL
-    EDITTEXT        IDC_ColorMap_EDIT_NewEntryColorGreen,120,120,30,12,ES_AUTOHSCROLL
-    EDITTEXT        IDC_ColorMap_EDIT_NewEntryColorBlue,165,120,35,12,ES_AUTOHSCROLL
-    COMBOBOX        IDC_ColorMap_COMBO_NewEntryColorName,204,120,70,193,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
-    PUSHBUTTON      "New Generic Color Map",IDC_ColorMap_BUTTON_NewGenericColorMap,179,4,95,13
-    LTEXT           "Not available for this type of Color map",IDC_ColorMap_STATIC_NewEntryNotavailable,70,130,160,10
-    PUSHBUTTON      "New Color Cube Color Map ",IDC_ColorMap_BUTTON_NewColorCubeColorMap,179,18,95,13
-    PUSHBUTTON      "New Color Ramp Color Map",IDC_ColorMap_BUTTON_NewColorRampColorMap,179,31,95,13
-END
-
-IDD_DIALOG_Font DIALOGEX 0, 0, 287, 210
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Font Map"
-FONT 8, "MS Sans Serif", 0, 0, 0x1
-BEGIN
-    LTEXT           "Size Of The Font Map :",IDC_STATIC,20,10,80,10
-    LTEXT           "To be updated ...",IDC_FontMap_STATIC_Size,110,10,80,10
-    GROUPBOX        "Entries :",IDC_STATIC,10,28,270,97,0,WS_EX_TRANSPARENT
-    CONTROL         "Tab1",IDC_FontMap_TAB,"SysTabControl32",TCS_BUTTONS,20,40,242,15
-    GROUPBOX        "New Entry",IDC_STATIC,10,130,270,73
-    PUSHBUTTON      "Update Current",IDC_FontMap_BUTTON_UpdateCurrent,158,181,55,15
-    PUSHBUTTON      "Add",IDC_FontMap_BUTTON_NewEntry,221,179,55,16
-    LTEXT           "To be updated...",IDC_FontMap_STATIC_CurrentEntryValue,63,75,217,10
-    LTEXT           "Type :",IDC_STATIC,21,155,23,10
-    LTEXT           "Type :",IDC_STATIC,21,60,40,10
-    LTEXT           "To be updated ...",IDC_FontMap_STATIC_CurrentEntryType,63,60,80,10
-    LTEXT           "Size :",IDC_STATIC,21,174,42,10
-    LTEXT           "Slant :",IDC_STATIC,21,189,28,10
-    EDITTEXT        IDC_FontMap_EDIT_NewEntrySize,63,172,62,12,ES_AUTOHSCROLL | ES_WANTRETURN
-    EDITTEXT        IDC_FontMap_EDIT_NewEntrySlant,63,187,62,12,ES_AUTOHSCROLL | ES_WANTRETURN
-    LTEXT           "Size :",IDC_STATIC,21,90,30,10
-    LTEXT           "Slant :",IDC_STATIC,21,106,36,10
-    LTEXT           "Value :",IDC_STATIC,21,75,40,10
-    LTEXT           "Type :",IDC_STATIC,21,140,42,10
-    COMBOBOX        IDC_FontMap_COMBO_NewEntryType,63,138,113,77,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
-    EDITTEXT        IDC_FontMap_EDIT_NewEntryValue,63,153,209,12,ES_AUTOHSCROLL | ES_READONLY
-    LTEXT           "To be updated...",IDC_FontMap_STATIC_CurrentEntrySize,63,90,70,10
-    LTEXT           "To be updated...",IDC_FontMap_STATIC_CurrentEntrySlant,63,106,80,10
-    PUSHBUTTON      "Edit...",IDC_FontMap_BUTTON_NewEntry_EditFont,191,138,55,12
-END
-
-IDD_DIALOG_Width DIALOG  0, 0, 281, 167
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Width Map "
-FONT 8, "MS Sans Serif"
-BEGIN
-    LTEXT           "Size Of The Width Map :",IDC_STATIC,15,10,80,10
-    CONTROL         "Tab1",IDC_WidthMap_TAB,"SysTabControl32",TCS_BUTTONS,21,40,242,15
-    LTEXT           "To be updated ...",IDC_WidthMap_STATIC_Size,107,10,80,10
-    GROUPBOX        "Entries :",IDC_STATIC,10,30,264,57
-    LTEXT           "Type :",IDC_STATIC,15,60,80,10
-    LTEXT           "Width :",IDC_STATIC,15,75,80,10
-    LTEXT           "Type :",IDC_STATIC,15,115,49,10
-    LTEXT           "Width :",IDC_STATIC,15,130,49,10
-    COMBOBOX        IDC_WidthMap_COMBO_NewEntryType,70,113,113,77,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
-    EDITTEXT        IDC_WidthMap_EDIT_NewEntryWidth,70,128,62,12,ES_AUTOHSCROLL | ES_READONLY | ES_WANTRETURN
-    LTEXT           "To be updated ...",IDC_WidthMap_STATIC_EntryType,107,60,80,10
-    LTEXT           "To be updated ...",IDC_WidthMap_STATIC_EntryWidth,107,75,80,10
-    PUSHBUTTON      "Add",IDC_WidthMap_BUTTON_AddNewEntry,200,130,55,15
-    GROUPBOX        "New Entry",IDC_STATIC,7,101,267,51
-    PUSHBUTTON      "Update Current",IDC_WidthMap_BUTTON_UpdateCurrentEntry,200,110,55,15
-END
-
-IDD_DIALOG_NewColorCube DIALOG  0, 0, 207, 156
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "New Color Cube"
-FONT 8, "MS Sans Serif"
-BEGIN
-    DEFPUSHBUTTON   "OK",IDOK,150,10,50,13
-    PUSHBUTTON      "Cancel",IDCANCEL,150,30,50,14
-    LTEXT           "base_pixel",IDC_STATIC,20,10,50,10
-    LTEXT           "greenmax",IDC_STATIC,20,70,50,10
-    LTEXT           "greenmult",IDC_STATIC,20,90,50,10
-    LTEXT           "bluemax",IDC_STATIC,20,110,50,10
-    LTEXT           "bluemult",IDC_STATIC,20,130,50,10
-    EDITTEXT        IDC_NewColorCube_EDIT_bluemult,80,130,50,12,ES_AUTOHSCROLL | ES_NUMBER
-    EDITTEXT        IDC_NewColorCube_EDIT_bluemax,80,110,50,12,ES_AUTOHSCROLL | ES_NUMBER
-    EDITTEXT        IDC_NewColorCube_EDIT_grennmult,80,90,50,12,ES_AUTOHSCROLL | ES_NUMBER
-    EDITTEXT        IDC_NewColorCube_EDIT_greenmax,80,70,50,12,ES_AUTOHSCROLL | ES_NUMBER
-    EDITTEXT        IDC_NewColorCube_EDIT_base_pixel,80,10,50,12,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "redmax",IDC_STATIC,20,30,50,10
-    EDITTEXT        IDC_NewColorCube_EDIT_redmax,80,30,50,12,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "redmult",IDC_STATIC,20,50,50,10
-    EDITTEXT        IDC_NewColorCube_EDIT_redmult,80,50,50,12,ES_AUTOHSCROLL | ES_NUMBER
-END
-
-IDD_DIALOG_NewColorRamp DIALOG  0, 0, 252, 121
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "New Color ramp"
-FONT 8, "MS Sans Serif"
-BEGIN
-    DEFPUSHBUTTON   "OK",IDOK,150,10,50,13
-    PUSHBUTTON      "Cancel",IDCANCEL,150,30,50,14
-    LTEXT           "base_pixel",-1,20,10,49,10
-    EDITTEXT        IDC_NewColorRamp_EDIT_base_pixel,80,10,40,12,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "dimension",-1,20,30,49,10
-    EDITTEXT        IDC_NewColorramp_EDIT_dimension,80,30,40,12,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "Color Name :",IDC_ColorMap_STATIC_NewEntryColorNameStatic,20,50,49,10
-    PUSHBUTTON      "Edit...",IDC_NewColorMapRamp_BUTTON_EditColor,145,70,55,10
-    EDITTEXT        IDC_NewColorMapRamp_EDIT_ColorRed,28,70,35,12,ES_AUTOHSCROLL
-    EDITTEXT        IDC_NewColorMapRamp_EDIT_ColorGreen,65,70,35,12,ES_AUTOHSCROLL
-    EDITTEXT        IDC_NewColorMapRamp_EDIT_ColorBlue,103,70,35,12,ES_AUTOHSCROLL
-    COMBOBOX        IDC_NewColorMap_COMBO_NewEntryColorName,80,50,70,193,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
-END
-
-IDD_DIALOG_Type DIALOGEX 0, 0, 287, 170
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Type Map"
-FONT 8, "MS Sans Serif", 0, 0, 0x1
-BEGIN
-    LTEXT           "Size Of The Type Map :",-1,20,10,80,10
-    LTEXT           "To be updated ...",IDC_TypeMap_STATIC_Size,110,10,80,10
-    GROUPBOX        "Entries :",-1,10,28,270,62,0,WS_EX_TRANSPARENT
-    CONTROL         "Tab1",IDC_TypeMap_TAB,"SysTabControl32",TCS_BUTTONS,20,40,242,15
-    GROUPBOX        "New Entry",-1,10,100,270,60
-    PUSHBUTTON      "Update Current",IDC_FontMap_BUTTON_UpdateCurrent,160,140,55,15
-    PUSHBUTTON      "Add",IDC_FontMap_BUTTON_NewEntry,220,140,55,15
-    LTEXT           "To be updated...",IDC_TypeMap_STATIC_CurrentEntryValue,63,75,217,10
-    LTEXT           "Value :",-1,21,126,42,10
-    LTEXT           "Style :",-1,21,60,40,10
-    LTEXT           "To be updated ...",IDC_TypeMap_STATIC_CurrentEntryStyle,63,60,80,10
-    LTEXT           "Value :",-1,21,75,40,10
-    LTEXT           "Style :",-1,21,111,42,10
-    COMBOBOX        IDC_TypeMap_COMBO_NewEntryStyle,63,108,113,77,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
-    EDITTEXT        IDC_TypeMap_EDIT_NewEntryValue,63,124,194,12,ES_AUTOHSCROLL | ES_READONLY
-END
-
-IDD_DIALOG_Mark DIALOGEX 0, 0, 287, 201
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Mark Map"
-FONT 8, "MS Sans Serif", 0, 0, 0x1
-BEGIN
-    LTEXT           "Size Of The Mark Map :",AFX_ID_PREVIEW_CLOSE,20,10,80,10
-    LTEXT           "To be updated ...",IDC_MarkMap_STATIC_Size,110,10,80,10
-    GROUPBOX        "Entries :",-1,10,28,270,92,0,WS_EX_TRANSPARENT
-    CONTROL         "Tab1",IDC_MarkMap_TAB,"SysTabControl32",TCS_BUTTONS,20,40,242,15
-    LTEXT           "To be updated...",IDC_MarkMap_STATIC_CurrentEntryXValue,63,75,217,9
-    LTEXT           "Style :",-1,21,60,40,10
-    LTEXT           "To be updated ...",IDC_MarkMap_STATIC_CurrentEntryStyle,63,60,80,10
-    LTEXT           "XValue :",-1,21,75,40,9
-    LTEXT           "To be updated...",IDC_MarkMap_STATIC_CurrentEntryYValue,63,90,217,10
-    LTEXT           "YValue :",-1,21,90,40,10
-    LTEXT           "To be updated...",IDC_MarkMap_STATIC_CurrentEntrySValue,63,105,217,10
-    LTEXT           "SValue :",-1,21,105,40,10
-    LTEXT           "To be updated...",IDC_MarkMap_STATIC_CurrentEntryValue,62,90,217,10
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Bitmap
-//
-
-IDR_MAINFRAME           BITMAP                  "Toolbar.bmp"
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Menu
-//
-
-IDR_2DTYPE MENU 
-BEGIN
-    POPUP "&File"
-    BEGIN
-        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
-        MENUITEM "&Close",                      ID_FILE_CLOSE
-        MENUITEM SEPARATOR
-        MENUITEM "Export Image...",             ID_FILE_EXPORT_IMAGE
-        MENUITEM SEPARATOR
-        MENUITEM "E&xit",                       ID_APP_EXIT
-    END
-    POPUP "&View"
-    BEGIN
-        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
-        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
-    END
-    POPUP "&Window"
-    BEGIN
-        MENUITEM "&New Window",                 ID_WINDOW_NEW
-        MENUITEM "&Cascade",                    ID_WINDOW_CASCADE
-        MENUITEM "&Tile",                       ID_WINDOW_TILE_HORZ
-        MENUITEM "&Arrange Icons",              ID_WINDOW_ARRANGE
-    END
-    POPUP "&Help"
-    BEGIN
-        MENUITEM "&About Viewer2d...",          ID_APP_ABOUT
-    END
-END
-
-IDR_MAINFRAME MENU 
-BEGIN
-    POPUP "&File"
-    BEGIN
-        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
-        MENUITEM SEPARATOR
-        MENUITEM "E&xit",                       ID_APP_EXIT
-    END
-    POPUP "&View"
-    BEGIN
-        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
-        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
-    END
-    POPUP "&Help"
-    BEGIN
-        MENUITEM "&About Viewer2d...",          ID_APP_ABOUT
-    END
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,0,0,1
- PRODUCTVERSION 1,0,0,1
- FILEFLAGSMASK 0x3fL
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x4L
- FILETYPE 0x1L
- FILESUBTYPE 0x0L
-BEGIN
-    BLOCK "StringFileInfo"
-    BEGIN
-        BLOCK "040904B0"
-        BEGIN
-            VALUE "FileDescription", "SAMPLEVIEWER2D MFC Application"
-            VALUE "FileVersion", "1, 0, 0, 1"
-            VALUE "InternalName", "SAMPLEVIEWER2D"
-            VALUE "LegalCopyright", "Copyright Â© 1997"
-            VALUE "OriginalFilename", "VIEWER2D.EXE"
-            VALUE "ProductName", "SAMPLEVIEWER2D Application"
-            VALUE "ProductVersion", "1, 0, 0, 1"
-        END
-    END
-    BLOCK "VarFileInfo"
-    BEGIN
-        VALUE "Translation", 0x409, 1200
-    END
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// String Table
-//
-
-STRINGTABLE 
-BEGIN
-    IDR_MAINFRAME           "Viewer2d"
-    IDR_2DTYPE              "\nViewer2d\nViewer2d\n\n\nViewer2d.Document\nViewer2d Document"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_BUTTON_Test_Text     "Test Text\nTest Text"
-    ID_BUTTON_Test_Markers  "Test Markers\nTest Markers"
-    ID_BUTTON_Test_Line     "Test Lines\nTest Lines"
-    ID_BUTTON_Erase         "Erase all\nErase"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_BUTTONAxo            "Face orientation\nFace orientation"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_BUTTON_Test_Curve    "Test Curves\nTest Curves"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_BUTTON32793          "Test Image\nTest Image"
-    ID_BUTTON_Test_MultiImages "Test multi-images\nTest multi-images"
-    ID_BUTTON_Test_Rect     "Test Rects\nTest Rects"
-    ID_BUTTON_Test_Face     "Test Face\nTest Face"
-END
-
-#endif    // English (U.S.) resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-#define _AFX_NO_SPLITTER_RESOURCES
-#define _AFX_NO_OLE_RESOURCES
-#define _AFX_NO_TRACKER_RESOURCES
-#define _AFX_NO_PROPERTY_RESOURCES
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE 9, 1
-#pragma code_page(1252)
-#endif
-#include "afxres.rc"         // Standard components
-#endif
-/////////////////////////////////////////////////////////////////////////////
-#endif    // not APSTUDIO_INVOKED
-
diff --git a/samples/mfc/standard/03_Viewer2d/res/resource.h b/samples/mfc/standard/03_Viewer2d/res/resource.h
deleted file mode 100755 (executable)
index f461f3c..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
-//{{NO_DEPENDENCIES}}
-// Microsoft Visual C++ generated include file.
-// Used by Viewer2d.rc
-//
-#define ID_BUTTON_Test_Image            0
-#define IDR_MAINFRAME2                  130
-#define IDR_2DTYPE2                     131
-#define ID_FILE_EXPORT_IMAGE2           133
-#define ID_MENU_CASCADE_PROPERTIES      148
-#define IDD_DIALOG_Font                 160
-#define IDD_DIALOG_Width                161
-#define IDD_DIALOG_Color                162
-#define IDD_DIALOG_NewColorCube         163
-#define IDD_DIALOG_NewColorRamp         164
-#define IDD_DIALOG_Type                 165
-#define IDD_DIALOG_Mark                 166
-#define ID_BUTTON_Test_Text             1043
-#define ID_BUTTON_Test_Markers          1045
-#define ID_BUTTON_Test_Line             1048
-#define ID_BUTTON_Erase                 1051
-#define IDR_MAINFRAME1                  1208
-#define IDC_ColorMap_STATIC_Type        1420
-#define IDC_ColorMap_STATIC_Size        1421
-#define IDC_ColorMap_TAB                1422
-#define IDC_ColorMap_STATIC_EntryColorGreen 1423
-#define IDC_ColorMap_STATIC_EntryColorRed 1424
-#define IDC_ColorMap_STATIC_EntryColorBlue 1425
-#define IDC_ColorMap_STATIC_EntryColorName 1426
-#define IDC_ColorMap_EDIT_NewEntryColorRed 1427
-#define IDC_ColorMap_EDIT_NewEntryColorGreen 1428
-#define IDC_ColorMap_EDIT_NewEntryColorBlue 1429
-#define IDC_ColorMap_COMBO_NewEntryColorName 1430
-#define IDC_ColorMap_BUTTON_NewEntry_EditColor 1431
-#define IDC_ColorMap_BUTTON_UpdateCurrentEntry 1432
-#define IDC_ColorMap_BUTTON_AddNewEntry 1433
-#define IDC_ColorMap_BUTTON_NewGenericColorMap 1434
-#define IDC_ColorMap_STATIC_NewEntryColorNameStatic 1435
-#define IDC_ColorMap_STATIC_NewEntryNotavailable 1436
-#define IDC_ColorMap_BUTTON_NewColorCubeColorMap 1437
-#define IDC_ColorMap_BUTTON_NewColorRampColorMap 1438
-#define IDC_NewColorMap_COMBO_NewEntryColorName 1439
-#define IDC_NewColorMap_BUTTON_NewColorRampColorMap 1440
-#define IDC_NewColorMapRamp_EDIT_ColorRed 1441
-#define IDC_NewColorMapRamp_EDIT_ColorGreen 1442
-#define IDC_NewColorMapRamp_EDIT_ColorBlue 1443
-#define IDC_NewColorMapRamp_BUTTON_EditColor 1444
-#define IDC_NewColorRamp_EDIT_base_pixel 1445
-#define IDC_NewColorramp_EDIT_dimension 1446
-#define IDC_NewColorCube_EDIT_bluemult  1447
-#define IDC_NewColorCube_EDIT_base_pixel 1448
-#define IDC_NewColorCube_EDIT_bluemax   1449
-#define IDC_NewColorCube_EDIT_grennmult 1450
-#define IDC_NewColorCube_EDIT_greenmax  1451
-#define IDC_NewColorCube_EDIT_redmax    1452
-#define IDC_NewColorCube_EDIT_redmult   1453
-#define IDC_WidthMap_STATIC_Size        1454
-#define IDC_WidthMap_TAB                1455
-#define IDC_WidthMap_STATIC_EntryType   1456
-#define IDC_WidthMap_STATIC_EntryWidth  1457
-#define IDC_WidthMap_COMBO_NewEntryType 1458
-#define IDC_WidthMap_EDIT_NewEntryWidth 1459
-#define IDC_WidthMap_BUTTON_AddNewEntry 1460
-#define IDC_WidthMap_BUTTON_UpdateCurrentEntry 1461
-#define IDC_FontMap_STATIC_Size         1462
-#define IDC_FontMap_TAB                 1463
-#define IDC_FontMap_STATIC_CurrentEntryValue 1464
-#define IDC_FontMap_STATIC_CurrentEntryType 1465
-#define IDC_FontMap_STATIC_CurrentEntrySize 1466
-#define IDC_FontMap_STATIC_CurrentEntrySlant 1467
-#define IDC_FontMap_BUTTON_NewEntry     1468
-#define IDC_FontMap_BUTTON_UpdateCurrent 1469
-#define IDC_FontMap_COMBO_NewEntryType  1470
-#define IDC_FontMap_EDIT_NewEntryValue  1471
-#define IDC_FontMap_EDIT_NewEntrySize   1472
-#define IDC_FontMap_EDIT_NewEntrySlant  1473
-#define IDC_FontMap_BUTTON_NewEntry_EditFont 1474
-#define IDC_TypeMap_STATIC_Size         1475
-#define IDC_TypeMap_TAB                 1476
-#define IDC_TypeMap_STATIC_CurrentEntryStyle 1477
-#define IDC_TypeMap_STATIC_CurrentEntryValue 1478
-#define IDC_TypeMap_COMBO_NewEntryStyle 1479
-#define IDC_TypeMap_EDIT_NewEntryValue  1480
-#define IDC_MarkMap_STATIC_Size         1481
-#define IDC_MarkMap_TAB                 1482
-#define IDC_MarkMap_STATIC_CurrentEntryXValue 1483
-#define IDC_MarkMap_STATIC_CurrentEntryStyle 1484
-#define IDC_MarkMap_STATIC_CurrentEntryYValue 1485
-#define IDC_MarkMap_STATIC_CurrentEntrySValue 1486
-#define IDC_MarkMap_STATIC_CurrentEntryValue 1487
-#define ID_BUTTON32791                  32791
-#define ID_BUTTON32793                  32793
-#define ID_BUTTON_Test_MultiImages      32794
-#define ID_BUTTON_Test_Rect             32795
-#define ID_BUTTON_Test_Face             32796
-#define ID_BUTTON_Test_Curve            40016
-#define ID_FILE_NEW2                    57601
-#define ID_FILE_OPEN2                   57603
-#define ID_FILE_CLOSE2                  57604
-#define ID_FILE_SAVE2                   57605
-#define ID_FILE_SAVE_AS2                57606
-#define ID_WINDOW_NEW2                  57652
-#define ID_WINDOW_ARRANGE2              57653
-#define ID_WINDOW_CASCADE2              57654
-#define ID_WINDOW_TILE_HORZ2            57655
-#define ID_WINDOW_TILE_VERT2            57656
-#define ID_WINDOW_SPLIT2                57657
-#define ID_APP_ABOUT2                   57666
-#define ID_APP_EXIT2                    57667
-#define ID_VIEW_TOOLBAR2                59394
-#define ID_VIEW_STATUS_BAR2             59395
-
-// Next default values for new objects
-// 
-#ifdef APSTUDIO_INVOKED
-#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_3D_CONTROLS                     1
-#define _APS_NEXT_RESOURCE_VALUE        179
-#define _APS_NEXT_COMMAND_VALUE         32797
-#define _APS_NEXT_CONTROL_VALUE         1100
-#define _APS_NEXT_SYMED_VALUE           170
-#endif
-#endif
diff --git a/samples/mfc/standard/03_Viewer2d/src/StdAfx.cpp b/samples/mfc/standard/03_Viewer2d/src/StdAfx.cpp
deleted file mode 100755 (executable)
index f51e0a6..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// stdafx.cpp : source file that includes just the standard includes
-//     SampleViewer2d.pch will be the pre-compiled header
-//     stdafx.obj will contain the pre-compiled type information
-
-#include "stdafx.h"
-
diff --git a/samples/mfc/standard/03_Viewer2d/src/StdAfx.h b/samples/mfc/standard/03_Viewer2d/src/StdAfx.h
deleted file mode 100755 (executable)
index 133d0a5..0000000
+++ /dev/null
@@ -1,158 +0,0 @@
-// stdafx.h : include file for standard system include files,
-//  or project specific include files that are used frequently, but
-//      are changed infrequently
-//
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#define VC_EXTRALEAN           // Exclude rarely-used stuff from Windows headers
-
-#include <afxwin.h>         // MFC core and standard components
-#include <afxext.h>         // MFC extensions
-#include <afxdisp.h>        // MFC OLE automation classes
-#ifndef _AFX_NO_AFXCMN_SUPPORT
-#include <afxcmn.h>                    // MFC support for Windows Common Controls
-#endif // _AFX_NO_AFXCMN_SUPPORT
-
-#pragma warning(  disable : 4244 )        // Issue warning 4244
-#include "Standard_ShortReal.hxx"
-#pragma warning(  default : 4244 )        // Issue warning 4244
-
-#include <Standard.hxx>
-/*
-#ifndef Version15B
-# ifndef Version15D
-#  ifndef Version20
-#   define Version15B
-#  endif // Version20
-# endif // Version15D
-#endif // Version15B
-
-#pragma message ("=============================")
-#ifdef Version15B
-# pragma message ("Set the libs for version 1.5B")
-#endif // Version15B
-
-#ifdef Version15D
-# pragma message ("Set the libs for version 1.5D")
-#endif // Version15D
-
-#ifdef Version20
-# pragma message ("Set the libs for version 2.0 ")
-#endif // Version20
-#pragma message ("=============================")
-
-#ifdef Version15B
-# pragma comment (lib,"TKTop.lib")
-# pragma comment (lib,"TShort.lib")
-# pragma comment (lib,"TColQuantity.lib")
-#endif
-
-#ifdef Version15D
-# pragma comment (lib,"TKTop.lib")
-#endif
-
-#ifdef Version20
-# pragma comment (lib,"TKTop1.lib")
-# pragma comment (lib,"TKTop2.lib")
-#endif
-
-#pragma message ("Set the specific libs for the application")
-# pragma comment (lib,"TKGeom.lib")
-# pragma comment (lib,"TKGlt.lib")
-# pragma comment (lib,"TKGraphic.lib")
-# pragma comment (lib,"TKPrsMgr.lib")
-# pragma comment (lib,"TKViewers.lib")
-# pragma comment (lib,"gp.lib")
-# pragma comment (lib,"TKernel.lib")
-*/
-
-#include <AIS_Circle.hxx>
-#include <AIS_Line.hxx>
-#include <AIS_InteractiveContext.hxx>
-#include <AIS_InteractiveObject.hxx>
-#include <AIS_TextLabel.hxx>
-
-#include <Aspect_TypeOfline.hxx>
-#include <Aspect_WidthOfline.hxx>
-#include <Aspect_Background.hxx>
-
-#include <BRepPrimAPI_MakeBox.hxx>
-#include <BRep_Builder.hxx>
-#include <BRepBuilderAPI_MakeEdge.hxx>
-#include <BRepBuilderAPI_MakeWire.hxx>
-#include <BRepBuilderAPI_MakeFace.hxx>
-#include <BRepTools.hxx>
-#include <Bnd_Box2d.hxx>
-#include <BndLib_Add2dCurve.hxx>
-
-#include <GCE2d_MakeSegment.hxx>
-#include <GCPnts_TangentialDeflection.hxx>
-#include <Geom2d_Curve.hxx>
-#include <Geom_CartesianPoint.hxx>
-#include <Geom_Circle.hxx>
-#include <Geom_Curve.hxx>
-#include <Geom_Line.hxx>
-#include <Geom2d_Curve.hxx>
-#include <Geom2d_TrimmedCurve.hxx>
-#include <Geom2dAdaptor_Curve.hxx>
-#include <GeomTools_Curve2dSet.hxx>
-#include <Graphic3d_AspectText3d.hxx>
-#include <Graphic3d_Group.hxx>
-#include <Graphic3d_AspectMarker3d.hxx>
-#include <Graphic3d_StructureManager.hxx>
-#include <Graphic3d_Texture1Dsegment.hxx>
-#include <gp_Ax2d.hxx>
-#include <gp_Circ.hxx>
-#include <gp_Circ2d.hxx>
-#include <gp_Dir2d.hxx>
-#include <gp_Lin2d.hxx>
-#include <gp_Pln.hxx>
-#include <gp_Pnt2d.hxx>
-#include <gp_Vec2d.hxx>
-#include <HLRAlgo_Projector.hxx>
-#include <OSD_Environment.hxx>
-#include <Precision.hxx>
-#include <Prs3d_Drawer.hxx>
-#include <Prs3d_LineAspect.hxx>
-#include <Prs3d_PlaneAspect.hxx>
-#include <Prs3d_Presentation.hxx>
-#include <SelectMgr_EntityOwner.hxx>
-#include <SelectMgr_Selection.hxx>
-#include <SelectMgr_SelectableObject.hxx>
-#include <SelectMgr_SelectionManager.hxx>
-#include <Standard_ErrorHandler.hxx>
-#include <Standard_Real.hxx>
-#include <Standard_Integer.hxx>
-#include <SelectMgr_Selection.hxx>
-#include <Standard_OStream.hxx>
-#include <Standard_IStream.hxx>
-#include <Standard_CString.hxx>
-#include <Standard_Boolean.hxx>
-#include <Standard_Real.hxx>
-#include <Standard_OStream.hxx>
-#include <Standard_IStream.hxx>
-#include <Standard_CString.hxx>
-#include <TCollection_AsciiString.hxx>
-#include <TColgp_Array1OfPnt2d.hxx>
-#include <TColgp_HArray1OfPnt2d.hxx>
-#include <TopoDS_Shape.hxx>
-#include <TopoDS.hxx>
-#include <V3d_View.hxx>
-#include <V3d_Viewer.hxx>
-#include <WNT_Window.hxx>
-
-#include <..\res\resource.h>
-
-class ISession2D_InteractiveObject;
-
-class V3d_Viewer;
-class SelectMgr_SelectableObject;
-class TCollection_AsciiString;
-class gp_Pnt2d;
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
diff --git a/samples/mfc/standard/03_Viewer2d/src/Viewer2dApp.cpp b/samples/mfc/standard/03_Viewer2d/src/Viewer2dApp.cpp
deleted file mode 100755 (executable)
index c452e59..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-// Viewer2dApp.cpp : Defines the class behaviors for the application.
-//
-
-#include "stdafx.h"
-
-#include "Viewer2dApp.h"
-
-#include "OCC_MainFrame.h"
-#include "OCC_2dChildFrame.h"
-#include "Viewer2dDoc.h"
-#include "OCC_2dView.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer2dApp construction
-
-CViewer2dApp::CViewer2dApp() : OCC_App()
-{
-  SampleName = "Viewer2d"; //for about dialog
-  SetSamplePath (L"..\\..\\03_Viewer2d");
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// The one and only CViewer2dApp object
-
-CViewer2dApp theApp;
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer2dApp initialization
-
-BOOL CViewer2dApp::InitInstance()
-{
-       // Standard initialization
-       // If you are not using these features and wish to reduce the size
-       //  of your final executable, you should remove from the following
-       //  the specific initialization routines you do not need.
-
-       LoadStdProfileSettings();  // Load standard INI file options (including MRU)
-
-       // Register the application's document templates.  Document templates
-       //  serve as the connection between documents, frame windows and views.
-
-       CMultiDocTemplate* pDocTemplate;
-       pDocTemplate = new CMultiDocTemplate(
-               IDR_2DTYPE,
-               RUNTIME_CLASS(CViewer2dDoc),
-               RUNTIME_CLASS(OCC_2dChildFrame),
-               RUNTIME_CLASS(OCC_2dView));
-       AddDocTemplate(pDocTemplate);
-
-       // create main MDI Frame window
-       OCC_MainFrame* pMainFrame = new OCC_MainFrame;
-       if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
-               return FALSE;
-       m_pMainWnd = pMainFrame;
-
-       // Parse command line for standard shell commands, DDE, file open
-       CCommandLineInfo cmdInfo;
-       ParseCommandLine(cmdInfo);
-
-       // Dispatch commands specified on the command line
-       if (!ProcessShellCommand(cmdInfo))
-               return FALSE;
-
-       // The main window has been initialized, so show and update it.
-       pMainFrame->ShowWindow(m_nCmdShow);
-       pMainFrame->UpdateWindow();
-
-       return TRUE;
-}
diff --git a/samples/mfc/standard/03_Viewer2d/src/Viewer2dApp.h b/samples/mfc/standard/03_Viewer2d/src/Viewer2dApp.h
deleted file mode 100755 (executable)
index d632653..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-// Viewer2dApp.h : main header file for the VIEWER2D application
-//
-
-#if !defined(AFX_VIEWER2DAPP_H__45F76B43_423D_11D7_8612_0060B0EE281E__INCLUDED_)
-#define AFX_VIEWER2DAPP_H__45F76B43_423D_11D7_8612_0060B0EE281E__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-#include <OCC_App.h>
-
-class CViewer2dApp : public OCC_App
-{
-public:
-
-  CViewer2dApp();
-
-// Overrides
-  // ClassWizard generated virtual function overrides
-  //{{AFX_VIRTUAL(CViewer2dApp)
-  public:
-  virtual BOOL InitInstance();
-  //}}AFX_VIRTUAL
-};
-
-
-/////////////////////////////////////////////////////////////////////////////
-
-#endif //(AFX_VIEWER2DAPP_H__45F76B43_423D_11D7_8612_0060B0EE281E__INCLUDED_)
diff --git a/samples/mfc/standard/03_Viewer2d/src/Viewer2dDoc.cpp b/samples/mfc/standard/03_Viewer2d/src/Viewer2dDoc.cpp
deleted file mode 100755 (executable)
index fd99f3d..0000000
+++ /dev/null
@@ -1,405 +0,0 @@
-// Viewer2dDoc.cpp : implementation of the CViewer2dDoc class
-//
-
-#include "stdafx.h"
-#include "Viewer2dDoc.h"
-#include "OCC_App.h"
-#include "Primitive\Sample2D_Markers.h"
-#include "Primitive\Sample2D_Face.h"
-#include "Primitive\Sample2D_Image.h"
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer2dDoc
-
-IMPLEMENT_DYNCREATE(CViewer2dDoc, CDocument)
-
-BEGIN_MESSAGE_MAP(CViewer2dDoc, CDocument)
-       //{{AFX_MSG_MAP(CViewer2dDoc)
-       ON_COMMAND(ID_BUTTON_Test_Text, OnBUTTONTestText)
-       ON_COMMAND(ID_BUTTON_Test_Markers, OnBUTTONTestMarkers)
-       ON_COMMAND(ID_BUTTON_Test_Line, OnBUTTONTestLine)
-       ON_COMMAND(ID_BUTTON_Erase, OnBUTTONErase)
-       ON_COMMAND(ID_BUTTON_Test_Face, OnBUTTONTestFace)
-       ON_COMMAND(ID_BUTTON_Test_Rect, OnBUTTONTestRect)
-       ON_COMMAND(ID_BUTTON_Test_Curve, OnBUTTONTestCurve)
-       ON_COMMAND(ID_BUTTON32793, OnBUTTONTestImage) // test image
-       ON_COMMAND(ID_BUTTON_Test_MultiImages, OnBUTTONMultipleImage)
-
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer2dDoc construction/destruction
-
-CViewer2dDoc::CViewer2dDoc()
-{
-}
-
-CViewer2dDoc::~CViewer2dDoc()
-{
-}
-
-#ifdef _DEBUG
-void CViewer2dDoc::AssertValid() const
-{
-       CDocument::AssertValid();
-}
-
-void CViewer2dDoc::Dump(CDumpContext& dc) const
-{
-       CDocument::Dump(dc);
-}
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer2dDoc commands
-
-void CViewer2dDoc::OnBUTTONErase() 
-{
-  myAISContext->EraseAll (Standard_True);
-}
-
-void CViewer2dDoc::OnBUTTONTestText() 
-{
-  int aColor = Quantity_NOC_MATRABLUE;
-  for (Standard_Real j = 15; j <= 20; j++)
-  {
-    Handle(AIS_TextLabel) aText = new AIS_TextLabel();
-    aText->SetText (TCollection_AsciiString ("font 0 scale ") + (j / 20.0));
-    aText->SetPosition (gp_Pnt (0.0, 15.0 * (j - 15.0), 0.0));
-    aText->SetAngle (30.0 * M_PI / 180.0);
-    aText->SetColor (Quantity_NameOfColor(aColor++));
-    aText->SetFontAspect (Font_FA_Regular);
-    aText->SetFont ("Courier");
-    aText->SetHeight (j);
-    aText->SetHJustification (Graphic3d_HTA_LEFT);
-    aText->SetVJustification (Graphic3d_VTA_BOTTOM);
-    aText->SetZoomable (Standard_False);
-    myAISContext->Display(aText, Standard_False);
-  }
-
-  for (Standard_Real j = 10; j <= 15; j++)
-  {
-    Handle(AIS_TextLabel) aText = new AIS_TextLabel();
-    aText->SetText (TCollection_AsciiString ("font 1 scale ") + (j / 10.0));
-    aText->SetPosition (gp_Pnt (80.0, 15.0 * (j - 10.0), 0.0));
-    aText->SetAngle (0.0);
-    aText->SetColor (Quantity_NameOfColor(aColor++));
-    aText->SetFontAspect (Font_FA_BoldItalic);
-    aText->SetFont ("Cambria");
-    aText->SetHeight (j * 2);
-    aText->SetHJustification (Graphic3d_HTA_LEFT);
-    aText->SetVJustification (Graphic3d_VTA_BOTTOM);
-    aText->SetZoomable (Standard_False);
-    myAISContext->Display(aText, Standard_False);
-  }
-
-  aColor = Quantity_NOC_MATRABLUE;
-  for (Standard_Real j = 5; j <= 10; j++)
-  {
-    Handle(AIS_TextLabel) aText = new AIS_TextLabel();
-    aText->SetText (TCollection_AsciiString ("font 2 scale ") + (j / 10.0));
-    aText->SetPosition (gp_Pnt (140.0, 15.0 * (j - 5.0), 0.0));
-    aText->SetAngle (0.0);
-    aText->SetColor (Quantity_NameOfColor(aColor++));
-    aText->SetFontAspect (Font_FA_Bold);
-    aText->SetFont ("Arial");
-    aText->SetHeight (j * 2);
-    aText->SetHJustification (Graphic3d_HTA_LEFT);
-    aText->SetVJustification (Graphic3d_VTA_BOTTOM);
-    aText->SetZoomable (Standard_False);
-    myAISContext->Display(aText, Standard_False);
-  }
-  for (Standard_Real j = 10; j <= 15; j++)
-  {
-    Handle(AIS_TextLabel) aText = new AIS_TextLabel();
-    aText->SetText (TCollection_AsciiString ("font 3 scale ") + (j / 10.0));
-    aText->SetPosition (gp_Pnt (200.0, 15.0 * (j - 10.0), 0.0));
-    aText->SetAngle (0.0);
-    aText->SetColor (Quantity_NameOfColor(aColor++));
-    aText->SetFontAspect (Font_FA_Italic);
-    aText->SetFont ("Georgia");
-    aText->SetHeight (j * 2);
-    aText->SetHJustification (Graphic3d_HTA_LEFT);
-    aText->SetVJustification (Graphic3d_VTA_BOTTOM);
-    aText->SetZoomable (Standard_False);
-    myAISContext->Display(aText, Standard_False);
-  }
-
-  FitAll2DViews(Standard_True); // Update Viewer
-}
-
-
-void CViewer2dDoc::OnBUTTONTestMarkers() 
-{
-  // generic Markers
-  Standard_Integer aColor = 20;
-  for (int i=1;i<=2;i++)
-  {
-    Handle (Sample2D_Markers) aMarker  = 
-      new Sample2D_Markers(10+5,5*i,Aspect_TOM_POINT,Quantity_NOC_YELLOW,2.0);
-    myAISContext->Display(aMarker, Standard_False);
-  }
-  for (int i=1;i<=2;i++)
-  {
-    Handle (Sample2D_Markers) aMarker  = 
-      new Sample2D_Markers(10+10,5*i,Aspect_TOM_O,(Quantity_NameOfColor)(aColor++));
-    myAISContext->Display(aMarker, Standard_False);
-  }
-  for (int i=1;i<=2;i++)
-  {
-    Handle (Sample2D_Markers) aMarker  = 
-      new Sample2D_Markers(10+15,5*i,Aspect_TOM_O_PLUS,(Quantity_NameOfColor)(aColor++));
-    myAISContext->Display(aMarker, Standard_False);
-  }
-  for (int i=1;i<=2;i++)
-  {
-    Handle (Sample2D_Markers) aMarker  = 
-      new Sample2D_Markers(10+20,5*i,Aspect_TOM_RING1,(Quantity_NameOfColor)(aColor++));
-    myAISContext->Display(aMarker, Standard_False);
-  }
-  for (int i=1;i<=2;i++)
-  {
-
-    Handle (Sample2D_Markers) aMarker  = 
-      new Sample2D_Markers(10+25,5*i,Aspect_TOM_STAR,(Quantity_NameOfColor)(aColor++));
-    myAISContext->Display(aMarker, Standard_False);
-  }
-  for (int i=1;i<=2;i++)
-  {
-    Handle (Sample2D_Markers) aMarker  = 
-      new Sample2D_Markers(10+30,5*i,Aspect_TOM_O_X,(Quantity_NameOfColor)(aColor++));
-    myAISContext->Display(aMarker, Standard_False);
-  }
-
-  FitAll2DViews(Standard_False); // Update Viewer
-}
-void CViewer2dDoc::OnBUTTONTestLine() 
-{
-  for (int i=0;i<=13;++i)
-   for (int j=0;j<=5;++j)
-   {
-      //set of rectangles here
-      TopoDS_Edge E1 = BRepBuilderAPI_MakeEdge(gp_Pnt(10*i,10*j,0.), gp_Pnt(10*i+7,10*j,0.));
-      TopoDS_Edge E2 = BRepBuilderAPI_MakeEdge(gp_Pnt(10*i+7,10*j,0.), gp_Pnt(10*i+7,10*j+5,0.));
-      TopoDS_Edge E3 = BRepBuilderAPI_MakeEdge(gp_Pnt(10*i+7,10*j+5,0.), gp_Pnt(10*i,10*j+5,0.));
-      TopoDS_Edge E4 = BRepBuilderAPI_MakeEdge(gp_Pnt(10*i,10*j+5,0.), gp_Pnt(10*i,10*j,0.));
-      TopoDS_Wire W = BRepBuilderAPI_MakeWire(E1,E2,E3,E4);
-      TopoDS_Face F = BRepBuilderAPI_MakeFace(W);
-      Handle(AIS_Shape) aRect = new AIS_Shape(F);
-      //set attributes of boundaries
-      Handle(Prs3d_Drawer) aDrawer = new Prs3d_Drawer();
-      Handle(Prs3d_LineAspect) aLineAttrib = 
-        new Prs3d_LineAspect(Quantity_NOC_YELLOW,
-        (Aspect_TypeOfLine)(Aspect_TOL_SOLID+j),1);
-      aDrawer->SetFaceBoundaryAspect(aLineAttrib);
-      aDrawer->SetFaceBoundaryDraw(Standard_True);
-      aRect->SetAttributes(aDrawer);
-      
-      myAISContext->SetDisplayMode (aRect, 1, Standard_False);
-      myAISContext->SetColor(aRect,(Quantity_NameOfColor)(Quantity_NOC_CADETBLUE+2*i),Standard_False);
-           myAISContext->SetMaterial(aRect,Graphic3d_NOM_PLASTIC,Standard_False);
-      myAISContext->Display(aRect, Standard_False);
-
-   }
-   this->FitAll2DViews(Standard_True);
-}
-
-
-#include <AIS_Trihedron.hxx>
-#include <Geom_Axis2Placement.hxx>
-
-void CViewer2dDoc::OnBUTTONTestFace()
-{
-  //erase all
-  myAISContext->EraseAll (Standard_True);
-
-  CFileDialog dlg(TRUE,
-    NULL,
-    NULL,
-    OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
-    L"BRep Files (*.brep)|*.brep; ||",
-    NULL );
-
-  CString initdir;
-  initdir.GetEnvironmentVariable (L"CSF_OCCTDataPath");
-  initdir += L"\\occ";
-
-  dlg.m_ofn.lpstrInitialDir = initdir;
-
-  if (dlg.DoModal() == IDOK) 
-  {
-    SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
-
-    std::filebuf aFileBuf;
-    std::istream aStream (&aFileBuf);
-    if (!aFileBuf.open (dlg.GetPathName(), std::ios::in))
-    {
-      AfxMessageBox (L"The shape must be not a null Face");
-      return;
-    }
-
-    TopoDS_Shape aFaceShape;
-    BRep_Builder aBuilder;
-    BRepTools::Read (aFaceShape, aStream, aBuilder);
-    if(aFaceShape.IsNull() || aFaceShape.ShapeType() != TopAbs_FACE) 
-    {
-      AfxMessageBox (L"The shape must be not a null Face");
-      return;
-    }
-
-    TopoDS_Face aFace = TopoDS::Face(aFaceShape);
-    Handle(Sample2D_Face) anAISFace = new Sample2D_Face(aFaceShape);
-    myAISContext->Display(anAISFace,Standard_True);
-    //activate selection mode for edges selection
-    myAISContext->Activate(anAISFace,2);
-
-    FitAll2DViews(Standard_False);
-
-  }
-}
-
-
-
-void CViewer2dDoc::OnBUTTONTestRect()
-{
-  //First rectangle
-  TopoDS_Edge E11 = BRepBuilderAPI_MakeEdge(gp_Pnt(40.,0.,0.), gp_Pnt(82.5,25.,0.));
-       TopoDS_Edge E12 = BRepBuilderAPI_MakeEdge(gp_Pnt(82.5,25.,0.), gp_Pnt(42.5,93.,0.));
-       TopoDS_Edge E13 = BRepBuilderAPI_MakeEdge(gp_Pnt(42.5,93.,0.), gp_Pnt(0.,68.,0.));
-  TopoDS_Edge E14 = BRepBuilderAPI_MakeEdge(gp_Pnt(0.,68.,0.), gp_Pnt(40.,0.,0.));
-       TopoDS_Wire W1 = BRepBuilderAPI_MakeWire(E11,E12,E13,E14);
-  Handle(AIS_Shape) aRect1 = new AIS_Shape(W1); 
-  myAISContext->Display (aRect1, Standard_False);
-  myAISContext->SetColor (aRect1, Quantity_NOC_YELLOW, Standard_False);
-  
-  //Second rectangle
-  TopoDS_Edge E21 = BRepBuilderAPI_MakeEdge(gp_Pnt(110.,0.,0.), gp_Pnt(152.5,25.,0.));
-       TopoDS_Edge E22 = BRepBuilderAPI_MakeEdge(gp_Pnt(152.5,25.,0.), gp_Pnt(112.5,93.,0.));
-       TopoDS_Edge E23 = BRepBuilderAPI_MakeEdge(gp_Pnt(112.5,93.,0.), gp_Pnt(70.,68.,0.));
-  TopoDS_Edge E24 = BRepBuilderAPI_MakeEdge(gp_Pnt(70.,68.,0.), gp_Pnt(110.,0.,0.));
-       TopoDS_Wire W2 = BRepBuilderAPI_MakeWire(E21,E22,E23,E24);
-  Handle(AIS_Shape) aRect2 = new AIS_Shape(W2); 
-  myAISContext->Display (aRect2, Standard_False);
-  myAISContext->SetColor (aRect2, Quantity_NOC_YELLOW, Standard_False);
-  myAISContext->Activate(aRect2,2);
-
-  FitAll2DViews(Standard_True); // Update Viewer
-}
-
-void CViewer2dDoc::OnBUTTONTestCurve()
-{
-  for(int i=0;i<=5;++i)
-    for(int j=0;j<=5;++j)
-    {
-      Handle(Geom_Point) aStart = new Geom_CartesianPoint(gp_Pnt(10*i,10*j,0.));
-      Handle(Geom_Point) anEnd = new Geom_CartesianPoint(gp_Pnt(10*i+5,10*j+10,0.));
-      Handle(AIS_Line) aLine = new AIS_Line(aStart,anEnd);
-      Handle(Prs3d_LineAspect) aLineAttrib = 
-        new Prs3d_LineAspect((Quantity_NameOfColor)(Quantity_NOC_CADETBLUE+2*i+2*j),
-        (Aspect_TypeOfLine)((Aspect_TOL_DASH+i+j)%5),2+i+j);
-      aLine->Attributes()->SetLineAspect(aLineAttrib);
-      myAISContext->Display(aLine,Standard_False);   
-    }
-   FitAll2DViews(Standard_True);
-}
-
-void CViewer2dDoc::OnBUTTONTestImage()
-{
-  CFileDialog anOpenImageDlg (TRUE,
-                              NULL,
-                              NULL,
-                              OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
-                              SupportedImageFormats() + L"| all files (*.*)|*.*;||",
-                              NULL);
-
-  CString anInitDir;
-  anInitDir.GetEnvironmentVariable (L"CASROOT");
-  anInitDir += L"\\data\\images";
-
-  anOpenImageDlg.m_ofn.lpstrInitialDir = anInitDir;
-  if(anOpenImageDlg.DoModal() == IDOK)
-  {
-    SetCursor(AfxGetApp()->LoadStandardCursor (IDC_WAIT));
-    CString aFilePath = anOpenImageDlg.GetPathName();
-    TCollection_AsciiString aFileName ((const wchar_t* )aFilePath);
-
-    //erase viewer
-    myAISContext->EraseAll (Standard_False);
-
-    Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
-    anImage->SetCoord (40,50) ;
-    anImage->SetScale (1.0);
-    myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
-    FitAll2DViews (Standard_True);
-  }
-}
-
-void CViewer2dDoc::OnBUTTONMultipleImage()
-{
-  CFileDialog anOpenImageDlg (TRUE,
-                              NULL,
-                              NULL,
-                              OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
-                              SupportedImageFormats() + L"| all files (*.*)|*.*;||",
-                              NULL);
-
-  CString anInitDir;
-  anInitDir.GetEnvironmentVariable (L"CASROOT");
-  anInitDir += L"\\data\\images";
-
-  anOpenImageDlg.m_ofn.lpstrInitialDir = anInitDir;
-
-  if (anOpenImageDlg.DoModal() == IDOK) 
-  {
-    SetCursor(AfxGetApp()->LoadStandardCursor (IDC_WAIT));
-    CString aFilePath = anOpenImageDlg.GetPathName();
-    TCollection_AsciiString aFileName ((const wchar_t* )aFilePath);
-
-    //erase viewer
-    myAISContext->EraseAll (Standard_False);
-
-    //create images
-    {  // 1
-    Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
-    anImage->SetCoord (40, 50);
-    anImage->SetScale (0.5);
-    myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
-    }
-    {  // 2
-    Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
-    anImage->SetCoord (100, 50);
-    anImage->SetScale (0.9);
-    myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
-    }
-    {  // 3
-    Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
-    anImage->SetCoord (40, 40);
-    anImage->SetScale (0.3);
-    myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
-    }
-    {  // 4
-    Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
-    anImage->SetCoord (50, 40);
-    myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
-    }
-    {  // 5
-    Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
-    anImage->SetCoord (80, 45);
-    anImage->SetScale (2);
-    myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
-    }
-    {  // 6
-    Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
-    anImage->SetCoord (20, -20);
-    myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
-    }
-    {  // 7
-    Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
-    anImage->SetCoord (0, 0);
-    anImage->SetScale (0.5);
-    myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
-    }
-    FitAll2DViews (Standard_True); // Update Viewer
-  }
-}
diff --git a/samples/mfc/standard/03_Viewer2d/src/Viewer2dDoc.h b/samples/mfc/standard/03_Viewer2d/src/Viewer2dDoc.h
deleted file mode 100755 (executable)
index dc586c5..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-// Viewer2dDoc.h : interface of the CViewer2dDoc class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#include <AIS_Shape.hxx>
-#include <TopoDS_Face.hxx>
-#include "OCC_2dDoc.h"
-
-
-class CViewer2dDoc : public OCC_2dDoc
-{
-protected: // create from serialization only
-       CViewer2dDoc();
-       DECLARE_DYNCREATE(CViewer2dDoc)
-
-// Implementation
-public:
-       virtual ~CViewer2dDoc();
-#ifdef _DEBUG
-       virtual void AssertValid() const;
-       virtual void Dump(CDumpContext& dc) const;
-#endif
-
-protected:
-
-// Generated message map functions
-protected:
-       //{{AFX_MSG(CViewer2dDoc)
-       afx_msg void OnBUTTONTestText();
-       afx_msg void OnBUTTONTestMarkers();
-       afx_msg void OnBUTTONTestLine();
-       afx_msg void OnBUTTONErase();
-       afx_msg void OnBUTTONTestFace();
-       afx_msg void OnBUTTONTestRect();
-       afx_msg void OnBUTTONTestCurve();
-       afx_msg void OnBUTTONTestImage();
-       afx_msg void OnBUTTONMultipleImage();
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-
-};
-
diff --git a/samples/mfc/standard/04_HLR/CMakeLists.txt b/samples/mfc/standard/04_HLR/CMakeLists.txt
new file mode 100644 (file)
index 0000000..68785a2
--- /dev/null
@@ -0,0 +1,82 @@
+cmake_minimum_required (VERSION 2.6)
+
+project (HLR)
+
+add_definitions(-DWINVER=0x0501 -DUNICODE -D_UNICODE)
+set (CMAKE_MFC_FLAG 2)
+
+set (HLR_SRC_DIR      ${MFC_STANDARD_SAMPLES_DIR}/08_HLR/src)
+set (HLR_HEADER_FILES ${HLR_SRC_DIR}/HLRApp.h
+                      ${HLR_SRC_DIR}/HLRDoc.h
+                      ${HLR_SRC_DIR}/HLRView2D.h
+                      ${HLR_SRC_DIR}/SelectionDialog.h
+                      ${HLR_SRC_DIR}/StdAfx.h )
+set (HLR_SOURCE_FILES ${HLR_SRC_DIR}/HLRApp.cpp
+                      ${HLR_SRC_DIR}/HLRDoc.cpp
+                      ${HLR_SRC_DIR}/HLRView2D.cpp
+                      ${HLR_SRC_DIR}/SelectionDialog.cpp
+                      ${HLR_SRC_DIR}/StdAfx.cpp )
+
+set (HLR_RESOURCE_DIR    ${MFC_STANDARD_SAMPLES_DIR}/08_HLR/res)
+set (HLR_RESOURCE_HEADER ${HLR_RESOURCE_DIR}/resource.h)
+set (HLR_RESOURCE_FILES  ${HLR_RESOURCE_DIR}/axoviewd.bmp
+                         ${HLR_RESOURCE_DIR}/axoviewf.bmp
+                         ${HLR_RESOURCE_DIR}/AXOVIEWU.bmp
+                         ${HLR_RESOURCE_DIR}/BACKVIEWD.bmp
+                         ${HLR_RESOURCE_DIR}/BACKVIEWF.bmp
+                         ${HLR_RESOURCE_DIR}/BACKVIEWU.bmp
+                         ${HLR_RESOURCE_DIR}/BOTTOMVIEWD.bmp
+                         ${HLR_RESOURCE_DIR}/BOTTOMVIEWF.bmp
+                         ${HLR_RESOURCE_DIR}/BOTTOMVIEWU.bmp
+                         ${HLR_RESOURCE_DIR}/ChildFrame2D.bmp
+                         ${HLR_RESOURCE_DIR}/ChildFrame3D.bmp
+                         ${HLR_RESOURCE_DIR}/FRONTVIEWD.bmp
+                         ${HLR_RESOURCE_DIR}/FRONTVIEWF.bmp
+                         ${HLR_RESOURCE_DIR}/FRONTVIEWU.bmp
+                         ${HLR_RESOURCE_DIR}/LEFTVIEWD.bmp
+                         ${HLR_RESOURCE_DIR}/LEFTVIEWF.bmp
+                         ${HLR_RESOURCE_DIR}/LEFTVIEWU.bmp
+                         ${HLR_RESOURCE_DIR}/RIGHTVIEWD.bmp
+                         ${HLR_RESOURCE_DIR}/RIGHTVIEWF.bmp
+                         ${HLR_RESOURCE_DIR}/RIGHTVIEWU.bmp
+                         ${HLR_RESOURCE_DIR}/Toolbar.bmp
+                         ${HLR_RESOURCE_DIR}/ToolBarObjects.bmp
+                         ${HLR_RESOURCE_DIR}/topviewd.bmp
+                         ${HLR_RESOURCE_DIR}/topviewf.bmp
+                         ${HLR_RESOURCE_DIR}/topviewu.bmp
+                         ${HLR_RESOURCE_DIR}/HLR.rc)
+
+# groups in the VS solution
+source_group ("Source Files" FILES ${HLR_SOURCE_FILES}
+                                   ${COMMON_WINMAIN_FILE})
+
+source_group ("Header Files" FILES ${HLR_HEADER_FILES}
+                                   ${HLR_RESOURCE_HEADER})
+
+source_group ("Resource Files" FILES ${HLR_RESOURCE_FILES})
+
+add_executable (HLR WIN32 ${HLR_SOURCE_FILES}
+                          ${HLR_HEADER_FILES}
+                          ${COMMON_WINMAIN_FILE}
+                          ${HLR_RESOURCE_HEADER}
+                          ${HLR_RESOURCE_FILES} )
+
+set_property (TARGET HLR PROPERTY FOLDER "Samples/mfc")
+
+if (SINGLE_GENERATOR)
+  install (TARGETS HLR DESTINATION "${INSTALL_DIR_BIN}")
+else()
+  install (TARGETS HLR
+           CONFIGURATIONS Release RelWithDebInfo
+           DESTINATION "${INSTALL_DIR_BIN}")
+  install (TARGETS HLR
+           CONFIGURATIONS Debug
+           DESTINATION "${INSTALL_DIR_BIN}d")
+endif()
+
+include_directories (${CMAKE_BINARY_DIR}/inc
+                     ${HLR_RESOURCE_DIR}
+                     ${HLR_SRC_DIR}
+                     ${MFC_STANDARD_SAMPLES_DIR}/Common)
+
+target_link_libraries (HLR mfcsample)
\ No newline at end of file
diff --git a/samples/mfc/standard/04_HLR/README.txt b/samples/mfc/standard/04_HLR/README.txt
new file mode 100644 (file)
index 0000000..75e9190
--- /dev/null
@@ -0,0 +1,12 @@
+HLR sample demonstrates hidden line removal algorithm.
+It supports exact and polygonal HLR algorithms.
+
+To try HLR you need to follow some steps:
+1) to import model, which will displayed in 3d view.
+2) to choose "File->Process HLR" or press "HLR' button in the toolbar.
+   Dialog with options of HLR will be opened.
+3) to press "Get shapes" button of the HLR dialog to
+   display results in the 2d view.
+   Optionally, this dialog allow to view chosen shapes 
+   in his own view. Here you can choose needed direction
+   of view and press "Update 2d" button to update shapes HLR 2d view.
diff --git a/samples/mfc/standard/04_HLR/adm/win/vc10/HLR.vcxproj b/samples/mfc/standard/04_HLR/adm/win/vc10/HLR.vcxproj
new file mode 100644 (file)
index 0000000..8bac137
--- /dev/null
@@ -0,0 +1,413 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ItemGroup Label="ProjectConfigurations">
+    <ProjectConfiguration Include="Debug|Win32">
+      <Configuration>Debug</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Debug|x64">
+      <Configuration>Debug</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|Win32">
+      <Configuration>Release</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|x64">
+      <Configuration>Release</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+  </ItemGroup>
+  <PropertyGroup Label="Globals">
+    <ProjectGuid>{76045260-8DA6-4A3E-B220-F5B1B4ADE192}</ProjectGuid>
+    <RootNamespace>HLR</RootNamespace>
+    <Keyword>MFCProj</Keyword>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseOfMfc>Dynamic</UseOfMfc>
+    <CharacterSet>Unicode</CharacterSet>
+    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseOfMfc>Dynamic</UseOfMfc>
+    <CharacterSet>Unicode</CharacterSet>
+    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseOfMfc>Dynamic</UseOfMfc>
+    <CharacterSet>Unicode</CharacterSet>
+    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseOfMfc>Dynamic</UseOfMfc>
+    <CharacterSet>Unicode</CharacterSet>
+    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <ImportGroup Label="ExtensionSettings">
+  </ImportGroup>
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
+  </ImportGroup>
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
+  </ImportGroup>
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
+  </ImportGroup>
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
+  </ImportGroup>
+  <PropertyGroup Label="UserMacros" />
+  <PropertyGroup>
+    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
+    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../../../win32\$(VCFMT)\bin\</OutDir>
+    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\win32\obj\</IntDir>
+    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
+    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">../../../../win64\$(VCFMT)\bin\</OutDir>
+    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\win64\obj\</IntDir>
+    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
+    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../../../../win32\$(VCFMT)\bind\</OutDir>
+    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\win32\objd\</IntDir>
+    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
+    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">../../../../win64\$(VCFMT)\bind\</OutDir>
+    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\win64\objd\</IntDir>
+    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
+  </PropertyGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <Midl>
+      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <MkTypLibCompatible>true</MkTypLibCompatible>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <TargetEnvironment>Win32</TargetEnvironment>
+      <TypeLibraryName>.\win32\obj/HLR.tlb</TypeLibraryName>
+      <HeaderFileName>
+      </HeaderFileName>
+    </Midl>
+    <ClCompile>
+      <Optimization>MaxSpeed</Optimization>
+      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
+      <AdditionalIncludeDirectories>..\..\..\;..\..\..\..\Common;$(CSF_OCCTIncludePath);..\..\..\src\ISession2D;..\..\..\res;.\src\Properties;..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <StringPooling>true</StringPooling>
+      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
+      <FunctionLevelLinking>true</FunctionLevelLinking>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
+      <PrecompiledHeaderOutputFile>.\win32\obj/HLR.pch</PrecompiledHeaderOutputFile>
+      <AssemblerListingLocation>.\win32\obj/</AssemblerListingLocation>
+      <ObjectFileName>.\win32\obj/</ObjectFileName>
+      <ProgramDataBaseFileName>.\win32\obj/</ProgramDataBaseFileName>
+      <WarningLevel>Level4</WarningLevel>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <CompileAs>Default</CompileAs>
+    </ClCompile>
+    <ResourceCompile>
+      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Culture>0x0409</Culture>
+    </ResourceCompile>
+    <Link>
+      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <OutputFile>../../../../win32\$(VCFMT)\bin/HLR.exe</OutputFile>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bin/HLR.pdb</ProgramDatabaseFile>
+      <SubSystem>Windows</SubSystem>
+      <TargetMachine>MachineX86</TargetMachine>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+    <Midl>
+      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <MkTypLibCompatible>true</MkTypLibCompatible>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <TargetEnvironment>X64</TargetEnvironment>
+      <TypeLibraryName>.\win64\obj/HLR.tlb</TypeLibraryName>
+      <HeaderFileName>
+      </HeaderFileName>
+    </Midl>
+    <ClCompile>
+      <Optimization>MaxSpeed</Optimization>
+      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
+      <AdditionalIncludeDirectories>..\..\..\;..\..\..\..\Common;$(CSF_OCCTIncludePath);..\..\..\src\ISession2D;..\..\..\res;.\src\Properties;..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <StringPooling>true</StringPooling>
+      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
+      <FunctionLevelLinking>true</FunctionLevelLinking>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
+      <PrecompiledHeaderOutputFile>.\win64\obj/HLR.pch</PrecompiledHeaderOutputFile>
+      <AssemblerListingLocation>.\win64\obj/</AssemblerListingLocation>
+      <ObjectFileName>.\win64\obj/</ObjectFileName>
+      <ProgramDataBaseFileName>.\win64\obj/</ProgramDataBaseFileName>
+      <WarningLevel>Level4</WarningLevel>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <CompileAs>Default</CompileAs>
+    </ClCompile>
+    <ResourceCompile>
+      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Culture>0x0409</Culture>
+    </ResourceCompile>
+    <Link>
+      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <OutputFile>../../../../win64\$(VCFMT)\bin/HLR.exe</OutputFile>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bin/HLR.pdb</ProgramDatabaseFile>
+      <SubSystem>Windows</SubSystem>
+      <TargetMachine>MachineX64</TargetMachine>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <Midl>
+      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <MkTypLibCompatible>true</MkTypLibCompatible>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <TargetEnvironment>Win32</TargetEnvironment>
+      <TypeLibraryName>.\win32\objd/HLR.tlb</TypeLibraryName>
+      <HeaderFileName>
+      </HeaderFileName>
+    </Midl>
+    <ClCompile>
+      <Optimization>Disabled</Optimization>
+      <AdditionalIncludeDirectories>..\..\..\;..\..\..\..\Common;$(CSF_OCCTIncludePath);..\..\..\src\ISession2D;..\..\..\res;.\src\Properties;..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
+      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
+      <PrecompiledHeaderOutputFile>.\win32\objd/HLR.pch</PrecompiledHeaderOutputFile>
+      <AssemblerListingLocation>.\win32\objd/</AssemblerListingLocation>
+      <ObjectFileName>.\win32\objd/</ObjectFileName>
+      <ProgramDataBaseFileName>.\win32\objd/</ProgramDataBaseFileName>
+      <WarningLevel>Level4</WarningLevel>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
+      <CompileAs>Default</CompileAs>
+    </ClCompile>
+    <ResourceCompile>
+      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Culture>0x0409</Culture>
+    </ResourceCompile>
+    <Link>
+      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <OutputFile>../../../../win32\$(VCFMT)\bind/HLR.exe</OutputFile>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bind/HLR.pdb</ProgramDatabaseFile>
+      <SubSystem>Windows</SubSystem>
+      <TargetMachine>MachineX86</TargetMachine>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+    <Midl>
+      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <MkTypLibCompatible>true</MkTypLibCompatible>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <TargetEnvironment>X64</TargetEnvironment>
+      <TypeLibraryName>.\win64\objd/HLR.tlb</TypeLibraryName>
+      <HeaderFileName>
+      </HeaderFileName>
+    </Midl>
+    <ClCompile>
+      <Optimization>Disabled</Optimization>
+      <AdditionalIncludeDirectories>..\..\..\;..\..\..\..\Common;$(CSF_OCCTIncludePath);..\..\..\src\ISession2D;..\..\..\res;.\src\Properties;..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
+      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
+      <PrecompiledHeader>Use</PrecompiledHeader>
+      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
+      <PrecompiledHeaderOutputFile>.\win64\objd/HLR.pch</PrecompiledHeaderOutputFile>
+      <AssemblerListingLocation>.\win64\objd/</AssemblerListingLocation>
+      <ObjectFileName>.\win64\objd/</ObjectFileName>
+      <ProgramDataBaseFileName>.\win64\objd/</ProgramDataBaseFileName>
+      <WarningLevel>Level4</WarningLevel>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
+      <CompileAs>Default</CompileAs>
+    </ClCompile>
+    <ResourceCompile>
+      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Culture>0x0409</Culture>
+    </ResourceCompile>
+    <Link>
+      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <OutputFile>../../../../win64\$(VCFMT)\bind/HLR.exe</OutputFile>
+      <SuppressStartupBanner>true</SuppressStartupBanner>
+      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bind/HLR.pdb</ProgramDatabaseFile>
+      <SubSystem>Windows</SubSystem>
+      <TargetMachine>MachineX64</TargetMachine>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemGroup>
+    <ResourceCompile Include="..\..\..\res\HLR.rc">
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+    </ResourceCompile>
+  </ItemGroup>
+  <ItemGroup>
+    <ClCompile Include="..\..\..\src\HLRApp.cpp">
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+    </ClCompile>
+    <ClCompile Include="..\..\..\src\HLRDoc.cpp">
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+    </ClCompile>
+    <ClCompile Include="..\..\..\src\HLRView2D.cpp">
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+    </ClCompile>
+    <ClCompile Include="..\..\..\src\SelectionDialog.cpp">
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+    </ClCompile>
+    <ClCompile Include="..\..\..\src\StdAfx.cpp">
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
+      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
+      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
+    </ClCompile>
+    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
+      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
+    </ClCompile>
+  </ItemGroup>
+  <ItemGroup>
+    <ClInclude Include="..\..\..\src\BaseConstantes.h" />
+    <ClInclude Include="..\..\..\src\HLRApp.h" />
+    <ClInclude Include="..\..\..\src\HLRDoc.h" />
+    <ClInclude Include="..\..\..\src\HLRView2D.h" />
+    <ClInclude Include="..\..\..\res\resource.h" />
+    <ClInclude Include="..\..\..\src\SelectionDialog.h" />
+    <ClInclude Include="..\..\..\src\StdAfx.h" />
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="..\..\..\res\axoviewd.bmp" />
+    <None Include="..\..\..\res\axoviewf.bmp" />
+    <None Include="..\..\..\res\AXOVIEWU.bmp" />
+    <None Include="..\..\..\res\BACKVIEWD.bmp" />
+    <None Include="..\..\..\res\BACKVIEWF.bmp" />
+    <None Include="..\..\..\res\BACKVIEWU.bmp" />
+    <None Include="..\..\..\res\BOTTOMVIEWD.bmp" />
+    <None Include="..\..\..\res\BOTTOMVIEWF.bmp" />
+    <None Include="..\..\..\res\BOTTOMVIEWU.bmp" />
+    <None Include="..\..\..\res\ChildFrame2D.bmp" />
+    <None Include="..\..\..\res\ChildFrame3D.bmp" />
+    <None Include="..\..\..\res\FRONTVIEWD.bmp" />
+    <None Include="..\..\..\res\FRONTVIEWF.bmp" />
+    <None Include="..\..\..\res\FRONTVIEWU.bmp" />
+    <None Include="..\..\..\res\LEFTVIEWD.bmp" />
+    <None Include="..\..\..\res\LEFTVIEWF.bmp" />
+    <None Include="..\..\..\res\LEFTVIEWU.bmp" />
+    <None Include="..\..\..\res\RIGHTVIEWD.bmp" />
+    <None Include="..\..\..\res\RIGHTVIEWF.bmp" />
+    <None Include="..\..\..\res\RIGHTVIEWU.bmp" />
+    <None Include="..\..\..\res\Toolbar.bmp" />
+    <None Include="..\..\..\res\ToolBarObjects.bmp" />
+    <None Include="..\..\..\res\topviewd.bmp" />
+    <None Include="..\..\..\res\topviewf.bmp" />
+    <None Include="..\..\..\res\topviewu.bmp" />
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\..\..\..\mfcsample\adm\win\vc10\mfcsample.vcxproj">
+      <Project>{2d6cbbe8-6965-4016-b503-0d715ae26691}</Project>
+      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
+    </ProjectReference>
+  </ItemGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+  <ImportGroup Label="ExtensionTargets">
+  </ImportGroup>
+</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/04_HLR/adm/win/vc10/HLR.vcxproj.filters b/samples/mfc/standard/04_HLR/adm/win/vc10/HLR.vcxproj.filters
new file mode 100644 (file)
index 0000000..d8f08c9
--- /dev/null
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ItemGroup>
+    <Filter Include="Source Files">
+      <UniqueIdentifier>{71b03503-46e1-4a70-bf46-9d403d37b35a}</UniqueIdentifier>
+      <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
+    </Filter>
+    <Filter Include="Header Files">
+      <UniqueIdentifier>{22270cbf-7f10-4c26-8fc6-7f68842b776d}</UniqueIdentifier>
+      <Extensions>h;hpp;hxx;hm;inl</Extensions>
+    </Filter>
+    <Filter Include="Resource Files">
+      <UniqueIdentifier>{f220deda-1476-43c2-af8d-81ff1947d33d}</UniqueIdentifier>
+      <Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
+    </Filter>
+  </ItemGroup>
+  <ItemGroup>
+    <ResourceCompile Include="..\..\..\res\HLR.rc">
+      <Filter>Source Files</Filter>
+    </ResourceCompile>
+  </ItemGroup>
+  <ItemGroup>
+    <ClCompile Include="..\..\..\src\HLRApp.cpp">
+      <Filter>Source Files</Filter>
+    </ClCompile>
+    <ClCompile Include="..\..\..\src\HLRDoc.cpp">
+      <Filter>Source Files</Filter>
+    </ClCompile>
+    <ClCompile Include="..\..\..\src\HLRView2D.cpp">
+      <Filter>Source Files</Filter>
+    </ClCompile>
+    <ClCompile Include="..\..\..\src\SelectionDialog.cpp">
+      <Filter>Source Files</Filter>
+    </ClCompile>
+    <ClCompile Include="..\..\..\src\StdAfx.cpp">
+      <Filter>Source Files</Filter>
+    </ClCompile>
+    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
+      <Filter>Source Files</Filter>
+    </ClCompile>
+  </ItemGroup>
+  <ItemGroup>
+    <ClInclude Include="..\..\..\src\BaseConstantes.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
+    <ClInclude Include="..\..\..\src\HLRApp.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
+    <ClInclude Include="..\..\..\src\HLRDoc.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
+    <ClInclude Include="..\..\..\src\HLRView2D.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
+    <ClInclude Include="..\..\..\res\resource.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
+    <ClInclude Include="..\..\..\src\SelectionDialog.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
+    <ClInclude Include="..\..\..\src\StdAfx.h">
+      <Filter>Header Files</Filter>
+    </ClInclude>
+  </ItemGroup>
+  <ItemGroup>
+    <None Include="..\..\..\res\axoviewd.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\axoviewf.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\AXOVIEWU.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\BACKVIEWD.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\BACKVIEWF.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\BACKVIEWU.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\BOTTOMVIEWD.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\BOTTOMVIEWF.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\BOTTOMVIEWU.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\ChildFrame2D.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\ChildFrame3D.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\FRONTVIEWD.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\FRONTVIEWF.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\FRONTVIEWU.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\LEFTVIEWD.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\LEFTVIEWF.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\LEFTVIEWU.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\RIGHTVIEWD.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\RIGHTVIEWF.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\RIGHTVIEWU.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\Toolbar.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\ToolBarObjects.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\topviewd.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\topviewf.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+    <None Include="..\..\..\res\topviewu.bmp">
+      <Filter>Resource Files</Filter>
+    </None>
+  </ItemGroup>
+</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/04_HLR/res/AXOVIEWU.bmp b/samples/mfc/standard/04_HLR/res/AXOVIEWU.bmp
new file mode 100644 (file)
index 0000000..8e9ec56
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/AXOVIEWU.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/BACKVIEWD.bmp b/samples/mfc/standard/04_HLR/res/BACKVIEWD.bmp
new file mode 100644 (file)
index 0000000..16994f9
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/BACKVIEWD.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/BACKVIEWF.bmp b/samples/mfc/standard/04_HLR/res/BACKVIEWF.bmp
new file mode 100644 (file)
index 0000000..6ee8aa7
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/BACKVIEWF.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/BACKVIEWU.bmp b/samples/mfc/standard/04_HLR/res/BACKVIEWU.bmp
new file mode 100644 (file)
index 0000000..bee7ef9
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/BACKVIEWU.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/BOTTOMVIEWD.bmp b/samples/mfc/standard/04_HLR/res/BOTTOMVIEWD.bmp
new file mode 100644 (file)
index 0000000..eaee70e
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/BOTTOMVIEWD.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/BOTTOMVIEWF.bmp b/samples/mfc/standard/04_HLR/res/BOTTOMVIEWF.bmp
new file mode 100644 (file)
index 0000000..4ae4f43
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/BOTTOMVIEWF.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/BOTTOMVIEWU.bmp b/samples/mfc/standard/04_HLR/res/BOTTOMVIEWU.bmp
new file mode 100644 (file)
index 0000000..f26d1e4
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/BOTTOMVIEWU.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/ChildFrame2D.bmp b/samples/mfc/standard/04_HLR/res/ChildFrame2D.bmp
new file mode 100644 (file)
index 0000000..f46b327
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/ChildFrame2D.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/ChildFrame3D.bmp b/samples/mfc/standard/04_HLR/res/ChildFrame3D.bmp
new file mode 100644 (file)
index 0000000..a987d78
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/ChildFrame3D.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/FRONTVIEWD.bmp b/samples/mfc/standard/04_HLR/res/FRONTVIEWD.bmp
new file mode 100644 (file)
index 0000000..f6250dd
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/FRONTVIEWD.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/FRONTVIEWF.bmp b/samples/mfc/standard/04_HLR/res/FRONTVIEWF.bmp
new file mode 100644 (file)
index 0000000..f3e7bb3
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/FRONTVIEWF.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/FRONTVIEWU.bmp b/samples/mfc/standard/04_HLR/res/FRONTVIEWU.bmp
new file mode 100644 (file)
index 0000000..fc573a3
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/FRONTVIEWU.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/HLR.rc b/samples/mfc/standard/04_HLR/res/HLR.rc
new file mode 100644 (file)
index 0000000..619fb55
--- /dev/null
@@ -0,0 +1,475 @@
+// Microsoft Visual C++ generated resource script.
+//
+#include "resource.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#include "afxres.h"
+#include "..\..\Common\res\OCC_Resource.h"
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// English (U.S.) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+#ifdef _WIN32
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+#pragma code_page(1252)
+#endif //_WIN32
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE 
+BEGIN
+    "resource.h\0"
+END
+
+2 TEXTINCLUDE 
+BEGIN
+    "#include ""afxres.h""\r\n"
+    "#include ""..\\..\\Common\\res\\OCC_Resource.h""\0"
+END
+
+3 TEXTINCLUDE 
+BEGIN
+    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
+    "#define _AFX_NO_OLE_RESOURCES\r\n"
+    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
+    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
+    "\r\n"
+    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
+    "#ifdef _WIN32\r\n"
+    "LANGUAGE 9, 1\r\n"
+    "#pragma code_page(1252)\r\n"
+    "#endif\r\n"
+    "#include ""afxres.rc""         // Standard components\r\n"
+    "#endif\0"
+END
+
+#endif    // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Toolbar
+//
+
+IDR_MAINFRAME TOOLBAR  16, 15
+BEGIN
+    BUTTON      ID_FILE_NEW
+    SEPARATOR
+    BUTTON      ID_BUTTON_HLRDialog
+    SEPARATOR
+    BUTTON      ID_APP_ABOUT
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Dialog
+//
+
+IDD_DIALOG_Color DIALOG  0, 0, 281, 186
+STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "Color Map "
+FONT 8, "MS Sans Serif"
+BEGIN
+    LTEXT           "Type Of The Color Map :",IDC_STATIC,20,10,87,10
+    LTEXT           "To be updated ...",IDC_ColorMap_STATIC_Type,110,10,69,10
+    LTEXT           "Size Of The Color Map :",IDC_STATIC,20,20,79,10
+    CONTROL         "Tab1",IDC_ColorMap_TAB,"SysTabControl32",TCS_BUTTONS,19,53,242,15
+    LTEXT           "To be updated ...",IDC_ColorMap_STATIC_Size,110,20,69,10
+    GROUPBOX        "Entries :",IDC_STATIC,10,40,264,50
+    LTEXT           "Color Name :",IDC_STATIC,20,75,50,10
+    LTEXT           "To be updated ...",IDC_ColorMap_STATIC_EntryColorName,204,75,69,10
+    PUSHBUTTON      "Add",IDC_ColorMap_BUTTON_AddNewEntry,110,145,55,15
+    GROUPBOX        "New Entry",IDC_STATIC,10,100,267,79
+    PUSHBUTTON      "Update Current",IDC_ColorMap_BUTTON_UpdateCurrentEntry,20,145,55,15
+    LTEXT           "Color Name :",IDC_ColorMap_STATIC_NewEntryColorNameStatic,20,120,55,10
+    PUSHBUTTON      "Edit...",IDC_ColorMap_BUTTON_NewEntry_EditColor,204,145,55,15
+    LTEXT           "999",IDC_ColorMap_STATIC_EntryColorRed,75,75,35,10
+    LTEXT           "999",IDC_ColorMap_STATIC_EntryColorGreen,120,75,35,10
+    LTEXT           "999",IDC_ColorMap_STATIC_EntryColorBlue,165,75,35,10
+    EDITTEXT        IDC_ColorMap_EDIT_NewEntryColorRed,75,120,35,12,ES_AUTOHSCROLL
+    EDITTEXT        IDC_ColorMap_EDIT_NewEntryColorGreen,120,120,30,12,ES_AUTOHSCROLL
+    EDITTEXT        IDC_ColorMap_EDIT_NewEntryColorBlue,165,120,35,12,ES_AUTOHSCROLL
+    COMBOBOX        IDC_ColorMap_COMBO_NewEntryColorName,204,120,70,193,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
+    PUSHBUTTON      "New Generic Color Map",IDC_ColorMap_BUTTON_NewGenericColorMap,179,4,95,13
+    LTEXT           "Not available for this type of Color map",IDC_ColorMap_STATIC_NewEntryNotavailable,70,130,160,10
+    PUSHBUTTON      "New Color Cube Color Map ",IDC_ColorMap_BUTTON_NewColorCubeColorMap,179,18,95,13
+    PUSHBUTTON      "New Color Ramp Color Map",IDC_ColorMap_BUTTON_NewColorRampColorMap,179,31,95,13
+END
+
+IDD_DIALOG_Font DIALOGEX 0, 0, 287, 210
+STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "Font Map"
+FONT 8, "MS Sans Serif", 0, 0, 0x1
+BEGIN
+    LTEXT           "Size Of The Font Map :",IDC_STATIC,20,10,80,10
+    LTEXT           "To be updated ...",IDC_FontMap_STATIC_Size,110,10,80,10
+    GROUPBOX        "Entries :",IDC_STATIC,10,28,270,97,0,WS_EX_TRANSPARENT
+    CONTROL         "Tab1",IDC_FontMap_TAB,"SysTabControl32",TCS_BUTTONS,20,40,242,15
+    GROUPBOX        "New Entry",IDC_STATIC,10,130,270,73
+    PUSHBUTTON      "Update Current",IDC_FontMap_BUTTON_UpdateCurrent,158,181,55,15
+    PUSHBUTTON      "Add",IDC_FontMap_BUTTON_NewEntry,221,179,55,16
+    LTEXT           "To be updated...",IDC_FontMap_STATIC_CurrentEntryValue,63,75,217,10
+    LTEXT           "Type :",IDC_STATIC,21,155,23,10
+    LTEXT           "Type :",IDC_STATIC,21,60,40,10
+    LTEXT           "To be updated ...",IDC_FontMap_STATIC_CurrentEntryType,63,60,80,10
+    LTEXT           "Size :",IDC_STATIC,21,174,42,10
+    LTEXT           "Slant :",IDC_STATIC,21,189,28,10
+    EDITTEXT        IDC_FontMap_EDIT_NewEntrySize,63,172,62,12,ES_AUTOHSCROLL | ES_WANTRETURN
+    EDITTEXT        IDC_FontMap_EDIT_NewEntrySlant,63,187,62,12,ES_AUTOHSCROLL | ES_WANTRETURN
+    LTEXT           "Size :",IDC_STATIC,21,90,30,10
+    LTEXT           "Slant :",IDC_STATIC,21,106,36,10
+    LTEXT           "Value :",IDC_STATIC,21,75,40,10
+    LTEXT           "Type :",IDC_STATIC,21,140,42,10
+    COMBOBOX        IDC_FontMap_COMBO_NewEntryType,63,138,113,77,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
+    EDITTEXT        IDC_FontMap_EDIT_NewEntryValue,63,153,209,12,ES_AUTOHSCROLL | ES_READONLY
+    LTEXT           "To be updated...",IDC_FontMap_STATIC_CurrentEntrySize,63,90,70,10
+    LTEXT           "To be updated...",IDC_FontMap_STATIC_CurrentEntrySlant,63,106,80,10
+    PUSHBUTTON      "Edit...",IDC_FontMap_BUTTON_NewEntry_EditFont,191,138,55,12
+END
+
+IDD_DIALOG_Width DIALOG  0, 0, 281, 167
+STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "Width Map "
+FONT 8, "MS Sans Serif"
+BEGIN
+    LTEXT           "Size Of The Width Map :",IDC_STATIC,15,10,80,10
+    CONTROL         "Tab1",IDC_WidthMap_TAB,"SysTabControl32",TCS_BUTTONS,21,40,242,15
+    LTEXT           "To be updated ...",IDC_WidthMap_STATIC_Size,107,10,80,10
+    GROUPBOX        "Entries :",IDC_STATIC,10,30,264,57
+    LTEXT           "Type :",IDC_STATIC,15,60,80,10
+    LTEXT           "Width :",IDC_STATIC,15,75,80,10
+    LTEXT           "Type :",IDC_STATIC,15,115,49,10
+    LTEXT           "Width :",IDC_STATIC,15,130,49,10
+    COMBOBOX        IDC_WidthMap_COMBO_NewEntryType,70,113,113,77,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
+    EDITTEXT        IDC_WidthMap_EDIT_NewEntryWidth,70,128,62,12,ES_AUTOHSCROLL | ES_READONLY | ES_WANTRETURN
+    LTEXT           "To be updated ...",IDC_WidthMap_STATIC_EntryType,107,60,80,10
+    LTEXT           "To be updated ...",IDC_WidthMap_STATIC_EntryWidth,107,75,80,10
+    PUSHBUTTON      "Add",IDC_WidthMap_BUTTON_AddNewEntry,200,130,55,15
+    GROUPBOX        "New Entry",IDC_STATIC,7,101,267,51
+    PUSHBUTTON      "Update Current",IDC_WidthMap_BUTTON_UpdateCurrentEntry,200,110,55,15
+END
+
+IDD_DIALOG_NewColorCube DIALOG  0, 0, 207, 156
+STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "New Color Cube"
+FONT 8, "MS Sans Serif"
+BEGIN
+    DEFPUSHBUTTON   "OK",IDOK,150,10,50,13
+    PUSHBUTTON      "Cancel",IDCANCEL,150,30,50,14
+    LTEXT           "base_pixel",IDC_STATIC,20,10,50,10
+    LTEXT           "greenmax",IDC_STATIC,20,70,50,10
+    LTEXT           "greenmult",IDC_STATIC,20,90,50,10
+    LTEXT           "bluemax",IDC_STATIC,20,110,50,10
+    LTEXT           "bluemult",IDC_STATIC,20,130,50,10
+    EDITTEXT        IDC_NewColorCube_EDIT_bluemult,80,130,50,12,ES_AUTOHSCROLL | ES_NUMBER
+    EDITTEXT        IDC_NewColorCube_EDIT_bluemax,80,110,50,12,ES_AUTOHSCROLL | ES_NUMBER
+    EDITTEXT        IDC_NewColorCube_EDIT_grennmult,80,90,50,12,ES_AUTOHSCROLL | ES_NUMBER
+    EDITTEXT        IDC_NewColorCube_EDIT_greenmax,80,70,50,12,ES_AUTOHSCROLL | ES_NUMBER
+    EDITTEXT        IDC_NewColorCube_EDIT_base_pixel,80,10,50,12,ES_AUTOHSCROLL | ES_NUMBER
+    LTEXT           "redmax",IDC_STATIC,20,30,50,10
+    EDITTEXT        IDC_NewColorCube_EDIT_redmax,80,30,50,12,ES_AUTOHSCROLL | ES_NUMBER
+    LTEXT           "redmult",IDC_STATIC,20,50,50,10
+    EDITTEXT        IDC_NewColorCube_EDIT_redmult,80,50,50,12,ES_AUTOHSCROLL | ES_NUMBER
+END
+
+IDD_DIALOG_NewColorRamp DIALOG  0, 0, 252, 121
+STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "New Color ramp"
+FONT 8, "MS Sans Serif"
+BEGIN
+    DEFPUSHBUTTON   "OK",IDOK,150,10,50,13
+    PUSHBUTTON      "Cancel",IDCANCEL,150,30,50,14
+    LTEXT           "base_pixel",-1,20,10,49,10
+    EDITTEXT        IDC_NewColorRamp_EDIT_base_pixel,80,10,40,12,ES_AUTOHSCROLL | ES_NUMBER
+    LTEXT           "dimension",-1,20,30,49,10
+    EDITTEXT        IDC_NewColorramp_EDIT_dimension,80,30,40,12,ES_AUTOHSCROLL | ES_NUMBER
+    LTEXT           "Color Name :",IDC_ColorMap_STATIC_NewEntryColorNameStatic,20,50,49,10
+    PUSHBUTTON      "Edit...",IDC_NewColorMapRamp_BUTTON_EditColor,145,70,55,10
+    EDITTEXT        IDC_NewColorMapRamp_EDIT_ColorRed,28,70,35,12,ES_AUTOHSCROLL
+    EDITTEXT        IDC_NewColorMapRamp_EDIT_ColorGreen,65,70,35,12,ES_AUTOHSCROLL
+    EDITTEXT        IDC_NewColorMapRamp_EDIT_ColorBlue,103,70,35,12,ES_AUTOHSCROLL
+    COMBOBOX        IDC_NewColorMap_COMBO_NewEntryColorName,80,50,70,193,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
+END
+
+IDD_DIALOG_Type DIALOGEX 0, 0, 287, 170
+STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "Type Map"
+FONT 8, "MS Sans Serif", 0, 0, 0x1
+BEGIN
+    LTEXT           "Size Of The Type Map :",-1,20,10,80,10
+    LTEXT           "To be updated ...",IDC_TypeMap_STATIC_Size,110,10,80,10
+    GROUPBOX        "Entries :",-1,10,28,270,62,0,WS_EX_TRANSPARENT
+    CONTROL         "Tab1",IDC_TypeMap_TAB,"SysTabControl32",TCS_BUTTONS,20,40,242,15
+    GROUPBOX        "New Entry",-1,10,100,270,60
+    PUSHBUTTON      "Update Current",IDC_FontMap_BUTTON_UpdateCurrent,160,140,55,15
+    PUSHBUTTON      "Add",IDC_FontMap_BUTTON_NewEntry,220,140,55,15
+    LTEXT           "To be updated...",IDC_TypeMap_STATIC_CurrentEntryValue,63,75,217,10
+    LTEXT           "Value :",-1,21,126,42,10
+    LTEXT           "Style :",-1,21,60,40,10
+    LTEXT           "To be updated ...",IDC_TypeMap_STATIC_CurrentEntryStyle,63,60,80,10
+    LTEXT           "Value :",-1,21,75,40,10
+    LTEXT           "Style :",-1,21,111,42,10
+    COMBOBOX        IDC_TypeMap_COMBO_NewEntryStyle,63,108,113,77,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
+    EDITTEXT        IDC_TypeMap_EDIT_NewEntryValue,63,124,194,12,ES_AUTOHSCROLL | ES_READONLY
+END
+
+IDD_DIALOG_Mark DIALOGEX 0, 0, 287, 201
+STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "Mark Map"
+FONT 8, "MS Sans Serif", 0, 0, 0x1
+BEGIN
+    LTEXT           "Size Of The Mark Map :",AFX_ID_PREVIEW_CLOSE,20,10,80,10
+    LTEXT           "To be updated ...",IDC_MarkMap_STATIC_Size,110,10,80,10
+    GROUPBOX        "Entries :",-1,10,28,270,92,0,WS_EX_TRANSPARENT
+    CONTROL         "Tab1",IDC_MarkMap_TAB,"SysTabControl32",TCS_BUTTONS,20,40,242,15
+    LTEXT           "To be updated...",IDC_MarkMap_STATIC_CurrentEntryXValue,63,75,217,9
+    LTEXT           "Style :",-1,21,60,40,10
+    LTEXT           "To be updated ...",IDC_MarkMap_STATIC_CurrentEntryStyle,63,60,80,10
+    LTEXT           "XValue :",-1,21,75,40,9
+    LTEXT           "To be updated...",IDC_MarkMap_STATIC_CurrentEntryYValue,63,90,217,10
+    LTEXT           "YValue :",-1,21,90,40,10
+    LTEXT           "To be updated...",IDC_MarkMap_STATIC_CurrentEntrySValue,63,105,217,10
+    LTEXT           "SValue :",-1,21,105,40,10
+    LTEXT           "To be updated...",IDC_MarkMap_STATIC_CurrentEntryValue,62,90,217,10
+END
+
+IDD_SelectionDialog DIALOGEX 0, 0, 232, 183
+STYLE DS_SETFONT | DS_MODALFRAME | WS_CAPTION
+CAPTION "Choose Shapes and Projector"
+FONT 8, "MS Sans Serif", 0, 0, 0x1
+BEGIN
+    CONTROL         "2",IDC_HlrDlgView,"Button",BS_OWNERDRAW | WS_DISABLED | WS_TABSTOP,110,60,100,80,WS_EX_TRANSPARENT
+    CONTROL         "Default",IDC_DisplayDefault,"Button",BS_AUTORADIOBUTTON | WS_GROUP,17,0,70,10
+    CONTROL         "sharp Edges",IDC_VsharpEdges,"Button",BS_AUTORADIOBUTTON,20,20,70,10
+    CONTROL         "smooth Edges",IDC_VsmoothEdges,"Button",BS_AUTORADIOBUTTON,20,30,70,10
+    CONTROL         "Sewing Edges",IDC_VSewingEdges,"Button",BS_AUTORADIOBUTTON,20,40,70,10
+    CONTROL         "Apparent Contour",IDC_VApparentContour,"Button",BS_AUTORADIOBUTTON,20,50,70,10
+    CONTROL         "Iso parametrics",IDC_VIsoParametrics,"Button",BS_AUTORADIOBUTTON,20,60,70,10
+    CONTROL         "sharp Edges",IDC_HsharpEdges,"Button",BS_AUTORADIOBUTTON,20,99,70,10
+    CONTROL         "smooth Edges",IDC_HsmoothEdges,"Button",BS_AUTORADIOBUTTON,20,109,70,10
+    CONTROL         "Sewing Edges",IDC_HSewingEdges,"Button",BS_AUTORADIOBUTTON,20,119,70,10
+    CONTROL         "Apparent Contour",IDC_HApparentContour,"Button",BS_AUTORADIOBUTTON,20,129,70,10
+    CONTROL         "Iso parametrics",IDC_HIsoParametrics,"Button",BS_AUTORADIOBUTTON,20,139,70,10
+    CONTROL         "Draw Hidden line",IDC_DrawHiddenLine,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,80,70,10
+    CONTROL         "Poly Algo",IDC_PolyAlgo,"Button",BS_AUTORADIOBUTTON | WS_GROUP,10,157,50,10
+    CONTROL         "Algo",IDC_Algo,"Button",BS_AUTORADIOBUTTON,10,167,50,10
+    CONTROL         "TOPVIEW",IDC_TopView,"Button",BS_OWNERDRAW | WS_TABSTOP,106,40,13,14
+    CONTROL         "BOTTOMVIEW",IDC_BottomView,"Button",BS_OWNERDRAW | WS_TABSTOP,121,40,13,14
+    CONTROL         "LEFTVIEW",IDC_LeftView,"Button",BS_OWNERDRAW | WS_TABSTOP,137,40,13,14
+    CONTROL         "RIGHTVIEW",IDC_RightView,"Button",BS_OWNERDRAW | WS_TABSTOP,153,40,13,14
+    CONTROL         "FRONTVIEW",IDC_FrontView,"Button",BS_OWNERDRAW | WS_TABSTOP,169,40,13,14
+    CONTROL         "BACKVIEW",IDC_BackView,"Button",BS_OWNERDRAW | WS_TABSTOP,185,40,13,14
+    CONTROL         "AXOVIEW",IDC_AxoView,"Button",BS_OWNERDRAW | WS_TABSTOP,201,40,13,14
+    DEFPUSHBUTTON   "Get Shapes",ID_GetShape,105,22,57,14
+    PUSHBUTTON      "Update 2D",ID_Update2D,165,22,50,14
+    CONTROL         "HLR Mode",IDC_HlrModeIsOn,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,127,143,51,10
+    PUSHBUTTON      "Close",IDOK,150,160,50,14
+    EDITTEXT        IDC_EDIT_NBIsos,100,167,30,12,ES_AUTOHSCROLL
+    GROUPBOX        "Hidden",IDC_STATIC,10,89,82,65
+    GROUPBOX        "Visible ",IDC_STATIC,10,10,81,64
+    GROUPBOX        "Choose a projector",IDC_STATIC,97,10,123,145,0,WS_EX_TRANSPARENT
+    LTEXT           "Nb Isos",IDC_STATIC_NbIsos,70,167,30,12
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Bitmap
+//
+
+IDR_MAINFRAME           BITMAP                  "Toolbar.bmp"
+TOPVIEWD                BITMAP                  "TOPVIEWD.BMP"
+TOPVIEWF                BITMAP                  "TOPVIEWF.BMP"
+TOPVIEWU                BITMAP                  "TopViewU.BMP"
+BOTTOMVIEWU             BITMAP                  "BOTTOMVIEWU.bmp"
+BOTTOMVIEWF             BITMAP                  "BOTTOMVIEWF.bmp"
+BOTTOMVIEWD             BITMAP                  "BOTTOMVIEWD.bmp"
+LEFTVIEWU               BITMAP                  "LEFTVIEWU.bmp"
+LEFTVIEWF               BITMAP                  "LEFTVIEWF.bmp"
+LEFTVIEWD               BITMAP                  "LEFTVIEWD.bmp"
+RIGHTVIEWU              BITMAP                  "RIGHTVIEWU.bmp"
+RIGHTVIEWF              BITMAP                  "RIGHTVIEWF.bmp"
+RIGHTVIEWD              BITMAP                  "RIGHTVIEWD.bmp"
+FRONTVIEWU              BITMAP                  "FRONTVIEWU.bmp"
+FRONTVIEWF              BITMAP                  "FRONTVIEWF.bmp"
+FRONTVIEWD              BITMAP                  "FRONTVIEWD.bmp"
+BACKVIEWU               BITMAP                  "BACKVIEWU.bmp"
+BACKVIEWF               BITMAP                  "BACKVIEWF.bmp"
+BACKVIEWD               BITMAP                  "BACKVIEWD.bmp"
+AXOVIEWU                BITMAP                  "AXOVIEWU.bmp"
+AXOVIEWF                BITMAP                  "AXOVIEWF.bmp"
+AXOVIEWD                BITMAP                  "AXOVIEWD.bmp"
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Menu
+//
+
+IDR_MAINFRAME MENU 
+BEGIN
+    POPUP "&File"
+    BEGIN
+        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
+        MENUITEM SEPARATOR
+        MENUITEM "E&xit",                       ID_APP_EXIT
+    END
+    POPUP "&View"
+    BEGIN
+        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
+        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
+    END
+    POPUP "&Help"
+    BEGIN
+        MENUITEM "&About HLR...",               ID_APP_ABOUT
+    END
+END
+
+IDR_3DTYPE MENU 
+BEGIN
+    POPUP "&File"
+    BEGIN
+        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
+        MENUITEM "&Close",                      ID_FILE_CLOSE
+        MENUITEM SEPARATOR
+        MENUITEM "Process HLR",                 ID_FILE_HLR
+        POPUP "Import"
+        BEGIN
+            MENUITEM "BRep...",                     ID_FILE_IMPORT_BREP
+        END
+        POPUP "Export"
+        BEGIN
+            MENUITEM "BRep...",                     ID_FILE_EXPORT_BREP
+            MENUITEM "Image...",                    ID_FILE_EXPORT_IMAGE
+        END
+        MENUITEM SEPARATOR
+        MENUITEM "E&xit",                       ID_APP_EXIT
+    END
+    POPUP "&View"
+    BEGIN
+        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
+        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
+    END
+    POPUP "&Window"
+    BEGIN
+        MENUITEM "New Window &2D",              ID_WINDOW_NEW2D
+        MENUITEM "New Window &3D",              ID_WINDOW_NEW3D
+        MENUITEM "&Cascade",                    ID_WINDOW_CASCADE
+        MENUITEM "&Tile",                       ID_WINDOW_TILE_HORZ
+        MENUITEM "&Arrange Icons",              ID_WINDOW_ARRANGE
+    END
+    POPUP "&Help"
+    BEGIN
+        MENUITEM "&About HLR...",               ID_APP_ABOUT
+    END
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 1,0,0,1
+ PRODUCTVERSION 1,0,0,1
+ FILEFLAGSMASK 0x3fL
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x1L
+ FILESUBTYPE 0x0L
+BEGIN
+    BLOCK "StringFileInfo"
+    BEGIN
+        BLOCK "040904B0"
+        BEGIN
+            VALUE "CompanyName", "Matra Datavision"
+            VALUE "FileDescription", "SampleHLR MFC Application"
+            VALUE "FileVersion", "1, 0, 0, 1"
+            VALUE "InternalName", "SampleHLR"
+            VALUE "LegalCopyright", "Copyright (C) 1998"
+            VALUE "OriginalFilename", "SampleHLR.EXE"
+            VALUE "ProductName", "SampleHLR Application"
+            VALUE "ProductVersion", "1, 0, 0, 1"
+        END
+    END
+    BLOCK "VarFileInfo"
+    BEGIN
+        VALUE "Translation", 0x409, 1200
+    END
+END
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// String Table
+//
+
+STRINGTABLE 
+BEGIN
+    IDR_MAINFRAME           "HLR"
+    IDR_3DTYPE              "\nHLR\nHLR\n\n\nHLR.Document\nHLR Document"
+END
+
+STRINGTABLE 
+BEGIN
+    ID_WINDOW_NEW2D         "Open another 2d window for the active document\nNew 2d Window"
+    ID_WINDOW_NEW3D         "Open another 3d window for the active document\nNew 3d Window"
+END
+
+STRINGTABLE 
+BEGIN
+    ID_OBJECT_DISPLAYALL    "Display\nDisplay"
+END
+
+STRINGTABLE 
+BEGIN
+    ID_BUTTON_Test_Shape    "Test Shape\nTest Shape"
+END
+
+STRINGTABLE 
+BEGIN
+    ID_BUTTON_HLRDialog     "Open the HLR dialog \nHLR dialog"
+    ID_FILE_HLR             "Open the HLR dialog \nHLR dialog"
+END
+
+#endif    // English (U.S.) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+#define _AFX_NO_SPLITTER_RESOURCES
+#define _AFX_NO_OLE_RESOURCES
+#define _AFX_NO_TRACKER_RESOURCES
+#define _AFX_NO_PROPERTY_RESOURCES
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+#ifdef _WIN32
+LANGUAGE 9, 1
+#pragma code_page(1252)
+#endif
+#include "afxres.rc"         // Standard components
+#endif
+/////////////////////////////////////////////////////////////////////////////
+#endif    // not APSTUDIO_INVOKED
+
diff --git a/samples/mfc/standard/04_HLR/res/LEFTVIEWD.bmp b/samples/mfc/standard/04_HLR/res/LEFTVIEWD.bmp
new file mode 100644 (file)
index 0000000..de18453
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/LEFTVIEWD.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/LEFTVIEWF.bmp b/samples/mfc/standard/04_HLR/res/LEFTVIEWF.bmp
new file mode 100644 (file)
index 0000000..0ff0673
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/LEFTVIEWF.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/LEFTVIEWU.bmp b/samples/mfc/standard/04_HLR/res/LEFTVIEWU.bmp
new file mode 100644 (file)
index 0000000..8edb9d7
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/LEFTVIEWU.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/RIGHTVIEWD.bmp b/samples/mfc/standard/04_HLR/res/RIGHTVIEWD.bmp
new file mode 100644 (file)
index 0000000..72491de
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/RIGHTVIEWD.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/RIGHTVIEWF.bmp b/samples/mfc/standard/04_HLR/res/RIGHTVIEWF.bmp
new file mode 100644 (file)
index 0000000..14b2876
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/RIGHTVIEWF.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/RIGHTVIEWU.bmp b/samples/mfc/standard/04_HLR/res/RIGHTVIEWU.bmp
new file mode 100644 (file)
index 0000000..559e866
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/RIGHTVIEWU.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/ToolBarObjects.bmp b/samples/mfc/standard/04_HLR/res/ToolBarObjects.bmp
new file mode 100644 (file)
index 0000000..7cc5fe8
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/ToolBarObjects.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/Toolbar.bmp b/samples/mfc/standard/04_HLR/res/Toolbar.bmp
new file mode 100644 (file)
index 0000000..633f56c
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/Toolbar.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/axoviewd.bmp b/samples/mfc/standard/04_HLR/res/axoviewd.bmp
new file mode 100644 (file)
index 0000000..f8b478a
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/axoviewd.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/axoviewf.bmp b/samples/mfc/standard/04_HLR/res/axoviewf.bmp
new file mode 100644 (file)
index 0000000..c9146c4
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/axoviewf.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/dummyd.bmp b/samples/mfc/standard/04_HLR/res/dummyd.bmp
new file mode 100644 (file)
index 0000000..f92113c
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/dummyd.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/dummyf.bmp b/samples/mfc/standard/04_HLR/res/dummyf.bmp
new file mode 100644 (file)
index 0000000..65e8f3f
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/dummyf.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/dummyu.bmp b/samples/mfc/standard/04_HLR/res/dummyu.bmp
new file mode 100644 (file)
index 0000000..f92113c
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/dummyu.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/resource.h b/samples/mfc/standard/04_HLR/res/resource.h
new file mode 100644 (file)
index 0000000..ed2c12f
--- /dev/null
@@ -0,0 +1,127 @@
+//{{NO_DEPENDENCIES}}
+// Microsoft Visual C++ generated include file.
+// Used by HLR.rc
+//
+#define ID_MENU_CASCADE_PROPERTIES      150
+#define IDD_DIALOG_Font                 160
+#define IDD_DIALOG_Width                161
+#define IDD_DIALOG_Color                162
+#define IDD_DIALOG_NewColorCube         163
+#define IDD_DIALOG_NewColorRamp         164
+#define IDD_DIALOG_Type                 165
+#define IDD_DIALOG_Mark                 166
+#define IDD_SelectionDialog             170
+#define ID_BUTTON_Test_Shape            1049
+#define ID_WINDOW_NEW2D                 1150
+#define ID_WINDOW_NEW3D                 1151
+#define ID_OBJECT_DISPLAYALL            1201
+#define ID_Collector_Delete             1251
+#define IDC_ColorMap_STATIC_Type        1420
+#define IDC_ColorMap_STATIC_Size        1421
+#define IDC_ColorMap_TAB                1422
+#define IDC_ColorMap_STATIC_EntryColorGreen 1423
+#define IDC_ColorMap_STATIC_EntryColorRed 1424
+#define IDC_ColorMap_STATIC_EntryColorBlue 1425
+#define IDC_ColorMap_STATIC_EntryColorName 1426
+#define IDC_ColorMap_EDIT_NewEntryColorRed 1427
+#define IDC_ColorMap_EDIT_NewEntryColorGreen 1428
+#define IDC_ColorMap_EDIT_NewEntryColorBlue 1429
+#define IDC_ColorMap_COMBO_NewEntryColorName 1430
+#define IDC_ColorMap_BUTTON_NewEntry_EditColor 1431
+#define IDC_ColorMap_BUTTON_UpdateCurrentEntry 1432
+#define IDC_ColorMap_BUTTON_AddNewEntry 1433
+#define IDC_ColorMap_BUTTON_NewGenericColorMap 1434
+#define IDC_ColorMap_STATIC_NewEntryColorNameStatic 1435
+#define IDC_ColorMap_STATIC_NewEntryNotavailable 1436
+#define IDC_ColorMap_BUTTON_NewColorCubeColorMap 1437
+#define IDC_ColorMap_BUTTON_NewColorRampColorMap 1438
+#define IDC_NewColorMap_COMBO_NewEntryColorName 1439
+#define IDC_NewColorMapRamp_EDIT_ColorRed 1441
+#define IDC_NewColorMapRamp_EDIT_ColorGreen 1442
+#define IDC_NewColorMapRamp_EDIT_ColorBlue 1443
+#define IDC_NewColorMapRamp_BUTTON_EditColor 1444
+#define IDC_NewColorRamp_EDIT_base_pixel 1445
+#define IDC_NewColorramp_EDIT_dimension 1446
+#define IDC_NewColorCube_EDIT_bluemult  1447
+#define IDC_NewColorCube_EDIT_base_pixel 1448
+#define IDC_NewColorCube_EDIT_bluemax   1449
+#define IDC_NewColorCube_EDIT_grennmult 1450
+#define IDC_NewColorCube_EDIT_greenmax  1451
+#define IDC_NewColorCube_EDIT_redmax    1452
+#define IDC_NewColorCube_EDIT_redmult   1453
+#define IDC_WidthMap_STATIC_Size        1454
+#define IDC_WidthMap_TAB                1455
+#define IDC_WidthMap_STATIC_EntryType   1456
+#define IDC_WidthMap_STATIC_EntryWidth  1457
+#define IDC_WidthMap_COMBO_NewEntryType 1458
+#define IDC_WidthMap_EDIT_NewEntryWidth 1459
+#define IDC_WidthMap_BUTTON_AddNewEntry 1460
+#define IDC_WidthMap_BUTTON_UpdateCurrentEntry 1461
+#define IDC_FontMap_STATIC_Size         1462
+#define IDC_FontMap_TAB                 1463
+#define IDC_FontMap_STATIC_CurrentEntryValue 1464
+#define IDC_FontMap_STATIC_CurrentEntryType 1465
+#define IDC_FontMap_STATIC_CurrentEntrySize 1466
+#define IDC_FontMap_STATIC_CurrentEntrySlant 1467
+#define IDC_FontMap_BUTTON_NewEntry     1468
+#define IDC_FontMap_BUTTON_UpdateCurrent 1469
+#define IDC_FontMap_COMBO_NewEntryType  1470
+#define IDC_FontMap_EDIT_NewEntryValue  1471
+#define IDC_FontMap_EDIT_NewEntrySize   1472
+#define IDC_FontMap_EDIT_NewEntrySlant  1473
+#define IDC_FontMap_BUTTON_NewEntry_EditFont 1474
+#define IDC_TypeMap_STATIC_Size         1475
+#define IDC_TypeMap_TAB                 1476
+#define IDC_TypeMap_STATIC_CurrentEntryStyle 1477
+#define IDC_TypeMap_STATIC_CurrentEntryValue 1478
+#define IDC_TypeMap_COMBO_NewEntryStyle 1479
+#define IDC_TypeMap_EDIT_NewEntryValue  1480
+#define IDC_MarkMap_STATIC_Size         1481
+#define IDC_MarkMap_TAB                 1482
+#define IDC_MarkMap_STATIC_CurrentEntryXValue 1483
+#define IDC_MarkMap_STATIC_CurrentEntryStyle 1484
+#define IDC_MarkMap_STATIC_CurrentEntryYValue 1485
+#define IDC_MarkMap_STATIC_CurrentEntrySValue 1486
+#define IDC_MarkMap_STATIC_CurrentEntryValue 1487
+#define IDC_PolyAlgo                    1500
+#define IDC_Algo                        1501
+#define IDC_VsharpEdges                 1503
+#define IDC_HsharpEdges                 1504
+#define IDC_VsmoothEdges                1505
+#define IDC_VSewingEdges                1506
+#define IDC_VApparentContour            1507
+#define IDC_VIsoParametrics             1508
+#define IDC_DisplayDefault              1509
+#define IDC_BoxView                     1512
+#define IDC_HsmoothEdges                1513
+#define IDC_HSewingEdges                1514
+#define IDC_HApparentContour            1516
+#define IDC_HIsoParametrics             1517
+#define ID_GetShape                     1518
+#define IDC_EDIT_NBIsos                 1519
+#define IDC_STATIC_NbIsos               1520
+#define IDC_DrawHiddenLine              1521
+#define ID_Update2D                     1522
+#define IDC_HlrModeIsOn                 1523
+#define IDC_TopView                     1529
+#define IDC_HlrDlgView                  1530
+#define IDC_BottomView                  1531
+#define IDC_LeftView                    1532
+#define IDC_RightView                   1533
+#define IDC_BackView                    1534
+#define IDC_FrontView                   1535
+#define IDC_AxoView                     1536
+#define ID_BUTTON_HLRDialog             1537
+#define ID_FILE_HLR                     1539
+
+// Next default values for new objects
+// 
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_3D_CONTROLS                     1
+#define _APS_NEXT_RESOURCE_VALUE        173
+#define _APS_NEXT_COMMAND_VALUE         32797
+#define _APS_NEXT_CONTROL_VALUE         1538
+#define _APS_NEXT_SYMED_VALUE           170
+#endif
+#endif
diff --git a/samples/mfc/standard/04_HLR/res/topviewd.bmp b/samples/mfc/standard/04_HLR/res/topviewd.bmp
new file mode 100644 (file)
index 0000000..391a326
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/topviewd.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/topviewf.bmp b/samples/mfc/standard/04_HLR/res/topviewf.bmp
new file mode 100644 (file)
index 0000000..6142ec6
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/topviewf.bmp differ
diff --git a/samples/mfc/standard/04_HLR/res/topviewu.bmp b/samples/mfc/standard/04_HLR/res/topviewu.bmp
new file mode 100644 (file)
index 0000000..6c21942
Binary files /dev/null and b/samples/mfc/standard/04_HLR/res/topviewu.bmp differ
diff --git a/samples/mfc/standard/04_HLR/src/HLRApp.cpp b/samples/mfc/standard/04_HLR/src/HLRApp.cpp
new file mode 100644 (file)
index 0000000..ab960a9
--- /dev/null
@@ -0,0 +1,164 @@
+// HLRApp.cpp : Defines the class behaviors for the application.
+//
+
+#include "stdafx.h"
+
+#include "HLRApp.h"
+
+#include <OCC_MainFrame.h>
+#include <OCC_3dChildFrame.h>
+#include "HLRDoc.h"
+#include <OCC_2dChildFrame.h>
+#include "HLRView2D.h"
+#include <OCC_3dView.h>
+// End CasCade
+
+#ifdef _DEBUG
+// CasCade :
+//#define new DEBUG_NEW
+// End CasCade
+
+#undef THIS_FILE
+static char THIS_FILE[] = __FILE__;
+#endif
+
+/////////////////////////////////////////////////////////////////////////////
+// CHLRApp construction
+
+CHLRApp::CHLRApp() : OCC_App()
+{
+  SampleName = "HLR"; //for about dialog
+  SetSamplePath (L"..\\..\\08_HLR");
+}
+
+CHLRApp::~CHLRApp()
+{
+  delete pDocTemplateForView2d;
+}
+
+/////////////////////////////////////////////////////////////////////////////
+// The one and only CHLRApp object
+
+CHLRApp theApp;
+
+/////////////////////////////////////////////////////////////////////////////
+// CHLRApp initialization
+
+BOOL CHLRApp::InitInstance()
+{
+  AfxEnableControlContainer();
+
+  // Standard initialization
+  // If you are not using these features and wish to reduce the size
+  //  of your final executable, you should remove from the following
+  //  the specific initialization routines you do not need.
+
+  // Change the registry key under which our settings are stored.
+  // You should modify this string to be something appropriate
+  // such as the name of your company or organization.
+  // Modified by CasCade :
+  SetRegistryKey(_T("Local CasCade Applications"));
+
+  LoadStdProfileSettings();  // Load standard INI file options (including MRU)
+
+  // Register the application's document templates.  Document templates
+  //  serve as the connection between documents, frame windows and views.
+
+  // CasCade :
+
+
+  pDocTemplateForView2d = new CMultiDocTemplate(
+    IDR_2DTYPE,
+    RUNTIME_CLASS(CHLRDoc),
+    RUNTIME_CLASS(OCC_2dChildFrame), // custom MDI child frame
+    RUNTIME_CLASS(CHLRView2D));
+
+// AddDocTemplate(pDocTemplateForView2d);
+
+// End CasCade
+  pDocTemplateForView3d  = new CMultiDocTemplate(
+    IDR_3DTYPE,
+    RUNTIME_CLASS(CHLRDoc),
+    RUNTIME_CLASS(OCC_3dChildFrame), // custom MDI child frame
+    RUNTIME_CLASS(OCC_3dView));
+
+  AddDocTemplate(pDocTemplateForView3d);
+
+
+  // create main MDI Frame window
+  OCC_MainFrame* pMainFrame = new OCC_MainFrame(with_AIS_TB);
+  if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
+    return FALSE;
+  m_pMainWnd = pMainFrame;
+
+  // Parse command line for standard shell commands, DDE, file open
+  CCommandLineInfo cmdInfo;
+  ParseCommandLine(cmdInfo);
+
+  // Dispatch commands specified on the command line
+  if (!ProcessShellCommand(cmdInfo))
+    return FALSE;
+
+  // The main window has been initialized, so show and update it.
+  pMainFrame->MDITile(MDITILE_VERTICAL);
+  pMainFrame->ShowWindow(m_nCmdShow);
+  pMainFrame->UpdateWindow();
+
+  return TRUE;
+}
+
+/////////////////////////////////////////////////////////////////////////////
+// CHLRApp commands
+
+//===================================================
+
+CFrameWnd*  CHLRApp::CreateView2D(CHLRDoc* pDoc )
+{
+  ASSERT_VALID(pDoc);
+  ASSERT_VALID(pDocTemplateForView2d);
+  CRuntimeClass * pViewClass = RUNTIME_CLASS(OCC_2dView);
+  ASSERT(pViewClass != (CRuntimeClass *)NULL );
+  // Create a new frame window
+  CFrameWnd* pNewFrame = pDocTemplateForView2d->CreateNewFrame(pDoc, NULL);
+  ASSERT_VALID(pDoc);
+  pDocTemplateForView2d->InitialUpdateFrame(pNewFrame, pDoc);
+  ASSERT_VALID(pDoc);
+return pNewFrame;
+}
+
+//===================================================
+CFrameWnd*  CHLRApp::CreateView3D(CHLRDoc* pDoc )
+{
+  ASSERT_VALID(pDoc);
+  ASSERT_VALID(pDocTemplateForView3d);
+  CRuntimeClass * pViewClass = RUNTIME_CLASS(OCC_3dView);
+  ASSERT(pViewClass != (CRuntimeClass *)NULL );
+  // Create a new frame window
+  CFrameWnd* pNewFrame = pDocTemplateForView3d->CreateNewFrame(pDoc, NULL);
+  pDocTemplateForView3d->InitialUpdateFrame(pNewFrame, pDoc);
+return pNewFrame;
+
+}
+
+
+BOOL CHLRApp::IsViewExisting(CDocument * pDoc, CRuntimeClass * pViewClass, CView * & pView)
+{
+  ASSERT_VALID(pDoc);
+  ASSERT(pViewClass != (CRuntimeClass *)NULL );
+
+  POSITION position = pDoc->GetFirstViewPosition();
+  while (position != (POSITION)NULL)
+  {
+    CView* pCurrentView = pDoc->GetNextView(position);
+    ASSERT_VALID(pCurrentView);
+    if (pCurrentView->IsKindOf(pViewClass))
+       {
+      pView = pCurrentView;
+         return TRUE;
+       }
+  }
+  return FALSE;
+}
+
+
+
diff --git a/samples/mfc/standard/04_HLR/src/HLRApp.h b/samples/mfc/standard/04_HLR/src/HLRApp.h
new file mode 100644 (file)
index 0000000..2645611
--- /dev/null
@@ -0,0 +1,36 @@
+// HLRApp.h : main header file for the HLR application
+//
+
+#if !defined(AFX_HLR_H__376C7004_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_)
+#define AFX_HLR_H__376C7004_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_
+
+#if _MSC_VER >= 1000
+#pragma once
+#endif // _MSC_VER >= 1000
+
+#include <OCC_App.h>
+#include "HLRDoc.h"
+//#include "CutAndPasteSession.h"
+
+class CHLRApp : public OCC_App
+{
+public:
+  CHLRApp();
+  ~CHLRApp();
+  virtual BOOL InitInstance();
+
+  // =========================================
+  CFrameWnd*  CreateView2D(CHLRDoc* pDoc);
+  // =========================================
+  CFrameWnd*  CreateView3D(CHLRDoc* pDoc);
+  // =========================================
+
+private :
+  BOOL IsViewExisting(CDocument* pDoc,CRuntimeClass* pViewClass,CView*& pView);
+  CMultiDocTemplate* pDocTemplateForView3d;
+  CMultiDocTemplate* pDocTemplateForView2d;
+};
+
+/////////////////////////////////////////////////////////////////////////////
+
+#endif // !defined(AFX_HLR_H__376C7004_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/04_HLR/src/HLRDoc.cpp b/samples/mfc/standard/04_HLR/src/HLRDoc.cpp
new file mode 100644 (file)
index 0000000..ed37fcc
--- /dev/null
@@ -0,0 +1,205 @@
+// HLRDoc.cpp : implementation of the CHLRDoc class
+//
+
+
+#include "stdafx.h"
+
+#include "HLRDoc.h"
+#include "HLRApp.h"
+#include <OCC_2dView.h>
+#include <OCC_3dView.h>
+
+
+#include <ImportExport/ImportExport.h>
+#include "AISDialogs.h"
+#include <AIS_ListOfInteractive.hxx>
+
+#ifdef _DEBUG
+//#define new DEBUG_NEW  // by cascade
+#undef THIS_FILE
+static char THIS_FILE[] = __FILE__;
+#endif
+
+/////////////////////////////////////////////////////////////////////////////
+// CHLRDoc
+
+IMPLEMENT_DYNCREATE(CHLRDoc, CDocument)
+
+
+BEGIN_MESSAGE_MAP(CHLRDoc, OCC_3dBaseDoc)
+  //{{AFX_MSG_MAP(CHLRDoc)
+  ON_COMMAND(ID_WINDOW_NEW3D, OnWindowNew3d)
+  ON_COMMAND(ID_WINDOW_NEW2D, OnWindowNew2d)
+  ON_COMMAND(ID_FILE_HLR, OnBUTTONHLRDialog)
+  ON_COMMAND(ID_FILE_IMPORT_BREP, OnFileImportBrep)
+  ON_COMMAND(ID_BUTTON_HLRDialog, OnBUTTONHLRDialog)
+  ON_COMMAND(ID_OBJECT_ERASE, OnObjectErase)
+  //}}AFX_MSG_MAP
+
+
+END_MESSAGE_MAP()
+
+/////////////////////////////////////////////////////////////////////////////
+// CHLRDoc construction/destruction
+
+CHLRDoc::CHLRDoc()
+{
+  // TODO: add one-time construction code here
+  Handle(Graphic3d_GraphicDriver) theGraphicDriver = 
+    ((CHLRApp*)AfxGetApp())->GetGraphicDriver();
+
+  // VIEWER 3D
+  myViewer = new V3d_Viewer (theGraphicDriver);
+  myViewer->SetDefaultLights();
+  myViewer->SetLightOn();
+
+  myAISContext =new AIS_InteractiveContext (myViewer);
+
+  // 2D VIEWER: exploit V3d viewer for 2D visualization
+  my2DViewer = new V3d_Viewer (theGraphicDriver);
+  my2DViewer->SetCircularGridValues (0, 0, 10, 8, 0);
+  my2DViewer->SetRectangularGridValues (0, 0, 10, 10, 0);
+
+  //Set projection mode for 2D visualization
+  my2DViewer->SetDefaultViewProj (V3d_Zpos);
+
+  myInteractiveContext2D = new AIS_InteractiveContext (my2DViewer);
+
+  CFrameWnd* pFrame2d = ((CHLRApp*)AfxGetApp())->CreateView2D (this);
+  pFrame2d->ShowWindow (SW_SHOWNORMAL);
+  myCSelectionDialogIsCreated = false;
+}
+
+CHLRDoc::~CHLRDoc()
+{
+  if (myCSelectionDialogIsCreated)
+  {
+    myCSelectionDialog->ShowWindow(SW_ERASE);
+    delete myCSelectionDialog;
+  }
+}
+
+void CHLRDoc::OnWindowNew2d()
+{
+  ((CHLRApp*)AfxGetApp())->CreateView2D(this);
+}
+
+void CHLRDoc::OnWindowNew3d()
+{
+  ((CHLRApp*)AfxGetApp())->CreateView3D(this);
+}
+
+//  nCmdShow could be :    ( default is SW_RESTORE )
+// SW_HIDE   SW_SHOWNORMAL   SW_NORMAL   
+// SW_SHOWMINIMIZED     SW_SHOWMAXIMIZED    
+// SW_MAXIMIZE          SW_SHOWNOACTIVATE   
+// SW_SHOW              SW_MINIMIZE         
+// SW_SHOWMINNOACTIVE   SW_SHOWNA           
+// SW_RESTORE           SW_SHOWDEFAULT      
+// SW_MAX    
+
+// use pViewClass = RUNTIME_CLASS( CHLRView3D ) for 3D Views
+// use pViewClass = RUNTIME_CLASS( CHLRView2D ) for 2D Views
+
+void CHLRDoc::ActivateFrame(CRuntimeClass* pViewClass,int nCmdShow)
+{
+  POSITION position = GetFirstViewPosition();
+  while (position != (POSITION)NULL)
+  {
+    CView* pCurrentView = (CView*)GetNextView(position);
+    if(pCurrentView->IsKindOf(pViewClass) )
+    {
+      ASSERT_VALID(pCurrentView);
+      CFrameWnd* pParentFrm = pCurrentView->GetParentFrame();
+      ASSERT(pParentFrm != (CFrameWnd *)NULL);
+      // simply make the frame window visible
+      pParentFrm->ActivateFrame(nCmdShow);
+    }
+  }
+}
+
+void CHLRDoc::FitAll2DViews(Standard_Boolean UpdateViewer)
+{
+  if (UpdateViewer)   my2DViewer->Update();
+  POSITION position = GetFirstViewPosition();
+  while (position != (POSITION)NULL)
+  {
+    CView* pCurrentView = (CView*)GetNextView(position);
+    if(pCurrentView->IsKindOf(RUNTIME_CLASS(OCC_2dView)) )
+    {
+      ASSERT_VALID(pCurrentView);
+      ((OCC_2dView*)pCurrentView)->FitAll();
+    }
+  }
+}
+
+/////////////////////////////////////////////////////////////////////////////
+// CHLRDoc diagnostics
+
+#ifdef _DEBUG
+void CHLRDoc::AssertValid() const
+{
+  CDocument::AssertValid();
+}
+
+void CHLRDoc::Dump(CDumpContext& dc) const
+{
+  CDocument::Dump(dc);
+}
+#endif //_DEBUG
+
+/////////////////////////////////////////////////////////////////////////////
+// CHLRDoc commands
+void CHLRDoc::OnBUTTONHLRDialog()
+{
+  if (!myCSelectionDialogIsCreated)
+  {
+    myCSelectionDialog = new CSelectionDialog(this,AfxGetMainWnd());
+    myCSelectionDialog->Create(CSelectionDialog::IDD, AfxGetMainWnd());
+    myCSelectionDialogIsCreated = true;
+  }
+  myCSelectionDialog->ShowWindow(SW_RESTORE);
+  myCSelectionDialog->UpdateWindow();
+}
+
+void CHLRDoc::OnFileImportBrep() 
+{   CImportExport::ReadBREP(myAISContext);
+       Fit();
+}
+void CHLRDoc::Fit()
+{
+  POSITION position = GetFirstViewPosition();
+  while (position != (POSITION)NULL)
+  {
+    CView* pCurrentView = (CView*)GetNextView(position);
+    if(pCurrentView->IsKindOf(RUNTIME_CLASS(OCC_3dView)) )
+    {
+      ((OCC_3dView *) pCurrentView)->FitAll();
+    }
+  }
+}
+
+void CHLRDoc::OnObjectErase()
+{
+  Standard_Boolean toUpdateDisplayable = Standard_False;
+  myAISContext->InitSelected();
+  while (myAISContext->MoreSelected())
+  {
+    if (myAISContext->SelectedInteractive()->Type() == AIS_KOI_Shape && myCSelectionDialogIsCreated)
+    {
+      myCSelectionDialog->DiplayableShape()->Remove (Handle(AIS_Shape)::DownCast (myAISContext->SelectedInteractive())->Shape());
+      toUpdateDisplayable = Standard_True;
+    }
+
+    myAISContext->Erase (myAISContext->SelectedInteractive(), Standard_True);
+    myAISContext->InitSelected();
+  }
+
+  myAISContext->ClearSelected (Standard_True);
+
+  if (toUpdateDisplayable)
+  {
+    // Update view in the HLR dialog if list of displayable shapes has been changed.
+    myCSelectionDialog->UpdateViews();
+  }
+}
diff --git a/samples/mfc/standard/04_HLR/src/HLRDoc.h b/samples/mfc/standard/04_HLR/src/HLRDoc.h
new file mode 100644 (file)
index 0000000..ff8382f
--- /dev/null
@@ -0,0 +1,67 @@
+// HLRDoc.h : interface of the CHLRDoc class
+//
+/////////////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_HLRDOC_H__376C700E_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_)
+#define AFX_HLRDOC_H__376C700E_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_
+
+#if _MSC_VER >= 1000
+#pragma once
+#endif // _MSC_VER >= 1000
+
+#include "SelectionDialog.h"
+#include <OCC_3dDoc.h>
+
+class CHLRDoc : public OCC_3dBaseDoc
+{
+public:
+
+protected: // create from serialization only
+  CHLRDoc();
+  DECLARE_DYNCREATE(CHLRDoc)
+  // Attributes
+public:
+
+  // Implementation
+public:
+  virtual ~CHLRDoc();
+  void Fit();
+#ifdef _DEBUG
+  virtual void AssertValid() const;
+  virtual void Dump(CDumpContext& dc) const;
+#endif
+protected:
+
+  // Generated message map functions
+protected:
+  //{{AFX_MSG(CHLRDoc)
+  afx_msg void OnWindowNew3d();
+  afx_msg void OnWindowNew2d();
+  afx_msg void OnFileImportBrep();
+  afx_msg void OnBUTTONHLRDialog();
+  afx_msg void OnObjectErase();
+  //}}AFX_MSG
+  DECLARE_MESSAGE_MAP()
+
+public :
+  void ActivateFrame(CRuntimeClass* pViewClass, int nCmdShow = SW_RESTORE  );
+
+private:
+  Handle(V3d_Viewer) my2DViewer;
+  Handle(AIS_InteractiveContext) myInteractiveContext2D;
+public :
+  Handle(V3d_Viewer) GetViewer2D()  { return my2DViewer; };
+  Handle(AIS_InteractiveContext)& GetInteractiveContext2D(){ return myInteractiveContext2D; };
+  void FitAll2DViews(Standard_Boolean UpdateViewer=Standard_False);
+
+public :
+  CSelectionDialog* myCSelectionDialog;
+  bool myCSelectionDialogIsCreated;
+};
+
+/////////////////////////////////////////////////////////////////////////////
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_HLRDOC_H__376C700E_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/04_HLR/src/HLRView2D.cpp b/samples/mfc/standard/04_HLR/src/HLRView2D.cpp
new file mode 100644 (file)
index 0000000..04af953
--- /dev/null
@@ -0,0 +1,63 @@
+// HLRView.cpp : implementation of the CHLRView2D class
+//
+
+#include "stdafx.h"
+#include "HLRView2D.h"
+#include "HLRApp.h"
+#include "HLRDoc.h"
+#include "resource2d\RectangularGrid.h"
+#include "resource2d\CircularGrid.h"
+
+#ifdef _DEBUG
+//#define new DEBUG_NEW
+#undef THIS_FILE
+static char THIS_FILE[] = __FILE__;
+#endif
+
+/////////////////////////////////////////////////////////////////////////////
+// CHLRView2D
+
+IMPLEMENT_DYNCREATE(CHLRView2D, OCC_2dView)
+
+BEGIN_MESSAGE_MAP(CHLRView2D, OCC_2dView)
+  //{{AFX_MSG_MAP(CHLRView2D)
+  //}}AFX_MSG_MAP
+END_MESSAGE_MAP()
+
+/////////////////////////////////////////////////////////////////////////////
+// CHLRView2D construction/destruction
+
+CHLRView2D::CHLRView2D()
+{
+  /// TODO
+  /// Override MouseMove event to exclude rectangle selection emulation as
+  /// no selection is supported in DragEvent2D for this view.
+}
+
+CHLRView2D::~CHLRView2D()
+{
+}
+
+const Handle(AIS_InteractiveContext)& CHLRView2D::GetAISContext() const
+{
+  return ((CHLRDoc*)m_pDocument)->GetInteractiveContext2D();
+}
+
+CHLRDoc* CHLRView2D::GetDocument() // non-debug version is inline
+{
+  //ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(OCC_2dDoc)));
+  return (CHLRDoc*)m_pDocument;
+}
+
+#ifdef _DEBUG
+void CHLRView2D::AssertValid() const
+{
+  OCC_2dView::AssertValid();
+}
+
+void CHLRView2D::Dump(CDumpContext& dc) const
+{
+  OCC_2dView::Dump(dc);
+}
+
+#endif
\ No newline at end of file
diff --git a/samples/mfc/standard/04_HLR/src/HLRView2D.h b/samples/mfc/standard/04_HLR/src/HLRView2D.h
new file mode 100644 (file)
index 0000000..83e1e76
--- /dev/null
@@ -0,0 +1,42 @@
+// HLRView.h : interface of the CHLRView2D class
+//
+/////////////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_HLRVIEW2D_H__376C7013_0B3D_11D2_8E0A_0800369C8A03_2D_INCLUDED_)
+#define AFX_HLRVIEW2D_H__376C7013_0B3D_11D2_8E0A_0800369C8A03_2D_INCLUDED_
+
+#if _MSC_VER >= 1000
+#pragma once
+#endif // _MSC_VER >= 1000
+
+#include "HLRDoc.h"
+#include <OCC_2dView.h>
+#include "Resource2d/RectangularGrid.h"
+#include "Resource2d/CircularGrid.h"
+
+
+class CHLRView2D : public OCC_2dView
+{
+protected: // create from serialization only
+  CHLRView2D();
+  DECLARE_DYNCREATE(CHLRView2D)
+  DECLARE_MESSAGE_MAP()
+
+  //! Return interactive context for HLR presentations.
+  virtual const Handle(AIS_InteractiveContext)& GetAISContext() const Standard_OVERRIDE;
+
+// Implementation
+public:
+  virtual ~CHLRView2D();
+  CHLRDoc* GetDocument();
+#ifdef _DEBUG
+  virtual void AssertValid() const;
+  virtual void Dump(CDumpContext& dc) const;
+#endif
+};
+/////////////////////////////////////////////////////////////////////////////
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_HLRVIEW2D_H__376C7013_0B3D_11D2_8E0A_0800369C8A03_2D_INCLUDED_)
diff --git a/samples/mfc/standard/04_HLR/src/HLRView3D.cpp b/samples/mfc/standard/04_HLR/src/HLRView3D.cpp
new file mode 100644 (file)
index 0000000..3e34922
--- /dev/null
@@ -0,0 +1,399 @@
+// HLRView.cpp : implementation of the CHLRView3D3D class
+//
+
+#include "stdafx.h"
+#include "HLRApp.h"
+
+#include "HLRDoc.h"
+#include "HLRView3D.h"
+#include "..\..\Common\res\OCC_Resource.h"
+
+#ifdef _DEBUG
+//#define new DEBUG_NEW by CasCade
+#undef THIS_FILE
+static char THIS_FILE[] = __FILE__;
+#endif
+
+// for elastic bean selection
+#define ValZWMin 1
+
+// the key for multi selection :
+#define MULTISELECTIONKEY MK_SHIFT
+
+// the key for shortcut ( use to activate dynamic rotation, panning )
+#define CASCADESHORTCUTKEY MK_CONTROL
+
+// define in witch case you want to display the popup
+#define POPUPONBUTTONDOWN
+
+/////////////////////////////////////////////////////////////////////////////
+// CHLRView3D
+
+IMPLEMENT_DYNCREATE(CHLRView3D, OCC_3dView)
+
+BEGIN_MESSAGE_MAP(CHLRView3D, OCC_3dView)
+       //{{AFX_MSG_MAP(CHLRView3D)
+               // NOTE - the ClassWizard will add and remove mapping macros here.
+               //    DO NOT EDIT what you see in these blocks of generated code!
+       //}}AFX_MSG_MAP
+// CasCade
+       ON_WM_LBUTTONDOWN()
+       ON_WM_LBUTTONUP()
+       ON_WM_MOUSEMOVE()
+       ON_WM_RBUTTONDOWN()
+END_MESSAGE_MAP()
+
+/////////////////////////////////////////////////////////////////////////////
+// CHLRView3D construction/destruction
+
+CHLRView3D::CHLRView3D()
+{
+}
+
+CHLRView3D::~CHLRView3D()
+{
+}
+
+void CHLRView3D::OnInitialUpdate() 
+{
+
+       // TODO: Add your specialized code here and/or call the base class
+           // TODO: Add your specialized code here and/or call the base class
+    myView = GetDocument()->GetViewer()->CreateView();
+
+    // store for restore state after rotation (witch is in Degenerated mode)
+    myDegenerateModeIsOn = myView->DegenerateModeIsOn();
+
+       Handle(Graphic3d_WNTGraphicDevice) theGraphicDevice = 
+               ((CHLRApp*)AfxGetApp())->GetGraphicDevice();
+    
+    Handle(WNT_Window) aWNTWindow = new WNT_Window(theGraphicDevice,GetSafeHwnd ());
+    myView->SetWindow(aWNTWindow);
+    if (!aWNTWindow->IsMapped()) aWNTWindow->Map();
+
+       Standard_Integer w=100 , h=100 ;   /* Debug Matrox                         */
+       aWNTWindow->Size (w,h) ;           /* Keeps me unsatisfied (rlb).....      */
+                                          /* Resize is not supposed to be done on */
+                                          /* Matrox                               */
+                                          /* I suspect another problem elsewhere  */
+       ::PostMessage ( GetSafeHwnd () , WM_SIZE , SIZE_RESTORED , w + h*65536 ) ;
+
+    // store the mode ( nothing , dynamic zooming, dynamic ... )
+    myCurrentMode = CurAction3d_Nothing;
+
+}
+
+/////////////////////////////////////////////////////////////////////////////
+// CHLRView3D diagnostics
+
+#ifdef _DEBUG
+void CHLRView3D::AssertValid() const
+{
+       CView::AssertValid();
+}
+
+void CHLRView3D::Dump(CDumpContext& dc) const
+{
+       CView::Dump(dc);
+}
+
+CHLRDoc* CHLRView3D::GetDocument() // non-debug version is inline
+{
+       ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CHLRDoc)));
+       return (CHLRDoc*)m_pDocument;
+}
+#endif //_DEBUG
+
+/////////////////////////////////////////////////////////////////////////////
+// CHLRView3D message handlers
+
+
+void CHLRView3D::OnLButtonDown(UINT nFlags, CPoint point) 
+{
+  //  save the current mouse coordinate in min 
+  myXmin=point.x;  myYmin=point.y;
+  myXmax=point.x;  myYmax=point.y;
+
+  if ( nFlags & CASCADESHORTCUTKEY ) 
+         {
+           // Button MB1 down Control :start zomming 
+        // SetCursor(AfxGetApp()->LoadStandardCursor());
+         }
+       else // if ( Ctrl )
+         {
+        switch (myCurrentMode)
+        {
+         case CurAction3d_Nothing : // start a drag
+           if (nFlags & MULTISELECTIONKEY)
+                          MultiDragEvent(myXmax,myYmax,-1);
+           else
+               DragEvent(myXmax,myYmax,-1);
+        break;
+         break;
+         case CurAction3d_DynamicZooming : // noting
+         break;
+         case CurAction3d_WindowZooming : // noting
+         break;
+         case CurAction3d_DynamicPanning :// noting
+         break;
+         case CurAction3d_GlobalPanning :// noting
+        break;
+        case  CurAction3d_DynamicRotation :
+                       if (!myDegenerateModeIsOn)
+                         myView->SetDegenerateModeOn();
+                       myView->StartRotation(point.x,point.y);  
+        break;
+        default :
+           throw Standard_Failure(" incompatible Current Mode ");
+        break;
+        }
+    }
+}
+
+void CHLRView3D::OnLButtonUp(UINT nFlags, CPoint point) 
+{
+   if ( nFlags & CASCADESHORTCUTKEY ) 
+         {
+        return;
+         }
+       else // if ( Ctrl )
+         {
+        switch (myCurrentMode)
+        {
+         case CurAction3d_Nothing :
+         if (point.x == myXmin && point.y == myYmin)
+         { // no offset between down and up --> selectEvent
+            myXmax=point.x;  
+            myYmax=point.y;
+            if (nFlags & MULTISELECTIONKEY )
+              MultiInputEvent(point.x,point.y);
+            else
+              InputEvent     (point.x,point.y);
+         } else
+         {
+            myXmax=point.x;            myYmax=point.y;
+            DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_False);
+                   if (nFlags & MULTISELECTIONKEY)
+                               MultiDragEvent(point.x,point.y,1);
+                       else
+                               DragEvent(point.x,point.y,1);
+         }
+         break;
+         case CurAction3d_DynamicZooming :
+             // SetCursor(AfxGetApp()->LoadStandardCursor());         
+              myCurrentMode = CurAction3d_Nothing;
+         break;
+         case CurAction3d_WindowZooming :
+           myXmax=point.x;          myYmax=point.y;
+            DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_False,LongDash);
+              if ((abs(myXmin-myXmax)>ValZWMin) || (abs(myYmin-myYmax)>ValZWMin))
+                                        // Test if the zoom window is greater than a minimale window.
+                       {
+                         // Do the zoom window between Pmin and Pmax
+                         myView->WindowFitAll(myXmin,myYmin,myXmax,myYmax);  
+                       }  
+              myCurrentMode = CurAction3d_Nothing;
+         break;
+         case CurAction3d_DynamicPanning :
+           myCurrentMode = CurAction3d_Nothing;
+         break;
+         case CurAction3d_GlobalPanning :
+              myView->Place(point.x,point.y,myCurZoom); 
+              myCurrentMode = CurAction3d_Nothing;
+        break;
+        case  CurAction3d_DynamicRotation :
+              myCurrentMode = CurAction3d_Nothing;
+        break;
+        default :
+           throw Standard_Failure(" incompatible Current Mode ");
+        break;
+        } //switch (myCurrentMode)
+    } //       else // if ( Ctrl )
+}
+
+void CHLRView3D::OnRButtonDown(UINT nFlags, CPoint point) 
+{
+   if ( nFlags & CASCADESHORTCUTKEY ) 
+         {
+           if (!myDegenerateModeIsOn)
+             myView->SetDegenerateModeOn();
+           myView->StartRotation(point.x,point.y);  
+         }
+       else // if ( CASCADESHORTCUTKEY )
+         {
+#ifdef POPUPONBUTTONDOWN
+           GetDocument()->Popup(point.x,point.y, myView);
+#endif 
+      }        
+}
+
+void CHLRView3D::OnMouseMove(UINT nFlags, CPoint point) 
+{
+    //   ============================  LEFT BUTTON =======================
+  if ( nFlags & MK_LBUTTON)
+    {
+     if ( nFlags & CASCADESHORTCUTKEY ) 
+         {
+           // move with MB1 and Control : on the dynamic zooming  
+           // Do the zoom in function of mouse's coordinates  
+           myView->Zoom(myXmax,myYmax,point.x,point.y); 
+           // save the current mouse coordinate in min 
+               myXmax = point.x; 
+        myYmax = point.y;      
+         }
+         else // if ( Ctrl )
+         {
+        switch (myCurrentMode)
+        {
+         case CurAction3d_Nothing :
+            DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_False);
+                  myXmax = point.x; 
+           myYmax = point.y;
+           if (nFlags & MULTISELECTIONKEY)             
+                    MultiDragEvent(myXmax,myYmax,0);
+           else
+             DragEvent(myXmax,myYmax,0);
+            DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_True);
+          break;
+         case CurAction3d_DynamicZooming :
+              myView->Zoom(myXmax,myYmax,point.x,point.y); 
+              // save the current mouse coordinate in min \n";
+              myXmax=point.x;  myYmax=point.y;
+         break;
+         case CurAction3d_WindowZooming :
+                  myXmax = point.x; myYmax = point.y;  
+            DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_False,LongDash);
+            DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_True,LongDash);
+         break;
+         case CurAction3d_DynamicPanning :
+                  myView->Pan(point.x-myXmax,myYmax-point.y); // Realize the panning
+                  myXmax = point.x; myYmax = point.y;  
+         break;
+         case CurAction3d_GlobalPanning : // nothing           
+        break;
+        case  CurAction3d_DynamicRotation :
+          myView->Rotation(point.x,point.y);
+             myView->Redraw();
+        break;
+        default :
+           throw Standard_Failure(" incompatible Current Mode ");
+        break;
+        }//  switch (myCurrentMode)
+      }// if ( nFlags & CASCADESHORTCUTKEY )  else 
+    } else //   if ( nFlags & MK_LBUTTON) 
+    //   ============================  MIDDLE BUTTON =======================
+    if ( nFlags & MK_MBUTTON)
+    {
+     if ( nFlags & CASCADESHORTCUTKEY ) 
+         {
+               myView->Pan(point.x-myXmax,myYmax-point.y); // Realize the panning
+               myXmax = point.x; myYmax = point.y;     
+
+         }
+    } else //  if ( nFlags & MK_MBUTTON)
+    //   ============================  RIGHT BUTTON =======================
+    if ( nFlags & MK_RBUTTON)
+    {
+     if ( nFlags & CASCADESHORTCUTKEY ) 
+         {
+        myView->Rotation(point.x,point.y);
+         }
+    }else //if ( nFlags & MK_RBUTTON)
+    //   ============================  NO BUTTON =======================
+    {  // No buttons 
+         myXmax = point.x; myYmax = point.y;   
+         if (nFlags & MULTISELECTIONKEY)
+               MultiMoveEvent(point.x,point.y);
+         else
+               MoveEvent(point.x,point.y);
+   }
+}
+
+void CHLRView3D::DragEvent(const Standard_Integer  x        ,
+                                                 const Standard_Integer  y        ,
+                                                 const Standard_Integer  TheState )
+{
+
+    // TheState == -1  button down
+       // TheState ==  0  move
+       // TheState ==  1  button up
+
+    static Standard_Integer theButtonDownX=0;
+    static Standard_Integer theButtonDownY=0;
+
+       if (TheState == -1)
+    {
+      theButtonDownX=x;
+      theButtonDownY=y;
+    }
+
+  if (TheState == 0)
+  {
+    GetDocument()->GetAISContext()->SelectRectangle (Graphic3d_Vec2i (theButtonDownX,theButtonDownY),
+                                                     Graphic3d_Vec2i (x,y),
+                                                     myView);
+  }
+}
+
+//-----------------------------------------------------------------------------------------
+//
+//-----------------------------------------------------------------------------------------
+void CHLRView3D::InputEvent(const Standard_Integer  x     ,
+                                                  const Standard_Integer  y     ) 
+{
+  GetDocument()->GetAISContext()->SelectDetected();
+}
+
+//-----------------------------------------------------------------------------------------
+//
+//-----------------------------------------------------------------------------------------
+void CHLRView3D::MoveEvent(const Standard_Integer  x       ,
+                                  const Standard_Integer  y       ) 
+{
+      GetDocument()->GetAISContext()->MoveTo(x,y,myView);
+}
+
+//-----------------------------------------------------------------------------------------
+//
+//-----------------------------------------------------------------------------------------
+void CHLRView3D::MultiMoveEvent(const Standard_Integer  x       ,
+                                  const Standard_Integer  y       ) 
+{
+      GetDocument()->GetAISContext()->MoveTo(x,y,myView);
+}
+
+//-----------------------------------------------------------------------------------------
+//
+//-----------------------------------------------------------------------------------------
+void CHLRView3D::MultiDragEvent(const Standard_Integer  x        ,
+                                                                          const Standard_Integer  y        ,
+                                                                          const Standard_Integer  TheState ) 
+{
+    static Standard_Integer theButtonDownX=0;
+    static Standard_Integer theButtonDownY=0;
+
+       if (TheState == -1)
+    {
+      theButtonDownX=x;
+      theButtonDownY=y;
+    }
+
+  if (TheState == 0)
+  {
+    GetDocument()->GetAISContext()->SelectRectangle (Graphic3d_Vec2i (theButtonDownX,theButtonDownY),
+                                                     Graphic3d_Vec2i (x,y),
+                                                     myView,
+                                                     AIS_SelectionScheme_XOR);
+  }
+}
+
+
+//-----------------------------------------------------------------------------------------
+//
+//-----------------------------------------------------------------------------------------
+void CHLRView3D::MultiInputEvent(const Standard_Integer  x       ,
+                                                                           const Standard_Integer  y       ) 
+{
+  GetDocument()->GetAISContext()->SelectDetected (AIS_SelectionScheme_XOR);
+}
+
diff --git a/samples/mfc/standard/04_HLR/src/HLRView3D.h b/samples/mfc/standard/04_HLR/src/HLRView3D.h
new file mode 100644 (file)
index 0000000..a115e84
--- /dev/null
@@ -0,0 +1,85 @@
+// HLRView.h : interface of the CHLRView3D class
+//
+/////////////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_HLRVIEW3D_H__376C7010_0B3D_11D2_8E0A_0800369C8A03_3D_INCLUDED_)
+#define AFX_HLRVIEW3D_H__376C7010_0B3D_11D2_8E0A_0800369C8A03_3D_INCLUDED_
+
+#if _MSC_VER >= 1000
+#pragma once
+#endif // _MSC_VER >= 1000
+
+#include <OCC_3dView.h>
+
+class CHLRView3D : public OCC_3dView
+{
+protected: // create from serialization only
+       CHLRView3D();
+       DECLARE_DYNCREATE(CHLRView3D)
+
+// Attributes
+public:
+       CHLRDoc* GetDocument();
+
+// Operations
+public:
+
+// Overrides
+       // ClassWizard generated virtual function overrides
+       //{{AFX_VIRTUAL(CHLRView3D)
+       public:
+       virtual void OnInitialUpdate(); // CasCade
+       //}}AFX_VIRTUAL
+
+// Implementation
+public:
+       virtual ~CHLRView3D();
+#ifdef _DEBUG
+       virtual void AssertValid() const;
+       virtual void Dump(CDumpContext& dc) const;
+#endif
+
+protected:
+
+// Generated message map functions
+protected:
+       //{{AFX_MSG(CHLRView3D)
+               // NOTE - the ClassWizard will add and remove member functions here.
+               //    DO NOT EDIT what you see in these blocks of generated code !
+// CasCade :
+       afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
+       afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
+       afx_msg void OnMouseMove(UINT nFlags, CPoint point);
+       afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
+       //}}AFX_MSG
+       DECLARE_MESSAGE_MAP()
+
+       void DragEvent      (const Standard_Integer  x       ,
+                                    const Standard_Integer  y       ,
+                                    const Standard_Integer  TheState);
+    void InputEvent     (const Standard_Integer  x       ,
+                                    const Standard_Integer  y       );  
+    void MoveEvent      (const Standard_Integer  x       ,
+                         const Standard_Integer  y       ); 
+    void MultiMoveEvent (const Standard_Integer  x       ,
+                         const Standard_Integer  y       ); 
+    void MultiDragEvent (const Standard_Integer  x       ,
+                                        const Standard_Integer  y       ,
+                                        const Standard_Integer  TheState); 
+    void MultiInputEvent(const Standard_Integer  x       ,
+                                        const Standard_Integer  y       ); 
+
+
+};
+
+#ifndef _DEBUG  // debug version in HLRView.cpp
+inline CHLRDoc* CHLRView3D::GetDocument()
+   { return (CHLRDoc*)m_pDocument; }
+#endif
+
+/////////////////////////////////////////////////////////////////////////////
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_HLRVIEW3D_H__376C7010_0B3D_11D2_8E0A_0800369C8A03_3D_INCLUDED_)
diff --git a/samples/mfc/standard/04_HLR/src/SelectionDialog.cpp b/samples/mfc/standard/04_HLR/src/SelectionDialog.cpp
new file mode 100644 (file)
index 0000000..d7a44fc
--- /dev/null
@@ -0,0 +1,562 @@
+// SelectionDialog.cpp : implementation file
+//
+
+#include "stdafx.h"
+
+#include "SelectionDialog.h"
+
+#include "HLRApp.h"
+#include "OCC_2dView.h"
+#include <ISession2D/ISession2D_Shape.h>
+
+#ifdef _DEBUG
+//#define new DEBUG_NEW
+#undef THIS_FILE
+static char THIS_FILE[] = __FILE__;
+#endif
+
+// the key for shortcut ( use to activate dynamic rotation, panning )
+#define CASCADESHORTCUTKEY MK_CONTROL
+
+/////////////////////////////////////////////////////////////////////////////
+// CSelectionDialog dialog
+
+CSelectionDialog::CSelectionDialog (CHLRDoc* aDoc,CWnd* pParent /*=NULL*/)
+: CDialog(CSelectionDialog::IDD, pParent)
+{
+  myDoc =  aDoc;
+  myIsDisplayed = false;
+  //{{AFX_DATA_INIT(CSelectionDialog)
+  m_Algo        = 1;
+  m_DisplayMode = 0;
+  m_NbIsos      = 2;
+  m_DrawHiddenLine = TRUE;
+  m_HlrModeIsOn = TRUE;
+  //}}AFX_DATA_INIT
+}
+
+void CSelectionDialog::DoDataExchange (CDataExchange* pDX)
+{
+  CDialog::DoDataExchange(pDX);
+  //{{AFX_DATA_MAP(CSelectionDialog)
+  DDX_Radio(pDX, IDC_PolyAlgo, m_Algo);
+  DDX_Radio(pDX, IDC_DisplayDefault, m_DisplayMode);
+  DDX_Text(pDX, IDC_EDIT_NBIsos, m_NbIsos);
+  DDX_Check(pDX, IDC_DrawHiddenLine, m_DrawHiddenLine);
+  DDX_Check(pDX, IDC_HlrModeIsOn, m_HlrModeIsOn);
+  //}}AFX_DATA_MAP
+}
+
+
+BEGIN_MESSAGE_MAP(CSelectionDialog, CDialog)
+  //{{AFX_MSG_MAP(CSelectionDialog)
+  ON_BN_CLICKED(ID_GetShape, OnGetSelectedShapes)
+  ON_BN_CLICKED(IDC_DisplayDefault, OnDisplayDefault)
+  ON_BN_CLICKED(IDC_VIsoParametrics, OnVIsoParametrics)
+  ON_BN_CLICKED(IDC_VApparentContour, OnVApparentContour)
+  ON_BN_CLICKED(IDC_VSewingEdges, OnVSewingEdges)
+  ON_BN_CLICKED(IDC_VsharpEdges, OnVsharpEdges)
+  ON_BN_CLICKED(IDC_VsmoothEdges, OnVsmoothEdges)
+  ON_BN_CLICKED(IDC_HsharpEdges, OnHsharpEdges)
+  ON_BN_CLICKED(IDC_HsmoothEdges, OnHsmoothEdges)
+  ON_BN_CLICKED(IDC_HSewingEdges, OnHSewingEdges)
+  ON_BN_CLICKED(IDC_HIsoParametrics, OnHIsoParametrics)
+  ON_BN_CLICKED(IDC_HApparentContour, OnHApparentContour)
+  ON_EN_CHANGE(IDC_EDIT_NBIsos, OnChangeEDITNBIsos)
+  ON_BN_CLICKED(IDC_Algo, OnAlgo)
+  ON_BN_CLICKED(IDC_PolyAlgo, OnPolyAlgo)
+  ON_BN_CLICKED(ID_Update2D, OnUpdate2D)
+  ON_BN_CLICKED(IDC_TopView, OnTopView)
+  ON_BN_CLICKED(IDC_BottomView, OnBottomView)
+  ON_BN_CLICKED(IDC_LeftView, OnLeftView)
+  ON_BN_CLICKED(IDC_RightView, OnRightView)
+  ON_BN_CLICKED(IDC_FrontView, OnFrontView)
+  ON_BN_CLICKED(IDC_BackView, OnBackView)
+  ON_BN_CLICKED(IDC_AxoView, OnAxoView)
+  ON_WM_LBUTTONDOWN()
+  ON_WM_LBUTTONUP()
+  ON_WM_RBUTTONDOWN()
+  ON_WM_RBUTTONUP()
+  ON_WM_MOUSEMOVE()
+  ON_BN_CLICKED(IDC_DrawHiddenLine, OnDrawHiddenLine)
+  ON_BN_CLICKED(IDC_HlrModeIsOn, OnHlrMode)
+  ON_WM_DRAWITEM()
+  ON_WM_PAINT()
+  //}}AFX_MSG_MAP
+END_MESSAGE_MAP()
+
+/////////////////////////////////////////////////////////////////////////////
+// CSelectionDialog message handlers
+
+BOOL CSelectionDialog::OnInitDialog()
+{
+  CDialog::OnInitDialog();
+
+  VERIFY(TopView.AutoLoad (IDC_TopView, this));
+  VERIFY(BottomView.AutoLoad (IDC_BottomView, this)) ;
+  VERIFY(LeftView  .AutoLoad (IDC_LeftView  , this)) ;
+  VERIFY(RightView .AutoLoad (IDC_RightView , this)) ;
+  VERIFY(FrontView .AutoLoad (IDC_FrontView , this)) ;
+  VERIFY(BackView  .AutoLoad (IDC_BackView  , this)) ;
+  VERIFY(AxoView   .AutoLoad (IDC_AxoView   , this)) ;
+
+  // get the View Window position to managed mouse move
+  CRect BoxRect,ViewRect;
+  GetWindowRect (BoxRect);
+  CWnd * TheViewerWindow = GetDlgItem (IDC_HlrDlgView);
+  TheViewerWindow->GetWindowRect (ViewRect);
+  myPosMinX = ViewRect.TopLeft().x - BoxRect.TopLeft().x;
+  myPosMaxX = ViewRect.Width() + myPosMinX;
+  myPosMinY = ViewRect.TopLeft().y - BoxRect.TopLeft().y;
+  myPosMaxY = myPosMinY + ViewRect.Height();
+
+  ShowHideButton (Standard_False);
+  OnDisplay (true);
+
+  // return TRUE unless you set the focus to a control
+  // EXCEPTION: OCX Property Pages should return FALSE
+  return TRUE;
+}
+
+void CSelectionDialog::OnDisplay (bool isFit)
+{
+  // GetDlgItem(IDC_HlrDlgView)->SetRedraw() wrapping of this method makes view blinking,
+  // but displaying of big models may be faster.
+  //GetDlgItem(IDC_HlrDlgView)->SetRedraw(true);
+  if (!myIsDisplayed)
+  {
+    Handle(Graphic3d_GraphicDriver) aGraphicDriver =
+      ((CHLRApp*)AfxGetApp())->GetGraphicDriver();
+
+    myActiveViewer = new V3d_Viewer (aGraphicDriver);
+    myActiveViewer->SetDefaultLights();
+    myActiveViewer->SetLightOn();
+    myActiveView = myActiveViewer->CreateView();
+
+    Handle(WNT_Window) aWNTWindow = new WNT_Window (GetDlgItem (IDC_HlrDlgView)->GetSafeHwnd(),
+                                                    Quantity_NOC_GRAY);
+    myActiveView->SetComputedMode (m_HlrModeIsOn != 0);
+    myActiveView->SetWindow(aWNTWindow);
+
+    myInteractiveContext = new AIS_InteractiveContext (myActiveViewer);
+
+    // TRIHEDRON
+    Handle(Geom_Axis2Placement) aTrihedronAxis = new Geom_Axis2Placement (gp::XOY());
+    myTrihedron = new AIS_Trihedron (aTrihedronAxis);
+
+    myInteractiveContext->Display (myTrihedron, Standard_False);
+    myIsDisplayed = Standard_True;
+  }
+  if(isFit)
+  {
+    myActiveView->ZFitAll();
+    myActiveView->FitAll();
+  }
+
+  myActiveView->Redraw();
+  //GetDlgItem (IDC_HlrDlgView)->SetRedraw (false);
+}
+
+
+void CSelectionDialog::SetTitle (const CString & aTitle)
+{
+  SetWindowText (aTitle);
+}
+
+void CSelectionDialog::UpdateViews()
+{
+  // Clear HLR dialog view
+  myInteractiveContext->RemoveAll (Standard_False);
+  myInteractiveContext->Display (myTrihedron, Standard_False);
+
+  UpdateProjector();
+
+  // Display chosen shapes in the HLR dialog view.
+  Standard_Boolean OneOrMoreFound = Standard_False;
+  for (myDoc->GetAISContext()->InitSelected();
+       myDoc->GetAISContext()->MoreSelected();
+       myDoc->GetAISContext()->NextSelected())
+  {
+    Handle(AIS_Shape) anAISShape = Handle(AIS_Shape)::DownCast (myDoc->GetAISContext()->SelectedInteractive());
+    if (!anAISShape.IsNull())
+    {
+      OneOrMoreFound = Standard_True;
+      myInteractiveContext->Display (anAISShape, Standard_False);
+    }
+  }
+  myInteractiveContext->UpdateCurrentViewer();
+  // Apply HLR to chosen shapes and display result into the 2d view.
+  Apply();
+  // Update viewer
+  myDoc->FitAll2DViews (Standard_False);
+  // Check the selection: if no object : disable all possibility.
+  ShowHideButton (OneOrMoreFound);
+  OnDisplay (true);
+}
+
+void CSelectionDialog::OnGetSelectedShapes()
+{
+  // Create new displayable shape.
+  myDisplayableShape = new ISession2D_Shape();
+  UpdateProjector();
+  myDisplayableShape->SetNbIsos (m_NbIsos);
+
+  // Clear HLR dialog view
+  myInteractiveContext->RemoveAll (Standard_False);
+  myInteractiveContext->Display (myTrihedron, Standard_False);
+
+  Standard_Boolean OneOrMoreFound = Standard_False;
+  for (myDoc->GetAISContext()->InitSelected();
+       myDoc->GetAISContext()->MoreSelected();
+       myDoc->GetAISContext()->NextSelected())
+  {
+    Handle(AIS_Shape) anAISShape = Handle(AIS_Shape)::DownCast (myDoc->GetAISContext()->SelectedInteractive());
+
+    if (!anAISShape.IsNull())
+    {
+      OneOrMoreFound = Standard_True;
+      TopoDS_Shape aShape = anAISShape->Shape();
+      myDisplayableShape->Add (aShape);
+      Handle(AIS_Shape) aSelectedShape = new AIS_Shape (aShape);
+      myInteractiveContext->Display (aSelectedShape, Standard_False);
+    }
+  }
+  myInteractiveContext->UpdateCurrentViewer();
+  // Apply HLR to chosen shapes and display result into the 2d view.
+  Apply();
+  // Update viewer
+  myDoc->FitAll2DViews (Standard_False);
+
+  // Check the selection: if no object : disable all possibility.
+  ShowHideButton (OneOrMoreFound);
+  OnDisplay (true);
+}
+
+void CSelectionDialog::Apply()
+{
+  SetCursor(AfxGetApp()->LoadStandardCursor (IDC_WAIT));
+  myDoc->GetInteractiveContext2D()->RemoveAll (Standard_False);
+  UpdateData (true);
+
+  Standard_Integer aDisplayMode = m_DisplayMode;
+
+  if (m_Algo == 1)
+  {
+    aDisplayMode += 100;
+  }
+
+  if (!m_DrawHiddenLine)
+  {
+    aDisplayMode += 1000;
+  }
+
+  myDoc->GetInteractiveContext2D()->Display (myDisplayableShape,  // object
+                                             aDisplayMode,
+                                             aDisplayMode,
+                                             Standard_True); // Redraw
+
+  SetCursor(AfxGetApp()->LoadStandardCursor (IDC_ARROW));
+}
+
+void CSelectionDialog::UpdateProjector()
+{
+  const Handle(Graphic3d_Camera)& aCam = myActiveView->Camera();
+  gp_Dir aBackDir = -aCam->Direction();
+  gp_Dir aXpers   = aCam->Up().Crossed (aBackDir);
+  gp_Ax3 anAx3 (aCam->Center(), aBackDir, aXpers);
+  gp_Trsf aTrsf;
+  aTrsf.SetTransformation (anAx3);
+  HLRAlgo_Projector aProjector (aTrsf, !aCam->IsOrthographic(), aCam->Scale());
+
+  OnDisplay(false);
+
+  if (myDisplayableShape.IsNull()) return;
+  myDisplayableShape->SetProjector(aProjector);
+}
+
+void CSelectionDialog::ShowHideButton(Standard_Boolean EnableButton)
+{
+  UpdateData(true);
+
+  GetDlgItem(ID_Update2D          )->EnableWindow(EnableButton);
+  GetDlgItem(IDC_DisplayDefault   )->EnableWindow(EnableButton);
+  GetDlgItem(IDC_PolyAlgo         )->EnableWindow(EnableButton);
+  GetDlgItem(IDC_Algo             )->EnableWindow(EnableButton);
+
+  GetDlgItem(IDC_VsharpEdges      )->EnableWindow(EnableButton);
+  GetDlgItem(IDC_VsmoothEdges     )->EnableWindow(EnableButton);
+  GetDlgItem(IDC_VSewingEdges     )->EnableWindow(EnableButton);
+  GetDlgItem(IDC_VApparentContour )->EnableWindow(EnableButton);
+  GetDlgItem(IDC_VIsoParametrics  )->EnableWindow(EnableButton);
+
+  GetDlgItem(IDC_DrawHiddenLine   )->EnableWindow(EnableButton);
+
+  GetDlgItem(IDC_HsmoothEdges     )->EnableWindow(EnableButton && m_DrawHiddenLine);
+  GetDlgItem(IDC_HSewingEdges     )->EnableWindow(EnableButton && m_DrawHiddenLine);
+  GetDlgItem(IDC_HApparentContour )->EnableWindow(EnableButton && m_DrawHiddenLine);
+  GetDlgItem(IDC_HsharpEdges      )->EnableWindow(EnableButton && m_DrawHiddenLine);
+  GetDlgItem(IDC_HIsoParametrics  )->EnableWindow(EnableButton && m_DrawHiddenLine);
+
+  GetDlgItem(IDC_EDIT_NBIsos      )->EnableWindow(EnableButton);
+  GetDlgItem(IDC_STATIC_NbIsos    )->EnableWindow(EnableButton);
+
+  if(m_Algo == 0)
+  {
+    if (m_DisplayMode == 5 || m_DisplayMode == 10)
+    {
+      m_DisplayMode=0;
+    }
+
+    GetDlgItem(IDC_VIsoParametrics)->EnableWindow(false);
+    GetDlgItem(IDC_HIsoParametrics)->EnableWindow(false);
+    GetDlgItem(IDC_STATIC_NbIsos)  ->EnableWindow(false);
+    GetDlgItem(IDC_EDIT_NBIsos)    ->EnableWindow(false);
+  }
+  else
+  {
+    GetDlgItem(IDC_VIsoParametrics)->EnableWindow(true);
+    GetDlgItem(IDC_HIsoParametrics)->EnableWindow(m_DrawHiddenLine);
+    GetDlgItem(IDC_STATIC_NbIsos)  ->EnableWindow(true);
+    GetDlgItem(IDC_EDIT_NBIsos)    ->EnableWindow(true);
+  }
+  UpdateData(false);
+} 
+
+void CSelectionDialog::OnDisplayDefault() 
+{ Apply(); }
+void CSelectionDialog::OnVIsoParametrics() 
+{ Apply(); }
+void CSelectionDialog::OnVApparentContour() 
+{ Apply(); }
+void CSelectionDialog::OnVSewingEdges() 
+{ Apply(); }
+void CSelectionDialog::OnVsharpEdges() 
+{ Apply(); }
+void CSelectionDialog::OnVsmoothEdges() 
+{ Apply(); }
+void CSelectionDialog::OnHsharpEdges() 
+{ Apply(); }
+void CSelectionDialog::OnHsmoothEdges() 
+{ Apply(); }
+void CSelectionDialog::OnHSewingEdges() 
+{ Apply(); }
+void CSelectionDialog::OnHIsoParametrics() 
+{ Apply(); }
+void CSelectionDialog::OnHApparentContour() 
+{ Apply(); }
+
+void CSelectionDialog::OnChangeEDITNBIsos() 
+{
+  UpdateData(true);
+  myDisplayableShape->SetNbIsos(m_NbIsos);
+  Apply(); 
+}
+void CSelectionDialog::OnAlgo() 
+{
+  ShowHideButton();
+  Apply();
+}
+
+void CSelectionDialog::OnPolyAlgo() 
+{
+  ShowHideButton();
+  Apply();
+}
+
+void CSelectionDialog::OnDrawHiddenLine() 
+{
+  UpdateData(true);
+  if(m_DisplayMode >=6 )
+  {
+    m_DisplayMode=0;
+    UpdateData(false);
+  }
+  ShowHideButton();
+  Apply();
+}
+
+void CSelectionDialog::OnUpdate2D() 
+{
+  SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
+  myDoc->ActivateFrame(RUNTIME_CLASS(OCC_2dView),SW_NORMAL);
+  UpdateProjector();
+  Apply();
+  myDoc->FitAll2DViews(Standard_False);
+  SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
+}
+
+void CSelectionDialog::OnTopView() 
+{
+  myActiveView->SetProj(V3d_Zpos);
+  OnDisplay(true);
+}
+
+void CSelectionDialog::OnBottomView() 
+{
+  myActiveView->SetProj(V3d_Zneg);
+  OnDisplay(true);
+}
+
+void CSelectionDialog::OnLeftView() 
+{
+  myActiveView->SetProj(V3d_Xneg);
+  OnDisplay(true);
+}
+
+void CSelectionDialog::OnRightView() 
+{
+  myActiveView->SetProj(V3d_Xpos);
+  OnDisplay(true);
+}
+
+void CSelectionDialog::OnFrontView() 
+{
+  myActiveView->SetProj(V3d_Yneg);
+  OnDisplay(true);
+}
+
+void CSelectionDialog::OnBackView() 
+{
+  myActiveView->SetProj(V3d_Ypos);
+  OnDisplay(true);
+}
+
+void CSelectionDialog::OnAxoView() 
+{
+  myActiveView->SetProj(V3d_XposYnegZpos);
+  OnDisplay(true);
+}
+
+void CSelectionDialog::OnHlrMode()
+{
+  UpdateData(true);
+
+  if (!m_HlrModeIsOn)
+  {
+    myActiveView->SetComputedMode (m_HlrModeIsOn != 0);
+    myActiveView->Redraw();
+  }
+  else
+  {
+    SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
+    myActiveView->SetComputedMode (m_HlrModeIsOn != 0);
+    myActiveView->Redraw();
+    SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
+  }
+  OnDisplay(false);
+}
+
+void CSelectionDialog::OnLButtonDown(UINT nFlags, CPoint point) 
+{
+  CDialog::OnLButtonDown(nFlags, point);
+
+  if ((myPosMinX > point.x)||(myPosMaxX < point.x) ||
+    (myPosMinY > point.y) ||(myPosMaxY < point.y))
+    return;
+
+  //  save the current mouse coordinate
+  myXmax=point.x;  myYmax=point.y;
+}
+
+void CSelectionDialog::OnLButtonUp(UINT nFlags, CPoint point) 
+{
+  CDialog::OnLButtonUp(nFlags, point);
+
+  if ((myPosMinX > point.x)||(myPosMaxX < point.x) ||
+    (myPosMinY > point.y) ||(myPosMaxY < point.y))
+    return;
+}
+
+void CSelectionDialog::OnRButtonDown(UINT nFlags, CPoint point) 
+{
+  CDialog::OnRButtonDown(nFlags, point);
+
+  if ((myPosMinX > point.x) || (myPosMaxX < point.x) ||
+      (myPosMinY > point.y) || (myPosMaxY < point.y))
+  {
+    return;
+  }
+
+  if ( nFlags & CASCADESHORTCUTKEY )
+  {
+    if (m_HlrModeIsOn)
+    {
+      myActiveView->SetComputedMode (Standard_False);
+    }
+    myActiveView->StartRotation (point.x, point.y);
+    OnDisplay (false);
+  }
+}
+
+void CSelectionDialog::OnRButtonUp(UINT nFlags, CPoint point) 
+{
+  CDialog::OnRButtonUp(nFlags, point);
+
+  if ((myPosMinX > point.x) || (myPosMaxX < point.x) ||
+      (myPosMinY > point.y) || (myPosMaxY < point.y))
+  {
+    return;
+  }
+
+  SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
+  // reset the good HLR mode according to the stored one
+  //   --> dynamic rotation may have change it
+  if (m_HlrModeIsOn != 0)
+  {
+    myActiveView->SetComputedMode (true);
+    myActiveView->Redraw();
+  }
+  OnDisplay(false);
+  SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
+}
+
+void CSelectionDialog::OnMouseMove(UINT nFlags, CPoint point) 
+{
+  CDialog::OnMouseMove(nFlags, point);
+
+  if ((myPosMinX > point.x)||(myPosMaxX < point.x) ||
+    (myPosMinY > point.y) ||(myPosMaxY < point.y))
+    return;
+
+  if ( nFlags & MK_LBUTTON)
+  {//left button
+    if ( nFlags & CASCADESHORTCUTKEY ) 
+    {
+      // move with MB1 and Control : on the dynamic zooming  
+      // Do the zoom in function of mouse's coordinates  
+      myActiveView->Zoom(myXmax,myYmax,point.x,point.y); 
+      // save the current mouse coordinate 
+      myXmax = point.x;    myYmax = point.y;   
+    }// if ( nFlags & CASCADESHORTCUTKEY )  else 
+  }
+  else if ( nFlags & MK_MBUTTON)
+  {
+    if ( nFlags & CASCADESHORTCUTKEY ) 
+    {
+      myActiveView->Pan(point.x-myXmax,myYmax-point.y); // Realize the panning
+      myXmax = point.x; myYmax = point.y;      
+    }
+  }
+  else if ( nFlags & MK_RBUTTON)
+  {//right button
+    if ( nFlags & CASCADESHORTCUTKEY ) 
+    {
+      myActiveView->Rotation(point.x,point.y);
+    }
+  } 
+  else
+  {// No buttons 
+    myXmax = point.x; myYmax = point.y;        
+  }
+  OnDisplay(false);
+}
+
+void CSelectionDialog::OnOK() 
+{
+  CDialog::OnOK();
+}
+
+void CSelectionDialog::OnPaint() 
+{
+  OnDisplay(false);
+}
diff --git a/samples/mfc/standard/04_HLR/src/SelectionDialog.h b/samples/mfc/standard/04_HLR/src/SelectionDialog.h
new file mode 100644 (file)
index 0000000..7aa6eeb
--- /dev/null
@@ -0,0 +1,127 @@
+#if !defined(AFX_SelectionDialog_H__0307BDF3_AF53_11D1_8DAE_0800369C8A03__INCLUDED_)
+#define AFX_SelectionDialog_H__0307BDF3_AF53_11D1_8DAE_0800369C8A03__INCLUDED_
+
+#if _MSC_VER >= 1000
+#pragma once
+#endif // _MSC_VER >= 1000
+// SelectionDialog.h : header file
+//
+#include "resource.h"
+#include <ISession2D/ISession2D_Shape.h>
+#include "SelectionDialog.h"
+
+class CHLRDoc;
+/////////////////////////////////////////////////////////////////////////////
+// CSelectionDialog dialog
+
+class CSelectionDialog : public CDialog
+{
+  // Construction
+public:
+  // standard constructor
+  CSelectionDialog (CHLRDoc* aDoc,CWnd* pParent = NULL);
+
+  void SetTitle (const CString& aTitle);
+
+  void OnDisplay (bool isFit);
+
+  const Handle(ISession2D_Shape) DiplayableShape() { return myDisplayableShape; }
+
+  // Updates in dialog view and main 2d and 3d views shapes for which HLR presentations are going to be displayed in 2d view.
+  void UpdateViews();
+
+  // Dialog Data
+  //{{AFX_DATA(CSelectionDialog)
+  enum { IDD = IDD_SelectionDialog };
+  int m_Algo;
+  int m_DisplayMode;
+  int m_NbIsos;
+  BOOL m_DrawHiddenLine;
+  BOOL m_HlrModeIsOn;
+  //}}AFX_DATA
+
+  // Overrides
+  // ClassWizard generated virtual function overrides
+  //{{AFX_VIRTUAL(CSelectionDialog)
+protected:
+  virtual void DoDataExchange(CDataExchange* pDX);
+  //}}AFX_VIRTUAL
+
+  // Implementation
+protected:
+
+  // Generated message map functions
+  //{{AFX_MSG(CSelectionDialog)
+  virtual BOOL OnInitDialog();
+  afx_msg void OnGetSelectedShapes();
+  afx_msg void OnDisplayDefault();
+  afx_msg void OnVIsoParametrics();
+  afx_msg void OnVApparentContour();
+  afx_msg void OnVSewingEdges();
+  afx_msg void OnVsharpEdges();
+  afx_msg void OnVsmoothEdges();
+  afx_msg void OnHsharpEdges();
+  afx_msg void OnHsmoothEdges();
+  afx_msg void OnHSewingEdges();
+  afx_msg void OnHIsoParametrics();
+  afx_msg void OnHApparentContour();
+  afx_msg void OnChangeEDITNBIsos();
+  afx_msg void OnAlgo();
+  afx_msg void OnPolyAlgo();
+  afx_msg void OnUpdate2D();
+  afx_msg void OnTopView();
+  afx_msg void OnBottomView();
+  afx_msg void OnLeftView();
+  afx_msg void OnRightView();
+  afx_msg void OnFrontView();
+  afx_msg void OnBackView();
+  afx_msg void OnAxoView();
+  virtual void OnOK();
+  afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
+  afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
+  afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
+  afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
+  afx_msg void OnMouseMove(UINT nFlags, CPoint point);
+  afx_msg void OnDrawHiddenLine();
+  afx_msg void OnHlrMode();
+  afx_msg void OnPaint();
+  //}}AFX_MSG
+  DECLARE_MESSAGE_MAP()
+private :
+  void UpdateProjector();
+  void ShowHideButton(Standard_Boolean EnableButton=Standard_True);
+  void Apply();
+  CHLRDoc* myDoc;
+
+  Handle(AIS_InteractiveContext) myInteractiveContext;
+  Handle(V3d_Viewer) myActiveViewer;
+  Handle(V3d_View)   myActiveView;
+  Handle(AIS_Trihedron)          myTrihedron;
+  Handle(ISession2D_Shape)       myDisplayableShape;
+
+  Standard_Integer myPosMaxX;
+  Standard_Integer myPosMinX;
+  Standard_Integer myBoxX;
+
+  Standard_Integer myPosMinY;
+  Standard_Integer myPosMaxY;
+  Standard_Integer myBoxY;
+
+  Standard_Integer   myXmax;
+  Standard_Integer   myYmax;
+
+protected:
+  CBitmapButton TopView;
+  CBitmapButton BottomView;
+  CBitmapButton LeftView;
+  CBitmapButton RightView;
+  CBitmapButton FrontView;
+  CBitmapButton BackView;
+  CBitmapButton AxoView;
+  bool myIsDisplayed;
+};
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_SelectionDialog_H__0307BDF3_AF53_11D1_8DAE_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/04_HLR/src/StdAfx.cpp b/samples/mfc/standard/04_HLR/src/StdAfx.cpp
new file mode 100644 (file)
index 0000000..da90289
--- /dev/null
@@ -0,0 +1,6 @@
+// stdafx.cpp : source file that includes just the standard includes
+//     SampleHLR.pch will be the pre-compiled header
+//     stdafx.obj will contain the pre-compiled type information
+
+#include "stdafx.h"
+
diff --git a/samples/mfc/standard/04_HLR/src/StdAfx.h b/samples/mfc/standard/04_HLR/src/StdAfx.h
new file mode 100644 (file)
index 0000000..7250bcb
--- /dev/null
@@ -0,0 +1,205 @@
+// stdafx.h : include file for standard system include files,
+//  or project specific include files that are used frequently, but
+//      are changed infrequently
+//
+
+#if !defined(AFX_STDAFX_H__376C7006_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_)
+#define AFX_STDAFX_H__376C7006_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_
+
+#if _MSC_VER >= 1000
+#pragma once
+#endif // _MSC_VER >= 1000
+
+#define VC_EXTRALEAN           // Exclude rarely-used stuff from Windows headers
+
+#include <afxwin.h>         // MFC core and standard components
+#include <afxext.h>         // MFC extensions
+#include <afxdisp.h>        // MFC OLE automation classes
+#ifndef _AFX_NO_AFXCMN_SUPPORT
+#include <afxcmn.h>                    // MFC support for Windows Common Controls
+#endif // _AFX_NO_AFXCMN_SUPPORT
+
+
+
+// CasCade :
+
+#define DEFAULT_DEVIATIONCOEFFICIENT 0.001
+#define DEFAULT_DCBIG 0.005
+#define DEFAULT_DCVBIG 0.01
+#define DEFAULT_DCSMALL 0.0002
+#define DEFAULT_DCVSMALL 0.00004
+#define DEFAULT_COLOR Quantity_NOC_CYAN1
+#define DEFAULT_MATERIAL Graphic3d_NameOfMaterial_Plastered
+#define DEFAULT_BACKGROUNDCOLOR Quantity_NOC_MATRAGRAY
+#define DEFAULT_HILIGHTCOLOR Quantity_NOC_YELLOW
+
+#pragma warning(  disable : 4244 )        // Issue warning 4244
+#include <Standard_ShortReal.hxx>
+#pragma warning(  default : 4244 )        // Issue warning 4244
+
+#include <Standard.hxx>
+/*
+#ifndef Version15B
+# ifndef Version15D
+#  ifndef Version20
+#   define Version15B
+#  endif // Version20
+# endif // Version15D
+#endif // Version15B
+
+#pragma message ("=============================")
+#ifdef Version15B
+# pragma message ("Set the libs for version 1.5B")
+#endif // Version15B
+
+#ifdef Version15D
+# pragma message ("Set the libs for version 1.5D")
+#endif // Version15D
+
+#ifdef Version20
+# pragma message ("Set the libs for version 2.0 ")
+#endif // Version20
+#pragma message ("=============================")
+
+#ifdef Version15B
+# pragma comment (lib,"TKTop.lib")
+# pragma comment (lib,"TShort.lib")
+# pragma comment (lib,"TColQuantity.lib")
+#endif
+
+#ifdef Version15D
+# pragma comment (lib,"TKTop.lib")
+#endif
+
+#ifdef Version20
+# pragma comment (lib,"TKTop1.lib")
+# pragma comment (lib,"TKTop2.lib")
+#endif
+
+#pragma message ("Set the specific libs for the application")
+# pragma comment (lib,"TKPrs.lib")
+# pragma comment (lib,"TKGeom.lib")
+# pragma comment (lib,"TKGlt.lib")
+# pragma comment (lib,"TKGraphic.lib")
+# pragma comment (lib,"TKPrsMgr.lib")
+# pragma comment (lib,"TKViewers.lib")
+# pragma comment (lib,"TKSession.lib")
+# pragma comment (lib,"gp.lib")
+# pragma comment (lib,"TKernel.lib")
+# pragma comment (lib,"UnitsAPI.lib")
+# pragma comment (lib,"PTColStd.lib")
+# pragma comment (lib,"TKMgtShape.lib")
+# pragma comment (lib,"TKPShape.lib")
+# pragma comment (lib,"ShapeSchema.lib")
+# pragma comment (lib,"FSD.lib")
+# pragma comment (lib,"OSDriver.lib")
+# pragma comment (lib,"ObjMgt.lib")
+# pragma comment (lib,"TKXSBase.lib")
+# pragma comment (lib,"TKXSIGES.lib")
+# pragma comment (lib,"TKXS214.lib")
+*/
+#include <AIS_InteractiveContext.hxx>
+#include <AIS_InteractiveObject.hxx>
+#include <AIS_Shape.hxx>
+#include <AIS_Trihedron.hxx>
+
+#include <Aspect_Background.hxx>
+#include <Aspect_TypeOfline.hxx>
+#include <Aspect_WidthOfline.hxx>
+#include <Bnd_Box2d.hxx>
+#include <BndLib_Add2dCurve.hxx>
+#include <BRep_Builder.hxx>
+#include <BRepBuilderAPI.hxx>
+#include <BRepTools.hxx>
+#include <Standard_DefineHandle.hxx>
+#include <DsgPrs_LengthPresentation.hxx>
+#include <GCE2d_MakeSegment.hxx>
+#include <GCPnts_TangentialDeflection.hxx>
+#include <Geom_CartesianPoint.hxx>
+#include <Geom_Axis2Placement.hxx>
+#include <Geom2d_BezierCurve.hxx>
+#include <Geom2d_BSplineCurve.hxx>
+#include <Geom2d_Curve.hxx>
+#include <Geom2d_TrimmedCurve.hxx>
+#include <Geom2dAdaptor_Curve.hxx>
+#include <GeomAbs_CurveType.hxx>
+#include <GeomAdaptor_Curve.hxx>
+#include <GeomTools_Curve2dSet.hxx>
+#include <gp_Ax2d.hxx>
+#include <gp_Circ2d.hxx>
+#include <gp_Dir2d.hxx>
+#include <gp_Lin2d.hxx>
+#include <gp_Pnt2d.hxx>
+#include <gp_Vec.hxx>
+#include <gp_Vec2d.hxx>
+#include <OSD_Environment.hxx>
+#include <Precision.hxx>
+#include <Prs3d_Drawer.hxx>
+#include <Prs3d_IsoAspect.hxx>
+#include <Prs3d_LineAspect.hxx>
+#include <Prs3d_Text.hxx>
+#include <Quantity_NameOfColor.hxx>
+#include <Quantity_TypeOfColor.hxx>
+#include <SelectMgr_EntityOwner.hxx>
+#include <SelectMgr_SelectableObject.hxx>
+#include <SelectMgr_Selection.hxx>
+#include <SelectMgr_SelectionManager.hxx>
+
+#include <Standard_Boolean.hxx>
+#include <Standard_CString.hxx>
+#include <Standard_ErrorHandler.hxx>
+#include <Standard_Integer.hxx>
+#include <Standard_IStream.hxx>
+#include <Standard_Macro.hxx>
+#include <Standard_NotImplemented.hxx>
+#include <Standard_OStream.hxx>
+#include <Standard_Real.hxx>
+#include <StdPrs_Curve.hxx>
+#include <StdPrs_Point.hxx>
+#include <StdPrs_PoleCurve.hxx>
+#include <TCollection_AsciiString.hxx>
+#include <TColgp_Array1OfPnt2d.hxx>
+#include <TColgp_HArray1OfPnt2d.hxx>
+#include <TCollection_AsciiString.hxx>
+#include <TColStd_HSequenceOfTransient.hxx>
+#include <TColStd_MapIteratorOfMapOfTransient.hxx>
+#include <TColStd_MapOfTransient.hxx>
+#include <TopExp_Explorer.hxx>
+#include <TopoDS.hxx>
+#include <TopoDS_Compound.hxx>
+#include <TopoDS_ListIteratorOfListOfShape.hxx>
+#include <TopoDS_Shape.hxx>
+#include <TopoDS_Solid.hxx>
+#include <TopTools_HSequenceOfShape.hxx>
+#include <UnitsAPI.hxx>
+#include <V3d_View.hxx>
+#include <V3d_Viewer.hxx>
+#include <WNT_Window.hxx>
+
+#include <HLRAlgo_Projector.hxx>
+#include <TopTools_ListOfShape.hxx>
+#include <HLRAlgo_Projector.hxx>
+#include <HLRBRep_Algo.hxx>
+#include <HLRBRep_PolyAlgo.hxx>
+
+#include <TopTools_ListIteratorOfListOfShape.hxx>
+#include <HLRBRep_PolyHLRToShape.hxx>
+#include <HLRBRep_HLRToShape.hxx>
+#include <TopExp.hxx>
+#include <TopoDS_Vertex.hxx>
+#include <BRep_Tool.hxx>
+
+#include <AIS_ListOfInteractive.hxx>
+#include <AIS_ListIteratorOfListOfInteractive.hxx>
+
+#include "..\res\resource.h"
+
+//End CasCade
+
+
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_STDAFX_H__376C7006_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/04_Viewer3d/CMakeLists.txt b/samples/mfc/standard/04_Viewer3d/CMakeLists.txt
deleted file mode 100644 (file)
index 8e57cc5..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-cmake_minimum_required (VERSION 2.6)
-
-project (Viewer3d)
-
-add_definitions (-DWINVER=0x0501 -DUNICODE -D_UNICODE)
-set (CMAKE_MFC_FLAG 2)
-
-set (Viewer3d_SRC_DIR      ${MFC_STANDARD_SAMPLES_DIR}/04_Viewer3d/src)
-set (Viewer3d_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/04_Viewer3d/res)
-set (Viewer3d_HEADER_FILES ${Viewer3d_SRC_DIR}/BoxRadius.h
-                           ${Viewer3d_SRC_DIR}/DlgIsos.h
-                           ${Viewer3d_SRC_DIR}/ISession_Curve.h
-                           ${Viewer3d_SRC_DIR}/ModelClippingDlg.h
-                           ${Viewer3d_SRC_DIR}/OCCDemo_Presentation.h
-                           ${Viewer3d_SRC_DIR}/OffsetDlg.h
-                           ${Viewer3d_SRC_DIR}/ScaleDlg.h
-                           ${Viewer3d_SRC_DIR}/ShadingModelDlg.h
-                           ${Viewer3d_SRC_DIR}/StdAfx.h
-                           ${Viewer3d_SRC_DIR}/TexturesExt_Presentation.h
-                           ${Viewer3d_SRC_DIR}/TrihedronDlg.h
-                           ${Viewer3d_SRC_DIR}/Viewer3dApp.h
-                           ${Viewer3d_SRC_DIR}/Viewer3dDoc.h
-                           ${Viewer3d_SRC_DIR}/Viewer3dView.h
-                           ${Viewer3d_SRC_DIR}/State.h
-                           ${Viewer3d_RESOURCE_DIR}/resource.h
-                           ${Viewer3d_RESOURCE_DIR}/resource.hm)
-set (Viewer3d_SOURCE_FILES ${Viewer3d_SRC_DIR}/BoxRadius.cpp
-                           ${Viewer3d_SRC_DIR}/DlgIsos.cpp
-                           ${Viewer3d_SRC_DIR}/ISession_Curve.cpp
-                           ${Viewer3d_SRC_DIR}/ModelClippingDlg.cpp
-                           ${Viewer3d_SRC_DIR}/OCCDemo_Presentation.cpp
-                           ${Viewer3d_SRC_DIR}/OffsetDlg.cpp
-                           ${Viewer3d_SRC_DIR}/ScaleDlg.cpp
-                           ${Viewer3d_SRC_DIR}/ShadingModelDlg.cpp
-                           ${Viewer3d_SRC_DIR}/StdAfx.cpp
-                           ${Viewer3d_SRC_DIR}/TexturesExt_Presentation.cpp
-                           ${Viewer3d_SRC_DIR}/TrihedronDlg.cpp
-                           ${Viewer3d_SRC_DIR}/Viewer3dApp.cpp
-                           ${Viewer3d_SRC_DIR}/Viewer3dDoc.cpp
-                           ${Viewer3d_SRC_DIR}/Viewer3dView.cpp)
-
-set (Viewer3d_RESOURCE_FILES ${Viewer3d_RESOURCE_DIR}/Viewer3d.rc
-                             ${Viewer3d_RESOURCE_DIR}/AISToolbar.bmp
-                             ${Viewer3d_RESOURCE_DIR}/AIS_TB.bmp
-                             ${Viewer3d_RESOURCE_DIR}/Toolbar.bmp)
-
-# groups in the VS solution
-source_group ("Source Files" FILES ${Viewer3d_SOURCE_FILES}
-                                   ${COMMON_WINMAIN_FILE})
-
-source_group ("Header Files" FILES ${Viewer3d_HEADER_FILES})
-
-source_group ("Resource Files" FILES ${Viewer3d_RESOURCE_FILES})
-
-add_executable (Viewer3d WIN32 ${Viewer3d_SOURCE_FILES}
-                               ${Viewer3d_HEADER_FILES}
-                               ${COMMON_WINMAIN_FILE}
-                               ${Viewer3d_RESOURCE_FILES})
-
-set_property (TARGET Viewer3d PROPERTY FOLDER "Samples/mfc")
-
-if (SINGLE_GENERATOR)
-  install (TARGETS Viewer3d DESTINATION "${INSTALL_DIR_BIN}")
-else()
-  install (TARGETS Viewer3d
-           CONFIGURATIONS Release RelWithDebInfo
-           DESTINATION "${INSTALL_DIR_BIN}")
-  install (TARGETS Viewer3d
-           CONFIGURATIONS Debug
-           DESTINATION "${INSTALL_DIR_BIN}d")
-endif()
-
-include_directories (${CMAKE_BINARY_DIR}/inc
-                     ${Viewer3d_SRC_DIR}
-                     ${MFC_STANDARD_SAMPLES_DIR}/Common)
-
-target_link_libraries (Viewer3d mfcsample)
\ No newline at end of file
diff --git a/samples/mfc/standard/04_Viewer3d/adm/win/vc10/Viewer3d.vcxproj b/samples/mfc/standard/04_Viewer3d/adm/win/vc10/Viewer3d.vcxproj
deleted file mode 100644 (file)
index 0ff8da4..0000000
+++ /dev/null
@@ -1,492 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|Win32">
-      <Configuration>Debug</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Debug|x64">
-      <Configuration>Debug</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|x64">
-      <Configuration>Release</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectGuid>{949DFBDF-9007-4C88-8925-43209C36A5D6}</ProjectGuid>
-    <RootNamespace>Viewer3d</RootNamespace>
-    <Keyword>MFCProj</Keyword>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <PropertyGroup>
-    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../../../win32\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\win32\obj\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">../../../../win64\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\win64\obj\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../../../../win32\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\win32\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">../../../../win64\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\win64\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\obj/Viewer3d.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\obj/Viewer3d.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bin/Viewer3d.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bin/Viewer3d.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\obj/Viewer3d.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\obj/Viewer3d.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bin/Viewer3d.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bin/Viewer3d.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\objd/Viewer3d.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\objd/Viewer3d.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\objd/</ProgramDataBaseFileName>
-      <BrowseInformation>true</BrowseInformation>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bind/Viewer3d.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bind/Viewer3d.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\objd/Viewer3d.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\objd/Viewer3d.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\objd/</ProgramDataBaseFileName>
-      <BrowseInformation>true</BrowseInformation>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bind/Viewer3d.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bind/Viewer3d.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\BoxRadius.cpp" />
-    <ClCompile Include="..\..\..\src\DlgIsos.cpp" />
-    <ClCompile Include="..\..\..\src\ISession_Curve.cpp" />
-    <ClCompile Include="..\..\..\src\ModelClippingDlg.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\OCCDemo_Presentation.cpp" />
-    <ClCompile Include="..\..\..\src\OffsetDlg.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\ScaleDlg.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\ShadingModelDlg.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\StdAfx.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\TexturesExt_Presentation.cpp" />
-    <ClCompile Include="..\..\..\src\TrihedronDlg.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\Viewer3dApp.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\Viewer3dDoc.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\Viewer3dView.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\res\Viewer3d.rc">
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-    </ResourceCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\src\BoxRadius.h" />
-    <ClInclude Include="..\..\..\src\DlgIsos.h" />
-    <ClInclude Include="..\..\..\src\ISession_Curve.h" />
-    <ClInclude Include="..\..\..\src\ModelClippingDlg.h" />
-    <ClInclude Include="..\..\..\src\OCCDemo_Presentation.h" />
-    <ClInclude Include="..\..\..\src\offsetdlg.h" />
-    <ClInclude Include="..\..\..\res\resource.h" />
-    <ClInclude Include="..\..\..\src\scaledlg.h" />
-    <ClInclude Include="..\..\..\src\ShadingModelDlg.h" />
-    <ClInclude Include="..\..\..\src\State.h" />
-    <ClInclude Include="..\..\..\src\StdAfx.h" />
-    <ClInclude Include="..\..\..\src\TexturesExt_Presentation.h" />
-    <ClInclude Include="..\..\..\src\TrihedronDlg.h" />
-    <ClInclude Include="..\..\..\src\Viewer3dApp.h" />
-    <ClInclude Include="..\..\..\src\Viewer3dDoc.h" />
-    <ClInclude Include="..\..\..\src\Viewer3dView.h" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\res\resource.hm" />
-    <None Include="..\..\..\res\AIS_TB.bmp" />
-    <None Include="..\..\..\res\AISToolbar.bmp" />
-    <None Include="..\..\..\res\Toolbar.bmp" />
-  </ItemGroup>
-  <ItemGroup>
-    <ProjectReference Include="..\..\..\..\mfcsample\adm\win\vc10\mfcsample.vcxproj">
-      <Project>{2d6cbbe8-6965-4016-b503-0d715ae26691}</Project>
-      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
-    </ProjectReference>
-  </ItemGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/04_Viewer3d/adm/win/vc10/Viewer3d.vcxproj.filters b/samples/mfc/standard/04_Viewer3d/adm/win/vc10/Viewer3d.vcxproj.filters
deleted file mode 100644 (file)
index 58bb234..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
-    <Filter Include="Source Files">
-      <UniqueIdentifier>{60965501-d2d2-46fa-bdc9-62d45562945b}</UniqueIdentifier>
-      <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
-    </Filter>
-    <Filter Include="Header Files">
-      <UniqueIdentifier>{76f67c93-789a-4fb7-a6ca-db367749f593}</UniqueIdentifier>
-      <Extensions>h;hpp;hxx;hm;inl</Extensions>
-    </Filter>
-    <Filter Include="Resource Files">
-      <UniqueIdentifier>{e16ddbde-8cef-4e45-9ba2-e1b79da373a5}</UniqueIdentifier>
-      <Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
-    </Filter>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\BoxRadius.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\DlgIsos.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\ISession_Curve.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\ModelClippingDlg.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\OCCDemo_Presentation.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\OffsetDlg.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\ScaleDlg.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\ShadingModelDlg.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\StdAfx.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\TexturesExt_Presentation.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\TrihedronDlg.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\Viewer3dApp.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\Viewer3dDoc.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\Viewer3dView.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\res\Viewer3d.rc">
-      <Filter>Source Files</Filter>
-    </ResourceCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\src\BoxRadius.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\DlgIsos.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\ISession_Curve.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\ModelClippingDlg.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\OCCDemo_Presentation.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\offsetdlg.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\res\resource.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\scaledlg.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\ShadingModelDlg.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\State.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\StdAfx.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\TexturesExt_Presentation.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\TrihedronDlg.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\Viewer3dApp.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\Viewer3dDoc.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\Viewer3dView.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\res\resource.hm">
-      <Filter>Header Files</Filter>
-    </None>
-    <None Include="..\..\..\res\AIS_TB.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\AISToolbar.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\Toolbar.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-  </ItemGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/04_Viewer3d/res/AISToolbar.bmp b/samples/mfc/standard/04_Viewer3d/res/AISToolbar.bmp
deleted file mode 100644 (file)
index bff4ea8..0000000
Binary files a/samples/mfc/standard/04_Viewer3d/res/AISToolbar.bmp and /dev/null differ
diff --git a/samples/mfc/standard/04_Viewer3d/res/AIS_TB.bmp b/samples/mfc/standard/04_Viewer3d/res/AIS_TB.bmp
deleted file mode 100755 (executable)
index d99e3ae..0000000
Binary files a/samples/mfc/standard/04_Viewer3d/res/AIS_TB.bmp and /dev/null differ
diff --git a/samples/mfc/standard/04_Viewer3d/res/Toolbar.bmp b/samples/mfc/standard/04_Viewer3d/res/Toolbar.bmp
deleted file mode 100755 (executable)
index df31058..0000000
Binary files a/samples/mfc/standard/04_Viewer3d/res/Toolbar.bmp and /dev/null differ
diff --git a/samples/mfc/standard/04_Viewer3d/res/Viewer3d.rc b/samples/mfc/standard/04_Viewer3d/res/Viewer3d.rc
deleted file mode 100755 (executable)
index 8f51d7f..0000000
+++ /dev/null
@@ -1,563 +0,0 @@
-// Microsoft Visual C++ generated resource script.
-//
-#include "resource.h"
-
-// Generated Help ID header file
-#define APSTUDIO_HIDDEN_SYMBOLS
-#include "resource.hm"
-#undef APSTUDIO_HIDDEN_SYMBOLS
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
-#include "afxres.h"
-#include "..\..\Common\res\OCC_Resource.h"
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-// Russian resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
-#ifdef _WIN32
-LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
-#pragma code_page(1251)
-#endif //_WIN32
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Dialog
-//
-
-IDD_SETOFFSETS DIALOGEX 442, 45, 187, 60
-STYLE DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
-EXSTYLE WS_EX_TOOLWINDOW
-CAPTION "Set offsets"
-FONT 8, "MS Sans Serif", 0, 0, 0x1
-BEGIN
-    CONTROL         "Slider2",IDC_SLIDER_OFFSETFACTOR,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,39,14,100,15
-    LTEXT           "Factor:",IDC_STATIC,13,17,23,15
-    LTEXT           "Units:",IDC_STATIC,13,35,19,8
-    CONTROL         "Slider3",IDC_SLIDER_OFFSETUNITS,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,39,32,100,15
-    GROUPBOX        "Offset parameters",IDC_STATIC,7,6,173,47
-    EDITTEXT        IDC_EDIT_OFFSETFACTOR,148,14,22,14,ES_AUTOHSCROLL | ES_NUMBER
-    EDITTEXT        IDC_EDIT_OFFSETUNITS,148,32,22,14,ES_AUTOHSCROLL | ES_NUMBER
-END
-
-IDD_TRIHEDRON DIALOG  0, 0, 138, 95
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Triedron settings"
-FONT 8, "MS Sans Serif"
-BEGIN
-    DEFPUSHBUTTON   "OK",IDOK,21,75,50,14
-    PUSHBUTTON      "Cancel",IDCANCEL,73,75,50,14
-    COMBOBOX        IDC_COMBOTRIHEDRPOS,38,8,92,60,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
-    COMBOBOX        IDC_COMBOTRIHEDRCOLOR,38,29,92,78,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
-    EDITTEXT        IDC_EDITTRIHEDRSCALE,38,51,33,12,ES_CENTER | ES_AUTOHSCROLL
-    LTEXT           "Color:",IDC_STATIC,8,31,20,8
-    LTEXT           "Position:",IDC_STATIC,8,10,28,8
-    LTEXT           "Scale:",IDC_STATIC,8,53,24,10
-    CONTROL         "Spin1",IDC_SPINTRIHEDRSCALE,"msctls_updown32",UDS_AUTOBUDDY | UDS_ARROWKEYS,70,51,11,12
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DESIGNINFO
-//
-
-#ifdef APSTUDIO_INVOKED
-GUIDELINES DESIGNINFO 
-BEGIN
-    IDD_SETOFFSETS, DIALOG
-    BEGIN
-        LEFTMARGIN, 7
-        RIGHTMARGIN, 180
-        TOPMARGIN, 6
-        BOTTOMMARGIN, 53
-    END
-END
-#endif    // APSTUDIO_INVOKED
-
-#endif    // Russian resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-/////////////////////////////////////////////////////////////////////////////
-// English (U.S.) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-#pragma code_page(1252)
-#endif //_WIN32
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Dialog
-//
-
-IDD_SHADINGMODEL DIALOG  0, 0, 60, 66
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "ShadingModel"
-FONT 8, "MS Sans Serif"
-BEGIN
-    PUSHBUTTON      "GOURAUD",IDC_SHADINGMODEL_GOURAUD,7,7,46,16
-    PUSHBUTTON      "PHONG",  IDC_SHADINGMODEL_PHONG,  7,25,46,15
-END
-
-IDD_MODELCLIPPING DIALOG  0, 0, 180, 74
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION
-CAPTION "Model clipping"
-FONT 8, "MS Sans Serif"
-BEGIN
-    DEFPUSHBUTTON   "OK",IDOK,13,47,50,14
-    PUSHBUTTON      "Cancel",IDCANCEL,70,47,50,14
-    CONTROL         "Slider1",IDC_SLIDER_MODELCLIPPING_Z,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,21,6,97,15
-    LTEXT           "Z:",-1,12,10,8,8
-    GROUPBOX        "",-1,7,0,166,25
-    EDITTEXT        IDC_EDIT_MODELCLIPPING_Z,118,7,34,14,ES_AUTOHSCROLL | ES_NUMBER
-    GROUPBOX        "",-1,7,38,166,29
-    CONTROL         "Model clipping ON/OFF",IDC_CHECK_MODELCLIPPINGONOFF,
-                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,28,91,10
-END
-
-IDD_RADIUS DIALOGEX 0, 0, 151, 82
-STYLE DS_SETFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Radius"
-FONT 8, "MS Sans Serif", 0, 0, 0x1
-BEGIN
-    DEFPUSHBUTTON   "OK",IDOK,7,61,50,14
-    PUSHBUTTON      "Cancel",IDCANCEL,94,61,50,14
-    CONTROL         "Spin1",IDC_SPIN_RADIUS,"msctls_updown32",UDS_ARROWKEYS,98,43,11,14
-    EDITTEXT        IDC_EDIT_RADIUS,48,42,45,13,ES_AUTOHSCROLL | NOT WS_TABSTOP
-    CTEXT           "Radius Fillet",IDC_RadiusFillet,33,20,94,18,0,WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE | WS_EX_STATICEDGE,HIDC_RadiusFillet
-END
-
-IDD_ISOS DIALOG  0, 0, 161, 66
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Isos"
-FONT 8, "MS Sans Serif"
-BEGIN
-    DEFPUSHBUTTON   "OK",IDOK,7,44,50,14
-    PUSHBUTTON      "Cancel",IDCANCEL,104,44,50,14
-    LTEXT           "U Isos Number",IDC_ISOU,31,13,48,8
-    LTEXT           "V Isos Number",IDC_ISOV,31,28,47,8
-    EDITTEXT        IDC_EDIT_ISOU,93,7,40,14,ES_AUTOHSCROLL
-    EDITTEXT        IDC_EDIT_ISOV,93,24,40,12,ES_AUTOHSCROLL
-END
-
-
-#ifdef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE 
-BEGIN
-    "resource.h\0"
-END
-
-2 TEXTINCLUDE 
-BEGIN
-    "#include ""afxres.h""\r\n"
-    "#include ""..\\..\\Common\\res\\OCC_Resource.h""\0"
-END
-
-3 TEXTINCLUDE 
-BEGIN
-    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
-    "#define _AFX_NO_OLE_RESOURCES\r\n"
-    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
-    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
-    "\r\n"
-    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
-    "#ifdef _WIN32\r\n"
-    "LANGUAGE 9, 1\r\n"
-    "#pragma code_page(1252)\r\n"
-    "#endif\r\n"
-    "#include ""afxres.rc""         // Standard components\r\n"
-    "#endif\0"
-END
-
-#endif    // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Bitmap
-//
-
-IDR_MAINFRAME           BITMAP                  "..//res//Toolbar.bmp"
-IDR_TB_AIS              BITMAP                  "..//res//AIS_TB.bmp"
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Toolbar
-//
-
-IDR_MAINFRAME TOOLBAR  20, 20
-BEGIN
-    BUTTON      ID_FILE_NEW
-    SEPARATOR
-    BUTTON      ID_CIRCLE
-    BUTTON      ID_LINE
-    BUTTON      ID_BOX
-    BUTTON      ID_Cylinder
-    BUTTON      ID_SPHERE
-    SEPARATOR
-    BUTTON      ID_OVERLAPPED_BOX
-    BUTTON      ID_OVERLAPPED_CYLINDER
-    BUTTON      ID_OVERLAPPED_SPHERE
-    BUTTON      ID_POLYGON_OFFSETS
-    SEPARATOR
-    BUTTON      ID_ERASEALL
-    SEPARATOR
-    BUTTON      ID_SPOT_LIGHT
-    BUTTON      ID_POSITIONAL_LIGHT
-    BUTTON      ID_DIRECTIONAL_LIGHT
-    BUTTON      ID_AMBIENT_LIGHT
-    BUTTON      ID_CLEAR_LIGHTS
-    SEPARATOR
-    BUTTON      ID_SCALE
-    SEPARATOR
-    BUTTON      ID_NBISOS
-    BUTTON      ID_SHADINGMODEL
-    BUTTON      ID_ANTIALIASINGONOFF
-    SEPARATOR
-    BUTTON      ID_MODELCLIPPING
-    SEPARATOR
-    BUTTON      ID_VERTICES
-    BUTTON      ID_EDGES
-    BUTTON      ID_FACES
-    BUTTON      ID_NEUTRAL
-    SEPARATOR
-    BUTTON      ID_FILLET3D
-    SEPARATOR
-    BUTTON      ID_TEXTURE_ON
-    BUTTON      ID_BUTTONStart
-    BUTTON      ID_BUTTONPrev
-    BUTTON      ID_BUTTONRepeat
-    BUTTON      ID_BUTTONNext
-    BUTTON      ID_BUTTONEnd
-    SEPARATOR
-    BUTTON      ID_DUMP_VIEW
-    SEPARATOR
-    BUTTON      ID_APP_ABOUT
-END
-
-IDR_TB_AIS TOOLBAR  20, 20
-BEGIN
-    BUTTON      ID_OBJECT_WIREFRAME
-    BUTTON      ID_OBJECT_SHADING
-    BUTTON      ID_OBJECT_COLORED_MESH
-    SEPARATOR
-    BUTTON      ID_OBJECT_COLOR
-    BUTTON      ID_OBJECT_MATERIAL
-    BUTTON      ID_OBJECT_TRANSPARENCY
-    SEPARATOR
-    BUTTON      ID_OBJECT_ERASE
-    BUTTON      ID_OBJECT_DISPLAYALL
-    SEPARATOR
-    BUTTON      ID_OBJECT_REMOVE
-    BUTTON      ID_OBJECT_DIM
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Menu
-//
-
-IDR_MAINFRAME MENU 
-BEGIN
-    POPUP "&File"
-    BEGIN
-        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
-        MENUITEM SEPARATOR
-        MENUITEM "E&xit",                       ID_APP_EXIT
-    END
-    POPUP "&View"
-    BEGIN
-        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
-        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
-    END
-    POPUP "&Help"
-    BEGIN
-        MENUITEM "&About Viewer3d...",          ID_APP_ABOUT
-    END
-END
-
-IDR_3DTYPE MENU 
-BEGIN
-    POPUP "&File"
-    BEGIN
-        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
-        MENUITEM "&Close",                      ID_FILE_CLOSE
-        MENUITEM SEPARATOR
-        MENUITEM "E&xit",                       ID_APP_EXIT
-    END
-    POPUP "&View"
-    BEGIN
-        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
-        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
-    END
-    POPUP "&Options"
-    BEGIN
-        POPUP "&Trihedron"
-        BEGIN
-            MENUITEM "&Static Trihedron...",        ID_OPTIONS_TRIHEDRON_STATIC_TRIHEDRON
-            MENUITEM "&Dynamic Trihedron",          ID_OPTIONS_TRIHEDRON_DYNAMIC_TRIHEDRON
-        END
-    END
-    POPUP "&Window"
-    BEGIN
-        MENUITEM "&New Window",                 ID_WINDOW_NEW
-        MENUITEM "&Cascade",                    ID_WINDOW_CASCADE
-        MENUITEM "&Tile",                       ID_WINDOW_TILE_HORZ
-        MENUITEM "&Arrange Icons",              ID_WINDOW_ARRANGE
-    END
-    POPUP "&Help"
-    BEGIN
-        MENUITEM "&About Viewer3d...",          ID_APP_ABOUT
-    END
-END
-
-IDR_Popup3D MENU 
-BEGIN
-    POPUP "BackGround"
-    BEGIN
-        MENUITEM "Background Color...",         ID_Modify_ChangeBackground
-    END
-    POPUP "Object(s)"
-    BEGIN
-        MENUITEM "Erase",                       ID_OBJECT_ERASE
-        MENUITEM "Shading",                     ID_OBJECT_SHADING
-        MENUITEM "Wireframe",                   ID_OBJECT_WIREFRAME
-        MENUITEM "Color...",                    ID_OBJECT_COLOR
-        MENUITEM "Material...",                 ID_OBJECT_MATERIAL
-        POPUP "Material"
-        BEGIN
-            MENUITEM "Aluminium",                   ID_OBJECT_MATERIAL_ALUMINIUM
-            MENUITEM "Brass",                       ID_OBJECT_MATERIAL_BRASS
-            MENUITEM "Bronze",                      ID_OBJECT_MATERIAL_BRONZE
-            MENUITEM "Chrome",                      ID_OBJECT_MATERIAL_CHROME
-            MENUITEM "Copper",                      ID_OBJECT_MATERIAL_COPPER
-            MENUITEM "Gold",                        ID_OBJECT_MATERIAL_GOLD
-            MENUITEM "Jade",                        ID_OBJECT_MATERIAL_JADE
-            MENUITEM "Metalized",                   ID_OBJECT_MATERIAL_METALIZED
-            MENUITEM "Neon GNC",                    ID_OBJECT_MATERIAL_NEON_GNC
-            MENUITEM "Neon PHC",                    ID_OBJECT_MATERIAL_NEON_PHC
-            MENUITEM "Obsidian",                    ID_OBJECT_MATERIAL_OBSIDIAN
-            MENUITEM "Pewter",                      ID_OBJECT_MATERIAL_PEWTER
-            MENUITEM "Plaster",                     ID_OBJECT_MATERIAL_PLASTER
-            MENUITEM "Plastic",                     ID_OBJECT_MATERIAL_PLASTIC
-            MENUITEM "Satin",                       ID_OBJECT_MATERIAL_SATIN
-            MENUITEM "Shiny plastic",               ID_OBJECT_MATERIAL_SHINY_PLASTIC
-            MENUITEM "Silver",                      ID_OBJECT_MATERIAL_SILVER
-            MENUITEM "Steel",                       ID_OBJECT_MATERIAL_STEEL
-            MENUITEM "Stone",                       ID_OBJECT_MATERIAL_STONE
-            MENUITEM SEPARATOR
-            MENUITEM "Default",                     ID_OBJECT_MATERIAL_DEFAULT
-        END
-        MENUITEM "Transparency...",             ID_OBJECT_TRANSPARENCY
-    END
-    POPUP "User cylinder"
-    BEGIN
-        MENUITEM "Change face color",           ID_USERCYLINDER_CHANGEFACECOLOR
-    END
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,0,0,1
- PRODUCTVERSION 1,0,0,1
- FILEFLAGSMASK 0x3fL
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x4L
- FILETYPE 0x1L
- FILESUBTYPE 0x0L
-BEGIN
-    BLOCK "StringFileInfo"
-    BEGIN
-        BLOCK "040904b0"
-        BEGIN
-            VALUE "FileDescription", "Viewer MFC Application"
-            VALUE "FileVersion", "1, 0, 0, 1"
-            VALUE "InternalName", "Viewer"
-            VALUE "LegalCopyright", "Copyright (C) 1997"
-            VALUE "OriginalFilename", "Viewer.EXE"
-            VALUE "ProductName", "SampleViewer3d Application"
-            VALUE "ProductVersion", "1, 0, 0, 1"
-        END
-    END
-    BLOCK "VarFileInfo"
-    BEGIN
-        VALUE "Translation", 0x409, 1200
-    END
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// String Table
-//
-
-STRINGTABLE 
-BEGIN
-    IDR_MAINFRAME           "Viewer3d"
-    IDR_3DTYPE              "\nViewer3d\n\n\n\n.Document\n Document"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_BOX                  "Create and display a box\nBox"
-    ID_Cylinder             "Create and display a cylinder\nCylinder"
-    ID_SPHERE               "Create and display a sphere\nSphere"
-    ID_ERASEALL             "Remove all\nRemove all"
-    ID_AMBIENT_LIGHT        "Create an ambient light source\nAmbient light"
-    ID_DIRECTIONAL_LIGHT    "Create an directional light source\nDirectional light"
-    ID_POSITIONAL_LIGHT     "Create an positional light source\nPositional light"
-    ID_SPOT_LIGHT           "Create an spot light source\nSpot light"
-    ID_LIGHTOFF             "Delete lights\nDelete lights"
-    ID_SHADINGMODEL         "Define shading model\nShadingModel"
-    ID_ANTIALIASINGONOFF    "Antialiasing ON/OFF\nAntialiasing"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_CLEAR_LIGHTS         "Clear all the light sources\nClear lights"
-    ID_MODELCLIPPING        "ModelClipping\nModelClipping"
-    ID_OVERLAPPED_BOX       "Create and display two overlapped boxes\nOverlapped boxes"
-    ID_BUTTON819            "Create and display two overlapped spheres\nOverlapped spheres"
-    ID_OVERLAPPED_SPHERE    "Create and display two overlapped spheres\nOverlapped spheres"
-    ID_BUTTON821            "Create and display two overlapped boxes\nOverlapped boxes"
-    ID_OVERLAPPED_CYLINDER  "Create and display two overlapped cylinders\nOverlapped cylinders"
-    ID_POLYGON_OFFSETS      "Set/unset offsets\nSet/unset offsets"
-    ID_OBJECT_COLORED_MESH  "Puts cylinder in colored mesh\nColored mesh"
-    ID_SCALE                "Scale\nScale"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_CIRCLE               "Clear all the light sources\nClear lights"
-    ID_LINE                 "Create and display a line with standard tools\nLine"
-    ID_VERTICES             "Set the selection mode to vertices\nVertices"
-    ID_EDGES                "Set the selection mode to edges\nEdges"
-    ID_FACES                "Set the selection modes to faces\nFaces"
-    ID_NEUTRAL              "Neutral point for selection\nNeutral point"
-    ID_FILLET3D             "Make a fillet between faces\nFillet"
-    ID_NBISOS               "Set global isos number\nIsos"
-    ID_BUTTONStart          "Press to go to the first sample\nFirst sample (Home)"
-    ID_BUTTONPrev           "Press to go to the previous sample\nPrevious sample (PgUp)"
-    ID_BUTTONRepeat         "Press to repeat the current sample\nRepeat sample (Space)"
-    ID_BUTTONNext           "Press to go to the next sample\nNext sample (PgDn)"
-    ID_BUTTONEnd            "Press to go to the last sample\nLast sample (End)"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_DUMP_VIEW            "Save current frame into an image file\nExport view (F12)"
-    ID_TEXTURE_ON           "Run texture example\nRun texture example"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_OBJECT_DIMENSIONS         "Add dimensions"
-    ID_LOCALCONTEXT_ADDDIMENSION "Add new dimension for selected objects"
-END
-
-#endif    // English (U.S.) resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-/////////////////////////////////////////////////////////////////////////////
-// English (U.K.) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG)
-#ifdef _WIN32
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
-#pragma code_page(1252)
-#endif //_WIN32
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Dialog
-//
-
-IDD_SCALE DIALOG  0, 0, 186, 103
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Heterogeneous Scale"
-FONT 8, "MS Sans Serif"
-BEGIN
-    DEFPUSHBUTTON   "OK",IDOK,13,78,50,14
-    PUSHBUTTON      "Cancel",IDCANCEL,70,78,50,14
-    GROUPBOX        "",IDC_STATIC,7,69,166,29
-    GROUPBOX        "",IDC_STATIC,7,0,166,65
-    CONTROL         "Slider1",IDC_SLIDER_SCALEX,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,34,6,97,15
-    LTEXT           "X:",IDC_STATIC,13,9,8,8
-    EDITTEXT        IDC_EDIT_SCALEX,131,7,34,14,ES_AUTOHSCROLL | ES_NUMBER
-    CONTROL         "Slider2",IDC_SLIDER_SCALEY,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,34,25,97,15
-    LTEXT           "Y:",IDC_STATIC,13,28,8,8
-    EDITTEXT        IDC_EDIT_SCALEY,131,26,34,14,ES_AUTOHSCROLL | ES_NUMBER
-    CONTROL         "Slider2",IDC_SLIDER_SCALEZ,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,34,45,97,15
-    LTEXT           "Z:",IDC_STATIC,13,48,8,8
-    EDITTEXT        IDC_EDIT_SCALEZ,131,46,34,14,ES_AUTOHSCROLL | ES_NUMBER
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DESIGNINFO
-//
-
-#ifdef APSTUDIO_INVOKED
-GUIDELINES DESIGNINFO 
-BEGIN
-    IDD_SCALE, DIALOG
-    BEGIN
-        LEFTMARGIN, 7
-        RIGHTMARGIN, 179
-        TOPMARGIN, 7
-        BOTTOMMARGIN, 96
-    END
-END
-#endif    // APSTUDIO_INVOKED
-
-#endif    // English (U.K.) resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-#define _AFX_NO_SPLITTER_RESOURCES
-#define _AFX_NO_OLE_RESOURCES
-#define _AFX_NO_TRACKER_RESOURCES
-#define _AFX_NO_PROPERTY_RESOURCES
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE 9, 1
-#pragma code_page(1252)
-#endif
-#include "afxres.rc"         // Standard components
-#endif
-/////////////////////////////////////////////////////////////////////////////
-#endif    // not APSTUDIO_INVOKED
-
diff --git a/samples/mfc/standard/04_Viewer3d/res/resource.h b/samples/mfc/standard/04_Viewer3d/res/resource.h
deleted file mode 100755 (executable)
index d7e6ef7..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-//{{NO_DEPENDENCIES}}
-// Microsoft Visual C++ generated include file.
-// Used by Viewer3d.rc
-//
-#define IDD_SHADINGMODEL                131
-#define IDD_SETOFFSETS                  134
-#define IDD_SCALE                       139
-#define IDD_RADIUS                      144
-#define IDD_TRIHEDRON                   542
-#define ID_BOX                          802
-#define ID_Cylinder                     803
-#define ID_SPHERE                       804
-#define ID_ERASEALL                     805
-#define ID_AMBIENT_LIGHT                806
-#define ID_DIRECTIONAL_LIGHT            807
-#define ID_POSITIONAL_LIGHT             808
-#define ID_SPOT_LIGHT                   809
-#define ID_LIGHTOFF                     810
-#define ID_USERCYLINDER_CHANGEFACECOLOR 810
-#define ID_SHADINGMODEL                 814
-#define ID_ANTIALIASINGONOFF            815
-#define ID_CLEAR_LIGHTS                 816
-#define ID_MODELCLIPPING                817
-#define ID_OVERLAPPED_BOX               818
-#define ID_BUTTON819                    819
-#define ID_OVERLAPPED_SPHERE            820
-#define ID_BUTTON821                    821
-#define ID_OVERLAPPED_CYLINDER          822
-#define ID_POLYGON_OFFSETS              823
-#define ID_OBJECT_COLORED_MESH          827
-#define ID_OPTIONS_TRIHEDRON_STATIC_TRIHEDRON 829
-#define ID_OPTIONS_TRIHEDRON_DYNAMIC_TRIHEDRON 830
-#define ID_SCALE                        831
-#define ID_CIRCLE                       833
-#define ID_LINE                         834
-#define ID_VERTICES                     837
-#define ID_EDGES                        838
-#define ID_FACES                        839
-#define ID_NEUTRAL                      840
-#define ID_FILLET3D                     841
-#define ID_NBISOS                       842
-#define ID_BUTTONStart                  843
-#define ID_BUTTONPrev                   844
-#define ID_BUTTONRepeat                 845
-#define ID_BUTTONNext                   846
-#define ID_BUTTONEnd                    847
-#define ID_DUMP_VIEW                    848
-#define ID_TEXTURE_ON                   849
-#define IDC_SPIN_RADIUS                 1000
-#define IDC_EDIT_RADIUS                 1001
-#define IDC_SHADINGMODEL_COLOR          1002
-#define IDC_EDIT_ISOU                   1002
-#define IDC_SHADINGMODEL_MULTICOLOR     1003
-#define IDC_SLIDER_MODELCLIPPING_Z      1003
-#define IDC_SHADINGMODEL_FLAT           1004
-#define IDC_ISOU                        1004
-#define IDC_SHADINGMODEL_HIDDEN         1005
-#define IDC_EDIT_MODELCLIPPING_Z        1005
-#define IDC_ISOV                        1005
-#define IDC_SHADINGMODEL_GOURAUD        1006
-#define IDC_EDIT_ISOV                   1006
-#define IDC_SHADINGMODEL_PHONG          1007
-#define IDC_CHECK_MODELCLIPPINGONOFF    1008
-#define IDC_SLIDER_OFFSETFACTOR         1010
-#define IDC_SLIDER_OFFSETUNITS          1011
-#define IDC_EDIT_OFFSETFACTOR           1012
-#define IDC_EDIT_OFFSETUNITS            1013
-#define IDC_COMBO_OFFSETTYPE            1023
-#define IDC_SLIDER_SCALEX               1028
-#define IDC_SLIDER_SCALEY               1029
-#define IDC_EDIT_SCALEX                 1030
-#define IDC_EDIT_SCALEY                 1031
-#define IDC_RadiusFillet                1031
-#define IDC_SLIDER_SCALEZ               1032
-#define IDC_EDIT_SCALEZ                 1033
-#define IDD_RESULTMESSAGEDLG            1500
-#define IDD_MODELCLIPPING               1501
-#define IDD_ISOS                        1502
-#define IDC_EDITTRIHEDRSCALE            1686
-#define IDC_SPINTRIHEDRSCALE            1737
-#define IDC_COMBOTRIHEDRPOS             1739
-#define IDC_COMBOTRIHEDRCOLOR           1740
-
-// Next default values for new objects
-// 
-#ifdef APSTUDIO_INVOKED
-#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_3D_CONTROLS                     1
-#define _APS_NEXT_RESOURCE_VALUE        140
-#define _APS_NEXT_COMMAND_VALUE         850
-#define _APS_NEXT_CONTROL_VALUE         1032
-#define _APS_NEXT_SYMED_VALUE           104
-#endif
-#endif
diff --git a/samples/mfc/standard/04_Viewer3d/res/resource.hm b/samples/mfc/standard/04_Viewer3d/res/resource.hm
deleted file mode 100644 (file)
index 0ed8fdf..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-// Microsoft Visual C++ generated Help ID include file.
-// Used by Viewer3d.rc
-//
-#define HIDC_RadiusFillet               0x808f0407    // IDD_RADIUS
diff --git a/samples/mfc/standard/04_Viewer3d/src/BoxRadius.cpp b/samples/mfc/standard/04_Viewer3d/src/BoxRadius.cpp
deleted file mode 100755 (executable)
index da56cbe..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-// BoxRadius.cpp : implementation file
-//
-
-#include "stdafx.h"
-#include "Viewer3dApp.h"
-#include "BoxRadius.h"
-
-/////////////////////////////////////////////////////////////////////////////
-
-BoxRadius::BoxRadius(CWnd* pParent,
-                                        double rad)
-       : CDialog(BoxRadius::IDD, pParent)
-{
-       //{{AFX_DATA_INIT(BoxRadius)
-       m_radius = rad;
-       //}}AFX_DATA_INIT
-}
-
-
-void BoxRadius::DoDataExchange(CDataExchange* pDX)
-{
-       CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(BoxRadius)
-       DDX_Control(pDX, IDC_SPIN_RADIUS, m_spinradius);
-       DDX_Text(pDX, IDC_EDIT_RADIUS, m_radius);
-       //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(BoxRadius, CDialog)
-       //{{AFX_MSG_MAP(BoxRadius)
-       ON_NOTIFY(UDN_DELTAPOS, IDC_SPIN_RADIUS, OnDeltaposSpinRadius)
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// BoxRadius message handlers
-
-BOOL BoxRadius::OnInitDialog() 
-{
-       CDialog::OnInitDialog();
-       
-       // TODO: Add extra initialization here
-       m_spinradius.SetRange(-10000,10000);
-       return TRUE;  // return TRUE unless you set the focus to a control
-                     // EXCEPTION: OCX Property Pages should return FALSE
-}
-
-void BoxRadius::OnDeltaposSpinRadius(NMHDR* pNMHDR, LRESULT* pResult) 
-{
-       NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR;
-       // TODO: Add your control notification handler code here
-       if (pNMUpDown->iDelta == 1)
-               pNMUpDown->iDelta = 1;
-       else 
-               pNMUpDown->iDelta = -1;
-       m_radius = m_radius + pNMUpDown->iDelta;
-       UpdateData(FALSE);
-       *pResult = 0;
-}
-
diff --git a/samples/mfc/standard/04_Viewer3d/src/BoxRadius.h b/samples/mfc/standard/04_Viewer3d/src/BoxRadius.h
deleted file mode 100755 (executable)
index 0679c50..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-// BoxRadius.h : header file
-//
-
-#if !defined(AFX_BOXRADIUS_H__AD263FF3_54F3_11D1_8C40_00AA00D10994__INCLUDED_)
-#define AFX_BOXRADIUS_H__AD263FF3_54F3_11D1_8C40_00AA00D10994__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-/////////////////////////////////////////////////////////////////////////////
-// BoxRadius dialog
-
-class BoxRadius : public CDialog
-{
-// Construction
-public:
-       BoxRadius(CWnd* pParent,double rad);   // standard constructor
-
-// Dialog Data
-       //{{AFX_DATA(BoxRadius)
-       enum { IDD = IDD_RADIUS };
-       CSpinButtonCtrl m_spinradius;
-       double  m_radius;
-       //}}AFX_DATA
-
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(BoxRadius)
-       protected:
-       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
-       //}}AFX_VIRTUAL
-
-// Implementation
-protected:
-
-       // Generated message map functions
-       //{{AFX_MSG(BoxRadius)
-       afx_msg void OnDeltaposSpinRadius(NMHDR* pNMHDR, LRESULT* pResult);
-       virtual BOOL OnInitDialog();
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-};
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_BOXRADIUS_H__AD263FF3_54F3_11D1_8C40_00AA00D10994__INCLUDED_)
diff --git a/samples/mfc/standard/04_Viewer3d/src/ConvertClickToPoint.cxx b/samples/mfc/standard/04_Viewer3d/src/ConvertClickToPoint.cxx
deleted file mode 100755 (executable)
index 7ffd51f..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <stdafx.h>
-
-gp_Pnt ConvertClickToPoint(Standard_Real x, Standard_Real y, Handle(V3d_View) aView)
-{
-       
-       Standard_Real XEye,YEye,ZEye,XAt,YAt,ZAt;
-       aView->Eye(XEye,YEye,ZEye);
-       aView->At(XAt,YAt,ZAt);
-       gp_Pnt EyePoint(XEye,YEye,ZEye);
-       gp_Pnt AtPoint(XAt,YAt,ZAt);
-
-       gp_Vec EyeVector(EyePoint,AtPoint);
-       gp_Dir EyeDir(EyeVector);
-
-       gp_Pln PlaneOfTheView = gp_Pln(AtPoint,EyeDir);
-       Standard_Real X,Y,Z;
-       aView->Convert((int)x,(int)y,X,Y,Z);
-       gp_Pnt ConvertedPoint(X,Y,Z);
-       gp_Pnt2d ConvertedPointOnPlane = ProjLib::Project(PlaneOfTheView,ConvertedPoint);
-       
-       gp_Pnt ResultPoint = ElSLib::Value(ConvertedPointOnPlane.X(),
-                                                                       ConvertedPointOnPlane.Y(),
-                                                                       PlaneOfTheView);
-       return ResultPoint;
-}
-
-
diff --git a/samples/mfc/standard/04_Viewer3d/src/DlgAttributes.cpp b/samples/mfc/standard/04_Viewer3d/src/DlgAttributes.cpp
deleted file mode 100755 (executable)
index 3c527fd..0000000
+++ /dev/null
@@ -1,332 +0,0 @@
-// DlgAttributes.cpp : implementation file
-//
-
-#include "stdafx.h"
-
-#include "DlgAttributes.h"
-
-#include "AISDisplayModeApp.h"
-
-#include <AISDialogs.h>
-#include <OCC_3dView.h>
-
-#include <Graphic3d_MaterialAspect.hxx>
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// DlgAttributes dialog
-
-
-DlgAttributes::DlgAttributes(CWnd* pParent)
-       : CDialog(DlgAttributes::IDD, pParent)
-{
-       //{{AFX_DATA_INIT(DlgAttributes)
-               // NOTE: the ClassWizard will add member initialization here
-       //}}AFX_DATA_INIT
-}
-
-
-void DlgAttributes::DoDataExchange(CDataExchange* pDX)
-{
-       CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(DlgAttributes)
-               // NOTE: the ClassWizard will add DDX and DDV calls here
-       //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(DlgAttributes, CDialog)
-       //{{AFX_MSG_MAP(DlgAttributes)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_ALUMINIUM, OnObjectMaterialAluminium)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_BRASS, OnObjectMaterialBrass)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_BRONZE, OnObjectMaterialBronze)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_CHROME, OnObjectMaterialChrome)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_COPPER, OnObjectMaterialCopper)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_GOLD, OnObjectMaterialGold)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_JADE, OnObjectMaterialJade)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_METALIZED, OnObjectMaterialMetalized)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_NEON_GNC, OnObjectMaterialNeonGNC)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_NEON_PHC, OnObjectMaterialNeonPHC)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_OBSIDIAN, OnObjectMaterialObsidian)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_PEWTER, OnObjectMaterialPewter)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_PLASTER, OnObjectMaterialPlaster)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_PLASTIC, OnObjectMaterialPlastic)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_SATIN, OnObjectMaterialSatin)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_SHINY_PLASTIC, OnObjectMaterialShinyPlastic)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_SILVER, OnObjectMaterialSilver)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_STEEL, OnObjectMaterialSteel)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_STONE, OnObjectMaterialStone)
-       ON_BN_CLICKED(ID_OBJECT_MATERIAL_DEFAULT, OnObjectMaterialDefault)
-       ON_BN_CLICKED(ID_OBJECT_COLOR, OnColor)
-       ON_BN_CLICKED(ID_OBJECT_SHADING, OnShading)
-       ON_BN_CLICKED(ID_OBJECT_WIREFRAME, OnWireframe)
-       ON_COMMAND(ID_OBJECT_TRANSPARENCY, OnTransparency)
-       ON_UPDATE_COMMAND_UI(ID_OBJECT_TRANSPARENCY, OnUpdateObjectTransparency)
-//}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// DlgAttributes message handlers
-
-
-void DlgAttributes::OnColor() 
-{
-       Handle(AIS_InteractiveObject) Current ;
-       Quantity_Color CSFColor ;
-       COLORREF MSColor ;
-
-       myAISContext->InitCurrent();
-       if (myAISContext->MoreCurrent()) {
-               Current = myAISContext->Current() ;
-               if ( Current->HasColor () ) {
-                 CSFColor = Current->Color () ;
-                 MSColor = RGB (CSFColor.Red()*255.,
-                                                               CSFColor.Green()*255.,
-                                                               CSFColor.Blue()*255.);
-               }
-               else {
-                 MSColor = RGB (255,255,255) ;
-               }
-       
-               CColorDialog dlgColor(MSColor);
-               if (dlgColor.DoModal() == IDOK) {
-                       MSColor = dlgColor.GetColor();
-                       CSFColor = Quantity_Color (GetRValue(MSColor)/255.,
-                                                                          GetGValue(MSColor)/255.,
-                                                                          GetBValue(MSColor)/255.,Quantity_TOC_RGB); 
-                       for (myAISContext->InitCurrent(); 
-                                myAISContext->MoreCurrent ();
-                                myAISContext->NextCurrent ())
-                               myAISContext->SetColor (myAISContext->Current(),
-                                     CSFColor.Name());
-               }       
-       }
-
-TCollection_AsciiString Message ("\
-\n\
-for (myAISContext->InitCurrent(); myAISContext->MoreCurrent ();  \n\
-       myAISContext->NextCurrent ())       \n\
-       myAISContext->SetColor (myAISContext->Current(), CSFColor.Name());  \n\
-\n");
-
-       CString text(Message.ToCString());
-       (*myCResultDialog).SetTitle(CString("Setting Color"));
-       (*myCResultDialog).SetText(text);
-}
-
-
-void DlgAttributes::OnWireframe() 
-{
-       for(myAISContext->InitCurrent(); myAISContext->MoreCurrent();
-       myAISContext->NextCurrent())            
-               myAISContext->SetDisplayMode(myAISContext->Current(), 0);       
-                
-TCollection_AsciiString Message ("\
-\n\
-for (myAISContext->InitCurrent(); myAISContext->MoreCurrent ();  \n\
-       myAISContext->NextCurrent ())       \n\
-       myAISContext->SetDisplayMode(myAISContext->Current(), 0);  \n\
-\n");
-
-       CString text(Message.ToCString());
-       (*myCResultDialog).SetTitle(CString("Wireframe"));
-       (*myCResultDialog).SetText(text);
-}
-
-void DlgAttributes::Set(Handle ( AIS_InteractiveContext ) & acontext, CResultDialog& aResultDialog)
-{
-       myAISContext = acontext;
-       myCResultDialog=&aResultDialog;
-}
-
-void DlgAttributes::OnTransparency() 
-{
-/*
-       for (myAISContext->InitCurrent(); myAISContext->MoreCurrent ();
-                myAISContext->NextCurrent ()) {
-                       
-       
-               int ival = (int) ((double) myAISContext->Current()->Transparency()*10.) ;
-               double rval = ((double) ival)/10.;
-               CDialogTransparency Dlg(NULL, rval);
-               if(Dlg.DoModal()== IDOK) 
-                       myAISContext->SetTransparency (myAISContext->Current(),Dlg.m_transvalue);
-       
-       }       
-*/
-       /*
-       CDialogTransparency DialBox(myAISContext);
-       DialBox.DoModal();
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       OCC_3dView *pView = (OCC_3dView *) pChild->GetActiveView();
-       pView->Redraw();
-       */
-       myAISContext->InitCurrent();
-       if(myAISContext->NbCurrents() > 0){
-       CDialogTransparency DialBox(myAISContext, AfxGetMainWnd());
-       DialBox.DoModal();
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       OCC_3dView *pView = (OCC_3dView *) pChild->GetActiveView();
-       pView->Redraw();
-       }
-
-TCollection_AsciiString Message ("\
-\n\
-for (myAISContext->InitCurrent(); myAISContext->MoreCurrent ();  \n\
-       myAISContext->NextCurrent ())       \n\
-       myAISContext->SetTransparency (myAISContext->Current(),Dlg.m_transvalue);  \n\
-\n");
-
-       CString text(Message.ToCString());
-       (*myCResultDialog).SetTitle(CString("Setting Transparency"));
-       (*myCResultDialog).SetText(text);
-}
-
-
-
-void DlgAttributes::OnObjectMaterialAluminium     () { SetMaterial ( Graphic3d_NOM_ALUMINIUM     ) ; }
-void DlgAttributes::OnObjectMaterialBrass     () { SetMaterial ( Graphic3d_NOM_BRASS     ) ; }
-void DlgAttributes::OnObjectMaterialBronze    () { SetMaterial ( Graphic3d_NOM_BRONZE    ) ; }
-void DlgAttributes::OnObjectMaterialChrome    () { SetMaterial ( Graphic3d_NOM_CHROME     ) ; }
-void DlgAttributes::OnObjectMaterialCopper    () { SetMaterial ( Graphic3d_NOM_COPPER    ) ; }
-void DlgAttributes::OnObjectMaterialGold      () { SetMaterial ( Graphic3d_NOM_GOLD      ) ; }
-void DlgAttributes::OnObjectMaterialJade     () { SetMaterial ( Graphic3d_NOM_JADE     ) ; }
-void DlgAttributes::OnObjectMaterialMetalized     () { SetMaterial ( Graphic3d_NOM_METALIZED     ) ; }
-void DlgAttributes::OnObjectMaterialNeonGNC     () { SetMaterial ( Graphic3d_NOM_NEON_GNC     ) ; }
-void DlgAttributes::OnObjectMaterialNeonPHC     () { SetMaterial ( Graphic3d_NOM_NEON_PHC     ) ; }
-void DlgAttributes::OnObjectMaterialObsidian     () { SetMaterial ( Graphic3d_NOM_OBSIDIAN     ) ; }
-void DlgAttributes::OnObjectMaterialPewter    () { SetMaterial ( Graphic3d_NOM_PEWTER    ) ; }
-void DlgAttributes::OnObjectMaterialPlaster   () { SetMaterial ( Graphic3d_NOM_PLASTER   ) ; }
-void DlgAttributes::OnObjectMaterialPlastic   () { SetMaterial ( Graphic3d_NOM_PLASTIC   ) ; }
-void DlgAttributes::OnObjectMaterialSatin     () { SetMaterial ( Graphic3d_NOM_SATIN     ) ; }
-void DlgAttributes::OnObjectMaterialShinyPlastic     () { SetMaterial ( Graphic3d_NOM_SHINY_PLASTIC     ) ; }
-void DlgAttributes::OnObjectMaterialSilver    () { SetMaterial ( Graphic3d_NOM_SILVER    ) ; }
-void DlgAttributes::OnObjectMaterialSteel    () { SetMaterial ( Graphic3d_NOM_STEEL    ) ; }
-void DlgAttributes::OnObjectMaterialStone    () { SetMaterial ( Graphic3d_NOM_STONE    ) ; }
-void DlgAttributes::OnObjectMaterialDefault    () { SetMaterial ( Graphic3d_NOM_DEFAULT     ) ; }
-
-void DlgAttributes::SetMaterial(Graphic3d_NameOfMaterial Material) 
-{
-  for (myAISContext->InitCurrent();myAISContext->MoreCurrent ();myAISContext->NextCurrent ())
-               myAISContext->SetMaterial (myAISContext->Current(),
-         (Graphic3d_NameOfMaterial)(Material));
-
-  TCollection_AsciiString aString;
-  TCollection_AsciiString Message1 ("\
-\n\
-for (myAISContext->InitCurrent(); myAISContext->MoreCurrent ();  \n\
-       myAISContext->NextCurrent ())       \n\
-       myAISContext->SetMaterial (myAISContext->Current(), "); 
-
-       TCollection_AsciiString Message2(");  \n\
-\n");
-  switch (Material){
-       case 0:
-               aString = "Graphic3d_NOM_BRASS";
-               break;
-       case 1:
-               aString = "Graphic3d_NOM_BRONZE";
-               break;
-       case 2:
-               aString = "Graphic3d_NOM_COPPER";
-               break;
-       case 3:
-               aString = "Graphic3d_NOM_GOLD";
-               break;
-       case 4:
-               aString = "Graphic3d_NOM_PEWTER";
-               break;
-       case 5:
-               aString = "Graphic3d_NOM_PLASTER";
-               break;
-       case 6:
-               aString = "Graphic3d_NOM_PLASTIC";
-               break;
-       case 7:
-               aString = "Graphic3d_NOM_SILVER";
-               break;
-       case 8:
-               aString = "Graphic3d_NOM_STEEL";
-               break;
-       case 9:
-               aString = "Graphic3d_NOM_STONE";
-               break;
-       case 10:
-               aString = "Graphic3d_NOM_SHINY_PLASTIC";
-               break;
-       case 11:
-               aString = "Graphic3d_NOM_SATIN";
-               break;
-       case 12:
-               aString = "Graphic3d_NOM_METALIZED";
-               break;
-       case 13:
-               aString = "Graphic3d_NOM_NEON_GNC";
-               break;
-       case 14:
-               aString = "Graphic3d_NOM_CHROME";
-               break;
-       case 15:
-               aString = "Graphic3d_NOM_ALUMINIUM";
-               break;
-       case 16:
-               aString = "Graphic3d_NOM_OBSIDIAN";
-               break;
-       case 17:
-               aString = "Graphic3d_NOM_NEON_PHC";
-               break;
-       case 18:
-               aString = "Graphic3d_NOM_JADE";
-               break;
-       case 19:
-               aString = "Graphic3d_NOM_DEFAULT";
-               break;
-       default:
-               break;
-  }
-
-       Message1 = Message1 +aString +Message2;
-       //Graphic3d_MaterialAspect aAspect (Material);
-       //Standard_CString aString = aAspect.MaterialName();
-
-       CString text(Message1.ToCString());
-       (*myCResultDialog).SetTitle(CString("Setting Material"));
-       (*myCResultDialog).SetText(text);
-
-}
-
-void DlgAttributes::OnUpdateObjectTransparency(CCmdUI* pCmdUI) 
-{
-  bool OneOrMoreInShading = false;
-  for (myAISContext->InitCurrent();myAISContext->MoreCurrent ();myAISContext->NextCurrent ())
-    if (myAISContext->IsDisplayed(myAISContext->Current(),1)) OneOrMoreInShading=true;
-       pCmdUI->Enable (OneOrMoreInShading);    
-}
-
-
-
-void DlgAttributes::OnShading() 
-{
-       for(myAISContext->InitCurrent(); myAISContext->MoreCurrent();
-       myAISContext->NextCurrent())            
-               myAISContext->SetDisplayMode(myAISContext->Current(), 1);       
-
-                
-TCollection_AsciiString Message ("\
-\n\
-for (myAISContext->InitCurrent(); myAISContext->MoreCurrent ();  \n\
-       myAISContext->NextCurrent ())       \n\
-       myAISContext->SetDisplayMode(myAISContext->Current(), 1);  \n\
-\n");
-
-       CString text(Message.ToCString());
-       (*myCResultDialog).SetTitle(CString("Shading"));
-       (*myCResultDialog).SetText(text);
-}
diff --git a/samples/mfc/standard/04_Viewer3d/src/DlgAttributes.h b/samples/mfc/standard/04_Viewer3d/src/DlgAttributes.h
deleted file mode 100755 (executable)
index 8d86693..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-// DlgAttributes.h : header file
-//
-
-#if !defined(AFX_DLGATTRIBUTES_H__AF548353_9EF6_11D1_A47D_00C095ECDA78__INCLUDED_)
-#define AFX_DLGATTRIBUTES_H__AF548353_9EF6_11D1_A47D_00C095ECDA78__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include <AIS_InteractiveContext.hxx>
-#include <ResultDialog.h>
-
-/////////////////////////////////////////////////////////////////////////////
-// DlgAttributes dialog
-
-class DlgAttributes : public CDialog
-{
-// Construction
-public:
-       void Set(Handle(AIS_InteractiveContext)& acontext, CResultDialog& aResultDialog);
-       DlgAttributes(CWnd* pParent=NULL);
-
-// Dialog Data
-       //{{AFX_DATA(DlgAttributes)
-       enum { IDD = IDD_ATTRIBUTES };
-               // NOTE: the ClassWizard will add data members here
-       //}}AFX_DATA
-
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(DlgAttributes)
-       protected:
-       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
-       //}}AFX_VIRTUAL
-
-// Implementation
-protected:
-
-       // Generated message map functions
-       //{{AFX_MSG(DlgAttributes)
-       afx_msg void OnColor();
-       afx_msg void OnWireframe();
-       afx_msg void OnTransparency() ;
-       afx_msg void OnShading();
-       afx_msg void OnObjectMaterialAluminium();
-       afx_msg void OnObjectMaterialBrass();
-       afx_msg void OnObjectMaterialBronze();
-       afx_msg void OnObjectMaterialChrome();
-       afx_msg void OnObjectMaterialCopper();
-       afx_msg void OnObjectMaterialGold();
-       afx_msg void OnObjectMaterialJade();
-       afx_msg void OnObjectMaterialMetalized();
-       afx_msg void OnObjectMaterialNeonGNC();
-       afx_msg void OnObjectMaterialNeonPHC();
-       afx_msg void OnObjectMaterialObsidian();
-       afx_msg void OnObjectMaterialPewter();
-       afx_msg void OnObjectMaterialPlastic();
-       afx_msg void OnObjectMaterialPlaster();
-       afx_msg void OnObjectMaterialSatin();
-       afx_msg void OnObjectMaterialShinyPlastic();
-       afx_msg void OnObjectMaterialSilver();
-       afx_msg void OnObjectMaterialSteel();
-       afx_msg void OnObjectMaterialStone();
-       afx_msg void OnObjectMaterialDefault();
-
-       afx_msg void OnUpdateObjectTransparency(CCmdUI* pCmdUI) ;
-
-
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-       void SetMaterial (Graphic3d_NameOfMaterial Material);
-
-private:
-       Handle(AIS_InteractiveContext) myAISContext;
-       CResultDialog* myCResultDialog;
-};
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_DLGATTRIBUTES_H__AF548353_9EF6_11D1_A47D_00C095ECDA78__INCLUDED_)
diff --git a/samples/mfc/standard/04_Viewer3d/src/DlgIsos.cpp b/samples/mfc/standard/04_Viewer3d/src/DlgIsos.cpp
deleted file mode 100755 (executable)
index 4de8047..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-// DlgIsos.cpp : implementation file
-//
-
-#include "stdafx.h"
-
-#include "DlgIsos.h"
-
-#include "Viewer3dApp.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// DlgIsos dialog
-
-
-DlgIsos::DlgIsos(CWnd* pParent,
-                                int nisou,
-                                int nisov)
-       : CDialog(DlgIsos::IDD, pParent)
-{
-       //{{AFX_DATA_INIT(DlgIsos)
-       m_isou = nisou;
-       m_isov = nisov;
-       //}}AFX_DATA_INIT
-}
-
-
-void DlgIsos::DoDataExchange(CDataExchange* pDX)
-{
-       CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(DlgIsos)
-       DDX_Text(pDX, IDC_EDIT_ISOU, m_isou);
-       DDX_Text(pDX, IDC_EDIT_ISOV, m_isov);
-       //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(DlgIsos, CDialog)
-       //{{AFX_MSG_MAP(DlgIsos)
-               // NOTE: the ClassWizard will add message map macros here
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// DlgIsos message handlers
diff --git a/samples/mfc/standard/04_Viewer3d/src/DlgIsos.h b/samples/mfc/standard/04_Viewer3d/src/DlgIsos.h
deleted file mode 100755 (executable)
index 0853be1..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-// DlgIsos.h : header file
-//
-
-#include "stdafx.h"
-
-#if !defined(AFX_DLGISOS_H__AD159C33_9EDC_11D1_A47D_00C095ECDA78__INCLUDED_)
-#define AFX_DLGISOS_H__AD159C33_9EDC_11D1_A47D_00C095ECDA78__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-/////////////////////////////////////////////////////////////////////////////
-// DlgIsos dialog
-
-class DlgIsos : public CDialog
-{
-// Construction
-public:
-       DlgIsos(CWnd* pParent,
-                       int nisou,
-                       int nisov);   // standard constructor
-
-// Dialog Data
-       //{{AFX_DATA(DlgIsos)
-       enum { IDD = IDD_ISOS };
-       int             m_isou;
-       int             m_isov;
-       //}}AFX_DATA
-
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(DlgIsos)
-       protected:
-       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
-       //}}AFX_VIRTUAL
-
-// Implementation
-protected:
-
-       // Generated message map functions
-       //{{AFX_MSG(DlgIsos)
-               // NOTE: the ClassWizard will add member functions here
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-};
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_DLGISOS_H__AD159C33_9EDC_11D1_A47D_00C095ECDA78__INCLUDED_)
diff --git a/samples/mfc/standard/04_Viewer3d/src/ISession_Curve.cpp b/samples/mfc/standard/04_Viewer3d/src/ISession_Curve.cpp
deleted file mode 100755 (executable)
index 6d6fb6d..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-// ISession_Curve.cpp: implementation of the ISession_Curve class.
-//
-//////////////////////////////////////////////////////////////////////
-
-#include "stdafx.h"
-#include "ISession_Curve.h"
-#include <Prs3d_LineAspect.hxx>
-#include <StdPrs_Curve.hxx>
-#include <GeomAdaptor_Curve.hxx>
-#include <Prs3d_Drawer.hxx>
-#include <Prs3d_ArrowAspect.hxx>
-
-IMPLEMENT_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
-
-#ifdef _DEBUG
-#undef THIS_FILE
-static char THIS_FILE[]=__FILE__;
-#endif
-
-//////////////////////////////////////////////////////////////////////
-// Construction/Destruction
-//////////////////////////////////////////////////////////////////////
-
-
-ISession_Curve::ISession_Curve(const Handle(Geom_Curve)& aCurve)
-:AIS_InteractiveObject(),myCurve(aCurve)
-{
-}
-
-ISession_Curve::~ISession_Curve()
-{
-
-}
-void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager)& /*aPresentationManager*/,
-                             const Handle(Prs3d_Presentation)& aPresentation,
-                             const Standard_Integer /*aMode*/)
-{
-  GeomAdaptor_Curve anAdaptorCurve(myCurve);
-  if (hasOwnColor)
-    myDrawer->LineAspect()->SetColor (myDrawer->Color());
-  myDrawer->Link()->SetDiscretisation(100);
-  myDrawer->Link()->SetMaximalParameterValue(500);
-
-  StdPrs_Curve::Add (aPresentation, anAdaptorCurve, myDrawer);
-}
-
-void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
-                                     const Standard_Integer /*aMode*/) 
-{ 
-}
-
-
diff --git a/samples/mfc/standard/04_Viewer3d/src/ISession_Curve.h b/samples/mfc/standard/04_Viewer3d/src/ISession_Curve.h
deleted file mode 100755 (executable)
index c1c955f..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-// ISession_Curve.h: interface for the ISession_Curve class.
-//
-//////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_ISESSION_CURVE_H__F981CB93_A3CC_11D1_8DA3_0800369C8A03__INCLUDED_)
-#define AFX_ISESSION_CURVE_H__F981CB93_A3CC_11D1_8DA3_0800369C8A03__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-#include <Standard_Macro.hxx>
-#include <Standard_DefineHandle.hxx>
-#include <AIS_InteractiveObject.hxx>
-#include <Geom_Curve.hxx>
-class ISession_Curve;
-DEFINE_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
-
-class ISession_Curve : public AIS_InteractiveObject  
-{
-public:
-       ISession_Curve(const Handle(Geom_Curve)& aCurve);
-       virtual ~ISession_Curve();
-DEFINE_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
-private:
-
-Standard_EXPORT virtual  void Compute(const Handle(PrsMgr_PresentationManager)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0) ;
-void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer aMode) ;
-
-Handle(Geom_Curve) myCurve;
-};
-
-#endif // !defined(AFX_ISESSION_CURVE_H__F981CB93_A3CC_11D1_8DA3_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/04_Viewer3d/src/ModelClippingDlg.cpp b/samples/mfc/standard/04_Viewer3d/src/ModelClippingDlg.cpp
deleted file mode 100755 (executable)
index 2bf031f..0000000
+++ /dev/null
@@ -1,298 +0,0 @@
-// ModelClippingDlg.cpp : implementation file
-//
-
-#include "stdafx.h"
-#include "Viewer3dApp.h"
-#include "ModelClippingDlg.h"
-#include "Viewer3dDoc.h"
-#include "offsetdlg.h" // Added by ClassView
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-#define EOL "\n"
-
-// =======================================================================
-// function : CModelClippingDlg
-// purpose  :
-// =======================================================================
-CModelClippingDlg::CModelClippingDlg (Handle(V3d_View)            theView,
-                                      Handle(AIS_Shape)           theShape,
-                                      Handle(Graphic3d_ClipPlane) theClippingPlane,
-                                      CViewer3dDoc*               theDoc,
-                                      CWnd*                       theParent)
-: CDialog(CModelClippingDlg::IDD, theParent),
-  m_ModelClipping_Z (0.0),
-  myModelClipping_Z (0.0),
-  m_ModelClippingONOFF (FALSE),
-  myView (theView),
-  myShape (theShape),
-  myClippingPlane (theClippingPlane),
-  myDoc (theDoc)
-{}
-
-// =======================================================================
-// function : DoDataExchange
-// purpose  :
-// =======================================================================
-void CModelClippingDlg::DoDataExchange(CDataExchange* pDX)
-{
-       CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(CModelClippingDlg)
-       DDX_Control(pDX, IDC_SLIDER_MODELCLIPPING_Z, m_ModelClippingZSlidCtrl);
-       DDX_Text(pDX, IDC_EDIT_MODELCLIPPING_Z, m_ModelClipping_Z);
-       DDX_Check(pDX, IDC_CHECK_MODELCLIPPINGONOFF, m_ModelClippingONOFF);
-       //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(CModelClippingDlg, CDialog)
-       //{{AFX_MSG_MAP(CModelClippingDlg)
-       ON_WM_HSCROLL()
-       ON_EN_CHANGE(IDC_EDIT_MODELCLIPPING_Z, OnChangeEditModelclippingZ)
-       ON_BN_CLICKED(IDC_CHECK_MODELCLIPPINGONOFF, OnCheckModelclippingonoff)
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-// =======================================================================
-// function : OnHScroll
-// purpose  :
-// =======================================================================
-void CModelClippingDlg::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
-{
-  UpdateData(TRUE);
-
-  m_ModelClipping_Z = m_ModelClippingZSlidCtrl.GetPos();
-
-  UpdateData(FALSE);
-
-  // Setting the ZClipping depth at m_ZClippingDepth value
-  gp_Pln aPlane (gp_Pnt (-m_ModelClipping_Z, 0.0, 0.0), gp_Dir(1.0, 0.0, 0.0));
-
-  myClippingPlane->SetEquation (aPlane);
-
-  gp_Trsf myTrsf;
-  myTrsf.SetTranslation (gp_Pnt (m_ModelClipping_Z, 0.0, 0.0), gp_Pnt(myModelClipping_Z, 0.0, 0.0));
-
-  // transform presentation shape
-  if (m_ModelClippingONOFF)
-  {
-    myDoc->GetAISContext()->SetLocation (myShape, TopLoc_Location (myTrsf));
-    myDoc->GetAISContext()->Redisplay (myShape, Standard_True);
-    myView->Update();
-  }
-  else
-  {
-    myShape->SetLocalTransformation (myTrsf);
-  }
-
-  TCollection_AsciiString aMessage (
-    EOL "gp_Pln aPlane (gp_Pnt (-m_ModelClipping_Z, 0.0, 0.0), gp_Dir(1.0, 0.0, 0.0));"
-    EOL
-    EOL "myClippingPlane->SetEquation (aPlane);\n" );
-
-  // Update The Result Message Dialog
-  myDoc->UpdateResultMessageDlg ("Change clipping plane", aMessage);
-
-  CDialog::OnHScroll (nSBCode, nPos, pScrollBar);
-}
-
-// =======================================================================
-// function : OnInitDialog
-// purpose  :
-// =======================================================================
-BOOL CModelClippingDlg::OnInitDialog() 
-{
-  CDialog::OnInitDialog();
-
-  const Graphic3d_ClipPlane::Equation aPlaneEquation = myClippingPlane->GetEquation();
-
-  // m_ModelClipping_Z = D (plane coefficient)
-  m_ModelClipping_Z = aPlaneEquation[3];
-  m_ModelClippingZSlidCtrl.SetRange (-750, 750, TRUE);
-  m_ModelClippingZSlidCtrl.SetPos ((int)floor (m_ModelClipping_Z));
-
-  m_ModelClippingONOFF = myClippingPlane->IsOn();
-
-  if (m_ModelClippingONOFF)
-  {
-    // register and activate clipping plane
-    Standard_Boolean toAddPlane = Standard_True;
-    Handle(Graphic3d_SequenceOfHClipPlane) aPlanes = myView->ClipPlanes();
-    if (!aPlanes.IsNull())
-    {
-      for (Graphic3d_SequenceOfHClipPlane::Iterator aPlaneIt (*aPlanes); aPlaneIt.More(); aPlaneIt.Next())
-      {
-        if (aPlaneIt.Value() == myClippingPlane)
-        {
-          toAddPlane = Standard_False;
-          break;
-        }
-      }
-    }
-
-    if (toAddPlane)
-    {
-      myView->AddClipPlane (myClippingPlane);
-    }
-
-    myClippingPlane->SetOn (Standard_True);
-
-    myDoc->GetAISContext()->Display (myShape, Standard_True);
-  }
-
-  UpdateData (FALSE);
-
-  return TRUE;
-}
-
-// =======================================================================
-// function : OnChangeEditModelclippingZ
-// purpose  :
-// =======================================================================
-void CModelClippingDlg::OnChangeEditModelclippingZ()
-{
-  UpdateData (TRUE);
-
-  m_ModelClippingZSlidCtrl.SetPos ((int)floor (m_ModelClipping_Z));
-
-  // Change clipping plane
-  gp_Pln aPlane (gp_Pnt (-m_ModelClipping_Z, 0.0, 0.0), gp_Dir (1.0, 0.0, 0.0));
-
-  myClippingPlane->SetEquation (aPlane);
-
-  // transform presentation shape
-  gp_Trsf myTrsf;
-  myTrsf.SetTranslation ( gp_Pnt (m_ModelClipping_Z, 0.0, 0.0), gp_Pnt (myModelClipping_Z, 0.0, 0.0));
-
-  // transform presentation shape
-  if (m_ModelClippingONOFF)
-  {
-    myDoc->GetAISContext()->SetLocation (myShape, TopLoc_Location (myTrsf));
-    myDoc->GetAISContext()->Redisplay (myShape, Standard_False);
-    myView->Update();
-  }
-  else
-  {
-    myShape->SetLocalTransformation (myTrsf);
-  }
-
-  myModelClipping_Z = m_ModelClipping_Z;
-
-  TCollection_AsciiString aMessage (
-    EOL "gp_Pln aPlane (gp_Pnt (-m_ModelClipping_Z, 0.0, 0.0), gp_Dir(1.0, 0.0, 0.0));"
-    EOL
-    EOL "myClippingPlane->SetEquation (aPlane);\n" );
-
-  // Update The Result Message Dialog
-  myDoc->UpdateResultMessageDlg ("Change clipping plane", aMessage);
-}
-
-// =======================================================================
-// function : OnCheckModelclippingonoff
-// purpose  :
-// =======================================================================
-void CModelClippingDlg::OnCheckModelclippingonoff()
-{
-  UpdateData(TRUE);
-
-  if (m_ModelClippingONOFF)
-  {
-    // register and activate clipping plane
-    Standard_Boolean toAddPlane = Standard_True;
-    Handle(Graphic3d_SequenceOfHClipPlane) aPlanes = myView->ClipPlanes();
-    if (!aPlanes.IsNull())
-    {
-      for (Graphic3d_SequenceOfHClipPlane::Iterator aPlaneIt (*aPlanes); aPlaneIt.More(); aPlaneIt.Next())
-      {
-        if (aPlaneIt.Value() == myClippingPlane)
-        {
-          toAddPlane = Standard_False;
-          break;
-        }
-      }
-    }
-
-    if (toAddPlane)
-    {
-      myView->AddClipPlane (myClippingPlane);
-    }
-
-    myClippingPlane->SetOn (Standard_True);
-
-    myDoc->GetAISContext()->Display (myShape, Standard_False);
-  }
-  else
-  {
-    // deactivate clipping plane
-    myClippingPlane->SetOn (Standard_False);
-
-    myDoc->GetAISContext()->Remove (myShape, Standard_False);
-  }
-
-  myView->Update();
-
-  TCollection_AsciiString aMessage (
-    EOL "if (...)"
-    EOL "{"
-    EOL "  // register and activate clipping plane"
-    EOL "  if (!myView->ClipPlanes()->Contains (myClippingPlane))"
-    EOL "  {"
-    EOL "    myView->AddClipPlane (myClippingPlane);"
-    EOL "  }"
-    EOL
-    EOL "  myClippingPlane->SetOn (Standard_True);"
-    EOL "}"
-    EOL "else"
-    EOL "{"
-    EOL "  // deactivate clipping plane"
-    EOL "  myClippingPlane->SetOn (Standard_False);"
-    EOL "}" );
-
-  myDoc->UpdateResultMessageDlg ("Switch clipping on/off", aMessage);
-}
-
-// =======================================================================
-// function : OnCancel
-// purpose  :
-// =======================================================================
-void CModelClippingDlg::OnCancel() 
-{
-  UpdateData(TRUE);
-
-  if (m_ModelClippingONOFF)
-  {
-    // remove and deactivate clipping plane
-    myView->RemoveClipPlane (myClippingPlane);
-
-    myClippingPlane->SetOn (Standard_False);
-  }
-
-  m_ModelClippingONOFF=FALSE;
-
-  if (!myShape.IsNull())
-  {
-    myDoc->GetAISContext()->Remove (myShape, Standard_False);
-  }
-
-  myView->Update();
-
-  CDialog::OnCancel();
-}
-
-// =======================================================================
-// function : OnOK
-// purpose  :
-// =======================================================================
-void CModelClippingDlg::OnOK() 
-{
-  if (!myShape.IsNull())
-  {
-    myDoc->GetAISContext()->Remove (myShape, Standard_True);
-  }
-
-  CDialog::OnOK();
-}
diff --git a/samples/mfc/standard/04_Viewer3d/src/ModelClippingDlg.h b/samples/mfc/standard/04_Viewer3d/src/ModelClippingDlg.h
deleted file mode 100755 (executable)
index dc8533c..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-#if !defined(AFX_MODELCLIPPINGDLG_H__E206D99D_646E_11D3_8D0A_00AA00D10994__INCLUDED_)
-#define AFX_MODELCLIPPINGDLG_H__E206D99D_646E_11D3_8D0A_00AA00D10994__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-// ModelClippingDlg.h : header file
-//
-
-/////////////////////////////////////////////////////////////////////////////
-// CModelClippingDlg dialog
-#include "Viewer3dDoc.h"
-
-#include <Graphic3d_ClipPlane.hxx>
-
-class CModelClippingDlg : public CDialog
-{
-public:
-
-  //! Standard constructor.
-  CModelClippingDlg (Handle(V3d_View)            theView,
-                     Handle(AIS_Shape)           theShape,
-                     Handle(Graphic3d_ClipPlane) theClippingPlane,
-                     CViewer3dDoc*               theDoc,
-                     CWnd*                       theParent = NULL);
-
-// Dialog Data
-       //{{AFX_DATA(CModelClippingDlg)
-       enum { IDD = IDD_MODELCLIPPING };
-       CSliderCtrl     m_ModelClippingZSlidCtrl;
-       double  m_ModelClipping_Z;
-       BOOL    m_ModelClippingONOFF;
-       //}}AFX_DATA
-
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(CModelClippingDlg)
-       protected:
-       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
-       //}}AFX_VIRTUAL
-
-// Implementation
-protected:
-
-       // Generated message map functions
-       //{{AFX_MSG(CModelClippingDlg)
-       afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
-       virtual BOOL OnInitDialog();
-       afx_msg void OnChangeEditModelclippingZ();
-       afx_msg void OnCheckModelclippingonoff();
-       virtual void OnCancel();
-       virtual void OnOK();
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-
-private:
-  Handle(V3d_View)            myView;
-  Handle(AIS_Shape)           myShape;
-  Handle(Graphic3d_ClipPlane) myClippingPlane;
-  CViewer3dDoc*               myDoc;
-  double                      myModelClipping_Z;
-};
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_MODELCLIPPINGDLG_H__E206D99D_646E_11D3_8D0A_00AA00D10994__INCLUDED_)
diff --git a/samples/mfc/standard/04_Viewer3d/src/OCCDemo_Presentation.cpp b/samples/mfc/standard/04_Viewer3d/src/OCCDemo_Presentation.cpp
deleted file mode 100755 (executable)
index 10b73db..0000000
+++ /dev/null
@@ -1,329 +0,0 @@
-// OCCDemo_Presentation.cpp: implementation of the OCCDemo_Presentation class.
-// This is a base class for all presentations
-//////////////////////////////////////////////////////////////////////
-
-#include "stdafx.h"
-#include "OCCDemo_Presentation.h"
-#include "Viewer3dView.h"
-#include "ISession_Curve.h"
-
-#include <AIS_InteractiveObject.hxx>
-#include <Geom_Surface.hxx>
-#include <Geom_Curve.hxx>
-#include <Geom2d_Curve.hxx>
-#include <Quantity_Color.hxx>
-#include <AIS_Shape.hxx>
-#include <BRepBuilderAPI_MakeFace.hxx>
-#include <Precision.hxx>
-#include <Geom_Line.hxx>
-#include <Geom_TrimmedCurve.hxx>
-#include <Prs3d_Drawer.hxx>
-#include <Prs3d_ArrowAspect.hxx>
-#include <AIS_Point.hxx>
-#include <Geom_CartesianPoint.hxx>
-#include <Geom2d_OffsetCurve.hxx>
-#include <GeomAPI.hxx>
-#include <gp_Pln.hxx>
-#include <Geom_OffsetCurve.hxx>
-
-#define MAX_PARAM 1000 // if a surface parameter is infinite, it is assigned
-// this value in order to display the "infinit" object in the viewer.
-
-
-Standard_Boolean OCCDemo_Presentation::WaitForInput (unsigned long aMilliSeconds)
-{
-  //::WaitForSingleObject(::CreateEvent (NULL, FALSE, FALSE, NULL), aMilliSeconds);
-  if (::MsgWaitForMultipleObjects(0, NULL, FALSE, aMilliSeconds,
-    QS_KEY | QS_MOUSEBUTTON) != WAIT_TIMEOUT)
-  {
-    MSG msg;
-    if (::PeekMessage (&msg, NULL, 0, 0, PM_NOREMOVE))
-    {
-      if (msg.message == WM_KEYUP)
-      {
-        ::PeekMessage (&msg, NULL, 0, 0, PM_REMOVE);
-        return WaitForInput (aMilliSeconds);
-      }
-      else
-        return Standard_True;
-    }
-  }
-  return Standard_False;
-}
-
-//================================================================
-// Function : fixParam
-// Purpose  : assigns a finite value to theParam if it's infinite
-//            (equal to +- Precision::Infinite())
-//================================================================
-static Standard_Boolean fixParam(Standard_Real& theParam)
-{
-  Standard_Boolean aResult = Standard_False;
-  if (Precision::IsNegativeInfinite(theParam))
-  {
-    theParam = -MAX_PARAM;
-    aResult = Standard_True;
-  }
-  if (Precision::IsPositiveInfinite(theParam))
-  {
-    theParam = MAX_PARAM;
-    aResult = Standard_True;
-  }
-  return aResult;
-}
-
-//================================================================
-// Function : DrawSurface                           
-// Purpose  : displays a given geometric surface in 3d viewer
-//            (creates a finite face and displays it)
-//================================================================
-Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawSurface
-                                  (const Handle(Geom_Surface)& theSurface,
-                                   const Quantity_Color& theColor,
-                                   const Standard_Boolean toDisplay)
-{
-  Standard_Real u1, u2, v1, v2;
-  theSurface->Bounds(u1,u2,v1,v2);
-  fixParam(u1);
-  fixParam(u2);
-  fixParam(v1);
-  fixParam(v2);
-
-  Handle(AIS_Shape) aGraphicSurface = 
-    new AIS_Shape(BRepBuilderAPI_MakeFace (theSurface, u1, u2, v1, v2, Precision::Confusion()));
-
-  getAISContext()->SetMaterial(aGraphicSurface, Graphic3d_NOM_PLASTIC, toDisplay);
-  getAISContext()->SetColor(aGraphicSurface, theColor, toDisplay);
-  if (toDisplay) {
-    if (FitMode){
-               getAISContext()->Display (aGraphicSurface, Standard_False);
-               CViewer3dDoc::Fit();
-       }
-       else
-               getAISContext()->Display (aGraphicSurface, Standard_True);
-  }
-  
-  return aGraphicSurface;
-}
-
-//================================================================
-// Function : DrawCurve                                 
-// Purpose  : displays a given curve 3d
-//================================================================
-Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawCurve
-                                  (const Handle(Geom_Curve)& theCurve,
-                                   const Quantity_Color& theColor,
-                                   const Standard_Boolean toDisplay)
-{
-  Handle(ISession_Curve) aGraphicCurve = new ISession_Curve (theCurve);
-
-  getAISContext()->SetColor (aGraphicCurve, theColor, toDisplay);
-  aGraphicCurve->Attributes()->Link()->SetLineArrowDraw(Standard_False);
-  if (toDisplay){ 
-    if (FitMode){
-               getAISContext()->Display (aGraphicCurve, Standard_False);
-               CViewer3dDoc::Fit();
-       }
-       else
-               getAISContext()->Display (aGraphicCurve, Standard_True);
-  }
-
-  return aGraphicCurve;
-}
-
-//================================================================
-// Function : DrawCurve                                 
-// Purpose  : displays a given curve 2d
-//================================================================
-Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawCurve
-                                  (const Handle(Geom2d_Curve)& theCurve,
-                                   const Quantity_Color& theColor,
-                                   const Standard_Boolean toDisplay,
-                                   const gp_Ax2& aPosition)
-{
-  // create 3D curve in plane
-  Handle(Geom_Curve) aCurve3d;
-  if (theCurve->IsKind(STANDARD_TYPE(Geom2d_OffsetCurve)))
-  {
-    Handle(Geom2d_OffsetCurve) aOffCurve =
-      Handle(Geom2d_OffsetCurve)::DownCast(theCurve);
-    Handle(Geom_Curve) aBasCurve3d =
-      GeomAPI::To3d (aOffCurve->BasisCurve(), gp_Pln(aPosition));
-    Standard_Real aDist = aOffCurve->Offset();
-    aCurve3d = new Geom_OffsetCurve (aBasCurve3d, aDist, aPosition.Direction());
-  }
-  else
-  {
-    aCurve3d = GeomAPI::To3d (theCurve, gp_Pln(aPosition));
-  }
-  return drawCurve (aCurve3d, theColor, toDisplay);
-}
-
-//================================================================
-// Function : drawPoint
-// Purpose  : displays a given point
-//================================================================
-Handle(AIS_Point) OCCDemo_Presentation::drawPoint
-                                  (const gp_Pnt& aPnt,
-                                   const Quantity_Color& theColor,
-                                   const Standard_Boolean toDisplay)
-{
-  Handle(AIS_Point) aGraphicPoint = new AIS_Point (new Geom_CartesianPoint(aPnt));
-
-  getAISContext()->SetColor (aGraphicPoint, theColor, toDisplay);
-  if (toDisplay) {
-    getAISContext()->Display (aGraphicPoint, Standard_True);
-    //COCCDemoDoc::Fit();
-  }
-
-  return aGraphicPoint;
-}
-
-//================================================================
-// Function : drawVector
-// Purpose  : displays a given vector in 3d viewer
-//            (segment of line starting at thePnt with the arrow at the end,
-//             the length of segment is the length of the vector)
-//================================================================
-Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawVector 
-                                  (const gp_Pnt& thePnt,
-                                   const gp_Vec& theVec,
-                                   const Quantity_Color& theColor,
-                                   const Standard_Boolean toDisplay)
-{
-  Standard_Real aLength = theVec.Magnitude();
-  if (aLength < Precision::Confusion())
-    return Handle(AIS_InteractiveObject)();
-
-  Handle(Geom_Curve) aCurve = new Geom_Line (thePnt, theVec);
-  aCurve = new Geom_TrimmedCurve (aCurve, 0, aLength);
-
-  Handle(ISession_Curve) aGraphicCurve = new ISession_Curve (aCurve);
-
-  getAISContext()->SetColor (aGraphicCurve, theColor, toDisplay);
-  Handle(Prs3d_Drawer) aDrawer = aGraphicCurve->Attributes()->Link();
-  aDrawer->SetLineArrowDraw(Standard_True);
-  aDrawer->ArrowAspect()->SetLength(aLength/10);
-  if (toDisplay) {
-    if (FitMode){
-               getAISContext()->Display (aGraphicCurve, Standard_False);
-               CViewer3dDoc::Fit();
-       }
-       else
-               getAISContext()->Display (aGraphicCurve, Standard_True);
-  }
-
-  return aGraphicCurve;
-}
-
-
-Handle(AIS_Shape) OCCDemo_Presentation::drawShape 
-         (const TopoDS_Shape& theShape,const Quantity_Color& theColor,
-          const Standard_Boolean toDisplay)
-{
-  Handle(AIS_Shape) aGraphicShape = new AIS_Shape(theShape);
-
-  getAISContext()->SetMaterial(aGraphicShape, Graphic3d_NOM_PLASTIC, toDisplay);
-  getAISContext()->SetColor (aGraphicShape, theColor, toDisplay);
-  if (toDisplay){ 
-    if (FitMode){
-               getAISContext()->Display (aGraphicShape, Standard_False);
-               CViewer3dDoc::Fit();
-       }
-       else
-               getAISContext()->Display (aGraphicShape, Standard_True);
-  }
-
-  return aGraphicShape;
-}
-
-Handle(AIS_Shape) OCCDemo_Presentation::drawShape
-         (const TopoDS_Shape& theShape,
-          const Graphic3d_NameOfMaterial theMaterial,
-          const Standard_Boolean toDisplay)
-{
-  Handle(AIS_Shape) aGraphicShape = new AIS_Shape(theShape);
-
-  getAISContext()->SetMaterial(aGraphicShape, theMaterial, toDisplay);
-  if (toDisplay) {
-    if (FitMode){
-               getAISContext()->Display (aGraphicShape, Standard_False);
-               CViewer3dDoc::Fit();
-       }
-       else
-               getAISContext()->Display (aGraphicShape, Standard_True);
-  }
-
-  return aGraphicShape;
-}
-
-void OCCDemo_Presentation::GetViewAt (Standard_Real& theX, Standard_Real& theY, Standard_Real& theZ)
-{
-  CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-  CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-  CViewer3dView *pView = (CViewer3dView *) pChild->GetActiveView();
-  pView->GetViewAt (theX, theY, theZ);
-}
-
-void OCCDemo_Presentation::SetViewAt (const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ)
-{
-  CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-  CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-  CViewer3dView *pView = (CViewer3dView *) pChild->GetActiveView();
-  pView->SetViewAt (theX, theY, theZ);
-}
-
-void OCCDemo_Presentation::GetViewEye(Standard_Real& X, Standard_Real& Y, Standard_Real& Z)
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       CViewer3dView *pView = (CViewer3dView *) pChild->GetActiveView();
-       pView->GetViewEye(X,Y,Z);
-}
-
-void OCCDemo_Presentation::SetViewEye(Standard_Real X, Standard_Real Y, Standard_Real Z)
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       CViewer3dView *pView = (CViewer3dView *) pChild->GetActiveView();
-       pView->SetViewEye(X,Y,Z);
-}
-
-Standard_Real OCCDemo_Presentation::GetViewScale()
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       CViewer3dView *pView = (CViewer3dView *) pChild->GetActiveView();
-       return pView->GetViewScale();
-}
-
-void OCCDemo_Presentation::SetViewScale(Standard_Real Coef)
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       CViewer3dView *pView = (CViewer3dView *) pChild->GetActiveView();
-       pView->SetViewScale(Coef);
-}
-
-void OCCDemo_Presentation::ResetView()
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       CViewer3dView *pView = (CViewer3dView *) pChild->GetActiveView();
-       pView->Reset();
-}
-
-Handle(AIS_InteractiveContext) OCCDemo_Presentation::getAISContext() const 
-{
-       return myDoc->GetAISContext();
-}
-
-Handle(V3d_Viewer) OCCDemo_Presentation::getViewer() const
-{
-       return myDoc->GetViewer();
-}
-
-Standard_CString OCCDemo_Presentation::GetDataDir()
-{
-       return myDoc->GetDataDir();
-}
\ No newline at end of file
diff --git a/samples/mfc/standard/04_Viewer3d/src/OCCDemo_Presentation.h b/samples/mfc/standard/04_Viewer3d/src/OCCDemo_Presentation.h
deleted file mode 100755 (executable)
index 1fa66aa..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-// OCCDemo_Presentation.h: interface for the OCCDemo_Presentation class.
-// This is a base class for all presentations
-//////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_OCCDEMO_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
-#define AFX_OCCDEMO_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-#include "Viewer3dDoc.h"
-
-#define WAIT_A_LITTLE WaitForInput(500)
-#define WAIT_A_SECOND WaitForInput(1000)
-
-class CViewer3dDoc;
-#include <AIS_InteractiveObject.hxx>
-#include <AIS_Point.hxx>
-#include <Geom_Surface.hxx>
-#include <Geom_Curve.hxx>
-#include <Geom2d_Curve.hxx>
-class Quantity_Color;
-
-class OCCDemo_Presentation
-{
-public:
-  // Construction
-  OCCDemo_Presentation() : myIndex(0), myNbSamples(0), FitMode(false){}
-  virtual ~OCCDemo_Presentation() {}
-
-public:
-  static OCCDemo_Presentation* Current;
-  // this pointer must be initialized when realize a derivable class;
-  // it is used by application to access to a presentation class instance
-
-  void SetDocument (CViewer3dDoc* theDoc) {myDoc = theDoc;}
-  // document must be set by the user of this class before first use of iterations
-
-public:
-  // Titling
-  const CString& GetName() const {return myName;}
-
-public:
-  // Iteration on samples
-  void FirstSample() {myIndex=0;}
-  void LastSample() {myIndex=myNbSamples-1;}
-  Standard_Boolean AtFirstSample() const {return myIndex <= 0;}
-  Standard_Boolean AtLastSample() const {return myIndex >= myNbSamples-1;}
-  void NextSample() {myIndex++;}
-  void PrevSample() {myIndex--;}
-  virtual void DoSample() = 0;
-  static void GetViewAt (Standard_Real& theX, Standard_Real& theY, Standard_Real& theZ);
-  static void SetViewAt (const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ);
-  static void GetViewEye (Standard_Real& X, Standard_Real& Y, Standard_Real& Z);
-  static void SetViewEye (Standard_Real X, Standard_Real Y, Standard_Real Z);
-  static Standard_Real GetViewScale();
-  static void SetViewScale(Standard_Real Coef);
-  static void ResetView();
-  CViewer3dDoc* getDocument() { return myDoc; }
-
-
-  // place one-time initialization code in this function
-  virtual void Init() {}
-
-protected:
-  // Methods to call from a derivable class
-  void setName (const char* theName) {myName = CString(theName);}
-  Handle(AIS_InteractiveContext) getAISContext() const;
-  Handle(V3d_Viewer) getViewer() const;
-//  void setResultTitle (const char* theTitle) {myDoc->GetResultDialog()->SetTitle(theTitle);}
-//  void setResultText (const char* theText) {myDoc->GetResultDialog()->SetText(theText);}
-  Standard_CString GetDataDir();
-
-  Standard_Boolean WaitForInput (unsigned long aMilliSeconds);
-  // Waits for a user input or a period of time has been elapsed
-
-  Handle(AIS_InteractiveObject) drawSurface (const Handle(Geom_Surface)& theSurface,
-         const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_LEMONCHIFFON3),
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates a finite face based on the given geometric surface 
-  // and displays it in the viewer if toDisplay = Standard_True
-
-  Handle(AIS_InteractiveObject) drawCurve (const Handle(Geom_Curve)& theCurve,
-         const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_RED),
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates an ISession_Curve based on the given geometric curve
-  // and displays it in the viewer if toDisplay = Standard_True
-
-  Handle(AIS_InteractiveObject) drawCurve (const Handle(Geom2d_Curve)& theCurve,
-         const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_RED),
-         const Standard_Boolean toDisplay = Standard_True,
-         const gp_Ax2& aPosition = gp::XOY());
-  // converts a given curve to 3d using aPosition and calls the previous method
-
-  Handle(AIS_Point) drawPoint (const gp_Pnt& thePnt,
-         const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_GREEN),
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates a presentation of the given point
-  // and displays it in the viewer if toDisplay = Standard_True
-
-  Handle(AIS_InteractiveObject) drawVector (const gp_Pnt& thePnt,
-                                           const gp_Vec& theVec,
-         const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_YELLOW),
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates a presentation of the given vector
-  // and displays it in the viewer if toDisplay = Standard_True
-
-  Handle(AIS_Shape) drawShape (const TopoDS_Shape& theShape,
-         const Quantity_Color& theColor,
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates a presentation of the given shape
-  // with material PLASTIC and a given color
-  // and displays it in the viewer if toDisplay = Standard_True
-
-  Handle(AIS_Shape) drawShape (const TopoDS_Shape& theShape,
-         const Graphic3d_NameOfMaterial theMaterial = Graphic3d_NameOfMaterial_Brass,
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates a presentation of the given shape with the given material
-  // (color is default for a given material)
-  // and displays it in the viewer if toDisplay = Standard_True
-
-protected:
-  // Fields to use in a derivable class
-  BOOL FitMode;
-  int myIndex;
-  int myNbSamples;
-
-private:
-  CViewer3dDoc* myDoc;
-  CString myName;
-
-};
-
-#endif // !defined(AFX_OCCDEMO_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
diff --git a/samples/mfc/standard/04_Viewer3d/src/OffsetDlg.cpp b/samples/mfc/standard/04_Viewer3d/src/OffsetDlg.cpp
deleted file mode 100755 (executable)
index 9084dd3..0000000
+++ /dev/null
@@ -1,314 +0,0 @@
-// OffsetDlg.cpp : implementation file
-//
-
-#include "stdafx.h"
-#include "..\res\resource.h"
-#include "offsetdlg.h"
-#include "Viewer3dView.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-#define FactorMinValue 0
-#define FactorMaxValue 20
-
-#define UnitsMinValue 0
-#define UnitsMaxValue 20
-
-
-/////////////////////////////////////////////////////////////////////////////
-// COffsetDlg dialog
-
-
-COffsetDlg::COffsetDlg(CViewer3dDoc* theDoc, CWnd* pParent /*=NULL*/)
-       : CDialog(COffsetDlg::IDD, pParent)
-{
-       //{{AFX_DATA_INIT(COffsetDlg)
-       m_Factor = 1.;
-       m_Units = 0.;
-       //}}AFX_DATA_INIT
-       myDoc = theDoc;
-}
-
-
-void COffsetDlg::DoDataExchange(CDataExchange* pDX)
-{
-       CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(COffsetDlg)
-       DDX_Control(pDX, IDC_SLIDER_OFFSETUNITS, m_UnitsSlidCtrl);
-       DDX_Control(pDX, IDC_SLIDER_OFFSETFACTOR, m_FactorSlidCtrl);
-       DDX_Text(pDX, IDC_EDIT_OFFSETFACTOR, m_Factor);
-       DDV_MinMaxDouble(pDX, m_Factor, FactorMinValue, FactorMaxValue);
-       DDX_Text(pDX, IDC_EDIT_OFFSETUNITS, m_Units);
-       DDV_MinMaxDouble(pDX, m_Units, UnitsMinValue, UnitsMaxValue);
-       //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(COffsetDlg, CDialog)
-       //{{AFX_MSG_MAP(COffsetDlg)
-       ON_WM_HSCROLL()
-       ON_EN_CHANGE(IDC_EDIT_OFFSETFACTOR, OnChangeEditOffsetFactor)
-       ON_EN_CHANGE(IDC_EDIT_OFFSETUNITS, OnChangeEditOffsetUnits)
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// COffsetDlg message handlers
-
-BOOL COffsetDlg::OnInitDialog() 
-{
-       CDialog::OnInitDialog();
-
-// Initializing the ComboBox
-       SetOffsets(m_Factor,m_Units);
-
-// Setting the m_FactorSlidCtrl position at floor(m_Factor) value (because slider position is an integer)
-       m_FactorSlidCtrl.SetRange(FactorMinValue, FactorMaxValue, TRUE);
-       m_FactorSlidCtrl.SetPos( (int) floor(m_Factor));
-
-// Setting the m_UnitsSlidCtrl position at floor(m_Units) value (because slider position is an integer)
-       m_UnitsSlidCtrl.SetRange(UnitsMinValue, UnitsMaxValue, TRUE);
-       m_UnitsSlidCtrl.SetPos( (int) floor(m_Units));
-
-       UpdateData(FALSE);
-                       
-               
-       return TRUE;  // return TRUE unless you set the focus to a control
-                     // EXCEPTION: OCX Property Pages should return FALSE
-}
-
-void COffsetDlg::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
-{
-
-// Setting the m_Factor value at m_FactorSlidCtrl position
-       m_Factor = m_FactorSlidCtrl.GetPos();
-// Setting the m_Units value at m_UnitsSlidCtrl position
-       m_Units = m_UnitsSlidCtrl.GetPos();
-
-       UpdateData(FALSE);
-
-
-       SetOffsets(m_Factor,m_Units);
-       
-       CDialog::OnHScroll(nSBCode, nPos, pScrollBar);
-}
-
-void COffsetDlg::OnChangeEditOffsetFactor() 
-{
-       UpdateData();
-
-       m_FactorSlidCtrl.SetPos(int(m_Units));
-
-       SetOffsets(m_Factor,m_Units);
-}
-
-void COffsetDlg::OnChangeEditOffsetUnits() 
-{
-       UpdateData();
-
-       m_UnitsSlidCtrl.SetPos(int(m_Units));
-
-       SetOffsets(m_Factor,m_Units);
-}
-
-void COffsetDlg::SetOffsets(Standard_Real theFactor, Standard_Real theUnits)
-{
-       Handle(AIS_InteractiveContext) aAISContext = myDoc->GetAISContext();
-
-       Handle(AIS_Shape) aOverlappedBox = myDoc->GetOverlappedBox();
-       Handle(AIS_Shape) aOverlappedCylinder = myDoc->GetOverlappedCylinder();
-       Handle(AIS_Shape) aOverlappedSphere = myDoc->GetOverlappedSphere();
-       Handle(AIS_Shape) aBox = myDoc->GetBox();
-       Handle(User_Cylinder) aCylinder = myDoc->GetCylinder();
-       Handle(AIS_Shape) aSphere = myDoc->GetSphere();
-
-
-       myDoc->SetDialogTitle("Set offsets");
-
-       TCollection_AsciiString Message;
-
-       Standard_Boolean OneOrMoreCurrentIsDisplayed=false;
-        Standard_ShortReal aFactor = (Standard_ShortReal)theFactor;
-        Standard_ShortReal aUnits = (Standard_ShortReal)theUnits;
-       
-       for (aAISContext->InitSelected(); aAISContext->MoreSelected(); aAISContext->NextSelected())
-               if (aAISContext->IsDisplayed(aAISContext->SelectedInteractive())) OneOrMoreCurrentIsDisplayed=true;
-
-       if(OneOrMoreCurrentIsDisplayed){
-               // A small trick to avoid compiler error (C2668).
-               const Handle(AIS_InteractiveObject)& anIOOverlappedBox = aOverlappedBox;
-               const Handle(AIS_InteractiveObject)& anIOBox = aBox;
-               if((aAISContext->IsSelected(anIOOverlappedBox) || aAISContext->IsSelected(anIOBox))
-                               && aAISContext->IsDisplayed(aOverlappedBox)){
-                       aOverlappedBox->SetPolygonOffsets(Aspect_POM_Fill,aFactor,aUnits);
-                       Message = "Box2 -> SetPolygonOffsets(Aspect_POM_Fill, Factor, Units);\n";
-                       //myDoc -> AddTextInDialog(Message);
-               }
-
-               // A small trick to avoid compiler error (C2668).
-               const Handle(AIS_InteractiveObject)& anIOOverlappedCylinder = aOverlappedCylinder;
-               const Handle(AIS_InteractiveObject)& anIOCylinder = aCylinder;
-               if((aAISContext->IsSelected(anIOOverlappedCylinder) || aAISContext->IsSelected(anIOCylinder))
-                               && aAISContext->IsDisplayed(aOverlappedCylinder)){
-                       aOverlappedCylinder->SetPolygonOffsets(Aspect_POM_Fill,aFactor,aUnits);
-                       Message = Message + "Cylinder2 -> SetPolygonOffsets(Aspect_POM_Fill, Factor, Units);\n";
-                       //myDoc -> AddTextInDialog(Message);
-               }
-
-               // A small trick to avoid compiler error (C2668).
-               const Handle(AIS_InteractiveObject)& anIOOverlappedSphere = aOverlappedSphere;
-               const Handle(AIS_InteractiveObject)& anIOSphere = aSphere;
-               if((aAISContext->IsSelected(anIOOverlappedSphere) || aAISContext->IsSelected(anIOSphere))
-                               && aAISContext->IsDisplayed(aOverlappedSphere)){
-                       aOverlappedSphere->SetPolygonOffsets(Aspect_POM_Fill,aFactor,aUnits);
-                       Message = Message + "Sphere2 -> SetPolygonOffsets(Aspect_POM_Fill, Factor, Units);\n";
-                       //myDoc -> AddTextInDialog(Message);
-               }       
-       }
-       else{
-               if(aAISContext->IsDisplayed(aOverlappedBox)){
-                       aOverlappedBox->SetPolygonOffsets(Aspect_POM_Fill,aFactor,aUnits);
-                       Message = Message + "Box2 -> SetPolygonOffsets(Aspect_POM_Fill, Factor, Units);\n";
-                       //myDoc -> AddTextInDialog(Message);
-               }
-
-               if(aAISContext->IsDisplayed(aOverlappedCylinder)){
-                       aOverlappedCylinder->SetPolygonOffsets(Aspect_POM_Fill,aFactor,aUnits);
-                       Message = Message + "Cylinder2 -> SetPolygonOffsets(Aspect_POM_Fill, Factor, Units);\n";
-                       //myDoc -> AddTextInDialog(Message);
-               }
-
-               if(aAISContext->IsDisplayed(aOverlappedSphere)){
-                       aOverlappedSphere->SetPolygonOffsets(Aspect_POM_Fill,aFactor,aUnits);
-                       Message = Message + "Sphere2 -> SetPolygonOffsets(Aspect_POM_Fill, Factor, Units);\n";
-                       //myDoc -> AddTextInDialog(Message);
-               }
-       }
-       
-       CString aTextInDialog = myDoc -> GetDialogText();
-  if (aTextInDialog != Message.ToCString())
-               myDoc -> UpdateResultMessageDlg("Set offsets", Message);
-       aAISContext->UpdateCurrentViewer();
-}
-
-void COffsetDlg::UpdateValues()
-{
-       Standard_Integer aOffsetMode;
-       Standard_ShortReal aBoxFactor = 0;
-       Standard_ShortReal aCylFactor = 0;
-       Standard_ShortReal aSphereFactor = 0;
-       Standard_ShortReal aCylUnits = 0;
-       Standard_ShortReal aSphereUnits = 0;
-       Standard_ShortReal aBoxUnits = 0;
-
-       Handle(AIS_InteractiveContext) aAISContext = myDoc->GetAISContext();
-
-       Handle(AIS_Shape) aOverlappedBox = myDoc->GetOverlappedBox();
-       Handle(AIS_Shape) aOverlappedCylinder = myDoc->GetOverlappedCylinder();
-       Handle(AIS_Shape) aOverlappedSphere = myDoc->GetOverlappedSphere();
-       Handle(AIS_Shape) aBox = myDoc->GetBox();
-       Handle(User_Cylinder) aCylinder = myDoc->GetCylinder();
-       Handle(AIS_Shape) aSphere = myDoc->GetSphere();
-
-       BOOL IsOverlappedCylinderDisplayed = aAISContext->IsDisplayed(aOverlappedCylinder);
-       BOOL IsOverlappedSphereDisplayed = aAISContext->IsDisplayed(aOverlappedSphere);
-       BOOL IsOverlappedBoxDisplayed = aAISContext->IsDisplayed(aOverlappedBox);
-
-       const Handle(AIS_InteractiveObject)& anIOOverlappedCylinder = aOverlappedCylinder;
-       const Handle(AIS_InteractiveObject)& anIOOverlappedSphere = aOverlappedSphere;
-       const Handle(AIS_InteractiveObject)& anIOOverlappedBox = aOverlappedBox;
-       BOOL IsOverlappedCylinderCurrent = aAISContext->IsSelected(anIOOverlappedCylinder);
-       BOOL IsOverlappedSphereCurrent = aAISContext->IsSelected(anIOOverlappedSphere);
-       BOOL IsOverlappedBoxCurrent = aAISContext->IsSelected(anIOOverlappedBox);
-
-
-       /*BOOL IsAnyOverlappedObjectCurrent = 
-               IsOverlappedCylinderCurrent || IsOverlappedSphereCurrent || IsOverlappedBoxCurrent;*/
-
-       const Handle(AIS_InteractiveObject)& anIOCylinder = aCylinder;
-       const Handle(AIS_InteractiveObject)& anIOSphere = aSphere;
-       const Handle(AIS_InteractiveObject)& anIOBox = aBox;
-       BOOL IsCylinderCurrent = aAISContext->IsSelected(anIOCylinder);
-       BOOL IsSphereCurrent = aAISContext->IsSelected(anIOSphere);
-       BOOL IsBoxCurrent = aAISContext->IsSelected(anIOBox);
-
-       BOOL IsAnyObjectCurrent = 
-               IsOverlappedCylinderCurrent || IsOverlappedSphereCurrent || IsOverlappedBoxCurrent
-               || IsCylinderCurrent || IsSphereCurrent || IsBoxCurrent;
-
-       BOOL IsAnyOverlappedObjectDisplayed = 
-               IsOverlappedCylinderDisplayed || IsOverlappedSphereDisplayed || IsOverlappedBoxDisplayed;
-
-       Standard_Boolean OneOrMoreCurrentIsDisplayed=false;
-       for (aAISContext->InitSelected();aAISContext->MoreSelected ();aAISContext->NextSelected ())
-               if (aAISContext->IsDisplayed(aAISContext->SelectedInteractive())) OneOrMoreCurrentIsDisplayed=true;
-
-       if(OneOrMoreCurrentIsDisplayed){
-               if(IsOverlappedBoxDisplayed && (IsBoxCurrent || IsOverlappedBoxCurrent)){
-                       aOverlappedBox->PolygonOffsets(aOffsetMode,aBoxFactor,aBoxUnits);
-               }
-
-               if(IsOverlappedCylinderDisplayed && (IsCylinderCurrent || IsOverlappedCylinderCurrent)){
-                       aOverlappedCylinder->PolygonOffsets(aOffsetMode,aCylFactor,aCylUnits);
-               }
-
-               if(IsOverlappedSphereDisplayed && (IsSphereCurrent || IsOverlappedSphereCurrent)){
-                       aOverlappedSphere->PolygonOffsets(aOffsetMode,aSphereFactor,aSphereUnits);
-               }
-
-       }
-       else{
-       if(IsOverlappedBoxDisplayed){
-                       aOverlappedBox->PolygonOffsets(aOffsetMode,aBoxFactor,aBoxUnits);
-               }
-
-               if(IsOverlappedCylinderDisplayed){
-                       aOverlappedCylinder->PolygonOffsets(aOffsetMode,aCylFactor,aCylUnits);
-               }
-
-               if(IsOverlappedSphereDisplayed){
-                       aOverlappedSphere->PolygonOffsets(aOffsetMode,aSphereFactor,aSphereUnits);
-               }
-       }
-
-       Standard_Real Max = aBoxFactor;
-       if (Max < aCylFactor) Max = aCylFactor;
-       if (Max < aSphereFactor) Max = aSphereFactor;
-
-       m_Factor = Max;
-
-       Max = aBoxUnits;
-       if (Max < aCylUnits) Max = aCylUnits;
-       if (Max < aSphereUnits) Max = aSphereUnits;
-
-       m_Units = Max;
-
-       m_FactorSlidCtrl.SetPos( (int) floor(m_Factor));
-
-
-       m_UnitsSlidCtrl.SetPos( (int) floor(m_Units));
-       UpdateData(FALSE);
-
-       if(             (IsOverlappedBoxCurrent || (IsBoxCurrent && IsOverlappedBoxDisplayed)) ||
-                       (IsOverlappedCylinderCurrent || (IsCylinderCurrent && IsOverlappedCylinderDisplayed)) ||
-                       (IsOverlappedSphereCurrent || (IsSphereCurrent && IsOverlappedSphereDisplayed))  ||
-                       (!IsAnyObjectCurrent && IsAnyOverlappedObjectDisplayed)
-       )
-       {
-               m_FactorSlidCtrl.EnableWindow();
-               m_UnitsSlidCtrl.EnableWindow();
-               GetDlgItem(IDC_EDIT_OFFSETFACTOR)->EnableWindow();
-               GetDlgItem(IDC_EDIT_OFFSETUNITS)->EnableWindow();
-       }
-       else{
-               m_FactorSlidCtrl.EnableWindow(false);
-               m_UnitsSlidCtrl.EnableWindow(false);
-               GetDlgItem(IDC_EDIT_OFFSETFACTOR)->EnableWindow(false);
-               GetDlgItem(IDC_EDIT_OFFSETUNITS)->EnableWindow(false);
-       }
-
-}
diff --git a/samples/mfc/standard/04_Viewer3d/src/OffsetDlg.h b/samples/mfc/standard/04_Viewer3d/src/OffsetDlg.h
deleted file mode 100755 (executable)
index f97cd1d..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-#if !defined(AFX_OFFSETDLG_H__9E963234_B2CB_11D8_8CF3_00047571ABCA__INCLUDED_)
-#define AFX_OFFSETDLG_H__9E963234_B2CB_11D8_8CF3_00047571ABCA__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-// offsetdlg.h : header file
-//
-
-#include "Viewer3dDoc.h"
-
-class CViewer3dDoc;
-/////////////////////////////////////////////////////////////////////////////
-// COffsetDlg dialog
-
-class COffsetDlg : public CDialog
-{
-// Construction
-public:
-       void UpdateValues();
-       void SetOffsets(Standard_Real theFactor, Standard_Real theUnits);
-       COffsetDlg(     CViewer3dDoc* theDoc, CWnd* pParent = NULL);
-
-// Dialog Data
-       //{{AFX_DATA(COffsetDlg)
-       enum { IDD = IDD_SETOFFSETS };
-       CSliderCtrl     m_UnitsSlidCtrl;
-       CSliderCtrl     m_FactorSlidCtrl;
-       Standard_Real           m_Factor;
-       Standard_Real           m_Units;
-       //}}AFX_DATA
-
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(COffsetDlg)
-       protected:
-       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
-       //}}AFX_VIRTUAL
-
-// Implementation
-protected:
-
-       // Generated message map functions
-       //{{AFX_MSG(COffsetDlg)
-       virtual BOOL OnInitDialog();
-       afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
-       afx_msg void OnChangeEditOffsetFactor();
-       afx_msg void OnChangeEditOffsetUnits();
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-
-       CViewer3dDoc* myDoc;
-
-};
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_OFFSETDLG_H__9E963234_B2CB_11D8_8CF3_00047571ABCA__INCLUDED_)
diff --git a/samples/mfc/standard/04_Viewer3d/src/ScaleDlg.cpp b/samples/mfc/standard/04_Viewer3d/src/ScaleDlg.cpp
deleted file mode 100755 (executable)
index 65d39f2..0000000
+++ /dev/null
@@ -1,188 +0,0 @@
-// ScaleDlg.cpp : implementation file
-//
-
-#include "stdafx.h"
-#include "ScaleDlg.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// ScaleDlg dialog
-
-
-ScaleDlg::ScaleDlg(Handle(V3d_View) Current_V3d_View, CViewer3dView* pView, CWnd* pParent /*=NULL*/)
-       : CDialog(ScaleDlg::IDD, pParent)
-{
-       //{{AFX_DATA_INIT(ScaleDlg)
-       myCurrent_V3d_View = Current_V3d_View;
-       myView=pView;
-       m_ScaleX = 0;
-       m_ScaleY = 0;
-       m_ScaleZ = 0;
-       //}}AFX_DATA_INIT
-}
-
-
-void ScaleDlg::DoDataExchange(CDataExchange* pDX)
-{
-       CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(ScaleDlg)
-       DDX_Control(pDX, IDC_SLIDER_SCALEX, m_ScaleXSlidCtrl);
-       DDX_Control(pDX, IDC_SLIDER_SCALEY, m_ScaleYSlidCtrl);
-       DDX_Control(pDX, IDC_SLIDER_SCALEZ, m_ScaleZSlidCtrl);
-       DDX_Text(pDX, IDC_EDIT_SCALEX, m_ScaleX);
-       DDV_MinMaxInt(pDX, m_ScaleX, 1, 100);
-       DDX_Text(pDX, IDC_EDIT_SCALEY, m_ScaleY);
-       DDV_MinMaxInt(pDX, m_ScaleY, 1, 100);
-       DDX_Text(pDX, IDC_EDIT_SCALEZ, m_ScaleZ);
-       DDV_MinMaxInt(pDX, m_ScaleZ, 1, 100);
-       //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(ScaleDlg, CDialog)
-       //{{AFX_MSG_MAP(ScaleDlg)
-       ON_EN_CHANGE(IDC_EDIT_SCALEX, OnChangeEditScaleX)
-       ON_EN_CHANGE(IDC_EDIT_SCALEY, OnChangeEditScaleY)
-       ON_EN_CHANGE(IDC_EDIT_SCALEZ, OnChangeEditScaleZ)
-       ON_WM_HSCROLL()
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// ScaleDlg message handlers
-BOOL ScaleDlg::OnInitDialog() 
-{
-       CDialog::OnInitDialog();
-       
-       int ScaleX = myView->scaleX;
-       int ScaleY = myView->scaleY;
-       int ScaleZ = myView->scaleZ;
-
-       m_ScaleX=ScaleX;
-       m_ScaleXSlidCtrl.SetRange(0, 100, TRUE);
-       m_ScaleXSlidCtrl.SetPos( ScaleX );
-
-       m_ScaleY=ScaleY;
-       m_ScaleYSlidCtrl.SetRange(0, 100, TRUE);
-       m_ScaleYSlidCtrl.SetPos( ScaleY );
-
-       m_ScaleZ=ScaleZ;
-       m_ScaleZSlidCtrl.SetRange(0, 100, TRUE);
-       m_ScaleZSlidCtrl.SetPos( ScaleZ );
-
-       UpdateData(FALSE);
-               
-       return TRUE;  // return TRUE unless you set the focus to a control
-                     // EXCEPTION: OCX Property Pages should return FALSE
-}
-
-void ScaleDlg::OnChangeEditScaleX() 
-{
-       UpdateData(TRUE);
-
-       m_ScaleXSlidCtrl.SetPos( m_ScaleX );
-       myView->scaleX = m_ScaleX;
-
-    myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ );
-       myCurrent_V3d_View->Update();
-
-  TCollection_AsciiString Message("\
-myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ);\n\
-\n\
-myCurrent_V3d_View->Update();\n\
-  ");
-
-  // Update The Result Message Dialog
-       myView->GetDocument()->UpdateResultMessageDlg("SetAxialScale",Message);
-}
-
-void ScaleDlg::OnChangeEditScaleY() 
-{
-       UpdateData(TRUE);
-
-       m_ScaleYSlidCtrl.SetPos( m_ScaleY );
-       myView->scaleY = m_ScaleY;
-
-    myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ );
-       myCurrent_V3d_View->Update();
-
-  TCollection_AsciiString Message("\
-myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ);\n\
-\n\
-myCurrent_V3d_View->Update();\n\
-  ");
-
-  // Update The Result Message Dialog
-       myView->GetDocument()->UpdateResultMessageDlg("SetAxialScale",Message);
-}
-
-void ScaleDlg::OnChangeEditScaleZ() 
-{
-       UpdateData(TRUE);
-
-       m_ScaleZSlidCtrl.SetPos( m_ScaleZ );
-       myView->scaleZ = m_ScaleZ;
-
-    myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ );
-       myCurrent_V3d_View->Update();
-
-  TCollection_AsciiString Message("\
-myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ);\n\
-\n\
-myCurrent_V3d_View->Update();\n\
-  ");
-
-  // Update The Result Message Dialog
-       myView->GetDocument()->UpdateResultMessageDlg("SetAxialScale",Message);
-}
-
-void ScaleDlg::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
-{
-       m_ScaleX = m_ScaleXSlidCtrl.GetPos();
-       m_ScaleY = m_ScaleYSlidCtrl.GetPos();
-       m_ScaleZ = m_ScaleZSlidCtrl.GetPos();
-
-       if(m_ScaleX<=0)
-       {
-               m_ScaleX=1;
-               m_ScaleXSlidCtrl.SetPos( 1 );
-       }
-
-       if(m_ScaleY<=0)
-       {
-               m_ScaleY=1;
-               m_ScaleYSlidCtrl.SetPos( 1 );
-       }
-
-       if(m_ScaleZ<=0)
-       {
-               m_ScaleZ=1;
-               m_ScaleZSlidCtrl.SetPos( 1 );
-       }
-
-       UpdateData(FALSE);
-
-       myView->scaleX = m_ScaleX;
-       myView->scaleY = m_ScaleY;
-       myView->scaleZ = m_ScaleZ;
-
-    myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ );
-       myCurrent_V3d_View->Update();
-
-  TCollection_AsciiString Message("\
-myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ);\n\
-\n\
-myCurrent_V3d_View->Update();\n\
-  ");
-
-  // Update The Result Message Dialog
-       myView->GetDocument()->UpdateResultMessageDlg("SetAxialScale",Message);
-
-       CDialog::OnHScroll(nSBCode, nPos, pScrollBar);
-}
-
diff --git a/samples/mfc/standard/04_Viewer3d/src/ScaleDlg.h b/samples/mfc/standard/04_Viewer3d/src/ScaleDlg.h
deleted file mode 100755 (executable)
index 2353a9f..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-#if !defined(AFX_ScaleDlg_H__1796AA04_63B7_4E46_B00A_D2DAC975CAF1__INCLUDED_)
-#define AFX_ScaleDlg_H__1796AA04_63B7_4E46_B00A_D2DAC975CAF1__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-// ScaleDlg.h : header file
-//
-
-#include "..\res\resource.h"
-#include "Viewer3dView.h"
-
-/////////////////////////////////////////////////////////////////////////////
-// ScaleDlg dialog
-
-class ScaleDlg : public CDialog
-{
-// Construction
-public:
-       ScaleDlg(Handle(V3d_View) Current_V3d_View, CViewer3dView* pView, CWnd* pParent = NULL); 
-
-// Dialog Data
-       //{{AFX_DATA(ScaleDlg)
-       enum { IDD = IDD_SCALE };
-       CSliderCtrl     m_ScaleXSlidCtrl;
-       CSliderCtrl     m_ScaleYSlidCtrl;
-       CSliderCtrl     m_ScaleZSlidCtrl;
-       int     m_ScaleX;
-       int     m_ScaleY;
-       int     m_ScaleZ;
-       //}}AFX_DATA
-
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(ScaleDlg)
-       protected:
-       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
-       //}}AFX_VIRTUAL
-
-// Implementation
-protected:
-
-       // Generated message map functions
-       //{{AFX_MSG(ScaleDlg)
-       virtual BOOL OnInitDialog();
-       afx_msg void OnChangeEditScaleX();
-       afx_msg void OnChangeEditScaleY();
-       afx_msg void OnChangeEditScaleZ();
-       afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-
-private:
-
-       Handle(V3d_View) myCurrent_V3d_View;
-       CViewer3dView* myView;
-};
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_ScaleDlg_H__1796AA04_63B7_4E46_B00A_D2DAC975CAF1__INCLUDED_)
diff --git a/samples/mfc/standard/04_Viewer3d/src/ShadingModelDlg.cpp b/samples/mfc/standard/04_Viewer3d/src/ShadingModelDlg.cpp
deleted file mode 100755 (executable)
index 77ecb48..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-// ShadingModelDlg.cpp : implementation file
-//
-
-#include "stdafx.h"
-#include "Viewer3dApp.h"
-#include "ShadingModelDlg.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CShadingModelDlg dialog
-
-
-CShadingModelDlg::CShadingModelDlg(Handle(V3d_View) Current_V3d_View, CWnd* pParent /*=NULL*/)
-       : CDialog(CShadingModelDlg::IDD, pParent)
-{
-       //{{AFX_DATA_INIT(CShadingModelDlg)
-       myCurrent_V3d_View=Current_V3d_View;
-       //}}AFX_DATA_INIT
-}
-
-
-void CShadingModelDlg::DoDataExchange(CDataExchange* pDX)
-{
-       CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(CShadingModelDlg)
-               // NOTE: the ClassWizard will add DDX and DDV calls here
-       //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(CShadingModelDlg, CDialog)
-       //{{AFX_MSG_MAP(CShadingModelDlg)
-       ON_BN_CLICKED(IDC_SHADINGMODEL_COLOR,   OnShadingmodelColor)
-       ON_BN_CLICKED(IDC_SHADINGMODEL_FLAT,    OnShadingmodelFlat)
-       ON_BN_CLICKED(IDC_SHADINGMODEL_GOURAUD, OnShadingmodelGouraud)
-       ON_BN_CLICKED(IDC_SHADINGMODEL_PHONG,   OnShadingmodelPhong)
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CShadingModelDlg message handlers
-
-void CShadingModelDlg::OnShadingmodelColor() 
-{
-       myCurrent_V3d_View->SetShadingModel(V3d_COLOR);
-       myCurrent_V3d_View->Update();
-}
-
-void CShadingModelDlg::OnShadingmodelFlat() 
-{
-       myCurrent_V3d_View->SetShadingModel(V3d_FLAT);
-       myCurrent_V3d_View->Update();   
-}
-
-void CShadingModelDlg::OnShadingmodelGouraud() 
-{
-       myCurrent_V3d_View->SetShadingModel(V3d_GOURAUD);
-       myCurrent_V3d_View->Update();   
-}
-
-void CShadingModelDlg::OnShadingmodelPhong()
-{
-       myCurrent_V3d_View->SetShadingModel(V3d_PHONG);
-       myCurrent_V3d_View->Update();
-}
diff --git a/samples/mfc/standard/04_Viewer3d/src/ShadingModelDlg.h b/samples/mfc/standard/04_Viewer3d/src/ShadingModelDlg.h
deleted file mode 100755 (executable)
index 30f38ab..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-// ShadingModelDlg.h : header file
-//
-#if !defined(AFX_SHADINGMODELDLG_H__4DEFD9F9_61FC_11D3_8D0A_00AA00D10994__INCLUDED_)
-#define AFX_SHADINGMODELDLG_H__4DEFD9F9_61FC_11D3_8D0A_00AA00D10994__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include "..\res\resource.h"
-
-/////////////////////////////////////////////////////////////////////////////
-// CShadingModelDlg dialog
-
-class CShadingModelDlg : public CDialog
-{
-// Construction
-public:
-       CShadingModelDlg(Handle(V3d_View) Current_V3d_View, CWnd* pParent = NULL);   // standard constructor
-
-// Dialog Data
-       //{{AFX_DATA(CShadingModelDlg)
-       enum { IDD = IDD_SHADINGMODEL };
-               // NOTE: the ClassWizard will add data members here
-       //}}AFX_DATA
-
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(CShadingModelDlg)
-       protected:
-       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
-       //}}AFX_VIRTUAL
-
-// Implementation
-protected:
-
-       // Generated message map functions
-       //{{AFX_MSG(CShadingModelDlg)
-       afx_msg void OnShadingmodelColor();
-       afx_msg void OnShadingmodelFlat();
-       afx_msg void OnShadingmodelGouraud();
-       afx_msg void OnShadingmodelPhong();
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-
-       Handle(V3d_View)        myCurrent_V3d_View;
-};
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_SHADINGMODELDLG_H__4DEFD9F9_61FC_11D3_8D0A_00AA00D10994__INCLUDED_)
diff --git a/samples/mfc/standard/04_Viewer3d/src/State.h b/samples/mfc/standard/04_Viewer3d/src/State.h
deleted file mode 100755 (executable)
index b58cdc5..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-enum STATE {
-       FACE_COLOR
-       };
diff --git a/samples/mfc/standard/04_Viewer3d/src/StdAfx.cpp b/samples/mfc/standard/04_Viewer3d/src/StdAfx.cpp
deleted file mode 100755 (executable)
index a50be59..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-// stdafx.cpp : source file that includes just the standard includes
-//     SampleViewer3d.pch will be the pre-compiled header
-//     stdafx.obj will contain the pre-compiled type information
-
-#include "stdafx.h"
diff --git a/samples/mfc/standard/04_Viewer3d/src/StdAfx.h b/samples/mfc/standard/04_Viewer3d/src/StdAfx.h
deleted file mode 100755 (executable)
index 2d55614..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-// stdafx.h : include file for standard system include files,
-//  or project specific include files that are used frequently, but
-//      are changed infrequently
-//
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#define VC_EXTRALEAN           // Exclude rarely-used stuff from Windows headers
-
-#include <afxwin.h>         // MFC core and standard components
-#include <afxext.h>         // MFC extensions
-#include <afxdisp.h>        // MFC OLE automation classes
-#ifndef _AFX_NO_AFXCMN_SUPPORT
-#include <afxcmn.h>                    // MFC support for Windows Common Controls
-#endif // _AFX_NO_AFXCMN_SUPPORT
-
-#pragma warning(  disable : 4244 )        // Issue warning 4244
-#include "Standard_ShortReal.hxx"
-#pragma warning(  default : 4244 )        // Issue warning 4244
-
-#include <Standard.hxx>
-#include <AIS_InteractiveContext.hxx>
-#include <AIS_Shape.hxx>
-#include <V3d_Viewer.hxx>
-#include <V3d_View.hxx>
-#include <WNT_Window.hxx>
-#include <Standard_ErrorHandler.hxx>
-#include <BRepPrimAPI_MakeBox.hxx>
-#include <BRepPrimAPI_MakeCylinder.hxx>
-#include <BRepPrimAPI_MakeSphere.hxx>
-#include <BRepBuilderAPI_MakeVertex.hxx>
-#include <BRepPrimAPI_MakeCone.hxx>
-#include <BRepBuilderAPI_MakeEdge.hxx>
-#include <BRepBuilderAPI_MakeFace.hxx>
-#include <gp_Trsf.hxx>
-#include <gp_Dir.hxx>
-#include <gp_Pnt.hxx>
-#include <gp_Ax2.hxx>
-#include <ProjLib.hxx>
-#include <ElSLib.hxx>
-#include <gp_Pln.hxx>
-#include <V3d_Plane.hxx>
-#include <gp_Trsf.hxx>
-#include <UnitsAPI.hxx>
-#include <BRepBuilderAPI_NurbsConvert.hxx>
-#include <Aspect_PolygonOffsetMode.hxx>
-#include <AIS_ListOfInteractive.hxx>
-#include <AIS_ListIteratorOfListOfInteractive.hxx>
-#include <BRepFilletAPI_MakeFillet.hxx>
-#include <Geom_Circle.hxx>
-#include <AIS_Circle.hxx>
-#include <AIS_Line.hxx>
-#include <Geom_Line.hxx>
-#include <Prs3d_Drawer.hxx>
-#include <TopoDS.hxx>
-#include <Prs3d_IsoAspect.hxx>
-#include <Prs3d_ShadingAspect.hxx>
-#include <Geom_Surface.hxx>
-#include <Geom_Plane.hxx>
-#include <BRep_Tool.hxx>
-
-#include "State.h"
-
-#include <..\res\resource.h>
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
diff --git a/samples/mfc/standard/04_Viewer3d/src/TexturesExt_Presentation.cpp b/samples/mfc/standard/04_Viewer3d/src/TexturesExt_Presentation.cpp
deleted file mode 100755 (executable)
index a2b00f7..0000000
+++ /dev/null
@@ -1,441 +0,0 @@
-// TexturesExt_Presentation.cpp: implementation of the TexturesExt_Presentation class.
-// Creation of textural presentation of shape
-//////////////////////////////////////////////////////////////////////
-
-#include "stdafx.h"
-#include "TexturesExt_Presentation.h"
-#include "Viewer3dApp.h"
-
-#include <TopExp.hxx>
-#include <TopTools_IndexedMapOfShape.hxx>
-#include <BRepBuilderAPI_MakeFace.hxx>
-#include <AIS_Shape.hxx>
-#include <BRepTools.hxx>
-#include <Graphic3d_Texture2Dmanual.hxx>
-#include <BRep_Tool.hxx>
-#include <TopoDS.hxx>
-#include <BRepBuilderAPI_Transform.hxx>
-#include <BRep_Builder.hxx>
-#include <BRepTools.hxx>
-#include <Geom_Surface.hxx>
-#include <TopoDS_Face.hxx>
-#include <V3d_DirectionalLight.hxx>
-
-#define DISP(OBJ) getAISContext()->Display((OBJ), Standard_False)
-
-// Initialization of global variable with an instance of this class
-OCCDemo_Presentation* OCCDemo_Presentation::Current = new TexturesExt_Presentation;
-
-// Initialization of array of samples
-const TexturesExt_Presentation::PSampleFuncType TexturesExt_Presentation::SampleFuncs[] =
-{
-  &TexturesExt_Presentation::sampleBottle,
-  &TexturesExt_Presentation::sampleTerrain,
-  &TexturesExt_Presentation::sampleKitchen
-};
-
-#define EOL "\r\n"
-
-#define ZVIEW_SIZE 100
-
-//////////////////////////////////////////////////////////////////////
-// Construction/Destruction
-//////////////////////////////////////////////////////////////////////
-
-TexturesExt_Presentation::TexturesExt_Presentation()
-{
-  myNbSamples = sizeof(SampleFuncs)/sizeof(PSampleFuncType);
-  setName ("Textured Shapes");
-}
-
-//////////////////////////////////////////////////////////////////////
-// Sample execution
-//////////////////////////////////////////////////////////////////////
-
-void TexturesExt_Presentation::DoSample()
-{
-       ((CViewer3dApp*) AfxGetApp())->SetSampleName (L"Viewer3d");
-       ((CViewer3dApp*) AfxGetApp())->SetSamplePath (L"..\\..\\04_Viewer3d");
-       getAISContext()->EraseAll (Standard_True);
-       if (myIndex >=0 && myIndex < myNbSamples)
-       {
-         // turn lights on for terrain sample
-         lightsOnOff(myIndex==1);
-         (this->*SampleFuncs[myIndex])();
-       }
-}
-
-void TexturesExt_Presentation::Init()
-{
-  // initialize v3d_view so it displays TexturesExt well
-  Handle(V3d_View) aView = getViewer()->ActiveViews().First();
-  aView->SetSize(ZVIEW_SIZE);
-
-//  getDocument()->UpdateResultMessageDlg("Textured Shape", 
-  TCollection_AsciiString Message ("Textured Shape", 
-    "  TopoDS_Shape aShape;" EOL
-    "" EOL
-    "  // initialize aShape" EOL
-    "  // aShape = ..." EOL
-    "" EOL
-    "  // create a textured presentation object for aShape" EOL
-    "  Handle(AIS_Shape) aTShape = new AIS_Shape(aShape);" EOL
-    "" EOL
-    "  TCollection_AsciiString aTFileName;" EOL
-    "" EOL
-    "  // initialize aTFileName with an existing texture file name" EOL
-    "  // (gif, bmp, xwd, rgb, and other formats are supported)" EOL
-    "  // OR with an integer value string (max = Graphic3d_Texture2D::NumberOfTexturesExt())" EOL
-    "  // which will indicate use of predefined texture of this number" EOL
-    "  // aTFileName = ..." EOL
-    "" EOL
-    "  aTShape->Attributes()->SetShadingAspect (new Prs3d_ShadingAspect());" EOL
-    "  Handle(Graphic3d_Texture2Dmanual) aTexture = new Graphic3d_Texture2Dmanual (aTFileName);" EOL
-    "  aTShape->Attributes()->ShadingAspect()->Aspect()->SetTextureMap (aTexture);" EOL
-    "  aTShape->Attributes()->ShadingAspect()->Aspect()->SetTextureMapOn();" EOL);
-//     CString text(Message.ToCString());
-       getDocument()->ClearDialog();
-       getDocument()->SetDialogTitle("Change face color");
-       getDocument()->AddTextInDialog(Message);
-}
-
-//////////////////////////////////////////////////////////////////////
-// Sample functions
-//////////////////////////////////////////////////////////////////////
-//================================================================
-// Function : TexturesExt_Presentation::Texturize
-// display an AIS_Shape based on a given shape with texture with given filename
-// filename can also be an integer value ("2", "5", etc.), in this case
-// a predefined texture from Graphic3d_NameOfTexture2D with number = this value
-// is loaded.
-//================================================================
-Handle(AIS_Shape) TexturesExt_Presentation::Texturize(const TopoDS_Shape& aShape,
-                                                        TCollection_AsciiString aTFileName,
-                                                        Standard_Real toScaleU,
-                                                        Standard_Real toScaleV,
-                                                        Standard_Real toRepeatU,
-                                                        Standard_Real toRepeatV,
-                                                        Standard_Real originU,
-                                                        Standard_Real originV)
-{
-  // create a textured presentation object for aShape
-  Handle(AIS_Shape) aTShape = new AIS_Shape(aShape);
-  TCollection_AsciiString TFileName;
-  // load texture from file if it is not an integer value
-  // integer value indicates a number of texture in predefined TexturesExt enumeration
-  CString anOCCTDataPathValue;
-  anOCCTDataPathValue.GetEnvironmentVariable(L"CSF_OCCTDataPath");
-  CString initfile = (anOCCTDataPathValue + L"\\images\\");
-  if (!aTFileName.IsIntegerValue())
-  {
-    initfile += aTFileName.ToCString();
-  }
-
-  if (!aTShape->Attributes()->HasOwnShadingAspect())
-  {
-    aTShape->Attributes()->SetShadingAspect (new Prs3d_ShadingAspect());
-  }
-  aTShape->Attributes()->ShadingAspect()->Aspect()->SetTextureMap (new Graphic3d_Texture2Dmanual (TCollection_AsciiString ((const wchar_t* )initfile)));
-  aTShape->Attributes()->ShadingAspect()->Aspect()->SetTextureMapOn();
-
-  // do other initialization of AIS_Shape
-  aTShape->SetTextureScaleUV (gp_Pnt2d ( toScaleU, toScaleV));
-  aTShape->SetTextureRepeatUV(gp_Pnt2d (toRepeatU, toRepeatV));
-  aTShape->SetTextureOriginUV(gp_Pnt2d (  originU, originV));
-
-  aTShape->SetDisplayMode(AIS_Shaded);
-
-  return aTShape;
-}
-
-
-//================================================================
-// Function : TexturesExt_Presentation::loadShape
-// loads a shape from a given brep file from data dir into a given TopoDS_Shape object
-//================================================================
-Standard_Boolean TexturesExt_Presentation::loadShape(TopoDS_Shape& aShape, 
-                                         TCollection_AsciiString aFileName)
-{
-  // create a TopoDS_Shape -> read from a brep file
-  CString anOCCTDataPathValue;
-  anOCCTDataPathValue.GetEnvironmentVariable(L"CSF_OCCTDataPath");
-  CString initfile = (anOCCTDataPathValue + L"\\occ\\" + aFileName.ToCString());
-
-  std::filebuf aFileBuf;
-  std::istream aStream (&aFileBuf);
-  if (!aFileBuf.open (initfile, std::ios::in))
-  {
-    initfile += L" was not found. The sample can not be shown.";
-    getDocument()->UpdateResultMessageDlg ("Textured Shape", initfile);
-    return Standard_False;
-  }
-
-  BRep_Builder aBld;
-  BRepTools::Read (aShape, aStream, aBld);
-  if (aShape.IsNull())
-  {
-    initfile += " is invalid. The sample can not be shown.";
-    getDocument()->UpdateResultMessageDlg ("Textured Shape", initfile);
-    return Standard_False;
-  }
-
-  return Standard_True;
-}
-
-//================================================================
-// Function : lightsOnOff
-// Purpose  : 6 lights are used for a brighter demonstration of textured shapes
-//            call lightsOnOff(false) before showing normal shape
-//            call lightsOnOff(true)  before showing textured shape
-//================================================================
-void TexturesExt_Presentation::lightsOnOff(Standard_Boolean isOn)
-{
-  static Handle(V3d_Light) aLight1 = new V3d_DirectionalLight(V3d_XnegYposZneg);
-  static Handle(V3d_Light) aLight2 = new V3d_DirectionalLight(V3d_XnegYnegZpos);
-  static Handle(V3d_Light) aLight3 = new V3d_DirectionalLight(V3d_XposYnegZpos);
-  static Handle(V3d_Light) aLight4 = new V3d_DirectionalLight(V3d_XnegYnegZneg);
-  static Handle(V3d_Light) aLight5 = new V3d_DirectionalLight(V3d_XnegYposZpos);
-  static Handle(V3d_Light) aLight6 = new V3d_DirectionalLight(V3d_XposYposZpos);
-
-  if (isOn)
-  {
-    getViewer()->SetLightOn(aLight1);
-    getViewer()->SetLightOn(aLight2);
-    getViewer()->SetLightOn(aLight3);
-    getViewer()->SetLightOn(aLight4);
-    getViewer()->SetLightOn(aLight5);
-    getViewer()->SetLightOn(aLight6);
-  }
-  else 
-  {
-    getViewer()->SetLightOff(aLight1);
-    getViewer()->SetLightOff(aLight2);
-    getViewer()->SetLightOff(aLight3);
-    getViewer()->SetLightOff(aLight4);
-    getViewer()->SetLightOff(aLight5);
-    getViewer()->SetLightOff(aLight6);
-  }
-}
-
-//================================================================
-// Function : TexturesExt_Presentation::sampleBottle
-// Purpose  : 
-//================================================================
-void TexturesExt_Presentation::sampleBottle()
-{  
-  TopoDS_Shape aShape;
-  if (!loadShape(aShape, "bottle.brep")) 
-    return;
-
-  // resize and move the shape to the center of the viewer
-gp_Trsf aTrsf1, aTrsf2;
-aTrsf1.SetScale(gp_Pnt(0,0,0), 0.8);
-aTrsf2.SetTranslation(gp_Pnt(0,0,0),gp_Pnt(0,0,-20));
-aTrsf1.Multiply(aTrsf2);
-BRepBuilderAPI_Transform Transformer(aTrsf1);
-Transformer.Perform(aShape);
-aShape = Transformer.Shape();
-
-  TopTools_IndexedMapOfShape aFaces;
-  TopExp::MapShapes(aShape, TopAbs_FACE, aFaces);
-
-  // display original shape in shaded display mode
-  Handle(AIS_Shape) aShapeIO = drawShape(aShape, Graphic3d_NOM_BRASS, Standard_False);
-  getAISContext()->SetDisplayMode(aShapeIO, AIS_Shaded, Standard_False);
-  // Set increased polygon offset for the main shape to avoid depth collision with textured faces
-  aShapeIO->SetPolygonOffsets(Aspect_POM_Fill, 1.5, 0.5);
-  DISP(aShapeIO);
-
-  Handle(AIS_Shape) aTFace1 = Texturize(aFaces(16), "carrelage1.gif", 1, 1, 3, 2);
-  DISP(aTFace1);
-
-  Handle(AIS_Shape) aTFace2 = Texturize(aFaces(21), "carrelage1.gif", 1, 1, 3, 2);
-  DISP(aTFace2);
-
-  getViewer()->Update();
-}
-
-
-//================================================================
-// Function : TexturesExt_Presentation::sampleLand
-// Purpose  : 
-//================================================================
-void TexturesExt_Presentation::sampleTerrain()
-{
-  TopoDS_Shape aShape;
-  if (!loadShape(aShape, "terrain.brep"))
-    return;
-
-  // a part of the landscape is textured
-  TopTools_IndexedMapOfShape aFaces;
-  TopExp::MapShapes(aShape, TopAbs_FACE, aFaces);
-
-//  TopLoc_Location aLoc;
-//  Handle(Geom_Surface) aSur = BRep_Tool::Surface(TopoDS::Face(aFaces(1)), aLoc);
-//  Standard_Real u1,u2,v1,v2;
-//  aSur->Bounds(u1,u2,v1,v2);
-//  gp_Pnt aPnt = aSur->Value(u1, v1);
-  gp_Pnt aPnt(82100,80300,10940);// point at u1,v1
-  // resize and move the shape to the center of the viewer
-  
-  gp_Trsf aMoveTrsf;
-  gp_Ax3 New(gp_Pnt(-30,-30, 0),gp_Dir(0,0,1));
-  gp_Ax3 aCurrent(aPnt,gp_Dir(0,0,1));
-  aMoveTrsf.SetDisplacement(aCurrent, New);
-
-  gp_Trsf aScaleTrsf;
-  aScaleTrsf.SetScale(aPnt,0.0075);
-
-  BRepBuilderAPI_Transform aTransform(aMoveTrsf*aScaleTrsf);
-
-  aTransform.Perform(aFaces(1));
-  aShape = aTransform;
-
-  getAISContext()->Display (Texturize (aShape, "terrain.gif"), Standard_True);
-}
-
-
-//================================================================
-// Function : moveScale
-// Purpose  : move a shape a little left and scale it to 15%.
-//================================================================
-static void moveScale(TopoDS_Shape& aShape)
-{
-  gp_Trsf aMoveTrsf;
-  gp_Ax3 New(gp_Pnt(-30,-30, -10),gp_Dir(0,0,1));
-  gp_Ax3 Current(gp_Pnt(0,0,0),gp_Dir(0,0,1));
-  aMoveTrsf.SetDisplacement(Current, New);
-
-  gp_Trsf aScaleTrsf;
-  aScaleTrsf.SetScale(gp_Pnt(0,0,0),0.15);
-
-  BRepBuilderAPI_Transform aTransform(aMoveTrsf*aScaleTrsf);
-
-  aTransform.Perform(aShape);
-  aShape = aTransform;
-}
-
-//================================================================
-// Function : TexturesExt_Presentation::sampleKitchen
-// Purpose  : kitchen with texturized items in it.
-//================================================================
-void TexturesExt_Presentation::sampleKitchen()
-{
-  TopoDS_Shape aShape;
-
-  if (!loadShape(aShape, "Room.brep"))
-    return;
-
-  gp_Trsf aTrsf;
-  gp_Ax3 NewCoordSystem (gp_Pnt(-1,-1, -1),gp_Dir(0,0,1));
-  gp_Ax3 CurrentCoordSystem(gp_Pnt(0,0,0),gp_Dir(0,0,1));
-  aTrsf.SetDisplacement(CurrentCoordSystem, NewCoordSystem);
-  aShape.Location(TopLoc_Location(aTrsf));
-
-  moveScale(aShape);
-
-  // draw kitchen room without one wall (to better see the insides)
-  TopTools_IndexedMapOfShape aFaces;
-  TopExp::MapShapes(aShape, TopAbs_FACE, aFaces);  
-  Standard_Integer nbFaces = aFaces.Extent();
-
-  // create a wooden kitchen floor
-  // the floor's face will be textured with texture from chataignier.gif
-  DISP(Texturize(aFaces(5),"plancher.gif",1,1,2,1));
-
-  // texturize other faces of the room with texture from wallpaper.gif (walls)
-  DISP(Texturize(aFaces(1),"wallpaper.gif",1,1,8,6));
-  DISP(Texturize(aFaces(3),"wallpaper.gif",1,1,8,6));
-  DISP(Texturize(aFaces(4),"wallpaper.gif",1,1,8,6));
-
-//  DISP(drawShape(aFaces(1), Quantity_NOC_LIGHTPINK, Standard_False));
-//  DISP(drawShape(aFaces(3), Quantity_NOC_LIGHTPINK, Standard_False));
-//  DISP(drawShape(aFaces(4), Quantity_NOC_LIGHTPINK, Standard_False));
-
-  // texturize furniture items with "wooden" texture
-  if (loadShape(aShape, "MODERN_Table_1.brep"))
-  {
-    moveScale(aShape);
-    DISP(Texturize(aShape, "chataignier.gif"));
-  }
-  if (loadShape(aShape, "MODERN_Chair_1.brep"))
-  {
-    moveScale(aShape);
-    DISP(Texturize(aShape, "chataignier.gif"));
-  }
-  if (loadShape(aShape, "MODERN_Cooker_1.brep"))
-  {
-    moveScale(aShape);
-
-    aFaces.Clear();
-    TopExp::MapShapes(aShape, TopAbs_FACE, aFaces);  
-    nbFaces = aFaces.Extent();
-
-    for (Standard_Integer i = 1; i <= nbFaces; i++)
-    {
-      if (i >= 59)
-        DISP(drawShape(aFaces(i), Graphic3d_NOM_STEEL, Standard_False));
-      else if (i >= 29)
-        DISP(drawShape(aFaces(i), Graphic3d_NOM_ALUMINIUM, Standard_False));
-      else if (i == 28)
-        DISP(Texturize(aFaces(i), "cookerplate.gif"));
-      else  
-        DISP(Texturize(aFaces(i), "chataignier.gif"));
-    }
-  }
-  if (loadShape(aShape, "MODERN_Cooker_1_opened.brep"))
-  {
-    moveScale(aShape);
-    DISP(Texturize(aShape, "chataignier.gif"));
-  }
-  if (loadShape(aShape, "MODERN_Exhaust_1.brep"))
-  {
-    moveScale(aShape);
-    DISP(drawShape(aShape, Graphic3d_NOM_STONE, Standard_False));
-  }
-  if (loadShape(aShape, "MODERN_MVCooker_1.brep"))
-  {
-    moveScale(aShape);
-    DISP(drawShape(aShape, Graphic3d_NOM_SILVER, Standard_False));
-  }
-  if (loadShape(aShape, "MODERN_MVCooker_1_opened.brep"))
-  {
-    moveScale(aShape);
-    DISP(drawShape(aShape, Graphic3d_NOM_SILVER, Standard_False));
-  }
-  if (loadShape(aShape, "MODERN_Sink_1.brep"))
-  {
-    moveScale(aShape);
-
-    aFaces.Clear();
-    TopExp::MapShapes(aShape, TopAbs_FACE, aFaces);  
-    nbFaces = aFaces.Extent();
-
-    for (Standard_Integer i = 1; i <= nbFaces; i++)
-    {
-      if (i < 145)
-        DISP(drawShape(aFaces(i), Graphic3d_NOM_ALUMINIUM, Standard_False));
-      else if (i == 145)
-        DISP(Texturize(aFaces(i), "cookerplate.gif"));
-      else  
-        DISP(Texturize(aFaces(i), "chataignier.gif"));
-    }
-  }
-  if (loadShape(aShape, "MODERN_Sink_1_opened.brep"))
-  {
-    moveScale(aShape);
-    DISP(Texturize(aShape, "chataignier.gif"));
-  }
-  if (loadShape(aShape, "MODERN_Refrigerator_1.brep"))
-  {
-    moveScale(aShape);
-    DISP(drawShape(aShape, Graphic3d_NOM_CHROME, Standard_False));
-  }
-  if (loadShape(aShape, "MODERN_Refrigerator_1_opened.brep"))
-  {
-    moveScale(aShape);
-    DISP(drawShape(aShape, Graphic3d_NOM_CHROME, Standard_False));
-  }
-
-  getViewer()->Update();
-}
\ No newline at end of file
diff --git a/samples/mfc/standard/04_Viewer3d/src/TexturesExt_Presentation.h b/samples/mfc/standard/04_Viewer3d/src/TexturesExt_Presentation.h
deleted file mode 100755 (executable)
index 1c67a95..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-// TexturesExt_Presentation.h: interface for the TexturesExt_Presentation class.
-// Creation of textural presentation of shape
-//////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_TexturesExt_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
-#define AFX_TexturesExt_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-#include "OCCDemo_Presentation.h"
-#include <AIS_Shape.hxx>
-class TopoDS_Shape;
-class TCollection_AsciiString;
-
-class TexturesExt_Presentation : public OCCDemo_Presentation
-{
-public:
-  // Construction
-  TexturesExt_Presentation();
-
-public:
-  // Iteration on samples
-  virtual void DoSample();
-  // one phase of iterations
-
-  virtual void Init();
-
-private:
-  // display an AIS_Shape based on a given shape with texture with given filename
-  // filename can also be an integer value ("2", "5", etc.), in this case
-  // a predefined texture from Graphic3d_NameOfTexture2D with number = this value
-  // is loaded.
-  Handle(AIS_Shape) Texturize(
-    const TopoDS_Shape& aShape, TCollection_AsciiString aTFileName, 
-    Standard_Real toScaleU=1.0, Standard_Real toScaleV=1.0, 
-    Standard_Real toRepeatU=1.0, Standard_Real toRepeatV=1.0,
-    Standard_Real originU=0.0, Standard_Real originV=0.0);
-  
-  // loads a shape from a given brep file from data dir into a given TopoDS_Shape object
-  Standard_Boolean loadShape(TopoDS_Shape&, TCollection_AsciiString);
-
-  // turns 6 diretional lights on/off for brighter demonstration
-  void lightsOnOff(Standard_Boolean isOn);
-
-  // Sample functions
-  void sampleBottle();
-  void sampleTerrain();
-  void sampleKitchen();
-
-private:
-  // Array of pointers to sample functions
-  typedef void (TexturesExt_Presentation::*PSampleFuncType)();
-  static const PSampleFuncType SampleFuncs[];
-
-};
-
-#endif // !defined(AFX_TexturesExt_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
diff --git a/samples/mfc/standard/04_Viewer3d/src/TrihedronDlg.cpp b/samples/mfc/standard/04_Viewer3d/src/TrihedronDlg.cpp
deleted file mode 100755 (executable)
index 6db2006..0000000
+++ /dev/null
@@ -1,291 +0,0 @@
-// TrihedronDlg.cpp : implementation file
-//
-
-#include "stdafx.h"
-#include "Viewer3dApp.h"
-#include "Viewer3dView.h"
-#include "TrihedronDlg.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-void round(double &value, unsigned char digits) 
-{ 
-char neg = 1; 
-if(value < 0){ 
-neg = (-1); 
-value *= (-1); 
-} 
-double inc(1.0); 
-while(digits){ inc*=10; --digits; } 
-double dg(value*inc*100); 
-value = floor(floor(dg)/100); 
-if((dg-(value*100)) > 49.9) value+=1; 
-value = (value*neg)/inc; 
-}
-
-
-/////////////////////////////////////////////////////////////////////////////
-// CTrihedronDlg dialog
-
-
-//CTrihedronDlg::CTrihedronDlg(CWnd* pParent /*=NULL*/)
-       //: CDialog(CTrihedronDlg::IDD, pParent)
-
-CTrihedronDlg::CTrihedronDlg(Handle(V3d_View) Current_V3d_View, CViewer3dDoc* pDoc, CWnd* pParent /*=NULL*/)
-       : CDialog(CTrihedronDlg::IDD, pParent)
-
-{
-       //{{AFX_DATA_INIT(CTrihedronDlg)
-       m_TrihedronScale = 0.1;
-       myDoc=pDoc;
-       myCurrent_V3d_View = Current_V3d_View;
-       /*m_*/Color = Quantity_NOC_WHITE;
-       /*m_*/Position = Aspect_TOTP_LEFT_UPPER;
-
-               // NOTE: the ClassWizard will add member initialization here
-       //}}AFX_DATA_INIT
-}
-
-
-void CTrihedronDlg::DoDataExchange(CDataExchange* pDX)
-{
-       CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(CTrihedronDlg)
-       DDX_Control(pDX, IDC_COMBOTRIHEDRPOS, m_ComboTrihedronPosList);
-       DDX_Control(pDX, IDC_COMBOTRIHEDRCOLOR, m_ComboTrihedronColorList);
-       DDX_Text(pDX, IDC_EDITTRIHEDRSCALE, m_TrihedronScale);
-       DDV_MinMaxDouble(pDX, m_TrihedronScale, 0., 1.);
-       DDX_Control(pDX, IDC_SPINTRIHEDRSCALE, m_SpinTrihedronScale);
-       //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(CTrihedronDlg, CDialog)
-       //{{AFX_MSG_MAP(CTrihedronDlg)
-       ON_CBN_SELCHANGE(IDC_COMBOTRIHEDRCOLOR, OnSelchangeCombotrihedrcolor)
-       ON_CBN_SELCHANGE(IDC_COMBOTRIHEDRPOS, OnSelchangeCombotrihedrpos)
-       ON_EN_CHANGE(IDC_EDITTRIHEDRSCALE, OnChangeEdittrihedrscale)
-       ON_NOTIFY(UDN_DELTAPOS, IDC_SPINTRIHEDRSCALE, OnDeltaposSpintrihedrscale)
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-
-
-
-
-/////////////////////////////////////////////////////////////////////////////
-// CTrihedronDlg message handlers
-
-void CTrihedronDlg::OnSelchangeCombotrihedrcolor() 
-{
-       UpdateData(TRUE);
-       int a = m_ComboTrihedronColorList.GetCurSel();
-       if(     a==0)
-               Color=Quantity_NOC_BLACK;
-       else if(a==1)
-               Color=Quantity_NOC_MATRABLUE;
-       else if(a==2)
-               Color=Quantity_NOC_MATRAGRAY;
-//     else if(a==3)
-//             Color=Quantity_NOC_ALICEBLUE;
-       else if(a==3)
-               Color=Quantity_NOC_ANTIQUEWHITE;
-       //else if(a==4)
-       //      Color=Quantity_NOC_BISQUE;
-
-       UpdateData(FALSE);
-
-       myCurrent_V3d_View->TriedronDisplay(Position, Color, m_TrihedronScale);
-       myCurrent_V3d_View->Update();
-
-}
-
-void CTrihedronDlg::OnSelchangeCombotrihedrpos() 
-{
-       UpdateData(TRUE);
-       int b = m_ComboTrihedronPosList.GetCurSel();
-
-       if(     b==0)
-               Position=Aspect_TOTP_CENTER;
-       else if(b==1)
-               Position=Aspect_TOTP_LEFT_LOWER;
-       else if(b==2)
-               Position=Aspect_TOTP_LEFT_UPPER;
-       else if(b==3)
-               Position=Aspect_TOTP_RIGHT_LOWER;
-       else if(b==4)
-               Position=Aspect_TOTP_RIGHT_UPPER;
-
-       UpdateData(FALSE);
-
-       myCurrent_V3d_View->TriedronDisplay(Position, Color, m_TrihedronScale);
-       myCurrent_V3d_View->Update();
-       
-}
-
-
-BOOL CTrihedronDlg::OnInitDialog() 
-{
-       CDialog::OnInitDialog();
-       UpdateData(TRUE);
-
-// Initializing the ComboBox : Position
-       m_ComboTrihedronPosList.InsertString(-1, L"Center");
-  m_ComboTrihedronPosList.InsertString(-1, L"Left Lower");
-  m_ComboTrihedronPosList.InsertString(-1, L"Left Upper");
-  m_ComboTrihedronPosList.InsertString(-1, L"Right Lower");
-  m_ComboTrihedronPosList.InsertString(-1, L"Right Upper");
-
-// Initializing the ComboBox : Color
-       /*
-       m_ComboTrihedronColorList.InsertString(-1, L"BLACK");
-       m_ComboTrihedronColorList.InsertString(-1, L"MATRABLUE");
-       m_ComboTrihedronColorList.InsertString(-1, L"MATRAGRAY");
-       m_ComboTrihedronColorList.InsertString(-1, L"ALICE BLUE");
-       m_ComboTrihedronColorList.InsertString(-1, L"WHITE");
-       m_ComboTrihedronColorList.InsertString(-1, L"BISQUE");
-       */
-  m_ComboTrihedronColorList.InsertString(-1, L"Black");
-  m_ComboTrihedronColorList.InsertString(-1, L"Blue");
-  m_ComboTrihedronColorList.InsertString(-1, L"Gray");
-  m_ComboTrihedronColorList.InsertString(-1, L"White");
-       //m_ComboTrihedronColorList.InsertString(-1, L"Bisque");
-       
-
-
-       UpdateData(FALSE);
-       
-/*     if (CDemoVisualizationView::slinitialisation())
-       {
-               AfxMessageBox("debut");
-
-               if(m_Position==Aspect_TOTP_CENTER)
-                       m_ComboTrihedronPosList.SetCurSel(0);
-               else if(m_Position==Aspect_TOTP_LEFT_LOWER)
-                       m_ComboTrihedronPosList.SetCurSel(1);
-               else if(m_Position==Aspect_TOTP_LEFT_UPPER)
-                       m_ComboTrihedronPosList.SetCurSel(2);
-               else if(m_Position==Aspect_TOTP_RIGHT_LOWER)
-                       m_ComboTrihedronPosList.SetCurSel(3);
-               else if(m_Position==Aspect_TOTP_RIGHT_UPPER)
-                       m_ComboTrihedronPosList.SetCurSel(4);
-
-               if(m_Color==Quantity_NOC_BLACK)
-                       m_ComboTrihedronColorList.SetCurSel(0);
-               else if(m_Color==Quantity_NOC_MATRABLUE)
-                       m_ComboTrihedronColorList.SetCurSel(1);
-               else if(m_Color==Quantity_NOC_MATRAGRAY)
-                       m_ComboTrihedronColorList.SetCurSel(2);
-               else if(m_Color==Quantity_NOC_ALICEBLUE)
-                       m_ComboTrihedronColorList.SetCurSel(3);
-               else if(m_Color==Quantity_NOC_WHITE)
-                       m_ComboTrihedronColorList.SetCurSel(4);
-               else if(m_Color==Quantity_NOC_BISQUE)
-                       m_ComboTrihedronColorList.SetCurSel(5);
-               Position = m_Position;
-               Color = m_Color;
-               myCurrent_V3d_View->TriedronDisplay(Position, Color, m_TrihedronScale);
-               myCurrent_V3d_View->Update();
-
-               Initialisation = Standard_False;
-
-       }
-       else
-       {*/
-               if(Position==Aspect_TOTP_CENTER)
-                       m_ComboTrihedronPosList.SetCurSel(0);
-               else if(Position==Aspect_TOTP_LEFT_LOWER)
-                       m_ComboTrihedronPosList.SetCurSel(1);
-               else if(Position==Aspect_TOTP_LEFT_UPPER)
-                       m_ComboTrihedronPosList.SetCurSel(2);
-               else if(Position==Aspect_TOTP_RIGHT_LOWER)
-                       m_ComboTrihedronPosList.SetCurSel(3);
-               else if(Position==Aspect_TOTP_RIGHT_UPPER)
-                       m_ComboTrihedronPosList.SetCurSel(4);
-
-               if(Color==Quantity_NOC_BLACK)
-                       m_ComboTrihedronColorList.SetCurSel(0);
-               else if(Color==Quantity_NOC_MATRABLUE)
-                       m_ComboTrihedronColorList.SetCurSel(1);
-               else if(Color==Quantity_NOC_MATRAGRAY)
-                       m_ComboTrihedronColorList.SetCurSel(2);
-//             else if(Color==Quantity_NOC_ALICEBLUE)
-//                     m_ComboTrihedronColorList.SetCurSel(3);
-               else if(Color==Quantity_NOC_WHITE)
-                       m_ComboTrihedronColorList.SetCurSel(3);
-               //else if(Color==Quantity_NOC_BISQUE)
-               //      m_ComboTrihedronColorList.SetCurSel(4); 
-
-               myCurrent_V3d_View->TriedronDisplay(Position, Color, m_TrihedronScale);
-               myCurrent_V3d_View->Update();
-//     }
-
-
-       
-
-
-       return TRUE;  // return TRUE unless you set the focus to a control
-                     // EXCEPTION: OCX Property Pages should return FALSE
-}
-
-
-void CTrihedronDlg::OnDeltaposSpintrihedrscale(NMHDR* pNMHDR, LRESULT* pResult) 
-{
-       NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR;
-
-       if (pNMUpDown->iDelta >= 1)
-               pNMUpDown->iDelta = 1;
-       else 
-               pNMUpDown->iDelta = -1;
-       
-       if ((pNMUpDown->iDelta > 0) && (m_TrihedronScale > 0)) 
-               m_TrihedronScale = m_TrihedronScale - (pNMUpDown->iDelta)*0.01;
-       
-       if ((pNMUpDown->iDelta < 0) && (m_TrihedronScale < 1)) 
-               m_TrihedronScale = m_TrihedronScale - (pNMUpDown->iDelta)*0.01;
-
-
-       m_TrihedronScale = m_TrihedronScale*100;
-       m_TrihedronScale = floor(m_TrihedronScale );
-       m_TrihedronScale  = m_TrihedronScale /100;
-
-//     round(m_TrihedronScale,2);
-
-       if (fabs(m_TrihedronScale) < 0.001)
-               m_TrihedronScale =0;
-       UpdateData(FALSE);
-       
-       myCurrent_V3d_View->TriedronDisplay(Position, Color, m_TrihedronScale);
-       *pResult = 0;
-
-       myCurrent_V3d_View->Update();
-
-}
-
-void CTrihedronDlg::OnChangeEdittrihedrscale() 
-{
-       if (UpdateData()){
-               myCurrent_V3d_View->TriedronDisplay(Position, Color, m_TrihedronScale);
-               myCurrent_V3d_View->Update();
-       }
-}
-
-void CTrihedronDlg::OnCancel() 
-{
-       myCurrent_V3d_View->TriedronErase();
-       myCurrent_V3d_View->Update();
-       myDoc -> SetMyStaticTrihedronAxisIsDisplayed(FALSE);
-//     Initialisation = Standard_True;
-       CDialog::OnCancel();
-}
-
-void CTrihedronDlg::OnOK() 
-{
-       myDoc -> SetMyStaticTrihedronAxisIsDisplayed(TRUE);
-       CDialog::OnOK();
-}
-
diff --git a/samples/mfc/standard/04_Viewer3d/src/TrihedronDlg.h b/samples/mfc/standard/04_Viewer3d/src/TrihedronDlg.h
deleted file mode 100755 (executable)
index bfe4056..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-#if !defined(AFX_TRIHEDRONDLG_H__1917B30F_3102_11D6_BD0D_00A0C982B46F__INCLUDED_)
-#define AFX_TRIHEDRONDLG_H__1917B30F_3102_11D6_BD0D_00A0C982B46F__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-// TrihedronDlg.h : header file
-//
-
-#include "Viewer3dDoc.h"
-
-#include <V3d_View.hxx>
-#include <Quantity_NameOfColor.hxx>
-
-#include "..\res\resource.h"
-/////////////////////////////////////////////////////////////////////////////
-// CTrihedronDlg dialog
-
-class CTrihedronDlg : public CDialog
-{
-// Construction
-public:
-       CTrihedronDlg(CWnd* pParent = NULL);   // standard constructor
-       CTrihedronDlg(Handle(V3d_View) Current_V3d_View, CViewer3dDoc* pDoc, CWnd* pParent = NULL);   // standard constructor
-
-
-// Dialog Data
-       //{{AFX_DATA(CTrihedronDlg)
-       enum { IDD = IDD_TRIHEDRON };
-       CComboBox m_ComboTrihedronPosList;
-       CComboBox m_ComboTrihedronColorList;
-       double  m_TrihedronScale;
-       CSpinButtonCtrl m_SpinTrihedronScale;
-       Quantity_NameOfColor m_Color;
-       Aspect_TypeOfTriedronPosition m_Position;
-
-
-               // NOTE: the ClassWizard will add data members here
-       //}}AFX_DATA
-
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(CTrihedronDlg)
-       protected:
-       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
-       //}}AFX_VIRTUAL
-
-// Implementation
-protected:
-
-       // Generated message map functions
-       //{{AFX_MSG(CTrihedronDlg)
-       afx_msg void OnSelchangeCombotrihedrcolor();
-       afx_msg void OnSelchangeCombotrihedrpos();
-       afx_msg void OnChangeEdittrihedrscale();
-       afx_msg void OnDeltaposSpintrihedrscale(NMHDR* pNMHDR, LRESULT* pResult);
-       virtual BOOL OnInitDialog();
-       virtual void OnCancel();
-       virtual void OnOK();
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-
-private:
-
-       Handle(V3d_View) myCurrent_V3d_View;
-       CViewer3dDoc* myDoc;
-       Quantity_NameOfColor Color ;
-       Aspect_TypeOfTriedronPosition Position;
-/*
-public:
-
-static Standard_Boolean Initialisation;
-static Standard_Boolean GetInitialisation() {return Initialisation;};
-*/
-
-};
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_TRIHEDRONDLG_H__1917B30F_3102_11D6_BD0D_00A0C982B46F__INCLUDED_)
diff --git a/samples/mfc/standard/04_Viewer3d/src/Viewer3dApp.cpp b/samples/mfc/standard/04_Viewer3d/src/Viewer3dApp.cpp
deleted file mode 100755 (executable)
index 36834f8..0000000
+++ /dev/null
@@ -1,93 +0,0 @@
-// Viewer3dApp.cpp : Defines the class behaviors for the application.
-//
-
-#include "stdafx.h"
-#include "Viewer3dApp.h"
-
-#include <OCC_MainFrame.h>
-#include <OCC_3dChildFrame.h>
-#include "Viewer3dDoc.h"
-#include "Viewer3dView.h"
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer3dApp
-
-BEGIN_MESSAGE_MAP(CViewer3dApp, CWinApp)
-       //{{AFX_MSG_MAP(CViewer3dApp)
-       ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
-               // NOTE - the ClassWizard will add and remove mapping macros here.
-               //    DO NOT EDIT what you see in these blocks of generated code!
-       //}}AFX_MSG_MAP
-       // Standard file based document commands
-       ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)
-       ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer3dApp construction
-
-CViewer3dApp::CViewer3dApp() : OCC_App()
-{
-  SampleName = "Viewer3d"; //for about dialog
-  SetSamplePath (L"..\\..\\03_Viewer3d");
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// The one and only CViewer3dApp object
-
-CViewer3dApp theApp;
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer3dApp initialization
-
-BOOL CViewer3dApp::InitInstance()
-{
-       AfxEnableControlContainer();
-
-       // Standard initialization
-       // If you are not using these features and wish to reduce the size
-       //  of your final executable, you should remove from the following
-       //  the specific initialization routines you do not need.
-
-       // Change the registry key under which our settings are stored.
-       // You should modify this string to be something appropriate
-       // such as the name of your company or organization.
-       SetRegistryKey(_T("Local AppWizard-Generated Applications"));
-
-       LoadStdProfileSettings();  // Load standard INI file options (including MRU)
-
-       // Register the application's document templates.  Document templates
-       //  serve as the connection between documents, frame windows and views.
-
-       CMultiDocTemplate* pDocTemplate;
-       pDocTemplate = new CMultiDocTemplate(
-               IDR_3DTYPE,
-               RUNTIME_CLASS(CViewer3dDoc),
-               RUNTIME_CLASS(OCC_3dChildFrame), // custom MDI child frame
-               RUNTIME_CLASS(CViewer3dView));
-       AddDocTemplate(pDocTemplate);
-
-       // create main MDI Frame window
-       OCC_MainFrame* pMainFrame = new OCC_MainFrame(with_AIS_TB);
-       if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
-               return FALSE;
-       m_pMainWnd = pMainFrame;
-
-       // Parse command line for standard shell commands, DDE, file open
-       CCommandLineInfo cmdInfo;
-       ParseCommandLine(cmdInfo);
-
-       // Dispatch commands specified on the command line
-       if (!ProcessShellCommand(cmdInfo))
-               return FALSE;
-
-       // The main window has been initialized, so show and update it.
-       pMainFrame->ShowWindow(m_nCmdShow);
-       pMainFrame->UpdateWindow();
-
-       return TRUE;
-}
-
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer3dApp commands
diff --git a/samples/mfc/standard/04_Viewer3d/src/Viewer3dApp.h b/samples/mfc/standard/04_Viewer3d/src/Viewer3dApp.h
deleted file mode 100755 (executable)
index 31459e5..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-// Viewer3dApp.h : main header file for the Viewer3d application
-//
-
-#if !defined(AFX_VIEWER3DAPP_H__3045338E_3E75_11D7_8611_0060B0EE281E__INCLUDED_)
-#define AFX_VIEWER3DAPP_H__3045338E_3E75_11D7_8611_0060B0EE281E__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include <OCC_App.h>
-
-class CViewer3dApp : public OCC_App
-{
-public:
-
-  CViewer3dApp();
-
-// Overrides
-  // ClassWizard generated virtual function overrides
-  //{{AFX_VIRTUAL(CViewer3dApp)
-  public:
-  virtual BOOL InitInstance();
-  //}}AFX_VIRTUAL
-
-  DECLARE_MESSAGE_MAP()
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_VIEWER3DAPP_H__3045338E_3E75_11D7_8611_0060B0EE281E__INCLUDED_)
diff --git a/samples/mfc/standard/04_Viewer3d/src/Viewer3dDoc.cpp b/samples/mfc/standard/04_Viewer3d/src/Viewer3dDoc.cpp
deleted file mode 100755 (executable)
index a29bfdc..0000000
+++ /dev/null
@@ -1,1039 +0,0 @@
-// Viewer3dDoc.cpp : implementation of the CViewer3dDoc class
-//
-
-#include "stdafx.h"
-#include "Viewer3dApp.h"
-#include "BoxRadius.h"
-#include "DlgIsos.h"
-
-#include "Viewer3dDoc.h"
-#include "Viewer3dView.h"
-#include "OffsetDlg.h"
-#include "ResultDialog.h"
-#include "User_Cylinder.hxx"
-
-#include "AIS_Trihedron.hxx"
-#include "Geom_Axis2Placement.hxx"
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer3dDoc
-
-IMPLEMENT_DYNCREATE(CViewer3dDoc, CDocument)
-
-BEGIN_MESSAGE_MAP(CViewer3dDoc, OCC_3dDoc)
-  //{{AFX_MSG_MAP(CViewer3dDoc)
-  ON_COMMAND(ID_BOX, OnBox)
-  ON_COMMAND(ID_Cylinder, OnCylinder)
-  ON_COMMAND(ID_SPHERE, OnSphere)
-  ON_COMMAND(ID_ERASEALL, OnRemoveAll)
-  ON_COMMAND(ID_NBISOS, OnNbisos)
-  ON_COMMAND(ID_FACES, OnFaces)
-  ON_COMMAND(ID_EDGES, OnEdges)
-  ON_COMMAND(ID_VERTICES, OnVertices)
-  ON_COMMAND(ID_NEUTRAL, OnNeutral)
-  ON_COMMAND(ID_USERCYLINDER_CHANGEFACECOLOR, OnUsercylinderChangefacecolor)
-  ON_COMMAND(ID_FILLET3D, OnFillet3d)
-  ON_COMMAND(ID_CIRCLE, OnCircle)
-  ON_COMMAND(ID_LINE, OnLine)
-  ON_COMMAND(ID_OVERLAPPED_BOX, OnOverlappedBox)
-  ON_COMMAND(ID_OVERLAPPED_CYLINDER, OnOverlappedCylinder)
-  ON_COMMAND(ID_OVERLAPPED_SPHERE, OnOverlappedSphere)
-  ON_COMMAND(ID_POLYGON_OFFSETS, OnPolygonOffsets)
-  ON_UPDATE_COMMAND_UI(ID_POLYGON_OFFSETS, OnUpdatePolygonOffsets)
-  ON_UPDATE_COMMAND_UI(ID_Cylinder, OnUpdateCylinder)
-  ON_UPDATE_COMMAND_UI(ID_SPHERE, OnUpdateSphere)
-  ON_UPDATE_COMMAND_UI(ID_BOX, OnUpdateBox)
-  ON_UPDATE_COMMAND_UI(ID_OVERLAPPED_CYLINDER, OnUpdateOverlappedCylinder)
-  ON_UPDATE_COMMAND_UI(ID_OVERLAPPED_SPHERE, OnUpdateOverlappedSphere)
-  ON_UPDATE_COMMAND_UI(ID_OVERLAPPED_BOX, OnUpdateOverlappedBox)
-  ON_COMMAND(ID_OBJECT_REMOVE, OnObjectRemove)
-  ON_COMMAND(ID_OBJECT_ERASE, OnObjectErase)
-  ON_COMMAND(ID_OBJECT_DISPLAYALL, OnObjectDisplayall)
-  ON_COMMAND(ID_OBJECT_COLORED_MESH, OnObjectColoredMesh)
-  ON_UPDATE_COMMAND_UI(ID_OBJECT_COLORED_MESH, OnUpdateObjectColoredMesh)
-  ON_UPDATE_COMMAND_UI(ID_OBJECT_SHADING, OnUpdateObjectShading)
-  ON_UPDATE_COMMAND_UI(ID_OBJECT_WIREFRAME, OnUpdateObjectWireframe)
-  ON_COMMAND(ID_OPTIONS_TRIHEDRON_DYNAMIC_TRIHEDRON, OnOptionsTrihedronDynamicTrihedron)
-  ON_UPDATE_COMMAND_UI(ID_OPTIONS_TRIHEDRON_DYNAMIC_TRIHEDRON, OnUpdateOptionsTrihedronDynamicTrihedron)
-  ON_UPDATE_COMMAND_UI(ID_OPTIONS_TRIHEDRON_STATIC_TRIHEDRON, OnUpdateOptionsTrihedronStaticTrihedron)
-  ON_COMMAND(ID_OBJECT_MATERIAL, OnObjectMaterial)
-  ON_COMMAND(ID_TEXTURE_ON, OnTextureOn)
-  ON_COMMAND(ID_BUTTONNext, OnBUTTONNext)
-  ON_COMMAND(ID_BUTTONStart, OnBUTTONStart)
-  ON_COMMAND(ID_BUTTONRepeat, OnBUTTONRepeat)
-  ON_COMMAND(ID_BUTTONPrev, OnBUTTONPrev)
-  ON_COMMAND(ID_BUTTONEnd, OnBUTTONEnd)
-  ON_UPDATE_COMMAND_UI(ID_BUTTONNext, OnUpdateBUTTONNext)
-  ON_UPDATE_COMMAND_UI(ID_BUTTONPrev, OnUpdateBUTTONPrev)
-  ON_UPDATE_COMMAND_UI(ID_BUTTONStart, OnUpdateBUTTONStart)
-  ON_UPDATE_COMMAND_UI(ID_BUTTONRepeat, OnUpdateBUTTONRepeat)
-  ON_UPDATE_COMMAND_UI(ID_BUTTONEnd, OnUpdateBUTTONEnd)
-  ON_COMMAND(ID_FILE_NEW, OnFileNew)
-  ON_COMMAND(ID_DUMP_VIEW, OnDumpView)
-  //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer3dDoc construction/destruction
-
-CViewer3dDoc::CViewer3dDoc()
-:OCC_3dDoc()
-{
-  myCylinder.Nullify();
-  mySphere.Nullify();
-  myBox.Nullify();
-  myOverlappedCylinder.Nullify();
-  myOverlappedSphere.Nullify();
-  myOverlappedBox.Nullify();
-  myOffsetDlg = NULL;
-  myStaticTrihedronAxisIsDisplayed = FALSE;
-  myState = -1;
-
-  isTextureSampleStarted = FALSE;
-
-  myPresentation = OCCDemo_Presentation::Current;
-  myPresentation->SetDocument(this);
-
-
-  myAISContext->DefaultDrawer()->ShadingAspect()->SetColor(Quantity_NOC_CHARTREUSE1); 
-  myAISContext->DefaultDrawer()->ShadingAspect()->SetMaterial(Graphic3d_NOM_SILVER);
-
-  strcpy_s(myDataDir, "Data");
-  strcpy_s(myLastPath, ".");
-
-  /*
-  Handle(AIS_Trihedron) myTrihedron;
-  Handle(Geom_Axis2Placement) myTrihedronAxis=new Geom_Axis2Placement(gp::XOY());
-  myTrihedron=new AIS_Trihedron(myTrihedronAxis);
-  myAISContext->Display(myTrihedron);
-  */
-}
-
-CViewer3dDoc::~CViewer3dDoc()
-{
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer3dDoc diagnostics
-
-#ifdef _DEBUG
-void CViewer3dDoc::AssertValid() const
-{
-  CDocument::AssertValid();
-}
-
-void CViewer3dDoc::Dump(CDumpContext& dc) const
-{
-  CDocument::Dump(dc);
-}
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer3dDoc commands
-
-void CViewer3dDoc::UpdateResultMessageDlg (CString theTitle, const TCollection_AsciiString& theMessage)
-{
-  CString aText (theMessage.ToCString());
-  myCResultDialog.SetText (aText);
-  myCResultDialog.SetTitle(theTitle);
-}
-
-void CViewer3dDoc::UpdateResultMessageDlg(CString theTitle, CString theMessage)
-{
-  myCResultDialog.SetText (theMessage);
-  myCResultDialog.SetTitle(theTitle);
-}
-
-void CViewer3dDoc::OnBox()
-{
-  if(myBox.IsNull())
-  {
-    BRepPrimAPI_MakeBox B(gp_Pnt(0,-400,-100), 200.,150.,100.);
-
-
-    myBox = new AIS_Shape(B.Shape());
-
-    myAISContext->SetMaterial (myBox, Graphic3d_NOM_PEWTER, Standard_False);
-    myAISContext->SetDisplayMode (myBox, 1, Standard_False);
-
-    myAISContext->Display (myBox, Standard_True);
-    TCollection_AsciiString Message("\
-BRepPrimAPI_MakeBox Box1(gp_Pnt(0,-400,-100), 200.,150.,100.);\n\
-    ");
-
-    UpdateResultMessageDlg("Create Box",Message);
-  }
-}
-
-void CViewer3dDoc::OnCylinder()
-{
-  if(myCylinder.IsNull())
-  {
-    gp_Ax2 CylAx2(gp_Pnt(0,0,-100), gp_Dir(gp_Vec(gp_Pnt(0,0,-100),gp_Pnt(0,0,100))));
-    myCylinder = new User_Cylinder(CylAx2, 80.,200.);
-
-    myAISContext->SetDisplayMode (myCylinder, 1, Standard_False);
-
-    myAISContext->Display (myCylinder, Standard_True);
-
-    TCollection_AsciiString Message("\
-gp_Ax2 CylAx2(gp_Pnt(0,0,-100), gp_Dir(gp_Vec(gp_Pnt(0,0,-100),gp_Pnt(0,0,100))));\n\
-C = new User_Cylinder(CylAx2, 80.,200.);;\n\
-    ");
-
-    UpdateResultMessageDlg("Create Cylinder",Message);
-  }
-}
-
-void CViewer3dDoc::OnSphere()
-{
-  if(mySphere.IsNull())
-  {
-    BRepPrimAPI_MakeSphere S(gp_Pnt(0,300,0), 100.);
-
-    mySphere = new AIS_Shape(S.Shape());
-
-    myAISContext->SetMaterial (mySphere, Graphic3d_NOM_BRONZE, Standard_False);
-    myAISContext->SetDisplayMode (mySphere, 1, Standard_False);
-
-    myAISContext->Display (mySphere, Standard_True);
-    TCollection_AsciiString Message("\
-BRepPrimAPI_MakeSphere S(gp_Pnt(0,300,0), 100.);\n\
-    ");
-    UpdateResultMessageDlg("Create Sphere",Message);
-  }
-}
-
-void CViewer3dDoc::OnRemoveAll()
-
-{
-  AIS_ListOfInteractive aListOfObjects;
-  myAISContext->ObjectsInside(aListOfObjects,AIS_KOI_Shape);
-
-  AIS_ListIteratorOfListOfInteractive aListIterator;
-  for(aListIterator.Initialize(aListOfObjects);aListIterator.More();aListIterator.Next()){
-    myAISContext->Remove (aListIterator.Value(), Standard_False);
-  }
-
-  myAISContext->Remove (myCylinder, Standard_True);
-
-
-  myCylinder.Nullify();
-  mySphere.Nullify();
-  myBox.Nullify();
-  myOverlappedCylinder.Nullify();
-  myOverlappedSphere.Nullify();
-  myOverlappedBox.Nullify();
-  if(myOffsetDlg && myOffsetDlg->IsWindowVisible())
-    myOffsetDlg->UpdateValues();
-}
-
-void CViewer3dDoc::OnOverlappedBox() 
-{
-  OnBox();
-  if(myOverlappedBox.IsNull()){
-    BRepPrimAPI_MakeBox B(gp_Pnt(0,-400,-100), 200.,150.,100.);
-
-    BRepBuilderAPI_NurbsConvert aNurbsConvert(B.Shape());
-    TopoDS_Shape aBoxShape2 = aNurbsConvert.Shape();
-
-
-    myOverlappedBox = new AIS_Shape(aBoxShape2);
-
-    myAISContext->SetMaterial (myOverlappedBox, Graphic3d_NOM_GOLD, Standard_False);
-    myAISContext->SetDisplayMode (myOverlappedBox, 1, Standard_False);
-
-    myAISContext->Display (myOverlappedBox, Standard_True);
-    TCollection_AsciiString Message("\
-BRepPrimAPI_MakeBox Box1(gp_Pnt(0,-400,-100), 200.,150.,100.);\n\
-\n\
-BRepPrimAPI_MakeBox Box2(gp_Pnt(0,-400,-100), 200.,150.,100.);\n\
-BRepBuilderAPI_NurbsConvert aNurbsConvert(Box2.Shape());\n\
-    ");
-    UpdateResultMessageDlg("Create overlapped boxes",Message);
-    if(myOffsetDlg && myOffsetDlg->IsWindowVisible())
-      myOffsetDlg->UpdateValues();
-  }
-}
-
-void CViewer3dDoc::OnOverlappedCylinder()
-{
-  OnCylinder();
-
-  if(myOverlappedCylinder.IsNull()){
-    gp_Ax2 CylAx2(gp_Pnt(0,0,-100), gp_Dir(gp_Vec(gp_Pnt(0,0,-100),gp_Pnt(0,0,100))));
-    BRepPrimAPI_MakeCylinder C(CylAx2, 80.,200.);
-
-    BRepBuilderAPI_NurbsConvert aNurbsConvert(C.Shape());
-    TopoDS_Shape aCylShape2 = aNurbsConvert.Shape();
-
-    myOverlappedCylinder = new AIS_Shape(aCylShape2);
-
-
-    myAISContext->SetMaterial (myOverlappedCylinder, Graphic3d_NOM_GOLD, Standard_False);
-    myAISContext->SetDisplayMode (myOverlappedCylinder, 1, Standard_False);
-
-    myAISContext->Display (myOverlappedCylinder, Standard_True);
-
-    TCollection_AsciiString Message("\
-gp_Ax2 CylAx2(gp_Pnt(0,0,-100), gp_Dir(gp_Vec(gp_Pnt(0,0,-100),gp_Pnt(0,0,100))));\n\
-Cylinder1 = new User_Cylinder(CylAx2, 80.,200.);\n\
-\n\
-BRepPrimAPI_MakeCylinder Cylinder2(CylAx2, 80.,200.);\n\
-BRepBuilderAPI_NurbsConvert aNurbsConvert(Cylinder2.Shape());\n\
-    ");
-    UpdateResultMessageDlg("Create overlapped cylinders",Message);
-    if (myOffsetDlg && myOffsetDlg->IsWindowVisible())
-    {
-      myOffsetDlg->UpdateValues();
-    }
-  }
-}
-
-void CViewer3dDoc::OnOverlappedSphere()
-{
-  OnSphere();
-  if(myOverlappedSphere.IsNull()){
-    BRepPrimAPI_MakeSphere S(gp_Pnt(0,300,0), 100.);
-
-    BRepBuilderAPI_NurbsConvert aNurbsConvert(S.Shape());
-    TopoDS_Shape aSphereShape2 = aNurbsConvert.Shape();
-
-    myOverlappedSphere = new AIS_Shape(aSphereShape2);
-
-    myAISContext->SetMaterial (myOverlappedSphere, Graphic3d_NOM_GOLD, Standard_False);
-
-    myAISContext->SetDisplayMode (myOverlappedSphere, 1, Standard_False);
-
-    myAISContext->Display (myOverlappedSphere, Standard_True);
-
-    TCollection_AsciiString Message("\
-BRepPrimAPI_MakeSphere Sphere1(gp_Pnt(0,300,0), 100.);\n\
-\n\
-BRepPrimAPI_MakeSphere Sphere2(gp_Pnt(0,300,0), 100.);\n\
-BRepBuilderAPI_NurbsConvert aNurbsConvert(Sphere2.Shape());\n\
-    ");
-    UpdateResultMessageDlg("Create overlapped spheres",Message);
-    if (myOffsetDlg && myOffsetDlg->IsWindowVisible())
-    {
-      myOffsetDlg->UpdateValues();
-    }
-  }
-}
-
-void CViewer3dDoc::OnPolygonOffsets()
-{
-  myOffsetDlg = new COffsetDlg(this);
-  myOffsetDlg->Create(COffsetDlg::IDD,NULL);
-  myAISContext->UpdateCurrentViewer();
-}
-
-void CViewer3dDoc::OnUpdatePolygonOffsets(CCmdUI* pCmdUI) 
-{
-  Standard_Integer aOffsetMode;
-  Standard_ShortReal aFactor;
-  Standard_ShortReal aCylUnits = 0;
-  Standard_ShortReal aSphereUnits = 0;
-  Standard_ShortReal aBoxUnits = 0;
-
-  BOOL IsOverlappedCylinderDisplayed = myAISContext->IsDisplayed(myOverlappedCylinder);
-  BOOL IsOverlappedSphereDisplayed = myAISContext->IsDisplayed(myOverlappedSphere);
-  BOOL IsOverlappedBoxDisplayed = myAISContext->IsDisplayed(myOverlappedBox);
-  BOOL IsAnyOverlappedObjectDisplayed = 
-    IsOverlappedCylinderDisplayed || IsOverlappedSphereDisplayed || IsOverlappedBoxDisplayed;
-
-  if(!myOverlappedCylinder.IsNull() && IsOverlappedCylinderDisplayed){
-    myOverlappedCylinder->PolygonOffsets(aOffsetMode,aFactor,aCylUnits);
-  }
-
-  if(!myOverlappedSphere.IsNull() && IsOverlappedSphereDisplayed){
-    myOverlappedSphere->PolygonOffsets(aOffsetMode,aFactor,aSphereUnits);
-  }
-
-  if(!myOverlappedBox.IsNull() && IsOverlappedBoxDisplayed){
-    myOverlappedBox->PolygonOffsets(aOffsetMode,aFactor,aBoxUnits);
-  }
-
-  if(myOffsetDlg && myOffsetDlg->IsWindowVisible())
-    pCmdUI->SetCheck(TRUE);
-  else
-    pCmdUI->SetCheck(FALSE);
-  if (IsAnyOverlappedObjectDisplayed)
-    if(myOffsetDlg)
-      pCmdUI->Enable(!myOffsetDlg->IsWindowVisible());
-    else
-      pCmdUI->Enable(TRUE);
-  else
-    pCmdUI->Enable(FALSE);
-}
-
-void CViewer3dDoc::OnUpdateCylinder(CCmdUI* pCmdUI)
-{
-  pCmdUI->Enable(myCylinder.IsNull());
-}
-
-void CViewer3dDoc::OnUpdateSphere(CCmdUI* pCmdUI)
-{
-  pCmdUI->Enable(mySphere.IsNull()); 
-}
-
-void CViewer3dDoc::OnUpdateBox(CCmdUI* pCmdUI)
-{
-  pCmdUI->Enable(myBox.IsNull()); 
-}
-
-void CViewer3dDoc::OnUpdateOverlappedCylinder(CCmdUI* pCmdUI)
-{
-  pCmdUI->Enable   (myOverlappedCylinder.IsNull()
-    || myCylinder.IsNull());
-
-}
-
-void CViewer3dDoc::OnUpdateOverlappedSphere(CCmdUI* pCmdUI)
-{
-  pCmdUI->Enable   (myOverlappedSphere.IsNull()
-    || mySphere.IsNull());
-}
-
-void CViewer3dDoc::OnUpdateOverlappedBox(CCmdUI* pCmdUI)
-{
-  pCmdUI->Enable   (myOverlappedBox.IsNull()
-    || myBox.IsNull());
-}
-
-void CViewer3dDoc::OnObjectRemove()
-{
-  // A small trick to avoid compiler error (C2668).
-  const Handle(AIS_InteractiveObject)& aBox = myBox;
-  if(myAISContext->IsSelected (aBox))
-    myBox.Nullify();
-
-  const Handle(AIS_InteractiveObject)& aCylinder = myCylinder;
-  if(myAISContext->IsSelected (aCylinder))
-    myCylinder.Nullify();
-
-  const Handle(AIS_InteractiveObject)& aSphere = mySphere;
-  if(myAISContext->IsSelected (aSphere))
-    mySphere.Nullify();
-
-  const Handle(AIS_InteractiveObject)& anOverlappedBox = myOverlappedBox;
-  if(myAISContext->IsSelected (anOverlappedBox))
-    myOverlappedBox.Nullify();
-
-  const Handle(AIS_InteractiveObject)& anOverlappedCylinder = myOverlappedCylinder;
-  if(myAISContext->IsSelected (anOverlappedCylinder))
-    myOverlappedCylinder.Nullify();
-
-  const Handle(AIS_InteractiveObject)& anOverlappedSphere = myOverlappedSphere;
-  if(myAISContext->IsSelected (anOverlappedSphere))
-    myOverlappedSphere.Nullify();
-
-
-  for(myAISContext->InitSelected();myAISContext->MoreSelected();myAISContext->InitSelected())
-    myAISContext->Remove(myAISContext->SelectedInteractive(),Standard_True);
-
-  if(myOffsetDlg && myOffsetDlg->IsWindowVisible())
-    myOffsetDlg->UpdateValues();
-}
-
-void CViewer3dDoc::OnObjectErase()
-
-{
-  OCC_3dBaseDoc::OnObjectErase();
-  if(myOffsetDlg && myOffsetDlg->IsWindowVisible())
-    myOffsetDlg->UpdateValues();
-}
-
-void CViewer3dDoc::OnObjectDisplayall()
-
-{
-  OCC_3dBaseDoc::OnObjectDisplayall();
-  if(myOffsetDlg && myOffsetDlg->IsWindowVisible())
-    myOffsetDlg->UpdateValues();
-}
-
-Handle(User_Cylinder) CViewer3dDoc::GetCylinder()
-{
-  return myCylinder;
-}
-
-
-Handle(AIS_Shape) CViewer3dDoc::GetSphere()
-{
-  return mySphere;
-}
-
-Handle(AIS_Shape) CViewer3dDoc::GetBox()
-{
-  return myBox;
-}
-
-Handle(AIS_Shape) CViewer3dDoc::GetOverlappedCylinder()
-{
-  return myOverlappedCylinder;
-}
-
-
-Handle(AIS_Shape) CViewer3dDoc::GetOverlappedSphere()
-{
-  return myOverlappedSphere;
-}
-
-Handle(AIS_Shape) CViewer3dDoc::GetOverlappedBox()
-{
-  return myOverlappedBox;
-}
-
-void CViewer3dDoc::DragEvent (const Standard_Integer theX,
-                              const Standard_Integer theY,
-                              const Standard_Integer theState,
-                              const Handle(V3d_View)& theView)
-{
-  OCC_3dBaseDoc::DragEvent (theX, theY, theState, theView);
-  if(myOffsetDlg && myOffsetDlg->IsWindowVisible())
-    myOffsetDlg->UpdateValues();
-}
-
-//-----------------------------------------------------------------------------------------
-//
-//-----------------------------------------------------------------------------------------
-void CViewer3dDoc::InputEvent(const Standard_Integer /*x*/,
-                              const Standard_Integer /*y*/,
-                              const Handle(V3d_View)& /*aView*/ )
-{
-  if (myOffsetDlg && myOffsetDlg->IsWindowVisible())
-    myOffsetDlg->UpdateValues();
-
-  Quantity_Color CSFColor;
-  COLORREF MSColor;
-  myAISContext->SelectDetected();
-
-  // Change the color of a selected face in a user cylinder
-  if (myState == FACE_COLOR)
-  {
-    myAISContext->InitSelected();
-    if (myAISContext->MoreSelected())
-    {
-      Handle(AIS_InteractiveObject) Current = myAISContext->SelectedInteractive();
-      if (Current->HasColor())
-      {
-        myAISContext->Color (Current, CSFColor);
-        MSColor = RGB (CSFColor.Red()*255.0, CSFColor.Green()*255.0, CSFColor.Blue()*255.0);
-      }
-      else 
-      {
-        MSColor = RGB (255, 255, 255);
-      }
-
-      CColorDialog dlgColor(MSColor);
-      if (dlgColor.DoModal() == IDOK)
-      {
-        MSColor = dlgColor.GetColor();
-        CSFColor = Quantity_Color (GetRValue (MSColor)/255.0,
-                                   GetGValue (MSColor)/255.0,
-                                   GetBValue (MSColor)/255.0,
-                                   Quantity_TOC_RGB);
-
-        Handle(AIS_InteractiveObject) aSelectedObject = myAISContext->SelectedInteractive();
-        Handle(User_Cylinder)::DownCast (aSelectedObject)->SetColor (CSFColor);
-
-        myAISContext->Redisplay (aSelectedObject, Standard_True);
-        myState = -1;
-      }
-    }
-
-    myCResultDialog.SetTitle("Change face color");
-    myCResultDialog.SetText(          "  Handle(AIS_InteractiveObject) aSelectedObject = myAISContext->SelectedInteractive(); \n"
-                                      "  Handle(User_Cylinder)::DownCast(aSelectedObject)->SetColor (CSFColor); \n"
-                                      "  myAISContext->Redisplay (myAISContext->Current(), Standard_True); \n"
-                                      "  \n"
-                                      "  \n"
-                                      "  NOTE: a User_Cylinder is an object defined by the user. \n"
-                                      "  The User_Cylinder class inherit from the AIS_InteractiveObject \n"
-                                      "  Cascade class, it's use is the same as an AIS_InteractiveObject. \n"
-                                      "  \n");
-    SetTitle (L"Change face color");
-  }
-}
-
-//-----------------------------------------------------------------------------------------
-//
-//-----------------------------------------------------------------------------------------
-void CViewer3dDoc::ShiftDragEvent (const Standard_Integer theX,
-                                   const Standard_Integer  theY,
-                                   const Standard_Integer theState,
-                                   const Handle(V3d_View)& theView)
-{
-  OCC_3dBaseDoc::ShiftDragEvent(theX, theY, theState, theView);
-  if(myOffsetDlg && myOffsetDlg->IsWindowVisible())
-    myOffsetDlg->UpdateValues();
-}
-
-
-//-----------------------------------------------------------------------------------------
-//
-//-----------------------------------------------------------------------------------------
-void CViewer3dDoc::ShiftInputEvent (const Standard_Integer theX,
-                                    const Standard_Integer theY,
-                                    const Handle(V3d_View)& theView)
-{
-  OCC_3dBaseDoc::ShiftInputEvent (theX, theY, theView);
-  if(myOffsetDlg && myOffsetDlg->IsWindowVisible())
-    myOffsetDlg->UpdateValues();
-}
-
-void CViewer3dDoc::OnObjectColoredMesh()
-{
-  for(myAISContext->InitSelected();myAISContext->MoreSelected();myAISContext->NextSelected())
-    if (myAISContext->SelectedInteractive()->IsKind(STANDARD_TYPE(User_Cylinder)))
-    {
-      myAISContext->ClearPrs(myAISContext->SelectedInteractive(),6,Standard_False);
-      myAISContext->RecomputePrsOnly(myAISContext->SelectedInteractive(), Standard_False);
-      myAISContext->SetDisplayMode(myAISContext->SelectedInteractive(), 6, Standard_False);
-    }
-
-  myAISContext->UpdateCurrentViewer();
-}
-
-void CViewer3dDoc::OnUpdateObjectColoredMesh(CCmdUI* pCmdUI)
-{
-  bool CylinderIsCurrentAndDisplayed = false;
-  for (myAISContext->InitSelected();myAISContext->MoreSelected ();myAISContext->NextSelected ())
-    if(myAISContext->SelectedInteractive()->IsKind(STANDARD_TYPE(User_Cylinder)))
-      CylinderIsCurrentAndDisplayed=true;
-  pCmdUI->Enable (CylinderIsCurrentAndDisplayed);
-}
-
-void CViewer3dDoc::OnUpdateObjectWireframe(CCmdUI* pCmdUI)
-{
-  bool OneOrMoreInShadingOrColoredMesh = false;
-  for (myAISContext->InitSelected();myAISContext->MoreSelected ();myAISContext->NextSelected ())
-    if (myAISContext->IsDisplayed(myAISContext->SelectedInteractive(), 1) || myAISContext->IsDisplayed(myAISContext->SelectedInteractive(), 6))
-      OneOrMoreInShadingOrColoredMesh=true;
-  pCmdUI->Enable (OneOrMoreInShadingOrColoredMesh);
-}
-
-
-void CViewer3dDoc::OnUpdateObjectShading(CCmdUI* pCmdUI)
-{
-  bool OneOrMoreInWireframeOrColoredMesh = false;
-  for (myAISContext->InitSelected();myAISContext->MoreSelected ();myAISContext->NextSelected ())
-    if (myAISContext->IsDisplayed(myAISContext->SelectedInteractive(),0) || myAISContext->IsDisplayed(myAISContext->SelectedInteractive(),6))
-      OneOrMoreInWireframeOrColoredMesh=true;
-  pCmdUI->Enable (OneOrMoreInWireframeOrColoredMesh);
-}
-
-void CViewer3dDoc::OnOptionsTrihedronDynamicTrihedron()
-{
-  if (myAISContext -> IsDisplayed(myTrihedron))
-  {
-    myAISContext->Remove(myTrihedron, Standard_True);
-  }
-  else
-  {
-    Handle(Geom_Axis2Placement) myTrihedronAxis=new Geom_Axis2Placement(gp::XOY());
-    myTrihedron=new AIS_Trihedron(myTrihedronAxis);
-    myAISContext->SetTrihedronSize(200, Standard_False);
-    myAISContext->Display(myTrihedron, Standard_True);
-  }
-}
-
-void CViewer3dDoc::OnUpdateOptionsTrihedronDynamicTrihedron(CCmdUI* pCmdUI)
-{
-  if (myAISContext->IsDisplayed(myTrihedron))
-    pCmdUI->SetCheck(1);
-  else
-    pCmdUI->SetCheck(0);
-}
-
-void CViewer3dDoc::SetMyStaticTrihedronAxisIsDisplayed(BOOL IsDisplayed)
-{
-  myStaticTrihedronAxisIsDisplayed = IsDisplayed;
-}
-
-void CViewer3dDoc::OnUpdateOptionsTrihedronStaticTrihedron(CCmdUI* pCmdUI) 
-{
-  if (myStaticTrihedronAxisIsDisplayed)
-    pCmdUI->SetCheck(1);
-  else
-    pCmdUI->SetCheck(0);
-
-}
-
-void  CViewer3dDoc::Popup (const Standard_Integer  x,
-                           const Standard_Integer  y ,
-                           const Handle(V3d_View)& aView)
-{
-  myPopupMenuNumber=0;
-  // Specified check for context menu number to call
-  myAISContext->InitSelected();
-  if (myAISContext->MoreSelected())
-  {
-    if (myAISContext->SelectedInteractive()->IsKind(STANDARD_TYPE(User_Cylinder)))
-    {
-      myPopupMenuNumber = 2;
-      //return;
-    }
-  }
-  OCC_3dBaseDoc::Popup(x,y, aView);
-}
-
-//Set faces selection mode
-void CViewer3dDoc::OnFaces() 
-{
-  myAISContext->Deactivate();
-  myAISContext->Activate (AIS_Shape::SelectionMode (TopAbs_FACE));
-
-  myCResultDialog.SetTitle("Standard mode: TopAbs_FACE");
-  myCResultDialog.SetText("  myAISContext->Deactivate();\n"
-                          "  myAISContext->Activate (AIS_Shape::SelectionMode (TopAbs_FACE));\n\n");
-  SetTitle (L"Standard mode: TopAbs_FACE");
-}
-
-//Set edges selection mode
-void CViewer3dDoc::OnEdges() 
-{
-  myAISContext->Deactivate();
-  myAISContext->Activate (AIS_Shape::SelectionMode (TopAbs_EDGE));
-
-  myCResultDialog.SetTitle("Standard mode: TopAbs_EDGE");
-  myCResultDialog.SetText("  myAISContext->Deactivate();\n"
-                          "  myAISContext->Activate (AIS_Shape::SelectionMode (TopAbs_EDGE));\n\n");
-  SetTitle (L"Standard mode: TopAbs_EDGE");
-}
-
-// Set vertices selection mode
-void CViewer3dDoc::OnVertices() 
-{
-  myAISContext->Deactivate();
-  myAISContext->Activate (AIS_Shape::SelectionMode (TopAbs_VERTEX));
-
-  myCResultDialog.SetTitle("Standard mode: TopAbs_VERTEX");
-  myCResultDialog.SetText("  myAISContext->Deactivate();\n"
-                          "  myAISContext->Activate (AIS_Shape::SelectionMode (TopAbs_VERTEX));\n\n");
-  SetTitle (L"Standard mode: TopAbs_VERTEX");
-}
-
-//Neutral selection mode
-void CViewer3dDoc::OnNeutral() 
-{
-  myAISContext->Deactivate();
-  myAISContext->Activate (0);
-
-  myCResultDialog.SetTitle("Standard mode: Neutral");
-  myCResultDialog.SetText("  myAISContext->Deactivate();\n"
-                          "  myAISContext->Activate (0);\n\n");
-  SetTitle (L"Standard mode: Neutral");
-}
-
-// Change the color of faces on a user cylinder
-void CViewer3dDoc::OnUsercylinderChangefacecolor() 
-{
-  myAISContext->Activate (myAISContext->SelectedInteractive(), AIS_Shape::SelectionMode (TopAbs_FACE));
-  myState = FACE_COLOR;
-  // see the following of treatment in inputevent
-}
-
-// Make 3d fillets on solids
-// It is necessary to activate the edges selection mode and select edges on an object
-// before running this function
-void CViewer3dDoc::OnFillet3d() 
-{
-  myAISContext->InitSelected();
-  if (myAISContext->MoreSelected()) 
-  {
-    Handle(AIS_Shape) aSelInteractive (Handle(AIS_Shape)::DownCast (myAISContext->SelectedInteractive()));
-    if (aSelInteractive.IsNull())
-    {
-      AfxMessageBox (L"It is necessary to activate the edges selection mode\n"
-                     L"and select edges on an object before \nrunning this function");
-      return;
-    }
-
-    BRepFilletAPI_MakeFillet aFillet (aSelInteractive->Shape());
-
-    for (myAISContext->InitSelected(); myAISContext->MoreSelected(); myAISContext->NextSelected())
-    {
-      const TopoDS_Shape& aSelShape = myAISContext->SelectedShape();
-      if (aSelShape.ShapeType() != TopAbs_EDGE)
-      {
-        AfxMessageBox (L"It is necessary to activate the edges selection mode\n"
-                       L"and select edges on an object before \nrunning this function");
-        return;
-      }
-    }
-
-    BoxRadius aDialog (NULL,10.);
-    if (aDialog.DoModal() == IDOK)
-    {
-      for (myAISContext->InitSelected(); myAISContext->MoreSelected(); myAISContext->NextSelected())
-      {
-        // Selected shape has its own location, and sub-shapes in the solid shape for fillet building
-        // don't have own locations. Fillet builder needs to know that input edge is just the same one as
-        // some sub-shape in our target solid shape, so no location is to be in input edge for fillet builder.
-        TopoDS_Shape aSelShape = myAISContext->SelectedShape().Located (TopLoc_Location());
-        aFillet.Add (aDialog.m_radius, TopoDS::Edge (aSelShape) );
-      }
-    }
-    else
-    {
-      return;
-    }
-
-    TopoDS_Shape aNewShape;
-    try
-    {
-      aNewShape = aFillet.Shape();
-    }
-    catch (Standard_Failure)
-    {
-      AfxMessageBox (L"Error During Fillet computation");
-      return;
-    }
-
-    aSelInteractive ->Set (aNewShape);
-    myAISContext->Redisplay (aSelInteractive, Standard_True);
-  }
-
-  myCResultDialog.SetTitle("Make a fillet");
-  myCResultDialog.SetText("  Handle(AIS_Shape) S = Handle(AIS_Shape)::DownCast(myAISContext->Interactive()); \n"
-                                    "  \n"
-                                    "  BRepAPI_MakeFillet aFillet(S->Shape()); \n"
-                                    "  \n"
-                                    "  TopoDS_Edge anEdge=TopoDS::Edge(myAISContext->SelectedShape()); \n"
-                                    "  \n"
-                                    "  aFillet.Add(dlg.m_radius,anEdge); \n"
-                                    "  \n"
-                                    "  TopoDS_Shape aNewShape = aFillet.Shape(); \n"
-                                    "  \n"
-                                    "  S->Set(aNewShape); \n"
-                                    "  \n"
-                                    "  myAISContext->Redisplay(S); \n"
-                                    "  \n");
-  SetTitle (L"Make a fillet");
-}
-
-// Create and display a circle with standard tools
-void CViewer3dDoc::OnCircle() 
-{
-  gp_Ax2 anAx2 (gp_Pnt (0., 0., 0.), gp_Dir(0., 0., -1.));
-  Handle(Geom_Circle) aGeomCircle = new Geom_Circle (anAx2, 300);
-
-  // the lines above substitute
-  // GC_MakeCircle C(gp_Pnt(-100.,-300.,0.),gp_Pnt(-50.,-200.,0.),gp_Pnt(-10.,-250.,0.));
-  // Handle(AIS_Circle) anAISCirc = new AIS_Circle(C.Value());
-
-  Handle(AIS_Circle) anAISCirc = new AIS_Circle(aGeomCircle);
-  myAISContext->Display (anAISCirc, Standard_True);
-
-  myCResultDialog.SetTitle("Create a circle");
-  myCResultDialog.SetText("  GC_MakeCircle C(gp_Pnt(-100.,-300.,0.),gp_Pnt(-50.,-200.,0.),gp_Pnt(-10.,-250.,0.)); \n"
-                                    "  \n"
-                                    "  Handle(AIS_Circle) anAISCirc = new AIS_Circle(C.Value()); \n"
-                                    "  \n"
-                                    "  myAISContext->Display(anAISCirc); \n"
-                                    "  \n");
-  SetTitle (L"Create a circle");
-}
-
-void CViewer3dDoc::OnLine() 
-{
-  // TODO: Add your command handler code here
-  gp_Lin aGpLin (gp_Pnt (0., 0., 0.), gp_Dir(1., 0., 0.));
-  Handle(Geom_Line) aGeomLin = new Geom_Line (aGpLin);
-  Handle(AIS_Line) anAISLine = new AIS_Line (aGeomLin);
-  myAISContext->Display (anAISLine, Standard_True);
-
-  myCResultDialog.SetTitle("Create a line");
-  myCResultDialog.SetText("  gp_Lin L(gp_Pnt(0.,0.,0.),gp_Dir(1.,0.,0.)); \n"
-                                    "  \n"
-                                    "  Handle(Geom_Line) aLine = new Geom_Line(L); \n"
-                                    "  \n"
-                                    "  Handle(AIS_Line) anAISLine = new AIS_Line(aLine); \n"
-                                    "  \n"
-                                    "  myAISContext->Display(anAISLine); \n"
-                                    "  \n");
-  SetTitle (L"Create a line");
-}
-
-void CViewer3dDoc::OnNbisos() 
-{
-  int aNumU = myAISContext->DefaultDrawer()->UIsoAspect()->Number();
-  int aNumV = myAISContext->DefaultDrawer()->VIsoAspect()->Number();
-
-  DlgIsos aDlg (NULL, aNumU, aNumV);
-
-  if (aDlg.DoModal() == IDOK)
-  {
-    myAISContext->DefaultDrawer()->UIsoAspect()->SetNumber (aDlg.m_isou);
-    myAISContext->DefaultDrawer()->VIsoAspect()->SetNumber (aDlg.m_isov);
-
-    myCResultDialog.SetTitle("Iso Aspect");
-    myCResultDialog.SetText("  myAISContext->DefaultDrawer()->UIsoAspect()->SetNumber(dlg.m_isou); \n"
-                                      "  \n"
-                                      "  myAISContext->DefaultDrawer()->VIsoAspect()->SetNumber(dlg.m_isov); \n"
-                                      "  \n");
-    SetTitle (L"Iso Aspect");
-  }
-}
-
-BOOL CViewer3dDoc::OnNewDocument()
-{
-  if (!CDocument::OnNewDocument())
-    return FALSE;
-
-  // TODO: add reinitialization code here
-  // (SDI documents will reuse this document)
-  SetTitle(myPresentation->GetName());
-
-  myAISContext->EraseAll (Standard_False);
-  myAISContext->SetDisplayMode(AIS_Shaded, Standard_True);
-
-  POSITION pos = GetFirstViewPosition();
-  while (pos != NULL)
-  {
-    CViewer3dView* pView = (CViewer3dView*) GetNextView(pos);
-    pView->Reset();
-  }  
-
-  return TRUE;
-}
-
-void CViewer3dDoc::OnFileNew()
-{
-  OnNewDocument();
-}
-
-void CViewer3dDoc::InitViewButtons()
-{
-  POSITION pos = GetFirstViewPosition();
-  while (pos != NULL)
-  {
-    CViewer3dView* pView = (CViewer3dView*) GetNextView(pos);
-    pView->InitButtons();
-  }
-}
-
-void CViewer3dDoc::OnTextureOn()
-{
-       isTextureSampleStarted = TRUE;
-       Start();
-}
-
-void CViewer3dDoc::DoSample()
-{
-  InitViewButtons();
-
-  HCURSOR hOldCursor = ::GetCursor();
-  HCURSOR hNewCursor = AfxGetApp()->LoadStandardCursor(IDC_APPSTARTING);
-
-  SetCursor(hNewCursor);
-  {
-    try
-    {
-      myPresentation->DoSample();
-    }
-    catch (Standard_Failure const& anException)
-    {
-      Standard_SStream aSStream;
-      aSStream << "An exception was caught: " << anException << std::ends;
-      CString aMsg = aSStream.str().c_str();
-      AfxMessageBox (aMsg);
-    }
-  }
-  SetCursor(hOldCursor);
-}
-
-void CViewer3dDoc::OnBUTTONStart() 
-{
-  myAISContext->EraseAll (Standard_True);
-  myPresentation->FirstSample();
-  DoSample();
-}
-
-void CViewer3dDoc::OnBUTTONEnd()
-{
-  myAISContext->EraseAll (Standard_True);
-  myPresentation->LastSample();
-  DoSample();
-}
-
-void CViewer3dDoc::OnBUTTONRepeat() 
-{
-  DoSample();
-}
-
-void CViewer3dDoc::OnBUTTONNext() 
-{
-  if (!myPresentation->AtLastSample())
-  {
-    myPresentation->NextSample();
-    DoSample();
-  }
-}
-
-void CViewer3dDoc::OnBUTTONPrev() 
-{
-  if (!myPresentation->AtFirstSample())
-  {
-    myPresentation->PrevSample();
-    DoSample();
-  }
-}
-
-void CViewer3dDoc::OnUpdateBUTTONNext(CCmdUI* pCmdUI) 
-{
-       if ( isTextureSampleStarted )
-               pCmdUI->Enable (!myPresentation->AtLastSample());
-       else
-               pCmdUI->Enable (FALSE);
-}
-
-void CViewer3dDoc::OnUpdateBUTTONPrev(CCmdUI* pCmdUI) 
-{
-       if ( isTextureSampleStarted )
-               pCmdUI->Enable (!myPresentation->AtFirstSample());
-       else
-               pCmdUI->Enable (FALSE);
-}
-
-void CViewer3dDoc::OnUpdateBUTTONStart(CCmdUI* pCmdUI) 
-{
-       pCmdUI->Enable (isTextureSampleStarted);
-}
-
-void CViewer3dDoc::OnUpdateBUTTONRepeat(CCmdUI* pCmdUI) 
-{
-       pCmdUI->Enable (isTextureSampleStarted);
-}
-
-void CViewer3dDoc::OnUpdateBUTTONEnd(CCmdUI* pCmdUI) 
-{
-       pCmdUI->Enable (isTextureSampleStarted);
-}
-
-void CViewer3dDoc::OnDumpView()
-{
-  for (POSITION aPos = GetFirstViewPosition(); aPos != NULL;)
-  {
-    CViewer3dView* pView = (CViewer3dView* )GetNextView (aPos);
-    pView->UpdateWindow();
-  }
-
-  Handle(V3d_View) aView = myViewer->ActiveViews().First();
-  ExportView (aView);
-}
-
-void CViewer3dDoc::Start()
-{
-  myPresentation->Init();
-  OnBUTTONStart();
-}
-
-void CViewer3dDoc::Fit()
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       CViewer3dView *pView = (CViewer3dView *) pChild->GetActiveView();
-       pView->FitAll();
-}
diff --git a/samples/mfc/standard/04_Viewer3d/src/Viewer3dDoc.h b/samples/mfc/standard/04_Viewer3d/src/Viewer3dDoc.h
deleted file mode 100755 (executable)
index 69a4a70..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-// Viewer3dDoc.h : interface of the CViewer3dDoc class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_VIEWERDOC_H__4EF39FBA_4EBB_11D1_8D67_0800369C8A03__INCLUDED_)
-#define AFX_VIEWERDOC_H__4EF39FBA_4EBB_11D1_8D67_0800369C8A03__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include "OCCDemo_Presentation.h"
-#include "OffsetDlg.h"
-#include "OCC_3dDoc.h"
-#include "ResultDialog.h"
-#include "User_Cylinder.hxx"
-
-
-#include <AIS_Trihedron.hxx>
-#include <AIS_InteractiveContext.hxx>
-#include <V3d_Viewer.hxx>
-
-class COffsetDlg;
-class OCCDemo_Presentation;
-
-class CViewer3dDoc : public OCC_3dDoc
-{
-  DECLARE_DYNCREATE(CViewer3dDoc)
-
-protected: // create from serialization only
-  CViewer3dDoc();
-  void InitViewButtons();
-  void DoSample();
-
-public:
-  void SetMyStaticTrihedronAxisIsDisplayed(BOOL IsDisplayed);
-  Handle(AIS_Shape) GetBox();
-  Handle(AIS_Shape) GetSphere();
-  Handle(User_Cylinder) GetCylinder();
-  Handle(AIS_Shape) GetOverlappedBox();
-  Handle(AIS_Shape) GetOverlappedSphere();
-  Handle(AIS_Shape) GetOverlappedCylinder();
-  void Start();
-  Standard_CString GetDataDir() {return myDataDir;}
-  static void Fit();
-
-  virtual ~CViewer3dDoc();
-  void UpdateResultMessageDlg (CString theTitle, const TCollection_AsciiString& theMessage);
-  void UpdateResultMessageDlg (CString theTitle, CString theMessage);
-  virtual BOOL OnNewDocument();
-  virtual void Popup (const Standard_Integer x,
-                      const Standard_Integer y,
-                      const Handle(V3d_View)& aView);
-
-  virtual void DragEvent (const Standard_Integer x,
-                          const Standard_Integer y,
-                          const Standard_Integer TheState,
-                          const Handle(V3d_View)& aView);
-
-  virtual void InputEvent (const Standard_Integer x,
-                           const Standard_Integer y,
-                           const Handle(V3d_View)& aView);
-
-  virtual void ShiftDragEvent (const Standard_Integer x,
-                               const Standard_Integer y,
-                               const Standard_Integer TheState,
-                               const Handle(V3d_View)& aView);
-
-  virtual void ShiftInputEvent (const Standard_Integer x,
-                                const Standard_Integer y,
-                                const Handle(V3d_View)& aView);
-
-#ifdef _DEBUG
-  virtual void AssertValid() const;
-  virtual void Dump(CDumpContext& dc) const;
-#endif
-
-  // Generated message map functions
-protected:
-  BOOL myStaticTrihedronAxisIsDisplayed;       
-  //{{AFX_MSG(CViewer3dDoc)
-  afx_msg void OnBox();
-  afx_msg void OnCylinder();
-  afx_msg void OnSphere();
-  afx_msg void OnRemoveAll();
-  afx_msg void OnNbisos();
-  afx_msg void OnFaces();
-  afx_msg void OnEdges();
-  afx_msg void OnVertices();
-  afx_msg void OnNeutral();
-  afx_msg void OnUsercylinderChangefacecolor();
-  afx_msg void OnFillet3d();
-  afx_msg void OnCircle();
-  afx_msg void OnLine();
-  afx_msg void OnOverlappedBox();
-  afx_msg void OnOverlappedCylinder();
-  afx_msg void OnOverlappedSphere();
-  afx_msg void OnPolygonOffsets();
-  afx_msg void OnUpdatePolygonOffsets(CCmdUI* pCmdUI);
-  afx_msg void OnUpdateCylinder(CCmdUI* pCmdUI);
-  afx_msg void OnUpdateSphere(CCmdUI* pCmdUI);
-  afx_msg void OnUpdateBox(CCmdUI* pCmdUI);
-  afx_msg void OnUpdateOverlappedCylinder(CCmdUI* pCmdUI);
-  afx_msg void OnUpdateOverlappedSphere(CCmdUI* pCmdUI);
-  afx_msg void OnUpdateOverlappedBox(CCmdUI* pCmdUI);
-  afx_msg void OnObjectRemove();
-  afx_msg void OnObjectErase();
-  afx_msg void OnObjectDisplayall();
-  afx_msg void OnObjectColoredMesh();
-  afx_msg void OnUpdateObjectColoredMesh(CCmdUI* pCmdUI);
-  afx_msg void OnUpdateObjectShading(CCmdUI* pCmdUI);
-  afx_msg void OnUpdateObjectWireframe(CCmdUI* pCmdUI);
-  afx_msg void OnOptionsTrihedronDynamicTrihedron();
-  afx_msg void OnUpdateOptionsTrihedronDynamicTrihedron(CCmdUI* pCmdUI);
-  afx_msg void OnUpdateOptionsTrihedronStaticTrihedron(CCmdUI* pCmdUI);
-  afx_msg void OnTextureOn();
-  afx_msg void OnBUTTONNext();
-  afx_msg void OnBUTTONStart();
-  afx_msg void OnBUTTONRepeat();
-  afx_msg void OnBUTTONPrev();
-  afx_msg void OnBUTTONEnd();
-  afx_msg void OnUpdateBUTTONNext(CCmdUI* pCmdUI);
-  afx_msg void OnUpdateBUTTONPrev(CCmdUI* pCmdUI);
-  afx_msg void OnUpdateBUTTONStart(CCmdUI* pCmdUI);
-  afx_msg void OnUpdateBUTTONRepeat(CCmdUI* pCmdUI);
-  afx_msg void OnUpdateBUTTONEnd(CCmdUI* pCmdUI);
-  afx_msg void OnFileNew();
-  afx_msg void OnBUTTONShowResult();
-  afx_msg void OnDumpView();
-  //}}AFX_MSG
-  DECLARE_MESSAGE_MAP()
-
-  //Attributes
-protected:
-  int myState;
-
-private:
-  COffsetDlg* myOffsetDlg;
-
-  Handle(User_Cylinder) myCylinder;
-  Handle(AIS_Shape) mySphere;
-  Handle(AIS_Shape) myBox;
-  Handle(AIS_Shape) myOverlappedCylinder;
-  Handle(AIS_Shape) myOverlappedSphere;
-  Handle(AIS_Shape) myOverlappedBox;
-  Handle(AIS_Trihedron) myTrihedron;
-
-  OCCDemo_Presentation *myPresentation;
-  char myDataDir[5];         // for "Data\0"
-  char myLastPath[MAX_PATH]; // directory of lastly saved file in DumpView()
-  bool isTextureSampleStarted;
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_VIEWERDOC_H__4EF39FBA_4EBB_11D1_8D67_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/04_Viewer3d/src/Viewer3dView.cpp b/samples/mfc/standard/04_Viewer3d/src/Viewer3dView.cpp
deleted file mode 100755 (executable)
index 62f5df3..0000000
+++ /dev/null
@@ -1,1180 +0,0 @@
-// Viewer3dView.cpp : implementation of the CViewer3dView class
-//
-
-#include "stdafx.h"
-
-#include "Viewer3dView.h"
-
-#include "OCC_MainFrame.h"
-#include "Viewer3dApp.h"
-#include "Viewer3dDoc.h"
-#include "ScaleDlg.h"
-#include "ShadingModelDlg.h"
-#include "ModelClippingDlg.h"
-#include "TrihedronDlg.h"
-
-#include <AIS_RubberBand.hxx>
-#include <V3d_AmbientLight.hxx>
-#include <V3d_DirectionalLight.hxx>
-#include <V3d_PositionalLight.hxx>
-#include <V3d_PositionLight.hxx>
-#include <V3d_SpotLight.hxx>
-#include <TopoDS_Solid.hxx>
-#include <Precision.hxx>
-#include <Graphic3d_GraphicDriver.hxx>
-
-#define ValZWMin 1
-#define X_Key 0x58
-#define Y_Key 0x59
-#define Z_Key 0x5A
-
-#define ModelClipping
-
-#ifdef _DEBUG
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-//gp_Pnt ConvertClickToPoint(Standard_Real x, Standard_Real y, Handle(V3d_View) aView);
-
-       gp_Pnt p1,p2,p3;
-       Handle(AIS_Shape) spotConeShape=new AIS_Shape(TopoDS_Solid());
-       Handle(AIS_Shape) directionalEdgeShape=new AIS_Shape(TopoDS_Edge());
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer3dView
-
-IMPLEMENT_DYNCREATE(CViewer3dView, CView)
-
-BEGIN_MESSAGE_MAP(CViewer3dView, CView)
-       //{{AFX_MSG_MAP(CViewer3dView)
-       ON_COMMAND(ID_BUTTONAxo, OnBUTTONAxo)
-       ON_COMMAND(ID_BUTTONBack, OnBUTTONBack)
-       ON_COMMAND(ID_BUTTONBottom, OnBUTTONBottom)
-       ON_COMMAND(ID_BUTTONFront, OnBUTTONFront)
-       ON_COMMAND(ID_BUTTONHlrOff, OnBUTTONHlrOff)
-       ON_COMMAND(ID_BUTTONHlrOn, OnBUTTONHlrOn)
-       ON_COMMAND(ID_BUTTONLeft, OnBUTTONLeft)
-       ON_COMMAND(ID_BUTTONPan, OnBUTTONPan)
-       ON_COMMAND(ID_BUTTONPanGlo, OnBUTTONPanGlo)
-       ON_COMMAND(ID_BUTTONReset, OnBUTTONReset)
-       ON_COMMAND(ID_BUTTONRight, OnBUTTONRight)
-       ON_COMMAND(ID_BUTTONRot, OnBUTTONRot)
-       ON_COMMAND(ID_BUTTONTop, OnBUTTONTop)
-       ON_COMMAND(ID_BUTTONZoomAll, OnBUTTONZoomAll)
-       ON_WM_SIZE()
-       ON_COMMAND(ID_BUTTONZoomProg, OnBUTTONZoomProg)
-       ON_COMMAND(ID_BUTTONZoomWin, OnBUTTONZoomWin)
-       ON_WM_LBUTTONDOWN()
-  ON_WM_KEYDOWN()
-       ON_WM_LBUTTONUP()
-       ON_WM_MBUTTONDOWN()
-       ON_WM_MBUTTONUP()
-       ON_WM_MOUSEMOVE()
-       ON_WM_RBUTTONDOWN()
-       ON_WM_RBUTTONUP()
-       ON_UPDATE_COMMAND_UI(ID_BUTTONHlrOff, OnUpdateBUTTONHlrOff)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONHlrOn, OnUpdateBUTTONHlrOn)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONPanGlo, OnUpdateBUTTONPanGlo)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONPan, OnUpdateBUTTONPan)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONZoomProg, OnUpdateBUTTONZoomProg)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONZoomWin, OnUpdateBUTTONZoomWin)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONRot, OnUpdateBUTTONRot)
-       ON_COMMAND(ID_Modify_ChangeBackground     , OnModifyChangeBackground)
-       ON_COMMAND(ID_DIRECTIONAL_LIGHT, OnDirectionalLight)
-       ON_COMMAND(ID_SPOT_LIGHT, OnSpotLight)
-       ON_COMMAND(ID_POSITIONAL_LIGHT, OnPositionalLight)
-       ON_COMMAND(ID_AMBIENT_LIGHT, OnAmbientLight)
-       ON_COMMAND(ID_SCALE, OnScale)
-       ON_COMMAND(ID_SHADINGMODEL, OnShadingmodel)
-       ON_COMMAND(ID_ANTIALIASINGONOFF, OnAntialiasingonoff)
-       ON_COMMAND(ID_CLEAR_LIGHTS, OnClearLights)
-       ON_COMMAND(ID_MODELCLIPPING, OnModelclipping)
-       ON_COMMAND(ID_OPTIONS_TRIHEDRON_STATIC_TRIHEDRON, OnOptionsTrihedronStaticTrihedron)
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer3dView construction/destruction
-
-CViewer3dView::CViewer3dView()
-: scaleX (1),
-  scaleY (1),
-  scaleZ (1),
-  myVisMode (VIS_SHADE),
-  myCurrentMode (CurAction3d_Nothing),
-  myXmin (0),
-  myYmin (0),
-  myXmax (0),
-  myYmax (0),
-  myCurZoom (0.0),
-  NbActiveLights (2), // There are 2 default active lights
-  myHlrModeIsOn (Standard_False),
-  myRect (new AIS_RubberBand (Quantity_NOC_WHITE, Aspect_TOL_SOLID, 1.0)),
-  myAxisKey (0),
-  myScaleDirection (0)
-{
-  // TODO: add construction code here
-  myGraphicDriver = ((CViewer3dApp*)AfxGetApp())->GetGraphicDriver();
-}
-
-CViewer3dView::~CViewer3dView()
-{
-  myView->Remove();
-}
-
-BOOL CViewer3dView::PreCreateWindow(CREATESTRUCT& cs)
-{
-  // TODO: Modify the Window class or styles here by modifying
-  //  the CREATESTRUCT cs
-  cs.lpszClass = ::AfxRegisterWndClass(CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS | CS_OWNDC, ::LoadCursor(NULL, IDC_ARROW), NULL, NULL);
-  return CView::PreCreateWindow(cs);
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer3dView drawing
-void CViewer3dView::OnInitialUpdate() 
-{
-  CView::OnInitialUpdate();
-
-  myView = GetDocument()->GetViewer()->CreateView();
-
-  // store for restore state after rotation (witch is in Degenerated mode)
-  myHlrModeIsOn = Standard_False;
-  myView->SetComputedMode (myHlrModeIsOn);
-
-  Handle(WNT_Window) aWNTWindow = new WNT_Window (GetSafeHwnd());
-  myView->SetWindow(aWNTWindow);
-  if (!aWNTWindow->IsMapped()) aWNTWindow->Map();
-
-  //   Standard_Integer w=100 , h=100 ;   /* Debug Matrox                         */
-  //   aWNTWindow->Size (w,h) ;           /* Keeps me unsatisfied (rlb).....      */
-                                         /* Resize is not supposed to be done on */
-                                         /* Matrox                               */
-                                         /* I suspect another problem elsewhere  */
-  //   ::PostMessage ( GetSafeHwnd () , WM_SIZE , SIZE_RESTORED , w + h*65536 ) ;
-
-  // store the mode ( nothing , dynamic zooming, dynamic ... )
-  myCurrentMode = CurAction3d_Nothing;
-  myVisMode = VIS_SHADE;
-  RedrawVisMode();
-}
-
-void CViewer3dView::OnDraw(CDC* /*pDC*/)
-{
-       CViewer3dDoc* pDoc = GetDocument();
-       ASSERT_VALID(pDoc);
-       myView->Redraw();
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer3dView diagnostics
-
-#ifdef _DEBUG
-void CViewer3dView::AssertValid() const
-{
-       CView::AssertValid();
-}
-
-void CViewer3dView::Dump(CDumpContext& dc) const
-{
-       CView::Dump(dc);
-}
-
-CViewer3dDoc* CViewer3dView::GetDocument() // non-debug version is inline
-{
-       ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CViewer3dDoc)));
-       return (CViewer3dDoc*)m_pDocument;
-}
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// CViewer3dView message handlers
-
-gp_Pnt ConvertClickToPoint(Standard_Real x, Standard_Real y, Handle(V3d_View) aView)
-{
-       Standard_Real XEye,YEye,ZEye,XAt,YAt,ZAt;
-       aView->Eye(XEye,YEye,ZEye);
-       aView->At(XAt,YAt,ZAt);
-       gp_Pnt EyePoint(XEye,YEye,ZEye);
-       gp_Pnt AtPoint(XAt,YAt,ZAt);
-
-       gp_Vec EyeVector(EyePoint,AtPoint);
-       gp_Dir EyeDir(EyeVector);
-
-       gp_Pln PlaneOfTheView = gp_Pln(AtPoint,EyeDir);
-       Standard_Real X,Y,Z;
-       aView->Convert(int(x),int(y),X,Y,Z);
-       gp_Pnt ConvertedPoint(X,Y,Z);
-       gp_Pnt2d ConvertedPointOnPlane = ProjLib::Project(PlaneOfTheView,ConvertedPoint);
-       
-       gp_Pnt ResultPoint = ElSLib::Value(ConvertedPointOnPlane.X(),
-                                                                       ConvertedPointOnPlane.Y(),
-                                                                       PlaneOfTheView);
-       return ResultPoint;
-}
-
-void CViewer3dView::OnSize(UINT nType, int cx, int cy)
-{
-  CView::OnSize (nType, cx, cy);
-  if (!myView.IsNull())
-   myView->MustBeResized();
-}
-
-void CViewer3dView::OnBUTTONBack() 
-{ 
-       myView->SetProj(V3d_Ypos); 
-
-TCollection_AsciiString Message("\
-myView->SetProj(V3d_Ypos);\n\
-  ");
-
-  // Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("SetProj",Message);
-} // See the back View
-void CViewer3dView::OnBUTTONFront() 
-{ 
-       myView->SetProj(V3d_Yneg); 
-
-TCollection_AsciiString Message("\
-myView->SetProj(V3d_Yneg);\n\
-  ");
-
-  // Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("SetProj",Message);
-} // See the front View
-
-void CViewer3dView::OnBUTTONBottom() 
-{ 
-       myView->SetProj(V3d_Zneg); 
-
-TCollection_AsciiString Message("\
-myView->SetProj(V3d_Zneg);\n\
-  ");
-
-  // Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("SetProj",Message);
-} // See the bottom View
-void CViewer3dView::OnBUTTONTop() 
-{ 
-       myView->SetProj(V3d_Zpos); 
-
-TCollection_AsciiString Message("\
-myView->SetProj(V3d_Zpos);\n\
-  ");
-
-  // Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("SetProj",Message);
-} // See the top View  
-
-void CViewer3dView::OnBUTTONLeft() 
-{ 
-       myView->SetProj(V3d_Xneg); 
-
-TCollection_AsciiString Message("\
-myView->SetProj(V3d_Xneg);\n\
-  ");
-
-  // Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("SetProj",Message);
-} // See the left View 
-void CViewer3dView::OnBUTTONRight() 
-{ 
-       myView->SetProj(V3d_Xpos); 
-
-TCollection_AsciiString Message("\
-myView->SetProj(V3d_Xpos);\n\
-  ");
-
-  // Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("SetProj",Message);
-} // See the right View
-
-void CViewer3dView::OnBUTTONAxo() 
-{ 
-       myView->SetProj(V3d_XposYnegZpos); 
-
-TCollection_AsciiString Message("\
-myView->SetProj(V3d_XposYnegZpos);\n\
-  ");
-
-  // Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("SetProj",Message);
-} // See the axonometric View
-
-void CViewer3dView::OnBUTTONHlrOff() 
-{
-  myHlrModeIsOn = Standard_False;
-  myView->SetComputedMode (myHlrModeIsOn);
-  myView->Redraw();
-
-  TCollection_AsciiString aMsg ("myView->SetComputedMode (Standard_False);\n"
-                                "  ");
-
-  // Update The Result Message Dialog
-  GetDocument()->UpdateResultMessageDlg ("SetComputedMode", aMsg);
-}
-
-void CViewer3dView::OnBUTTONHlrOn() 
-{
-  SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
-  myHlrModeIsOn = Standard_True;
-  myView->SetComputedMode (myHlrModeIsOn);
-  myView->Redraw();
-  SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
-
-  TCollection_AsciiString aMsg ("myView->SetComputedMode (Standard_True);\n"
-                                "  ");
-
-  // Update The Result Message Dialog
-  GetDocument()->UpdateResultMessageDlg ("SetComputedMode", aMsg);
-}
-
-void CViewer3dView::OnBUTTONPan() 
-{  myCurrentMode = CurAction3d_DynamicPanning; }
-
-void CViewer3dView::OnBUTTONPanGlo() 
-{
-  // save the current zoom value 
-  myCurZoom = myView->Scale();
-  // Do a Global Zoom 
-  myView->FitAll();
-  // Set the mode 
-  myCurrentMode = CurAction3d_GlobalPanning;
-}
-
-void CViewer3dView::OnBUTTONReset() 
-{   myView->Reset(); }
-
-void CViewer3dView::OnBUTTONRot() 
-{   myCurrentMode = CurAction3d_DynamicRotation; }
-
-
-void CViewer3dView::OnBUTTONZoomAll() 
-{
-  myView->FitAll();
-  myView->ZFitAll();
-}
-
-void CViewer3dView::OnBUTTONZoomProg() 
-{  myCurrentMode = CurAction3d_DynamicZooming; }
-
-void CViewer3dView::OnBUTTONZoomWin() 
-{  myCurrentMode = CurAction3d_WindowZooming; }
-
-void CViewer3dView::OnLButtonDown(UINT nFlags, CPoint point) 
-{
-  //  save the current mouse coordinate in min 
-  myXmin=point.x;  myYmin=point.y;
-  myXmax=point.x;  myYmax=point.y;
-
-  if ( nFlags & MK_CONTROL ) 
-         {
-           // Button MB1 down Control :start zomming 
-        // SetCursor(AfxGetApp()->LoadStandardCursor());
-         }
-       else // if ( Ctrl )
-         {
-        switch (myCurrentMode)
-        {
-         case CurAction3d_Nothing : // start a drag
-           if (nFlags & MK_SHIFT)
-                       GetDocument()->ShiftDragEvent(myXmax,myYmax,-1,myView);
-           else
-                GetDocument()->DragEvent(myXmax,myYmax,-1,myView);
-        break;
-         break;
-         case CurAction3d_DynamicZooming : // noting
-         break;
-         case CurAction3d_WindowZooming : 
-         break;
-         case CurAction3d_DynamicPanning :// noting
-         break;
-         case CurAction3d_GlobalPanning :// noting
-        break;
-        case  CurAction3d_DynamicRotation :
-          if (myHlrModeIsOn)
-          {
-            myView->SetComputedMode (Standard_False);
-          }
-          myView->StartRotation (point.x, point.y);
-          break;
-        case  CurAction3d_BeginPositionalLight :
-                       {
-                       p1 = ConvertClickToPoint(point.x,point.y,myView);
-                       myCurrent_PositionalLight->SetPosition(p1.X(),p1.Y(),p1.Z()) ;
-                       ((OCC_MainFrame*)AfxGetMainWnd())->SetStatusMessage("Ready");
-                       myCurrentMode = CurAction3d_Nothing;
-
-TCollection_AsciiString Message("\
-myCurrent_PositionalLight->SetPosition(Xp, Yp, Zp) ;\n\
-");
-// Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("SetPosition",Message);
-                       }
-        break;
-        case  CurAction3d_BeginSpotLight :
-                       {
-                       p1 = ConvertClickToPoint(point.x,point.y,myView);
-                       myCurrent_SpotLight = new V3d_SpotLight (p1, gp_Dir (gp_XYZ (0.0, 0.0, 1.0) - p1.XYZ()), Quantity_NOC_RED);
-                       myView->SetLightOn(myCurrent_SpotLight);
-                       NbActiveLights++;
-                       p2 = gp_Pnt(p1.X(),p1.Y(),p1.Z()+1.);
-                       Standard_Real coneHeigth=p1.Distance(p2);
-                       BRepPrimAPI_MakeCone MakeCone(gp_Ax2(p1, gp_Dir(gp_Vec(p1, p2))), 
-                               0, (p1.Distance(p2))/tan(1.04), coneHeigth);
-                       spotConeShape->Set(MakeCone.Solid());
-                       GetDocument()->GetAISContext()->Display (spotConeShape, 0, -1, false);
-                       ((OCC_MainFrame*)AfxGetMainWnd())->SetStatusMessage("Pick the target point");
-                       myCurrentMode = CurAction3d_TargetSpotLight;
-
-TCollection_AsciiString Message("\
-myCurrent_SpotLight->SetDirection(Xv, Yv, Zv);\n\
-");
-// Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("SetDirection",Message);
-                       }
-        break;
-        case  CurAction3d_TargetSpotLight :
-                       {
-                       p2 = ConvertClickToPoint(point.x,point.y,myView);
-                       ((OCC_MainFrame*)AfxGetMainWnd())->SetStatusMessage("Pick a third point (to define the angle)");
-                       myCurrentMode = CurAction3d_EndSpotLight;
-
-TCollection_AsciiString Message("\
-myCurrent_SpotLight->SetAngle(Angle) ;\n\
-");
-// Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("SetAngle",Message);
-                       }
-               break;
-        case  CurAction3d_EndSpotLight :
-                       GetDocument()->GetAISContext()->Erase (spotConeShape, Standard_True);
-                       ((OCC_MainFrame*)AfxGetMainWnd())->SetStatusMessage("Ready");
-                       myCurrentMode = CurAction3d_Nothing;
-        break;
-               case CurAction3d_BeginDirectionalLight:
-                       {
-                               p1 = ConvertClickToPoint(point.x,point.y,myView);
-                               p2 = gp_Pnt(p1.X(),p1.Y(),p1.Z()+1.);
-                               BRepBuilderAPI_MakeEdge MakeEdge(p1, p2);
-                               directionalEdgeShape->Set(MakeEdge.Edge());
-                               GetDocument()->GetAISContext()->Display (directionalEdgeShape, 0, -1, Standard_True);
-                       // Create a directional light
-                               myCurrent_DirectionalLight = new V3d_DirectionalLight (gp_Dir (p1.XYZ() - gp_XYZ (0.,0.,1.)));
-                               myView->SetLightOn(myCurrent_DirectionalLight);
-                               NbActiveLights++;
-                               ((OCC_MainFrame*)AfxGetMainWnd())->SetStatusMessage("Pick the target point");
-                               myCurrentMode = CurAction3d_EndDirectionalLight;
-
-
-TCollection_AsciiString Message("\
-myCurrent_DirectionalLight->SetDirection(Xv, Yv, Zv);\n\
-");
-// Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("SetDirection",Message);
-                       }
-               break;
-               case CurAction3d_EndDirectionalLight:
-                       GetDocument()->GetAISContext()->Erase (directionalEdgeShape, Standard_True);
-                       ((OCC_MainFrame*)AfxGetMainWnd())->SetStatusMessage("Ready");
-                       myCurrentMode = CurAction3d_Nothing;
-               break;
-        }
-    }
-}
-
-void CViewer3dView::OnKeyDown(UINT nChar, UINT /*nRepCnt*/, UINT /*nFlags*/) 
-{
-  
-  if( nChar == X_Key || nChar == Y_Key || nChar == Z_Key )
-    myAxisKey = nChar;
-  else if( (nChar == VK_ADD || nChar == VK_SUBTRACT) && myAxisKey )
-  {
-    myScaleDirection = nChar;
-    if( myAxisKey && myScaleDirection )
-    {
-      switch( myAxisKey )
-      {
-      case X_Key:
-        if( myScaleDirection == VK_ADD ) scaleX ++;
-        if( myScaleDirection == VK_SUBTRACT ) scaleX --;
-        break;
-      case Y_Key:
-        if( myScaleDirection == VK_ADD ) scaleY ++;
-        if( myScaleDirection == VK_SUBTRACT ) scaleY --;
-        break;
-      case Z_Key:
-        if( myScaleDirection == VK_ADD ) scaleZ ++;
-        if( myScaleDirection == VK_SUBTRACT ) scaleZ --;
-        break;
-      default:
-        break;
-      }
-      if( scaleX < 1 ) scaleX = 1;
-      if( scaleY < 1 ) scaleY = 1;
-      if( scaleZ < 1 ) scaleZ = 1;
-      
-      myView->SetAxialScale( scaleX, scaleY, scaleZ );
-    }
-  }
-}
-
-void CViewer3dView::OnLButtonUp(UINT nFlags, CPoint point) 
-{
-   if ( nFlags & MK_CONTROL ) 
-         {
-        return;
-         }
-       else // if ( Ctrl )
-         {
-        switch (myCurrentMode)
-        {
-         case CurAction3d_Nothing :
-         if (point.x == myXmin && point.y == myYmin)
-         { // no offset between down and up --> selectEvent
-            myXmax=point.x;  
-            myYmax=point.y;
-            if (nFlags & MK_SHIFT )
-              GetDocument()->ShiftInputEvent(point.x,point.y,myView);
-            else
-              GetDocument()->InputEvent     (point.x,point.y,myView);
-         } else
-         {
-            DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_False);
-            myXmax=point.x;  
-            myYmax=point.y;
-                   if (nFlags & MK_SHIFT)
-                               GetDocument()->ShiftDragEvent(point.x,point.y,1,myView);
-                       else
-                               GetDocument()->DragEvent(point.x,point.y,1,myView);
-         }
-         break;
-         case CurAction3d_DynamicZooming :
-             // SetCursor(AfxGetApp()->LoadStandardCursor());
-              myCurrentMode = CurAction3d_Nothing;
-         break;
-         case CurAction3d_WindowZooming :
-           DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_False);
-           myXmax=point.x;  
-           myYmax=point.y;
-              if ((abs(myXmin-myXmax)>ValZWMin) || (abs(myYmin-myYmax)>ValZWMin))
-                                        // Test if the zoom window is greater than a minimale window.
-                       {
-                         // Do the zoom window between Pmin and Pmax
-                         myView->WindowFitAll(myXmin,myYmin,myXmax,myYmax);  
-                       }  
-              myCurrentMode = CurAction3d_Nothing;
-         break;
-         case CurAction3d_DynamicPanning :
-           myCurrentMode = CurAction3d_Nothing;
-         break;
-         case CurAction3d_GlobalPanning :
-              myView->Place(point.x,point.y,myCurZoom); 
-              myCurrentMode = CurAction3d_Nothing;
-        break;
-        case  CurAction3d_DynamicRotation :
-              myCurrentMode = CurAction3d_Nothing;
-        break;
-        } //switch (myCurrentMode)
-    } //       else // if ( Ctrl )
-}
-
-void CViewer3dView::OnMButtonDown(UINT nFlags, CPoint /*point*/) 
-{
-   if ( nFlags & MK_CONTROL ) 
-         {
-       // Button MB2 down Control : panning init  
-        // SetCursor(AfxGetApp()->LoadStandardCursor());
-         }
-}
-
-void CViewer3dView::OnMButtonUp(UINT nFlags, CPoint /*point*/) 
-{
-   if ( nFlags & MK_CONTROL ) 
-         {
-       // Button MB2 down Control : panning init  
-        // SetCursor(AfxGetApp()->LoadStandardCursor());
-         }
-}
-
-void CViewer3dView::OnRButtonDown(UINT nFlags, CPoint point) 
-{
-  if ( nFlags & MK_CONTROL )
-  {
-    // SetCursor(AfxGetApp()->LoadStandardCursor());
-    if (myHlrModeIsOn)
-    {
-      myView->SetComputedMode (Standard_False);
-    }
-    myView->StartRotation (point.x, point.y);
-  }
-  else // if ( Ctrl )
-  {
-    GetDocument()->Popup (point.x, point.y, myView);
-  }
-}
-
-void CViewer3dView::OnRButtonUp(UINT /*nFlags*/, CPoint /*point*/) 
-{
-  SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
-  if (myHlrModeIsOn)
-  {
-    myView->SetComputedMode (myHlrModeIsOn);
-    myView->Redraw();
-  }
-  SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
-}
-
-void CViewer3dView::OnMouseMove(UINT nFlags, CPoint point) 
-{
-    //   ============================  LEFT BUTTON =======================
-  if ( nFlags & MK_LBUTTON)
-    {
-     if ( nFlags & MK_CONTROL ) 
-         {
-           // move with MB1 and Control : on the dynamic zooming  
-           // Do the zoom in function of mouse's coordinates  
-           myView->Zoom(myXmax,myYmax,point.x,point.y); 
-           // save the current mouse coordinate in min 
-               myXmax = point.x; 
-        myYmax = point.y;      
-         }
-         else // if ( Ctrl )
-         {
-        switch (myCurrentMode)
-        {
-         case CurAction3d_Nothing :
-
-           myXmax = point.x;      myYmax = point.y;
-           if (nFlags & MK_SHIFT)              
-                    GetDocument()->ShiftDragEvent(myXmax,myYmax,0,myView);
-           else
-             GetDocument()->DragEvent(myXmax,myYmax,0,myView);
-           DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_True);
-           break;
-         case CurAction3d_DynamicZooming :
-              myView->Zoom(myXmax,myYmax,point.x,point.y); 
-              // save the current mouse coordinate in min \n";
-              myXmax=point.x;  myYmax=point.y;
-         break;
-         case CurAction3d_WindowZooming :
-                  myXmax = point.x; myYmax = point.y;  
-                  DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_True, Aspect_TOL_DASH);
-
-         break;
-         case CurAction3d_DynamicPanning :
-                  myView->Pan(point.x-myXmax,myYmax-point.y); // Realize the panning
-                  myXmax = point.x; myYmax = point.y;  
-         break;
-         case CurAction3d_GlobalPanning : // nothing           
-        break;
-        case  CurAction3d_DynamicRotation :
-          myView->Rotation(point.x,point.y);
-             myView->Redraw();
-        break;
-        }//  switch (myCurrentMode)
-      }// if ( nFlags & MK_CONTROL )  else 
-    } else //   if ( nFlags & MK_LBUTTON) 
-    //   ============================  MIDDLE BUTTON =======================
-    if ( nFlags & MK_MBUTTON)
-    {
-     if ( nFlags & MK_CONTROL ) 
-         {
-               myView->Pan(point.x-myXmax,myYmax-point.y); // Realize the panning
-               myXmax = point.x; myYmax = point.y;     
-
-         }
-    } else //  if ( nFlags & MK_MBUTTON)
-    //   ============================  RIGHT BUTTON =======================
-    if ( nFlags & MK_RBUTTON)
-    {
-     if ( nFlags & MK_CONTROL ) 
-         {
-        myView->Rotation(point.x,point.y);
-         }
-    }else //if ( nFlags & MK_RBUTTON)
-    //   ============================  NO BUTTON =======================
-    {  // No buttons 
-               myXmax = point.x; myYmax = point.y;     
-               if (myCurrentMode ==  CurAction3d_EndDirectionalLight) 
-               {
-                       p2 = ConvertClickToPoint(point.x,point.y,myView);
-                       //Update the light dynamically
-                       if( p1.Distance(p2)>Precision::Confusion())
-                       {
-                               BRepBuilderAPI_MakeEdge MakeEdge(p1, p2);
-                               directionalEdgeShape->Set(MakeEdge.Edge());
-                               GetDocument()->GetAISContext()->Redisplay(directionalEdgeShape,0,Standard_True);
-                               myCurrent_DirectionalLight->SetDirection(p2.X()-p1.X(),p2.Y()-p1.Y(),p2.Z()-p1.Z());
-                               myView->UpdateLights();
-                               myView->Redraw();
-                       }
-               }
-               else if (myCurrentMode ==  CurAction3d_BeginPositionalLight) 
-               {
-                       p2 = ConvertClickToPoint(point.x,point.y,myView);
-                       //Update the light dynamically
-                       myCurrent_PositionalLight->SetPosition(p2.X(),p2.Y(),p2.Z());
-                       myView->UpdateLights();
-                       myView->Redraw();
-               }
-               else if (myCurrentMode ==  CurAction3d_TargetSpotLight) 
-               {
-                       p2 = ConvertClickToPoint(point.x,point.y,myView);
-                       //Update the light dynamically
-                       Standard_Real coneHeigth=p1.Distance(p2);
-                       if( coneHeigth>Precision::Confusion())
-                       {
-                               BRepPrimAPI_MakeCone MakeCone(gp_Ax2(p1, gp_Dir(gp_Vec(p1, p2))), 
-                                       0, (p1.Distance(p2))/tan(1.04), coneHeigth);
-                               spotConeShape->Set(MakeCone.Solid());
-                               GetDocument()->GetAISContext()->Redisplay(spotConeShape,0,Standard_True);
-                               myCurrent_SpotLight->SetDirection(p2.X()-p1.X(),p2.Y()-p1.Y(),p2.Z()-p1.Z());
-                               myView->UpdateLights();
-                               myView->Redraw();
-                       }
-               }
-               else if (myCurrentMode ==  CurAction3d_EndSpotLight) 
-               {
-                       p3 = ConvertClickToPoint(point.x,point.y,myView);
-                       //Update the light dynamically
-                       Standard_Real coneHeigth=p1.Distance(p2);
-                       if( (p2.Distance(p3))>Precision::Confusion())
-                       {
-                               BRepPrimAPI_MakeCone MakeCone(gp_Ax2(p1, gp_Dir(gp_Vec(p1, p2))), 
-                                       0, p2.Distance(p3), coneHeigth);
-                               spotConeShape->Set(MakeCone.Solid());
-                               GetDocument()->GetAISContext()->Redisplay(spotConeShape,0,Standard_True);
-                               myCurrent_SpotLight->SetAngle((float )atan(p2.Distance(p3)/p1.Distance(p2))) ;
-                               myView->UpdateLights();
-                               myView->Redraw();
-                       }
-               }
-               else if (nFlags & MK_SHIFT)
-               {
-                       GetDocument()->ShiftMoveEvent(point.x,point.y,myView);
-               }
-               else
-               {
-                       GetDocument()->MoveEvent(point.x,point.y,myView);
-               }
-       }
-}
-
-void CViewer3dView::OnUpdateBUTTONHlrOff (CCmdUI* pCmdUI)
-{
-  pCmdUI->SetCheck (!myHlrModeIsOn);
-  pCmdUI->Enable   (myHlrModeIsOn);
-}
-
-void CViewer3dView::OnUpdateBUTTONHlrOn (CCmdUI* pCmdUI)
-{
-  pCmdUI->SetCheck (myHlrModeIsOn);
-  pCmdUI->Enable   (!myHlrModeIsOn);
-}
-
-void CViewer3dView::OnUpdateBUTTONPanGlo(CCmdUI* pCmdUI) 
-{
-    pCmdUI->SetCheck (myCurrentMode == CurAction3d_GlobalPanning);
-       pCmdUI->Enable   (myCurrentMode != CurAction3d_GlobalPanning);  
-       
-}
-
-void CViewer3dView::OnUpdateBUTTONPan(CCmdUI* pCmdUI) 
-{
-    pCmdUI->SetCheck (myCurrentMode == CurAction3d_DynamicPanning);
-       pCmdUI->Enable   (myCurrentMode != CurAction3d_DynamicPanning );        
-}
-
-void CViewer3dView::OnUpdateBUTTONZoomProg(CCmdUI* pCmdUI) 
-{
-    pCmdUI->SetCheck (myCurrentMode == CurAction3d_DynamicZooming );
-       pCmdUI->Enable   (myCurrentMode != CurAction3d_DynamicZooming); 
-}
-
-void CViewer3dView::OnUpdateBUTTONZoomWin(CCmdUI* pCmdUI) 
-{
-    pCmdUI->SetCheck (myCurrentMode == CurAction3d_WindowZooming);
-       pCmdUI->Enable   (myCurrentMode != CurAction3d_WindowZooming);  
-}
-
-void CViewer3dView::OnUpdateBUTTONRot(CCmdUI* pCmdUI) 
-{
-    pCmdUI->SetCheck (myCurrentMode == CurAction3d_DynamicRotation);
-       pCmdUI->Enable   (myCurrentMode != CurAction3d_DynamicRotation);        
-}
-
-void CViewer3dView::DrawRectangle (Standard_Integer theMinX,
-                                   Standard_Integer theMinY,
-                                   Standard_Integer theMaxX,
-                                   Standard_Integer theMaxY,
-                                   Standard_Boolean theToDraw,
-                                   Aspect_TypeOfLine theLineType)
-{
-  const Handle(AIS_InteractiveContext)& aCtx = GetDocument()->GetAISContext();
-  if (!theToDraw)
-  {
-    aCtx->Remove (myRect, false);
-    aCtx->CurrentViewer()->RedrawImmediate();
-    return;
-  }
-
-  CRect aRect;
-  GetWindowRect (aRect);
-  myRect->SetLineType (theLineType);
-  myRect->SetRectangle (theMinX, aRect.Height() - theMinY, theMaxX, aRect.Height() - theMaxY);
-  if (!aCtx->IsDisplayed (myRect))
-  {
-    aCtx->Display (myRect, false);
-  }
-  else
-  {
-    aCtx->Redisplay (myRect, false);
-  }
-  aCtx->CurrentViewer()->RedrawImmediate();
-}
-
-void CViewer3dView::OnModifyChangeBackground() 
-{
-       Standard_Real R1;
-       Standard_Real G1;
-       Standard_Real B1;
-    myView->BackgroundColor(Quantity_TOC_RGB,R1,G1,B1);
-       COLORREF m_clr ;
-       m_clr = RGB(R1*255,G1*255,B1*255);
-
-       CColorDialog dlgColor(m_clr);
-       if (dlgColor.DoModal() == IDOK)
-       {
-               m_clr = dlgColor.GetColor();
-               R1 = GetRValue(m_clr)/255.;
-               G1 = GetGValue(m_clr)/255.;
-               B1 = GetBValue(m_clr)/255.;
-        myView->SetBackgroundColor(Quantity_TOC_RGB,R1,G1,B1);
-       }
-    myView->Redraw();
-}
-
-void CViewer3dView::OnDirectionalLight() 
-{
-// Directional light source creation
-
-// Checking if the Active lights limit number is not reached
-       if( NbActiveLights>=myGraphicDriver->InquireLightLimit() )
-       {
-    CString aMsg;
-    aMsg.Format (L"You have reach the limit number of active lights (%d).\n Clear lights to create new ones.", myGraphicDriver->InquireLightLimit());
-               MessageBox (aMsg, L"Light creation", MB_OK);
-               return;
-       }
-
-       UpdateData(TRUE);
-       ((OCC_MainFrame*)AfxGetMainWnd())->SetStatusMessage("Pick a first point");
-       myCurrentMode = CurAction3d_BeginDirectionalLight;
-
-TCollection_AsciiString Message("\
-myCurrent_DirectionalLight = new V3d_DirectionalLight (gp_Dir (theDirection));\n\
-\n\
-myView->SetLightOn(myCurrent_DirectionalLight);\n\
-\n\
-");
-// Update The Result Message Dialog
-       GetDocument()->UpdateResultMessageDlg("V3d_DirectionalLight",Message);
-}
-
-void CViewer3dView::OnSpotLight() 
-{
-// Spot light source creation
-
-// Checking if the Active lights limit number is not reached
-       if( NbActiveLights>=myGraphicDriver->InquireLightLimit() )
-       {
-    CString aMsg;
-    aMsg.Format(L"You have reach the limit number of active lights (%d).\n Clear lights to create new ones.", myGraphicDriver->InquireLightLimit());
-               MessageBox (aMsg, L"Light creation", MB_OK);
-               return;
-       }
-
-       ((OCC_MainFrame*)AfxGetMainWnd())->SetStatusMessage("Pick the light position");
-       myCurrentMode = CurAction3d_BeginSpotLight;
-
-TCollection_AsciiString Message("\
-myCurrent_SpotLight = new V3d_SpotLight (gp_Pnt (thePosition), gp_Dir (theDirection), Quantity_NOC_RED);\n\
-\n\
-myView->SetLightOn(myCurrent_SpotLight);\n\
-\n\
-");
-// Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("V3d_SpotLight",Message);
-}
-
-void CViewer3dView::OnPositionalLight() 
-{
-// Positional light source creation
-
-// Checking if the Active lights limit number is not reached
-       if( NbActiveLights>=myGraphicDriver->InquireLightLimit() )
-       {
-    CString aMsg;
-    aMsg.Format(L"You have reach the limit number of active lights (%d).\n Clear lights to create new ones.", myGraphicDriver->InquireLightLimit());
-    MessageBox(aMsg, L"Light creation", MB_OK);
-               return;
-       }
-
-       myCurrent_PositionalLight=new V3d_PositionalLight (gp_Pnt (0,0,0), Quantity_NOC_GREEN);
-    myCurrent_PositionalLight->SetAttenuation (1, 0);
-       myView->SetLightOn(myCurrent_PositionalLight);
-       NbActiveLights++;
-       ((OCC_MainFrame*)AfxGetMainWnd())->SetStatusMessage("Pick the light position");
-       myCurrentMode = CurAction3d_BeginPositionalLight;
-
-TCollection_AsciiString Message("\
-myCurrent_PositionalLight=new V3d_PositionalLight (gp_Pnt(thePosition),Quantity_NOC_GREEN);\n\
-myCurrent_PositionalLight->SetAttenuation (1, 0);\n\
-\n\
-myView->SetLightOn(myCurrent_PositionalLight) ;\n\
-  ");
-
-  // Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("V3d_PositionalLight",Message);
-}
-
-void CViewer3dView::OnAmbientLight() 
-{
-// Ambiant light source creation
-
-// Checking if the Active lights limit number is not reached
-       if( NbActiveLights>=myGraphicDriver->InquireLightLimit() )
-       {
-    CString aMsg;
-    aMsg.Format(L"You have reach the limit number of active lights (%d).\n Clear lights to create new ones.", myGraphicDriver->InquireLightLimit());
-    MessageBox(aMsg, L"Light creation", MB_OK);
-               return;
-       }
-
-       myCurrent_AmbientLight=new V3d_AmbientLight (Quantity_NOC_GRAY);
-       myView->SetLightOn(myCurrent_AmbientLight) ;    
-       NbActiveLights++;
-
-       myView->UpdateLights();
-       myView->Redraw();
-
-TCollection_AsciiString Message("\
-myCurrent_AmbientLight=new V3d_AmbientLight(Quantity_NOC_GRAY);\n\
-\n\
-myView->SetLightOn(myCurrent_AmbientLight) ;\n\
-  ");
-
-  // Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("V3d_AmbientLight",Message);
-}
-
-
-void CViewer3dView::OnScale() 
-{
-       ScaleDlg Dlg(myView, this);
-       Dlg.DoModal();
-       myView->Redraw();
-}
-
-//V3d_View.hxx
-
-void CViewer3dView::OnShadingmodel() 
-{
-TCollection_AsciiString Message("\
-myView->SetShadingModel(V3d_TypeOfShadingModel myTypeOfShadingModel);\n\
-\n\
-myCurrent_V3d_View->Update();\n\
-  ");
-
-  // Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("SetShadingModel",Message);
-
-       CShadingModelDlg Dlg(myView);
-       Dlg.DoModal();
-       myView->Redraw();
-}
-
-
-void CViewer3dView::OnAntialiasingonoff() 
-{
-  Graphic3d_RenderingParams& aParams = myView->ChangeRenderingParams();
-  aParams.NbMsaaSamples = aParams.NbMsaaSamples == 0 ? 8 : 0;
-       myView->Update();
-
-TCollection_AsciiString Message("\
-Graphic3d_RenderingParams& aParams = myView->ChangeRenderingParams();\n\
-aParams.NbMsaaSamples = aParams.NbMsaaSamples == 0 ? 8 : 0;\n\
-  ");
-
-  // Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("SetAntialiasingOn/SetAntialiasingOff",Message);
-}
-
-void CViewer3dView::OnClearLights()
-{
-// Setting Off all viewer active lights
-    V3d_ListOfLight lights;
-    for (V3d_ListOfLightIterator anIter = myView->Viewer()->ActiveLightIterator(); anIter.More(); anIter.Next())
-    {
-        lights.Append (anIter.Value());
-    }
-    V3d_ListOfLightIterator itrLights(lights);
-    for (; itrLights.More(); itrLights.Next())
-    {
-        myView->Viewer()->SetLightOff (itrLights.Value());
-    }
-
-// Setting Off all view active lights
-    lights.Clear();
-    for (V3d_ListOfLightIterator anIter = myView->ActiveLightIterator(); anIter.More(); anIter.Next())
-    {
-        lights.Append (anIter.Value());
-    }
-    itrLights.Initialize (lights);
-    for (; itrLights.More(); itrLights.Next())
-    {
-        myView->SetLightOff (itrLights.Value());
-    }
-
-    myView->Viewer()->SetDefaultLights(); // Setting the default lights on
-
-    NbActiveLights = 2; // There are 2 default active lights
-
-    myView->Update();
-
-TCollection_AsciiString Message("\
-// Setting Off all viewer active lights\n\
-V3d_ListOfLight lights;\n\
-for (V3d_ListOfLightIterator anIter = myView->Viewer()->ActiveLightIterator(); anIter.More(); anIter.Next())\n\
-{\n\
-    lights.Append (anIter.Value());\n\
-}\n\
-V3d_ListOfLightIterator itrLights(lights);\n\
-for (; itrLights.More(); itrLights.Next())\n\
-{\n\
-    myView->Viewer()->SetLightOff (itrLights.Value())\n\
-}\n\
-\n\
-// Setting Off all view active lights\n\
-lights.Clear();\n\
-for (V3d_ListOfLightIterator anIter = myView->ActiveLightIterator(); anIter.More(); anIter.Next())\n\
-{\n\
-    lights.Append (anIter.Value());\n\
-}\n\
-itrLights.Initialize(lights);\n\
-for (; itrLights.More(); itrLights.Next())\n\
-{\n\
-    myView->SetLightOff (itrLights.Value());\n\
-}\n\
-\n\
-myView->Viewer()->SetDefaultLights();// Setting the default lights on\n\
-  ");
-
-  // Update The Result Message Dialog
-GetDocument()->UpdateResultMessageDlg("SetLightOff",Message);
-}
-
-void CViewer3dView::OnModelclipping() 
-{
-  if (myClippingPlane.IsNull())
-  {
-    gp_Pln aClipPlane (gp_Pnt (0.0, 0.0, 0.0), gp_Dir (1.0, 0.0, 0.0));
-    gp_Pln aFacePlane (gp_Pnt (0.1, 0.0, 0.0), gp_Dir (1.0, 0.0, 0.0));
-
-    // create clipping plane and add to view
-    myClippingPlane = new Graphic3d_ClipPlane (aClipPlane);
-
-    // shape to represent clipping plane
-    BRepBuilderAPI_MakeFace aMakeFaceCommand (aFacePlane, 200.0, -200.0, 410.0, -410.0);
-    TopoDS_Face aShape = aMakeFaceCommand.Face();
-    myShape = new AIS_Shape (aShape);
-    myShape->SetTransparency (0.5);
-  }
-
-  CModelClippingDlg aClippingDlg (myView, myShape, myClippingPlane, GetDocument());
-
-  aClippingDlg.DoModal();
-}
-
-void CViewer3dView::OnOptionsTrihedronStaticTrihedron() 
-{
-       CTrihedronDlg Dlg(myView, GetDocument());
-       Dlg.DoModal();
-}
-
-void CViewer3dView::InitButtons()
-{
-  myXmin=0;
-  myYmin=0;  
-  myXmax=0;
-  myYmax=0;
-  myCurZoom=0;
-  myCurrentMode = CurAction3d_Nothing;
-}
-
-void CViewer3dView::Reset()
-{
-  InitButtons();
-  myVisMode = VIS_SHADE;
-  if (!myView.IsNull())
-  {
-    RedrawVisMode();
-    myView->Reset();
-  }
-}
-
-void CViewer3dView::GetViewAt (Standard_Real& theX, Standard_Real& theY, Standard_Real& theZ) const
-{
-  myView->At (theX, theY, theZ);
-}
-
-void CViewer3dView::SetViewAt (const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ)
-{
-  myView->SetAt (theX, theY, theZ);
-}
-
-void CViewer3dView::GetViewEye(Standard_Real& X, Standard_Real& Y, Standard_Real& Z)
-{
-       myView->Eye(X,Y,Z);
-}
-
-void CViewer3dView::SetViewEye(Standard_Real X, Standard_Real Y, Standard_Real Z)
-{
-       myView->SetEye(X,Y,Z);
-}
-
-Standard_Real CViewer3dView::GetViewScale()
-{
-       return myView->Scale();
-}
-
-void CViewer3dView::SetViewScale(Standard_Real Coef)
-{
-       myView->SetScale(Coef);
-}
-
-void CViewer3dView::RedrawVisMode()
-{
-  switch (myVisMode)
-  {
-  case VIS_WIREFRAME:
-    GetDocument()->GetAISContext()->SetDisplayMode (AIS_WireFrame, Standard_True);
-    myView->SetComputedMode (Standard_False);
-    myView->Redraw();
-    break;
-  case VIS_SHADE:
-    GetDocument()->GetAISContext()->SetDisplayMode (AIS_Shaded, Standard_True);
-    myView->SetComputedMode (Standard_False);
-    myView->Redraw();
-    break;
-  case VIS_HLR:
-    SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
-    myView->SetComputedMode (Standard_True);
-    myView->Redraw();
-    SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
-    GetDocument()->GetAISContext()->SetDisplayMode (AIS_WireFrame, Standard_True);
-    break;
-  }
-}
diff --git a/samples/mfc/standard/04_Viewer3d/src/Viewer3dView.h b/samples/mfc/standard/04_Viewer3d/src/Viewer3dView.h
deleted file mode 100755 (executable)
index 1f2d349..0000000
+++ /dev/null
@@ -1,173 +0,0 @@
-// Viewer3dView.h : interface of the CViewer3dView class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_VIEWERVIEW_H__4EF39FBC_4EBB_11D1_8D67_0800369C8A03__INCLUDED_)
-#define AFX_VIEWERVIEW_H__4EF39FBC_4EBB_11D1_8D67_0800369C8A03__INCLUDED_
-
-#include <Viewer3dDoc.h>
-
-#include <V3d_DirectionalLight.hxx>
-#include <V3d_PositionalLight.hxx>
-#include <V3d_AmbientLight.hxx>
-#include <V3d_SpotLight.hxx>
-#include <Graphic3d_GraphicDriver.hxx>
-
-#include <Graphic3d_ClipPlane.hxx>
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-enum View3D_CurrentAction { 
-  CurAction3d_Nothing,
-  CurAction3d_DynamicZooming,
-  CurAction3d_WindowZooming,
-  CurAction3d_DynamicPanning,
-  CurAction3d_GlobalPanning,
-  CurAction3d_DynamicRotation,
-  CurAction3d_BeginSpotLight,
-  CurAction3d_TargetSpotLight,
-  CurAction3d_EndSpotLight,
-  CurAction3d_BeginPositionalLight,
-  CurAction3d_BeginDirectionalLight,
-  CurAction3d_EndDirectionalLight
-};
-
-class AIS_RubberBand;
-
-class CViewer3dView : public CView
-{
-protected: // create from serialization only
-       CViewer3dView();
-       DECLARE_DYNCREATE(CViewer3dView)
-
-public:
-  CViewer3dDoc* GetDocument();
-  void Redraw() {   myView->Redraw(); };
-  void InitButtons();
-  void Reset();
-  void GetViewAt (Standard_Real& theX, Standard_Real& theY, Standard_Real& theZ) const;
-  void SetViewAt (const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ);
-  void GetViewEye (Standard_Real& X, Standard_Real& Y, Standard_Real& Z);
-  void SetViewEye (const Standard_Real X,const Standard_Real Y,const Standard_Real Z);
-  Standard_Real GetViewScale();
-  void SetViewScale (const Standard_Real Coef);
-  void FitAll() {   myView->FitAll();  myView->ZFitAll();  };
-
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(CViewer3dView)
-       public:
-       virtual void OnDraw(CDC* pDC);  // overridden to draw this view
-       virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
-       virtual void OnInitialUpdate();
-       //}}AFX_VIRTUAL
-
-// Implementation
-public:
-       virtual ~CViewer3dView();
-#ifdef _DEBUG
-       virtual void AssertValid() const;
-       virtual void Dump(CDumpContext& dc) const;
-#endif
-
-  int scaleX;
-  int scaleY;
-  int scaleZ;
-
-protected:
-
-// Generated message map functions
-protected:
-       //{{AFX_MSG(CViewer3dView)
-       afx_msg void OnBUTTONAxo();
-       afx_msg void OnBUTTONBack();
-       afx_msg void OnBUTTONBottom();
-       afx_msg void OnBUTTONFront();
-       afx_msg void OnBUTTONHlrOff();
-       afx_msg void OnBUTTONHlrOn();
-       afx_msg void OnBUTTONLeft();
-       afx_msg void OnBUTTONPan();
-       afx_msg void OnBUTTONPanGlo();
-       afx_msg void OnBUTTONReset();
-       afx_msg void OnBUTTONRight();
-       afx_msg void OnBUTTONRot();
-       afx_msg void OnBUTTONTop();
-       afx_msg void OnBUTTONZoomAll();
-       afx_msg void OnSize(UINT nType, int cx, int cy);
-       afx_msg void OnBUTTONZoomProg();
-       afx_msg void OnBUTTONZoomWin();
-       afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
-  afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
-       afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
-       afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
-       afx_msg void OnMButtonUp(UINT nFlags, CPoint point);
-       afx_msg void OnMouseMove(UINT nFlags, CPoint point);
-       afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
-       afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
-    afx_msg void OnUpdateBUTTONHlrOff(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONHlrOn(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONPanGlo(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONPan(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONZoomProg(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONZoomWin(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONRot(CCmdUI* pCmdUI);
-       afx_msg void OnModifyChangeBackground();
-       afx_msg void OnDirectionalLight();
-       afx_msg void OnSpotLight();
-       afx_msg void OnPositionalLight();
-       afx_msg void OnAmbientLight();
-       afx_msg void OnScale();
-       afx_msg void OnShadingmodel();
-       afx_msg void OnAntialiasingonoff();
-       afx_msg void OnClearLights();
-       afx_msg void OnModelclipping();
-       afx_msg void OnOptionsTrihedronStaticTrihedron();
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-private:
-       enum VisMode { VIS_WIREFRAME, VIS_SHADE, VIS_HLR };
-       VisMode                        myVisMode;
-       
-  Handle(V3d_View)                myView;
-  Handle(Graphic3d_GraphicDriver) myGraphicDriver;
-  View3D_CurrentAction           myCurrentMode;
-  Standard_Integer               myXmin;
-  Standard_Integer               myYmin;
-  Standard_Integer               myXmax;
-  Standard_Integer               myYmax;
-
-  Standard_Integer               NbActiveLights;
-  Standard_Boolean               myHlrModeIsOn;
-  Standard_Real                  myCurZoom;
-  Handle(V3d_AmbientLight)       myCurrent_AmbientLight;
-  Handle(V3d_SpotLight)          myCurrent_SpotLight;
-  Handle(V3d_PositionalLight)    myCurrent_PositionalLight;
-  Handle(V3d_DirectionalLight)   myCurrent_DirectionalLight;
-  Handle(Graphic3d_ClipPlane)    myClippingPlane;
-  Handle(AIS_Shape)              myShape;
-  Handle(AIS_RubberBand)         myRect; //!< Rubber rectangle for selection
-
-private:
-
-       void DrawRectangle (Standard_Integer theMinX, Standard_Integer theMinY, Standard_Integer theMaxX, Standard_Integer theMaxY,
-                       Standard_Boolean theToDraw, Aspect_TypeOfLine theLineType = Aspect_TOL_SOLID);
-
-       UINT myAxisKey;
-       UINT myScaleDirection;
-       void RedrawVisMode();
-
-};
-
-#ifndef _DEBUG  // debug version in Viewer3dView.cpp
-inline CViewer3dDoc* CViewer3dView::GetDocument()
-   { return (CViewer3dDoc*)m_pDocument; }
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_VIEWERVIEW_H__4EF39FBC_4EBB_11D1_8D67_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/05_ImportExport/CMakeLists.txt b/samples/mfc/standard/05_ImportExport/CMakeLists.txt
deleted file mode 100644 (file)
index 93f728e..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-cmake_minimum_required (VERSION 2.6)
-
-project (ImportExport)
-
-add_definitions (-DWINVER=0x0501 -DUNICODE -D_UNICODE)
-set (CMAKE_MFC_FLAG 2)
-
-set (ImportExport_SRC_DIR      ${MFC_STANDARD_SAMPLES_DIR}/05_ImportExport/src)
-set (ImportExport_HEADER_FILES ${ImportExport_SRC_DIR}/ColoredShapes.h
-                               ${ImportExport_SRC_DIR}/ImportExportApp.h
-                               ${ImportExport_SRC_DIR}/ImportExportDoc.h
-                               ${ImportExport_SRC_DIR}/StdAfx.h )
-set (ImportExport_SOURCE_FILES ${ImportExport_SRC_DIR}/ColoredShapes.cpp
-                               ${ImportExport_SRC_DIR}/ImportExportApp.cpp
-                               ${ImportExport_SRC_DIR}/ImportExportDoc.cpp
-                               ${ImportExport_SRC_DIR}/StdAfx.cpp)
-
-set (ImportExport_RESOURCE_DIR    ${MFC_STANDARD_SAMPLES_DIR}/05_ImportExport/res)
-set (ImportExport_RESOURCE_HEADER ${ImportExport_RESOURCE_DIR}/resource.h)
-set (ImportExport_RESOURCE_FILES  ${ImportExport_RESOURCE_DIR}/Toolbar.bmp
-                                  ${ImportExport_RESOURCE_DIR}/ImportExport.rc)
-
-# groups in the VS solution
-source_group ("Source Files" FILES ${ImportExport_SOURCE_FILES}
-                                   ${COMMON_WINMAIN_FILE})
-
-source_group ("Header Files" FILES ${ImportExport_HEADER_FILES}
-                                   ${ImportExport_RESOURCE_HEADER})
-
-source_group ("Resource Files" FILES ${ImportExport_RESOURCE_FILES})
-
-add_executable (ImportExport WIN32 ${ImportExport_SOURCE_FILES}
-                                   ${ImportExport_HEADER_FILES}
-                                   ${COMMON_WINMAIN_FILE}
-                                   ${ImportExport_RESOURCE_HEADER}
-                                   ${ImportExport_RESOURCE_FILES})
-
-set_property (TARGET ImportExport PROPERTY FOLDER "Samples/mfc")
-
-if (SINGLE_GENERATOR)
-  install (TARGETS ImportExport DESTINATION "${INSTALL_DIR_BIN}")
-else()
-  install (TARGETS ImportExport
-           CONFIGURATIONS Release RelWithDebInfo
-           DESTINATION "${INSTALL_DIR_BIN}")
-  install (TARGETS ImportExport
-           CONFIGURATIONS Debug
-           DESTINATION "${INSTALL_DIR_BIN}d")
-endif()
-
-include_directories (${CMAKE_BINARY_DIR}/inc
-                     ${MFC_STANDARD_SAMPLES_DIR}/05_ImportExport
-                     ${ImportExport_SRC_DIR}
-                     ${MFC_STANDARD_SAMPLES_DIR}/Common)
-
-target_link_libraries (ImportExport mfcsample)
\ No newline at end of file
diff --git a/samples/mfc/standard/05_ImportExport/adm/win/vc10/ImportExport.vcxproj b/samples/mfc/standard/05_ImportExport/adm/win/vc10/ImportExport.vcxproj
deleted file mode 100644 (file)
index 44d11fe..0000000
+++ /dev/null
@@ -1,356 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|Win32">
-      <Configuration>Debug</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Debug|x64">
-      <Configuration>Debug</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|x64">
-      <Configuration>Release</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectGuid>{1C9A05AE-AF5A-4ACE-9A72-83436D77504C}</ProjectGuid>
-    <RootNamespace>ImportExport</RootNamespace>
-    <Keyword>MFCProj</Keyword>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <PropertyGroup>
-    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../../../win32\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\win32\obj\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">../../../../win64\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\win64\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../../../../win32\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\win32\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">../../../../win64\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\win64\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\obj/ImportExport.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\obj/ImportExport.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKVrml.lib;TKStl.lib;TKBrep.lib;TKIGES.lib;TKShHealing.lib;TKStep.lib;TKXSBase.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKLCAF.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bin/ImportExport.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bin/ImportExport.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\obj/ImportExport.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\obj/ImportExport.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKVrml.lib;TKStl.lib;TKBrep.lib;TKIGES.lib;TKShHealing.lib;TKStep.lib;TKXSBase.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKLCAF.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bin/ImportExport.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bin/ImportExport.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\objd/ImportExport.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\objd/ImportExport.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\objd/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKVrml.lib;TKStl.lib;TKBrep.lib;TKIGES.lib;TKShHealing.lib;TKStep.lib;TKXSBase.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKLCAF.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bind/ImportExport.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bind/ImportExport.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\objd/ImportExport.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\objd/ImportExport.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\objd/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKVrml.lib;TKStl.lib;TKBrep.lib;TKIGES.lib;TKShHealing.lib;TKStep.lib;TKXSBase.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKLCAF.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bind/ImportExport.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bind/ImportExport.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\ColoredShapes.cpp" />
-    <ClCompile Include="..\..\..\src\ImportExportApp.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\ImportExportDoc.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\StdAfx.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\res\ImportExport.rc">
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-    </ResourceCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\src\ColoredShapes.h" />
-    <ClInclude Include="..\..\..\src\ImportExportApp.h" />
-    <ClInclude Include="..\..\..\src\ImportExportDoc.h" />
-    <ClInclude Include="..\..\..\res\resource.h" />
-    <ClInclude Include="..\..\..\src\StdAfx.h" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\res\Toolbar.bmp" />
-  </ItemGroup>
-  <ItemGroup>
-    <ProjectReference Include="..\..\..\..\mfcsample\adm\win\vc10\mfcsample.vcxproj">
-      <Project>{2d6cbbe8-6965-4016-b503-0d715ae26691}</Project>
-      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
-    </ProjectReference>
-  </ItemGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/05_ImportExport/adm/win/vc10/ImportExport.vcxproj.filters b/samples/mfc/standard/05_ImportExport/adm/win/vc10/ImportExport.vcxproj.filters
deleted file mode 100644 (file)
index 9e69403..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
-    <Filter Include="Source Files">
-      <UniqueIdentifier>{6fe93ff4-3fc7-4248-af1c-9d15b9b1904d}</UniqueIdentifier>
-      <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
-    </Filter>
-    <Filter Include="Header Files">
-      <UniqueIdentifier>{0387f39d-921d-4c19-9e7d-d397e90e235a}</UniqueIdentifier>
-      <Extensions>h;hpp;hxx;hm;inl</Extensions>
-    </Filter>
-    <Filter Include="Resource Files">
-      <UniqueIdentifier>{116ea642-b0c0-4973-bfbc-4814645fe955}</UniqueIdentifier>
-    </Filter>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\ColoredShapes.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\ImportExportApp.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\ImportExportDoc.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\StdAfx.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\res\ImportExport.rc">
-      <Filter>Source Files</Filter>
-    </ResourceCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\src\ColoredShapes.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\ImportExportApp.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\ImportExportDoc.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\res\resource.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\StdAfx.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\res\Toolbar.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-  </ItemGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/05_ImportExport/res/ImportExport.rc b/samples/mfc/standard/05_ImportExport/res/ImportExport.rc
deleted file mode 100755 (executable)
index f7bada8..0000000
+++ /dev/null
@@ -1,286 +0,0 @@
-// Microsoft Visual C++ generated resource script.
-//
-#include "resource.h"
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
-#include "afxres.h"
-#include "..\..\Common\res\OCC_Resource.h"
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-// English (U.S.) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-#pragma code_page(1252)
-#endif //_WIN32
-
-#ifdef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE 
-BEGIN
-    "resource.h\0"
-END
-
-2 TEXTINCLUDE 
-BEGIN
-    "#include ""afxres.h""\r\n"
-    "#include ""..\\..\\Common\\res\\OCC_Resource.h""\0"
-END
-
-3 TEXTINCLUDE 
-BEGIN
-    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
-    "#define _AFX_NO_OLE_RESOURCES\r\n"
-    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
-    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
-    "\r\n"
-    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
-    "#ifdef _WIN32\r\n"
-    "LANGUAGE 9, 1\r\n"
-    "#pragma code_page(1252)\r\n"
-    "#endif\r\n"
-    "#include ""afxres.rc""         // Standard components\r\n"
-    "#endif\0"
-END
-
-#endif    // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Bitmap
-//
-
-IDR_MAINFRAME           BITMAP                  "Toolbar.bmp"
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Toolbar
-//
-
-IDR_MAINFRAME TOOLBAR  20, 20
-BEGIN
-    BUTTON      ID_FILE_NEW
-    SEPARATOR
-    BUTTON      ID_BOX
-    BUTTON      ID_Cylinder
-    SEPARATOR
-    BUTTON      ID_FILE_IMPORT_BREP
-    BUTTON      ID_FILE_IMPORT_IGES
-    BUTTON      ID_FILE_IMPORT_STEP
-    SEPARATOR
-    BUTTON      ID_FILE_EXPORT_BREP
-    BUTTON      ID_FILE_EXPORT_IGES
-    BUTTON      ID_FILE_EXPORT_STEP
-    BUTTON      ID_FILE_EXPORT_STL
-    BUTTON      ID_FILE_EXPORT_VRML
-    SEPARATOR
-    BUTTON      ID_FILE_EXPORT_IMAGE
-    SEPARATOR
-    BUTTON      ID_BUTTON_STEREO
-    SEPARATOR
-    BUTTON      ID_APP_ABOUT
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Menu
-//
-
-IDR_MAINFRAME MENU 
-BEGIN
-    POPUP "&File"
-    BEGIN
-        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
-        MENUITEM "&Open...\tCtrl+O",            ID_FILE_OPEN
-        MENUITEM SEPARATOR
-        MENUITEM "Recent File",                 ID_FILE_MRU_FILE12
-        MENUITEM SEPARATOR
-        MENUITEM "E&xit",                       ID_APP_EXIT
-    END
-    POPUP "&View"
-    BEGIN
-        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
-        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
-    END
-    POPUP "&Help"
-    BEGIN
-        MENUITEM "&About ImportExport...",      ID_APP_ABOUT
-    END
-END
-
-IDR_3DTYPE MENU 
-BEGIN
-    POPUP "&File"
-    BEGIN
-        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
-        MENUITEM "&Open...\tCtrl+O",            ID_FILE_OPEN
-        MENUITEM "&Close",                      ID_FILE_CLOSE
-        MENUITEM SEPARATOR
-        MENUITEM "&Save...\tCtrl+S",            ID_FILE_SAVE
-        MENUITEM "Save As...",                  ID_FILE_SAVE_AS
-        MENUITEM SEPARATOR
-        POPUP "Import"
-        BEGIN
-            MENUITEM "BREP...",                     ID_FILE_IMPORT_BREP
-            MENUITEM "STEP...",                     ID_FILE_IMPORT_STEP
-            MENUITEM "IGES...",                     ID_FILE_IMPORT_IGES
-        END
-        POPUP "Export"
-        BEGIN
-            MENUITEM "BREP...",                     ID_FILE_EXPORT_BREP
-            MENUITEM "STEP...",                     ID_FILE_EXPORT_STEP
-            MENUITEM "IGES...",                     ID_FILE_EXPORT_IGES
-            MENUITEM "STL...",                      ID_FILE_EXPORT_STL
-            MENUITEM "VRML...",                     ID_FILE_EXPORT_VRML
-            MENUITEM SEPARATOR
-            MENUITEM "Image...",                    ID_FILE_EXPORT_IMAGE
-        END
-        MENUITEM SEPARATOR
-        MENUITEM "Recent File",                 ID_FILE_MRU_FILE1
-        MENUITEM SEPARATOR
-        MENUITEM "E&xit",                       ID_APP_EXIT
-    END
-    POPUP "&View"
-    BEGIN
-        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
-        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
-    END
-    POPUP "&Window"
-    BEGIN
-        MENUITEM "New Window",                  ID_WINDOW_NEW
-        MENUITEM "&Cascade",                    ID_WINDOW_CASCADE
-        MENUITEM "&Tile",                       ID_WINDOW_TILE_HORZ
-        MENUITEM "&Arrange Icons",              ID_WINDOW_ARRANGE
-    END
-    POPUP "&Help"
-    BEGIN
-        MENUITEM "&About ImportExport...",      ID_APP_ABOUT
-    END
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,0,0,1
- PRODUCTVERSION 1,0,0,1
- FILEFLAGSMASK 0x3fL
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x4L
- FILETYPE 0x1L
- FILESUBTYPE 0x0L
-BEGIN
-    BLOCK "StringFileInfo"
-    BEGIN
-        BLOCK "040904B0"
-        BEGIN
-            VALUE "CompanyName", "Matra Datavision"
-            VALUE "FileDescription", "SampleImportExport MFC Application"
-            VALUE "FileVersion", "1, 0, 0, 1"
-            VALUE "InternalName", "SampleImportExport"
-            VALUE "LegalCopyright", "Copyright (C) 1998"
-            VALUE "OriginalFilename", "SampleImportExport.EXE"
-            VALUE "ProductName", "SampleImportExport Application"
-            VALUE "ProductVersion", "1, 0, 0, 1"
-        END
-    END
-    BLOCK "VarFileInfo"
-    BEGIN
-        VALUE "Translation", 0x409, 1200
-    END
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Dialog
-//
-
-IDD_FILESAVESTEP DIALOG  0, 0, 288, 165
-STYLE DS_SETFONT | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS
-FONT 8, "MS Sans Serif"
-BEGIN
-    GROUPBOX        "",1119,7,7,274,126,NOT WS_VISIBLE
-    COMBOBOX        IDC_FSaveSTEP_Type,80,138,127,57,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// String Table
-//
-
-STRINGTABLE 
-BEGIN
-    IDR_MAINFRAME           "ImportExport"
-    IDR_3DTYPE              "\nImportExport\nImportExport\n\n\nImportExport.Document\nImportExport Document"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_BOX                  "Create a box\nBox"
-    ID_Cylinder             "Create a cylinder\nCylinder"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_FILE_OPEN            "Open file\nOpen"
-    ID_FILE_SAVE            "Save File\nSave"
-    ID_FILE_SAVE_AS         "Save file as...\nSave As"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_FILE_MRU_FILE1       "Open recent file\nRecent file"
-END
-
-STRINGTABLE
-BEGIN
-    ID_BUTTON_STEREO        "Toggle stereographic mode on / off"
-END
-
-#endif    // English (U.S.) resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-#define _AFX_NO_SPLITTER_RESOURCES
-#define _AFX_NO_OLE_RESOURCES
-#define _AFX_NO_TRACKER_RESOURCES
-#define _AFX_NO_PROPERTY_RESOURCES
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE 9, 1
-#pragma code_page(1252)
-#endif
-#include "afxres.rc"         // Standard components
-#endif
-/////////////////////////////////////////////////////////////////////////////
-#endif    // not APSTUDIO_INVOKED
-
diff --git a/samples/mfc/standard/05_ImportExport/res/Toolbar.bmp b/samples/mfc/standard/05_ImportExport/res/Toolbar.bmp
deleted file mode 100755 (executable)
index b521a8d..0000000
Binary files a/samples/mfc/standard/05_ImportExport/res/Toolbar.bmp and /dev/null differ
diff --git a/samples/mfc/standard/05_ImportExport/res/resource.h b/samples/mfc/standard/05_ImportExport/res/resource.h
deleted file mode 100755 (executable)
index 59e19b5..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-//{{NO_DEPENDENCIES}}
-// Microsoft Visual C++ generated include file.
-// Used by ImportExport.rc
-//
-#define ID_FILE_OPEN32803               32803
-#define ID_BOX                          32804
-#define ID_Cylinder                     32806
-#define ID_FILE_OPEN32807               32807
-#define ID_FILE_SAVEAS                  32808
-#define ID_FILE_SAVE32809               32809
-#define ID_FILE_RECENTFILE              32810
-#define ID_FILE_EXPORT_STL              32896
-#define ID_FILE_EXPORT_VRML             32897
-
-// Next default values for new objects
-// 
-#ifdef APSTUDIO_INVOKED
-#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_3D_CONTROLS                     1
-#define _APS_NEXT_RESOURCE_VALUE        178
-#define _APS_NEXT_COMMAND_VALUE         32811
-#define _APS_NEXT_CONTROL_VALUE         1505
-#define _APS_NEXT_SYMED_VALUE           170
-#endif
-#endif
diff --git a/samples/mfc/standard/05_ImportExport/src/ColoredShapes.cpp b/samples/mfc/standard/05_ImportExport/src/ColoredShapes.cpp
deleted file mode 100755 (executable)
index 71b0752..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-// ColoredShapes.cpp: implementation of the CColoredShape class.
-//
-//////////////////////////////////////////////////////////////////////
-
-#include "stdafx.h"
-
-#include <afxtempl.h>
-
-#include "ColoredShapes.h"
-
-//////////////////////////////////////////////////////////////////////
-// Construction/Destruction
-//////////////////////////////////////////////////////////////////////
-
-CColoredShapes::CColoredShapes()
-{
-}
-
-
-void CColoredShapes::Add(const Quantity_NameOfColor aColor, const TopoDS_Shape& aShape)
-{
-       m_shapeList.Append(aShape);
-       m_colorMap.Bind(aShape, aColor);
-}
-
-void CColoredShapes::Remove(const TopoDS_Shape& aShape)
-{
-       m_colorMap.UnBind(aShape);
-       for ( TopoDS_ListIteratorOfListOfShape iter(m_shapeList); iter.More(); iter.Next() ) {
-               if(iter.Value() == aShape) {
-                       m_shapeList.Remove(iter);
-                       break;
-               }
-       }
-}
-
-IMPLEMENT_SERIAL(CColoredShapes, CObject,1);
-
-#include <TopoDS_Shape.hxx>
-
-// Tools to put Persistent Object in an archive
-
-void CColoredShapes::Display(Handle(AIS_InteractiveContext)& anAIScontext)
-{
-       for ( TopoDS_ListIteratorOfListOfShape iter(m_shapeList); iter.More(); iter.Next() )
-       {
-               Handle(AIS_Shape) ais = new AIS_Shape(iter.Value());
-               anAIScontext->SetColor(ais, (Quantity_NameOfColor)m_colorMap.Find(iter.Value()), Standard_False);
-    anAIScontext->SetMaterial(ais, Graphic3d_NameOfMaterial_Gold, Standard_False);
-               anAIScontext->Display(ais, Standard_False);
-       }
-  anAIScontext->UpdateCurrentViewer();
-}
diff --git a/samples/mfc/standard/05_ImportExport/src/ColoredShapes.h b/samples/mfc/standard/05_ImportExport/src/ColoredShapes.h
deleted file mode 100755 (executable)
index 937816d..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-// ColoredShape.h: interface for the CColoredShape class.
-//
-//////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_COLOREDSHAPES_H__C6419AF3_A78A_11D1_8C93_00AA00D10994__INCLUDED_)
-#define AFX_COLOREDSHAPES_H__C6419AF3_A78A_11D1_8C93_00AA00D10994__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-class CColoredShapes : public CObject  
-{
-public:
-       CColoredShapes();
-       void Add(const Quantity_NameOfColor aColor, const TopoDS_Shape& aShape);
-       void Remove(const TopoDS_Shape& aShape);
-
-       void Display( Handle(AIS_InteractiveContext)& anAIScontext);
-
-       TopoDS_ListOfShape getShapes();
-       Quantity_NameOfColor getShapeColor(TopoDS_Shape aShape);
-
-protected:
-       // Declare CArchive >> operator
-       DECLARE_SERIAL(CColoredShapes);
-
-private:
-       TopTools_DataMapOfShapeInteger m_colorMap;
-       TopoDS_ListOfShape   m_shapeList;
-};
-
-#endif // !defined(AFX_COLOREDSHAPES_H__C6419AF3_A78A_11D1_8C93_00AA00D10994__INCLUDED_)
diff --git a/samples/mfc/standard/05_ImportExport/src/ImportExportApp.cpp b/samples/mfc/standard/05_ImportExport/src/ImportExportApp.cpp
deleted file mode 100755 (executable)
index 733021c..0000000
+++ /dev/null
@@ -1,158 +0,0 @@
-// ImportExportApp.cpp : Defines the class behaviors for the application.
-//
-
-#include "stdafx.h"
-
-#include "ImportExportApp.h"
-
-#include "OCC_MainFrame.h"
-#include "OCC_3dChildFrame.h"
-#include "ImportExportDoc.h"
-#include <OCC_3dView.h>
-#include <res/resource.h>
-
-BEGIN_MESSAGE_MAP(CImportExportApp, OCC_App)
-       //{{AFX_MSG_MAP(CSerializeApp)
-       ON_COMMAND(ID_FILE_OPEN, OnFileOpen)
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CImportExportApp construction
-
-CImportExportApp::CImportExportApp() : OCC_App()
-{
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// The one and only CImportExportApp object
-
-CImportExportApp theApp;
-
-/////////////////////////////////////////////////////////////////////////////
-// CImportExportApp initialization
-
-BOOL CImportExportApp::InitInstance()
-{
-  // Set the local system units
-  try
-  {
-    UnitsAPI::SetLocalSystem (UnitsAPI_MDTV);
-  }
-  catch (Standard_Failure)
-  {
-    AfxMessageBox (L"Fatal Error in units initialisation");
-  }
-
-  SampleName = "ImportExport"; //for about dialog
-  SetSamplePath (L"..\\..\\05_ImportExport");
-
-  AfxEnableControlContainer();
-
-       // Standard initialization
-       // If you are not using these features and wish to reduce the size
-       //  of your final executable, you should remove from the following
-       //  the specific initialization routines you do not need.
-
-       // Change the registry key under which our settings are stored.
-       // You should modify this string to be something appropriate
-       // such as the name of your company or organization.
-       // Modified by CasCade :
-       SetRegistryKey(_T("Local CasCade Applications"));
-
-       LoadStdProfileSettings();  // Load standard INI file options (including MRU)
-
-       // Register the application's document templates.  Document templates
-       //  serve as the connection between documents, frame windows and views.
-
-       CMultiDocTemplate* pDocTemplate;
-    pDocTemplate = new CMultiDocTemplate(
-               IDR_3DTYPE,
-               RUNTIME_CLASS(CImportExportDoc),
-               RUNTIME_CLASS(OCC_3dChildFrame), 
-               RUNTIME_CLASS(OCC_3dView));
-       AddDocTemplate(pDocTemplate);
-
-       // create main MDI Frame window
-       OCC_MainFrame* pMainFrame = new OCC_MainFrame(with_AIS_TB);
-       if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
-               return FALSE;
-       m_pMainWnd = pMainFrame;
-
-       // Parse command line for standard shell commands, DDE, file open
-       CCommandLineInfo cmdInfo;
-       ParseCommandLine(cmdInfo);
-
-       // Dispatch commands specified on the command line
-       if (!ProcessShellCommand(cmdInfo))
-               return FALSE;
-
-       // The main window has been initialized, so show and update it.
-       pMainFrame->ShowWindow(m_nCmdShow);
-       pMainFrame->UpdateWindow();
-
-       return TRUE;
-}
-
-CDocument* CImportExportApp::OpenDocumentFile(LPCTSTR lpszFileName) 
-{
-       CFile cf;
-       
-       if (!cf.Open(lpszFileName,CFile::modeReadWrite)){ 
-               AfxMessageBox (L"File not found!");
-               return NULL;
-       }
-       cf.Close();
-       return CWinApp::OpenDocumentFile(lpszFileName); 
-}
-
-void CImportExportApp::OnFileOpen() 
-{
-  CFileDialog dlg(TRUE,
-                                 NULL,
-                                 NULL,
-                                 OFN_HIDEREADONLY | OFN_FILEMUSTEXIST,
-                                 NULL, 
-                                 NULL );
-  
-
-       CString initdir;
-       initdir.GetEnvironmentVariable (L"CSF_OCCTDataPath");
-
-       dlg.m_ofn.lpstrInitialDir = initdir;
-
-       CString strFilter;
-       CString strDefault;
-
-       POSITION pos = GetFirstDocTemplatePosition();
-
-       CDocTemplate* pTemplate = GetNextDocTemplate(pos);
-       CString strFilterExt, strFilterName;
-       if (pTemplate->GetDocString(strFilterExt, CDocTemplate::filterExt) &&
-               !strFilterExt.IsEmpty() &&
-               pTemplate->GetDocString(strFilterName, CDocTemplate::filterName) &&
-               !strFilterName.IsEmpty()) {
-               // add to filter
-               strFilter += strFilterName;
-               ASSERT(!strFilter.IsEmpty());  // must have a file type name
-               strFilter += L'\0';  // next string please
-               strFilter += L'*';
-               strFilter += strFilterExt;
-               strFilter += L'\0';  // next string please
-               dlg.m_ofn.nMaxCustFilter++;             
-       }
-       // append the "*.*" all files filter
-       CString allFilter;
-       VERIFY(allFilter.LoadString(AFX_IDS_ALLFILTER));
-       strFilter += allFilter;
-       strFilter += L'\0';   // next string please
-       strFilter += L"*.*";
-       strFilter += L'\0';   // last string
-       dlg.m_ofn.nMaxCustFilter++;
-       dlg.m_ofn.lpstrFilter = strFilter;
-
-  if (dlg.DoModal() == IDOK) 
-  {
-       AfxGetApp()->OpenDocumentFile(dlg.GetPathName());
-  }    
-}
diff --git a/samples/mfc/standard/05_ImportExport/src/ImportExportApp.h b/samples/mfc/standard/05_ImportExport/src/ImportExportApp.h
deleted file mode 100755 (executable)
index e023367..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-// ImportExportApp.h : main header file for the IMPORTEXPORT application
-//
-
-#if !defined(AFX_IMPORTEXPORT_H__88A21474_3B23_11D2_8E1E_0800369C8A03__INCLUDED_)
-#define AFX_IMPORTEXPORT_H__88A21474_3B23_11D2_8E1E_0800369C8A03__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include <OCC_App.h>
-
-class CImportExportApp : public OCC_App
-{
-public:
-
-  CImportExportApp();
-
-// Overrides
-  // ClassWizard generated virtual function overrides
-  //{{AFX_VIRTUAL(CImportExportApp)
-  public:
-  virtual BOOL InitInstance();
-  virtual CDocument* OpenDocumentFile(LPCTSTR lpszFileName);
-  //}}AFX_VIRTUAL
-
-protected:
-
-  //{{AFX_MSG(CSerializeApp)
-  afx_msg void OnFileOpen();
-  //}}AFX_MSG
-
-  DECLARE_MESSAGE_MAP()
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-#endif // !defined(AFX_IMPORTEXPORT_H__88A21474_3B23_11D2_8E1E_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/05_ImportExport/src/ImportExportDoc.cpp b/samples/mfc/standard/05_ImportExport/src/ImportExportDoc.cpp
deleted file mode 100755 (executable)
index eaca832..0000000
+++ /dev/null
@@ -1,288 +0,0 @@
-// ImportExportDoc.cpp : implementation of the CImportExportDoc class
-//
-
-
-#include "stdafx.h"
-#include "ImportExportApp.h"
-
-#include "ImportExportDoc.h"
-
-#include <ImportExport/ImportExport.h>
-
-#include <AISDialogs.h>
-#include "res/resource.h"
-
-
-#ifdef _DEBUG
-//#define new DEBUG_NEW  // by cascade
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CImportExportDoc
-
-IMPLEMENT_DYNCREATE(CImportExportDoc, OCC_3dDoc)
-
-BEGIN_MESSAGE_MAP(CImportExportDoc, OCC_3dDoc)
-       //{{AFX_MSG_MAP(CImportExportDoc)
-       ON_COMMAND(ID_FILE_IMPORT_BREP, OnFileImportBrep)
-       ON_COMMAND(ID_FILE_IMPORT_IGES, OnFileImportIges)
-       ON_COMMAND(ID_FILE_EXPORT_IGES, OnFileExportIges)
-       ON_COMMAND(ID_FILE_IMPORT_STEP, OnFileImportStep)
-       ON_COMMAND(ID_FILE_EXPORT_STEP, OnFileExportStep)
-       ON_COMMAND(ID_FILE_EXPORT_VRML, OnFileExportVrml)
-       ON_COMMAND(ID_FILE_EXPORT_STL, OnFileExportStl)
-       ON_COMMAND(ID_BOX, OnBox)
-       ON_COMMAND(ID_Cylinder, OnCylinder)
-       ON_COMMAND(ID_OBJECT_REMOVE, OnObjectRemove)
-       ON_COMMAND(ID_OBJECT_ERASE, OnObjectErase)
-       ON_COMMAND(ID_OBJECT_DISPLAYALL, OnObjectDisplayall)
-       //}}AFX_MSG_MAP
-
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CImportExportDoc construction/destruction
-
-CImportExportDoc::CImportExportDoc()
-: OCC_3dDoc (false)
-{
-/*
-    // TRIHEDRON
-       Handle(AIS_Trihedron) aTrihedron;
-       Handle(Geom_Axis2Placement) aTrihedronAxis=new Geom_Axis2Placement(gp::XOY());
-       aTrihedron=new AIS_Trihedron(aTrihedronAxis);
-       myAISContext->Display(aTrihedron);
-*/
-
-       m_pcoloredshapeList = new CColoredShapes();
-}
-
-CImportExportDoc::~CImportExportDoc()
-{
-       if( m_pcoloredshapeList ) delete m_pcoloredshapeList;
-}
-
-
-/////////////////////////////////////////////////////////////////////////////
-// CSerializeDoc serialization
-
-void CImportExportDoc::Serialize(CArchive& ar)
-{
-       if (ar.IsStoring())
-       {
-               // Put the current CColoredShape in the archive
-               ar << m_pcoloredshapeList;
-       }
-       else
-       {
-               // Read from the archive the current CColoredShape
-               ar >> m_pcoloredshapeList;
-
-               // Display the new object
-               m_pcoloredshapeList->Display(myAISContext);
-       }
-}
-
-
-/*
-void CImportExportDoc::OnWindowNew3d() 
-{
-       ((CImportExportApp*)AfxGetApp())->CreateView3D(this);   
-}
-*/
-
-//  nCmdShow could be :    ( default is SW_RESTORE ) 
-// SW_HIDE   SW_SHOWNORMAL   SW_NORMAL   
-// SW_SHOWMINIMIZED     SW_SHOWMAXIMIZED    
-// SW_MAXIMIZE          SW_SHOWNOACTIVATE   
-// SW_SHOW              SW_MINIMIZE         
-// SW_SHOWMINNOACTIVE   SW_SHOWNA           
-// SW_RESTORE           SW_SHOWDEFAULT      
-// SW_MAX    
-
-// use pViewClass = RUNTIME_CLASS( CImportExportView3D ) for 3D Views
-
-void CImportExportDoc::ActivateFrame(CRuntimeClass* pViewClass,int nCmdShow)
-{
-  POSITION position = GetFirstViewPosition();
-  while (position != (POSITION)NULL)
-  {
-    CView* pCurrentView = (CView*)GetNextView(position);
-     if(pCurrentView->IsKindOf(pViewClass) )
-    {
-        ASSERT_VALID(pCurrentView);
-        CFrameWnd* pParentFrm = pCurrentView->GetParentFrame();
-           ASSERT(pParentFrm != (CFrameWnd *)NULL);
-        // simply make the frame window visible
-           pParentFrm->ActivateFrame(nCmdShow);
-    }
-  }
-
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CImportExportDoc diagnostics
-
-#ifdef _DEBUG
-void CImportExportDoc::AssertValid() const
-{
-       CDocument::AssertValid();
-}
-
-void CImportExportDoc::Dump(CDumpContext& dc) const
-{
-       CDocument::Dump(dc);
-}
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// CImportExportDoc commands
-
-
-void CImportExportDoc::OnFileImportBrep()
-{
-       Handle(TopTools_HSequenceOfShape) aSeqOfShape = CImportExport::ReadBREP();
-       for(int i=1;i<= aSeqOfShape->Length();i++)
-       {
-               m_pcoloredshapeList->Add(Quantity_NOC_YELLOW, aSeqOfShape->Value(i));
-        m_pcoloredshapeList->Display(myAISContext);
-       }
-       Fit();
-}
-
-void CImportExportDoc::OnFileImportIges() 
-{   
-       Handle(TopTools_HSequenceOfShape) aSeqOfShape = CImportExport::ReadIGES();
-       for(int i=1;i<= aSeqOfShape->Length();i++)
-       {
-               m_pcoloredshapeList->Add(Quantity_NOC_YELLOW, aSeqOfShape->Value(i));
-        m_pcoloredshapeList->Display(myAISContext);
-       }
-       Fit();
-}
-void CImportExportDoc::OnFileExportIges() 
-{   CImportExport::SaveIGES(myAISContext);}
-
-void CImportExportDoc::OnFileImportStep() 
-{   
-       Handle(TopTools_HSequenceOfShape) aSeqOfShape = CImportExport::ReadSTEP();
-       for(int i=1;i<= aSeqOfShape->Length();i++)
-       {
-               m_pcoloredshapeList->Add(Quantity_NOC_YELLOW, aSeqOfShape->Value(i));
-        m_pcoloredshapeList->Display(myAISContext);
-       }
-       Fit();
-}
-void CImportExportDoc::OnFileExportStep() 
-{   CImportExport::SaveSTEP(myAISContext);}
-
-
-void CImportExportDoc::OnFileExportVrml() 
-{   CImportExport::SaveVRML(myAISContext);}
-
-void CImportExportDoc::OnFileExportStl() 
-{   CImportExport::SaveSTL(myAISContext);}
-
-void  CImportExportDoc::Popup(const Standard_Integer  x,
-                                                          const Standard_Integer  y ,
-                               const Handle(V3d_View)& aView   ) 
-{
-  Standard_Integer PopupMenuNumber=0;
- myAISContext->InitSelected();
-  if (myAISContext->MoreSelected())
-    PopupMenuNumber=1;
-
-  CMenu menu;
-  VERIFY(menu.LoadMenu(IDR_Popup3D));
-  CMenu* pPopup = menu.GetSubMenu(PopupMenuNumber);
-
-  ASSERT(pPopup != NULL);
-   if (PopupMenuNumber == 1) // more than 1 object.
-  {
-    bool OneOrMoreInShading = false;
-       for (myAISContext->InitSelected();myAISContext->MoreSelected ();myAISContext->NextSelected ())
-    if (myAISContext->IsDisplayed(myAISContext->SelectedInteractive(),1)) OneOrMoreInShading=true;
-       if(!OneOrMoreInShading)
-       pPopup->EnableMenuItem(5, MF_BYPOSITION | MF_DISABLED | MF_GRAYED);
-   }
-
-  POINT winCoord = { x , y };
-  Handle(WNT_Window) aWNTWindow=
-  Handle(WNT_Window)::DownCast(aView->Window());
-  ClientToScreen ( (HWND)(aWNTWindow->HWindow()),&winCoord);
-  pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON , winCoord.x, winCoord.y , 
-                         AfxGetMainWnd());
-
-
-}
-
-void CImportExportDoc::OnBox() 
-{
-       AIS_ListOfInteractive aList;
-       myAISContext->DisplayedObjects(aList);
-       AIS_ListIteratorOfListOfInteractive aListIterator;
-       for(aListIterator.Initialize(aList);aListIterator.More();aListIterator.Next()){
-               myAISContext->Remove (aListIterator.Value(), Standard_False);
-       }
-
-       BRepPrimAPI_MakeBox B(200.,150.,100.);
-
-       m_pcoloredshapeList->Add(Quantity_NOC_YELLOW, B.Shape());
-
-       m_pcoloredshapeList->Display(myAISContext);
-       Fit();
-
-       // document has been modified
-       SetModifiedFlag(TRUE);
-}
-
-void CImportExportDoc::OnCylinder() 
-{
-       AIS_ListOfInteractive aList;
-       myAISContext->DisplayedObjects(aList);
-       AIS_ListIteratorOfListOfInteractive aListIterator;
-       for(aListIterator.Initialize(aList);aListIterator.More();aListIterator.Next()){
-               myAISContext->Remove (aListIterator.Value(), Standard_False);
-       }
-
-       BRepPrimAPI_MakeCylinder C(50.,200.);
-
-       m_pcoloredshapeList->Add(Quantity_NOC_GREEN, C.Shape());
-
-       m_pcoloredshapeList->Display(myAISContext);
-       Fit();
-
-       // document has been modified
-       SetModifiedFlag(TRUE);
-}
-void CImportExportDoc::OnObjectRemove() 
-
-{
-       for(GetAISContext()->InitSelected();GetAISContext()->MoreSelected();GetAISContext()->NextSelected()) {
-               Handle(AIS_Shape) aShape = Handle(AIS_Shape)::DownCast(GetAISContext()->SelectedInteractive());
-               if(!aShape.IsNull()) {
-                       m_pcoloredshapeList->Remove(aShape->Shape());
-               }
-       }
-       OCC_3dBaseDoc::OnObjectRemove();
-}
-
-void CImportExportDoc::OnObjectErase() 
-
-{
-       for(GetAISContext()->InitSelected();GetAISContext()->MoreSelected();GetAISContext()->NextSelected()) {
-               Handle(AIS_Shape) aShape = Handle(AIS_Shape)::DownCast(GetAISContext()->SelectedInteractive());
-               if(!aShape.IsNull()) {
-                       m_pcoloredshapeList->Remove(aShape->Shape());
-               }
-       }
-       OCC_3dBaseDoc::OnObjectErase(); 
-}
-
-void CImportExportDoc::OnObjectDisplayall() 
-
-{
-       OCC_3dBaseDoc::OnObjectDisplayall(); 
-}
\ No newline at end of file
diff --git a/samples/mfc/standard/05_ImportExport/src/ImportExportDoc.h b/samples/mfc/standard/05_ImportExport/src/ImportExportDoc.h
deleted file mode 100755 (executable)
index 7765948..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-// ImportExportDoc.h : interface of the CImportExportDoc class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_IMPORTEXPORTDOC_H__88A2147C_3B23_11D2_8E1E_0800369C8A03__INCLUDED_)
-#define AFX_IMPORTEXPORTDOC_H__88A2147C_3B23_11D2_8E1E_0800369C8A03__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include <ColoredShapes.h>
-#include <OCC_3dDoc.h>
-
-class CImportExportDoc : public OCC_3dDoc
-{
-       DECLARE_DYNCREATE(CImportExportDoc)
-public:
-       CImportExportDoc();
-       virtual ~CImportExportDoc();
-       virtual void Serialize(CArchive& ar);
-
-       void ActivateFrame(CRuntimeClass* pViewClass, int nCmdShow = SW_RESTORE  );
-    virtual void Popup (const Standard_Integer  x       ,
-                                       const Standard_Integer  y       ,
-                        const Handle(V3d_View)& aView   ); 
-
-
-// Implementation
-#ifdef _DEBUG
-       virtual void AssertValid() const;
-       virtual void Dump(CDumpContext& dc) const;
-#endif
-
-// Generated message map functions
-protected:
-       //{{AFX_MSG(CImportExportDoc)
-       afx_msg void OnFileImportIges();
-       afx_msg void OnFileExportIges();
-       afx_msg void OnFileImportStep();
-       afx_msg void OnFileExportStep();
-       afx_msg void OnFileImportBrep();
-//     afx_msg void OnWindowNew3d();
-       afx_msg void OnFileExportVrml();
-       afx_msg void OnFileExportStl();
-       afx_msg void OnBox();
-       afx_msg void OnCylinder();
-       afx_msg void OnObjectRemove();
-       afx_msg void OnObjectErase();
-       afx_msg void OnObjectDisplayall();
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-
-//Attributes
-protected:
-       CColoredShapes* m_pcoloredshapeList;
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_IMPORTEXPORTDOC_H__88A2147C_3B23_11D2_8E1E_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/05_ImportExport/src/StdAfx.cpp b/samples/mfc/standard/05_ImportExport/src/StdAfx.cpp
deleted file mode 100755 (executable)
index 4db8d13..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// stdafx.cpp : source file that includes just the standard includes
-//     SampleImportExport.pch will be the pre-compiled header
-//     stdafx.obj will contain the pre-compiled type information
-
-#include "stdafx.h"
-
diff --git a/samples/mfc/standard/05_ImportExport/src/StdAfx.h b/samples/mfc/standard/05_ImportExport/src/StdAfx.h
deleted file mode 100755 (executable)
index 8f0a7a0..0000000
+++ /dev/null
@@ -1,161 +0,0 @@
-// stdafx.h : include file for standard system include files,
-//  or project specific include files that are used frequently, but
-//      are changed infrequently
-//
-
-#if !defined(AFX_STDAFX_H__88A21476_3B23_11D2_8E1E_0800369C8A03__INCLUDED_)
-#define AFX_STDAFX_H__88A21476_3B23_11D2_8E1E_0800369C8A03__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#define VC_EXTRALEAN           // Exclude rarely-used stuff from Windows headers
-
-#include <afxwin.h>         // MFC core and standard components
-#include <afxext.h>         // MFC extensions
-#include <afxdisp.h>        // MFC OLE automation classes
-#ifndef _AFX_NO_AFXCMN_SUPPORT
-#include <afxcmn.h>                    // MFC support for Windows Common Controls
-#endif // _AFX_NO_AFXCMN_SUPPORT
-
-#define DEFAULT_DEVIATIONCOEFFICIENT 0.001
-#define DEFAULT_DCBIG 0.005
-#define DEFAULT_DCVBIG 0.01
-#define DEFAULT_DCSMALL 0.0002
-#define DEFAULT_DCVSMALL 0.00004
-#define DEFAULT_COLOR Quantity_NOC_CYAN1
-#define DEFAULT_MATERIAL Graphic3d_NameOfMaterial_Plastered
-#define DEFAULT_BACKGROUNDCOLOR Quantity_NOC_MATRAGRAY
-#define DEFAULT_HILIGHTCOLOR Quantity_NOC_YELLOW
-
-#pragma warning(  disable : 4244 )        // Issue warning 4244
-#include <Standard_ShortReal.hxx>
-#pragma warning(  default : 4244 )        // Issue warning 4244
-
-#include <AIS_InteractiveContext.hxx>
-#include <AIS_InteractiveObject.hxx>
-#include <AIS_ListOfInteractive.hxx>
-#include <AIS_ListIteratorOfListOfInteractive.hxx>
-#include <AIS_Shape.hxx>
-#include <AIS_Trihedron.hxx>
-
-#include <Aspect_Background.hxx>
-#include <Aspect_TypeOfline.hxx>
-#include <Aspect_WidthOfline.hxx>
-#include <Aspect_Window.hxx>
-#include <Bnd_Box2d.hxx>
-#include <BndLib_Add2dCurve.hxx>
-#include <BRep_Builder.hxx>
-#include <BRep_Tool.hxx>
-
-#include <BRepBuilderAPI.hxx> 
-#include <BRepAlgo.hxx> 
-#include <BRepTools.hxx>
-#include <BRepPrimAPI_MakeBox.hxx>
-#include <BRepPrimAPI_MakeCylinder.hxx>
-#include <Standard_DefineHandle.hxx>
-#include <DsgPrs_LengthPresentation.hxx>
-#include <GCE2d_MakeSegment.hxx>
-#include <GCPnts_TangentialDeflection.hxx>
-#include <Geom_CartesianPoint.hxx>
-#include <Geom_Axis2Placement.hxx>
-#include <Geom_CartesianPoint.hxx>
-#include <Geom_Line.hxx>
-#include <Geom_Surface.hxx>
-#include <Geom2d_BezierCurve.hxx>
-#include <Geom2d_BSplineCurve.hxx>
-#include <Geom2d_Curve.hxx>
-#include <Geom2d_TrimmedCurve.hxx>
-#include <Geom2dAdaptor_Curve.hxx>
-#include <GeomAbs_CurveType.hxx>
-#include <GeomAdaptor_Curve.hxx>
-#include <GeomTools_Curve2dSet.hxx>
-#include <gp_Ax2d.hxx>
-#include <gp_Circ2d.hxx>
-#include <gp_Dir2d.hxx>
-#include <gp_Lin2d.hxx>
-#include <gp_Pnt2d.hxx>
-#include <gp_Vec.hxx>
-#include <gp_Vec2d.hxx>
-#include <OSD_Environment.hxx>
-#include <Precision.hxx>
-#include <Prs3d_Drawer.hxx>
-#include <Prs3d_IsoAspect.hxx>
-#include <Prs3d_LineAspect.hxx>
-#include <Prs3d_Text.hxx>
-#include <Quantity_NameOfColor.hxx>
-#include <Quantity_TypeOfColor.hxx>
-#include <SelectMgr_EntityOwner.hxx>
-#include <SelectMgr_SelectableObject.hxx>
-#include <SelectMgr_Selection.hxx>
-#include <SelectMgr_SelectionManager.hxx>
-#include <Standard_Boolean.hxx>
-#include <Standard_CString.hxx>
-#include <Standard_ErrorHandler.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_IStream.hxx>
-#include <Standard_Macro.hxx>
-#include <Standard_NotImplemented.hxx>
-#include <Standard_OStream.hxx>
-#include <Standard_Real.hxx>
-#include <StdPrs_Curve.hxx>
-#include <StdPrs_Point.hxx>
-#include <StdPrs_PoleCurve.hxx>
-#include <TCollection_AsciiString.hxx>
-#include <TColgp_Array1OfPnt2d.hxx>
-#include <TColgp_HArray1OfPnt2d.hxx>
-#include <TCollection_AsciiString.hxx>
-#include <TColStd_HSequenceOfTransient.hxx>
-#include <TColStd_MapIteratorOfMapOfTransient.hxx>
-#include <TColStd_MapOfTransient.hxx>
-#include <TopExp_Explorer.hxx>
-#include <TopoDS.hxx>
-#include <TopoDS_Compound.hxx>
-#include <TopoDS_ListIteratorOfListOfShape.hxx>
-#include <TopoDS_Shape.hxx>
-#include <TopoDS_Solid.hxx>
-#include <TopoDS_Vertex.hxx>
-#include <TopExp.hxx>
-#include <TopTools_ListIteratorOfListOfShape.hxx>
-#include <TopTools_HSequenceOfShape.hxx>
-#include <TopTools_DataMapOfShapeInteger.hxx>
-#include <UnitsAPI.hxx>
-#include <V3d_View.hxx>
-#include <V3d_Viewer.hxx>
-#include <WNT_Window.hxx>
-
-// specific STEP
-
-#include <STEPControl_Controller.hxx>
-#include <STEPControl_Reader.hxx>
-#include <STEPControl_Writer.hxx>
-
-
-// specific IGES
-#include <Interface_InterfaceModel.hxx>
-#include <Interface_Static.hxx>
-
-#include <IGESControl_Controller.hxx>
-#include <IGESControl_Writer.hxx>
-
-#include <IGESToBRep_Actor.hxx>
-#include <IGESToBRep_Reader.hxx>
-#include <XSControl_WorkSession.hxx>
-
-#include <STEPControl_StepModelType.hxx>
-
-//#include <TransferBRep_Analyzer.hxx>
-
-// specific STL VRML
-#include "StlAPI_Writer.hxx"
-#include "VrmlAPI_Writer.hxx"
-
-//End CasCade
-
-
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_STDAFX_H__88A21476_3B23_11D2_8E1E_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/06_Ocaf/CMakeLists.txt b/samples/mfc/standard/06_Ocaf/CMakeLists.txt
deleted file mode 100644 (file)
index 8a45d10..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-cmake_minimum_required (VERSION 2.6)
-
-project (Ocaf)
-
-add_definitions (-DWINVER=0x0501 -DUNICODE -D_UNICODE)
-set (CMAKE_MFC_FLAG 2)
-
-set (Ocaf_SRC_DIR      ${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf/src)
-set (Ocaf_HEADER_FILES ${Ocaf_SRC_DIR}/NewBoxDlg.h
-                       ${Ocaf_SRC_DIR}/NewCylDlg.h
-                       ${Ocaf_SRC_DIR}/OcafApp.h
-                       ${Ocaf_SRC_DIR}/OcafDoc.h
-                       ${Ocaf_SRC_DIR}/OcafMainFrm.h
-                       ${Ocaf_SRC_DIR}/TOcaf_Commands.hxx
-                       ${Ocaf_SRC_DIR}/StdAfx.h )
-set (Ocaf_SOURCE_FILES ${Ocaf_SRC_DIR}/NewBoxDlg.cpp
-                       ${Ocaf_SRC_DIR}/NewCylDlg.cpp
-                       ${Ocaf_SRC_DIR}/OcafApp.cpp
-                       ${Ocaf_SRC_DIR}/OcafDoc.cpp
-                       ${Ocaf_SRC_DIR}/OcafMainFrm.cpp
-                       ${Ocaf_SRC_DIR}/TOcaf_Application.cxx
-                       ${Ocaf_SRC_DIR}/TOcaf_Commands.cxx
-                       ${Ocaf_SRC_DIR}/TOcafFunction_BoxDriver.cxx
-                       ${Ocaf_SRC_DIR}/TOcafFunction_CutDriver.cxx
-                       ${Ocaf_SRC_DIR}/TOcafFunction_CylDriver.cxx
-                       ${Ocaf_SRC_DIR}/StdAfx.cpp )
-
-set (Ocaf_RESOURCE_DIR    ${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf/res)
-set (Ocaf_RESOURCE_HEADER ${Ocaf_RESOURCE_DIR}/resource.h)
-set (Ocaf_RESOURCE_FILES  ${Ocaf_RESOURCE_DIR}/ActionsTB.bmp
-                          ${Ocaf_RESOURCE_DIR}/AIS_TB.bmp
-                          ${Ocaf_RESOURCE_DIR}/Toolbar.bmp
-                          ${Ocaf_RESOURCE_DIR}/UndoRedoTB.bmp
-                          ${Ocaf_RESOURCE_DIR}/Ocaf.rc)
-
-# groups in the VS solution
-source_group ("Source Files" FILES ${Ocaf_SOURCE_FILES}
-                                   ${COMMON_WINMAIN_FILE})
-
-source_group ("Header Files" FILES ${Ocaf_HEADER_FILES}
-                                   ${Ocaf_RESOURCE_HEADER})
-
-source_group ("Resource Files" FILES ${Ocaf_RESOURCE_FILES})
-
-add_executable (Ocaf WIN32 ${Ocaf_SOURCE_FILES}
-                           ${Ocaf_HEADER_FILES}
-                           ${COMMON_WINMAIN_FILE}
-                           ${Ocaf_RESOURCE_HEADER}
-                           ${Ocaf_RESOURCE_FILES} )
-
-
-set_property (TARGET Ocaf PROPERTY FOLDER "Samples/mfc")
-
-if (SINGLE_GENERATOR)
-  install (TARGETS Ocaf DESTINATION "${INSTALL_DIR_BIN}")
-else()
-  install (TARGETS Ocaf
-           CONFIGURATIONS Release RelWithDebInfo
-           DESTINATION "${INSTALL_DIR_BIN}")
-  install (TARGETS Ocaf
-           CONFIGURATIONS Debug
-           DESTINATION "${INSTALL_DIR_BIN}d")
-endif()
-
-include_directories (${CMAKE_BINARY_DIR}/inc
-                     ${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf
-                     ${Ocaf_SRC_DIR}
-                     ${MFC_STANDARD_SAMPLES_DIR}/Common)
-
-target_link_libraries (Ocaf mfcsample TKLCAF TKVCAF TKBO TKBin TKXml TKBinL TKXmlL)
diff --git a/samples/mfc/standard/06_Ocaf/adm/win/vc10/Ocaf.vcxproj b/samples/mfc/standard/06_Ocaf/adm/win/vc10/Ocaf.vcxproj
deleted file mode 100644 (file)
index a68e892..0000000
+++ /dev/null
@@ -1,493 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|Win32">
-      <Configuration>Debug</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Debug|x64">
-      <Configuration>Debug</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|x64">
-      <Configuration>Release</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectGuid>{B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}</ProjectGuid>
-    <RootNamespace>Ocaf</RootNamespace>
-    <Keyword>MFCProj</Keyword>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <PropertyGroup>
-    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../../../win32\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\win32\obj\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">../../../../win64\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\win64\obj\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../../../../win32\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\win32\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">../../../../win64\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\win64\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\obj/Ocaf.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;...\..\..\res;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\obj/Ocaf.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKLCAF.lib;TKBrep.lib;TKIGES.lib;TKShHealing.lib;TKStep.lib;TKXSBase.lib;TKBO.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKBin.lib;TKXml.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bin/Ocaf.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bin/Ocaf.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\obj/Ocaf.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;...\..\..\res;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\obj/Ocaf.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKLCAF.lib;TKBrep.lib;TKIGES.lib;TKShHealing.lib;TKStep.lib;TKXSBase.lib;TKBO.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKBin.lib;TKXml.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bin/Ocaf.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bin/Ocaf.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\objd/Ocaf.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;...\..\..\res;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\objd/Ocaf.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\objd/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKLCAF.lib;TKBrep.lib;TKIGES.lib;TKShHealing.lib;TKStep.lib;TKXSBase.lib;TKBO.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKBin.lib;TKXml.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bind/Ocaf.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bind/Ocaf.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\objd/Ocaf.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\src;...\..\..\res;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\objd/Ocaf.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\objd/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKLCAF.lib;TKBrep.lib;TKIGES.lib;TKShHealing.lib;TKStep.lib;TKXSBase.lib;TKBO.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKBin.lib;TKXml.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bind/Ocaf.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bind/Ocaf.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\NewBoxDlg.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\NewCylDlg.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\OcafApp.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\OcafDoc.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\OcafMainFrm.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\StdAfx.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\TOcaf_Application.cxx">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\TOcaf_Commands.cxx">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\TOcafFunction_BoxDriver.cxx">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\TOcafFunction_CutDriver.cxx">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\TOcafFunction_CylDriver.cxx">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\res\Ocaf.rc">
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-    </ResourceCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\src\TOcaf_Application.hxx" />
-    <ClInclude Include="..\..\..\src\TOcafFunction_BoxDriver.hxx" />
-    <ClInclude Include="..\..\..\src\TOcafFunction_CutDriver.hxx" />
-    <ClInclude Include="..\..\..\src\TOcafFunction_CylDriver.hxx" />
-    <ClInclude Include="..\..\..\src\NewBoxDlg.h" />
-    <ClInclude Include="..\..\..\src\NewCylDlg.h" />
-    <ClInclude Include="..\..\..\src\OcafApp.h" />
-    <ClInclude Include="..\..\..\src\OcafDoc.h" />
-    <ClInclude Include="..\..\..\src\OcafMainFrm.h" />
-    <ClInclude Include="..\..\..\res\resource.h" />
-    <ClInclude Include="..\..\..\src\StdAfx.h" />
-    <ClInclude Include="..\..\..\src\TOcaf_Commands.hxx" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\res\ActionsTB.bmp" />
-    <None Include="..\..\..\res\AIS_TB.bmp" />
-    <None Include="..\..\..\res\Toolbar.bmp" />
-    <None Include="..\..\..\res\UndoRedoTB.bmp" />
-  </ItemGroup>
-  <ItemGroup>
-    <ProjectReference Include="..\..\..\..\mfcsample\adm\win\vc10\mfcsample.vcxproj">
-      <Project>{2d6cbbe8-6965-4016-b503-0d715ae26691}</Project>
-      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
-    </ProjectReference>
-  </ItemGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/06_Ocaf/adm/win/vc10/Ocaf.vcxproj.filters b/samples/mfc/standard/06_Ocaf/adm/win/vc10/Ocaf.vcxproj.filters
deleted file mode 100644 (file)
index 976b07f..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
-    <Filter Include="Source Files">
-      <UniqueIdentifier>{3c30d6ca-d9bc-459f-99b6-9cc644fb9093}</UniqueIdentifier>
-      <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
-    </Filter>
-    <Filter Include="Header Files">
-      <UniqueIdentifier>{84ea6fae-dd93-4f6d-b50f-ed88ccc5ce98}</UniqueIdentifier>
-      <Extensions>h;hpp;hxx;hm;inl</Extensions>
-    </Filter>
-    <Filter Include="Resource Files">
-      <UniqueIdentifier>{185b7bc3-efac-469b-960c-918d0e30bc03}</UniqueIdentifier>
-      <Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
-    </Filter>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\NewBoxDlg.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\NewCylDlg.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\OcafApp.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\OcafDoc.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\OcafMainFrm.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\StdAfx.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\TOcaf_Application.cxx">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\TOcaf_Commands.cxx">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\TOcafFunction_BoxDriver.cxx">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\TOcafFunction_CutDriver.cxx">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\TOcafFunction_CylDriver.cxx">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\res\Ocaf.rc">
-      <Filter>Source Files</Filter>
-    </ResourceCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\src\TOcaf_Application.hxx">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\TOcafFunction_BoxDriver.hxx">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\TOcafFunction_CutDriver.hxx">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\TOcafFunction_CylDriver.hxx">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\NewBoxDlg.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\NewCylDlg.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\OcafApp.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\OcafDoc.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\OcafMainFrm.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\res\resource.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\StdAfx.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\TOcaf_Commands.hxx">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\res\ActionsTB.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\AIS_TB.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\Toolbar.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\UndoRedoTB.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-  </ItemGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/06_Ocaf/res/AIS_TB.bmp b/samples/mfc/standard/06_Ocaf/res/AIS_TB.bmp
deleted file mode 100755 (executable)
index f104c7f..0000000
Binary files a/samples/mfc/standard/06_Ocaf/res/AIS_TB.bmp and /dev/null differ
diff --git a/samples/mfc/standard/06_Ocaf/res/ActionsTB.bmp b/samples/mfc/standard/06_Ocaf/res/ActionsTB.bmp
deleted file mode 100755 (executable)
index f3bd7b6..0000000
Binary files a/samples/mfc/standard/06_Ocaf/res/ActionsTB.bmp and /dev/null differ
diff --git a/samples/mfc/standard/06_Ocaf/res/Ocaf.rc b/samples/mfc/standard/06_Ocaf/res/Ocaf.rc
deleted file mode 100755 (executable)
index 7e2d993..0000000
+++ /dev/null
@@ -1,390 +0,0 @@
-//Microsoft Developer Studio generated resource script.
-//
-#include "resource.h"
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
-#include "afxres.h"
-#include "..\..\Common\res\OCC_Resource.h"
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-// English (U.S.) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-#pragma code_page(1252)
-#endif //_WIN32
-
-#ifdef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE DISCARDABLE 
-BEGIN
-    "resource.h\0"
-END
-
-2 TEXTINCLUDE DISCARDABLE 
-BEGIN
-    "#include ""afxres.h""\r\n"
-    "#include ""..\\..\\Common\\res\\OCC_Resource.h""\0"
-END
-
-3 TEXTINCLUDE DISCARDABLE 
-BEGIN
-    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
-    "#define _AFX_NO_OLE_RESOURCES\r\n"
-    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
-    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
-    "\r\n"
-    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
-    "#ifdef _WIN32\r\n"
-    "LANGUAGE 9, 1\r\n"
-    "#pragma code_page(1252)\r\n"
-    "#endif //_WIN32\r\n"
-    "#include ""afxres.rc""         // Standard components\r\n"
-    "#endif\r\n"
-    "\0"
-END
-
-#endif    // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Bitmap
-//
-
-IDR_MAINFRAME           BITMAP  MOVEABLE PURE   "Toolbar.bmp"
-IDR_UNDOREDO            BITMAP  DISCARDABLE     "UndoRedoTB.bmp"
-IDR_ACTIONS             BITMAP  DISCARDABLE     "ActionsTB.bmp"
-IDR_TB_AIS              BITMAP  MOVEABLE PURE   "AIS_TB.bmp"
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Toolbar
-//
-
-IDR_MAINFRAME TOOLBAR DISCARDABLE  16, 15
-BEGIN
-    BUTTON      ID_FILE_NEW
-    BUTTON      ID_FILE_OPEN
-    BUTTON      ID_FILE_SAVE
-    SEPARATOR
-    BUTTON      ID_APP_ABOUT
-END
-
-IDR_UNDOREDO TOOLBAR DISCARDABLE  16, 15
-BEGIN
-    BUTTON      ID_EDIT_UNDO
-    BUTTON      ID_EDIT_REDO
-END
-
-IDR_ACTIONS TOOLBAR DISCARDABLE  16, 15
-BEGIN
-    BUTTON      ID_CREATEBOX
-    BUTTON      ID_CREATECYL
-    BUTTON      ID_CUT
-    BUTTON      ID_MODIFY
-//    BUTTON      ID_DFBR
-END
-
-IDR_TB_AIS TOOLBAR DISCARDABLE  16, 15
-BEGIN
-    BUTTON      ID_OBJECT_WIREFRAME
-    BUTTON      ID_OBJECT_SHADING
-    SEPARATOR
-    BUTTON      ID_OBJECT_COLOR
-    BUTTON      ID_OBJECT_MATERIAL
-    BUTTON      ID_OBJECT_TRANSPARENCY
-    SEPARATOR
-    BUTTON      ID_OBJECT_DELETE
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Menu
-//
-
-IDR_MAINFRAME MENU PRELOAD DISCARDABLE 
-BEGIN
-    POPUP "&File"
-    BEGIN
-        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
-        MENUITEM "&Open...\tCtrl+O",            ID_FILE_OPEN
-        MENUITEM SEPARATOR
-        MENUITEM "Recent File",                 ID_FILE_MRU_FILE1, GRAYED
-        MENUITEM SEPARATOR
-        MENUITEM "E&xit",                       ID_APP_EXIT
-    END
-    POPUP "&View"
-    BEGIN
-        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
-        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
-    END
-    POPUP "&Help"
-    BEGIN
-        MENUITEM "&About Ocaf...",              ID_APP_ABOUT
-    END
-END
-
-IDR_3DTYPE MENU PRELOAD DISCARDABLE 
-BEGIN
-    POPUP "&File"
-    BEGIN
-        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
-        MENUITEM "&Open...\tCtrl+O",            ID_FILE_OPEN
-        MENUITEM "&Close",                      ID_FILE_CLOSE
-        MENUITEM "&Save\tCtrl+S",               ID_FILE_SAVE
-        MENUITEM "Save &As...",                 ID_FILE_SAVE_AS
-        MENUITEM SEPARATOR
-        POPUP "Export"
-        BEGIN
-            MENUITEM "BRep...",                     ID_FILE_EXPORT_BREP
-            MENUITEM SEPARATOR
-            MENUITEM "Image...",                    ID_FILE_EXPORT_IMAGE
-        END
-        MENUITEM SEPARATOR
-        MENUITEM "Recent File",                 ID_FILE_MRU_FILE1, GRAYED
-        MENUITEM SEPARATOR
-        MENUITEM "E&xit",                       ID_APP_EXIT
-    END
-    POPUP "&View"
-    BEGIN
-        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
-        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
-    END
-    POPUP "&Window"
-    BEGIN
-        MENUITEM "New Window &3D",              ID_WINDOW_NEW
-        MENUITEM "&Cascade",                    ID_WINDOW_CASCADE
-        MENUITEM "&Tile",                       ID_WINDOW_TILE_HORZ
-        MENUITEM "&Arrange Icons",              ID_WINDOW_ARRANGE
-    END
-    POPUP "&Help"
-    BEGIN
-        MENUITEM "&About OCAF...",              ID_APP_ABOUT
-    END
-END
-
-IDR_Popup3D MENU DISCARDABLE 
-BEGIN
-    POPUP "BackGround"
-    BEGIN
-        MENUITEM "Background Color...",         ID_Modify_ChangeBackground
-    END
-    POPUP "Object(s)"
-    BEGIN
-        MENUITEM "Delete",                      ID_OBJECT_DELETE
-        MENUITEM "Shading",                     ID_OBJECT_SHADING
-        MENUITEM "Wireframe",                   ID_OBJECT_WIREFRAME
-        MENUITEM "Color...",                    ID_OBJECT_COLOR
-        MENUITEM "Material...",                 ID_OBJECT_MATERIAL
-        POPUP "Material"
-        BEGIN
-            MENUITEM "Aluminium",                   ID_OBJECT_MATERIAL_ALUMINIUM
-
-            MENUITEM "Brass",                       ID_OBJECT_MATERIAL_BRASS
-            MENUITEM "Bronze",                      ID_OBJECT_MATERIAL_BRONZE
-
-            MENUITEM "Chrome",                      ID_OBJECT_MATERIAL_CHROME
-
-            MENUITEM "Copper",                      ID_OBJECT_MATERIAL_COPPER
-
-            MENUITEM "Gold",                        ID_OBJECT_MATERIAL_GOLD
-            MENUITEM "Jade",                        ID_OBJECT_MATERIAL_JADE
-            MENUITEM "Metalized",                   ID_OBJECT_MATERIAL_METALIZED
-
-            MENUITEM "Neon GNC",                    ID_OBJECT_MATERIAL_NEON_GNC
-
-            MENUITEM "Neon PHC",                    ID_OBJECT_MATERIAL_NEON_PHC
-
-            MENUITEM "Obsidian",                    ID_OBJECT_MATERIAL_OBSIDIAN
-
-            MENUITEM "Pewter",                      ID_OBJECT_MATERIAL_PEWTER
-
-            MENUITEM "Plaster",                     ID_OBJECT_MATERIAL_PLASTER
-
-            MENUITEM "Plastic",                     ID_OBJECT_MATERIAL_PLASTIC
-
-            MENUITEM "Satin",                       ID_OBJECT_MATERIAL_SATIN
-            MENUITEM "Shiny plastic",               ID_OBJECT_MATERIAL_SHINY_PLASTIC
-
-            MENUITEM "Silver",                      ID_OBJECT_MATERIAL_SILVER
-
-            MENUITEM "Steel",                       ID_OBJECT_MATERIAL_STEEL
-            MENUITEM "Stone",                       ID_OBJECT_MATERIAL_STONE
-            MENUITEM SEPARATOR
-            MENUITEM "Default",                     ID_OBJECT_MATERIAL_DEFAULT
-
-        END
-        MENUITEM "Transparency...",             ID_OBJECT_TRANSPARENCY
-        MENUITEM SEPARATOR
-        MENUITEM "Modify attributes",           ID_MODIFY
-    END
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Dialog
-//
-
-IDD_NEWBOX DIALOG DISCARDABLE  0, 0, 90, 170
-STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
-CAPTION "     Box parameters"
-FONT 8, "MS Sans Serif"
-BEGIN
-    DEFPUSHBUTTON   "OK",IDOK,4,149,38,14
-    PUSHBUTTON      "Cancel",IDCANCEL,45,149,38,14
-    LTEXT           "Name",IDC_STATIC,12,132,24,11
-    EDITTEXT        IDC_NAME,36,130,40,14,ES_AUTOHSCROLL
-    EDITTEXT        IDC_X,36,15,40,14,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "X",IDC_STATIC,14,18,8,8
-    EDITTEXT        IDC_Y,36,32,40,14,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "Y",IDC_STATIC,14,35,8,8
-    EDITTEXT        IDC_Z,36,48,40,14,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "Z",IDC_STATIC,14,51,8,8
-    GROUPBOX        "Position",IDC_STATIC,4,7,79,59
-    EDITTEXT        IDC_L,36,76,40,14,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "L",IDC_STATIC,14,79,8,8
-    EDITTEXT        IDC_H,36,94,40,14,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "H",IDC_STATIC,14,97,8,8
-    EDITTEXT        IDC_W,36,110,40,14,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "W",IDC_STATIC,14,113,8,8
-    GROUPBOX        "Dimension",IDC_STATIC,4,66,79,61
-END
-
-IDD_NEWCYL DIALOG DISCARDABLE  0, 0, 90, 151
-STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION
-CAPTION "  Cylinder parameters"
-FONT 8, "MS Sans Serif"
-BEGIN
-    DEFPUSHBUTTON   "OK",IDOK,4,130,38,14
-    PUSHBUTTON      "Cancel",IDCANCEL,45,130,38,14
-    LTEXT           "Name",-1,13,116,24,11
-    EDITTEXT        IDC_NAME,37,114,40,14,ES_AUTOHSCROLL
-    EDITTEXT        IDC_X,36,15,40,14,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "X",-1,14,18,8,8
-    EDITTEXT        IDC_Y,36,32,40,14,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "Y",-1,14,35,8,8
-    EDITTEXT        IDC_Z,36,48,40,14,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "Z",-1,14,51,8,8
-    GROUPBOX        "Position",-1,4,7,79,59
-    EDITTEXT        IDC_R,36,76,40,14,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "R",-1,14,79,8,8
-    EDITTEXT        IDC_H,36,94,40,14,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "H",-1,14,97,8,8
-    GROUPBOX        "Dimension",-1,4,67,79,44
-END
-
-
-#ifndef _MAC
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,0,0,1
- PRODUCTVERSION 1,0,0,1
- FILEFLAGSMASK 0x3fL
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x4L
- FILETYPE 0x1L
- FILESUBTYPE 0x0L
-BEGIN
-    BLOCK "StringFileInfo"
-    BEGIN
-        BLOCK "040904B0"
-        BEGIN
-            VALUE "CompanyName", "Open CASCADE Company\0"
-            VALUE "FileDescription", "Ocaf MFC Application\0"
-            VALUE "FileVersion", "1, 0, 0, 1\0"
-            VALUE "InternalName", "Ocaf\0"
-            VALUE "LegalCopyright", "Copyright (C) 2003\0"
-            VALUE "LegalTrademarks", "\0"
-            VALUE "OriginalFilename", "Ocaf.EXE\0"
-            VALUE "ProductName", "Ocaf Application\0"
-            VALUE "ProductVersion", "1, 0, 0, 1\0"
-        END
-    END
-    BLOCK "VarFileInfo"
-    BEGIN
-        VALUE "Translation", 0x409, 1200
-    END
-END
-
-#endif    // !_MAC
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// String Table
-//
-
-STRINGTABLE PRELOAD DISCARDABLE 
-BEGIN
-    IDR_MAINFRAME           "OCAF"
-    IDR_3DTYPE              "\nOCAF\nOCAF\nOCAF Files(*.sta)\n.sta\nOcaf.Document\nOCAF  Document"
-END
-
-STRINGTABLE DISCARDABLE 
-BEGIN
-    ID_EDIT_UNDO            "Undo the last action\nUndo"
-    ID_EDIT_REDO            "Redo the previously undone action\nRedo"
-END
-
-STRINGTABLE DISCARDABLE 
-BEGIN
-    ID_CREATEBOX            "Create a box using function driver\nBox"
-    ID_CUT                  "Cut operation\nCut"
-    ID_CREATECYL            "Create a cylinder using function driver\nCylinder"
-    ID_MODIFY               "Modify and recompute selected object\nModification"
-//    ID_DFBR                 "Loading DF browser\nData Framework browser"
-END
-
-STRINGTABLE DISCARDABLE 
-BEGIN
-    AFX_IDS_APP_TITLE       "Ocaf"
-END
-
-#endif    // English (U.S.) resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-#define _AFX_NO_SPLITTER_RESOURCES
-#define _AFX_NO_OLE_RESOURCES
-#define _AFX_NO_TRACKER_RESOURCES
-#define _AFX_NO_PROPERTY_RESOURCES
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE 9, 1
-#pragma code_page(1252)
-#endif //_WIN32
-#include "afxres.rc"         // Standard components
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-#endif    // not APSTUDIO_INVOKED
-
diff --git a/samples/mfc/standard/06_Ocaf/res/Plugin b/samples/mfc/standard/06_Ocaf/res/Plugin
deleted file mode 100755 (executable)
index fb9786f..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-! Description of available plugins
-! ********************************
-!
-! XmlOcaf Document Plugin
-!
-03a56820-8269-11d5-aab2-0050044b1af1.Location: TKXml
-03a56822-8269-11d5-aab2-0050044b1af1.Location: TKXml
-03a56824-8269-11d5-aab2-0050044b1af1.Location: TKXml
-!
-! XmlLOcaf Document Plugin
-!
-13a56820-8269-11d5-aab2-0050044b1af1.Location: TKXmlL
-13a56822-8269-11d5-aab2-0050044b1af1.Location: TKXmlL
-13a56824-8269-11d5-aab2-0050044b1af1.Location: TKXmlL
-!
-! BinOcaf Document Plugin
-!
-03a56835-8269-11d5-aab2-0050044b1af1.Location: TKBin
-03a56836-8269-11d5-aab2-0050044b1af1.Location: TKBin
-!
-! BinLOcaf Document Plugin
-!
-13a56835-8269-11d5-aab2-0050044b1af1.Location: TKBinL
-13a56836-8269-11d5-aab2-0050044b1af1.Location: TKBinL
-!
-! XmlXCAF Document Plugin
-!
-f78ff496-a779-11d5-aab4-0050044b1af1.Location: TKXmlXCAF
-f78ff497-a779-11d5-aab4-0050044b1af1.Location: TKXmlXCAF
-!
-! BinXCAF Document Plugin
-!
-a78ff496-a779-11d5-aab4-0050044b1af1.Location: TKBinXCAF
-a78ff497-a779-11d5-aab4-0050044b1af1.Location: TKBinXCAF
-!
-! TObjXml Document Plugin
-!
-f78ff4a0-a779-11d5-aab4-0050044b1af1.Location: TKXmlTObj
-f78ff4a1-a779-11d5-aab4-0050044b1af1.Location: TKXmlTObj
-!
-! TObjBin Document Plugin
-!
-f78ff4a2-a779-11d5-aab4-0050044b1af1.Location: TKBinTObj
-f78ff4a3-a779-11d5-aab4-0050044b1af1.Location: TKBinTObj
diff --git a/samples/mfc/standard/06_Ocaf/res/Resources b/samples/mfc/standard/06_Ocaf/res/Resources
deleted file mode 100755 (executable)
index 2034eeb..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-formatlist:XmlOcaf|BinOcaf
-!
-! XmlOcaf format
-!
-XmlOcaf.Description: Xml Document Version 1.0
-XmlOcaf.FileExtension: xml
-XmlOcaf.StoragePlugin: 03a56820-8269-11d5-aab2-0050044b1af1
-XmlOcaf.RetrievalPlugin: 03a56822-8269-11d5-aab2-0050044b1af1
-!
-! BinOcaf format
-!
-BinOcaf.Description: Bin Ocaf Document Version 1.0
-BinOcaf.FileExtension: cbf
-BinOcaf.StoragePlugin: 03a56835-8269-11d5-aab2-0050044b1af1
-BinOcaf.RetrievalPlugin: 03a56836-8269-11d5-aab2-0050044b1af1
diff --git a/samples/mfc/standard/06_Ocaf/res/Toolbar.bmp b/samples/mfc/standard/06_Ocaf/res/Toolbar.bmp
deleted file mode 100755 (executable)
index e630088..0000000
Binary files a/samples/mfc/standard/06_Ocaf/res/Toolbar.bmp and /dev/null differ
diff --git a/samples/mfc/standard/06_Ocaf/res/UndoRedoTB.bmp b/samples/mfc/standard/06_Ocaf/res/UndoRedoTB.bmp
deleted file mode 100755 (executable)
index 2876a29..0000000
Binary files a/samples/mfc/standard/06_Ocaf/res/UndoRedoTB.bmp and /dev/null differ
diff --git a/samples/mfc/standard/06_Ocaf/res/resource.h b/samples/mfc/standard/06_Ocaf/res/resource.h
deleted file mode 100755 (executable)
index b9b6a86..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-//{{NO_DEPENDENCIES}}
-// Microsoft Developer Studio generated include file.
-// Used by Ocaf.rc
-//
-#define IDR_ACTIONS                     500
-#define IDR_UNDOREDO                    520
-#define IDD_NEWBOX                      529
-#define IDD_NEWCYL                      530
-#define ID_WINDOW_NEW3D                 1151
-#define ID_OBJECT_DELETE                1202
-#define IDC_R                           1650
-#define IDC_X                           1659
-#define IDC_L                           1660
-#define IDC_Y                           1663
-#define IDC_Z                           1664
-#define IDC_H                           1665
-#define IDC_W                           1666
-#define IDC_NAME                        1673
-#define ID_CREATEBOX                    3000
-#define ID_CUT                          3002
-#define ID_CREATECYL                    3003
-#define ID_MODIFY                       3004
-//#define ID_DFBR                         3007
-
-// Next default values for new objects
-// 
-#ifdef APSTUDIO_INVOKED
-#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_3D_CONTROLS                     1
-#define _APS_NEXT_RESOURCE_VALUE        504
-#define _APS_NEXT_COMMAND_VALUE         3007
-#define _APS_NEXT_CONTROL_VALUE         1658
-#define _APS_NEXT_SYMED_VALUE           600
-#endif
-#endif
diff --git a/samples/mfc/standard/06_Ocaf/src/DebugBrowser.hxx b/samples/mfc/standard/06_Ocaf/src/DebugBrowser.hxx
deleted file mode 100755 (executable)
index f788826..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-
-#ifndef _DebugBrowser_HeaderFile
-#define _DebugBrowser_HeaderFile
-
-#ifndef _Standard_Integer_HeaderFile
-#include <Standard_Integer.hxx>
-#endif
-class TDocStd_Document;
-class DebugBrowser_Attr;
-class DebugBrowser_DFTree;
-class DebugBrowser_DFNode;
-class DebugBrowser_AttrNode;
-class DebugBrowser_LabelNode;
-class DebugBrowser_ListNode;
-class DebugBrowser_NSNode;
-class DebugBrowser_GUI;
-class DebugBrowser_DataMapOfIntegerExtString;
-class DebugBrowser_QTGUI;
-class DebugBrowser_DataMapNodeOfDataMapOfIntegerExtString;
-class DebugBrowser_DataMapIteratorOfDataMapOfIntegerExtString;
-
-
-#ifndef _Standard_HeaderFile
-#include <Standard.hxx>
-#endif
-#ifndef _Standard_Macro_HeaderFile
-#include <Standard_Macro.hxx>
-#endif
-
-class DebugBrowser  {
-
-public:
-
-    inline void* operator new(size_t,void* anAddress) 
-      {
-        return anAddress;
-      }
-    inline void* operator new(size_t size) 
-      { 
-        return Standard::Allocate(size); 
-      }
-    inline void  operator delete(void *anAddress) 
-      { 
-        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
-      }
-//    inline void  operator delete(void *anAddress, size_t size) 
-//      { 
-//        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
-//      }
- // Methods PUBLIC
- // 
-Standard_EXPORT static  Standard_Integer DFBrowser(const Handle(TDocStd_Document)& theDoc) ;
-
-
-
-
-
-protected:
-
- // Methods PROTECTED
- // 
-
-
- // Fields PROTECTED
- //
-
-
-private: 
-
- // Methods PRIVATE
- // 
-
-
- // Fields PRIVATE
- //
-
-friend class DebugBrowser_Attr;
-friend class DebugBrowser_DFTree;
-friend class DebugBrowser_DFNode;
-friend class DebugBrowser_AttrNode;
-friend class DebugBrowser_LabelNode;
-friend class DebugBrowser_ListNode;
-friend class DebugBrowser_NSNode;
-friend class DebugBrowser_GUI;
-friend class DebugBrowser_DataMapOfIntegerExtString;
-friend class DebugBrowser_QTGUI;
-friend class DebugBrowser_DataMapNodeOfDataMapOfIntegerExtString;
-friend class DebugBrowser_DataMapIteratorOfDataMapOfIntegerExtString;
-
-};
-
-
-
-
-
-// other inline functions and methods (like "C++: function call" methods)
-//
-
-
-#endif
diff --git a/samples/mfc/standard/06_Ocaf/src/NewBoxDlg.cpp b/samples/mfc/standard/06_Ocaf/src/NewBoxDlg.cpp
deleted file mode 100755 (executable)
index b670c73..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-// NewBoxDlg.cpp : implementation file
-//
-
-#include "stdafx.h"
-
-#include "NewBoxDlg.h"
-
-//#include "OcafApp.h"
-
-/////////////////////////////////////////////////////////////////////////////
-// CNewBoxDlg dialog
-
-CNewBoxDlg::CNewBoxDlg(CWnd* pParent /*=NULL*/)
-       : CDialog(CNewBoxDlg::IDD, pParent)
-{
-       //{{AFX_DATA_INIT(CNewBoxDlg)
-       m_h = 10.0;
-       m_l = 15.0;
-       m_Name = _T("Box");
-       m_w = 10.0;
-       m_x = 0.0;
-       m_y = 0.0;
-       m_z = 0.0;
-       //}}AFX_DATA_INIT
-}
-
-void CNewBoxDlg::DoDataExchange(CDataExchange* pDX)
-{
-       CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(CNewBoxDlg)
-       DDX_Text(pDX, IDC_H, m_h);
-       DDX_Text(pDX, IDC_L, m_l);
-       DDX_Text(pDX, IDC_NAME, m_Name);
-       DDX_Text(pDX, IDC_W, m_w);
-       DDX_Text(pDX, IDC_X, m_x);
-       DDX_Text(pDX, IDC_Y, m_y);
-       DDX_Text(pDX, IDC_Z, m_z);
-       //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(CNewBoxDlg, CDialog)
-       //{{AFX_MSG_MAP(CNewBoxDlg)
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CNewBoxDlg message handlers
-
-void CNewBoxDlg::OnOK() 
-{
-       UpdateData(TRUE);
-       if( (m_h<=Precision::Confusion()) || (m_l<=Precision::Confusion()) || (m_w<=Precision::Confusion()) )
-       {
-               MessageBox (L"Length, height and width of a box should be srictly positives.", L"New box", MB_ICONEXCLAMATION);
-               return;
-       }
-       
-       CDialog::OnOK();
-}
-
-void CNewBoxDlg::InitFields(Standard_Real x, Standard_Real y, Standard_Real z, Standard_Real w, Standard_Real l, Standard_Real h, const TCollection_ExtendedString &Name)
-{
-       m_x=x;
-       m_y=y;
-       m_z=z;
-       m_w=w;
-       m_l=l;
-       m_h=h;
-       TCollection_AsciiString AsciiName(Name);
-       m_Name=AsciiName.ToCString();
-}
diff --git a/samples/mfc/standard/06_Ocaf/src/NewBoxDlg.h b/samples/mfc/standard/06_Ocaf/src/NewBoxDlg.h
deleted file mode 100755 (executable)
index caec9e7..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-#if !defined(AFX_NEWBOXDLG_H__5A881DC0_7A5F_11D4_8D45_00AA00D10994__INCLUDED_)
-#define AFX_NEWBOXDLG_H__5A881DC0_7A5F_11D4_8D45_00AA00D10994__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-// NewBoxDlg.h : header file
-//
-
-/////////////////////////////////////////////////////////////////////////////
-// CNewBoxDlg dialog
-
-class CNewBoxDlg : public CDialog
-{
-// Construction
-public:
-       void InitFields(Standard_Real x, Standard_Real y, Standard_Real z, Standard_Real w, Standard_Real l, Standard_Real h, const TCollection_ExtendedString &Name);
-       CNewBoxDlg(CWnd* pParent = NULL);   // standard constructor
-
-// Dialog Data
-       //{{AFX_DATA(CNewBoxDlg)
-       enum { IDD = IDD_NEWBOX };
-       double  m_h;
-       double  m_l;
-       CString m_Name;
-       double  m_w;
-       double  m_x;
-       double  m_y;
-       double  m_z;
-       //}}AFX_DATA
-
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(CNewBoxDlg)
-       protected:
-       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
-       //}}AFX_VIRTUAL
-
-// Implementation
-protected:
-
-       // Generated message map functions
-       //{{AFX_MSG(CNewBoxDlg)
-       virtual void OnOK();
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-};
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_NEWBOXDLG_H__5A881DC0_7A5F_11D4_8D45_00AA00D10994__INCLUDED_)
diff --git a/samples/mfc/standard/06_Ocaf/src/NewCylDlg.cpp b/samples/mfc/standard/06_Ocaf/src/NewCylDlg.cpp
deleted file mode 100755 (executable)
index a7f9a18..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-// NewCylDlg.cpp : implementation file
-//
-
-#include "stdafx.h"
-
-#include "NewCylDlg.h"
-
-//#include "OcafApp.h"
-
-/////////////////////////////////////////////////////////////////////////////
-// CNewCylDlg dialog
-
-CNewCylDlg::CNewCylDlg(CWnd* pParent /*=NULL*/)
-       : CDialog(CNewCylDlg::IDD, pParent)
-{
-       //{{AFX_DATA_INIT(CNewCylDlg)
-       m_h = 20.0;
-       m_Name = _T("Cylinder");
-       m_r = 10.0;
-       m_x = 0.0;
-       m_y = 0.0;
-       m_z = 0.0;
-       //}}AFX_DATA_INIT
-}
-
-void CNewCylDlg::DoDataExchange(CDataExchange* pDX)
-{
-       CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(CNewCylDlg)
-       DDX_Text(pDX, IDC_H, m_h);
-       DDX_Text(pDX, IDC_NAME, m_Name);
-       DDX_Text(pDX, IDC_R, m_r);
-       DDX_Text(pDX, IDC_X, m_x);
-       DDX_Text(pDX, IDC_Y, m_y);
-       DDX_Text(pDX, IDC_Z, m_z);
-       //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(CNewCylDlg, CDialog)
-       //{{AFX_MSG_MAP(CNewCylDlg)
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CNewCylDlg message handlers
-
-void CNewCylDlg::OnOK() 
-{
-       UpdateData(TRUE);
-       if( (m_h<=Precision::Confusion()) || (m_r<=Precision::Confusion()) )
-       {
-               MessageBox (L"Radius and height of a cylinder should be srictly positives.", L"New box", MB_ICONEXCLAMATION);
-               return;
-       }
-       
-       CDialog::OnOK();
-}
-
-void CNewCylDlg::InitFields(Standard_Real x, Standard_Real y, Standard_Real z, Standard_Real r, Standard_Real h, const TCollection_ExtendedString &Name)
-{
-       m_x=x;
-       m_y=y;
-       m_z=z;
-       m_r=r;
-       m_h=h;
-       TCollection_AsciiString AsciiName(Name);
-       m_Name=AsciiName.ToCString();
-}
diff --git a/samples/mfc/standard/06_Ocaf/src/NewCylDlg.h b/samples/mfc/standard/06_Ocaf/src/NewCylDlg.h
deleted file mode 100755 (executable)
index 640a8cd..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-#if !defined(AFX_NEWCYLDLG_H__FFA9686D_8580_11D4_8D47_00AA00D10994__INCLUDED_)
-#define AFX_NEWCYLDLG_H__FFA9686D_8580_11D4_8D47_00AA00D10994__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-// NewCylDlg.h : header file
-//
-
-/////////////////////////////////////////////////////////////////////////////
-// CNewCylDlg dialog
-
-class CNewCylDlg : public CDialog
-{
-// Construction
-public:
-       void InitFields(Standard_Real x, Standard_Real y, Standard_Real z, Standard_Real r, Standard_Real h, const TCollection_ExtendedString &Name);
-       CNewCylDlg(CWnd* pParent = NULL);   // standard constructor
-
-// Dialog Data
-       //{{AFX_DATA(CNewCylDlg)
-       enum { IDD = IDD_NEWCYL };
-       double  m_h;
-       CString m_Name;
-       double  m_r;
-       double  m_x;
-       double  m_y;
-       double  m_z;
-       //}}AFX_DATA
-
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(CNewCylDlg)
-       protected:
-       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
-       //}}AFX_VIRTUAL
-
-// Implementation
-protected:
-
-       // Generated message map functions
-       //{{AFX_MSG(CNewCylDlg)
-       virtual void OnOK();
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-};
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_NEWCYLDLG_H__FFA9686D_8580_11D4_8D47_00AA00D10994__INCLUDED_)
diff --git a/samples/mfc/standard/06_Ocaf/src/OCAFSample_CommonDriver.cxx b/samples/mfc/standard/06_Ocaf/src/OCAFSample_CommonDriver.cxx
deleted file mode 100755 (executable)
index 6658540..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-// File:       OCAFSample_CommonDriver.cxx
-// Created:    Wed Feb 13 18:24:21 2002
-// Author:     Michael KUZMITCHEV
-//             <mkv@russox.nnov.matra-dtv.fr>
-//Modified by:  Sergey RUIN (Naming)
-
-#include "stdafx.h"
-
-#include <OCAFSample_CommonDriver.ixx>
-#include <OCAFSample_ICommon.hxx>
-#include <OCAFSample_IShape.hxx>
-
-#include "Tags.h"
-
-#include <BRepAlgoAPI_Common.hxx>
-#include <TDF_Reference.hxx>
-#include <TDocStd_Modified.hxx>
-#include <TNaming_Builder.hxx>
-#include <TNaming_NamedShape.hxx>
-#include <TopoDS_Shape.hxx>
-
-#include <BRepNaming_Common.hxx>
-
-#include <TDataStd_TreeNode.hxx>
-//#include <.hxx>
-
-#include <BRepAlgo.hxx>
-
-#define OK_OPERATION 0
-#define TREENODE_NOT_FOUND 1
-#define LABEL_NOT_FOUND 2
-#define NAMED_SHAPE_NOT_FOUND 3
-#define NAMED_SHAPE_EMPTY 4
-#define OPERATION_NOT_DONE 8
-#define NULL_OPERATION 9
-
-// OCCT RTTI
-IMPLEMENT_STANDARD_RTTIEXT (OCAFSample_CommonDriver, OCAFSample_Driver)
-
-//=======================================================================
-//function : Constructor
-//purpose  :
-//=======================================================================
-
-OCAFSample_CommonDriver::OCAFSample_CommonDriver()
-{
-}
-
-//=======================================================================
-//function : Execute
-//purpose  :
-//=======================================================================
-
-Standard_Integer OCAFSample_CommonDriver::Execute(Handle(TFunction_Logbook)& theLogbook) const
-{
-  Handle(TDF_Reference) aReference;
-  TopoDS_Shape aMaster, aTool;
-
-  Handle(TDataStd_TreeNode) aNode;
-  if(!Label().FindAttribute(TDataStd_TreeNode::GetDefaultTreeID(), aNode)) return TREENODE_NOT_FOUND;
-
-  OCAFSample_ICommon anInterface(aNode);
-  aMaster = anInterface.GetContext();
-  aTool = anInterface.GetTool();
-
-  BRepAlgoAPI_Common mkCommon(aMaster, aTool);
-  if (!mkCommon.IsDone()) return OPERATION_NOT_DONE;
-  if (mkCommon.Shape().IsNull()) return NULL_OPERATION;
-  if (!BRepAlgo::IsValid(mkCommon.Shape()))
-         return OPERATION_NOT_DONE;
-
-
-  // Name result
-  TDF_Label ResultLabel = Label().FindChild(RESULTS_TAG);
-  
-  BRepNaming_Common aNaming(ResultLabel);
-  aNaming.Load(mkCommon);
-
-  OCAFSample_IShape::AddLabels(aNode, theLogbook);
-
-  TDocStd_Modified::Add(aNode->Father()->Label());
-
-  theLogbook->SetImpacted(Label());
-  TDocStd_Modified::Add(Label());  
-
-  theLogbook->SetImpacted(ResultLabel);
-
-  TDF_ChildIterator anIterator(ResultLabel);
-  for(; anIterator.More(); anIterator.Next()) {
-    theLogbook->SetImpacted(anIterator.Value());
-  }  
-
-  return OK_OPERATION;
-}
diff --git a/samples/mfc/standard/06_Ocaf/src/OCAFSample_CommonDriver.hxx b/samples/mfc/standard/06_Ocaf/src/OCAFSample_CommonDriver.hxx
deleted file mode 100755 (executable)
index cc88a0a..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-// File generated by CPPExt (Transient)
-//
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-//
-#ifndef _OCAFSample_CommonDriver_HeaderFile
-#define _OCAFSample_CommonDriver_HeaderFile
-
-#include <Standard_Type.hxx>
-#include <OCAFSample_Driver.hxx>
-
-class TFunction_Logbook;
-
-
-class OCAFSample_CommonDriver : public OCAFSample_Driver
-{
-public:
-
-  Standard_EXPORT OCAFSample_CommonDriver ();
-  Standard_EXPORT virtual  Standard_Integer Execute (Handle (TFunction_Logbook)& theLogbook) const;
-  Standard_EXPORT ~OCAFSample_CommonDriver ();
-
-  // OCCT RTTI
-  DEFINE_STANDARD_RTTIEXT (OCAFSample_CommonDriver, OCAFSample_Driver)
-};
-
-#endif
diff --git a/samples/mfc/standard/06_Ocaf/src/OCAFSample_Driver.hxx b/samples/mfc/standard/06_Ocaf/src/OCAFSample_Driver.hxx
deleted file mode 100755 (executable)
index fc6d35e..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-// File generated by CPPExt (Transient)
-//
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-//
-#ifndef _OCAFSample_Driver_HeaderFile
-#define _OCAFSample_Driver_HeaderFile
-
-#include <Standard.hxx>
-#include <TFunction_Driver.hxx>
-#include <TDF_LabelMap.hxx>
-
-class TFunction_Logbook;
-
-class OCAFSample_Driver : public TFunction_Driver
-{
-public:
-
-  Standard_EXPORT   void Validate (TFunction_Logbook& log) const;
-  Standard_EXPORT virtual  Standard_Boolean MustExecute (const Handle (TFunction_Logbook)& log) const;
-  Standard_EXPORT virtual  Standard_Integer Execute (Handle (TFunction_Logbook)& log) const;
-  Standard_EXPORT virtual  Standard_Boolean Arguments (TDF_LabelMap& theArgs) const;
-  Standard_EXPORT virtual  Standard_Boolean Results (TDF_LabelMap& theRes) const;
-  Standard_EXPORT ~OCAFSample_Driver ();
-
-  // OCCT RTTI
-  DEFINE_STANDARD_RTTIEXT(OCAFSample_Driver,TFunction_Driver)
-
-protected:
-
-  Standard_EXPORT OCAFSample_Driver ();
-};
-
-#endif
diff --git a/samples/mfc/standard/06_Ocaf/src/OcafApp.cpp b/samples/mfc/standard/06_Ocaf/src/OcafApp.cpp
deleted file mode 100755 (executable)
index ff43d3c..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-// OcafApp.cpp : Defines the class behaviors for the application.
-//
-
-#include "StdAfx.h"
-
-#include "OcafApp.h"
-
-#include "OcafMainFrm.h"
-#include <OCC_3dChildFrame.h>
-#include "OcafDoc.h"
-#include <OCC_3dView.h>
-
-#include "direct.h"
-#include <OSD_Environment.hxx>
-
-#include <BinDrivers.hxx>
-#include <XmlDrivers.hxx>
-
-/////////////////////////////////////////////////////////////////////////////
-// COcafApp
-
-BEGIN_MESSAGE_MAP(COcafApp, CWinApp)
-       //{{AFX_MSG_MAP(COcafApp)
-       ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
-               // NOTE - the ClassWizard will add and remove mapping macros here.
-               //    DO NOT EDIT what you see in these blocks of generated code!
-       //}}AFX_MSG_MAP
-       // Standard file based document commands
-       ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)
-    ON_COMMAND(ID_FILE_OPEN, OnFileOpen)
-//     ON_COMMAND(ID_FILE_OPEN, CWinApp::OnFileOpen)
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-
-/////////////////////////////////////////////////////////////////////////////
-// COcafApp construction
-
-COcafApp::COcafApp() : OCC_App()
-{
-  myApp = new TOcaf_Application();
-  SampleName = "OCAF"; //for about dialog
-  SetSamplePath (L"..\\..\\06_Ocaf");
-
-  // load persistence
-  BinDrivers::DefineFormat (myApp);
-  XmlDrivers::DefineFormat (myApp);
-
-  try
-  {
-    UnitsAPI::SetLocalSystem(UnitsAPI_MDTV);
-  }
-  catch (Standard_Failure)
-  {
-    AfxMessageBox (L"Fatal Error in units initialisation");
-  }
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// The one and only COcafApp object
-
-COcafApp theApp;
-
-/////////////////////////////////////////////////////////////////////////////
-// COcafApp initialization
-
-BOOL COcafApp::InitInstance()
-{
-       AfxEnableControlContainer();
-
-       // Standard initialization
-       // If you are not using these features and wish to reduce the size
-       //  of your final executable, you should remove from the following
-       //  the specific initialization routines you do not need.
-
-       // Change the registry key under which our settings are stored.
-       // You should modify this string to be something appropriate
-       // such as the name of your company or organization.
-       // Modified by CasCade :
-       SetRegistryKey(_T("Local CasCade Applications"));
-
-       LoadStdProfileSettings();  // Load standard INI file options (including MRU)
-
-       // Register the application's document templates.  Document templates
-       //  serve as the connection between documents, frame windows and views.
-
-    pDocTemplateForView3d  = new CMultiDocTemplate(
-               IDR_3DTYPE,
-               RUNTIME_CLASS(COcafDoc),
-               RUNTIME_CLASS(OCC_3dChildFrame), 
-               RUNTIME_CLASS(OCC_3dView));
-       AddDocTemplate(pDocTemplateForView3d);
-
-       // create main MDI Frame window
-       OcafMainFrame* pMainFrame = new OcafMainFrame;
-       if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
-               return FALSE;
-       m_pMainWnd = pMainFrame;
-
-       // Parse command line for standard shell commands, DDE, file open
-       CCommandLineInfo cmdInfo;
-       ParseCommandLine(cmdInfo);
-
-       // Dispatch commands specified on the command line
-       if (!ProcessShellCommand(cmdInfo))
-               return FALSE;
-
-       // The main window has been initialized, so show and update it.
-       pMainFrame->ShowWindow(m_nCmdShow);
-       pMainFrame->UpdateWindow();
-
-       return TRUE;
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// COcafApp commands
-
-BOOL COcafApp::IsViewExisting(CDocument * pDoc, CRuntimeClass * pViewClass, CView * & pView)
-{
-  ASSERT_VALID(pDoc);
-  ASSERT(pViewClass != (CRuntimeClass *)NULL );
-
-  POSITION position = pDoc->GetFirstViewPosition();
-  while (position != (POSITION)NULL)
-  {
-    CView* pCurrentView = pDoc->GetNextView(position);
-    ASSERT_VALID(pCurrentView);
-    if (pCurrentView->IsKindOf(pViewClass))
-       {
-      pView = pCurrentView;
-         return TRUE;
-       }
-  }
-  return FALSE;
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// COCcafApp message handlers
-
-//================================================================
-// Function : COcafApp::OnFileOpen()
-// Purpose  :
-//================================================================
-void COcafApp::OnFileOpen() 
-{
-       CFileDialog aDlg(TRUE, NULL, NULL, OFN_FILEMUSTEXIST|OFN_HIDEREADONLY,
-          L"OCAFSample(Binary) (*.cbf)|*.cbf|OCAFSample(XML) (*.xml)|*.xml||");
-
-       if (aDlg.DoModal() != IDOK) 
-        return;
-
-  OpenDocumentFile (aDlg.GetPathName());
-}
diff --git a/samples/mfc/standard/06_Ocaf/src/OcafApp.h b/samples/mfc/standard/06_Ocaf/src/OcafApp.h
deleted file mode 100755 (executable)
index 3758896..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-// OcafApp.h : main header file for the OCAF application
-//
-
-#if !defined(AFX_OCAF_H__49324D74_7836_11D4_8D45_00AA00D10994__INCLUDED_)
-#define AFX_OCAF_H__49324D74_7836_11D4_8D45_00AA00D10994__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include <OCC_App.h>
-#include "OcafDoc.h"
-#include <TOcaf_Application.hxx>
-
-
-class COcafApp : public OCC_App
-{
-public:
-
-  COcafApp();
-
-// Overrides
-  // ClassWizard generated virtual function overrides
-  //{{AFX_VIRTUAL(COcafApp)
-  public:
-  virtual BOOL InitInstance();
-  //}}AFX_VIRTUAL
-  void OnFileOpen();
-public:
-  Handle(TOcaf_Application) GetApp() {return myApp;}
-
-private :
-  BOOL IsViewExisting(CDocument* pDoc,CRuntimeClass* pViewClass,CView*& pView);
-
-private:
-
-  Handle(TOcaf_Application) myApp;
-  CMultiDocTemplate* pDocTemplateForView3d;
-
-  DECLARE_MESSAGE_MAP()
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-#endif // !defined(AFX_OCAF_H__49324D74_7836_11D4_8D45_00AA00D10994__INCLUDED_)
diff --git a/samples/mfc/standard/06_Ocaf/src/OcafDoc.cpp b/samples/mfc/standard/06_Ocaf/src/OcafDoc.cpp
deleted file mode 100755 (executable)
index f822186..0000000
+++ /dev/null
@@ -1,1209 +0,0 @@
-// OcafDoc.cpp : implementation of the COcafDoc class
-//
-
-#include "StdAfx.h"
-
-#include "OcafDoc.h"
-
-#include "OcafApp.h"
-#include <ImportExport/ImportExport.h>
-#include "AISDialogs.h"
-
-// Dialog boxes classes
-#include <ResultDialog.h>
-#include <NewBoxDlg.h>
-#include <NewCylDlg.h>
-
-#include <TDF_Tool.hxx>
-
-#include <DebugBrowser.hxx>
-
-#ifdef _DEBUG
-//#define new DEBUG_NEW  // by cascade
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// COcafDoc
-
-IMPLEMENT_DYNCREATE(COcafDoc, CDocument)
-
-BEGIN_MESSAGE_MAP(COcafDoc, OCC_3dBaseDoc)
-       //{{AFX_MSG_MAP(COcafDoc)
-       ON_COMMAND(ID_CREATEBOX, OnCreatebox)
-       ON_COMMAND(ID_EDIT_REDO, OnEditRedo)
-       ON_COMMAND(ID_EDIT_UNDO, OnEditUndo)
-       ON_UPDATE_COMMAND_UI(ID_EDIT_UNDO, OnUpdateEditUndo)
-       ON_COMMAND(ID_MODIFY, OnModify)
-       ON_UPDATE_COMMAND_UI(ID_MODIFY, OnUpdateModify)
-       ON_UPDATE_COMMAND_UI(ID_EDIT_REDO, OnUpdateEditRedo)
-       ON_COMMAND(ID_CUT, OnCut)
-       ON_COMMAND(ID_OBJECT_DELETE, OnObjectDelete)
-       ON_UPDATE_COMMAND_UI(ID_OBJECT_DELETE, OnUpdateObjectDelete)
-       ON_COMMAND(ID_FILE_SAVE, OnFileSave)
-       ON_COMMAND(ID_FILE_SAVE_AS, OnFileSaveAs)
-       ON_COMMAND(ID_CREATECYL, OnCreatecyl)
-//     ON_COMMAND(ID_DFBR, OnDfbr)
-       //}}AFX_MSG_MAP
-
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// COcafDoc construction/destruction
-
-COcafDoc::COcafDoc()
-{
-}
-
-COcafDoc::~COcafDoc()
-{
-}
-
- BOOL COcafDoc::OnNewDocument()
- {
-       if (!CDocument::OnNewDocument())
-               return FALSE;
-       // Get an Handle on the current TOcaf_Application (which is initialized in the "Ocaf.h" file)
-       Handle(TOcaf_Application) OcafApp = ((COcafApp*)AfxGetApp())->GetApp();
-       // Create a new Ocaf document
-       OcafApp->NewDocument("BinOcaf",myOcafDoc);
-       TPrsStd_AISViewer::New(myOcafDoc->Main(),myViewer);
-       Handle(AIS_InteractiveContext) CTX;
-       TPrsStd_AISViewer::Find(myOcafDoc->Main(), CTX);
-       CTX->SetDisplayMode (AIS_Shaded, Standard_True);
-       myAISContext=CTX;
-       // Set the maximum number of available "undo" actions
-       myOcafDoc->SetUndoLimit(10);
-               TCollection_AsciiString Message ("\
- //  Creation of a new document \n\
-  \n\
- Handle(TOcaf_Application) OcafApp= ((COcafApp*)AfxGetApp())->GetApp(); \n\
-  \n\
- //  Creating the new document \n\
- OcafApp->NewDocument(\"BinOcaf\", myOcafDoc); \n\
-  \n\
- //  Creation of a new TPrsStd_AISViewer connected to the current V3d_Viewer\n\
- TPrsStd_AISViewer::New(myOcafDoc->Main(),myViewer); \n\
-  \n\
- //  Setting the number of memorized undos \n\
- myOcafDoc->SetUndoLimit(10); \n\
- \n");
-
-  myCResultDialog.SetTitle("New document");
-       CString text(Message.ToCString());
-       myCResultDialog.SetText(text);
-       PathName="";
-       return TRUE;
- }
-
-void COcafDoc::ActivateFrame(CRuntimeClass* pViewClass,int nCmdShow)
-{
-  POSITION position = GetFirstViewPosition();
-  while (position != (POSITION)NULL)
-  {
-    CView* pCurrentView = (CView*)GetNextView(position);
-     if(pCurrentView->IsKindOf(pViewClass) )
-    {
-        ASSERT_VALID(pCurrentView);
-        CFrameWnd* pParentFrm = pCurrentView->GetParentFrame();
-           ASSERT(pParentFrm != (CFrameWnd *)NULL);
-        // simply make the frame window visible
-           pParentFrm->ActivateFrame(nCmdShow);
-    }
-  }
-
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// COcafDoc diagnostics
-
-#ifdef _DEBUG
-void COcafDoc::AssertValid() const
-{
-       CDocument::AssertValid();
-}
-
-void COcafDoc::Dump(CDumpContext& dc) const
-{
-       CDocument::Dump(dc);
-}
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// COcafDoc commands
-
-void COcafDoc::OnEditRedo() 
-{
-       myOcafDoc->Redo();
-       myOcafDoc->CommitCommand();
-       myAISContext->UpdateCurrentViewer();
-
-       UpdateAllViews(NULL);
-
-       TCollection_AsciiString Message = TCollection_AsciiString("\
-//  Redo last undoes operation \n\
- \n\
-myOcafDoc->Redo(); \n\
- \n\
-myOcafDoc->CommitCommand(); \n\
- \n\
-\n");
-
-       myCResultDialog.SetTitle("Redo");
-       CString text(Message.ToCString());
-       myCResultDialog.SetText(text);
-}
-
-void COcafDoc::OnEditUndo() 
-{
-       myOcafDoc->Undo();
-       myOcafDoc->CommitCommand();
-       myAISContext->UpdateCurrentViewer();
-       
-       UpdateAllViews(NULL);
-
-       TCollection_AsciiString Message = TCollection_AsciiString("\
-//  Undo last operation \n\
- \n\
-myOcafDoc->Undo(); \n\
- \n\
-myOcafDoc->CommitCommand(); \n\
- \n\
-\n");
-
-       myCResultDialog.SetTitle("Undo");
-       CString text(Message.ToCString());
-       myCResultDialog.SetText(text);
-}
-
-void COcafDoc::OnUpdateEditRedo(CCmdUI* pCmdUI) 
-{
-       // Disable the "redo" button if there is no availlables redo actions
-       if (myOcafDoc->GetAvailableRedos()>0) pCmdUI->Enable(Standard_True);
-       else pCmdUI->Enable(Standard_False);    
-}
-
-void COcafDoc::OnUpdateEditUndo(CCmdUI* pCmdUI) 
-{
-       // Disable the "undo" button if there is no availlables undo actions
-       if (myOcafDoc->GetAvailableUndos()>0) pCmdUI->Enable(Standard_True);
-       else pCmdUI->Enable(Standard_False);
-}
-
-void COcafDoc::OnCreatebox() 
-{
-       EraseAll();
-       CNewBoxDlg Dlg;
-       if(Dlg.DoModal()!=IDOK) return;
-
-       Handle(TDocStd_Document) D = GetOcafDoc();
-
-       // Open a new command (for undo)
-       D->NewCommand();
-       TOcaf_Commands TSC(D->Main());
-
-       // Create a new box using the CNewBoxDlg Dialog parameters as attributes
-  TDF_Label L = TSC.CreateBox (Dlg.m_x, Dlg.m_y, Dlg.m_z, Dlg.m_w, Dlg.m_l, Dlg.m_h,
-                               TCollection_ExtendedString ((const wchar_t* )Dlg.m_Name));
-
-       // Get the TPrsStd_AISPresentation of the new box TNaming_NamedShape
-       Handle(TPrsStd_AISPresentation) prs= TPrsStd_AISPresentation::Set(L, TNaming_NamedShape::GetID()); 
-       // Display it
-       prs->Display(1);
-       Fit3DViews();
-       // Attach an integer attribute to L to memorize it's displayed
-       TDataStd_Integer::Set(L, 1);
-       myAISContext->UpdateCurrentViewer();
-
-       // Close the command (for undo)
-       D->CommitCommand();
-
-
-               TCollection_AsciiString Message ("\
-//  Creation of a new box using Ocaf attributes \n\
- \n\
-Handle(TDocStd_Document) D = GetOcafDoc(); \n\
- \n\
-//  Opening a new command (for undo/redo) \n\
-D->NewCommand(); \n\
- \n\
-TOcaf_Commands TSC(D->Main()); \n\
-// Look at the TOcaf_Commands::CreateBox() function \n\
-TDF_Label L=TSC.CreateBox(m_x, m_y, m_z, m_w, m_l, m_h, Name); \n\
- \n\
-// Set the TPrsStd_AISPresentation of the box \n\
-Handle(TPrsStd_AISPresentation) prs; \n\
-prs= TPrsStd_AISPresentation::Set(L, TNaming_NamedShape::GetID()); \n\
- \n\
-//  Displaying the box \n\
-prs->Display(1); \n\
- \n\
-//  Commint the command (for undo/redo) \n\
-D->CommitCommand(); \n\
-\n");
-
-       myCResultDialog.SetTitle("Create box");
-       CString text(Message.ToCString());
-       myCResultDialog.SetText(text);
-}
-
-void COcafDoc::OnCreatecyl() 
-{
-       EraseAll();
-       CNewCylDlg Dlg;
-       if(Dlg.DoModal()!=IDOK) return;
-
-       Handle(TDocStd_Document) D = GetOcafDoc();
-
-       // Open a new command (for undo)
-       D->NewCommand();
-       TOcaf_Commands TSC(D->Main());
-
-       // Create a new box using the CNewCylDlg Dialog parameters as attributes
-  TDF_Label L = TSC.CreateCyl (Dlg.m_x, Dlg.m_y, Dlg.m_z, Dlg.m_r, Dlg.m_h,
-                               TCollection_ExtendedString ((const wchar_t* )Dlg.m_Name));
-
-       // Get the TPrsStd_AISPresentation of the new cylinder TNaming_NamedShape
-       Handle(TPrsStd_AISPresentation) prs= TPrsStd_AISPresentation::Set(L, TNaming_NamedShape::GetID()); 
-       // Display it
-       prs->Display(1);
-       Fit3DViews();
-       // Attach an integer attribute to L to memorize it's displayed
-       TDataStd_Integer::Set(L, 1);
-       myAISContext->UpdateCurrentViewer();
-
-       // Close the command (for undo)
-       D->CommitCommand();
-
-
-               TCollection_AsciiString Message ("\
-//  Creation of a new cylinder using Ocaf attributes \n\
- \n\
-Handle(TDocStd_Document) D = GetOcafDoc(); \n\
- \n\
-//  Opening a new command (for undo/redo) \n\
-D->NewCommand(); \n\
- \n\
-TOcaf_Commands TSC(D->Main()); \n\
-// Look at the TOcaf_Commands::CreateCyl() function \n\
-TDF_Label L=TSC.CreateCyl(m_x, m_y, m_z, m_r, m_h, Name); \n\
- \n\
-// Set the TPrsStd_AISPresentation of the cylinder \n\
-Handle(TPrsStd_AISPresentation) prs; \n\
-prs= TPrsStd_AISPresentation::Set(L, TNaming_NamedShape::GetID()); \n\
- \n\
-//  Displaying the cylinder \n\
-prs->Display(1); \n\
- \n\
-//  Commint the command (for undo/redo) \n\
-D->CommitCommand(); \n\
-\n");
-
-       myCResultDialog.SetTitle("Create cylinder");
-       CString text(Message.ToCString());
-       myCResultDialog.SetText(text);
-}
-
-void COcafDoc::OnModify() 
-{
-       // Get the selected interactive object
-       myAISContext->InitSelected();
-       Handle(AIS_InteractiveObject) curAISObject = myAISContext->SelectedInteractive();
-
-
-       // Get the main label of the selected object
-       Handle(TPrsStd_AISPresentation) ObjectPrs = 
-               Handle(TPrsStd_AISPresentation)::DownCast(curAISObject->GetOwner());
-       TDF_Label LabObject = ObjectPrs->Label();
-
-       // Get the TFunction_Function attribute of the selected object
-       Handle(TFunction_Function) TFF; 
-       if ( !LabObject.FindAttribute(TFunction_Function::GetID(),TFF) )
-       {
-               MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, L"Object cannot be modify.", L"Modification", MB_ICONEXCLAMATION);
-               return;
-       }
-       // Get the Standard_GUID of the TFunction_FunctionDriver of the selected object TFunction_Function attribute
-       Standard_GUID myDriverID=TFF->GetDriverGUID();
-
-       Handle(TDocStd_Document) D = GetOcafDoc();
-       Handle(TFunction_Logbook) log = TFunction_Logbook::Set(D->Main());
-
-       TCollection_AsciiString Message("\
-//  Modification and recomputation of the selected object \n\
- \n\
-Handle(TDocStd_Document) D = GetOcafDoc(); \n\
- \n\
-//  Getting the TPrsStd_AISPresentation of the selected object \n\
-Handle(TPrsStd_AISPresentation) ObjectPrs =  \n\
-       Handle(TPrsStd_AISPresentation)::DownCast(curAISObject->GetOwner()); \n\
- \n\
-//  Getting the Label of the selected object using the TPrsStd_AISPresentation \n\
-TDF_Label LabObject = ObjectPrs->Label(); \n\
- \n\
-//  Getting the TFunction_FunctionDriver ID attached to this label \n\
-Handle(TFunction_Function) TFF; \n\
-\n");
-       TCollection_AsciiString Suite;
-
-       // Case of a box created with the box function driver
-       if(myDriverID==TOcafFunction_BoxDriver::GetID())
-       {
-               CNewBoxDlg Dlg;
-               Standard_Real x, y, z, w, l, h;
-
-               // Get the attributes values of the current box
-               Handle(TDataStd_Real) curReal;
-               LabObject.FindChild(1).FindAttribute(TDataStd_Real::GetID(),curReal);
-               w=curReal->Get();
-               LabObject.FindChild(2).FindAttribute(TDataStd_Real::GetID(),curReal);
-               l=curReal->Get();
-               LabObject.FindChild(3).FindAttribute(TDataStd_Real::GetID(),curReal);
-               h=curReal->Get();
-               LabObject.FindChild(4).FindAttribute(TDataStd_Real::GetID(),curReal);
-               x=curReal->Get();
-               LabObject.FindChild(5).FindAttribute(TDataStd_Real::GetID(),curReal);
-               y=curReal->Get();
-               LabObject.FindChild(6).FindAttribute(TDataStd_Real::GetID(),curReal);
-               z=curReal->Get();
-               Handle(TDataStd_Name) stdName;
-               LabObject.FindAttribute(TDataStd_Name::GetID(),stdName);
-
-               // Initialize the dialog box with the values of the current box
-               Dlg.InitFields(x, y, z, w, l, h, stdName->Get());
-
-               if(Dlg.DoModal()!=IDOK) return;
-
-               // Open a new command (for undo)
-               D->NewCommand();
-
-               // Modify the box
-               TOcaf_Commands TSC(LabObject);
-               TSC.ModifyBox (Dlg.m_x, Dlg.m_y, Dlg.m_z, Dlg.m_w, Dlg.m_l, Dlg.m_h,
-                   TCollection_ExtendedString ((const wchar_t* )Dlg.m_Name), log);
-
-               // Get the presentation of the box, display it and set it selected
-               Handle(TPrsStd_AISPresentation) prs= TPrsStd_AISPresentation::Set(LabObject, TNaming_NamedShape::GetID()); 
-               TDataStd_Integer::Set(LabObject, 1);
-               prs->Display(1);
-               myAISContext->UpdateCurrentViewer();
-               // Close the command (for undo)
-               D->CommitCommand();
-
-               Message+=("\
- \n\
-//  In this case the TFunction_FunctionDriver ID is a BoxDriver \n\
-if(myDriverID==TOcafFunction_BoxDriver::GetID()){ \n\
- \n\
-//  Getting values of box attributes \n\
-Handle(TDataStd_Real) curReal; \n\
-LabObject.FindChild(1).FindAttribute(TDataStd_Real::GetID(),curReal); \n\
-w=curReal->Get(); \n\
-LabObject.FindChild(2).FindAttribute(TDataStd_Real::GetID(),curReal); \n\
-l=curReal->Get(); \n\
-LabObject.FindChild(3).FindAttribute(TDataStd_Real::GetID(),curReal); \n\
-h=curReal->Get(); \n\
-LabObject.FindChild(4).FindAttribute(TDataStd_Real::GetID(),curReal); \n\
-x=curReal->Get(); \n\
-LabObject.FindChild(5).FindAttribute(TDataStd_Real::GetID(),curReal); \n\
-y=curReal->Get(); \n\
-LabObject.FindChild(6).FindAttribute(TDataStd_Real::GetID(),curReal); \n\
-z=curReal->Get(); \n\
-Handle(TDataStd_Name) stdName; \n\
-LabObject.FindAttribute(TDataStd_Name::GetID(),stdName); \n\
- \n\
-//  Opening a new command \n\
-D->NewCommand(); \n\
- \n\
-TOcaf_Commands TSC(LabObject); \n\
-// Look at the TOcaf_Commands::ModifyBox() function \n\
-TSC.ModifyBox(m_x, m_y, m_z, m_w, m_l, m_h, Name); \n\
- \n\
-// Set the TPrsStd_AISPresentation of the box \n\
-Handle(TPrsStd_AISPresentation) prs; \n\
-prs= TPrsStd_AISPresentation::Set(LabObject, TNaming_NamedShape::GetID()); \n\
- \n\
-// Display the box \n\
-prs->Display(1); \n\
- \n\
-// Commit the command \n\
-D->CommitCommand(); \n\
-} \n\
-\n");
-
-               myCResultDialog.SetTitle("Modify Box");
-       }
-       // Case of a cylinder created with the box function driver
-       else if(myDriverID==TOcafFunction_CylDriver::GetID())
-       {
-               CNewCylDlg Dlg;
-               Standard_Real x, y, z, r, h;
-
-               // Get the attributes values of the current box
-               Handle(TDataStd_Real) curReal;
-               LabObject.FindChild(1).FindAttribute(TDataStd_Real::GetID(),curReal);
-               r=curReal->Get();
-               LabObject.FindChild(2).FindAttribute(TDataStd_Real::GetID(),curReal);
-               h=curReal->Get();
-               LabObject.FindChild(3).FindAttribute(TDataStd_Real::GetID(),curReal);
-               x=curReal->Get();
-               LabObject.FindChild(4).FindAttribute(TDataStd_Real::GetID(),curReal);
-               y=curReal->Get();
-               LabObject.FindChild(5).FindAttribute(TDataStd_Real::GetID(),curReal);
-               z=curReal->Get();
-               Handle(TDataStd_Name) stdName;
-               LabObject.FindAttribute(TDataStd_Name::GetID(),stdName);
-
-               // Initialize the dialog cylinder with the values of the current cylinder
-               Dlg.InitFields(x, y, z, r, h, stdName->Get());
-
-               if(Dlg.DoModal()!=IDOK) return;
-
-               // Open a new command (for undo)
-               D->NewCommand();
-
-               // Modify the cylinder
-               TOcaf_Commands TSC(LabObject);
-               TSC.ModifyCyl (Dlg.m_x, Dlg.m_y, Dlg.m_z, Dlg.m_r, Dlg.m_h,
-                   TCollection_ExtendedString ((const wchar_t* )Dlg.m_Name), log);
-
-               // Get the presentation of the cylinder, display it and set it selected
-               Handle(TPrsStd_AISPresentation) prs= TPrsStd_AISPresentation::Set(LabObject, TNaming_NamedShape::GetID()); 
-               TDataStd_Integer::Set(LabObject, 1);
-               prs->Display(1);
-               myAISContext->UpdateCurrentViewer();
-               // Close the command (for undo)
-               D->CommitCommand();
-
-               Message+=("\
- \n\
-//  In this case the TFunction_FunctionDriver ID is a CylDriver \n\
-if(myDriverID==TOcafFunction_CylDriver::GetID()){ \n\
- \n\
-//  Getting values of box cylinder \n\
-Handle(TDataStd_Real) curReal; \n\
-LabObject.FindChild(1).FindAttribute(TDataStd_Real::GetID(),curReal); \n\
-r=curReal->Get(); \n\
-LabObject.FindChild(2).FindAttribute(TDataStd_Real::GetID(),curReal); \n\
-h=curReal->Get(); \n\
-LabObject.FindChild(3).FindAttribute(TDataStd_Real::GetID(),curReal); \n\
-x=curReal->Get(); \n\
-LabObject.FindChild(4).FindAttribute(TDataStd_Real::GetID(),curReal); \n\
-y=curReal->Get(); \n\
-LabObject.FindChild(5).FindAttribute(TDataStd_Real::GetID(),curReal); \n\
-z=curReal->Get(); \n\
-Handle(TDataStd_Name) stdName; \n\
-LabObject.FindAttribute(TDataStd_Name::GetID(),stdName); \n\
- \n\
-//  Opening a new command \n\
-D->NewCommand(); \n\
- \n\
-TOcaf_Commands TSC(LabObject); \n\
-// Look at the TOcaf_Commands::ModifyCyl() function \n\
-TSC.ModifyCyl(m_x, m_y, m_z, m_r, m_h, Name); \n\
- \n\
-// Set the TPrsStd_AISPresentation of the cylinder \n\
-Handle(TPrsStd_AISPresentation) prs; \n\
-prs= TPrsStd_AISPresentation::Set(LabObject, TNaming_NamedShape::GetID()); \n\
- \n\
-// Display the cylinder \n\
-prs->Display(1); \n\
- \n\
-// Commit the command \n\
-D->CommitCommand(); \n\
-} \n\
-\n");
-
-               myCResultDialog.SetTitle("Modify cylinder");
-       }
-       // Case of a cut solid created with the cut function driver
-       else if(myDriverID==TOcafFunction_CutDriver::GetID())
-       {
-               // Open a new command (for undo)
-               D->NewCommand();
-
-               // Get the reference of the Original object used to make the cut object, 
-               // this reference is here attached to the first child of the cut object label 
-               Handle(TDF_Reference) OriginalRef;
-               LabObject.FindChild(1).FindAttribute(TDF_Reference::GetID(),OriginalRef);
-
-               // Get the presentation of the Original object
-               Handle(TPrsStd_AISPresentation) OriginalPrs= TPrsStd_AISPresentation::Set(OriginalRef->Get(), TNaming_NamedShape::GetID()); 
-
-               // Get the reference of the Tool object used to make the cut object, 
-               // this reference is here attached to the second child of the cut object label 
-               Handle(TDF_Reference) ToolRef;
-               LabObject.FindChild(2).FindAttribute(TDF_Reference::GetID(),ToolRef);
-               TDF_Label ToolLab=ToolRef->Get();
-
-               
-               // Get the presentation of the Tool object
-               Handle(TPrsStd_AISPresentation) ToolPrs= TPrsStd_AISPresentation::Set(ToolLab, TNaming_NamedShape::GetID()); 
-
-               // Display the Original object and the Tool object, erase the cut object.
-               TDataStd_Integer::Set(OriginalRef->Get(), 1);
-               OriginalPrs->Display(1);
-               TDataStd_Integer::Set(ToolLab, 1);
-               ToolPrs->Display(1);
-               TDataStd_Integer::Set(LabObject, 0);
-               ObjectPrs->Erase(1);
-               myAISContext->UpdateCurrentViewer();
-
-               // In this  we decided to modify the tool object which is a cylinder, 
-               // so we open the cylinder parameters dialog box
-               CNewCylDlg Dlg;
-               Standard_Real x, y, z, h, r;
-
-               // Get the attributes values of the tool cylinder
-               Handle(TDataStd_Real) curReal;
-               ToolLab.FindChild(1).FindAttribute(TDataStd_Real::GetID(),curReal);
-               r=curReal->Get();
-               ToolLab.FindChild(2).FindAttribute(TDataStd_Real::GetID(),curReal);
-               h=curReal->Get();
-               ToolLab.FindChild(3).FindAttribute(TDataStd_Real::GetID(),curReal);
-               x=curReal->Get();
-               ToolLab.FindChild(4).FindAttribute(TDataStd_Real::GetID(),curReal);
-               y=curReal->Get();
-               ToolLab.FindChild(5).FindAttribute(TDataStd_Real::GetID(),curReal);
-               z=curReal->Get();
-               Handle(TDataStd_Name) stdName;
-               ToolLab.FindAttribute(TDataStd_Name::GetID(),stdName);
-
-               // Initialize the dialog box with the values of the tool cylinder
-               Dlg.InitFields(x, y, z, r, h, stdName->Get());
-
-               if(Dlg.DoModal()!=IDOK) 
-               {
-                       D->AbortCommand();
-                       myAISContext->UpdateCurrentViewer();
-                       return;
-               }
-
-               // Modify the cylinder
-               TOcaf_Commands ToolTSC(ToolLab);
-               ToolTSC.ModifyCyl (Dlg.m_x, Dlg.m_y, Dlg.m_z, Dlg.m_r, Dlg.m_h,
-                       TCollection_ExtendedString ((const wchar_t* )Dlg.m_Name), log);
-
-               // Redisplay the modified Tool object
-               TDataStd_Integer::Set(ToolLab, 1);
-               ToolPrs->Display(1);
-               myAISContext->UpdateCurrentViewer();
-               Sleep(1000);
-
-               // Get the TOcafFunction_CutDriver using its Standard_GUID in the TFunction_DriverTable
-               Handle(TFunction_Driver) myCutDriver;
-               if (TFunction_DriverTable::Get()->FindDriver(myDriverID, myCutDriver))
-            myCutDriver->Init(LabObject);
-
-               // Recompute the cut object if it must be (look at the MustExecute function code)
-//             if (myCutDriver->MustExecute(log))
-//             {
-                       log->SetTouched(LabObject);
-                       if(myCutDriver->Execute(log))
-                               MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, L"Recompute failed", L"Modify cut", MB_ICONEXCLAMATION);
-//             }
-
-               // Erase the Original object and the Tool objectedisplay the modified Tool object
-               TDataStd_Integer::Set(ToolLab, 0);
-               ToolPrs->Erase(0);
-               TDataStd_Integer::Set(OriginalRef->Get(), 0);
-               OriginalPrs->Erase(0);
-               ObjectPrs=TPrsStd_AISPresentation::Set(LabObject, TNaming_NamedShape::GetID()); 
-               TDataStd_Integer::Set(LabObject, 1);
-               ObjectPrs->Display(1);
-               myAISContext->UpdateCurrentViewer();
-               // Close the command (for undo)
-               D->CommitCommand();
-
-               Message+=("\
- \n\
-//  In this case the TFunction_FunctionDriver ID is a CutDriver \n\
-if(myDriverID==TOcafFunction_CutDriver::GetID()){ \n\
- \n\
-//  Getting values of cut attributes (which are reference to the shapes)\n\
-Handle(TDF_Reference) OriginalRef; \n\
-LabObject.FindChild(1).FindAttribute(TDF_Reference::GetID(),OriginalRef); \n\
-Handle(TDF_Reference) ToolRef; \n\
-LabObject.FindChild(2).FindAttribute(TDF_Reference::GetID(),ToolRef); \n\
- \n\
-//  Getting the label of the tool shape (to modify it)\n\
-TDF_Label ToolLab=ToolRef->Get(); \n\
- \n\
-TOcaf_Commands TSC(ToolLab); \n\
-// Look at the TOcaf_Commands::ModifyBox() function \n\
-TSC.ModifyBox(m_x, m_y, m_z, m_w, m_l, m_h, Name); \n\
- \n\
-//  Getting the TOcafFunction_CutDriver used to create the cut\n\
-Handle(TFunction_Driver) myCutDriver; \n\
-TFunction_DriverTable::Get()->FindDriver(myDriverID, myCutDriver); \n\
- \n\
-//  Recompute the cut if it must be (if an attribute was modified)\n\
-if (myCutDriver->MustExecute(log)) { \n\
-       log.SetTouched(LabObject); \n\
-       myCutDriver->Execute(log) \n\
-} \n\
-Handle(TPrsStd_AISPresentation) prs; \n\
- \n\
-//  Setting the TPrsStd_AISPresentation of the cut object\n\
-prs= TPrsStd_AISPresentation::Set(LabObject, TNaming_NamedShape::GetID()); \n\
- \n\
-//  Display the TPrsStd_AISPresentation of the cut object\n\
-prs->Display(1); \n\
- \n\
-//  Commit the command\n\
-D->CommitCommand(); \n\
-} \n\
-\n");
-
-               myCResultDialog.SetTitle("Modify Cut");
-       }
-       else
-       {
-               MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, L"No associated function driver", L"Modify", MB_OK);
-       }
-
-       CString text(Message.ToCString());
-       myCResultDialog.SetText(text);
-}
-
-void COcafDoc::OnUpdateModify(CCmdUI* pCmdUI) 
-{
-       // Disable the "modify" button if there is no selected object or several selected objects 
-       myAISContext->InitSelected();
-       if(myAISContext->NbSelected()!=1)
-       {
-               pCmdUI->Enable(Standard_False);
-               return;
-       }
-
-       // Get the root label of the selected object using its TPrsStd_AISPresentation
-       myAISContext->InitSelected();
-       Handle(TPrsStd_AISPresentation) ObjectPrs = 
-               Handle(TPrsStd_AISPresentation)::DownCast(myAISContext->SelectedInteractive()->GetOwner());
-       if (!ObjectPrs.IsNull()){
-               TDF_Label LabObject = ObjectPrs->Label();
-
-
-               // Disable the "modify" button if selected object don't have a TFunction_Function attribute
-               Handle(TFunction_Function) TFF; 
-               pCmdUI->Enable(LabObject.FindAttribute(TFunction_Function::GetID(),TFF) );
-       }
-       else
-               pCmdUI->Enable(FALSE);
-}
-
-
-void COcafDoc::OnCut() 
-{
-       EraseAll();
-       Handle(TDocStd_Document) D = GetOcafDoc();
-       TDF_Label L = D->Main();
-
-       TOcaf_Commands TSC(L);
-
-       // Open a new command (for undo)
-       D->NewCommand();
-
-       // Create a new cyl (10*20 dimensions)
-       TDF_Label L2=TSC.CreateCyl(0, 10, -10, 5, 80, "Cylinder");
-       Handle(TPrsStd_AISPresentation) prs1= TPrsStd_AISPresentation::Set(L2, TNaming_NamedShape::GetID()); 
-       prs1->SetColor(Quantity_NOC_MATRABLUE);
-       TDataStd_Integer::Set(L2, 1);
-       prs1->Display(1);
-       Fit3DViews();
-
-       // Wait a second to see the construction
-       Sleep(500);
-
-       // Create a new box (20*20*20 dimensions, at the (-12,0,10) position)
-       TDF_Label L1=TSC.CreateBox(-12, 0, 10, 20, 30, 40, "Box");
-       Handle(TPrsStd_AISPresentation) prs2= TPrsStd_AISPresentation::Set(L1, TNaming_NamedShape::GetID()); 
-       prs2->SetColor(Quantity_NOC_YELLOW);
-       TDataStd_Integer::Set(L1, 1);
-       prs2->Display(1);
-       Fit3DViews();
-
-       Sleep(1000);
-
-       // Cut the boxes
-       L=TSC.Cut(L1, L2);
-       Handle(TPrsStd_AISPresentation) prs= TPrsStd_AISPresentation::Set(L, TNaming_NamedShape::GetID());
-
-       // Erase the two boxes and display the cut object
-       TDataStd_Integer::Set(L1, 0);
-       prs1->Erase(0);
-       TDataStd_Integer::Set(L2, 0);
-       prs2->Erase(0);
-       TDataStd_Integer::Set(L, 1);
-       prs->Display(1);
-       myAISContext->UpdateCurrentViewer();
-
-       // Close the cut operation command (for undo)
-       D->CommitCommand();
-
-
-               TCollection_AsciiString Message ("\
-//  Cut operation between a cylinder and a box \n\
- \n\
-Handle(TDocStd_Document) D = GetOcafDoc(); \n\
-TDF_Label L = D->Main(); \n\
- \n\
-//  Opening a new command\n\
-D->NewCommand(); \n\
- \n\
-TOcaf_Commands TSC(D->Main()); \n\
- \n\
-//  Create a box \n\
-// Look at the TOcaf_Commands::CreateBox() function \n\
-TDF_Label L1=TSC.CreateBox(-12, 0, 10, 24, 20, 20, '\"'Box'\"'); \n\
-// Look at the TOcaf_Commands::Cut() function \n\
- \n\
-//  Create a cylinder \n\
-// Look at the TOcaf_Commands::CreateCyl() function \n\
-//  Create two boxes \n\
-TDF_Label L2=TSC.CreateCyl(0, 0, 0, 10, 20, '\"'Cylinder'\"'); \n\
- \n\
-//  Cut the cylinder with the box \n\
-L=TSC.Cut(L1, L2); \n\
-Handle(TPrsStd_AISPresentation) prs; \n\
- \n\
-//  Setting the TPrsStd_AISPresentation of the cut object\n\
-prs= TPrsStd_AISPresentation::Set(L, TNaming_NamedShape::GetID()); \n\
- \n\
-//  Displaying the TPrsStd_AISPresentation of the cut object\n\
-prs->Display(1); \n\
- \n\
-//  Commit the command\n\
-D->CommitCommand(); \n\
-\n");
-
-       myCResultDialog.SetTitle("Cut operation");
-       CString text(Message.ToCString());
-       myCResultDialog.SetText(text);
-}
-
-
-void COcafDoc::Fit3DViews()
-{
-  POSITION position = GetFirstViewPosition();
-  while (position != (POSITION)NULL)
-  {
-    CView* pCurrentView = (CView*)GetNextView(position);
-     if(pCurrentView->IsKindOf( RUNTIME_CLASS( OCC_3dView ) ) )
-    {
-        ASSERT_VALID(pCurrentView);
-        OCC_3dView* aOCC_3dView = (OCC_3dView*)pCurrentView;
-        aOCC_3dView->FitAll();
-    }
-  }
-
-}
-
-void COcafDoc::OnObjectDelete() 
-{
-       Handle(TDocStd_Document) D = GetOcafDoc();
-
-       D->NewCommand();
-
-       AIS_ListOfInteractive aList;
-       for (myAISContext->InitSelected(); myAISContext->MoreSelected(); myAISContext->NextSelected())
-  {
-               aList.Append(myAISContext->SelectedInteractive());
-  }
-
-       for (AIS_ListOfInteractive::Iterator anIter (aList); anIter.More(); anIter.Next())
-       {
-               Handle(AIS_InteractiveObject) aPrs = anIter.Value();
-               if (myAISContext->DisplayStatus (aPrs) == AIS_DS_Displayed)
-               {
-                       Handle(TPrsStd_AISPresentation) CurrentPrs = Handle(TPrsStd_AISPresentation)::DownCast(aPrs->GetOwner());
-                       TDataStd_Integer::Set(CurrentPrs->Label(), 0);
-                       CurrentPrs->Erase(1);
-               }
-       }
-       D->CommitCommand();
-       myAISContext->UpdateCurrentViewer();
-               TCollection_AsciiString Message ("\
- // Delete selected object \n\
-  \n\
- Handle(TDocStd_Document) D = GetOcafDoc(); \n\
-  \n\
- //  Opening a new command\n\
- D->NewCommand(); \n\
-  \n\
- // Getting the  TPrsStd_AISPresentation of the selected object\n\
- Handle(TPrsStd_AISPresentation) CurrentPrs \n\
-     =Handle(TPrsStd_AISPresentation)::DownCast(myAISContext->Current()->GetOwner());  \n\
-  \n\
- // Erasing the  TPrsStd_AISPresentation of the selected object\n\
- CurrentPrs->Erase(1); \n\
-  \n\
- //  Commit the command\n\
- D->CommitCommand(); \n\
- \n");
-
-  myCResultDialog.SetTitle("Delete");
-       CString text(Message.ToCString());
-       myCResultDialog.SetText(text);
- }
- void COcafDoc::OnUpdateObjectDelete(CCmdUI* pCmdUI) 
- {
-     myAISContext->InitSelected();
-       pCmdUI->Enable (myAISContext->MoreSelected());
- }
- void COcafDoc::DisplayPrs()
- {
-       TDF_Label LabSat = myOcafDoc->Main();
-       for (TDF_ChildIterator it(LabSat); it.More(); it.Next())
-       {
-               TDF_Label L = it.Value();
-               Handle(TNaming_NamedShape) TNS;
-               if (!L.FindAttribute(TNaming_NamedShape::GetID(), TNS)) continue;
-               Handle(TDataStd_Integer) TDI;
-
-               // To know if the object was displayed
-               if (L.FindAttribute(TDataStd_Integer::GetID(), TDI))
-                       if(!TDI->Get())  continue;
-
-               Handle(TPrsStd_AISPresentation) prs;
-               if (!L.FindAttribute(TPrsStd_AISPresentation::GetID(),prs))
-                       prs = TPrsStd_AISPresentation::Set(L,TNaming_NamedShape::GetID());
-               prs->SetColor(Quantity_NOC_ORANGE);
-               prs->Display(1);
-    }
-
-       myAISContext->UpdateCurrentViewer();
-}
-
-void COcafDoc::OnCloseDocument() 
-{
-       Handle(TOcaf_Application) OcafApp = ((COcafApp*)AfxGetApp())->GetApp();
-       OcafApp->Close(myOcafDoc);
-       CDocument::OnCloseDocument();
-}
-
-void COcafDoc::OnFileSaveAs() 
-{
-       const wchar_t* SPathName = PathName;
-       TCollection_ExtendedString TPathName (SPathName);
-
-       CString Filter;
-
-       if (TPathName.SearchFromEnd(".xml") > 0){
-               Filter = "OCAFSample(XML) (*.xml)|*.xml|OCAFSample(Binary) (*.cbf)|*.cbf||";
-       } else {
-               Filter = "OCAFSample(Binary) (*.cbf)|*.cbf|OCAFSample(XML) (*.xml)|*.xml||";
-       }
-       
-       CFileDialog dlg(FALSE,
-                       L"cbf",
-                       GetTitle(),
-                       OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
-                       Filter,
-                       NULL );
-       
-
-       Handle(TOcaf_Application) m_App= ((COcafApp*)AfxGetApp())->GetApp();
-       if (dlg.DoModal() != IDOK) return;
-
-       SetTitle(dlg.GetFileTitle());
-
-       CWaitCursor aWaitCursor;
-       CString CSPath = dlg.GetPathName();
-
-       std::cout << "Save As " << CSPath << std::endl;
-       PathName=CSPath;
-        const wchar_t* SPath = CSPath;
-       TCollection_ExtendedString TPath (SPath);
-
-           if (TPath.SearchFromEnd(".xml") > 0)
-               {
-                 // The document must be saved in XML format
-                       myOcafDoc->ChangeStorageFormat("XmlOcaf");
-               }
-               else if (TPath.SearchFromEnd(".cbf") > 0)
-               {
-                       // The document must be saved in binary format
-                       myOcafDoc->ChangeStorageFormat("BinOcaf");
-               }
-
-               try
-               {
-                       // Saves the document in the current application
-                       m_App->SaveAs(myOcafDoc,TPath);
-               }
-               catch(...)
-               {
-                       AfxMessageBox (L"Error! The file wasn't saved.");
-               return;
-               }
-//     // save the document in the current application
-//     m_App->SaveAs(myOcafDoc,TPath);
-
-       SetPathName(SPath);
-
-       TCollection_AsciiString Message = TCollection_AsciiString("\
-//  Storing the document as \n\
- \n\
-Handle(TOcaf_Application) m_App= ((COcafApp*)AfxGetApp())->GetApp(); \n\
- \n\
-//  Saving current OCAF document at TPath \n\
-m_App->SaveAs(myOcafDoc,(TCollection_ExtendedString) TPath); \n\
-\n");
-
-       myCResultDialog.SetTitle("Save a document");
-       CString text(Message.ToCString());
-       myCResultDialog.SetText(text);
-}
-
-void COcafDoc::OnFileSave() 
-{
-       Handle(TOcaf_Application) m_App= ((COcafApp*)AfxGetApp())->GetApp();
-
-       
-       if (myOcafDoc.IsNull())
-       {
-         AfxMessageBox (L"Error during saving! Empty document.");
-         return;
-       }
-
-       if(PathName!="")
-       {
-          const wchar_t* SPath = PathName;
-          TCollection_ExtendedString TPath (SPath);
-
-           if (TPath.SearchFromEnd(".xml") > 0)
-               {
-                 // The document must be saved in XML format
-                       myOcafDoc->ChangeStorageFormat("XmlOcaf");
-               }
-               else if (TPath.SearchFromEnd(".cbf") > 0)
-               {
-                       // The document must be saved in binary format
-                       myOcafDoc->ChangeStorageFormat("BinOcaf");
-               }
-
-               try
-               {
-                       // Saves the document in the current application
-                       m_App->SaveAs(myOcafDoc,TPath);
-               }
-               catch(...)
-               {
-                       AfxMessageBox (L"Error! The file wasn't saved.");
-                   return;
-               }
-
-       TCollection_AsciiString Message = TCollection_AsciiString("\
-//  Storing the document \n\
- \n\
-Handle(TOcaf_Application) m_App= ((COcafApp*)AfxGetApp())->GetApp(); \n\
- \n\
-//  Saving current OCAF document at TPath \n\
-m_App->SaveAs(myOcafDoc,(TCollection_ExtendedString) TPath); \n\
-\n");
-
-               myCResultDialog.SetTitle("Save a document");
-               CString text(Message.ToCString());
-               myCResultDialog.SetText(text);
-               return;
-       }
-
-       CFileDialog dlg(FALSE,
-                       L"cbf",
-                       GetTitle(),
-                       OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
-                       L"OCAFSample(Binary) (*.cbf)|*.cbf|OCAFSample(XML) (*.xml)|*.xml||",
-                       NULL );
-
-       if (dlg.DoModal() != IDOK) return;
-
-       SetTitle(dlg.GetFileTitle());
-
-       CWaitCursor aWaitCursor;
-       CString CSPath = dlg.GetPathName();
-
-       const wchar_t* SPath = CSPath;
-    TCollection_ExtendedString TPath (SPath);
-
-    // Choose storage format
-    if (TPath.SearchFromEnd(".xml") > 0)
-       {
-         // The document must be saved in XML format
-         myOcafDoc->ChangeStorageFormat("XmlOcaf");
-       }
-       else if (TPath.SearchFromEnd(".cbf") > 0)
-       {
-         // The document must be saved in binary format
-         myOcafDoc->ChangeStorageFormat("BinOcaf");
-       }
-
-   try
-   {
-         // Saves the document in the current application
-         m_App->SaveAs(myOcafDoc,TPath);
-   }
-   catch(...)
-   {
-         AfxMessageBox (L"Error! The file wasn't saved.");
-         return;
-   }
-
-       SetPathName(SPath);
-       PathName=CSPath;
-
-
-       TCollection_AsciiString Message = TCollection_AsciiString("\
-//  Storing the document as \n\
- \n\
-Handle(TOcaf_Application) m_App= ((COcafApp*)AfxGetApp())->GetApp(); \n\
- \n\
-//  Saving current OCAF document at TPath \n\
-m_App->SaveAs(myOcafDoc,(TCollection_ExtendedString) TPath); \n\
-\n");
-
-       myCResultDialog.SetTitle("Save a document");
-       CString text(Message.ToCString());
-       myCResultDialog.SetText(text);
-}
-
-BOOL COcafDoc::OnOpenDocument(LPCTSTR lpszPathName)
-{
-  if (!CDocument::OnOpenDocument(lpszPathName))
-  {
-    return FALSE;
-  }
-
-  Handle(TOcaf_Application) m_App= ((COcafApp*)AfxGetApp())->GetApp();
-
-  CWaitCursor aWaitCursor;
-  PathName = lpszPathName;
-
-  const wchar_t* aPathName = lpszPathName;
-  TCollection_ExtendedString anOccPathName (aPathName);
-
-  // Open the document in the current application
-  //PCDM_ReaderStatus RS = m_App->Open(TPath,myOcafDoc);
-  m_App->Open(anOccPathName, myOcafDoc);
-  //CDF_RetrievableStatus RS = m_App->Open(TPath,myOcafDoc);
-
-  // Connect the document CAF (myDoc) with the AISContext (myAISContext)
-  TPrsStd_AISViewer::New (myOcafDoc->Main(), myViewer);
-  myOcafDoc->SetUndoLimit (10);
-
-  Handle(AIS_InteractiveContext) aContext;
-  TPrsStd_AISViewer::Find (myOcafDoc->Main(), aContext);
-  aContext->SetDisplayMode (AIS_Shaded, Standard_True);
-  myAISContext = aContext;
-
-  // Display the presentations (which was not stored in the document)
-  DisplayPrs();
-
-  TCollection_AsciiString Message = TCollection_AsciiString("\
-//  Retrieve a document \n\
- \n\
- Handle(TOcaf_Application) m_App= ((COcafApp*)AfxGetApp())->GetApp(); \n\
- \n\
-//  Opening the OCAF document from the TPath file\n\
-m_App->Open((TCollection_ExtendedString) TPath,myOcafDoc); \n\
- \n\
-//  Creation of a new TPrsStd_AISViewer connected to the current V3d_Viewer\n\
-TPrsStd_AISViewer::New(myOcafDoc->Main(),myViewer); \n\
- \n\
-//  Setting the number of memorized undos \n\
-myOcafDoc->SetUndoLimit(10); \n\
- \n\
-\n");
-
-  myCResultDialog.SetTitle ("Open a document");
-  CString text (Message.ToCString());
-  myCResultDialog.SetText (text);
-
-  return TRUE;
-
-}
-
-
-void COcafDoc::EraseAll()
-{
-       myOcafDoc->NewCommand();
-
-       TDF_Label LabSat = myOcafDoc->Main();
-
-       for (TDF_ChildIterator it(LabSat); it.More(); it.Next())
-       {
-               TDF_Label L = it.Value();
-               Handle(TNaming_NamedShape) TNS;
-               if (!L.FindAttribute(TNaming_NamedShape::GetID(), TNS)) continue;
-               Handle(TDataStd_Integer) TDI;
-
-               // To know if the object was displayed
-               if (L.FindAttribute(TDataStd_Integer::GetID(), TDI))
-                       if(!TDI->Get())  continue;
-
-               Handle(TPrsStd_AISPresentation) prs;
-               if (!L.FindAttribute(TPrsStd_AISPresentation::GetID(),prs))
-                       prs = TPrsStd_AISPresentation::Set(L,TNaming_NamedShape::GetID());
-               prs->SetColor(Quantity_NOC_ORANGE);
-               prs->Erase(1);
-    }
-
-       myAISContext->UpdateCurrentViewer();
-
-       myOcafDoc->CommitCommand();
-}
-
-void  COcafDoc::Popup(const Standard_Integer  x,
-                                                          const Standard_Integer  y ,
-                               const Handle(V3d_View)& aView   ) 
-{
-  Standard_Integer PopupMenuNumber=0;
- myAISContext->InitSelected();
-  if (myAISContext->MoreSelected())
-    PopupMenuNumber=1;
-
-  CMenu menu;
-  VERIFY(menu.LoadMenu(IDR_Popup3D));
-  CMenu* pPopup = menu.GetSubMenu(PopupMenuNumber);
-
-  ASSERT(pPopup != NULL);
-   if (PopupMenuNumber == 1) // more than 1 object.
-  {
-    bool OneOrMoreInShading = false;
-       for (myAISContext->InitSelected();myAISContext->MoreSelected ();myAISContext->NextSelected ())
-    if (myAISContext->IsDisplayed(myAISContext->SelectedInteractive(),1)) OneOrMoreInShading=true;
-       if(!OneOrMoreInShading)
-       pPopup->EnableMenuItem(5, MF_BYPOSITION | MF_DISABLED | MF_GRAYED);
-   }
-
-  POINT winCoord = { x , y };
-  Handle(WNT_Window) aWNTWindow=
-  Handle(WNT_Window)::DownCast(aView->Window());
-  ClientToScreen ( (HWND)(aWNTWindow->HWindow()),&winCoord);
-  pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON , winCoord.x, winCoord.y , 
-                         AfxGetMainWnd());
-
-
-}
-
-
-//void COcafDoc::OnDfbr() 
-//{
-//     // TODO: Add your command handler code here
-//     DebugBrowser::DFBrowser(myOcafDoc);
-//     
-//}
diff --git a/samples/mfc/standard/06_Ocaf/src/OcafDoc.h b/samples/mfc/standard/06_Ocaf/src/OcafDoc.h
deleted file mode 100755 (executable)
index d1704d2..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-// OcafDoc.h : interface of the COcafDoc class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_OCAFDOC_H__49324D7C_7836_11D4_8D45_00AA00D10994__INCLUDED_)
-#define AFX_OCAFDOC_H__49324D7C_7836_11D4_8D45_00AA00D10994__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include <OCC_3dDoc.h>
-#include <OCC_3dView.h>
-
-class COcafDoc : public OCC_3dDoc
-{
-protected: // create from serialization only
-       COcafDoc();
-       DECLARE_DYNCREATE(COcafDoc)
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(COcafDoc)
-       public:
-       virtual void OnCloseDocument();
-       virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
-    virtual BOOL COcafDoc::OnNewDocument();
-
-       //}}AFX_VIRTUAL
-
-// Implementation
-public:
-       virtual ~COcafDoc();
-    virtual void Popup (const Standard_Integer  x       ,
-                                       const Standard_Integer  y       ,
-                        const Handle(V3d_View)& aView   ); 
-
-#ifdef _DEBUG
-       virtual void AssertValid() const;
-       virtual void Dump(CDumpContext& dc) const;
-#endif
-
-protected:
-
-// Generated message map functions
-protected:
-       //{{AFX_MSG(COcafDoc)
-       afx_msg void OnCreatebox();
-       afx_msg void OnEditRedo();
-       afx_msg void OnEditUndo();
-       afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
-       afx_msg void OnModify();
-       afx_msg void OnUpdateModify(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateEditRedo(CCmdUI* pCmdUI);
-       afx_msg void OnCut();
-       afx_msg void OnObjectDelete();
-       afx_msg void OnUpdateObjectDelete(CCmdUI* pCmdUI);
-       afx_msg void OnFileSave();
-       afx_msg void OnFileSaveAs();
-       afx_msg void OnCreatecyl();
-       afx_msg void OnDfbr();
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-public :
-void ActivateFrame(CRuntimeClass* pViewClass, int nCmdShow = SW_RESTORE  );
-  Handle(TDocStd_Document) GetOcafDoc() {return myOcafDoc;};
-       CString PathName;
-
-private:
-  Handle(TDocStd_Document) myOcafDoc;
-
-public :
-       void EraseAll();
-
-private:
-       void DisplayPrs();
-       void Fit3DViews();
-
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_OCAFDOC_H__49324D7C_7836_11D4_8D45_00AA00D10994__INCLUDED_)
diff --git a/samples/mfc/standard/06_Ocaf/src/OcafMainFrm.cpp b/samples/mfc/standard/06_Ocaf/src/OcafMainFrm.cpp
deleted file mode 100755 (executable)
index 09a7124..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-// MainFrm.cpp : implementation of the OcafMainFrame class
-//
-
-#include "StdAfx.h"
-
-#include "OcafMainFrm.h"
-
-#include "OcafApp.h"
-
-/////////////////////////////////////////////////////////////////////////////
-// OcafMainFrame
-
-IMPLEMENT_DYNAMIC(OcafMainFrame, CMDIFrameWnd)
-
-BEGIN_MESSAGE_MAP(OcafMainFrame, CMDIFrameWnd)
-       //{{AFX_MSG_MAP(OcafMainFrame)
-               // NOTE - the ClassWizard will add and remove mapping macros here.
-               //    DO NOT EDIT what you see in these blocks of generated code !
-       ON_WM_CREATE()
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-static UINT indicators[] =
-{
-       ID_SEPARATOR,           // status line indicator
-//     ID_INDICATOR_CAPS,
-//     ID_INDICATOR_NUM,
-//     ID_INDICATOR_SCRL,
-};
-
-/////////////////////////////////////////////////////////////////////////////
-// OcafMainFrame construction/destruction
-
-OcafMainFrame::OcafMainFrame():
-       OCC_MainFrame(true)
-{
-       // TODO: add member initialization code here
-       
-}
-
-OcafMainFrame::~OcafMainFrame()
-{
-}
-
-int OcafMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
-{
-       if (OCC_MainFrame::OnCreate(lpCreateStruct) == -1)
-               return -1;
-       
-       if (!m_UndoRedoBar.Create(this) ||
-               !m_UndoRedoBar.LoadToolBar(IDR_UNDOREDO) ||
-               !m_ActionsBar.Create(this) ||
-               !m_ActionsBar.LoadToolBar(IDR_ACTIONS))
-       {
-               TRACE0("Failed to create toolbar\n");
-               return -1;      // fail to create
-       }
-
-       m_UndoRedoBar.SetBarStyle(m_UndoRedoBar.GetBarStyle() |
-               CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
-
-       m_ActionsBar.SetBarStyle(m_ActionsBar.GetBarStyle() |
-               CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
-
-       // TODO: Delete these three lines if you don't want the toolbar to
-       //  be dockable
-       m_UndoRedoBar.EnableDocking(CBRS_ALIGN_ANY);
-       m_ActionsBar.EnableDocking(CBRS_ALIGN_ANY);
-
-       EnableDocking(CBRS_ALIGN_ANY);
-    DockControlBarLeftOf(&m_UndoRedoBar,m_AISToolBar);
-    DockControlBarLeftOf(&m_ActionsBar,&m_UndoRedoBar);
-
-//     SetTitle("Ocaf Sample");
-       return 0;
-}
-
-
-/////////////////////////////////////////////////////////////////////////////
-// OcafMainFrame diagnostics
-
-#ifdef _DEBUG
-void OcafMainFrame::AssertValid() const
-{
-       CMDIFrameWnd::AssertValid();
-}
-
-void OcafMainFrame::Dump(CDumpContext& dc) const
-{
-       CMDIFrameWnd::Dump(dc);
-}
-
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// OcafMainFrame message handlers
diff --git a/samples/mfc/standard/06_Ocaf/src/OcafMainFrm.h b/samples/mfc/standard/06_Ocaf/src/OcafMainFrm.h
deleted file mode 100755 (executable)
index 55abd74..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-// MainFrm.h : interface of the OcafMainFrame class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_MAINFRM_H__49324D78_7836_11D4_8D45_00AA00D10994__INCLUDED_)
-#define AFX_MAINFRM_H__49324D78_7836_11D4_8D45_00AA00D10994__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include <OCC_MainFrame.h>
-
-class OcafMainFrame : public OCC_MainFrame
-{
-       DECLARE_DYNAMIC(OcafMainFrame)
-public:
-       OcafMainFrame();
-
-// Attributes
-public:
-
-// Operations
-public:
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(OcafMainFrame)
-       //}}AFX_VIRTUAL
-
-// Implementation
-public:
-       virtual ~OcafMainFrame();
-#ifdef _DEBUG
-       virtual void AssertValid() const;
-       virtual void Dump(CDumpContext& dc) const;
-#endif
-
-
-protected:  // control bar embedded members
-       CToolBar        m_UndoRedoBar;
-       CToolBar        m_ActionsBar;
-
-// Generated message map functions
-protected:
-       //{{AFX_MSG(OcafMainFrame)
-       afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
-               // NOTE - the ClassWizard will add and remove member functions here.
-               //    DO NOT EDIT what you see in these blocks of generated code!
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-
-private :
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_MAINFRM_H__49324D78_7836_11D4_8D45_00AA00D10994__INCLUDED_)
diff --git a/samples/mfc/standard/06_Ocaf/src/StdAfx.cpp b/samples/mfc/standard/06_Ocaf/src/StdAfx.cpp
deleted file mode 100755 (executable)
index e189c88..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// StdAfx.cpp : source file that includes just the standard includes
-//     SampleOcaf.pch will be the pre-compiled header
-//     StdAfx.obj will contain the pre-compiled type information
-
-#include "StdAfx.h"
-
diff --git a/samples/mfc/standard/06_Ocaf/src/StdAfx.h b/samples/mfc/standard/06_Ocaf/src/StdAfx.h
deleted file mode 100755 (executable)
index a4fad16..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-// StdAfx.h : include file for standard system include files,
-//  or project specific include files that are used frequently, but
-//      are changed infrequently
-//
-
-#if !defined(AFX_STDAFX_H__49324D76_7836_11D4_8D45_00AA00D10994__INCLUDED_)
-#define AFX_STDAFX_H__49324D76_7836_11D4_8D45_00AA00D10994__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#define VC_EXTRALEAN           // Exclude rarely-used stuff from Windows headers
-
-#include <afxwin.h>         // MFC core and standard components
-#include <afxext.h>         // MFC extensions
-#include <afxdisp.h>        // MFC OLE automation classes
-#ifndef _AFX_NO_AFXCMN_SUPPORT
-#include <afxcmn.h>                    // MFC support for Windows Common Controls
-#endif // _AFX_NO_AFXCMN_SUPPORT
-
-
-
-// CasCade :
-
-#ifdef MAINWIN
-# define false FALSE
-# define true TRUE
-#endif
-
-#include <Standard_ShortReal.hxx>
-
-#include <AIS_InteractiveContext.hxx>
-#include <AIS_InteractiveObject.hxx>
-#include <AIS_Shape.hxx>
-#include <AIS_Trihedron.hxx>
-
-#include <Aspect_Background.hxx>
-#include <Aspect_TypeOfLine.hxx>
-#include <Aspect_WidthOfLine.hxx>
-#include <Bnd_Box2d.hxx>
-#include <BndLib_Add2dCurve.hxx>
-#include <BRep_Builder.hxx>
-#include <BRep_Tool.hxx>
-
-
-#include <BRepBuilderAPI.hxx>
-#include <BRepAlgo.hxx>
-
-#include <BRepTools.hxx>
-#include <Standard_DefineHandle.hxx> 
-#include <DsgPrs_LengthPresentation.hxx>
-#include <GCE2d_MakeSegment.hxx>
-#include <GCPnts_TangentialDeflection.hxx>
-#include <Geom_Axis2Placement.hxx>
-#include <Geom_CartesianPoint.hxx>
-#include <Geom_Line.hxx>
-#include <Geom_Surface.hxx>
-#include <Geom2d_BezierCurve.hxx>
-#include <Geom2d_BSplineCurve.hxx>
-#include <Geom2d_Curve.hxx>
-#include <Geom2d_TrimmedCurve.hxx>
-#include <Geom2dAdaptor_Curve.hxx>
-#include <GeomAbs_CurveType.hxx>
-#include <GeomAdaptor_Curve.hxx>
-#include <GeomTools_Curve2dSet.hxx>
-#include <gp_Ax2d.hxx>
-#include <gp_Circ2d.hxx>
-#include <gp_Dir2d.hxx>
-#include <gp_Lin2d.hxx>
-#include <gp_Pnt2d.hxx>
-#include <gp_Vec.hxx>
-#include <gp_Vec2d.hxx>
-#include <Graphic3d_NameOfMaterial.hxx>
-#include <OSD_Environment.hxx>
-#include <Precision.hxx>
-#include <Prs3d_Drawer.hxx>
-#include <Prs3d_IsoAspect.hxx>
-#include <Prs3d_LineAspect.hxx>
-#include <Prs3d_Text.hxx>
-#include <Quantity_NameOfColor.hxx>
-#include <Quantity_TypeOfColor.hxx>
-#include <SelectMgr_EntityOwner.hxx>
-#include <SelectMgr_SelectableObject.hxx>
-#include <SelectMgr_Selection.hxx>
-#include <SelectMgr_SelectionManager.hxx>
-#include <Standard_Boolean.hxx>
-#include <Standard_CString.hxx>
-#include <Standard_ErrorHandler.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_IStream.hxx>
-#include <Standard_Macro.hxx>
-#include <Standard_NotImplemented.hxx>
-#include <Standard_OStream.hxx>
-#include <Standard_Real.hxx>
-#include <StdPrs_Curve.hxx>
-#include <StdPrs_Point.hxx>
-#include <StdPrs_PoleCurve.hxx>
-#include <TCollection_AsciiString.hxx>
-#include <TColgp_Array1OfPnt2d.hxx>
-#include <TColgp_HArray1OfPnt2d.hxx>
-#include <TCollection_AsciiString.hxx>
-#include <TColStd_HSequenceOfTransient.hxx>
-#include <TColStd_MapIteratorOfMapOfTransient.hxx>
-#include <TColStd_MapOfTransient.hxx>
-#include <TopExp_Explorer.hxx>
-#include <TopoDS.hxx>
-#include <TopoDS_Compound.hxx>
-#include <TopoDS_ListIteratorOfListOfShape.hxx>
-#include <TopoDS_Shape.hxx>
-#include <TopoDS_Solid.hxx>
-#include <TopoDS_Vertex.hxx>
-#include <TopExp.hxx>
-#include <TopTools_ListIteratorOfListOfShape.hxx>
-#include <TopTools_HSequenceOfShape.hxx>
-#include <UnitsAPI.hxx>
-#include <V3d_View.hxx>
-#include <V3d_Viewer.hxx>
-#include <WNT_Window.hxx>
-#include <BRepPrimAPI_MakeBox.hxx>
-#include <BRepPrimAPI_MakeCylinder.hxx>
-
-// OCAF
-#include <TDocStd_Document.hxx>
-#include <TPrsStd_AISViewer.hxx>
-#include <TDF_Label.hxx>
-#include <TDF_Reference.hxx>
-#include <TDF_ChildIterator.hxx>
-#include <TNaming_NamedShape.hxx>
-#include <TNaming_Builder.hxx>
-#include <TDataStd_Real.hxx>
-#include <TFunction_Logbook.hxx>
-#include <TPrsStd_AISPresentation.hxx>
-#include <TDataStd_Name.hxx>
-#include <TFunction_DriverTable.hxx>
-#include <TFunction_Function.hxx>
-#include <TDataStd_Integer.hxx>
-
-// Ocaf
-#include <TOcaf_Commands.hxx>
-#include <TOcafFunction_BoxDriver.hxx>
-#include <TOcafFunction_CylDriver.hxx>
-#include <TOcafFunction_CutDriver.hxx>
-
-//End CasCade
-
-#include <res\resource.h>
-
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_STDAFX_H__49324D76_7836_11D4_8D45_00AA00D10994__INCLUDED_)
diff --git a/samples/mfc/standard/06_Ocaf/src/TOcafFunction_BoxDriver.cxx b/samples/mfc/standard/06_Ocaf/src/TOcafFunction_BoxDriver.cxx
deleted file mode 100755 (executable)
index 40979bf..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
-// File:       TOcafFunction_BoxDriver.cxx
-// Created:    Mon Dec 27 10:37:13 1999
-// Author:     Vladislav ROMASHKO
-//             <vro@flox.nnov.matra-dtv.fr>
-
-
-#include <stdafx.h>
-#include <TOcafFunction_BoxDriver.hxx>
-#include "Standard_GUID.hxx"
-#include "TFunction_Logbook.hxx"
-#include "TDataStd_Real.hxx"
-#include "BRepPrimAPI_MakeBox.hxx"
-#include "TNaming_Builder.hxx"
-
-IMPLEMENT_STANDARD_RTTIEXT (TOcafFunction_BoxDriver, TFunction_Driver)
-
-//=======================================================================
-//function : GetID
-//purpose  :
-//=======================================================================
-
-const Standard_GUID& TOcafFunction_BoxDriver::GetID() {
-  static Standard_GUID anID("22D22E51-D69A-11d4-8F1A-0060B0EE18E8");
-  return anID;
-}
-
-
-//=======================================================================
-//function : TPartStd_BoxDriver
-//purpose  : Creation of an instance of the driver. It's possible (and recommended)
-//         : to have only one instance of a driver for the whole session.
-//=======================================================================
-
-TOcafFunction_BoxDriver::TOcafFunction_BoxDriver()
-{}
-
-//=======================================================================
-//function : Validate
-//purpose  : Validation of the object label, its arguments and its results.
-//=======================================================================
-
-void TOcafFunction_BoxDriver::Validate(Handle(TFunction_Logbook)& log) const
-{
-  // We validate the object label ( Label() ), all the arguments and the results of the object:
-  log->SetValid(Label(), Standard_True);
-}
-
-//=======================================================================
-//function : MustExecute
-//purpose  : We call this method to check if the object was modified to
-//         : be invoked. If the object label or an argument is modified,
-//         : we must recompute the object - to call the method Execute().
-//=======================================================================
-Standard_Boolean TOcafFunction_BoxDriver::MustExecute(const Handle(TFunction_Logbook)& log) const
-{
-       // If the object's label is modified:
-  if (log->IsModified(Label())) return Standard_True; 
-
-  // Cut (in our simple case) has two arguments: The original shape, and the tool shape.
-  // They are on the child labels of the box's label:
-  // So, OriginalNShape  - is attached to the first  child label
-  //     ToolNShape - is attached to the second child label.
-  // 
-  // Let's check them:
-  if (log->IsModified(Label().FindChild(1))) return Standard_True; // width.
-  if (log->IsModified(Label().FindChild(2))) return Standard_True; // length,
-  if (log->IsModified(Label().FindChild(3))) return Standard_True; // width.
-  if (log->IsModified(Label().FindChild(4))) return Standard_True; // length,
-  if (log->IsModified(Label().FindChild(5))) return Standard_True; // width.
-  if (log->IsModified(Label().FindChild(6))) return Standard_True; // length,
-  
- // if there are no any modifications concerned the box,
-  // it's not necessary to recompute (to call the method Execute()):
-  return Standard_False;
-}
-
-//=======================================================================
-//function : Execute
-//purpose  : 
-//         : We compute the object and topologically name it.
-//         : If during the execution we found something wrong,
-//         : we return the number of the failure. For example:
-//         : 1 - an attribute hasn't been found,
-//         : 2 - algorithm failed,
-//         : if there are no any mistakes occurred we return 0:
-//         : 0 - no mistakes were found.
-//=======================================================================
-Standard_Integer TOcafFunction_BoxDriver::Execute(Handle(TFunction_Logbook)& /*log*/) const
-{
-       // Get the values of dimension and position attributes 
-       Handle(TDataStd_Real) TSR;
-       Standard_Real x,y,z,l,h,w;
-       if (!Label().FindChild(1).FindAttribute(TDataStd_Real::GetID(), TSR )) return 1;
-       l=TSR->Get();
-
-       if (!Label().FindChild(2).FindAttribute(TDataStd_Real::GetID(), TSR )) return 1;
-       h=TSR->Get();
-
-       if (!Label().FindChild(3).FindAttribute(TDataStd_Real::GetID(), TSR )) return 1;
-       w=TSR->Get();
-
-       if (!Label().FindChild(4).FindAttribute(TDataStd_Real::GetID(), TSR )) return 1;
-       x=TSR->Get();
-
-       if (!Label().FindChild(5).FindAttribute(TDataStd_Real::GetID(), TSR )) return 1;
-       y=TSR->Get();
-
-       if (!Label().FindChild(6).FindAttribute(TDataStd_Real::GetID(), TSR )) return 1;
-       z=TSR->Get();
-
-       // Build a box using the dimension and position attributes 
-       BRepPrimAPI_MakeBox mkBox( gp_Pnt(x, y ,z), l, h ,w);
-       TopoDS_Shape ResultShape = mkBox.Shape();
-
-
-       // Build a TNaming_NamedShape using built box
-       TNaming_Builder B(Label());
-       B.Generated(ResultShape);
-// That's all:
-  // If there are no any mistakes we return 0:
-  return 0;
-}
diff --git a/samples/mfc/standard/06_Ocaf/src/TOcafFunction_BoxDriver.hxx b/samples/mfc/standard/06_Ocaf/src/TOcafFunction_BoxDriver.hxx
deleted file mode 100755 (executable)
index 8a772e7..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-// File generated by CPPExt (Transient)
-//
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-//
-#ifndef _TOcafFunction_BoxDriver_HeaderFile
-#define _TOcafFunction_BoxDriver_HeaderFile
-
-#ifndef _Standard_HeaderFile
-#include <Standard.hxx>
-#endif
-
-#ifndef _TFunction_Driver_HeaderFile
-#include <TFunction_Driver.hxx>
-#endif
-#ifndef _Standard_Boolean_HeaderFile
-#include <Standard_Boolean.hxx>
-#endif
-#ifndef _Standard_Integer_HeaderFile
-#include <Standard_Integer.hxx>
-#endif
-class TFunction_Logbook;
-
-class TOcafFunction_BoxDriver : public TFunction_Driver
-{
-public:
-
-  Standard_EXPORT static const Standard_GUID& GetID ();
-  Standard_EXPORT TOcafFunction_BoxDriver ();
-  Standard_EXPORT virtual  void Validate (Handle (TFunction_Logbook)& log) const;
-  Standard_EXPORT virtual  Standard_Boolean MustExecute (const Handle (TFunction_Logbook)& log) const;
-  Standard_EXPORT virtual  Standard_Integer Execute (Handle (TFunction_Logbook)& log) const;
-
-  // OCCT RTTI
-  DEFINE_STANDARD_RTTIEXT(TOcafFunction_BoxDriver,TFunction_Driver)
-};
-
-
-#endif
diff --git a/samples/mfc/standard/06_Ocaf/src/TOcafFunction_CutDriver.cxx b/samples/mfc/standard/06_Ocaf/src/TOcafFunction_CutDriver.cxx
deleted file mode 100755 (executable)
index 66cbebe..0000000
+++ /dev/null
@@ -1,143 +0,0 @@
-// File:       TOcafFunction_CutDriver.cxx
-// Created:    Mon Dec 27 10:37:13 1999
-// Author:     Vladislav ROMASHKO
-//             <vro@flox.nnov.matra-dtv.fr>
-
-
-#include <stdafx.h>
-#include <TOcafFunction_CutDriver.hxx>
-
-#include <TNaming_NamedShape.hxx>
-#include <TNaming_Builder.hxx>
-
-#include <BRepAlgoAPI_Cut.hxx>
-#include <TCollection_AsciiString.hxx>
-#include <TDF_Tool.hxx>
-#include "Standard_GUID.hxx"
-#include "TFunction_Logbook.hxx"
-#include "TDF_Reference.hxx"
-
-IMPLEMENT_STANDARD_RTTIEXT (TOcafFunction_CutDriver, TFunction_Driver)
-
-//=======================================================================
-//function : GetID
-//purpose  :
-//=======================================================================
-
-const Standard_GUID& TOcafFunction_CutDriver::GetID() {
-  static Standard_GUID anID("22D22E52-D69A-11d4-8F1A-0060B0EE18E8");
-  return anID;
-}
-
-
-//=======================================================================
-//function : TPartStd_CutDriver
-//purpose  : Creation of an instance of the driver. It's possible (and recommended)
-//         : to have only one instance of a driver for the whole session.
-//=======================================================================
-
-TOcafFunction_CutDriver::TOcafFunction_CutDriver()
-{}
-
-//=======================================================================
-//function : Validate
-//purpose  : Validation of the object label, its arguments and its results.
-//=======================================================================
-
-void TOcafFunction_CutDriver::Validate(Handle(TFunction_Logbook)& log) const
-{
-  // We validate the object label ( Label() ), all the arguments and the results of the object:
-  log->SetValid(Label(), Standard_True);
-}
-
-//=======================================================================
-//function : MustExecute
-//purpose  : We call this method to check if the object was modified to
-//         : be invoked. If the object label or an argument is modified,
-//         : we must recompute the object - to call the method Execute().
-//=======================================================================
-
-Standard_Boolean TOcafFunction_CutDriver::MustExecute(const Handle(TFunction_Logbook)& log) const
-{
-  // If the object's label is modified:
-  if (log->IsModified(Label())) return Standard_True; 
-
-  // Cut (in our simple case) has two arguments: The original shape, and the tool shape.
-  // They are on the child labels of the cut's label:
-  // So, OriginalNShape  - is attached to the first  child label
-  //     ToolNShape - is attached to the second child label,
-  //     .
-  // Let's check them:
-  Handle(TDF_Reference) OriginalRef;
-  //TDF_Label aLabel = Label().FindChild(1);
-/*
-  BOOL f = Label().IsNull();
-  int a = Label().NbChildren();
-*/
-  TCollection_AsciiString aEntry;
-  TDF_Tool::Entry(Label(), aEntry);
-  std::cout << "Entry: "<<aEntry.ToCString()<<std::endl;
-  Label().FindChild(1).FindAttribute(TDF_Reference::GetID(),OriginalRef);
-  if (log->IsModified(OriginalRef->Get()))   return Standard_True; // Original shape.
-
-  Handle(TDF_Reference) ToolRef;
-  Label().FindChild(2).FindAttribute(TDF_Reference::GetID(),ToolRef);
-  if (log->IsModified(ToolRef->Get()))   return Standard_True; // Tool shape.
-  
-  // if there are no any modifications concerned the cut,
-  // it's not necessary to recompute (to call the method Execute()):
-  return Standard_False;
-}
-
-//=======================================================================
-//function : Execute
-//purpose  : 
-//         : We compute the object and topologically name it.
-//         : If during the execution we found something wrong,
-//         : we return the number of the failure. For example:
-//         : 1 - an attribute hasn't been found,
-//         : 2 - algorithm failed,
-//         : if there are no any mistakes occurred we return 0:
-//         : 0 - no mistakes were found.
-//=======================================================================
-
-Standard_Integer TOcafFunction_CutDriver::Execute(Handle(TFunction_Logbook)& /*log*/) const
-{
-  // Let's get the arguments (OriginalNShape, ToolNShape of the object):
-
-       // First, we have to retrieve the TDF_Reference attributes to obtain the root labels of the OriginalNShape and the ToolNShape:
-       Handle(TDF_Reference)  OriginalRef, ToolRef;
-       if (!Label().FindChild(1).FindAttribute(TDF_Reference::GetID(), OriginalRef )) return 1;
-       TDF_Label OriginalLab = OriginalRef->Get();
-       if (!Label().FindChild(2).FindAttribute(TDF_Reference::GetID(), ToolRef)) return 1;
-       TDF_Label ToolLab = ToolRef->Get();
-
-       // Get the TNaming_NamedShape attributes of these labels
-       Handle(TNaming_NamedShape) OriginalNShape, ToolNShape;
-       if (!( OriginalLab.FindAttribute(TNaming_NamedShape::GetID(),OriginalNShape) ))
-               throw Standard_Failure("TOcaf_Commands::CutObjects");
-       if (!( ToolLab.FindAttribute(TNaming_NamedShape::GetID(),ToolNShape) ))
-               throw Standard_Failure("TOcaf_Commands::CutObjects");
-
-       // Now, let's get the TopoDS_Shape of these TNaming_NamedShape:
-       TopoDS_Shape OriginalShape  = OriginalNShape->Get();
-       TopoDS_Shape ToolShape = ToolNShape->Get();
-
-// STEP 2:
-       // Let's call for algorithm computing a cut operation:
-       BRepAlgoAPI_Cut mkCut(OriginalShape, ToolShape);
-       // Let's check if the Cut has been successful:
-       if (!mkCut.IsDone()) 
-       {
-               MessageBoxW (NULL, L"Cut not done.", L"Cut Function Driver", MB_ICONERROR);
-               return 2;
-       }
-       TopoDS_Shape ResultShape = mkCut.Shape();
-
-       // Build a TNaming_NamedShape using built cut
-       TNaming_Builder B(Label());
-       B.Modify( OriginalShape, ResultShape);
-// That's all:
-  // If there are no any mistakes we return 0:
-  return 0;
-}
diff --git a/samples/mfc/standard/06_Ocaf/src/TOcafFunction_CutDriver.hxx b/samples/mfc/standard/06_Ocaf/src/TOcafFunction_CutDriver.hxx
deleted file mode 100755 (executable)
index ae07f6a..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-// File generated by CPPExt (Transient)
-//
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-//
-#ifndef _TOcafFunction_CutDriver_HeaderFile
-#define _TOcafFunction_CutDriver_HeaderFile
-
-#ifndef _Standard_HeaderFile
-#include <Standard.hxx>
-#endif
-
-#ifndef _TFunction_Driver_HeaderFile
-#include <TFunction_Driver.hxx>
-#endif
-#ifndef _Standard_Boolean_HeaderFile
-#include <Standard_Boolean.hxx>
-#endif
-#ifndef _Standard_Integer_HeaderFile
-#include <Standard_Integer.hxx>
-#endif
-class TFunction_Logbook;
-
-
-class TOcafFunction_CutDriver : public TFunction_Driver
-{
-public:
-
-  Standard_EXPORT static const Standard_GUID& GetID() ;
-  Standard_EXPORT TOcafFunction_CutDriver ();
-  Standard_EXPORT virtual  void Validate (Handle (TFunction_Logbook)& log) const;
-  Standard_EXPORT virtual  Standard_Boolean MustExecute (const Handle (TFunction_Logbook)& log) const;
-  Standard_EXPORT virtual  Standard_Integer Execute (Handle (TFunction_Logbook)& log) const;
-
-  // OCCT RTTI
-  DEFINE_STANDARD_RTTIEXT(TOcafFunction_CutDriver,TFunction_Driver)
-};
-
-#endif
diff --git a/samples/mfc/standard/06_Ocaf/src/TOcafFunction_CylDriver.cxx b/samples/mfc/standard/06_Ocaf/src/TOcafFunction_CylDriver.cxx
deleted file mode 100755 (executable)
index 44595ed..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-// File:       TOcafFunction_CylDriver.cxx
-// Created:    Mon Dec 27 10:37:13 1999
-// Author:     Vladislav ROMASHKO
-//             <vro@flox.nnov.matra-dtv.fr>
-
-
-#include <stdafx.h>
-#include <TOcafFunction_CylDriver.hxx>
-#include <TCollection_AsciiString.hxx>
-#include <TDF_Tool.hxx>
-#include "Standard_GUID.hxx"
-#include "TFunction_Logbook.hxx"
-#include "TDataStd_Real.hxx"
-#include "TNaming_Builder.hxx"
-
-IMPLEMENT_STANDARD_RTTIEXT (TOcafFunction_CylDriver, TFunction_Driver)
-
-//=======================================================================
-//function : GetID
-//purpose  :
-//=======================================================================
-
-const Standard_GUID& TOcafFunction_CylDriver::GetID() {
-  static Standard_GUID anID("22D22E53-D69A-11d4-8F1A-0060B0EE18E8");
-  return anID;
-}
-
-
-//=======================================================================
-//function : TPartStd_CylDriver
-//purpose  : Creation of an instance of the driver. It's possible (and recommended)
-//         : to have only one instance of a driver for the whole session.
-//=======================================================================
-
-TOcafFunction_CylDriver::TOcafFunction_CylDriver()
-{}
-
-//=======================================================================
-//function : Validate
-//purpose  : Validation of the object label, its arguments and its results.
-//=======================================================================
-
-void TOcafFunction_CylDriver::Validate(Handle(TFunction_Logbook)& log) const
-{
-  // We validate the object label ( Label() ), all the arguments and the results of the object:
-  log->SetValid(Label(), Standard_True);
-}
-
-//=======================================================================
-//function : MustExecute
-//purpose  : We call this method to check if the object was modified to
-//         : be invoked. If the object label or an argument is modified,
-//         : we must recompute the object - to call the method Execute().
-//=======================================================================
-Standard_Boolean TOcafFunction_CylDriver::MustExecute(const Handle(TFunction_Logbook)& log) const
-{
-       // If the object's label is modified:
-  if (log->IsModified(Label())) return Standard_True; 
-
-  // Cylinder (in our simple case) has 5 arguments: 
-  // 
-  // Let's check them:
-  if (log->IsModified(Label().FindChild(1))) return Standard_True; // radius.
-  if (log->IsModified(Label().FindChild(2))) return Standard_True; // height,
-  if (log->IsModified(Label().FindChild(3))) return Standard_True; // x.
-  if (log->IsModified(Label().FindChild(4))) return Standard_True; // y,
-  if (log->IsModified(Label().FindChild(5))) return Standard_True; // z.
-  
- // if there are no any modifications concerned the Cyl,
-  // it's not necessary to recompute (to call the method Execute()):
-  return Standard_False;
-}
-
-//=======================================================================
-//function : Execute
-//purpose  : 
-//         : We compute the object and topologically name it.
-//         : If during the execution we found something wrong,
-//         : we return the number of the failure. For example:
-//         : 1 - an attribute hasn't been found,
-//         : 2 - algorithm failed,
-//         : if there are no any mistakes occurred we return 0:
-//         : 0 - no mistakes were found.
-//=======================================================================
-Standard_Integer TOcafFunction_CylDriver::Execute(Handle(TFunction_Logbook)& /*log*/) const
-{
-       // Get the values of dimension and position attributes 
-       Handle(TDataStd_Real) TSR;
-       Standard_Real x,y,z,r,h;
-       if (!Label().FindChild(1).FindAttribute(TDataStd_Real::GetID(), TSR )) return 1;
-       r=TSR->Get();
-
-       if (!Label().FindChild(2).FindAttribute(TDataStd_Real::GetID(), TSR )) return 1;
-       h=TSR->Get();
-
-       if (!Label().FindChild(3).FindAttribute(TDataStd_Real::GetID(), TSR )) return 1;
-       x=TSR->Get();
-
-       if (!Label().FindChild(4).FindAttribute(TDataStd_Real::GetID(), TSR )) return 1;
-       y=TSR->Get();
-
-       if (!Label().FindChild(5).FindAttribute(TDataStd_Real::GetID(), TSR )) return 1;
-       z=TSR->Get();
-
-       // Build a Cyl using the dimension and position attributes 
-       BRepPrimAPI_MakeCylinder mkCyl( gp_Ax2(gp_Pnt(x, y ,z), gp_Dir(0,0,1)), r, h);
-       TopoDS_Shape ResultShape = mkCyl.Shape();
-
-
-       // Build a TNaming_NamedShape using built Cyl
-       TNaming_Builder B(Label());
-       B.Generated(ResultShape);
-// That's all:
-  // If there are no any mistakes we return 0:
-  return 0;
-}
diff --git a/samples/mfc/standard/06_Ocaf/src/TOcafFunction_CylDriver.hxx b/samples/mfc/standard/06_Ocaf/src/TOcafFunction_CylDriver.hxx
deleted file mode 100755 (executable)
index 27ef1f1..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-// File generated by CPPExt (Transient)
-//
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-//
-#ifndef _TOcafFunction_CylDriver_HeaderFile
-#define _TOcafFunction_CylDriver_HeaderFile
-
-#ifndef _Standard_HeaderFile
-#include <Standard.hxx>
-#endif
-
-#ifndef _TFunction_Driver_HeaderFile
-#include <TFunction_Driver.hxx>
-#endif
-#ifndef _Standard_Boolean_HeaderFile
-#include <Standard_Boolean.hxx>
-#endif
-#ifndef _Standard_Integer_HeaderFile
-#include <Standard_Integer.hxx>
-#endif
-class TFunction_Logbook;
-
-
-class TOcafFunction_CylDriver : public TFunction_Driver
-{
-public:
-
-  Standard_EXPORT static const Standard_GUID& GetID ();
-  Standard_EXPORT TOcafFunction_CylDriver ();
-  Standard_EXPORT virtual  void Validate (Handle (TFunction_Logbook)& log) const;
-  Standard_EXPORT virtual  Standard_Boolean MustExecute (const Handle (TFunction_Logbook)& log) const;
-  Standard_EXPORT virtual  Standard_Integer Execute (Handle (TFunction_Logbook)& log) const;
-
-  // OCCT RTTI
-  DEFINE_STANDARD_RTTIEXT(TOcafFunction_CylDriver,TFunction_Driver)
-};
-
-#endif
diff --git a/samples/mfc/standard/06_Ocaf/src/TOcaf_Application.cxx b/samples/mfc/standard/06_Ocaf/src/TOcaf_Application.cxx
deleted file mode 100755 (executable)
index 8e05e69..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-// File:       TOcaf_Application.cxx
-// Created:    Mon Jul  3  2000
-// Author:     J Mazars
-
-//Modified by Sergey RUIN (An instantiation of the drivers)
-
-#include <stdafx.h>
-#include <TOcaf_Application.hxx>
-#include <TDF_Label.hxx>
-#include <TPrsStd_AISPresentation.hxx>
-#include <TPrsStd_AISViewer.hxx>
-#include <TNaming_NamedShape.hxx>
-#include "TFunction_DriverTable.hxx"
-#include "TOcafFunction_BoxDriver.hxx"
-#include "TOcafFunction_CylDriver.hxx"
-#include "TOcafFunction_CutDriver.hxx"
-
-IMPLEMENT_STANDARD_RTTIEXT (TOcaf_Application, TDocStd_Application)
-
-//=======================================================================
-//function : TOcaf_Application
-//purpose  : 
-//=======================================================================
-
-TOcaf_Application::TOcaf_Application()
-{
-  // Instantiate a TOcafFunction_BoxDriver and add it to the TFunction_DriverTable
-  TFunction_DriverTable::Get()->AddDriver (TOcafFunction_BoxDriver::GetID(),
-                                           new TOcafFunction_BoxDriver());
-
-  // Instantiate a TOcafFunction_Cyl  Driver and add it to the TFunction_DriverTable
-  TFunction_DriverTable::Get()->AddDriver (TOcafFunction_CylDriver::GetID(),
-                                           new TOcafFunction_CylDriver());
-
-  // Instantiate a TOcafFunction_CutDriver and add it to the TFunction_DriverTable
-  Handle(TOcafFunction_CutDriver) myCutDriver = new TOcafFunction_CutDriver();
-  TFunction_DriverTable::Get()->AddDriver (TOcafFunction_CutDriver::GetID(),
-                                           new TOcafFunction_CutDriver());
-}
diff --git a/samples/mfc/standard/06_Ocaf/src/TOcaf_Application.hxx b/samples/mfc/standard/06_Ocaf/src/TOcaf_Application.hxx
deleted file mode 100755 (executable)
index c719daa..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-// File generated by CPPExt (Transient)
-//
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-//
-#ifndef _TOcaf_Application_HeaderFile
-#define _TOcaf_Application_HeaderFile
-
-#ifndef _TDocStd_Application_HeaderFile
-#include <TDocStd_Application.hxx>
-#endif
-#ifndef _Standard_CString_HeaderFile
-#include <Standard_CString.hxx>
-#endif
-#include <TColStd_SequenceOfExtendedString.hxx>
-class TDocStd_Document;
-
-
-class TOcaf_Application : public TDocStd_Application
-{
-public:
-  Standard_EXPORT TOcaf_Application ();
-
-  // OCCT RTTI
-  DEFINE_STANDARD_RTTIEXT (TOcaf_Application, TDocStd_Application)
-};
-
-#endif
diff --git a/samples/mfc/standard/06_Ocaf/src/TOcaf_Commands.cxx b/samples/mfc/standard/06_Ocaf/src/TOcaf_Commands.cxx
deleted file mode 100755 (executable)
index 745668c..0000000
+++ /dev/null
@@ -1,357 +0,0 @@
-// File:       TOcaf_Commands.cxx
-// Created:    Tue Feb  8 17:56:02 2000
-// Author:     Modelistation
-//             <model@brunox.paris1.matra-dtv.fr>
-
-
-#include <stdafx.h>
-#include <TOcaf_Commands.hxx>
-#include <TDF_Label.hxx>
-#include <TDF_TagSource.hxx>
-#include <TDataStd_Real.hxx>
-#include <TDataStd_Integer.hxx>
-#include <TDataStd_TreeNode.hxx>
-#include <TDataStd_ChildNodeIterator.hxx>
-#include <gp_Pnt.hxx>
-#include <gp_Sphere.hxx>
-#include <gp_Trsf.hxx>
-#include <TopoDS_Face.hxx>
-#include <TopoDS.hxx>
-#include <TopExp_Explorer.hxx>
-#include <TopLoc_Location.hxx>
-#include <TNaming_Tool.hxx>
-#include <BRep_Tool.hxx>
-#include <BRepPrimAPI_MakeSphere.hxx>
-#include <Geom_SphericalSurface.hxx>
-#include <AIS_InteractiveContext.hxx>
-#include <TPrsStd_AISViewer.hxx>
-#include "TDataStd_Name.hxx"
-#include "TFunction_Function.hxx"
-#include "TOcafFunction_BoxDriver.hxx"
-#include "TFunction_DriverTable.hxx"
-#include "TOcafFunction_CylDriver.hxx"
-#include "TDF_Reference.hxx"
-#include "TOcafFunction_CutDriver.hxx"
-
-//=======================================================================
-//function : TOcaf_Commands
-//purpose  : 
-//=======================================================================
-
-TOcaf_Commands::TOcaf_Commands(const TDF_Label& Main) 
-{
-  MainLab = Main;
-}
-
-//=======================================================================
-//function :   CreateBox
-//purpose  :   Create a box containing a Named shape, a name, a Function 
-//                             and a Data structure containing box conctruction parameters
-//=======================================================================
-
-TDF_Label TOcaf_Commands::CreateBox(Standard_Real x, Standard_Real y, Standard_Real z, Standard_Real w, Standard_Real l, Standard_Real h, const TCollection_ExtendedString& Name)
-{
-  // A data structure for our box:
-  // the box itself is attached to the BoxLabel label (as his name and his function attribute) 
-  // its arguments (dimensions: width, length and height; and position: x, y, z) 
-  // are attached to the child labels of the box:
-  //
-  // 0:1 Box Label ---> Name --->  Named shape ---> Function
-  //       |
-  //     0:1:1 -- Width Label
-  //       |
-  //     0:1:2 -- Length Label
-  //       |
-  //     0:1:3 -- Height Label
-  //       |
-  //     0:1:4 -- X Label
-  //       |
-  //     0:1:5 -- Y Label
-  //       |
-  //     0:1:6 -- Z Label
-
-       // Create a new label in the data structure for the box
-    TDF_Label L = TDF_TagSource::NewChild(MainLab);
-
-       // Create the data structure : Set the dimensions, position and name attributes
-       TDataStd_Real::Set(L.FindChild(1), w);
-       TDataStd_Real::Set(L.FindChild(2), l);
-       TDataStd_Real::Set(L.FindChild(3), h);
-       TDataStd_Real::Set(L.FindChild(4), x);
-       TDataStd_Real::Set(L.FindChild(5), y);
-       TDataStd_Real::Set(L.FindChild(6), z);
-       TDataStd_Name::Set(L, Name);
-
-       
-       // Instantiate a TFunction_Function attribute connected to the current box driver
-       // and attach it to the data structure as an attribute of the Box Label
-       Handle(TFunction_Function) myFunction = TFunction_Function::Set(L, TOcafFunction_BoxDriver::GetID());
-
-       // Initialize and execute the box driver (look at the "Execute()" code)
-    Handle(TFunction_Logbook) log = TFunction_Logbook::Set(L);
-
-       Handle(TFunction_Driver) myBoxDriver;
-    // Find the TOcafFunction_BoxDriver in the TFunction_DriverTable using its GUID
-       if(!TFunction_DriverTable::Get()->FindDriver(TOcafFunction_BoxDriver::GetID(), myBoxDriver)) return L;
-       
-       myBoxDriver->Init(L);
-    if (myBoxDriver->Execute(log)) MessageBoxW (NULL, L"DFunction_Execute : failed", L"Box", MB_ICONERROR);
-
-       return L;
-}
-
-
-//=======================================================================
-//function :   CreateCyl
-//purpose  :   Create a cylinder containing a Named shape, a name, a Function 
-//                             and a Data structure containing cylinder conctruction parameters
-//=======================================================================
-
-TDF_Label TOcaf_Commands::CreateCyl(Standard_Real x, Standard_Real y, Standard_Real z, Standard_Real r, Standard_Real h, const TCollection_ExtendedString& Name)
-{
-  // A data structure for our cylinder:
-  // the cylinder itself is attached to the CylinderLabel label (as his name and his function attribute) 
-  // its arguments (dimensions: radius and height; and position: x, y, z) 
-  // are attached to the child labels of the cylinder:
-  //
-  // 0:1 Cylinder Label ---> Name --->  Named shape ---> Function
-  //       |
-  //     0:1:1 -- Radius Label
-  //       |
-  //     0:1:2 -- Height Label
-  //       |
-  //     0:1:3 -- X Label
-  //       |
-  //     0:1:4 -- Y Label
-  //       |
-  //     0:1:5 -- Z Label
-
-       // Create a new label in the data structure for the cylinder
-    TDF_Label L = TDF_TagSource::NewChild(MainLab);
-
-       // Create the data structure : Set the dimensions, position and name attributes
-       TDataStd_Real::Set(L.FindChild(1), r);
-       TDataStd_Real::Set(L.FindChild(2), h);
-       TDataStd_Real::Set(L.FindChild(3), x);
-       TDataStd_Real::Set(L.FindChild(4), y);
-       TDataStd_Real::Set(L.FindChild(5), z);
-       TDataStd_Name::Set(L, Name);
-
-
-       // Instantiate a TFunction_Function attribute connected to the current cylinder driver
-       // and attach it to the data structure as an attribute of the Cylinder Label
-       Handle(TFunction_Function) myFunction = TFunction_Function::Set(L, TOcafFunction_CylDriver::GetID());
-
-       // Initialize and execute the cylinder driver (look at the "Execute()" code)
-    Handle(TFunction_Logbook) log = TFunction_Logbook::Set(L);
-
-       Handle(TFunction_Driver) myCylDriver;
-       // Find the TOcafFunction_CylDriver in the TFunction_DriverTable using its GUID
-       if(!TFunction_DriverTable::Get()->FindDriver(TOcafFunction_CylDriver::GetID(), myCylDriver)) return L;
-
-       myCylDriver->Init(L);
-    if (myCylDriver->Execute(log)) MessageBoxW (NULL, L"DFunction_Execute : failed", L"Cylinder", MB_ICONERROR);
-
-       return L;
-}
-
-
-TDF_Label TOcaf_Commands::ModifyBox(Standard_Real x, Standard_Real y, Standard_Real z, Standard_Real w, Standard_Real l, Standard_Real h, const TCollection_ExtendedString &Name, Handle(TFunction_Logbook) &log)
-{
-       // Set the name attribute (if it's not null)
-       Handle(TDataStd_Name) myStdName;
-       if(Name.Length())
-               TDataStd_Name::Set(MainLab, Name);
-
-       // Set the dimensions and position attributes (if changed)
-       Handle(TDataStd_Real) curReal;
-       MainLab.FindChild(1).FindAttribute(TDataStd_Real::GetID(),curReal);
-       if(w!=curReal->Get())
-       {
-               TDataStd_Real::Set(MainLab.FindChild(1), w);
-               // Set the label of the attribute as touched for next recomputation
-               log->SetTouched(curReal->Label());
-       }
-
-       MainLab.FindChild(2).FindAttribute(TDataStd_Real::GetID(),curReal);
-       if(l!=curReal->Get())
-       {
-               TDataStd_Real::Set(MainLab.FindChild(2), l);
-               // Set the label of the attribute as touched for next recomputation
-               log->SetTouched(curReal->Label());
-       }
-
-       MainLab.FindChild(3).FindAttribute(TDataStd_Real::GetID(),curReal);
-       if(h!=curReal->Get())
-       {
-               TDataStd_Real::Set(MainLab.FindChild(3), h);
-               // Set the label of the attribute as touched for next recomputation
-               log->SetTouched(curReal->Label());
-       }
-
-       MainLab.FindChild(4).FindAttribute(TDataStd_Real::GetID(),curReal);
-       if(x!=curReal->Get())
-       {
-               TDataStd_Real::Set(MainLab.FindChild(4), x);
-               // Set the label of the attribute as touched for next recomputation
-               log->SetTouched(curReal->Label());
-       }
-
-       MainLab.FindChild(5).FindAttribute(TDataStd_Real::GetID(),curReal);
-       if(y!=curReal->Get())
-       {
-               TDataStd_Real::Set(MainLab.FindChild(5), y);
-               // Set the label of the attribute as touched for next recomputation
-               log->SetTouched(curReal->Label());
-       }
-
-       MainLab.FindChild(6).FindAttribute(TDataStd_Real::GetID(),curReal);
-       if(z!=curReal->Get())
-       {
-               TDataStd_Real::Set(MainLab.FindChild(6), z);
-               // Set the label of the attribute as touched for next recomputation
-               log->SetTouched(curReal->Label());
-       }
-
-       // Get the TFunction_Function used to create the box
-       Handle(TFunction_Function) TFF; 
-       if ( !MainLab.FindAttribute(TFunction_Function::GetID(),TFF) )
-       {
-               MessageBox (NULL, L"Object cannot be modify.", L"Modification", MB_ICONEXCLAMATION);
-               return MainLab;
-       }
-
-       // Get the TFunction_FunctionDriver GUID used with the TFunction_Function
-       Standard_GUID myDriverID=TFF->GetDriverGUID();
-       Handle(TFunction_Driver) myBoxDriver;
-       // Find the TOcafFunction_BoxDriver in the TFunction_DriverTable using its GUID 
-       TFunction_DriverTable::Get()->FindDriver(myDriverID, myBoxDriver);
-       // Execute the cut if it must be (if an attribute changes)
-       myBoxDriver->Init(MainLab);
-       if (myBoxDriver->MustExecute(log))
-       {
-               // Set the box touched, it will be useful to recompute an object which used this box as attribute
-               log->SetTouched(MainLab);
-               if(myBoxDriver->Execute(log))
-                       MessageBox (NULL, L"Recompute failed", L"Modify box", MB_ICONEXCLAMATION);
-       }
-
-       return MainLab;
-}
-
-TDF_Label TOcaf_Commands::ModifyCyl(Standard_Real x, Standard_Real y, Standard_Real z, Standard_Real r, Standard_Real h, const TCollection_ExtendedString &Name, Handle(TFunction_Logbook) &log)
-{
-       // Set the name attribute (if it's not null)
-       Handle(TDataStd_Name) myStdName;
-       if(Name.Length())
-               TDataStd_Name::Set(MainLab, Name);
-
-       // Set the dimensions and position attributes (if changed)
-       Handle(TDataStd_Real) curReal;
-       MainLab.FindChild(1).FindAttribute(TDataStd_Real::GetID(),curReal);
-       if(r!=curReal->Get())
-       {
-               TDataStd_Real::Set(MainLab.FindChild(1), r);
-               // Set the label of the attribute as touched for next recomputation
-               log->SetTouched(curReal->Label());
-       }
-
-       MainLab.FindChild(2).FindAttribute(TDataStd_Real::GetID(),curReal);
-       if(h!=curReal->Get())
-       {
-               TDataStd_Real::Set(MainLab.FindChild(2), h);
-               // Set the label of the attribute as touched for next recomputation
-               log->SetTouched(curReal->Label());
-       }
-
-       MainLab.FindChild(3).FindAttribute(TDataStd_Real::GetID(),curReal);
-       if(x!=curReal->Get())
-       {
-               TDataStd_Real::Set(MainLab.FindChild(3), x);
-               // Set the label of the attribute as touched for next recomputation
-               log->SetTouched(curReal->Label());
-       }
-
-       MainLab.FindChild(4).FindAttribute(TDataStd_Real::GetID(),curReal);
-       if(y!=curReal->Get())
-       {
-               TDataStd_Real::Set(MainLab.FindChild(4), y);
-               // Set the label of the attribute as touched for next recomputation
-               log->SetTouched(curReal->Label());
-       }
-
-       MainLab.FindChild(5).FindAttribute(TDataStd_Real::GetID(),curReal);
-       if(z!=curReal->Get())
-       {
-               TDataStd_Real::Set(MainLab.FindChild(5), z);
-               // Set the label of the attribute as touched for next recomputation
-               log->SetTouched(curReal->Label());
-       }
-
-       // Get the TFunction_Function used to create the cylinder
-       Handle(TFunction_Function) TFF; 
-       if ( !MainLab.FindAttribute(TFunction_Function::GetID(),TFF) )
-       {
-               MessageBoxW (NULL, L"Object cannot be modify.", L"Modification", MB_ICONEXCLAMATION);
-               return MainLab;
-       }
-
-       // Get the TFunction_FunctionDriver GUID used with the TFunction_Function
-       Standard_GUID myDriverID=TFF->GetDriverGUID();
-       Handle(TFunction_Driver) myCylDriver;
-       // Find the TOcafFunction_CylDriver in the TFunction_DriverTable using its GUID 
-       TFunction_DriverTable::Get()->FindDriver(myDriverID, myCylDriver);
-       // Execute the cut if it must be (if an attribute changes)
-       myCylDriver->Init(MainLab);
-       if (myCylDriver->MustExecute(log))
-       {
-               // Set the cylinder touched, it will be useful to recompute an object which used this cylinder as attribute
-               log->SetTouched(MainLab);
-               if(myCylDriver->Execute(log))
-                       MessageBoxW (NULL, L"Recompute failed", L"Modify cylinder", MB_ICONEXCLAMATION);
-       }
-
-       return MainLab;
-}
-
-TDF_Label TOcaf_Commands::Cut(TDF_Label ObjectLab, TDF_Label ToolObjectLab)
-{
-  // A data structure for our cut operation:
-  // the result itself is attached to the Result label (as his name and his function attribute) 
-  // its arguments (Original object label; Tool object label) are attached to the child 
-  // labels of the Result Label:
-  //
-  // 0:1 Result Label ---> Name --->  Named shape ---> Function
-  //       |
-  //     0:1:1 -- Original object label Label
-  //       |
-  //     0:1:2 --  object label Label
-  // 
-
-       // Create a new label in the data structure for the box
-    TDF_Label L = TDF_TagSource::NewChild(MainLab);
-
-       // Create the data structure : Set a reference attribute on the Original and the Tool objects, set the name attribute
-       TDF_Reference::Set(L.FindChild(1), ObjectLab);
-       TDF_Reference::Set(L.FindChild(2), ToolObjectLab);
-       Handle(TDataStd_Name) ObjectName;
-       ObjectLab.FindAttribute(TDataStd_Name::GetID(),ObjectName);
-       TDataStd_Name::Set(L, ObjectName->Get());
-
-
-       // Instantiate a TFunction_Function attribute connected to the current cut driver
-       // and attach it to the data structure as an attribute of the Result Label
-       Handle(TFunction_Function) myFunction = TFunction_Function::Set(L, TOcafFunction_CutDriver::GetID());
-
-       // Initialize and execute the cut driver (look at the "Execute()" code)
-    Handle(TFunction_Logbook) log = TFunction_Logbook::Set(L);
-
-       Handle(TFunction_Driver) myCutDriver;
-    // Find the TOcafFunction_CutDriver in the TFunction_DriverTable using its GUID 
-       if(!TFunction_DriverTable::Get()->FindDriver(TOcafFunction_CutDriver::GetID(), myCutDriver)) return L;
-               
-       myCutDriver->Init(L);
-    if (myCutDriver->Execute(log)) MessageBoxW (NULL, L"DFunction_Execute : failed", L"Cut", MB_ICONERROR);
-
-       return L;
-}
diff --git a/samples/mfc/standard/06_Ocaf/src/TOcaf_Commands.hxx b/samples/mfc/standard/06_Ocaf/src/TOcaf_Commands.hxx
deleted file mode 100755 (executable)
index bf85d5d..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-// File generated by CPPExt (Value)
-//                     Copyright (C) 1991,1995 by
-//  
-//                      MATRA DATAVISION, FRANCE
-//  
-// This software is furnished in accordance with the terms and conditions
-// of the contract and with the inclusion of the above copyright notice.
-// This software or any other copy thereof may not be provided or otherwise
-// be made available to any other person. No title to an ownership of the
-// software is hereby transferred.
-//  
-// At the termination of the contract, the software and all copies of this
-// software must be deleted.
-
-#ifndef _TOcaf_Commands_HeaderFile
-#define _TOcaf_Commands_HeaderFile
-
-#ifndef _TDF_Label_HeaderFile
-#include <TDF_Label.hxx>
-#endif
-#ifndef _Standard_Real_HeaderFile
-#include <Standard_Real.hxx>
-#endif
-#ifndef _TNaming_NamedShape_HeaderFile
-#include <TNaming_NamedShape.hxx>
-#endif
-#ifndef _Standard_Integer_HeaderFile
-#include <Standard_Integer.hxx>
-#endif
-class TDF_Label;
-class gp_Pnt;
-class TopoDS_Shape;
-class TNaming_NamedShape;
-class gp_XYZ;
-class TOcaf_Object;
-
-#ifndef _Standard_Macro_HeaderFile
-#include <Standard_Macro.hxx>
-#endif
-#include "TFunction_Logbook.hxx"
-
-class TOcaf_Commands  {
-
-public:
-       TDF_Label Cut( TDF_Label ObjectLab, TDF_Label ToolObjectLab);
-       TDF_Label ModifyBox(Standard_Real x, Standard_Real y, Standard_Real z, Standard_Real w, Standard_Real l, Standard_Real h, const TCollection_ExtendedString& Name, Handle(TFunction_Logbook) &log);
-       TDF_Label CreateBox(Standard_Real x, Standard_Real y, Standard_Real z, Standard_Real w, Standard_Real l, Standard_Real h, const TCollection_ExtendedString& Name);
-       TDF_Label ModifyCyl(Standard_Real x, Standard_Real y, Standard_Real z, Standard_Real r, Standard_Real h, const TCollection_ExtendedString &Name, Handle(TFunction_Logbook) &log);
-       TDF_Label CreateCyl(Standard_Real x, Standard_Real y, Standard_Real z, Standard_Real r, Standard_Real h, const TCollection_ExtendedString& Name);
-
- // Methods PUBLIC
- // 
-Standard_EXPORT TOcaf_Commands(const TDF_Label& Main);
-//Standard_EXPORT   Handle(TDataStd_TreeNode) Graph() ;
-
-protected:
-
- // Methods PROTECTED
- // 
-
-
- // Fields PROTECTED
- //
-
-
-private: 
-
- // Methods PRIVATE
- // 
-
-
- // Fields PRIVATE
- //
-TDF_Label MainLab;
-};
-
-
-
-
-
-// other inline functions and methods (like "C++: function call" methods)
-//
-
-
-#endif
diff --git a/samples/mfc/standard/07_Triangulation/CMakeLists.txt b/samples/mfc/standard/07_Triangulation/CMakeLists.txt
deleted file mode 100644 (file)
index 1cf8c5f..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-cmake_minimum_required (VERSION 2.6)
-
-project (Triangulation)
-
-add_definitions (-DWINVER=0x0501 -DUNICODE -D_UNICODE)
-set (CMAKE_MFC_FLAG 2)
-
-set (Triangulation_SRC_DIR      ${MFC_STANDARD_SAMPLES_DIR}/07_Triangulation/src)
-set (Triangulation_HEADER_FILES ${Triangulation_SRC_DIR}/ISession_Curve.h
-                                ${Triangulation_SRC_DIR}/OCCDemo_Presentation.h
-                                ${Triangulation_SRC_DIR}/Tesselate_Presentation.h
-                                ${Triangulation_SRC_DIR}/TriangulationApp.h
-                                ${Triangulation_SRC_DIR}/TriangulationDoc.h
-                                ${Triangulation_SRC_DIR}/StdAfx.h )
-set (Triangulation_SOURCE_FILES ${Triangulation_SRC_DIR}/ISession_Curve.cpp
-                                ${Triangulation_SRC_DIR}/OCCDemo_Presentation.cpp
-                                ${Triangulation_SRC_DIR}/Tesselate_Presentation.cpp
-                                ${Triangulation_SRC_DIR}/TriangulationApp.cpp
-                                ${Triangulation_SRC_DIR}/TriangulationDoc.cpp
-                                ${Triangulation_SRC_DIR}/StdAfx.cpp)
-
-set (Triangulation_RESOURCE_DIR    ${MFC_STANDARD_SAMPLES_DIR}/07_Triangulation/res)
-set (Triangulation_RESOURCE_HEADER ${Triangulation_RESOURCE_DIR}/resource.h)
-set (Triangulation_RESOURCE_FILES  ${Triangulation_RESOURCE_DIR}/Toolbar.bmp
-                                   ${Triangulation_RESOURCE_DIR}/Triangulation.rc)
-
-# groups in the VS solution
-source_group ("Source Files" FILES ${Triangulation_SOURCE_FILES}
-                                   ${COMMON_WINMAIN_FILE})
-
-source_group ("Header Files" FILES ${Triangulation_HEADER_FILES}
-                                   ${Triangulation_RESOURCE_HEADER})
-
-source_group ("Resource Files" FILES ${Triangulation_RESOURCE_FILES})
-
-add_executable (Triangulation WIN32 ${Triangulation_SOURCE_FILES}
-                                    ${Triangulation_HEADER_FILES}
-                                    ${COMMON_WINMAIN_FILE}
-                                    ${Triangulation_RESOURCE_HEADER}
-                                    ${Triangulation_RESOURCE_FILES})
-
-set_property (TARGET Triangulation PROPERTY FOLDER "Samples/mfc")
-
-if (SINGLE_GENERATOR)
-  install (TARGETS Triangulation DESTINATION "${INSTALL_DIR_BIN}")
-else()
-  install (TARGETS Triangulation
-           CONFIGURATIONS Release RelWithDebInfo
-           DESTINATION "${INSTALL_DIR_BIN}")
-  install (TARGETS Triangulation
-           CONFIGURATIONS Debug
-           DESTINATION "${INSTALL_DIR_BIN}d")
-endif()
-
-include_directories (${CMAKE_BINARY_DIR}/inc
-                     ${MFC_STANDARD_SAMPLES_DIR}/07_Triangulation
-                     ${Triangulation_SRC_DIR}
-                     ${MFC_STANDARD_SAMPLES_DIR}/Common)
-
-target_link_libraries (Triangulation mfcsample TKSTEP209 TKSTEPAttr TKBO)
\ No newline at end of file
diff --git a/samples/mfc/standard/07_Triangulation/adm/win/vc10/Triangulation.vcxproj b/samples/mfc/standard/07_Triangulation/adm/win/vc10/Triangulation.vcxproj
deleted file mode 100644 (file)
index 9ba0b2c..0000000
+++ /dev/null
@@ -1,321 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|Win32">
-      <Configuration>Debug</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Debug|x64">
-      <Configuration>Debug</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|x64">
-      <Configuration>Release</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectGuid>{B50C10C8-5260-498B-A80F-48FFB4534360}</ProjectGuid>
-    <RootNamespace>Triangulation</RootNamespace>
-    <Keyword>MFCProj</Keyword>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <PropertyGroup>
-    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../../../win32\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\win32\obj\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">../../../../win64\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\win64\obj\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../../../../win32\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\win32\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">../../../../win64\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\win64\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\obj/Triangulation.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>..\..\..\..\Common;..\..\..\;$(CSF_OCCTIncludePath);..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\obj/Triangulation.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKVrml.lib;TKStl.lib;TKBRep.lib;TKIGES.lib;TKShHealing.lib;TKSTEP.lib;TKSTEP209.lib;TKSTEPAttr.lib;TKSTEPBase.lib;TKXSBase.lib;TKBO.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKMesh.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bin/Triangulation.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bin/Triangulation.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\obj/Triangulation.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>..\..\..\..\Common;..\..\..\;$(CSF_OCCTIncludePath);..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\obj/Triangulation.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKVrml.lib;TKStl.lib;TKBRep.lib;TKIGES.lib;TKShHealing.lib;TKSTEP.lib;TKSTEP209.lib;TKSTEPAttr.lib;TKSTEPBase.lib;TKXSBase.lib;TKBO.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKMesh.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bin/Triangulation.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bin/Triangulation.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\objd/Triangulation.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\..\..\..\Common;..\..\..\;$(CSF_OCCTIncludePath);..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\objd/Triangulation.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\objd/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKVrml.lib;TKStl.lib;TKBRep.lib;TKIGES.lib;TKShHealing.lib;TKSTEP.lib;TKSTEP209.lib;TKSTEPAttr.lib;TKSTEPBase.lib;TKXSBase.lib;TKBO.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKMesh.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bind/Triangulation.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bind/Triangulation.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\objd/Triangulation.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\..\..\..\Common;..\..\..\;$(CSF_OCCTIncludePath);..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\objd/Triangulation.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\objd/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKVrml.lib;TKStl.lib;TKBRep.lib;TKIGES.lib;TKShHealing.lib;TKSTEP.lib;TKSTEP209.lib;TKSTEPAttr.lib;TKSTEPBase.lib;TKXSBase.lib;TKBO.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKMesh.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bind/Triangulation.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bind/Triangulation.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\ISession_Curve.cpp" />
-    <ClCompile Include="..\..\..\src\OCCDemo_Presentation.cpp" />
-    <ClCompile Include="..\..\..\src\StdAfx.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\Tesselate_Presentation.cpp" />
-    <ClCompile Include="..\..\..\src\TriangulationApp.cpp" />
-    <ClCompile Include="..\..\..\src\TriangulationDoc.cpp" />
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\res\Triangulation.rc" />
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\src\ISession_Curve.h" />
-    <ClInclude Include="..\..\..\src\OCCDemo_Presentation.h" />
-    <ClInclude Include="..\..\..\res\resource.h" />
-    <ClInclude Include="..\..\..\src\StdAfx.h" />
-    <ClInclude Include="..\..\..\src\Tesselate_Presentation.h" />
-    <ClInclude Include="..\..\..\src\TriangulationApp.h" />
-    <ClInclude Include="..\..\..\src\TriangulationDoc.h" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\res\Toolbar.bmp" />
-  </ItemGroup>
-  <ItemGroup>
-    <ProjectReference Include="..\..\..\..\mfcsample\adm\win\vc10\mfcsample.vcxproj">
-      <Project>{2d6cbbe8-6965-4016-b503-0d715ae26691}</Project>
-      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
-    </ProjectReference>
-  </ItemGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/07_Triangulation/adm/win/vc10/Triangulation.vcxproj.filters b/samples/mfc/standard/07_Triangulation/adm/win/vc10/Triangulation.vcxproj.filters
deleted file mode 100644 (file)
index 91717b5..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
-    <Filter Include="Source Files">
-      <UniqueIdentifier>{1ffd2e2a-cb4e-4b01-93a8-1689da39afe5}</UniqueIdentifier>
-      <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
-    </Filter>
-    <Filter Include="Header Files">
-      <UniqueIdentifier>{f9d99f5f-32c4-422c-b52f-1e0132811a39}</UniqueIdentifier>
-      <Extensions>h;hpp;hxx;hm;inl</Extensions>
-    </Filter>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\ISession_Curve.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\OCCDemo_Presentation.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\StdAfx.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\Tesselate_Presentation.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\TriangulationApp.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\TriangulationDoc.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\res\Triangulation.rc">
-      <Filter>Source Files</Filter>
-    </ResourceCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\src\ISession_Curve.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\OCCDemo_Presentation.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\res\resource.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\StdAfx.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\Tesselate_Presentation.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\TriangulationApp.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\TriangulationDoc.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\res\Toolbar.bmp" />
-  </ItemGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/07_Triangulation/res/RCa05792 b/samples/mfc/standard/07_Triangulation/res/RCa05792
deleted file mode 100755 (executable)
index d21b553..0000000
Binary files a/samples/mfc/standard/07_Triangulation/res/RCa05792 and /dev/null differ
diff --git a/samples/mfc/standard/07_Triangulation/res/Toolbar.bmp b/samples/mfc/standard/07_Triangulation/res/Toolbar.bmp
deleted file mode 100755 (executable)
index 19f56e0..0000000
Binary files a/samples/mfc/standard/07_Triangulation/res/Toolbar.bmp and /dev/null differ
diff --git a/samples/mfc/standard/07_Triangulation/res/Triangulation.rc b/samples/mfc/standard/07_Triangulation/res/Triangulation.rc
deleted file mode 100755 (executable)
index ab6b27c..0000000
+++ /dev/null
@@ -1,232 +0,0 @@
-// Microsoft Visual C++ generated resource script.
-//
-#include "resource.h"
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
-#include "afxres.h"
-#include "..\..\Common\res\OCC_Resource.h"
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-// English (U.S.) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-#pragma code_page(1252)
-#endif //_WIN32
-
-#ifdef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE 
-BEGIN
-    "resource.h\0"
-END
-
-2 TEXTINCLUDE 
-BEGIN
-    "#include ""afxres.h""\r\n"
-    "#include ""..\\..\\..\\Common\\res\\OCC_Resource.h""\0"
-END
-
-3 TEXTINCLUDE 
-BEGIN
-    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
-    "#define _AFX_NO_OLE_RESOURCES\r\n"
-    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
-    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
-    "\r\n"
-    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
-    "#ifdef _WIN32\r\n"
-    "LANGUAGE 9, 1\r\n"
-    "#pragma code_page(1252)\r\n"
-    "#endif\r\n"
-    "#include ""afxres.rc""         // Standard components\r\n"
-    "#endif\0"
-END
-
-#endif    // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Bitmap
-//
-
-IDR_MAINFRAME           BITMAP                  "Toolbar.bmp"
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Toolbar
-//
-
-IDR_MAINFRAME TOOLBAR  20, 20
-BEGIN
-    BUTTON      ID_FILE_NEW
-    SEPARATOR
-    BUTTON      ID_TRIANGU
-    BUTTON      ID_Visu
-    SEPARATOR
-    BUTTON      ID_Clear
-    SEPARATOR
-    BUTTON      ID_BUTTONStart
-    BUTTON      ID_BUTTONPrev
-    BUTTON      ID_BUTTONRepeat
-    BUTTON      ID_BUTTONNext
-    BUTTON      ID_BUTTONEnd
-    BUTTON      ID_DUMP_VIEW
-    SEPARATOR
-    BUTTON      ID_APP_ABOUT
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Menu
-//
-
-IDR_MAINFRAME MENU 
-BEGIN
-    POPUP "&File"
-    BEGIN
-        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
-        MENUITEM SEPARATOR
-        MENUITEM "E&xit",                       ID_APP_EXIT
-    END
-    POPUP "&View"
-    BEGIN
-        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
-        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
-    END
-    POPUP "&Help"
-    BEGIN
-        MENUITEM "&About Triangulation...",     ID_APP_ABOUT
-    END
-END
-
-IDR_3DTYPE MENU 
-BEGIN
-    POPUP "&File"
-    BEGIN
-        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
-        MENUITEM "&Close",                      ID_FILE_CLOSE
-        MENUITEM SEPARATOR
-        MENUITEM "E&xit",                       ID_APP_EXIT
-    END
-    POPUP "&View"
-    BEGIN
-        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
-        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
-    END
-    POPUP "&Window"
-    BEGIN
-        MENUITEM "&New Window",                 ID_WINDOW_NEW
-        MENUITEM "&Cascade",                    ID_WINDOW_CASCADE
-        MENUITEM "&Tile",                       ID_WINDOW_TILE_HORZ
-        MENUITEM "&Arrange Icons",              ID_WINDOW_ARRANGE
-    END
-    POPUP "&Help"
-    BEGIN
-        MENUITEM "&About Triangulation...",     ID_APP_ABOUT
-    END
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,0,0,1
- PRODUCTVERSION 1,0,0,1
- FILEFLAGSMASK 0x3fL
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x4L
- FILETYPE 0x1L
- FILESUBTYPE 0x0L
-BEGIN
-    BLOCK "StringFileInfo"
-    BEGIN
-        BLOCK "040904b0"
-        BEGIN
-            VALUE "FileDescription", "Viewer MFC Application"
-            VALUE "FileVersion", "1, 0, 0, 1"
-            VALUE "InternalName", "Viewer"
-            VALUE "LegalCopyright", "Copyright (C) 1997"
-            VALUE "OriginalFilename", "Viewer.EXE"
-            VALUE "ProductName", "SampleTriangulation Application"
-            VALUE "ProductVersion", "1, 0, 0, 1"
-        END
-    END
-    BLOCK "VarFileInfo"
-    BEGIN
-        VALUE "Translation", 0x409, 1200
-    END
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// String Table
-//
-
-STRINGTABLE 
-BEGIN
-    IDR_MAINFRAME           "Triangulation"
-    IDR_3DTYPE              "\nTriangulation\n\n\n\n.Document\n Document"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_BOX                  "Create and display a box\nBox"
-    ID_Cylinder             "Create and display a cylinder\nCylinder"
-    ID_TRIANGU              "Compute triangulation on a  shape\nMesh "
-    ID_Clear                "Remove triangulation from a shape\nClear"
-    ID_Visu                 "Display triangulation\nDisplay triangulation"
-    ID_BUTTONPrev           "Press to go to the previous sample\nPrevious sample (PgUp)"
-    ID_BUTTONRepeat         "Press to repeat the current sample\nRepeat sample (Space)"
-    ID_BUTTONStart          "Press to go to the first sample\nFirst sample (Home)"
-    ID_BUTTONNext           "Press to go to the next sample\nNext sample (PgDn)"
-    ID_BUTTONEnd            "Press to go to the last sample\nLast sample (End)"
-    ID_DUMP_VIEW            "Save current frame into an image file\nExport view (F12)"
-END
-
-#endif    // English (U.S.) resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-#define _AFX_NO_SPLITTER_RESOURCES
-#define _AFX_NO_OLE_RESOURCES
-#define _AFX_NO_TRACKER_RESOURCES
-#define _AFX_NO_PROPERTY_RESOURCES
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE 9, 1
-#pragma code_page(1252)
-#endif
-#include "afxres.rc"         // Standard components
-#endif
-/////////////////////////////////////////////////////////////////////////////
-#endif    // not APSTUDIO_INVOKED
-
diff --git a/samples/mfc/standard/07_Triangulation/res/resource.h b/samples/mfc/standard/07_Triangulation/res/resource.h
deleted file mode 100755 (executable)
index 1291556..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-//{{NO_DEPENDENCIES}}
-// Microsoft Visual C++ generated include file.
-// Used by TopologyTriangulation.rc
-//
-#define ID_BOX                          802
-#define ID_Cylinder                     803
-#define ID_TRIANGU                      804
-#define ID_Clear                        805
-#define ID_Visu                         806
-#define ID_BUTTONPrev                   807
-#define ID_BUTTONRepeat                 808
-#define ID_BUTTONStart                  809
-#define ID_BUTTONNext                   810
-#define ID_BUTTONEnd                    811
-#define ID_BUTTON812                    812
-#define ID_DUMP_VIEW                    812
-
-// Next default values for new objects
-// 
-#ifdef APSTUDIO_INVOKED
-#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_3D_CONTROLS                     1
-#define _APS_NEXT_RESOURCE_VALUE        133
-#define _APS_NEXT_COMMAND_VALUE         813
-#define _APS_NEXT_CONTROL_VALUE         1002
-#define _APS_NEXT_SYMED_VALUE           101
-#endif
-#endif
diff --git a/samples/mfc/standard/07_Triangulation/src/ISession_Curve.cpp b/samples/mfc/standard/07_Triangulation/src/ISession_Curve.cpp
deleted file mode 100755 (executable)
index 6d6fb6d..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-// ISession_Curve.cpp: implementation of the ISession_Curve class.
-//
-//////////////////////////////////////////////////////////////////////
-
-#include "stdafx.h"
-#include "ISession_Curve.h"
-#include <Prs3d_LineAspect.hxx>
-#include <StdPrs_Curve.hxx>
-#include <GeomAdaptor_Curve.hxx>
-#include <Prs3d_Drawer.hxx>
-#include <Prs3d_ArrowAspect.hxx>
-
-IMPLEMENT_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
-
-#ifdef _DEBUG
-#undef THIS_FILE
-static char THIS_FILE[]=__FILE__;
-#endif
-
-//////////////////////////////////////////////////////////////////////
-// Construction/Destruction
-//////////////////////////////////////////////////////////////////////
-
-
-ISession_Curve::ISession_Curve(const Handle(Geom_Curve)& aCurve)
-:AIS_InteractiveObject(),myCurve(aCurve)
-{
-}
-
-ISession_Curve::~ISession_Curve()
-{
-
-}
-void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager)& /*aPresentationManager*/,
-                             const Handle(Prs3d_Presentation)& aPresentation,
-                             const Standard_Integer /*aMode*/)
-{
-  GeomAdaptor_Curve anAdaptorCurve(myCurve);
-  if (hasOwnColor)
-    myDrawer->LineAspect()->SetColor (myDrawer->Color());
-  myDrawer->Link()->SetDiscretisation(100);
-  myDrawer->Link()->SetMaximalParameterValue(500);
-
-  StdPrs_Curve::Add (aPresentation, anAdaptorCurve, myDrawer);
-}
-
-void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
-                                     const Standard_Integer /*aMode*/) 
-{ 
-}
-
-
diff --git a/samples/mfc/standard/07_Triangulation/src/ISession_Curve.h b/samples/mfc/standard/07_Triangulation/src/ISession_Curve.h
deleted file mode 100755 (executable)
index c1c955f..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-// ISession_Curve.h: interface for the ISession_Curve class.
-//
-//////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_ISESSION_CURVE_H__F981CB93_A3CC_11D1_8DA3_0800369C8A03__INCLUDED_)
-#define AFX_ISESSION_CURVE_H__F981CB93_A3CC_11D1_8DA3_0800369C8A03__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-#include <Standard_Macro.hxx>
-#include <Standard_DefineHandle.hxx>
-#include <AIS_InteractiveObject.hxx>
-#include <Geom_Curve.hxx>
-class ISession_Curve;
-DEFINE_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
-
-class ISession_Curve : public AIS_InteractiveObject  
-{
-public:
-       ISession_Curve(const Handle(Geom_Curve)& aCurve);
-       virtual ~ISession_Curve();
-DEFINE_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
-private:
-
-Standard_EXPORT virtual  void Compute(const Handle(PrsMgr_PresentationManager)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0) ;
-void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer aMode) ;
-
-Handle(Geom_Curve) myCurve;
-};
-
-#endif // !defined(AFX_ISESSION_CURVE_H__F981CB93_A3CC_11D1_8DA3_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/07_Triangulation/src/OCCDemo_Presentation.cpp b/samples/mfc/standard/07_Triangulation/src/OCCDemo_Presentation.cpp
deleted file mode 100755 (executable)
index fb4968a..0000000
+++ /dev/null
@@ -1,331 +0,0 @@
-// OCCDemo_Presentation.cpp: implementation of the OCCDemo_Presentation class.
-// This is a base class for all presentations
-//////////////////////////////////////////////////////////////////////
-
-#include "stdafx.h"
-#include "OCCDemo_Presentation.h"
-#include <OCC_3dView.h>
-#include "TriangulationDoc.h"
-#include "ISession_Curve.h"
-
-#include <AIS_InteractiveObject.hxx>
-#include <Geom_Surface.hxx>
-#include <Geom_Curve.hxx>
-#include <Geom2d_Curve.hxx>
-#include <Quantity_Color.hxx>
-#include <AIS_Shape.hxx>
-#include <BRepBuilderAPI_MakeFace.hxx>
-#include <Precision.hxx>
-#include <Geom_Line.hxx>
-#include <Geom_TrimmedCurve.hxx>
-#include <Prs3d_Drawer.hxx>
-#include <Prs3d_ArrowAspect.hxx>
-#include <AIS_Point.hxx>
-#include <Geom_CartesianPoint.hxx>
-#include <Geom2d_OffsetCurve.hxx>
-#include <GeomAPI.hxx>
-#include <gp_Pln.hxx>
-#include <Geom_OffsetCurve.hxx>
-
-#define MAX_PARAM 1000 // if a surface parameter is infinite, it is assigned
-// this value in order to display the "infinit" object in the viewer.
-
-
-Standard_Boolean OCCDemo_Presentation::WaitForInput (unsigned long aMilliSeconds)
-{
-  //::WaitForSingleObject(::CreateEvent (NULL, FALSE, FALSE, NULL), aMilliSeconds);
-  if (::MsgWaitForMultipleObjects(0, NULL, FALSE, aMilliSeconds,
-    QS_KEY | QS_MOUSEBUTTON) != WAIT_TIMEOUT)
-  {
-    MSG msg;
-    if (::PeekMessage (&msg, NULL, 0, 0, PM_NOREMOVE))
-    {
-      if (msg.message == WM_KEYUP)
-      {
-        ::PeekMessage (&msg, NULL, 0, 0, PM_REMOVE);
-        return WaitForInput (aMilliSeconds);
-      }
-      else
-        return Standard_True;
-    }
-  }
-  return Standard_False;
-}
-
-//================================================================
-// Function : fixParam
-// Purpose  : assigns a finite value to theParam if it's infinite
-//            (equal to +- Precision::Infinite())
-//================================================================
-static Standard_Boolean fixParam(Standard_Real& theParam)
-{
-  Standard_Boolean aResult = Standard_False;
-  if (Precision::IsNegativeInfinite(theParam))
-  {
-    theParam = -MAX_PARAM;
-    aResult = Standard_True;
-  }
-  if (Precision::IsPositiveInfinite(theParam))
-  {
-    theParam = MAX_PARAM;
-    aResult = Standard_True;
-  }
-  return aResult;
-}
-
-//================================================================
-// Function : DrawSurface                           
-// Purpose  : displays a given geometric surface in 3d viewer
-//            (creates a finite face and displays it)
-//================================================================
-Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawSurface
-                                  (const Handle(Geom_Surface)& theSurface,
-                                   const Quantity_Color& theColor,
-                                   const Standard_Boolean toDisplay)
-{
-  Standard_Real u1, u2, v1, v2;
-  theSurface->Bounds(u1,u2,v1,v2);
-  fixParam(u1);
-  fixParam(u2);
-  fixParam(v1);
-  fixParam(v2);
-
-  Handle(AIS_Shape) aGraphicSurface = 
-    new AIS_Shape(BRepBuilderAPI_MakeFace (theSurface, u1, u2, v1, v2, Precision::Confusion()));
-
-  getAISContext()->SetMaterial(aGraphicSurface, Graphic3d_NOM_PLASTIC, toDisplay);
-  getAISContext()->SetColor(aGraphicSurface, theColor, toDisplay);
-  if (toDisplay) {
-    if (FitMode){
-               getAISContext()->Display (aGraphicSurface, Standard_False);
-               CTriangulationDoc::Fit();
-       }
-       else
-               getAISContext()->Display (aGraphicSurface, Standard_True);
-  }
-  
-  return aGraphicSurface;
-}
-
-//================================================================
-// Function : DrawCurve                                 
-// Purpose  : displays a given curve 3d
-//================================================================
-Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawCurve
-                                  (const Handle(Geom_Curve)& theCurve,
-                                   const Quantity_Color& theColor,
-                                   const Standard_Boolean toDisplay)
-{
-  Handle(ISession_Curve) aGraphicCurve = new ISession_Curve (theCurve);
-
-  getAISContext()->SetColor (aGraphicCurve, theColor, toDisplay);
-  aGraphicCurve->Attributes()->Link()->SetLineArrowDraw(Standard_False);
-  if (toDisplay){ 
-    if (FitMode){
-               getAISContext()->Display (aGraphicCurve, Standard_False);
-               CTriangulationDoc::Fit();
-       }
-       else
-               getAISContext()->Display (aGraphicCurve, Standard_True);
-  }
-
-  return aGraphicCurve;
-}
-
-//================================================================
-// Function : DrawCurve                                 
-// Purpose  : displays a given curve 2d
-//================================================================
-Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawCurve
-                                  (const Handle(Geom2d_Curve)& theCurve,
-                                   const Quantity_Color& theColor,
-                                   const Standard_Boolean toDisplay,
-                                   const gp_Ax2& aPosition)
-{
-  // create 3D curve in plane
-  Handle(Geom_Curve) aCurve3d;
-  if (theCurve->IsKind(STANDARD_TYPE(Geom2d_OffsetCurve)))
-  {
-    Handle(Geom2d_OffsetCurve) aOffCurve =
-      Handle(Geom2d_OffsetCurve)::DownCast(theCurve);
-    Handle(Geom_Curve) aBasCurve3d =
-      GeomAPI::To3d (aOffCurve->BasisCurve(), gp_Pln(aPosition));
-    Standard_Real aDist = aOffCurve->Offset();
-    aCurve3d = new Geom_OffsetCurve (aBasCurve3d, aDist, aPosition.Direction());
-  }
-  else
-  {
-    aCurve3d = GeomAPI::To3d (theCurve, gp_Pln(aPosition));
-  }
-  return drawCurve (aCurve3d, theColor, toDisplay);
-}
-
-//================================================================
-// Function : drawPoint
-// Purpose  : displays a given point
-//================================================================
-Handle(AIS_Point) OCCDemo_Presentation::drawPoint
-                                  (const gp_Pnt& aPnt,
-                                   const Quantity_Color& theColor,
-                                   const Standard_Boolean toDisplay)
-{
-  Handle(AIS_Point) aGraphicPoint = new AIS_Point (new Geom_CartesianPoint(aPnt));
-
-  getAISContext()->SetColor (aGraphicPoint, theColor, toDisplay);
-  if (toDisplay) {
-    getAISContext()->Display (aGraphicPoint, Standard_True);
-    //COCCDemoDoc::Fit();
-  }
-
-  return aGraphicPoint;
-}
-
-//================================================================
-// Function : drawVector
-// Purpose  : displays a given vector in 3d viewer
-//            (segment of line starting at thePnt with the arrow at the end,
-//             the length of segment is the length of the vector)
-//================================================================
-Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawVector 
-                                  (const gp_Pnt& thePnt,
-                                   const gp_Vec& theVec,
-                                   const Quantity_Color& theColor,
-                                   const Standard_Boolean toDisplay)
-{
-  Standard_Real aLength = theVec.Magnitude();
-  if (aLength < Precision::Confusion())
-    return Handle(AIS_InteractiveObject)();
-
-  Handle(Geom_Curve) aCurve = new Geom_Line (thePnt, theVec);
-  aCurve = new Geom_TrimmedCurve (aCurve, 0, aLength);
-
-  Handle(ISession_Curve) aGraphicCurve = new ISession_Curve (aCurve);
-
-  getAISContext()->SetColor (aGraphicCurve, theColor, toDisplay);
-  Handle(Prs3d_Drawer) aDrawer = aGraphicCurve->Attributes()->Link();
-  aDrawer->SetLineArrowDraw(Standard_True);
-  aDrawer->ArrowAspect()->SetLength(aLength/10);
-  if (toDisplay) {
-    if (FitMode){
-               getAISContext()->Display (aGraphicCurve, Standard_False);
-               CTriangulationDoc::Fit();
-       }
-       else
-               getAISContext()->Display (aGraphicCurve, Standard_True);
-  }
-
-  return aGraphicCurve;
-}
-
-
-Handle(AIS_Shape) OCCDemo_Presentation::drawShape 
-         (const TopoDS_Shape& theShape,const Quantity_Color& theColor,
-          const Standard_Boolean toDisplay)
-{
-  Handle(AIS_Shape) aGraphicShape = new AIS_Shape(theShape);
-
-  getAISContext()->SetMaterial(aGraphicShape, Graphic3d_NOM_PLASTIC, toDisplay);
-  getAISContext()->SetColor (aGraphicShape, theColor, toDisplay);
-  if (toDisplay){ 
-    if (FitMode){
-               getAISContext()->Display (aGraphicShape, Standard_False);
-               CTriangulationDoc::Fit();
-       }
-       else
-               getAISContext()->Display (aGraphicShape, Standard_True);
-  }
-
-  return aGraphicShape;
-}
-
-Handle(AIS_Shape) OCCDemo_Presentation::drawShape
-         (const TopoDS_Shape& theShape,
-          const Graphic3d_NameOfMaterial theMaterial,
-          const Standard_Boolean toDisplay)
-{
-  Handle(AIS_Shape) aGraphicShape = new AIS_Shape(theShape);
-
-  getAISContext()->SetMaterial(aGraphicShape, theMaterial, toDisplay);
-  if (toDisplay) {
-    if (FitMode){
-               getAISContext()->Display (aGraphicShape, Standard_False);
-               CTriangulationDoc::Fit();
-       }
-       else
-               getAISContext()->Display (aGraphicShape, Standard_True);
-  }
-
-  return aGraphicShape;
-}
-/*
-void OCCDemo_Presentation::GetViewCenter(Standard_Real& Xc, Standard_Real& Yc)
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       OCC_3dView *pView = (OCC_3dView*)pChild->GetActiveView();
-       pView->GetViewCenter(Xc,Yc);
-}
-
-void OCCDemo_Presentation::SetViewCenter(Standard_Real Xc, Standard_Real Yc)
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       COCCDemoView *pView = (COCCDemoView *) pChild->GetActiveView();
-       pView->SetViewCenter(Xc,Yc);
-}
-
-void OCCDemo_Presentation::GetViewEye(Standard_Real& X, Standard_Real& Y, Standard_Real& Z)
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       COCCDemoView *pView = (COCCDemoView *) pChild->GetActiveView();
-       pView->GetViewEye(X,Y,Z);
-}
-
-void OCCDemo_Presentation::SetViewEye(Standard_Real X, Standard_Real Y, Standard_Real Z)
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       COCCDemoView *pView = (COCCDemoView *) pChild->GetActiveView();
-       pView->SetViewEye(X,Y,Z);
-}
-
-Standard_Real OCCDemo_Presentation::GetViewScale()
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       COCCDemoView *pView = (COCCDemoView *) pChild->GetActiveView();
-       return pView->GetViewScale();
-}
-
-void OCCDemo_Presentation::SetViewScale(Standard_Real Coef)
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       COCCDemoView *pView = (COCCDemoView *) pChild->GetActiveView();
-       pView->SetViewScale(Coef);
-}
-
-void OCCDemo_Presentation::ResetView()
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       COCCDemoView *pView = (COCCDemoView *) pChild->GetActiveView();
-       pView->Reset();
-}
-*/
-Handle(AIS_InteractiveContext) OCCDemo_Presentation::getAISContext() const
-{
-       return myDoc->GetAISContext();
-}
-
-Handle(V3d_Viewer) OCCDemo_Presentation::getViewer() const
-{
-       return myDoc->GetViewer();
-}
-
-
-Standard_CString OCCDemo_Presentation::GetDataDir()
-{
-       return myDoc->GetDataDir();
-}
diff --git a/samples/mfc/standard/07_Triangulation/src/OCCDemo_Presentation.h b/samples/mfc/standard/07_Triangulation/src/OCCDemo_Presentation.h
deleted file mode 100755 (executable)
index 4b6c3fa..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-// OCCDemo_Presentation.h: interface for the OCCDemo_Presentation class.
-// This is a base class for all presentations
-//////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_OCCDEMO_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
-#define AFX_OCCDEMO_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-
-#define WAIT_A_LITTLE WaitForInput(500)
-#define WAIT_A_SECOND WaitForInput(1000)
-
-//#include "TriangulationDoc.h"
-//#include <OCCDemo.h>
-class CTriangulationDoc;
-#include <AIS_InteractiveObject.hxx>
-#include <AIS_Point.hxx>
-#include <Geom_Surface.hxx>
-#include <Geom_Curve.hxx>
-#include <Geom2d_Curve.hxx>
-class Quantity_Color;
-
-class OCCDemo_Presentation
-{
-public:
-  // Construction
-  OCCDemo_Presentation() : myIndex(0), myNbSamples(0), FitMode(false){}
-  virtual ~OCCDemo_Presentation() {}
-
-public:
-  static OCCDemo_Presentation* Current;
-  // this pointer must be initialized when realize a derivable class;
-  // it is used by application to access to a presentation class instance
-
-  void SetDocument (CTriangulationDoc* theDoc) {myDoc = theDoc;}
-  // document must be set by the user of this class before first use of iterations
-  CTriangulationDoc* GetDocument () {return myDoc;}
-
-public:
-  // Titling
-  const CString& GetName() const {return myName;}
-
-public:
-  // Iteration on samples
-  void FirstSample() {myIndex=0;}
-  void LastSample() {myIndex=myNbSamples-1;}
-  Standard_Boolean AtFirstSample() const {return myIndex <= 0;}
-  Standard_Boolean AtLastSample() const {return myIndex >= myNbSamples-1;}
-  void NextSample() {myIndex++;}
-  void PrevSample() {myIndex--;}
-  virtual void DoSample() = 0;
-/*
-  static void GetViewCenter(Standard_Real& Xc, Standard_Real& Yc);
-  static void SetViewCenter(const Standard_Real Xc, const Standard_Real Yc);
-  static void GetViewEye(Standard_Real& X, Standard_Real& Y, Standard_Real& Z);
-  static void SetViewEye(Standard_Real X, Standard_Real Y, Standard_Real Z);
-  static Standard_Real GetViewScale();
-  static void SetViewScale(Standard_Real Coef);
-  static void ResetView();
-*/
-
-  // place one-time initialization code in this function
-  virtual void Init() {}
-
-protected:
-  // Methods to call from a derivable class
-  void setName (const char* theName) {myName = CString(theName);}
-  Handle(AIS_InteractiveContext) getAISContext() const;
-  Handle(V3d_Viewer) getViewer() const;
-  Standard_CString GetDataDir();
-
-  Standard_Boolean WaitForInput (unsigned long aMilliSeconds);
-  // Waits for a user input or a period of time has been elapsed
-
-  Handle(AIS_InteractiveObject) drawSurface (const Handle(Geom_Surface)& theSurface,
-         const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_LEMONCHIFFON3),
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates a finite face based on the given geometric surface 
-  // and displays it in the viewer if toDisplay = Standard_True
-
-  Handle(AIS_InteractiveObject) drawCurve (const Handle(Geom_Curve)& theCurve,
-         const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_RED),
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates an ISession_Curve based on the given geometric curve
-  // and displays it in the viewer if toDisplay = Standard_True
-
-  Handle(AIS_InteractiveObject) drawCurve (const Handle(Geom2d_Curve)& theCurve,
-         const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_RED),
-         const Standard_Boolean toDisplay = Standard_True,
-         const gp_Ax2& aPosition = gp::XOY());
-  // converts a given curve to 3d using aPosition and calls the previous method
-
-  Handle(AIS_Point) drawPoint (const gp_Pnt& thePnt,
-         const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_GREEN),
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates a presentation of the given point
-  // and displays it in the viewer if toDisplay = Standard_True
-
-  Handle(AIS_InteractiveObject) drawVector (const gp_Pnt& thePnt,
-                                           const gp_Vec& theVec,
-         const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_YELLOW),
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates a presentation of the given vector
-  // and displays it in the viewer if toDisplay = Standard_True
-
-  Handle(AIS_Shape) drawShape (const TopoDS_Shape& theShape,
-         const Quantity_Color& theColor,
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates a presentation of the given shape
-  // with material PLASTIC and a given color
-  // and displays it in the viewer if toDisplay = Standard_True
-
-  Handle(AIS_Shape) drawShape (const TopoDS_Shape& theShape,
-         const Graphic3d_NameOfMaterial theMaterial = Graphic3d_NameOfMaterial_Brass,
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates a presentation of the given shape with the given material
-  // (color is default for a given material)
-  // and displays it in the viewer if toDisplay = Standard_True
-
-protected:
-  // Fields to use in a derivable class
-  BOOL FitMode;
-  int myIndex;
-  int myNbSamples;
-
-private:
-  CTriangulationDoc* myDoc;
-  CString myName;
-
-};
-
-#endif // !defined(AFX_OCCDEMO_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
diff --git a/samples/mfc/standard/07_Triangulation/src/StdAfx.cpp b/samples/mfc/standard/07_Triangulation/src/StdAfx.cpp
deleted file mode 100755 (executable)
index 2f73d9e..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// stdafx.cpp : source file that includes just the standard includes
-//     SampleTriangulation.pch will be the pre-compiled header
-//     stdafx.obj will contain the pre-compiled type information
-
-#include "stdafx.h"
-
diff --git a/samples/mfc/standard/07_Triangulation/src/StdAfx.h b/samples/mfc/standard/07_Triangulation/src/StdAfx.h
deleted file mode 100755 (executable)
index a6a14f5..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-// stdafx.h : include file for standard system include files,
-//  or project specific include files that are used frequently, but
-//      are changed infrequently
-//
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#define VC_EXTRALEAN           // Exclude rarely-used stuff from Windows headers
-
-#include <afxwin.h>         // MFC core and standard components
-#include <afxext.h>         // MFC extensions
-#include <afxdisp.h>        // MFC OLE automation classes
-#ifndef _AFX_NO_AFXCMN_SUPPORT
-#include <afxcmn.h>                    // MFC support for Windows Common Controls
-#endif // _AFX_NO_AFXCMN_SUPPORT
-
-#pragma warning(  disable : 4244 )        // Issue warning 4244
-#include "Standard_ShortReal.hxx"
-#pragma warning(  default : 4244 )        // Issue warning 4244
-
-#include <Standard.hxx>
-/*
-#ifndef Version15B
-# ifndef Version15D
-#  ifndef Version20
-#   define Version15B
-#  endif // Version20
-# endif // Version15D
-#endif // Version15B
-
-#pragma message ("=============================")
-#ifdef Version15B
-# pragma message ("Set the libs for version 1.5B")
-#endif // Version15B
-
-#ifdef Version15D
-# pragma message ("Set the libs for version 1.5D")
-#endif // Version15D
-
-#ifdef Version20
-# pragma message ("Set the libs for version 2.0 ")
-#endif // Version20
-#pragma message ("=============================")
-
-#ifdef Version15B
-# pragma comment (lib,"TKTop.lib")
-# pragma comment (lib,"TShort.lib")
-# pragma comment (lib,"TColQuantity.lib")
-#endif
-
-#ifdef Version15D
-# pragma comment (lib,"TKTop.lib")
-#endif
-
-#ifdef Version20
-# pragma comment (lib,"TKTop1.lib")
-# pragma comment (lib,"TKTop2.lib")
-#endif
-
-#pragma message ("Set the specific libs for the application")
-# pragma comment (lib,"TKPrs.lib")
-# pragma comment (lib,"TKGeom.lib")
-# pragma comment (lib,"TKGlt.lib")
-# pragma comment (lib,"TKGraphic.lib")
-# pragma comment (lib,"TKPrsMgr.lib")
-# pragma comment (lib,"TKViewers.lib")
-# pragma comment (lib,"TKSession.lib")
-# pragma comment (lib,"TColgp.lib")
-# pragma comment (lib,"TKernel.lib")
-*/
-
-#include <AIS_InteractiveContext.hxx>
-#include <AIS_Shape.hxx>
-#include <V3d_Viewer.hxx>
-#include <V3d_View.hxx>
-#include <WNT_Window.hxx>
-#include <Standard_ErrorHandler.hxx>
-#include <BRepPrimAPI_MakeBox.hxx>
-#include <BRepPrimAPI_MakeCylinder.hxx>
-
-#include "TopoDS_Shape.hxx"
-#include "BRepPrimAPI_MakeBox.hxx"
-#include "BRepPrimAPI_MakeSphere.hxx"
-#include "gp_Pnt.hxx"
-#include "BRepAlgoAPI_Cut.hxx"
-#include "TopExp_Explorer.hxx"
-#include "TopoDS_Face.hxx"
-#include "TopLoc_Location.hxx"
-#include "Poly_Triangulation.hxx"
-#include "BRep_Tool.hxx"
-#include "TopoDS.hxx"
-#include "TColgp_Array1OfPnt.hxx"
-#include "Poly_Array1OfTriangle.hxx"
-#include "Poly_Triangle.hxx"
-#include "gp_Pnt.hxx"
-#include "BRepBuilderAPI_MakeEdge.hxx"
-#include "BRep_Builder.hxx"
-#include "TopoDS_Compound.hxx"
-#include "BRepAlgoAPI_Fuse.hxx"
-#include "BRepBuilderAPI_MakeVertex.hxx"
-#include "TopoDS.hxx"
-#include "BRepTools.hxx"
-#include "BRepMesh_IncrementalMesh.hxx"
-
-#include <UnitsAPI.hxx>
-
-#include <res\resource.h>
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
diff --git a/samples/mfc/standard/07_Triangulation/src/Tesselate_Presentation.cpp b/samples/mfc/standard/07_Triangulation/src/Tesselate_Presentation.cpp
deleted file mode 100755 (executable)
index b34e562..0000000
+++ /dev/null
@@ -1,439 +0,0 @@
-// Tesselate_Presentation.cpp: implementation of the Tesselate_Presentation class.
-// Tesselate shapes.
-////////////////////////////////////////////////////////////////////////////
-
-#include "stdafx.h"
-#include "Tesselate_Presentation.h" 
-#include "TriangulationApp.h" 
-#include "TriangulationDoc.h" 
-
-#include <Precision.hxx>
-#include <TopoDS.hxx>
-#include <TopoDS_Edge.hxx>
-#include <TopoDS_Face.hxx>
-#include <TopoDS_Compound.hxx>
-
-#include <BRep_Builder.hxx>
-#include <BRepTools.hxx>
-#include <BRep_Tool.hxx>
-#include <BRepBuilderAPI_MakeEdge.hxx>
-#include <BRepBuilderAPI_MakeVertex.hxx>
-#include <BRepMesh_IncrementalMesh.hxx>
-
-#include <TopExp_Explorer.hxx>
-#include <TopLoc_Location.hxx>
-#include <TopTools_DataMapOfIntegerShape.hxx>
-#include <TopTools_SequenceOfShape.hxx>
-
-#include <Poly_Triangulation.hxx>
-#include <Poly_PolygonOnTriangulation.hxx>
-#include <Poly_Array1OfTriangle.hxx>
-#include <TColgp_Array1OfPnt.hxx>
-#include <TColStd_Array1OfInteger.hxx>
-
-#include <gp_Pnt.hxx>
-
-#define EOL "\r\n"
-
-// Initialization of global variable with an instance of this class
-OCCDemo_Presentation* OCCDemo_Presentation::Current = new Tesselate_Presentation;
-
-// Initialization of array of samples
-Standard_CString Tesselate_Presentation::myFileNames[] =
-{
-  "wedge_ok.brep",
-  "shell1.brep",
-  "Pump_Nut.brep",
-  "Pump_TopCover.brep",
-  0
-};
-
-//////////////////////////////////////////////////////////////////////
-// Construction/Destruction
-//////////////////////////////////////////////////////////////////////
-
-Tesselate_Presentation::Tesselate_Presentation()
-{
-  for (myNbSamples = 0; myFileNames[myNbSamples]; myNbSamples++);
-  setName ("Tesselate shapes");
-}
-
-//////////////////////////////////////////////////////////////////////
-// Sample execution
-//////////////////////////////////////////////////////////////////////
-
-void Tesselate_Presentation::DoSample()
-{
-       ((CTriangulationApp*) AfxGetApp())->SetSampleName (L"Tesselate");
-       ((CTriangulationApp*) AfxGetApp())->SetSamplePath (L"");
-       getAISContext()->EraseAll (Standard_True);
-       if (myIndex >=0 && myIndex < myNbSamples)
-    sample (myFileNames[myIndex]);
-}
-
-//////////////////////////////////////////////////////////////////////
-// Sample functions
-//////////////////////////////////////////////////////////////////////
-//================================================================
-
-inline Standard_Integer _key(Standard_Integer n1,Standard_Integer n2)
-{
-
-  Standard_Integer key = 
-    (n2>n1)?(n1<<16)+n2:(n2<<16)+n1;
-  return key;
-}
-
-//DATA : [myIndex][{Deflection,NumberOfFace,NumberOfEdge}]
-static const Standard_Real DATA [][3] = 
-{
-  {0.2,1,2},{0.5,6,2},{0.7,16,2},{1,1,2}
-};
-
-
-void Tesselate_Presentation::tesselateShape(const TopoDS_Shape& aShape)
-{
-//  setResultTitle("Tesselate shape");
-  TCollection_AsciiString aText = (
-    "/////////////////////////////////////////////////////////////////" EOL
-    "// Tesselate shape." EOL
-    "/////////////////////////////////////////////////////////////////" EOL EOL
-    ) ;
-
-  Standard_Real aDeflection = DATA[myIndex][0];
-  Standard_Integer aNumOfFace = (Standard_Integer)DATA[myIndex][1];
-  Standard_Integer aNumOfEdge = (Standard_Integer)DATA[myIndex][2];
-
-  aText +=
-    "Standard_Real aDeflection;" EOL
-    "// aDeflection = ... ;" EOL EOL
-
-    "// removes all the triangulations of the faces ," EOL
-    "//and all the polygons on the triangulations of the edges:" EOL
-    "BRepTools::Clean(aShape);" EOL EOL
-
-    "// adds a triangulation of the shape aShape with the deflection aDeflection:" EOL
-    "BRepMesh::Mesh(aShape,aDeflection);" EOL EOL
-
-    "TopExp_Explorer aExpFace,aExpEdge;" EOL
-    "for(aExpFace.Init(aShape,TopAbs_FACE);aExpFace.More();aExpFace.Next())" EOL
-    "{  " EOL
-    "  TopoDS_Face aFace = TopoDS::Face(aExpFace.Current());" EOL
-    "  TopLoc_Location aLocation;" EOL EOL
-    
-    "  // takes the triangulation of the face aFace:" EOL
-    "  Handle(Poly_Triangulation) aTr = BRep_Tool::Triangulation(aFace,aLocation);" EOL EOL
-    
-    "  if(!aTr.IsNull()) // if this triangulation is not NULL" EOL
-    "  { " EOL
-    "    // create array of node points in absolute coordinate system" EOL
-    "    TColgp_Array1OfPnt aPoints(1, aTr->NbNodes());" EOL
-    "    for( Standard_Integer i = 1; i < aTr->NbNodes()+1; i++)" EOL
-    "      aPoints(i) = aTr->Node (i).Transformed (aLocation);" EOL EOL
-
-    "    // Takes the node points of each triangle of this triangulation." EOL
-    "    // takes a number of triangles:" EOL
-    "    Standard_Integer nnn = aTr->NbTriangles();" EOL
-    "    Standard_Integer nt,n1,n2,n3;" EOL
-    "    for( nt = 1 ; nt < nnn+1 ; nt++)" EOL
-    "    {" EOL
-    "      // takes the node indices of each triangle in n1,n2,n3:" EOL
-    "      aTr->Triangle (nt).Get (n1,n2,n3);" EOL
-    "      // takes the node points:" EOL
-    "      gp_Pnt aPnt1 = aPoints(n1);" EOL
-    "      gp_Pnt aPnt2 = aPoints(n2);" EOL
-    "      gp_Pnt aPnt3 = aPoints(n3);" EOL
-    "    } " EOL EOL
-    
-    "    // Takes the polygon associated to an edge." EOL
-    "    aExpEdge.Init(aFace,TopAbs_EDGE);" EOL
-    "    TopoDS_Edge aEdge;" EOL
-    "    // for example,working with the first edge:" EOL
-    "    if(aExpEdge.More())" EOL
-    "      aEdge = TopoDS::Edge(aExpEdge.Current());" EOL EOL
-    
-    "    if(!aEdge.IsNull()) // if this edge is not NULL" EOL
-    "    {" EOL
-    "      // takes the polygon associated to the edge aEdge:" EOL
-    "      Handle(Poly_PolygonOnTriangulation) aPol = " EOL
-    "        BRep_Tool::PolygonOnTriangulation(aEdge,aTr,aEdge.Location());" EOL EOL
-    
-    "      if(!aPol.IsNull()) // if this polygon is not NULL" EOL
-    "        // takes the array of nodes for this polygon" EOL
-    "        // (indexes in the array of nodes for triangulation of theFace):" EOL
-    "        const TColStd_Array1OfInteger& aNodesOfPol = aPol->Nodes();" EOL
-    "    }" EOL
-    "  }" EOL
-    "}" EOL EOL
-    
-    "//==================================================" EOL EOL
-    
-      ;
-   aText += "  Result with deflection = ";
-   aText += TCollection_AsciiString(aDeflection);
-   aText += " :" EOL;
-
-   GetDocument()->PocessTextInDialog("Compute the triangulation on a shape", aText);
-//   setResultText(aText.ToCString());  
-
-//==========================================================================
-
-  BRepTools::Clean(aShape);
-  BRepMesh_IncrementalMesh(aShape,aDeflection);
-
-  BRep_Builder aBuilder,aBuild1,aBuild2;
-  TopoDS_Compound aCompound,aComp1,aComp2;
-  aBuilder.MakeCompound(aCompound);
-  aBuild1.MakeCompound(aComp1);
-  aBuild2.MakeCompound(aComp2);
-
-  Standard_Integer aCount = 0;
-  Standard_Integer aNumOfNodes = 0;
-  Standard_Integer aNumOfTriangles = 0;
-  
-  Handle(AIS_InteractiveObject) aShowEdge,aShowFace,aShowShape;
-  
-  TopExp_Explorer aExpFace,aExpEdge;
-
-  for(aExpFace.Init(aShape,TopAbs_FACE);aExpFace.More();aExpFace.Next())
-  {  
-    aCount++;
-  
-    TopoDS_Face aFace = TopoDS::Face(aExpFace.Current());
-    TopLoc_Location aLocation;
-
-    Handle(Poly_Triangulation) aTr = BRep_Tool::Triangulation(aFace,aLocation);
-
-    if(!aTr.IsNull())
-    { 
-      aNumOfNodes += aTr->NbNodes();
-      //Standard_Integer aLower = aNodes.Lower();
-      //Standard_Integer anUpper = aNodes.Upper();
-      aNumOfTriangles += aTr->NbTriangles();
-
-      if(aCount == aNumOfFace)
-      {
-        Standard_Integer aNbOfNodesOfFace = aTr->NbNodes();
-        Standard_Integer aNbOfTrianglesOfFace = aTr->NbTriangles();
-        aExpEdge.Init(aFace,TopAbs_EDGE);
-
-        TopoDS_Edge aEdge;
-
-        for( Standard_Integer i = 0; aExpEdge.More() && i < aNumOfEdge ; aExpEdge.Next(), i++)
-          aEdge = TopoDS::Edge(aExpEdge.Current());
-
-        if(!aEdge.IsNull())
-        {
-          Handle(Poly_PolygonOnTriangulation) aPol = 
-            BRep_Tool::PolygonOnTriangulation(aEdge,aTr,aEdge.Location());
-
-          if(!aPol.IsNull())
-          {
-            const TColStd_Array1OfInteger& aNodesOfPol = aPol->Nodes();
-            Standard_Integer aNbOfNodesOfEdge = aPol->NbNodes();
-
-            aText += "Number of nodes of the edge = ";
-            aText += TCollection_AsciiString(aNbOfNodesOfEdge) + EOL;
-            aText += "Number of nodes of the face = ";
-            aText += TCollection_AsciiString(aNbOfNodesOfFace) + EOL;
-            aText += "Number of triangles of the face = ";
-            aText += TCollection_AsciiString(aNbOfTrianglesOfFace) + EOL;
-                       GetDocument()->PocessTextInDialog("Compute the triangulation on a shape", aText);
-//            setResultText(aText.ToCString());  
-
-            Standard_Integer aLower = aNodesOfPol.Lower(), anUpper = aNodesOfPol.Upper();
-            for( int i = aLower; i < anUpper ; i++)
-            {
-              gp_Pnt aPnt1 = aTr->Node (aNodesOfPol (i)).Transformed (aLocation);
-              gp_Pnt aPnt2 = aTr->Node (aNodesOfPol (i+1)).Transformed (aLocation);
-              TopoDS_Vertex aVertex1 = BRepBuilderAPI_MakeVertex (aPnt1);
-              TopoDS_Vertex aVertex2 = BRepBuilderAPI_MakeVertex (aPnt2);
-
-              if(!aVertex1.IsNull() && !aVertex2.IsNull() && // if vertices are "alive"
-                !BRep_Tool::Pnt(aVertex1).IsEqual(
-                BRep_Tool::Pnt(aVertex2),Precision::Confusion())) // if they are different
-              {
-                aEdge = BRepBuilderAPI_MakeEdge (aVertex1,aVertex2);
-                aBuild2.Add(aComp2,aVertex1);
-                if(!aEdge.IsNull())
-                  aBuild2.Add(aComp2,aEdge);
-                if(i == anUpper-1)
-                  aBuild2.Add(aComp2,aVertex2);
-              }
-            }
-      
-            getAISContext()->EraseAll (Standard_False);
-            aShowShape = drawShape(aShape);
-            if(WAIT_A_SECOND) return;
-            aShowEdge = drawShape(aComp2,Quantity_NOC_GREEN);
-            getAISContext()->Erase (aShowShape, Standard_True);
-            if(WAIT_A_SECOND) return;
-          }
-        }
-      }
-    
-
-      TopTools_DataMapOfIntegerShape aEdges;
-      TopTools_SequenceOfShape aVertices;
-
-      for( Standard_Integer i = 1; i < aTr->NbNodes()+1; i++)
-      {
-        gp_Pnt aPnt = aTr->Node (i).Transformed (aLocation);
-        TopoDS_Vertex aVertex = BRepBuilderAPI_MakeVertex(aPnt);
-
-        if(!aVertex.IsNull())
-        {
-          aBuilder.Add(aCompound,aVertex);
-          if(aCount == aNumOfFace ) 
-            aBuild1.Add(aComp1,aVertex);
-          aVertices.Append(aVertex);
-        }
-      }
-
-      Standard_Integer nnn = aTr->NbTriangles();
-      Standard_Integer nt,n1,n2,n3;
-
-      for( nt = 1 ; nt < nnn+1 ; nt++)
-      {     
-        aTr->Triangle (nt).Get (n1,n2,n3);
-
-        Standard_Integer key[3];
-        
-        TopoDS_Vertex aV1,aV2;
-        key[0] = _key(n1, n2);
-        if(!aEdges.IsBound(key[0]))
-        {
-          aV1 = TopoDS::Vertex(aVertices(n1));
-          aV2 = TopoDS::Vertex(aVertices(n2));
-          if(!aV1.IsNull() && !aV2.IsNull() &&
-            !BRep_Tool::Pnt(aV1).IsEqual(BRep_Tool::Pnt(aV2),Precision::Confusion()))
-          {
-            TopoDS_Edge aEdge = BRepBuilderAPI_MakeEdge (aV1,aV2);  
-            if(!aEdge.IsNull())
-            {
-              aEdges.Bind(key[0], aEdge);
-              aBuilder.Add(aCompound,aEdges(key[0]));
-              if(aCount == aNumOfFace)
-                aBuild1.Add(aComp1,aEdges(key[0]));
-            } 
-          }
-        }
-        
-        key[1] = _key(n2,n3);
-        if(!aEdges.IsBound(key[1])) 
-        { 
-          aV1 = TopoDS::Vertex(aVertices(n2));
-          aV2 = TopoDS::Vertex(aVertices(n3));
-          if(!aV1.IsNull() && !aV2.IsNull() &&
-            !BRep_Tool::Pnt(aV1).IsEqual(BRep_Tool::Pnt(aV2),Precision::Confusion()))
-          {
-            TopoDS_Edge aEdge = BRepBuilderAPI_MakeEdge (aV1,aV2);  
-            if(!aEdge.IsNull())
-            {
-              aEdges.Bind(key[1],aEdge);
-              aBuilder.Add(aCompound,aEdges(key[1]));
-              if(aCount == aNumOfFace) 
-                aBuild1.Add(aComp1,aEdges(key[1]));
-            } 
-          } 
-        } 
-        key[2] = _key(n3,n1);
-        if(!aEdges.IsBound(key[2])) 
-        { 
-          aV1 = TopoDS::Vertex(aVertices(n3));
-          aV2 = TopoDS::Vertex(aVertices(n1));
-          if(!aV1.IsNull() && !aV2.IsNull() &&
-            !BRep_Tool::Pnt(aV1).IsEqual(BRep_Tool::Pnt(aV2),Precision::Confusion()))
-          { 
-            TopoDS_Edge aEdge = BRepBuilderAPI_MakeEdge (aV1,aV2);  
-            if(!aEdge.IsNull())
-            { 
-              aEdges.Bind(key[2],aEdge);
-              aBuilder.Add(aCompound,aEdges(key[2]));
-              if(aCount == aNumOfFace) 
-                aBuild1.Add(aComp1,aEdges(key[2]));
-            } 
-          } 
-        } 
-      } 
-      
-      if(aCount == aNumOfFace)
-      {
-        aShowFace = drawShape(aComp1,Quantity_NOC_GREEN);
-        getAISContext()->Erase (aShowEdge, Standard_True);
-      }
-    }
-    else
-    {
-      aText += "Can't compute a triangulation on face ";
-      aText += TCollection_AsciiString(aCount) + EOL;
-         GetDocument()->PocessTextInDialog("Compute the triangulation on a shape", aText);
-//      setResultText(aText.ToCString());
-    }
-  }
-  
-  aText += "Number of nodes of the shape = ";
-  aText += TCollection_AsciiString(aNumOfNodes) + EOL;
-  aText += "Number of triangles of the shape = ";
-  aText += TCollection_AsciiString(aNumOfTriangles) + EOL EOL;
-  GetDocument()->PocessTextInDialog("Compute the triangulation on a shape", aText);
-//  setResultText(aText.ToCString());
-
-  if(WAIT_A_SECOND) return;
-  drawShape(aCompound,Quantity_NOC_GREEN);
-  getAISContext()->Erase (aShowFace, Standard_True);
-  
-}
-
-void Tesselate_Presentation::sample(const Standard_CString aFileName)
-{
-  CString anOCCTDataPathValue;
-  anOCCTDataPathValue.GetEnvironmentVariable(L"CSF_OCCTDataPath");
-  CString initfile = (anOCCTDataPathValue + L"\\occ\\" + aFileName);
-
-/*  
-  ResetView();
-  
-  if (aFileName == "wedge_ok.brep"){
-       SetViewCenter(6.3639597574916, 4.4907309380832);
-       SetViewScale(52.722555157077); 
-  }
-
-  if (aFileName == "shell1.brep"){
-       SetViewCenter(60.457553053711, -20.351208944076);
-       SetViewScale(26.857478563027); 
-  }
-
-  if (aFileName == "Pump_Nut.brep"){
-       SetViewCenter(248.77723166710, 77.249633819945);
-       SetViewScale(12.371719671833); 
-  }
-
-  if (aFileName == "Pump_TopCover.brep"){
-       SetViewCenter(408.72474423160, 169.38361094986);
-       SetViewScale(2.1932732873087); 
-  }
-*/
-
-  std::filebuf aFileBuf;
-  std::istream aStream (&aFileBuf);
-  if (!aFileBuf.open (initfile, std::ios::in))
-  {
-    initfile += L" was not found. The sample can not be shown.";
-    GetDocument()->PocessTextInDialog ("Compute the triangulation on a shape", initfile);
-    return;
-  }
-
-  TopoDS_Shape aShape;
-  BRep_Builder aBld;
-  BRepTools::Read (aShape, aStream, aBld);
-  if (aShape.IsNull())
-  {
-    initfile += L" was not found. The sample can not be shown.";
-    GetDocument()->PocessTextInDialog ("Compute the triangulation on a shape", initfile);
-    return;
-  }
-
-  tesselateShape (aShape);
-}
diff --git a/samples/mfc/standard/07_Triangulation/src/Tesselate_Presentation.h b/samples/mfc/standard/07_Triangulation/src/Tesselate_Presentation.h
deleted file mode 100755 (executable)
index 45dd5bc..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-// Tesselate_Presentation.h: interface for the Tesselate_Presentation class.
-// Presentation class: Tesselate shapes.
-//////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_Tesselate_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
-#define AFX_Tesselate_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-#include <OCCDemo_Presentation.h>
-
-class Tesselate_Presentation : public OCCDemo_Presentation
-{
-public:
-  // Construction
-  Tesselate_Presentation();
-
-public:
-  // Iteration on samples
-  virtual void DoSample();
-  // one phase of iterations
-
-private:
-  // Sample functions
-  void sample(const Standard_CString aFileName);
-  void tesselateShape(const TopoDS_Shape& aShape);
-
-  static Standard_CString myFileNames[];
-
-};
-
-#endif // !defined(AFX_Tesselate_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
diff --git a/samples/mfc/standard/07_Triangulation/src/TriangulationApp.cpp b/samples/mfc/standard/07_Triangulation/src/TriangulationApp.cpp
deleted file mode 100755 (executable)
index 4925e24..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-// TriangulationApp.cpp : Defines the class behaviors for the application.
-//
-
-#include "stdafx.h"
-
-#include "TriangulationApp.h"
-
-#include "OCC_MainFrame.h"
-#include "OCC_3dChildFrame.h"
-#include "TriangulationDoc.h"
-#include "OCC_3dView.h"
-
-/////////////////////////////////////////////////////////////////////////////
-// CTriangulationApp construction
-
-CTriangulationApp::CTriangulationApp() : OCC_App()
-{
-  SampleName = "TopologyTriangulation"; //for about dialog
-  SetSamplePath (L"..\\..\\07_Triangulation");
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// The one and only CTriangulationApp object
-
-CTriangulationApp theApp;
-
-/////////////////////////////////////////////////////////////////////////////
-// CTriangulationApp initialization
-
-BOOL CTriangulationApp::InitInstance()
-{
-       AfxEnableControlContainer();
-
-       // Standard initialization
-       // If you are not using these features and wish to reduce the size
-       //  of your final executable, you should remove from the following
-       //  the specific initialization routines you do not need.
-
-       // Change the registry key under which our settings are stored.
-       // You should modify this string to be something appropriate
-       // such as the name of your company or organization.
-       SetRegistryKey(_T("Local AppWizard-Generated Applications"));
-
-       LoadStdProfileSettings();  // Load standard INI file options (including MRU)
-
-       // Register the application's document templates.  Document templates
-       //  serve as the connection between documents, frame windows and views.
-
-       CMultiDocTemplate* pDocTemplate;
-       pDocTemplate = new CMultiDocTemplate(
-               IDR_3DTYPE,
-               RUNTIME_CLASS(CTriangulationDoc),
-               RUNTIME_CLASS(OCC_3dChildFrame), // custom MDI child frame
-               RUNTIME_CLASS(OCC_3dView));
-       AddDocTemplate(pDocTemplate);
-
-       // create main MDI Frame window
-       OCC_MainFrame* pMainFrame = new OCC_MainFrame(with_AIS_TB);
-       if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
-               return FALSE;
-       m_pMainWnd = pMainFrame;
-
-       // Parse command line for standard shell commands, DDE, file open
-       CCommandLineInfo cmdInfo;
-       ParseCommandLine(cmdInfo);
-
-       // Dispatch commands specified on the command line
-       if (!ProcessShellCommand(cmdInfo))
-               return FALSE;
-
-       // The main window has been initialized, so show and update it.
-       pMainFrame->ShowWindow(m_nCmdShow);
-       pMainFrame->UpdateWindow();
-
-       return TRUE;
-}
-
diff --git a/samples/mfc/standard/07_Triangulation/src/TriangulationApp.h b/samples/mfc/standard/07_Triangulation/src/TriangulationApp.h
deleted file mode 100755 (executable)
index 2630b7d..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-// TriangulationApp.h : main header file for the TRIANGULATION application
-//
-
-#if !defined(AFX_TRIANGULATIONAPP_H__3045338A_3E75_11D7_8611_0060B0EE281E__INCLUDED_)
-#define AFX_TRIANGULATIONAPP_H__3045338A_3E75_11D7_8611_0060B0EE281E__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include <OCC_App.h>
-
-class CTriangulationApp : public OCC_App
-{
-public:
-
-  CTriangulationApp();
-
-// Overrides
-  // ClassWizard generated virtual function overrides
-  //{{AFX_VIRTUAL(CTriangulationApp)
-  public:
-  virtual BOOL InitInstance();
-  //}}AFX_VIRTUAL
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_TRIANGULATIONAPP_H__3045338A_3E75_11D7_8611_0060B0EE281E__INCLUDED_)
diff --git a/samples/mfc/standard/07_Triangulation/src/TriangulationDoc.cpp b/samples/mfc/standard/07_Triangulation/src/TriangulationDoc.cpp
deleted file mode 100755 (executable)
index 4b9841d..0000000
+++ /dev/null
@@ -1,418 +0,0 @@
-// TriangulationDoc.cpp : implementation of the CTriangulationDoc class
-//
-
-#include "stdafx.h"
-
-#include "TriangulationDoc.h"
-
-#include "TriangulationApp.h"
-
-#include "OCCDemo_Presentation.h"
-
-#include <OCC_3dView.h>
-
-#include "..\res\resource.h"
-
-#include <AIS_ListOfInteractive.hxx>
-#include <AIS_ListIteratorOfListOfInteractive.hxx>
-
-/////////////////////////////////////////////////////////////////////////////
-// CTriangulationDoc
-
-IMPLEMENT_DYNCREATE(CTriangulationDoc, CDocument)
-
-BEGIN_MESSAGE_MAP(CTriangulationDoc, OCC_3dBaseDoc)
-       //{{AFX_MSG_MAP(CTriangulationDoc)
-       ON_COMMAND(ID_TRIANGU, OnTriangu)
-       ON_COMMAND(ID_Clear, OnClear)
-       ON_COMMAND(ID_Visu, OnVisu)
-       ON_COMMAND(ID_BUTTONNext, OnBUTTONNext)
-       ON_COMMAND(ID_BUTTONStart, OnBUTTONStart)
-       ON_COMMAND(ID_BUTTONRepeat, OnBUTTONRepeat)
-       ON_COMMAND(ID_BUTTONPrev, OnBUTTONPrev)
-       ON_COMMAND(ID_BUTTONEnd, OnBUTTONEnd)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONNext, OnUpdateBUTTONNext)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONPrev, OnUpdateBUTTONPrev)
-       ON_COMMAND(ID_FILE_NEW, OnFileNew)
-       ON_COMMAND(ID_DUMP_VIEW, OnDumpView)
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CTriangulationDoc construction/destruction
-
-CTriangulationDoc::CTriangulationDoc()
-{
-       myPresentation = OCCDemo_Presentation::Current;
-       myPresentation->SetDocument(this);
-
-       strcpy_s(myDataDir, "Data");
-       strcpy_s(myLastPath, ".");
-}
-
-CTriangulationDoc::~CTriangulationDoc()
-{
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CTriangulationDoc diagnostics
-
-#ifdef _DEBUG
-void CTriangulationDoc::AssertValid() const
-{
-       CDocument::AssertValid();
-}
-
-void CTriangulationDoc::Dump(CDumpContext& dc) const
-{
-       CDocument::Dump(dc);
-}
-#endif //_DEBUG
-
-void CTriangulationDoc::OnTriangu() 
-{
-       AIS_ListOfInteractive aList;
-       myAISContext->DisplayedObjects(aList);
-       AIS_ListIteratorOfListOfInteractive aListIterator;
-       for(aListIterator.Initialize(aList);aListIterator.More();aListIterator.Next()){
-               myAISContext->Remove (aListIterator.Value(), Standard_False);
-       }
-
-       TopoDS_Shape theBox = BRepPrimAPI_MakeBox(200,60,60);
-       TopoDS_Shape theSphere = BRepPrimAPI_MakeSphere(gp_Pnt(100,20,20),80);
-       TopoDS_Shape ShapeFused = BRepAlgoAPI_Fuse(theSphere,theBox);
-       BRepMesh_IncrementalMesh(ShapeFused,1);
-
-       Handle (AIS_Shape)      aSection = new AIS_Shape(ShapeFused);
-       myAISContext->SetDisplayMode (aSection, 1, Standard_False);
-       myAISContext->SetColor (aSection, Quantity_NOC_RED, Standard_False);
-       myAISContext->SetMaterial (aSection, Graphic3d_NOM_GOLD, Standard_False);
-       myAISContext->Display (aSection, Standard_False);
-
-       Standard_Integer result(0);
-
-       for (TopExp_Explorer ex(ShapeFused,TopAbs_FACE) ; ex.More(); ex.Next()) {
-               TopoDS_Face F =TopoDS::Face(ex.Current());
-               TopLoc_Location L;
-               Handle (Poly_Triangulation) facing = BRep_Tool::Triangulation(F,L);
-               result = result + facing->NbTriangles();
-       }
-       Fit();
-
- TCollection_AsciiString Message ("\
-               \n\
-TopoDS_Shape theBox = BRepPrimAPI_MakeBox(200,60,60);  \n\
-TopoDS_Shape theSphere = BRepPrimAPI_MakeSphere(gp_Pnt(100,20,20),80); \n\
-       \n\
-TopoDS_Shape ShapeFused = BRepBuilderAPI_Fuse(theSphere,theBox);       \n\
-       \n\
-BRepMesh::Mesh(ShapeFused,1);  \n\
-       \n\
-Standard_Integer result(0);    \n\
-       \n\
-for (TopExp_Explorer ex(ShapeFused,TopAbs_FACE) ; ex.More(); ex.Next()) {      \n\
-       TopoDS_Face F =TopoDS::Face(ex.Current());      \n\
-       TopLoc_Location L;      \n\
-       Handle (Poly_Triangulation) facing = BRep_Tool::Triangulation(F,L);     \n\
-       result = result + facing->NbTriangles();        \n\
-}      \n\
-\n\
---- Number of created triangles ---\n");
-       TCollection_AsciiString nombre(result);
-       Message += nombre;
-       Message +=("\
-                                 \n\
-                               \n");
-       PocessTextInDialog("Compute the triangulation on a shape", Message);
-}
-
-void CTriangulationDoc::OnVisu() 
-{
-
-       AIS_ListOfInteractive aList;
-       myAISContext->DisplayedObjects(aList);
-       AIS_ListIteratorOfListOfInteractive aListIterator;
-       for(aListIterator.Initialize(aList);aListIterator.More();aListIterator.Next()){
-               myAISContext->Remove (aListIterator.Value(), Standard_False);
-       }
-
-TopoDS_Shape theBox = BRepPrimAPI_MakeBox(200,60,60).Shape();
-TopoDS_Shape theSphere = BRepPrimAPI_MakeSphere(gp_Pnt(100, 20, 20), 80).Shape();
-TopoDS_Shape ShapeFused = BRepAlgoAPI_Fuse(theSphere, theBox).Shape();
-BRepMesh_IncrementalMesh(ShapeFused,1);
-
-Handle (AIS_Shape)     aSection = new AIS_Shape(ShapeFused);
-myAISContext->SetDisplayMode (aSection, 1, Standard_False);
-myAISContext->SetColor (aSection, Quantity_NOC_RED, Standard_False);
-myAISContext->SetMaterial (aSection, Graphic3d_NOM_GOLD, Standard_False);
-myAISContext->SetTransparency (aSection, 0.1, Standard_False);
-myAISContext->Display (aSection, Standard_False);
-
-BRep_Builder builder;
-TopoDS_Compound Comp;
-builder.MakeCompound(Comp);
-
-for (TopExp_Explorer ex(ShapeFused,TopAbs_FACE) ; ex.More(); ex.Next()) {
-               
-       TopoDS_Face F =TopoDS::Face(ex.Current());
-    TopLoc_Location L;
-       Handle (Poly_Triangulation) facing = BRep_Tool::Triangulation(F,L);
-
-       for (Standard_Integer i=1;i<=(facing->NbTriangles());i++) {
-               const Poly_Triangle trian = facing->Triangle (i);
-               Standard_Integer index1,index2,index3,M = 0, N = 0;
-               trian.Get(index1,index2,index3);
-       
-               for (Standard_Integer j=1;j<=3;j++) {
-                       switch (j) {
-                       case 1 :
-                               M = index1;
-                               N = index2;
-                       break;
-                       case 2 :
-                               N = index3;
-                       break;
-                       case 3 :
-                               M = index2;
-                       }
-                       
-                       BRepBuilderAPI_MakeEdge ME(facing->Node (M), facing->Node (N));
-                       if (ME.IsDone()) {
-                               builder.Add(Comp,ME.Edge());
-                       }
-               }
-       }
-}
-Handle (AIS_Shape)     atriangulation = new AIS_Shape(Comp);
-myAISContext->SetDisplayMode (atriangulation, 0, Standard_False);
-myAISContext->SetColor (atriangulation, Quantity_NOC_WHITE, Standard_False);
-myAISContext->Display (atriangulation, Standard_False);
-
-Fit();
-
-  TCollection_AsciiString Message ("\
-               \n\
-TopoDS_Shape theBox = BRepPrimAPI_MakeBox(200,60,60);  \n\
-TopoDS_Shape theSphere = BRepPrimAPI_MakeSphere(gp_Pnt(100,20,20),80); \n\
-TopoDS_Shape ShapeFused = BRepAlgoAPI_Fuse(theSphere,theBox);  \n\
-BRepMesh::Mesh(ShapeFused,1);  \n\
-       \n\
-BRep_Builder builder;  \n\
-TopoDS_Compound Comp;  \n\
-builder.MakeCompound(Comp);    \n\
-       \n\
-for (TopExp_Explorer ex(ShapeFused,TopAbs_FACE) ; ex.More(); ex.Next()) {      \n\
-                       \n\
-       TopoDS_Face F =TopoDS::Face(ex.Current());      \n\
-       TopLoc_Location L;      \n\
-       Handle (Poly_Triangulation) facing = BRep_Tool::Triangulation(F,L);     \n\
-    \n\
-       for (Standard_Integer i=1;i<=(facing->NbTriangles());i++) {     \n\
-               Poly_Triangle trian = facing->Triangle (i);     \n\
-               Standard_Integer index1,index2,index3,M,N;      \n\
-               trian.Get(index1,index2,index3);        \n\
-               \n\
-               for (Standard_Integer j=1;j<=3;j++) {   \n\
-                       switch (j) {    \n\
-                       case 1 :        \n\
-                               M = index1;     \n\
-                               N = index2;     \n\
-                       break;  \n\
-                       case 2 :        \n\
-                               N = index3;     \n\
-                       break;  \n\
-                       case 3 :        \n\
-                               M = index2;     \n\
-                       }       \n\
-                               \n\
-                       BRepBuilderAPI_MakeEdge ME(facing->Node (M),facing->Node (N));  \n\
-                       if (ME.IsDone()) {      \n\
-                               builder.Add(Comp,ME.Edge());    \n\
-                       }       \n\
-               }       \n\
-       }       \n\
-}      \n\
-       \n\
-Warning : The visualisation of the mesh is not optimised.\n\
-The shared edges between triangles are dispayed twice.\n\
-The purpose here is only to show how to decode the data structure of triangulation.\n\
-       \n");
-  PocessTextInDialog("Visualize the triangulation on a shape", Message);
-
-}
-
-
-
-
-void CTriangulationDoc::OnClear() 
-{
-       AIS_ListOfInteractive aList;
-       myAISContext->DisplayedObjects(aList);
-       AIS_ListIteratorOfListOfInteractive aListIterator;
-       for(aListIterator.Initialize(aList);aListIterator.More();aListIterator.Next()){
-               myAISContext->Remove (aListIterator.Value(), Standard_False);
-       }
-
-TopoDS_Shape theBox = BRepPrimAPI_MakeBox(200, 60, 60).Shape();
-TopoDS_Shape theSphere = BRepPrimAPI_MakeSphere(gp_Pnt(100, 20, 20), 80).Shape();
-TopoDS_Shape ShapeFused = BRepAlgoAPI_Fuse(theSphere,theBox);
-BRepMesh_IncrementalMesh(ShapeFused,1);
-
-
-Handle (AIS_Shape)     aSection = new AIS_Shape(ShapeFused);
-myAISContext->SetDisplayMode (aSection, 1, Standard_False);
-myAISContext->SetColor (aSection, Quantity_NOC_RED, Standard_False);
-myAISContext->SetMaterial (aSection, Graphic3d_NOM_GOLD, Standard_False);
-myAISContext->Display (aSection, Standard_False);
-
-BRepTools::Clean(ShapeFused);
-
-TCollection_AsciiString test;
-if (!BRepTools::Triangulation(ShapeFused,1)) {
-       test = ("In fact the triangulation has been removed\n");
-}
-
-Fit();
- TCollection_AsciiString Message ("\
-               \n\
-TopoDS_Shape theBox = BRepPrimAPI_MakeBox(200,60,60);  \n\
-TopoDS_Shape theSphere = BRepPrimAPI_MakeSphere(gp_Pnt(100,20,20),80); \n\
-TopoDS_Shape ShapeFused = BRepAlgoAPI_Fuse(theSphere,theBox);  \n\
-BRepMesh::Mesh(ShapeFused,1);  \n\
-       \n\
-BRepTools::Clean(ShapeFused);  \n\
-       \n\
-if (!BRepTools::Triangulation(ShapeFused,1)) { \n\
-       TCollection_AsciiString test(<In fact the triangulation has been removed>);     \n\
-}      \n\
-       \n\
-       --- Result ---\n");
-
-       Message += test;
-       Message +=("\
-                                 \n\
-                               \n");
-
-       PocessTextInDialog("Remove the triangulation", Message);
-
-}
-
-/*******************************************************************************
-*********************  T E S S E L A T E  **************************************
-*******************************************************************************/
-
-void CTriangulationDoc::Start()
-{
-  myPresentation->Init();
-  OnBUTTONStart();
-}
-
-void CTriangulationDoc::OnFileNew()
-{
-  OnNewDocument();
-  Start();
-}
-
-void CTriangulationDoc::InitViewButtons()
-{
-  //POSITION pos = GetFirstViewPosition();
-/* LLS
-  while (pos != NULL)
-  {
-    COCCDemoView* pView = (COCCDemoView*) GetNextView(pos);
-    pView->InitButtons();
-  }
-*/     
-}
-
-void CTriangulationDoc::DoSample()
-{
-  InitViewButtons();
-
-  HCURSOR hOldCursor = ::GetCursor();
-  HCURSOR hNewCursor = AfxGetApp()->LoadStandardCursor(IDC_APPSTARTING);
-
-  SetCursor(hNewCursor);
-  {
-    try
-    {
-      myPresentation->DoSample();
-    }
-    catch (Standard_Failure const& anException)
-    {
-      Standard_SStream aSStream;
-      aSStream << "An exception was caught: " << anException << std::ends;
-      CString aMsg = aSStream.str().c_str();
-//      aSStream.rdbuf()->freeze(0);   // allow deletion of dynamic array
-      AfxMessageBox (aMsg);
-    }
-  }
-  SetCursor(hOldCursor);
-}
-
-void CTriangulationDoc::OnBUTTONStart() 
-{
-  myAISContext->EraseAll (Standard_True);
-  myPresentation->FirstSample();
-  DoSample();
-}
-
-void CTriangulationDoc::OnBUTTONEnd()
-{
-  myAISContext->EraseAll (Standard_True);
-  myPresentation->LastSample();
-  DoSample();
-}
-
-void CTriangulationDoc::OnBUTTONRepeat() 
-{
-  DoSample();
-}
-
-void CTriangulationDoc::OnBUTTONNext() 
-{
-  if (!myPresentation->AtLastSample())
-  {
-    myPresentation->NextSample();
-    DoSample();
-  }
-}
-
-void CTriangulationDoc::OnBUTTONPrev() 
-{
-  if (!myPresentation->AtFirstSample())
-  {
-    myPresentation->PrevSample();
-    DoSample();
-  }
-}
-
-void CTriangulationDoc::OnUpdateBUTTONNext(CCmdUI* pCmdUI) 
-{
-       pCmdUI->Enable (!myPresentation->AtLastSample());
-}
-
-void CTriangulationDoc::OnUpdateBUTTONPrev(CCmdUI* pCmdUI) 
-{
-       pCmdUI->Enable (!myPresentation->AtFirstSample());
-}
-
-void CTriangulationDoc::OnDumpView()
-{
-  for (POSITION aPos = GetFirstViewPosition(); aPos != NULL;)
-  {
-    OCC_3dView* pView = (OCC_3dView* )GetNextView (aPos);
-    pView->UpdateWindow();
-  }
-
-  Handle(V3d_View) aView = myViewer->ActiveViews().First();
-  ExportView (aView);
-}
-
-void CTriangulationDoc::Fit()
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       OCC_3dView *pView = (OCC_3dView*)pChild->GetActiveView();
-       pView->FitAll();
-}
diff --git a/samples/mfc/standard/07_Triangulation/src/TriangulationDoc.h b/samples/mfc/standard/07_Triangulation/src/TriangulationDoc.h
deleted file mode 100755 (executable)
index 00d6ec3..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-// TriangulationDoc.h : interface of the CTopologyTriangulationDoc class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_TRIANGULATIONDOC_H__3045338B_3E75_11D7_8611_0060B0EE281E__INCLUDED_)
-#define AFX_TRIANGULATIONDOC_H__3045338B_3E75_11D7_8611_0060B0EE281E__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include <OCC_3dDoc.h>
-//#include "OCCDemo_Presentation.h"
-class OCCDemo_Presentation;
-
-class CTriangulationDoc : public OCC_3dDoc
-{
-
-protected: // create from serialization only
-       CTriangulationDoc();
-       DECLARE_DYNCREATE(CTriangulationDoc)
-       void InitViewButtons();
-       void DoSample();
-public:
-       virtual ~CTriangulationDoc();
-       void Start();
-       static void Fit(); 
-       Standard_CString GetDataDir() {return myDataDir;}
-#ifdef _DEBUG
-       virtual void AssertValid() const;
-       virtual void Dump(CDumpContext& dc) const;
-#endif
-
-// Generated message map functions
-protected:
-       //{{AFX_MSG(CTriangulationDoc)
-       afx_msg void OnTriangu();
-       afx_msg void OnClear();
-       afx_msg void OnVisu();
-       afx_msg void OnBUTTONNext();
-       afx_msg void OnBUTTONStart();
-       afx_msg void OnBUTTONRepeat();
-       afx_msg void OnBUTTONPrev();
-       afx_msg void OnBUTTONEnd();
-       afx_msg void OnUpdateBUTTONNext(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONPrev(CCmdUI* pCmdUI);
-       afx_msg void OnFileNew();
-       afx_msg void OnDumpView();
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-private:
-       OCCDemo_Presentation *myPresentation;
-       char myDataDir[5]; // for "Data\0"
-       char myLastPath[MAX_PATH]; // directory of lastly saved file in DumpView()
-
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_TRIANGULATIONDOC_H__3045338B_3E75_11D7_8611_0060B0EE281E__INCLUDED_)
diff --git a/samples/mfc/standard/08_HLR/CMakeLists.txt b/samples/mfc/standard/08_HLR/CMakeLists.txt
deleted file mode 100644 (file)
index 68785a2..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-cmake_minimum_required (VERSION 2.6)
-
-project (HLR)
-
-add_definitions(-DWINVER=0x0501 -DUNICODE -D_UNICODE)
-set (CMAKE_MFC_FLAG 2)
-
-set (HLR_SRC_DIR      ${MFC_STANDARD_SAMPLES_DIR}/08_HLR/src)
-set (HLR_HEADER_FILES ${HLR_SRC_DIR}/HLRApp.h
-                      ${HLR_SRC_DIR}/HLRDoc.h
-                      ${HLR_SRC_DIR}/HLRView2D.h
-                      ${HLR_SRC_DIR}/SelectionDialog.h
-                      ${HLR_SRC_DIR}/StdAfx.h )
-set (HLR_SOURCE_FILES ${HLR_SRC_DIR}/HLRApp.cpp
-                      ${HLR_SRC_DIR}/HLRDoc.cpp
-                      ${HLR_SRC_DIR}/HLRView2D.cpp
-                      ${HLR_SRC_DIR}/SelectionDialog.cpp
-                      ${HLR_SRC_DIR}/StdAfx.cpp )
-
-set (HLR_RESOURCE_DIR    ${MFC_STANDARD_SAMPLES_DIR}/08_HLR/res)
-set (HLR_RESOURCE_HEADER ${HLR_RESOURCE_DIR}/resource.h)
-set (HLR_RESOURCE_FILES  ${HLR_RESOURCE_DIR}/axoviewd.bmp
-                         ${HLR_RESOURCE_DIR}/axoviewf.bmp
-                         ${HLR_RESOURCE_DIR}/AXOVIEWU.bmp
-                         ${HLR_RESOURCE_DIR}/BACKVIEWD.bmp
-                         ${HLR_RESOURCE_DIR}/BACKVIEWF.bmp
-                         ${HLR_RESOURCE_DIR}/BACKVIEWU.bmp
-                         ${HLR_RESOURCE_DIR}/BOTTOMVIEWD.bmp
-                         ${HLR_RESOURCE_DIR}/BOTTOMVIEWF.bmp
-                         ${HLR_RESOURCE_DIR}/BOTTOMVIEWU.bmp
-                         ${HLR_RESOURCE_DIR}/ChildFrame2D.bmp
-                         ${HLR_RESOURCE_DIR}/ChildFrame3D.bmp
-                         ${HLR_RESOURCE_DIR}/FRONTVIEWD.bmp
-                         ${HLR_RESOURCE_DIR}/FRONTVIEWF.bmp
-                         ${HLR_RESOURCE_DIR}/FRONTVIEWU.bmp
-                         ${HLR_RESOURCE_DIR}/LEFTVIEWD.bmp
-                         ${HLR_RESOURCE_DIR}/LEFTVIEWF.bmp
-                         ${HLR_RESOURCE_DIR}/LEFTVIEWU.bmp
-                         ${HLR_RESOURCE_DIR}/RIGHTVIEWD.bmp
-                         ${HLR_RESOURCE_DIR}/RIGHTVIEWF.bmp
-                         ${HLR_RESOURCE_DIR}/RIGHTVIEWU.bmp
-                         ${HLR_RESOURCE_DIR}/Toolbar.bmp
-                         ${HLR_RESOURCE_DIR}/ToolBarObjects.bmp
-                         ${HLR_RESOURCE_DIR}/topviewd.bmp
-                         ${HLR_RESOURCE_DIR}/topviewf.bmp
-                         ${HLR_RESOURCE_DIR}/topviewu.bmp
-                         ${HLR_RESOURCE_DIR}/HLR.rc)
-
-# groups in the VS solution
-source_group ("Source Files" FILES ${HLR_SOURCE_FILES}
-                                   ${COMMON_WINMAIN_FILE})
-
-source_group ("Header Files" FILES ${HLR_HEADER_FILES}
-                                   ${HLR_RESOURCE_HEADER})
-
-source_group ("Resource Files" FILES ${HLR_RESOURCE_FILES})
-
-add_executable (HLR WIN32 ${HLR_SOURCE_FILES}
-                          ${HLR_HEADER_FILES}
-                          ${COMMON_WINMAIN_FILE}
-                          ${HLR_RESOURCE_HEADER}
-                          ${HLR_RESOURCE_FILES} )
-
-set_property (TARGET HLR PROPERTY FOLDER "Samples/mfc")
-
-if (SINGLE_GENERATOR)
-  install (TARGETS HLR DESTINATION "${INSTALL_DIR_BIN}")
-else()
-  install (TARGETS HLR
-           CONFIGURATIONS Release RelWithDebInfo
-           DESTINATION "${INSTALL_DIR_BIN}")
-  install (TARGETS HLR
-           CONFIGURATIONS Debug
-           DESTINATION "${INSTALL_DIR_BIN}d")
-endif()
-
-include_directories (${CMAKE_BINARY_DIR}/inc
-                     ${HLR_RESOURCE_DIR}
-                     ${HLR_SRC_DIR}
-                     ${MFC_STANDARD_SAMPLES_DIR}/Common)
-
-target_link_libraries (HLR mfcsample)
\ No newline at end of file
diff --git a/samples/mfc/standard/08_HLR/README.txt b/samples/mfc/standard/08_HLR/README.txt
deleted file mode 100644 (file)
index 75e9190..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-HLR sample demonstrates hidden line removal algorithm.
-It supports exact and polygonal HLR algorithms.
-
-To try HLR you need to follow some steps:
-1) to import model, which will displayed in 3d view.
-2) to choose "File->Process HLR" or press "HLR' button in the toolbar.
-   Dialog with options of HLR will be opened.
-3) to press "Get shapes" button of the HLR dialog to
-   display results in the 2d view.
-   Optionally, this dialog allow to view chosen shapes 
-   in his own view. Here you can choose needed direction
-   of view and press "Update 2d" button to update shapes HLR 2d view.
diff --git a/samples/mfc/standard/08_HLR/adm/win/vc10/HLR.vcxproj b/samples/mfc/standard/08_HLR/adm/win/vc10/HLR.vcxproj
deleted file mode 100644 (file)
index 8bac137..0000000
+++ /dev/null
@@ -1,413 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|Win32">
-      <Configuration>Debug</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Debug|x64">
-      <Configuration>Debug</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|x64">
-      <Configuration>Release</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectGuid>{76045260-8DA6-4A3E-B220-F5B1B4ADE192}</ProjectGuid>
-    <RootNamespace>HLR</RootNamespace>
-    <Keyword>MFCProj</Keyword>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <PropertyGroup>
-    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../../../win32\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\win32\obj\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">../../../../win64\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\win64\obj\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../../../../win32\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\win32\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">../../../../win64\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\win64\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\obj/HLR.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\..\Common;$(CSF_OCCTIncludePath);..\..\..\src\ISession2D;..\..\..\res;.\src\Properties;..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\obj/HLR.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bin/HLR.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bin/HLR.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\obj/HLR.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\..\Common;$(CSF_OCCTIncludePath);..\..\..\src\ISession2D;..\..\..\res;.\src\Properties;..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\obj/HLR.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bin/HLR.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bin/HLR.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\objd/HLR.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\..\Common;$(CSF_OCCTIncludePath);..\..\..\src\ISession2D;..\..\..\res;.\src\Properties;..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\objd/HLR.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\objd/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bind/HLR.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bind/HLR.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\objd/HLR.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\..\Common;$(CSF_OCCTIncludePath);..\..\..\src\ISession2D;..\..\..\res;.\src\Properties;..\..\..\src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\objd/HLR.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\objd/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bind/HLR.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bind/HLR.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\res\HLR.rc">
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-    </ResourceCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\HLRApp.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\HLRDoc.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\HLRView2D.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\SelectionDialog.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\StdAfx.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\Properties;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\src\BaseConstantes.h" />
-    <ClInclude Include="..\..\..\src\HLRApp.h" />
-    <ClInclude Include="..\..\..\src\HLRDoc.h" />
-    <ClInclude Include="..\..\..\src\HLRView2D.h" />
-    <ClInclude Include="..\..\..\res\resource.h" />
-    <ClInclude Include="..\..\..\src\SelectionDialog.h" />
-    <ClInclude Include="..\..\..\src\StdAfx.h" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\res\axoviewd.bmp" />
-    <None Include="..\..\..\res\axoviewf.bmp" />
-    <None Include="..\..\..\res\AXOVIEWU.bmp" />
-    <None Include="..\..\..\res\BACKVIEWD.bmp" />
-    <None Include="..\..\..\res\BACKVIEWF.bmp" />
-    <None Include="..\..\..\res\BACKVIEWU.bmp" />
-    <None Include="..\..\..\res\BOTTOMVIEWD.bmp" />
-    <None Include="..\..\..\res\BOTTOMVIEWF.bmp" />
-    <None Include="..\..\..\res\BOTTOMVIEWU.bmp" />
-    <None Include="..\..\..\res\ChildFrame2D.bmp" />
-    <None Include="..\..\..\res\ChildFrame3D.bmp" />
-    <None Include="..\..\..\res\FRONTVIEWD.bmp" />
-    <None Include="..\..\..\res\FRONTVIEWF.bmp" />
-    <None Include="..\..\..\res\FRONTVIEWU.bmp" />
-    <None Include="..\..\..\res\LEFTVIEWD.bmp" />
-    <None Include="..\..\..\res\LEFTVIEWF.bmp" />
-    <None Include="..\..\..\res\LEFTVIEWU.bmp" />
-    <None Include="..\..\..\res\RIGHTVIEWD.bmp" />
-    <None Include="..\..\..\res\RIGHTVIEWF.bmp" />
-    <None Include="..\..\..\res\RIGHTVIEWU.bmp" />
-    <None Include="..\..\..\res\Toolbar.bmp" />
-    <None Include="..\..\..\res\ToolBarObjects.bmp" />
-    <None Include="..\..\..\res\topviewd.bmp" />
-    <None Include="..\..\..\res\topviewf.bmp" />
-    <None Include="..\..\..\res\topviewu.bmp" />
-  </ItemGroup>
-  <ItemGroup>
-    <ProjectReference Include="..\..\..\..\mfcsample\adm\win\vc10\mfcsample.vcxproj">
-      <Project>{2d6cbbe8-6965-4016-b503-0d715ae26691}</Project>
-      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
-    </ProjectReference>
-  </ItemGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/08_HLR/adm/win/vc10/HLR.vcxproj.filters b/samples/mfc/standard/08_HLR/adm/win/vc10/HLR.vcxproj.filters
deleted file mode 100644 (file)
index d8f08c9..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
-    <Filter Include="Source Files">
-      <UniqueIdentifier>{71b03503-46e1-4a70-bf46-9d403d37b35a}</UniqueIdentifier>
-      <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
-    </Filter>
-    <Filter Include="Header Files">
-      <UniqueIdentifier>{22270cbf-7f10-4c26-8fc6-7f68842b776d}</UniqueIdentifier>
-      <Extensions>h;hpp;hxx;hm;inl</Extensions>
-    </Filter>
-    <Filter Include="Resource Files">
-      <UniqueIdentifier>{f220deda-1476-43c2-af8d-81ff1947d33d}</UniqueIdentifier>
-      <Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
-    </Filter>
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\res\HLR.rc">
-      <Filter>Source Files</Filter>
-    </ResourceCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\HLRApp.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\HLRDoc.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\HLRView2D.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\SelectionDialog.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\StdAfx.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\src\BaseConstantes.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\HLRApp.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\HLRDoc.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\HLRView2D.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\res\resource.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\SelectionDialog.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\StdAfx.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\res\axoviewd.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\axoviewf.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\AXOVIEWU.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\BACKVIEWD.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\BACKVIEWF.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\BACKVIEWU.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\BOTTOMVIEWD.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\BOTTOMVIEWF.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\BOTTOMVIEWU.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\ChildFrame2D.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\ChildFrame3D.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\FRONTVIEWD.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\FRONTVIEWF.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\FRONTVIEWU.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\LEFTVIEWD.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\LEFTVIEWF.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\LEFTVIEWU.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\RIGHTVIEWD.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\RIGHTVIEWF.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\RIGHTVIEWU.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\Toolbar.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\ToolBarObjects.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\topviewd.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\topviewf.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\topviewu.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-  </ItemGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/08_HLR/res/AXOVIEWU.bmp b/samples/mfc/standard/08_HLR/res/AXOVIEWU.bmp
deleted file mode 100755 (executable)
index 8e9ec56..0000000
Binary files a/samples/mfc/standard/08_HLR/res/AXOVIEWU.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/BACKVIEWD.bmp b/samples/mfc/standard/08_HLR/res/BACKVIEWD.bmp
deleted file mode 100755 (executable)
index 16994f9..0000000
Binary files a/samples/mfc/standard/08_HLR/res/BACKVIEWD.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/BACKVIEWF.bmp b/samples/mfc/standard/08_HLR/res/BACKVIEWF.bmp
deleted file mode 100755 (executable)
index 6ee8aa7..0000000
Binary files a/samples/mfc/standard/08_HLR/res/BACKVIEWF.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/BACKVIEWU.bmp b/samples/mfc/standard/08_HLR/res/BACKVIEWU.bmp
deleted file mode 100755 (executable)
index bee7ef9..0000000
Binary files a/samples/mfc/standard/08_HLR/res/BACKVIEWU.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/BOTTOMVIEWD.bmp b/samples/mfc/standard/08_HLR/res/BOTTOMVIEWD.bmp
deleted file mode 100755 (executable)
index eaee70e..0000000
Binary files a/samples/mfc/standard/08_HLR/res/BOTTOMVIEWD.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/BOTTOMVIEWF.bmp b/samples/mfc/standard/08_HLR/res/BOTTOMVIEWF.bmp
deleted file mode 100755 (executable)
index 4ae4f43..0000000
Binary files a/samples/mfc/standard/08_HLR/res/BOTTOMVIEWF.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/BOTTOMVIEWU.bmp b/samples/mfc/standard/08_HLR/res/BOTTOMVIEWU.bmp
deleted file mode 100755 (executable)
index f26d1e4..0000000
Binary files a/samples/mfc/standard/08_HLR/res/BOTTOMVIEWU.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/ChildFrame2D.bmp b/samples/mfc/standard/08_HLR/res/ChildFrame2D.bmp
deleted file mode 100755 (executable)
index f46b327..0000000
Binary files a/samples/mfc/standard/08_HLR/res/ChildFrame2D.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/ChildFrame3D.bmp b/samples/mfc/standard/08_HLR/res/ChildFrame3D.bmp
deleted file mode 100755 (executable)
index a987d78..0000000
Binary files a/samples/mfc/standard/08_HLR/res/ChildFrame3D.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/FRONTVIEWD.bmp b/samples/mfc/standard/08_HLR/res/FRONTVIEWD.bmp
deleted file mode 100755 (executable)
index f6250dd..0000000
Binary files a/samples/mfc/standard/08_HLR/res/FRONTVIEWD.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/FRONTVIEWF.bmp b/samples/mfc/standard/08_HLR/res/FRONTVIEWF.bmp
deleted file mode 100755 (executable)
index f3e7bb3..0000000
Binary files a/samples/mfc/standard/08_HLR/res/FRONTVIEWF.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/FRONTVIEWU.bmp b/samples/mfc/standard/08_HLR/res/FRONTVIEWU.bmp
deleted file mode 100755 (executable)
index fc573a3..0000000
Binary files a/samples/mfc/standard/08_HLR/res/FRONTVIEWU.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/HLR.rc b/samples/mfc/standard/08_HLR/res/HLR.rc
deleted file mode 100755 (executable)
index 619fb55..0000000
+++ /dev/null
@@ -1,475 +0,0 @@
-// Microsoft Visual C++ generated resource script.
-//
-#include "resource.h"
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
-#include "afxres.h"
-#include "..\..\Common\res\OCC_Resource.h"
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-// English (U.S.) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-#pragma code_page(1252)
-#endif //_WIN32
-
-#ifdef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE 
-BEGIN
-    "resource.h\0"
-END
-
-2 TEXTINCLUDE 
-BEGIN
-    "#include ""afxres.h""\r\n"
-    "#include ""..\\..\\Common\\res\\OCC_Resource.h""\0"
-END
-
-3 TEXTINCLUDE 
-BEGIN
-    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
-    "#define _AFX_NO_OLE_RESOURCES\r\n"
-    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
-    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
-    "\r\n"
-    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
-    "#ifdef _WIN32\r\n"
-    "LANGUAGE 9, 1\r\n"
-    "#pragma code_page(1252)\r\n"
-    "#endif\r\n"
-    "#include ""afxres.rc""         // Standard components\r\n"
-    "#endif\0"
-END
-
-#endif    // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Toolbar
-//
-
-IDR_MAINFRAME TOOLBAR  16, 15
-BEGIN
-    BUTTON      ID_FILE_NEW
-    SEPARATOR
-    BUTTON      ID_BUTTON_HLRDialog
-    SEPARATOR
-    BUTTON      ID_APP_ABOUT
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Dialog
-//
-
-IDD_DIALOG_Color DIALOG  0, 0, 281, 186
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Color Map "
-FONT 8, "MS Sans Serif"
-BEGIN
-    LTEXT           "Type Of The Color Map :",IDC_STATIC,20,10,87,10
-    LTEXT           "To be updated ...",IDC_ColorMap_STATIC_Type,110,10,69,10
-    LTEXT           "Size Of The Color Map :",IDC_STATIC,20,20,79,10
-    CONTROL         "Tab1",IDC_ColorMap_TAB,"SysTabControl32",TCS_BUTTONS,19,53,242,15
-    LTEXT           "To be updated ...",IDC_ColorMap_STATIC_Size,110,20,69,10
-    GROUPBOX        "Entries :",IDC_STATIC,10,40,264,50
-    LTEXT           "Color Name :",IDC_STATIC,20,75,50,10
-    LTEXT           "To be updated ...",IDC_ColorMap_STATIC_EntryColorName,204,75,69,10
-    PUSHBUTTON      "Add",IDC_ColorMap_BUTTON_AddNewEntry,110,145,55,15
-    GROUPBOX        "New Entry",IDC_STATIC,10,100,267,79
-    PUSHBUTTON      "Update Current",IDC_ColorMap_BUTTON_UpdateCurrentEntry,20,145,55,15
-    LTEXT           "Color Name :",IDC_ColorMap_STATIC_NewEntryColorNameStatic,20,120,55,10
-    PUSHBUTTON      "Edit...",IDC_ColorMap_BUTTON_NewEntry_EditColor,204,145,55,15
-    LTEXT           "999",IDC_ColorMap_STATIC_EntryColorRed,75,75,35,10
-    LTEXT           "999",IDC_ColorMap_STATIC_EntryColorGreen,120,75,35,10
-    LTEXT           "999",IDC_ColorMap_STATIC_EntryColorBlue,165,75,35,10
-    EDITTEXT        IDC_ColorMap_EDIT_NewEntryColorRed,75,120,35,12,ES_AUTOHSCROLL
-    EDITTEXT        IDC_ColorMap_EDIT_NewEntryColorGreen,120,120,30,12,ES_AUTOHSCROLL
-    EDITTEXT        IDC_ColorMap_EDIT_NewEntryColorBlue,165,120,35,12,ES_AUTOHSCROLL
-    COMBOBOX        IDC_ColorMap_COMBO_NewEntryColorName,204,120,70,193,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
-    PUSHBUTTON      "New Generic Color Map",IDC_ColorMap_BUTTON_NewGenericColorMap,179,4,95,13
-    LTEXT           "Not available for this type of Color map",IDC_ColorMap_STATIC_NewEntryNotavailable,70,130,160,10
-    PUSHBUTTON      "New Color Cube Color Map ",IDC_ColorMap_BUTTON_NewColorCubeColorMap,179,18,95,13
-    PUSHBUTTON      "New Color Ramp Color Map",IDC_ColorMap_BUTTON_NewColorRampColorMap,179,31,95,13
-END
-
-IDD_DIALOG_Font DIALOGEX 0, 0, 287, 210
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Font Map"
-FONT 8, "MS Sans Serif", 0, 0, 0x1
-BEGIN
-    LTEXT           "Size Of The Font Map :",IDC_STATIC,20,10,80,10
-    LTEXT           "To be updated ...",IDC_FontMap_STATIC_Size,110,10,80,10
-    GROUPBOX        "Entries :",IDC_STATIC,10,28,270,97,0,WS_EX_TRANSPARENT
-    CONTROL         "Tab1",IDC_FontMap_TAB,"SysTabControl32",TCS_BUTTONS,20,40,242,15
-    GROUPBOX        "New Entry",IDC_STATIC,10,130,270,73
-    PUSHBUTTON      "Update Current",IDC_FontMap_BUTTON_UpdateCurrent,158,181,55,15
-    PUSHBUTTON      "Add",IDC_FontMap_BUTTON_NewEntry,221,179,55,16
-    LTEXT           "To be updated...",IDC_FontMap_STATIC_CurrentEntryValue,63,75,217,10
-    LTEXT           "Type :",IDC_STATIC,21,155,23,10
-    LTEXT           "Type :",IDC_STATIC,21,60,40,10
-    LTEXT           "To be updated ...",IDC_FontMap_STATIC_CurrentEntryType,63,60,80,10
-    LTEXT           "Size :",IDC_STATIC,21,174,42,10
-    LTEXT           "Slant :",IDC_STATIC,21,189,28,10
-    EDITTEXT        IDC_FontMap_EDIT_NewEntrySize,63,172,62,12,ES_AUTOHSCROLL | ES_WANTRETURN
-    EDITTEXT        IDC_FontMap_EDIT_NewEntrySlant,63,187,62,12,ES_AUTOHSCROLL | ES_WANTRETURN
-    LTEXT           "Size :",IDC_STATIC,21,90,30,10
-    LTEXT           "Slant :",IDC_STATIC,21,106,36,10
-    LTEXT           "Value :",IDC_STATIC,21,75,40,10
-    LTEXT           "Type :",IDC_STATIC,21,140,42,10
-    COMBOBOX        IDC_FontMap_COMBO_NewEntryType,63,138,113,77,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
-    EDITTEXT        IDC_FontMap_EDIT_NewEntryValue,63,153,209,12,ES_AUTOHSCROLL | ES_READONLY
-    LTEXT           "To be updated...",IDC_FontMap_STATIC_CurrentEntrySize,63,90,70,10
-    LTEXT           "To be updated...",IDC_FontMap_STATIC_CurrentEntrySlant,63,106,80,10
-    PUSHBUTTON      "Edit...",IDC_FontMap_BUTTON_NewEntry_EditFont,191,138,55,12
-END
-
-IDD_DIALOG_Width DIALOG  0, 0, 281, 167
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Width Map "
-FONT 8, "MS Sans Serif"
-BEGIN
-    LTEXT           "Size Of The Width Map :",IDC_STATIC,15,10,80,10
-    CONTROL         "Tab1",IDC_WidthMap_TAB,"SysTabControl32",TCS_BUTTONS,21,40,242,15
-    LTEXT           "To be updated ...",IDC_WidthMap_STATIC_Size,107,10,80,10
-    GROUPBOX        "Entries :",IDC_STATIC,10,30,264,57
-    LTEXT           "Type :",IDC_STATIC,15,60,80,10
-    LTEXT           "Width :",IDC_STATIC,15,75,80,10
-    LTEXT           "Type :",IDC_STATIC,15,115,49,10
-    LTEXT           "Width :",IDC_STATIC,15,130,49,10
-    COMBOBOX        IDC_WidthMap_COMBO_NewEntryType,70,113,113,77,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
-    EDITTEXT        IDC_WidthMap_EDIT_NewEntryWidth,70,128,62,12,ES_AUTOHSCROLL | ES_READONLY | ES_WANTRETURN
-    LTEXT           "To be updated ...",IDC_WidthMap_STATIC_EntryType,107,60,80,10
-    LTEXT           "To be updated ...",IDC_WidthMap_STATIC_EntryWidth,107,75,80,10
-    PUSHBUTTON      "Add",IDC_WidthMap_BUTTON_AddNewEntry,200,130,55,15
-    GROUPBOX        "New Entry",IDC_STATIC,7,101,267,51
-    PUSHBUTTON      "Update Current",IDC_WidthMap_BUTTON_UpdateCurrentEntry,200,110,55,15
-END
-
-IDD_DIALOG_NewColorCube DIALOG  0, 0, 207, 156
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "New Color Cube"
-FONT 8, "MS Sans Serif"
-BEGIN
-    DEFPUSHBUTTON   "OK",IDOK,150,10,50,13
-    PUSHBUTTON      "Cancel",IDCANCEL,150,30,50,14
-    LTEXT           "base_pixel",IDC_STATIC,20,10,50,10
-    LTEXT           "greenmax",IDC_STATIC,20,70,50,10
-    LTEXT           "greenmult",IDC_STATIC,20,90,50,10
-    LTEXT           "bluemax",IDC_STATIC,20,110,50,10
-    LTEXT           "bluemult",IDC_STATIC,20,130,50,10
-    EDITTEXT        IDC_NewColorCube_EDIT_bluemult,80,130,50,12,ES_AUTOHSCROLL | ES_NUMBER
-    EDITTEXT        IDC_NewColorCube_EDIT_bluemax,80,110,50,12,ES_AUTOHSCROLL | ES_NUMBER
-    EDITTEXT        IDC_NewColorCube_EDIT_grennmult,80,90,50,12,ES_AUTOHSCROLL | ES_NUMBER
-    EDITTEXT        IDC_NewColorCube_EDIT_greenmax,80,70,50,12,ES_AUTOHSCROLL | ES_NUMBER
-    EDITTEXT        IDC_NewColorCube_EDIT_base_pixel,80,10,50,12,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "redmax",IDC_STATIC,20,30,50,10
-    EDITTEXT        IDC_NewColorCube_EDIT_redmax,80,30,50,12,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "redmult",IDC_STATIC,20,50,50,10
-    EDITTEXT        IDC_NewColorCube_EDIT_redmult,80,50,50,12,ES_AUTOHSCROLL | ES_NUMBER
-END
-
-IDD_DIALOG_NewColorRamp DIALOG  0, 0, 252, 121
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "New Color ramp"
-FONT 8, "MS Sans Serif"
-BEGIN
-    DEFPUSHBUTTON   "OK",IDOK,150,10,50,13
-    PUSHBUTTON      "Cancel",IDCANCEL,150,30,50,14
-    LTEXT           "base_pixel",-1,20,10,49,10
-    EDITTEXT        IDC_NewColorRamp_EDIT_base_pixel,80,10,40,12,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "dimension",-1,20,30,49,10
-    EDITTEXT        IDC_NewColorramp_EDIT_dimension,80,30,40,12,ES_AUTOHSCROLL | ES_NUMBER
-    LTEXT           "Color Name :",IDC_ColorMap_STATIC_NewEntryColorNameStatic,20,50,49,10
-    PUSHBUTTON      "Edit...",IDC_NewColorMapRamp_BUTTON_EditColor,145,70,55,10
-    EDITTEXT        IDC_NewColorMapRamp_EDIT_ColorRed,28,70,35,12,ES_AUTOHSCROLL
-    EDITTEXT        IDC_NewColorMapRamp_EDIT_ColorGreen,65,70,35,12,ES_AUTOHSCROLL
-    EDITTEXT        IDC_NewColorMapRamp_EDIT_ColorBlue,103,70,35,12,ES_AUTOHSCROLL
-    COMBOBOX        IDC_NewColorMap_COMBO_NewEntryColorName,80,50,70,193,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
-END
-
-IDD_DIALOG_Type DIALOGEX 0, 0, 287, 170
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Type Map"
-FONT 8, "MS Sans Serif", 0, 0, 0x1
-BEGIN
-    LTEXT           "Size Of The Type Map :",-1,20,10,80,10
-    LTEXT           "To be updated ...",IDC_TypeMap_STATIC_Size,110,10,80,10
-    GROUPBOX        "Entries :",-1,10,28,270,62,0,WS_EX_TRANSPARENT
-    CONTROL         "Tab1",IDC_TypeMap_TAB,"SysTabControl32",TCS_BUTTONS,20,40,242,15
-    GROUPBOX        "New Entry",-1,10,100,270,60
-    PUSHBUTTON      "Update Current",IDC_FontMap_BUTTON_UpdateCurrent,160,140,55,15
-    PUSHBUTTON      "Add",IDC_FontMap_BUTTON_NewEntry,220,140,55,15
-    LTEXT           "To be updated...",IDC_TypeMap_STATIC_CurrentEntryValue,63,75,217,10
-    LTEXT           "Value :",-1,21,126,42,10
-    LTEXT           "Style :",-1,21,60,40,10
-    LTEXT           "To be updated ...",IDC_TypeMap_STATIC_CurrentEntryStyle,63,60,80,10
-    LTEXT           "Value :",-1,21,75,40,10
-    LTEXT           "Style :",-1,21,111,42,10
-    COMBOBOX        IDC_TypeMap_COMBO_NewEntryStyle,63,108,113,77,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
-    EDITTEXT        IDC_TypeMap_EDIT_NewEntryValue,63,124,194,12,ES_AUTOHSCROLL | ES_READONLY
-END
-
-IDD_DIALOG_Mark DIALOGEX 0, 0, 287, 201
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Mark Map"
-FONT 8, "MS Sans Serif", 0, 0, 0x1
-BEGIN
-    LTEXT           "Size Of The Mark Map :",AFX_ID_PREVIEW_CLOSE,20,10,80,10
-    LTEXT           "To be updated ...",IDC_MarkMap_STATIC_Size,110,10,80,10
-    GROUPBOX        "Entries :",-1,10,28,270,92,0,WS_EX_TRANSPARENT
-    CONTROL         "Tab1",IDC_MarkMap_TAB,"SysTabControl32",TCS_BUTTONS,20,40,242,15
-    LTEXT           "To be updated...",IDC_MarkMap_STATIC_CurrentEntryXValue,63,75,217,9
-    LTEXT           "Style :",-1,21,60,40,10
-    LTEXT           "To be updated ...",IDC_MarkMap_STATIC_CurrentEntryStyle,63,60,80,10
-    LTEXT           "XValue :",-1,21,75,40,9
-    LTEXT           "To be updated...",IDC_MarkMap_STATIC_CurrentEntryYValue,63,90,217,10
-    LTEXT           "YValue :",-1,21,90,40,10
-    LTEXT           "To be updated...",IDC_MarkMap_STATIC_CurrentEntrySValue,63,105,217,10
-    LTEXT           "SValue :",-1,21,105,40,10
-    LTEXT           "To be updated...",IDC_MarkMap_STATIC_CurrentEntryValue,62,90,217,10
-END
-
-IDD_SelectionDialog DIALOGEX 0, 0, 232, 183
-STYLE DS_SETFONT | DS_MODALFRAME | WS_CAPTION
-CAPTION "Choose Shapes and Projector"
-FONT 8, "MS Sans Serif", 0, 0, 0x1
-BEGIN
-    CONTROL         "2",IDC_HlrDlgView,"Button",BS_OWNERDRAW | WS_DISABLED | WS_TABSTOP,110,60,100,80,WS_EX_TRANSPARENT
-    CONTROL         "Default",IDC_DisplayDefault,"Button",BS_AUTORADIOBUTTON | WS_GROUP,17,0,70,10
-    CONTROL         "sharp Edges",IDC_VsharpEdges,"Button",BS_AUTORADIOBUTTON,20,20,70,10
-    CONTROL         "smooth Edges",IDC_VsmoothEdges,"Button",BS_AUTORADIOBUTTON,20,30,70,10
-    CONTROL         "Sewing Edges",IDC_VSewingEdges,"Button",BS_AUTORADIOBUTTON,20,40,70,10
-    CONTROL         "Apparent Contour",IDC_VApparentContour,"Button",BS_AUTORADIOBUTTON,20,50,70,10
-    CONTROL         "Iso parametrics",IDC_VIsoParametrics,"Button",BS_AUTORADIOBUTTON,20,60,70,10
-    CONTROL         "sharp Edges",IDC_HsharpEdges,"Button",BS_AUTORADIOBUTTON,20,99,70,10
-    CONTROL         "smooth Edges",IDC_HsmoothEdges,"Button",BS_AUTORADIOBUTTON,20,109,70,10
-    CONTROL         "Sewing Edges",IDC_HSewingEdges,"Button",BS_AUTORADIOBUTTON,20,119,70,10
-    CONTROL         "Apparent Contour",IDC_HApparentContour,"Button",BS_AUTORADIOBUTTON,20,129,70,10
-    CONTROL         "Iso parametrics",IDC_HIsoParametrics,"Button",BS_AUTORADIOBUTTON,20,139,70,10
-    CONTROL         "Draw Hidden line",IDC_DrawHiddenLine,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,80,70,10
-    CONTROL         "Poly Algo",IDC_PolyAlgo,"Button",BS_AUTORADIOBUTTON | WS_GROUP,10,157,50,10
-    CONTROL         "Algo",IDC_Algo,"Button",BS_AUTORADIOBUTTON,10,167,50,10
-    CONTROL         "TOPVIEW",IDC_TopView,"Button",BS_OWNERDRAW | WS_TABSTOP,106,40,13,14
-    CONTROL         "BOTTOMVIEW",IDC_BottomView,"Button",BS_OWNERDRAW | WS_TABSTOP,121,40,13,14
-    CONTROL         "LEFTVIEW",IDC_LeftView,"Button",BS_OWNERDRAW | WS_TABSTOP,137,40,13,14
-    CONTROL         "RIGHTVIEW",IDC_RightView,"Button",BS_OWNERDRAW | WS_TABSTOP,153,40,13,14
-    CONTROL         "FRONTVIEW",IDC_FrontView,"Button",BS_OWNERDRAW | WS_TABSTOP,169,40,13,14
-    CONTROL         "BACKVIEW",IDC_BackView,"Button",BS_OWNERDRAW | WS_TABSTOP,185,40,13,14
-    CONTROL         "AXOVIEW",IDC_AxoView,"Button",BS_OWNERDRAW | WS_TABSTOP,201,40,13,14
-    DEFPUSHBUTTON   "Get Shapes",ID_GetShape,105,22,57,14
-    PUSHBUTTON      "Update 2D",ID_Update2D,165,22,50,14
-    CONTROL         "HLR Mode",IDC_HlrModeIsOn,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,127,143,51,10
-    PUSHBUTTON      "Close",IDOK,150,160,50,14
-    EDITTEXT        IDC_EDIT_NBIsos,100,167,30,12,ES_AUTOHSCROLL
-    GROUPBOX        "Hidden",IDC_STATIC,10,89,82,65
-    GROUPBOX        "Visible ",IDC_STATIC,10,10,81,64
-    GROUPBOX        "Choose a projector",IDC_STATIC,97,10,123,145,0,WS_EX_TRANSPARENT
-    LTEXT           "Nb Isos",IDC_STATIC_NbIsos,70,167,30,12
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Bitmap
-//
-
-IDR_MAINFRAME           BITMAP                  "Toolbar.bmp"
-TOPVIEWD                BITMAP                  "TOPVIEWD.BMP"
-TOPVIEWF                BITMAP                  "TOPVIEWF.BMP"
-TOPVIEWU                BITMAP                  "TopViewU.BMP"
-BOTTOMVIEWU             BITMAP                  "BOTTOMVIEWU.bmp"
-BOTTOMVIEWF             BITMAP                  "BOTTOMVIEWF.bmp"
-BOTTOMVIEWD             BITMAP                  "BOTTOMVIEWD.bmp"
-LEFTVIEWU               BITMAP                  "LEFTVIEWU.bmp"
-LEFTVIEWF               BITMAP                  "LEFTVIEWF.bmp"
-LEFTVIEWD               BITMAP                  "LEFTVIEWD.bmp"
-RIGHTVIEWU              BITMAP                  "RIGHTVIEWU.bmp"
-RIGHTVIEWF              BITMAP                  "RIGHTVIEWF.bmp"
-RIGHTVIEWD              BITMAP                  "RIGHTVIEWD.bmp"
-FRONTVIEWU              BITMAP                  "FRONTVIEWU.bmp"
-FRONTVIEWF              BITMAP                  "FRONTVIEWF.bmp"
-FRONTVIEWD              BITMAP                  "FRONTVIEWD.bmp"
-BACKVIEWU               BITMAP                  "BACKVIEWU.bmp"
-BACKVIEWF               BITMAP                  "BACKVIEWF.bmp"
-BACKVIEWD               BITMAP                  "BACKVIEWD.bmp"
-AXOVIEWU                BITMAP                  "AXOVIEWU.bmp"
-AXOVIEWF                BITMAP                  "AXOVIEWF.bmp"
-AXOVIEWD                BITMAP                  "AXOVIEWD.bmp"
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Menu
-//
-
-IDR_MAINFRAME MENU 
-BEGIN
-    POPUP "&File"
-    BEGIN
-        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
-        MENUITEM SEPARATOR
-        MENUITEM "E&xit",                       ID_APP_EXIT
-    END
-    POPUP "&View"
-    BEGIN
-        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
-        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
-    END
-    POPUP "&Help"
-    BEGIN
-        MENUITEM "&About HLR...",               ID_APP_ABOUT
-    END
-END
-
-IDR_3DTYPE MENU 
-BEGIN
-    POPUP "&File"
-    BEGIN
-        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
-        MENUITEM "&Close",                      ID_FILE_CLOSE
-        MENUITEM SEPARATOR
-        MENUITEM "Process HLR",                 ID_FILE_HLR
-        POPUP "Import"
-        BEGIN
-            MENUITEM "BRep...",                     ID_FILE_IMPORT_BREP
-        END
-        POPUP "Export"
-        BEGIN
-            MENUITEM "BRep...",                     ID_FILE_EXPORT_BREP
-            MENUITEM "Image...",                    ID_FILE_EXPORT_IMAGE
-        END
-        MENUITEM SEPARATOR
-        MENUITEM "E&xit",                       ID_APP_EXIT
-    END
-    POPUP "&View"
-    BEGIN
-        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
-        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
-    END
-    POPUP "&Window"
-    BEGIN
-        MENUITEM "New Window &2D",              ID_WINDOW_NEW2D
-        MENUITEM "New Window &3D",              ID_WINDOW_NEW3D
-        MENUITEM "&Cascade",                    ID_WINDOW_CASCADE
-        MENUITEM "&Tile",                       ID_WINDOW_TILE_HORZ
-        MENUITEM "&Arrange Icons",              ID_WINDOW_ARRANGE
-    END
-    POPUP "&Help"
-    BEGIN
-        MENUITEM "&About HLR...",               ID_APP_ABOUT
-    END
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,0,0,1
- PRODUCTVERSION 1,0,0,1
- FILEFLAGSMASK 0x3fL
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x4L
- FILETYPE 0x1L
- FILESUBTYPE 0x0L
-BEGIN
-    BLOCK "StringFileInfo"
-    BEGIN
-        BLOCK "040904B0"
-        BEGIN
-            VALUE "CompanyName", "Matra Datavision"
-            VALUE "FileDescription", "SampleHLR MFC Application"
-            VALUE "FileVersion", "1, 0, 0, 1"
-            VALUE "InternalName", "SampleHLR"
-            VALUE "LegalCopyright", "Copyright (C) 1998"
-            VALUE "OriginalFilename", "SampleHLR.EXE"
-            VALUE "ProductName", "SampleHLR Application"
-            VALUE "ProductVersion", "1, 0, 0, 1"
-        END
-    END
-    BLOCK "VarFileInfo"
-    BEGIN
-        VALUE "Translation", 0x409, 1200
-    END
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// String Table
-//
-
-STRINGTABLE 
-BEGIN
-    IDR_MAINFRAME           "HLR"
-    IDR_3DTYPE              "\nHLR\nHLR\n\n\nHLR.Document\nHLR Document"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_WINDOW_NEW2D         "Open another 2d window for the active document\nNew 2d Window"
-    ID_WINDOW_NEW3D         "Open another 3d window for the active document\nNew 3d Window"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_OBJECT_DISPLAYALL    "Display\nDisplay"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_BUTTON_Test_Shape    "Test Shape\nTest Shape"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_BUTTON_HLRDialog     "Open the HLR dialog \nHLR dialog"
-    ID_FILE_HLR             "Open the HLR dialog \nHLR dialog"
-END
-
-#endif    // English (U.S.) resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-#define _AFX_NO_SPLITTER_RESOURCES
-#define _AFX_NO_OLE_RESOURCES
-#define _AFX_NO_TRACKER_RESOURCES
-#define _AFX_NO_PROPERTY_RESOURCES
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE 9, 1
-#pragma code_page(1252)
-#endif
-#include "afxres.rc"         // Standard components
-#endif
-/////////////////////////////////////////////////////////////////////////////
-#endif    // not APSTUDIO_INVOKED
-
diff --git a/samples/mfc/standard/08_HLR/res/LEFTVIEWD.bmp b/samples/mfc/standard/08_HLR/res/LEFTVIEWD.bmp
deleted file mode 100755 (executable)
index de18453..0000000
Binary files a/samples/mfc/standard/08_HLR/res/LEFTVIEWD.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/LEFTVIEWF.bmp b/samples/mfc/standard/08_HLR/res/LEFTVIEWF.bmp
deleted file mode 100755 (executable)
index 0ff0673..0000000
Binary files a/samples/mfc/standard/08_HLR/res/LEFTVIEWF.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/LEFTVIEWU.bmp b/samples/mfc/standard/08_HLR/res/LEFTVIEWU.bmp
deleted file mode 100755 (executable)
index 8edb9d7..0000000
Binary files a/samples/mfc/standard/08_HLR/res/LEFTVIEWU.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/RIGHTVIEWD.bmp b/samples/mfc/standard/08_HLR/res/RIGHTVIEWD.bmp
deleted file mode 100755 (executable)
index 72491de..0000000
Binary files a/samples/mfc/standard/08_HLR/res/RIGHTVIEWD.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/RIGHTVIEWF.bmp b/samples/mfc/standard/08_HLR/res/RIGHTVIEWF.bmp
deleted file mode 100755 (executable)
index 14b2876..0000000
Binary files a/samples/mfc/standard/08_HLR/res/RIGHTVIEWF.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/RIGHTVIEWU.bmp b/samples/mfc/standard/08_HLR/res/RIGHTVIEWU.bmp
deleted file mode 100755 (executable)
index 559e866..0000000
Binary files a/samples/mfc/standard/08_HLR/res/RIGHTVIEWU.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/ToolBarObjects.bmp b/samples/mfc/standard/08_HLR/res/ToolBarObjects.bmp
deleted file mode 100755 (executable)
index 7cc5fe8..0000000
Binary files a/samples/mfc/standard/08_HLR/res/ToolBarObjects.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/Toolbar.bmp b/samples/mfc/standard/08_HLR/res/Toolbar.bmp
deleted file mode 100755 (executable)
index 633f56c..0000000
Binary files a/samples/mfc/standard/08_HLR/res/Toolbar.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/axoviewd.bmp b/samples/mfc/standard/08_HLR/res/axoviewd.bmp
deleted file mode 100755 (executable)
index f8b478a..0000000
Binary files a/samples/mfc/standard/08_HLR/res/axoviewd.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/axoviewf.bmp b/samples/mfc/standard/08_HLR/res/axoviewf.bmp
deleted file mode 100755 (executable)
index c9146c4..0000000
Binary files a/samples/mfc/standard/08_HLR/res/axoviewf.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/dummyd.bmp b/samples/mfc/standard/08_HLR/res/dummyd.bmp
deleted file mode 100755 (executable)
index f92113c..0000000
Binary files a/samples/mfc/standard/08_HLR/res/dummyd.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/dummyf.bmp b/samples/mfc/standard/08_HLR/res/dummyf.bmp
deleted file mode 100755 (executable)
index 65e8f3f..0000000
Binary files a/samples/mfc/standard/08_HLR/res/dummyf.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/dummyu.bmp b/samples/mfc/standard/08_HLR/res/dummyu.bmp
deleted file mode 100755 (executable)
index f92113c..0000000
Binary files a/samples/mfc/standard/08_HLR/res/dummyu.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/resource.h b/samples/mfc/standard/08_HLR/res/resource.h
deleted file mode 100755 (executable)
index ed2c12f..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-//{{NO_DEPENDENCIES}}
-// Microsoft Visual C++ generated include file.
-// Used by HLR.rc
-//
-#define ID_MENU_CASCADE_PROPERTIES      150
-#define IDD_DIALOG_Font                 160
-#define IDD_DIALOG_Width                161
-#define IDD_DIALOG_Color                162
-#define IDD_DIALOG_NewColorCube         163
-#define IDD_DIALOG_NewColorRamp         164
-#define IDD_DIALOG_Type                 165
-#define IDD_DIALOG_Mark                 166
-#define IDD_SelectionDialog             170
-#define ID_BUTTON_Test_Shape            1049
-#define ID_WINDOW_NEW2D                 1150
-#define ID_WINDOW_NEW3D                 1151
-#define ID_OBJECT_DISPLAYALL            1201
-#define ID_Collector_Delete             1251
-#define IDC_ColorMap_STATIC_Type        1420
-#define IDC_ColorMap_STATIC_Size        1421
-#define IDC_ColorMap_TAB                1422
-#define IDC_ColorMap_STATIC_EntryColorGreen 1423
-#define IDC_ColorMap_STATIC_EntryColorRed 1424
-#define IDC_ColorMap_STATIC_EntryColorBlue 1425
-#define IDC_ColorMap_STATIC_EntryColorName 1426
-#define IDC_ColorMap_EDIT_NewEntryColorRed 1427
-#define IDC_ColorMap_EDIT_NewEntryColorGreen 1428
-#define IDC_ColorMap_EDIT_NewEntryColorBlue 1429
-#define IDC_ColorMap_COMBO_NewEntryColorName 1430
-#define IDC_ColorMap_BUTTON_NewEntry_EditColor 1431
-#define IDC_ColorMap_BUTTON_UpdateCurrentEntry 1432
-#define IDC_ColorMap_BUTTON_AddNewEntry 1433
-#define IDC_ColorMap_BUTTON_NewGenericColorMap 1434
-#define IDC_ColorMap_STATIC_NewEntryColorNameStatic 1435
-#define IDC_ColorMap_STATIC_NewEntryNotavailable 1436
-#define IDC_ColorMap_BUTTON_NewColorCubeColorMap 1437
-#define IDC_ColorMap_BUTTON_NewColorRampColorMap 1438
-#define IDC_NewColorMap_COMBO_NewEntryColorName 1439
-#define IDC_NewColorMapRamp_EDIT_ColorRed 1441
-#define IDC_NewColorMapRamp_EDIT_ColorGreen 1442
-#define IDC_NewColorMapRamp_EDIT_ColorBlue 1443
-#define IDC_NewColorMapRamp_BUTTON_EditColor 1444
-#define IDC_NewColorRamp_EDIT_base_pixel 1445
-#define IDC_NewColorramp_EDIT_dimension 1446
-#define IDC_NewColorCube_EDIT_bluemult  1447
-#define IDC_NewColorCube_EDIT_base_pixel 1448
-#define IDC_NewColorCube_EDIT_bluemax   1449
-#define IDC_NewColorCube_EDIT_grennmult 1450
-#define IDC_NewColorCube_EDIT_greenmax  1451
-#define IDC_NewColorCube_EDIT_redmax    1452
-#define IDC_NewColorCube_EDIT_redmult   1453
-#define IDC_WidthMap_STATIC_Size        1454
-#define IDC_WidthMap_TAB                1455
-#define IDC_WidthMap_STATIC_EntryType   1456
-#define IDC_WidthMap_STATIC_EntryWidth  1457
-#define IDC_WidthMap_COMBO_NewEntryType 1458
-#define IDC_WidthMap_EDIT_NewEntryWidth 1459
-#define IDC_WidthMap_BUTTON_AddNewEntry 1460
-#define IDC_WidthMap_BUTTON_UpdateCurrentEntry 1461
-#define IDC_FontMap_STATIC_Size         1462
-#define IDC_FontMap_TAB                 1463
-#define IDC_FontMap_STATIC_CurrentEntryValue 1464
-#define IDC_FontMap_STATIC_CurrentEntryType 1465
-#define IDC_FontMap_STATIC_CurrentEntrySize 1466
-#define IDC_FontMap_STATIC_CurrentEntrySlant 1467
-#define IDC_FontMap_BUTTON_NewEntry     1468
-#define IDC_FontMap_BUTTON_UpdateCurrent 1469
-#define IDC_FontMap_COMBO_NewEntryType  1470
-#define IDC_FontMap_EDIT_NewEntryValue  1471
-#define IDC_FontMap_EDIT_NewEntrySize   1472
-#define IDC_FontMap_EDIT_NewEntrySlant  1473
-#define IDC_FontMap_BUTTON_NewEntry_EditFont 1474
-#define IDC_TypeMap_STATIC_Size         1475
-#define IDC_TypeMap_TAB                 1476
-#define IDC_TypeMap_STATIC_CurrentEntryStyle 1477
-#define IDC_TypeMap_STATIC_CurrentEntryValue 1478
-#define IDC_TypeMap_COMBO_NewEntryStyle 1479
-#define IDC_TypeMap_EDIT_NewEntryValue  1480
-#define IDC_MarkMap_STATIC_Size         1481
-#define IDC_MarkMap_TAB                 1482
-#define IDC_MarkMap_STATIC_CurrentEntryXValue 1483
-#define IDC_MarkMap_STATIC_CurrentEntryStyle 1484
-#define IDC_MarkMap_STATIC_CurrentEntryYValue 1485
-#define IDC_MarkMap_STATIC_CurrentEntrySValue 1486
-#define IDC_MarkMap_STATIC_CurrentEntryValue 1487
-#define IDC_PolyAlgo                    1500
-#define IDC_Algo                        1501
-#define IDC_VsharpEdges                 1503
-#define IDC_HsharpEdges                 1504
-#define IDC_VsmoothEdges                1505
-#define IDC_VSewingEdges                1506
-#define IDC_VApparentContour            1507
-#define IDC_VIsoParametrics             1508
-#define IDC_DisplayDefault              1509
-#define IDC_BoxView                     1512
-#define IDC_HsmoothEdges                1513
-#define IDC_HSewingEdges                1514
-#define IDC_HApparentContour            1516
-#define IDC_HIsoParametrics             1517
-#define ID_GetShape                     1518
-#define IDC_EDIT_NBIsos                 1519
-#define IDC_STATIC_NbIsos               1520
-#define IDC_DrawHiddenLine              1521
-#define ID_Update2D                     1522
-#define IDC_HlrModeIsOn                 1523
-#define IDC_TopView                     1529
-#define IDC_HlrDlgView                  1530
-#define IDC_BottomView                  1531
-#define IDC_LeftView                    1532
-#define IDC_RightView                   1533
-#define IDC_BackView                    1534
-#define IDC_FrontView                   1535
-#define IDC_AxoView                     1536
-#define ID_BUTTON_HLRDialog             1537
-#define ID_FILE_HLR                     1539
-
-// Next default values for new objects
-// 
-#ifdef APSTUDIO_INVOKED
-#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_3D_CONTROLS                     1
-#define _APS_NEXT_RESOURCE_VALUE        173
-#define _APS_NEXT_COMMAND_VALUE         32797
-#define _APS_NEXT_CONTROL_VALUE         1538
-#define _APS_NEXT_SYMED_VALUE           170
-#endif
-#endif
diff --git a/samples/mfc/standard/08_HLR/res/topviewd.bmp b/samples/mfc/standard/08_HLR/res/topviewd.bmp
deleted file mode 100755 (executable)
index 391a326..0000000
Binary files a/samples/mfc/standard/08_HLR/res/topviewd.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/topviewf.bmp b/samples/mfc/standard/08_HLR/res/topviewf.bmp
deleted file mode 100755 (executable)
index 6142ec6..0000000
Binary files a/samples/mfc/standard/08_HLR/res/topviewf.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/res/topviewu.bmp b/samples/mfc/standard/08_HLR/res/topviewu.bmp
deleted file mode 100755 (executable)
index 6c21942..0000000
Binary files a/samples/mfc/standard/08_HLR/res/topviewu.bmp and /dev/null differ
diff --git a/samples/mfc/standard/08_HLR/src/HLRApp.cpp b/samples/mfc/standard/08_HLR/src/HLRApp.cpp
deleted file mode 100755 (executable)
index ab960a9..0000000
+++ /dev/null
@@ -1,164 +0,0 @@
-// HLRApp.cpp : Defines the class behaviors for the application.
-//
-
-#include "stdafx.h"
-
-#include "HLRApp.h"
-
-#include <OCC_MainFrame.h>
-#include <OCC_3dChildFrame.h>
-#include "HLRDoc.h"
-#include <OCC_2dChildFrame.h>
-#include "HLRView2D.h"
-#include <OCC_3dView.h>
-// End CasCade
-
-#ifdef _DEBUG
-// CasCade :
-//#define new DEBUG_NEW
-// End CasCade
-
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CHLRApp construction
-
-CHLRApp::CHLRApp() : OCC_App()
-{
-  SampleName = "HLR"; //for about dialog
-  SetSamplePath (L"..\\..\\08_HLR");
-}
-
-CHLRApp::~CHLRApp()
-{
-  delete pDocTemplateForView2d;
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// The one and only CHLRApp object
-
-CHLRApp theApp;
-
-/////////////////////////////////////////////////////////////////////////////
-// CHLRApp initialization
-
-BOOL CHLRApp::InitInstance()
-{
-  AfxEnableControlContainer();
-
-  // Standard initialization
-  // If you are not using these features and wish to reduce the size
-  //  of your final executable, you should remove from the following
-  //  the specific initialization routines you do not need.
-
-  // Change the registry key under which our settings are stored.
-  // You should modify this string to be something appropriate
-  // such as the name of your company or organization.
-  // Modified by CasCade :
-  SetRegistryKey(_T("Local CasCade Applications"));
-
-  LoadStdProfileSettings();  // Load standard INI file options (including MRU)
-
-  // Register the application's document templates.  Document templates
-  //  serve as the connection between documents, frame windows and views.
-
-  // CasCade :
-
-
-  pDocTemplateForView2d = new CMultiDocTemplate(
-    IDR_2DTYPE,
-    RUNTIME_CLASS(CHLRDoc),
-    RUNTIME_CLASS(OCC_2dChildFrame), // custom MDI child frame
-    RUNTIME_CLASS(CHLRView2D));
-
-// AddDocTemplate(pDocTemplateForView2d);
-
-// End CasCade
-  pDocTemplateForView3d  = new CMultiDocTemplate(
-    IDR_3DTYPE,
-    RUNTIME_CLASS(CHLRDoc),
-    RUNTIME_CLASS(OCC_3dChildFrame), // custom MDI child frame
-    RUNTIME_CLASS(OCC_3dView));
-
-  AddDocTemplate(pDocTemplateForView3d);
-
-
-  // create main MDI Frame window
-  OCC_MainFrame* pMainFrame = new OCC_MainFrame(with_AIS_TB);
-  if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
-    return FALSE;
-  m_pMainWnd = pMainFrame;
-
-  // Parse command line for standard shell commands, DDE, file open
-  CCommandLineInfo cmdInfo;
-  ParseCommandLine(cmdInfo);
-
-  // Dispatch commands specified on the command line
-  if (!ProcessShellCommand(cmdInfo))
-    return FALSE;
-
-  // The main window has been initialized, so show and update it.
-  pMainFrame->MDITile(MDITILE_VERTICAL);
-  pMainFrame->ShowWindow(m_nCmdShow);
-  pMainFrame->UpdateWindow();
-
-  return TRUE;
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CHLRApp commands
-
-//===================================================
-
-CFrameWnd*  CHLRApp::CreateView2D(CHLRDoc* pDoc )
-{
-  ASSERT_VALID(pDoc);
-  ASSERT_VALID(pDocTemplateForView2d);
-  CRuntimeClass * pViewClass = RUNTIME_CLASS(OCC_2dView);
-  ASSERT(pViewClass != (CRuntimeClass *)NULL );
-  // Create a new frame window
-  CFrameWnd* pNewFrame = pDocTemplateForView2d->CreateNewFrame(pDoc, NULL);
-  ASSERT_VALID(pDoc);
-  pDocTemplateForView2d->InitialUpdateFrame(pNewFrame, pDoc);
-  ASSERT_VALID(pDoc);
-return pNewFrame;
-}
-
-//===================================================
-CFrameWnd*  CHLRApp::CreateView3D(CHLRDoc* pDoc )
-{
-  ASSERT_VALID(pDoc);
-  ASSERT_VALID(pDocTemplateForView3d);
-  CRuntimeClass * pViewClass = RUNTIME_CLASS(OCC_3dView);
-  ASSERT(pViewClass != (CRuntimeClass *)NULL );
-  // Create a new frame window
-  CFrameWnd* pNewFrame = pDocTemplateForView3d->CreateNewFrame(pDoc, NULL);
-  pDocTemplateForView3d->InitialUpdateFrame(pNewFrame, pDoc);
-return pNewFrame;
-
-}
-
-
-BOOL CHLRApp::IsViewExisting(CDocument * pDoc, CRuntimeClass * pViewClass, CView * & pView)
-{
-  ASSERT_VALID(pDoc);
-  ASSERT(pViewClass != (CRuntimeClass *)NULL );
-
-  POSITION position = pDoc->GetFirstViewPosition();
-  while (position != (POSITION)NULL)
-  {
-    CView* pCurrentView = pDoc->GetNextView(position);
-    ASSERT_VALID(pCurrentView);
-    if (pCurrentView->IsKindOf(pViewClass))
-       {
-      pView = pCurrentView;
-         return TRUE;
-       }
-  }
-  return FALSE;
-}
-
-
-
diff --git a/samples/mfc/standard/08_HLR/src/HLRApp.h b/samples/mfc/standard/08_HLR/src/HLRApp.h
deleted file mode 100755 (executable)
index 2645611..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-// HLRApp.h : main header file for the HLR application
-//
-
-#if !defined(AFX_HLR_H__376C7004_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_)
-#define AFX_HLR_H__376C7004_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include <OCC_App.h>
-#include "HLRDoc.h"
-//#include "CutAndPasteSession.h"
-
-class CHLRApp : public OCC_App
-{
-public:
-  CHLRApp();
-  ~CHLRApp();
-  virtual BOOL InitInstance();
-
-  // =========================================
-  CFrameWnd*  CreateView2D(CHLRDoc* pDoc);
-  // =========================================
-  CFrameWnd*  CreateView3D(CHLRDoc* pDoc);
-  // =========================================
-
-private :
-  BOOL IsViewExisting(CDocument* pDoc,CRuntimeClass* pViewClass,CView*& pView);
-  CMultiDocTemplate* pDocTemplateForView3d;
-  CMultiDocTemplate* pDocTemplateForView2d;
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-#endif // !defined(AFX_HLR_H__376C7004_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/08_HLR/src/HLRDoc.cpp b/samples/mfc/standard/08_HLR/src/HLRDoc.cpp
deleted file mode 100755 (executable)
index ed37fcc..0000000
+++ /dev/null
@@ -1,205 +0,0 @@
-// HLRDoc.cpp : implementation of the CHLRDoc class
-//
-
-
-#include "stdafx.h"
-
-#include "HLRDoc.h"
-#include "HLRApp.h"
-#include <OCC_2dView.h>
-#include <OCC_3dView.h>
-
-
-#include <ImportExport/ImportExport.h>
-#include "AISDialogs.h"
-#include <AIS_ListOfInteractive.hxx>
-
-#ifdef _DEBUG
-//#define new DEBUG_NEW  // by cascade
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CHLRDoc
-
-IMPLEMENT_DYNCREATE(CHLRDoc, CDocument)
-
-
-BEGIN_MESSAGE_MAP(CHLRDoc, OCC_3dBaseDoc)
-  //{{AFX_MSG_MAP(CHLRDoc)
-  ON_COMMAND(ID_WINDOW_NEW3D, OnWindowNew3d)
-  ON_COMMAND(ID_WINDOW_NEW2D, OnWindowNew2d)
-  ON_COMMAND(ID_FILE_HLR, OnBUTTONHLRDialog)
-  ON_COMMAND(ID_FILE_IMPORT_BREP, OnFileImportBrep)
-  ON_COMMAND(ID_BUTTON_HLRDialog, OnBUTTONHLRDialog)
-  ON_COMMAND(ID_OBJECT_ERASE, OnObjectErase)
-  //}}AFX_MSG_MAP
-
-
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CHLRDoc construction/destruction
-
-CHLRDoc::CHLRDoc()
-{
-  // TODO: add one-time construction code here
-  Handle(Graphic3d_GraphicDriver) theGraphicDriver = 
-    ((CHLRApp*)AfxGetApp())->GetGraphicDriver();
-
-  // VIEWER 3D
-  myViewer = new V3d_Viewer (theGraphicDriver);
-  myViewer->SetDefaultLights();
-  myViewer->SetLightOn();
-
-  myAISContext =new AIS_InteractiveContext (myViewer);
-
-  // 2D VIEWER: exploit V3d viewer for 2D visualization
-  my2DViewer = new V3d_Viewer (theGraphicDriver);
-  my2DViewer->SetCircularGridValues (0, 0, 10, 8, 0);
-  my2DViewer->SetRectangularGridValues (0, 0, 10, 10, 0);
-
-  //Set projection mode for 2D visualization
-  my2DViewer->SetDefaultViewProj (V3d_Zpos);
-
-  myInteractiveContext2D = new AIS_InteractiveContext (my2DViewer);
-
-  CFrameWnd* pFrame2d = ((CHLRApp*)AfxGetApp())->CreateView2D (this);
-  pFrame2d->ShowWindow (SW_SHOWNORMAL);
-  myCSelectionDialogIsCreated = false;
-}
-
-CHLRDoc::~CHLRDoc()
-{
-  if (myCSelectionDialogIsCreated)
-  {
-    myCSelectionDialog->ShowWindow(SW_ERASE);
-    delete myCSelectionDialog;
-  }
-}
-
-void CHLRDoc::OnWindowNew2d()
-{
-  ((CHLRApp*)AfxGetApp())->CreateView2D(this);
-}
-
-void CHLRDoc::OnWindowNew3d()
-{
-  ((CHLRApp*)AfxGetApp())->CreateView3D(this);
-}
-
-//  nCmdShow could be :    ( default is SW_RESTORE )
-// SW_HIDE   SW_SHOWNORMAL   SW_NORMAL   
-// SW_SHOWMINIMIZED     SW_SHOWMAXIMIZED    
-// SW_MAXIMIZE          SW_SHOWNOACTIVATE   
-// SW_SHOW              SW_MINIMIZE         
-// SW_SHOWMINNOACTIVE   SW_SHOWNA           
-// SW_RESTORE           SW_SHOWDEFAULT      
-// SW_MAX    
-
-// use pViewClass = RUNTIME_CLASS( CHLRView3D ) for 3D Views
-// use pViewClass = RUNTIME_CLASS( CHLRView2D ) for 2D Views
-
-void CHLRDoc::ActivateFrame(CRuntimeClass* pViewClass,int nCmdShow)
-{
-  POSITION position = GetFirstViewPosition();
-  while (position != (POSITION)NULL)
-  {
-    CView* pCurrentView = (CView*)GetNextView(position);
-    if(pCurrentView->IsKindOf(pViewClass) )
-    {
-      ASSERT_VALID(pCurrentView);
-      CFrameWnd* pParentFrm = pCurrentView->GetParentFrame();
-      ASSERT(pParentFrm != (CFrameWnd *)NULL);
-      // simply make the frame window visible
-      pParentFrm->ActivateFrame(nCmdShow);
-    }
-  }
-}
-
-void CHLRDoc::FitAll2DViews(Standard_Boolean UpdateViewer)
-{
-  if (UpdateViewer)   my2DViewer->Update();
-  POSITION position = GetFirstViewPosition();
-  while (position != (POSITION)NULL)
-  {
-    CView* pCurrentView = (CView*)GetNextView(position);
-    if(pCurrentView->IsKindOf(RUNTIME_CLASS(OCC_2dView)) )
-    {
-      ASSERT_VALID(pCurrentView);
-      ((OCC_2dView*)pCurrentView)->FitAll();
-    }
-  }
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CHLRDoc diagnostics
-
-#ifdef _DEBUG
-void CHLRDoc::AssertValid() const
-{
-  CDocument::AssertValid();
-}
-
-void CHLRDoc::Dump(CDumpContext& dc) const
-{
-  CDocument::Dump(dc);
-}
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// CHLRDoc commands
-void CHLRDoc::OnBUTTONHLRDialog()
-{
-  if (!myCSelectionDialogIsCreated)
-  {
-    myCSelectionDialog = new CSelectionDialog(this,AfxGetMainWnd());
-    myCSelectionDialog->Create(CSelectionDialog::IDD, AfxGetMainWnd());
-    myCSelectionDialogIsCreated = true;
-  }
-  myCSelectionDialog->ShowWindow(SW_RESTORE);
-  myCSelectionDialog->UpdateWindow();
-}
-
-void CHLRDoc::OnFileImportBrep() 
-{   CImportExport::ReadBREP(myAISContext);
-       Fit();
-}
-void CHLRDoc::Fit()
-{
-  POSITION position = GetFirstViewPosition();
-  while (position != (POSITION)NULL)
-  {
-    CView* pCurrentView = (CView*)GetNextView(position);
-    if(pCurrentView->IsKindOf(RUNTIME_CLASS(OCC_3dView)) )
-    {
-      ((OCC_3dView *) pCurrentView)->FitAll();
-    }
-  }
-}
-
-void CHLRDoc::OnObjectErase()
-{
-  Standard_Boolean toUpdateDisplayable = Standard_False;
-  myAISContext->InitSelected();
-  while (myAISContext->MoreSelected())
-  {
-    if (myAISContext->SelectedInteractive()->Type() == AIS_KOI_Shape && myCSelectionDialogIsCreated)
-    {
-      myCSelectionDialog->DiplayableShape()->Remove (Handle(AIS_Shape)::DownCast (myAISContext->SelectedInteractive())->Shape());
-      toUpdateDisplayable = Standard_True;
-    }
-
-    myAISContext->Erase (myAISContext->SelectedInteractive(), Standard_True);
-    myAISContext->InitSelected();
-  }
-
-  myAISContext->ClearSelected (Standard_True);
-
-  if (toUpdateDisplayable)
-  {
-    // Update view in the HLR dialog if list of displayable shapes has been changed.
-    myCSelectionDialog->UpdateViews();
-  }
-}
diff --git a/samples/mfc/standard/08_HLR/src/HLRDoc.h b/samples/mfc/standard/08_HLR/src/HLRDoc.h
deleted file mode 100755 (executable)
index ff8382f..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-// HLRDoc.h : interface of the CHLRDoc class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_HLRDOC_H__376C700E_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_)
-#define AFX_HLRDOC_H__376C700E_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include "SelectionDialog.h"
-#include <OCC_3dDoc.h>
-
-class CHLRDoc : public OCC_3dBaseDoc
-{
-public:
-
-protected: // create from serialization only
-  CHLRDoc();
-  DECLARE_DYNCREATE(CHLRDoc)
-  // Attributes
-public:
-
-  // Implementation
-public:
-  virtual ~CHLRDoc();
-  void Fit();
-#ifdef _DEBUG
-  virtual void AssertValid() const;
-  virtual void Dump(CDumpContext& dc) const;
-#endif
-protected:
-
-  // Generated message map functions
-protected:
-  //{{AFX_MSG(CHLRDoc)
-  afx_msg void OnWindowNew3d();
-  afx_msg void OnWindowNew2d();
-  afx_msg void OnFileImportBrep();
-  afx_msg void OnBUTTONHLRDialog();
-  afx_msg void OnObjectErase();
-  //}}AFX_MSG
-  DECLARE_MESSAGE_MAP()
-
-public :
-  void ActivateFrame(CRuntimeClass* pViewClass, int nCmdShow = SW_RESTORE  );
-
-private:
-  Handle(V3d_Viewer) my2DViewer;
-  Handle(AIS_InteractiveContext) myInteractiveContext2D;
-public :
-  Handle(V3d_Viewer) GetViewer2D()  { return my2DViewer; };
-  Handle(AIS_InteractiveContext)& GetInteractiveContext2D(){ return myInteractiveContext2D; };
-  void FitAll2DViews(Standard_Boolean UpdateViewer=Standard_False);
-
-public :
-  CSelectionDialog* myCSelectionDialog;
-  bool myCSelectionDialogIsCreated;
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_HLRDOC_H__376C700E_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/08_HLR/src/HLRView2D.cpp b/samples/mfc/standard/08_HLR/src/HLRView2D.cpp
deleted file mode 100755 (executable)
index 04af953..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-// HLRView.cpp : implementation of the CHLRView2D class
-//
-
-#include "stdafx.h"
-#include "HLRView2D.h"
-#include "HLRApp.h"
-#include "HLRDoc.h"
-#include "resource2d\RectangularGrid.h"
-#include "resource2d\CircularGrid.h"
-
-#ifdef _DEBUG
-//#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CHLRView2D
-
-IMPLEMENT_DYNCREATE(CHLRView2D, OCC_2dView)
-
-BEGIN_MESSAGE_MAP(CHLRView2D, OCC_2dView)
-  //{{AFX_MSG_MAP(CHLRView2D)
-  //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CHLRView2D construction/destruction
-
-CHLRView2D::CHLRView2D()
-{
-  /// TODO
-  /// Override MouseMove event to exclude rectangle selection emulation as
-  /// no selection is supported in DragEvent2D for this view.
-}
-
-CHLRView2D::~CHLRView2D()
-{
-}
-
-const Handle(AIS_InteractiveContext)& CHLRView2D::GetAISContext() const
-{
-  return ((CHLRDoc*)m_pDocument)->GetInteractiveContext2D();
-}
-
-CHLRDoc* CHLRView2D::GetDocument() // non-debug version is inline
-{
-  //ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(OCC_2dDoc)));
-  return (CHLRDoc*)m_pDocument;
-}
-
-#ifdef _DEBUG
-void CHLRView2D::AssertValid() const
-{
-  OCC_2dView::AssertValid();
-}
-
-void CHLRView2D::Dump(CDumpContext& dc) const
-{
-  OCC_2dView::Dump(dc);
-}
-
-#endif
\ No newline at end of file
diff --git a/samples/mfc/standard/08_HLR/src/HLRView2D.h b/samples/mfc/standard/08_HLR/src/HLRView2D.h
deleted file mode 100755 (executable)
index 83e1e76..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-// HLRView.h : interface of the CHLRView2D class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_HLRVIEW2D_H__376C7013_0B3D_11D2_8E0A_0800369C8A03_2D_INCLUDED_)
-#define AFX_HLRVIEW2D_H__376C7013_0B3D_11D2_8E0A_0800369C8A03_2D_INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include "HLRDoc.h"
-#include <OCC_2dView.h>
-#include "Resource2d/RectangularGrid.h"
-#include "Resource2d/CircularGrid.h"
-
-
-class CHLRView2D : public OCC_2dView
-{
-protected: // create from serialization only
-  CHLRView2D();
-  DECLARE_DYNCREATE(CHLRView2D)
-  DECLARE_MESSAGE_MAP()
-
-  //! Return interactive context for HLR presentations.
-  virtual const Handle(AIS_InteractiveContext)& GetAISContext() const Standard_OVERRIDE;
-
-// Implementation
-public:
-  virtual ~CHLRView2D();
-  CHLRDoc* GetDocument();
-#ifdef _DEBUG
-  virtual void AssertValid() const;
-  virtual void Dump(CDumpContext& dc) const;
-#endif
-};
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_HLRVIEW2D_H__376C7013_0B3D_11D2_8E0A_0800369C8A03_2D_INCLUDED_)
diff --git a/samples/mfc/standard/08_HLR/src/HLRView3D.cpp b/samples/mfc/standard/08_HLR/src/HLRView3D.cpp
deleted file mode 100755 (executable)
index 3e34922..0000000
+++ /dev/null
@@ -1,399 +0,0 @@
-// HLRView.cpp : implementation of the CHLRView3D3D class
-//
-
-#include "stdafx.h"
-#include "HLRApp.h"
-
-#include "HLRDoc.h"
-#include "HLRView3D.h"
-#include "..\..\Common\res\OCC_Resource.h"
-
-#ifdef _DEBUG
-//#define new DEBUG_NEW by CasCade
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-// for elastic bean selection
-#define ValZWMin 1
-
-// the key for multi selection :
-#define MULTISELECTIONKEY MK_SHIFT
-
-// the key for shortcut ( use to activate dynamic rotation, panning )
-#define CASCADESHORTCUTKEY MK_CONTROL
-
-// define in witch case you want to display the popup
-#define POPUPONBUTTONDOWN
-
-/////////////////////////////////////////////////////////////////////////////
-// CHLRView3D
-
-IMPLEMENT_DYNCREATE(CHLRView3D, OCC_3dView)
-
-BEGIN_MESSAGE_MAP(CHLRView3D, OCC_3dView)
-       //{{AFX_MSG_MAP(CHLRView3D)
-               // NOTE - the ClassWizard will add and remove mapping macros here.
-               //    DO NOT EDIT what you see in these blocks of generated code!
-       //}}AFX_MSG_MAP
-// CasCade
-       ON_WM_LBUTTONDOWN()
-       ON_WM_LBUTTONUP()
-       ON_WM_MOUSEMOVE()
-       ON_WM_RBUTTONDOWN()
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CHLRView3D construction/destruction
-
-CHLRView3D::CHLRView3D()
-{
-}
-
-CHLRView3D::~CHLRView3D()
-{
-}
-
-void CHLRView3D::OnInitialUpdate() 
-{
-
-       // TODO: Add your specialized code here and/or call the base class
-           // TODO: Add your specialized code here and/or call the base class
-    myView = GetDocument()->GetViewer()->CreateView();
-
-    // store for restore state after rotation (witch is in Degenerated mode)
-    myDegenerateModeIsOn = myView->DegenerateModeIsOn();
-
-       Handle(Graphic3d_WNTGraphicDevice) theGraphicDevice = 
-               ((CHLRApp*)AfxGetApp())->GetGraphicDevice();
-    
-    Handle(WNT_Window) aWNTWindow = new WNT_Window(theGraphicDevice,GetSafeHwnd ());
-    myView->SetWindow(aWNTWindow);
-    if (!aWNTWindow->IsMapped()) aWNTWindow->Map();
-
-       Standard_Integer w=100 , h=100 ;   /* Debug Matrox                         */
-       aWNTWindow->Size (w,h) ;           /* Keeps me unsatisfied (rlb).....      */
-                                          /* Resize is not supposed to be done on */
-                                          /* Matrox                               */
-                                          /* I suspect another problem elsewhere  */
-       ::PostMessage ( GetSafeHwnd () , WM_SIZE , SIZE_RESTORED , w + h*65536 ) ;
-
-    // store the mode ( nothing , dynamic zooming, dynamic ... )
-    myCurrentMode = CurAction3d_Nothing;
-
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CHLRView3D diagnostics
-
-#ifdef _DEBUG
-void CHLRView3D::AssertValid() const
-{
-       CView::AssertValid();
-}
-
-void CHLRView3D::Dump(CDumpContext& dc) const
-{
-       CView::Dump(dc);
-}
-
-CHLRDoc* CHLRView3D::GetDocument() // non-debug version is inline
-{
-       ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CHLRDoc)));
-       return (CHLRDoc*)m_pDocument;
-}
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// CHLRView3D message handlers
-
-
-void CHLRView3D::OnLButtonDown(UINT nFlags, CPoint point) 
-{
-  //  save the current mouse coordinate in min 
-  myXmin=point.x;  myYmin=point.y;
-  myXmax=point.x;  myYmax=point.y;
-
-  if ( nFlags & CASCADESHORTCUTKEY ) 
-         {
-           // Button MB1 down Control :start zomming 
-        // SetCursor(AfxGetApp()->LoadStandardCursor());
-         }
-       else // if ( Ctrl )
-         {
-        switch (myCurrentMode)
-        {
-         case CurAction3d_Nothing : // start a drag
-           if (nFlags & MULTISELECTIONKEY)
-                          MultiDragEvent(myXmax,myYmax,-1);
-           else
-               DragEvent(myXmax,myYmax,-1);
-        break;
-         break;
-         case CurAction3d_DynamicZooming : // noting
-         break;
-         case CurAction3d_WindowZooming : // noting
-         break;
-         case CurAction3d_DynamicPanning :// noting
-         break;
-         case CurAction3d_GlobalPanning :// noting
-        break;
-        case  CurAction3d_DynamicRotation :
-                       if (!myDegenerateModeIsOn)
-                         myView->SetDegenerateModeOn();
-                       myView->StartRotation(point.x,point.y);  
-        break;
-        default :
-           throw Standard_Failure(" incompatible Current Mode ");
-        break;
-        }
-    }
-}
-
-void CHLRView3D::OnLButtonUp(UINT nFlags, CPoint point) 
-{
-   if ( nFlags & CASCADESHORTCUTKEY ) 
-         {
-        return;
-         }
-       else // if ( Ctrl )
-         {
-        switch (myCurrentMode)
-        {
-         case CurAction3d_Nothing :
-         if (point.x == myXmin && point.y == myYmin)
-         { // no offset between down and up --> selectEvent
-            myXmax=point.x;  
-            myYmax=point.y;
-            if (nFlags & MULTISELECTIONKEY )
-              MultiInputEvent(point.x,point.y);
-            else
-              InputEvent     (point.x,point.y);
-         } else
-         {
-            myXmax=point.x;            myYmax=point.y;
-            DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_False);
-                   if (nFlags & MULTISELECTIONKEY)
-                               MultiDragEvent(point.x,point.y,1);
-                       else
-                               DragEvent(point.x,point.y,1);
-         }
-         break;
-         case CurAction3d_DynamicZooming :
-             // SetCursor(AfxGetApp()->LoadStandardCursor());         
-              myCurrentMode = CurAction3d_Nothing;
-         break;
-         case CurAction3d_WindowZooming :
-           myXmax=point.x;          myYmax=point.y;
-            DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_False,LongDash);
-              if ((abs(myXmin-myXmax)>ValZWMin) || (abs(myYmin-myYmax)>ValZWMin))
-                                        // Test if the zoom window is greater than a minimale window.
-                       {
-                         // Do the zoom window between Pmin and Pmax
-                         myView->WindowFitAll(myXmin,myYmin,myXmax,myYmax);  
-                       }  
-              myCurrentMode = CurAction3d_Nothing;
-         break;
-         case CurAction3d_DynamicPanning :
-           myCurrentMode = CurAction3d_Nothing;
-         break;
-         case CurAction3d_GlobalPanning :
-              myView->Place(point.x,point.y,myCurZoom); 
-              myCurrentMode = CurAction3d_Nothing;
-        break;
-        case  CurAction3d_DynamicRotation :
-              myCurrentMode = CurAction3d_Nothing;
-        break;
-        default :
-           throw Standard_Failure(" incompatible Current Mode ");
-        break;
-        } //switch (myCurrentMode)
-    } //       else // if ( Ctrl )
-}
-
-void CHLRView3D::OnRButtonDown(UINT nFlags, CPoint point) 
-{
-   if ( nFlags & CASCADESHORTCUTKEY ) 
-         {
-           if (!myDegenerateModeIsOn)
-             myView->SetDegenerateModeOn();
-           myView->StartRotation(point.x,point.y);  
-         }
-       else // if ( CASCADESHORTCUTKEY )
-         {
-#ifdef POPUPONBUTTONDOWN
-           GetDocument()->Popup(point.x,point.y, myView);
-#endif 
-      }        
-}
-
-void CHLRView3D::OnMouseMove(UINT nFlags, CPoint point) 
-{
-    //   ============================  LEFT BUTTON =======================
-  if ( nFlags & MK_LBUTTON)
-    {
-     if ( nFlags & CASCADESHORTCUTKEY ) 
-         {
-           // move with MB1 and Control : on the dynamic zooming  
-           // Do the zoom in function of mouse's coordinates  
-           myView->Zoom(myXmax,myYmax,point.x,point.y); 
-           // save the current mouse coordinate in min 
-               myXmax = point.x; 
-        myYmax = point.y;      
-         }
-         else // if ( Ctrl )
-         {
-        switch (myCurrentMode)
-        {
-         case CurAction3d_Nothing :
-            DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_False);
-                  myXmax = point.x; 
-           myYmax = point.y;
-           if (nFlags & MULTISELECTIONKEY)             
-                    MultiDragEvent(myXmax,myYmax,0);
-           else
-             DragEvent(myXmax,myYmax,0);
-            DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_True);
-          break;
-         case CurAction3d_DynamicZooming :
-              myView->Zoom(myXmax,myYmax,point.x,point.y); 
-              // save the current mouse coordinate in min \n";
-              myXmax=point.x;  myYmax=point.y;
-         break;
-         case CurAction3d_WindowZooming :
-                  myXmax = point.x; myYmax = point.y;  
-            DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_False,LongDash);
-            DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_True,LongDash);
-         break;
-         case CurAction3d_DynamicPanning :
-                  myView->Pan(point.x-myXmax,myYmax-point.y); // Realize the panning
-                  myXmax = point.x; myYmax = point.y;  
-         break;
-         case CurAction3d_GlobalPanning : // nothing           
-        break;
-        case  CurAction3d_DynamicRotation :
-          myView->Rotation(point.x,point.y);
-             myView->Redraw();
-        break;
-        default :
-           throw Standard_Failure(" incompatible Current Mode ");
-        break;
-        }//  switch (myCurrentMode)
-      }// if ( nFlags & CASCADESHORTCUTKEY )  else 
-    } else //   if ( nFlags & MK_LBUTTON) 
-    //   ============================  MIDDLE BUTTON =======================
-    if ( nFlags & MK_MBUTTON)
-    {
-     if ( nFlags & CASCADESHORTCUTKEY ) 
-         {
-               myView->Pan(point.x-myXmax,myYmax-point.y); // Realize the panning
-               myXmax = point.x; myYmax = point.y;     
-
-         }
-    } else //  if ( nFlags & MK_MBUTTON)
-    //   ============================  RIGHT BUTTON =======================
-    if ( nFlags & MK_RBUTTON)
-    {
-     if ( nFlags & CASCADESHORTCUTKEY ) 
-         {
-        myView->Rotation(point.x,point.y);
-         }
-    }else //if ( nFlags & MK_RBUTTON)
-    //   ============================  NO BUTTON =======================
-    {  // No buttons 
-         myXmax = point.x; myYmax = point.y;   
-         if (nFlags & MULTISELECTIONKEY)
-               MultiMoveEvent(point.x,point.y);
-         else
-               MoveEvent(point.x,point.y);
-   }
-}
-
-void CHLRView3D::DragEvent(const Standard_Integer  x        ,
-                                                 const Standard_Integer  y        ,
-                                                 const Standard_Integer  TheState )
-{
-
-    // TheState == -1  button down
-       // TheState ==  0  move
-       // TheState ==  1  button up
-
-    static Standard_Integer theButtonDownX=0;
-    static Standard_Integer theButtonDownY=0;
-
-       if (TheState == -1)
-    {
-      theButtonDownX=x;
-      theButtonDownY=y;
-    }
-
-  if (TheState == 0)
-  {
-    GetDocument()->GetAISContext()->SelectRectangle (Graphic3d_Vec2i (theButtonDownX,theButtonDownY),
-                                                     Graphic3d_Vec2i (x,y),
-                                                     myView);
-  }
-}
-
-//-----------------------------------------------------------------------------------------
-//
-//-----------------------------------------------------------------------------------------
-void CHLRView3D::InputEvent(const Standard_Integer  x     ,
-                                                  const Standard_Integer  y     ) 
-{
-  GetDocument()->GetAISContext()->SelectDetected();
-}
-
-//-----------------------------------------------------------------------------------------
-//
-//-----------------------------------------------------------------------------------------
-void CHLRView3D::MoveEvent(const Standard_Integer  x       ,
-                                  const Standard_Integer  y       ) 
-{
-      GetDocument()->GetAISContext()->MoveTo(x,y,myView);
-}
-
-//-----------------------------------------------------------------------------------------
-//
-//-----------------------------------------------------------------------------------------
-void CHLRView3D::MultiMoveEvent(const Standard_Integer  x       ,
-                                  const Standard_Integer  y       ) 
-{
-      GetDocument()->GetAISContext()->MoveTo(x,y,myView);
-}
-
-//-----------------------------------------------------------------------------------------
-//
-//-----------------------------------------------------------------------------------------
-void CHLRView3D::MultiDragEvent(const Standard_Integer  x        ,
-                                                                          const Standard_Integer  y        ,
-                                                                          const Standard_Integer  TheState ) 
-{
-    static Standard_Integer theButtonDownX=0;
-    static Standard_Integer theButtonDownY=0;
-
-       if (TheState == -1)
-    {
-      theButtonDownX=x;
-      theButtonDownY=y;
-    }
-
-  if (TheState == 0)
-  {
-    GetDocument()->GetAISContext()->SelectRectangle (Graphic3d_Vec2i (theButtonDownX,theButtonDownY),
-                                                     Graphic3d_Vec2i (x,y),
-                                                     myView,
-                                                     AIS_SelectionScheme_XOR);
-  }
-}
-
-
-//-----------------------------------------------------------------------------------------
-//
-//-----------------------------------------------------------------------------------------
-void CHLRView3D::MultiInputEvent(const Standard_Integer  x       ,
-                                                                           const Standard_Integer  y       ) 
-{
-  GetDocument()->GetAISContext()->SelectDetected (AIS_SelectionScheme_XOR);
-}
-
diff --git a/samples/mfc/standard/08_HLR/src/HLRView3D.h b/samples/mfc/standard/08_HLR/src/HLRView3D.h
deleted file mode 100755 (executable)
index a115e84..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-// HLRView.h : interface of the CHLRView3D class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_HLRVIEW3D_H__376C7010_0B3D_11D2_8E0A_0800369C8A03_3D_INCLUDED_)
-#define AFX_HLRVIEW3D_H__376C7010_0B3D_11D2_8E0A_0800369C8A03_3D_INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include <OCC_3dView.h>
-
-class CHLRView3D : public OCC_3dView
-{
-protected: // create from serialization only
-       CHLRView3D();
-       DECLARE_DYNCREATE(CHLRView3D)
-
-// Attributes
-public:
-       CHLRDoc* GetDocument();
-
-// Operations
-public:
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(CHLRView3D)
-       public:
-       virtual void OnInitialUpdate(); // CasCade
-       //}}AFX_VIRTUAL
-
-// Implementation
-public:
-       virtual ~CHLRView3D();
-#ifdef _DEBUG
-       virtual void AssertValid() const;
-       virtual void Dump(CDumpContext& dc) const;
-#endif
-
-protected:
-
-// Generated message map functions
-protected:
-       //{{AFX_MSG(CHLRView3D)
-               // NOTE - the ClassWizard will add and remove member functions here.
-               //    DO NOT EDIT what you see in these blocks of generated code !
-// CasCade :
-       afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
-       afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
-       afx_msg void OnMouseMove(UINT nFlags, CPoint point);
-       afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-
-       void DragEvent      (const Standard_Integer  x       ,
-                                    const Standard_Integer  y       ,
-                                    const Standard_Integer  TheState);
-    void InputEvent     (const Standard_Integer  x       ,
-                                    const Standard_Integer  y       );  
-    void MoveEvent      (const Standard_Integer  x       ,
-                         const Standard_Integer  y       ); 
-    void MultiMoveEvent (const Standard_Integer  x       ,
-                         const Standard_Integer  y       ); 
-    void MultiDragEvent (const Standard_Integer  x       ,
-                                        const Standard_Integer  y       ,
-                                        const Standard_Integer  TheState); 
-    void MultiInputEvent(const Standard_Integer  x       ,
-                                        const Standard_Integer  y       ); 
-
-
-};
-
-#ifndef _DEBUG  // debug version in HLRView.cpp
-inline CHLRDoc* CHLRView3D::GetDocument()
-   { return (CHLRDoc*)m_pDocument; }
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_HLRVIEW3D_H__376C7010_0B3D_11D2_8E0A_0800369C8A03_3D_INCLUDED_)
diff --git a/samples/mfc/standard/08_HLR/src/SelectionDialog.cpp b/samples/mfc/standard/08_HLR/src/SelectionDialog.cpp
deleted file mode 100644 (file)
index d7a44fc..0000000
+++ /dev/null
@@ -1,562 +0,0 @@
-// SelectionDialog.cpp : implementation file
-//
-
-#include "stdafx.h"
-
-#include "SelectionDialog.h"
-
-#include "HLRApp.h"
-#include "OCC_2dView.h"
-#include <ISession2D/ISession2D_Shape.h>
-
-#ifdef _DEBUG
-//#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-// the key for shortcut ( use to activate dynamic rotation, panning )
-#define CASCADESHORTCUTKEY MK_CONTROL
-
-/////////////////////////////////////////////////////////////////////////////
-// CSelectionDialog dialog
-
-CSelectionDialog::CSelectionDialog (CHLRDoc* aDoc,CWnd* pParent /*=NULL*/)
-: CDialog(CSelectionDialog::IDD, pParent)
-{
-  myDoc =  aDoc;
-  myIsDisplayed = false;
-  //{{AFX_DATA_INIT(CSelectionDialog)
-  m_Algo        = 1;
-  m_DisplayMode = 0;
-  m_NbIsos      = 2;
-  m_DrawHiddenLine = TRUE;
-  m_HlrModeIsOn = TRUE;
-  //}}AFX_DATA_INIT
-}
-
-void CSelectionDialog::DoDataExchange (CDataExchange* pDX)
-{
-  CDialog::DoDataExchange(pDX);
-  //{{AFX_DATA_MAP(CSelectionDialog)
-  DDX_Radio(pDX, IDC_PolyAlgo, m_Algo);
-  DDX_Radio(pDX, IDC_DisplayDefault, m_DisplayMode);
-  DDX_Text(pDX, IDC_EDIT_NBIsos, m_NbIsos);
-  DDX_Check(pDX, IDC_DrawHiddenLine, m_DrawHiddenLine);
-  DDX_Check(pDX, IDC_HlrModeIsOn, m_HlrModeIsOn);
-  //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(CSelectionDialog, CDialog)
-  //{{AFX_MSG_MAP(CSelectionDialog)
-  ON_BN_CLICKED(ID_GetShape, OnGetSelectedShapes)
-  ON_BN_CLICKED(IDC_DisplayDefault, OnDisplayDefault)
-  ON_BN_CLICKED(IDC_VIsoParametrics, OnVIsoParametrics)
-  ON_BN_CLICKED(IDC_VApparentContour, OnVApparentContour)
-  ON_BN_CLICKED(IDC_VSewingEdges, OnVSewingEdges)
-  ON_BN_CLICKED(IDC_VsharpEdges, OnVsharpEdges)
-  ON_BN_CLICKED(IDC_VsmoothEdges, OnVsmoothEdges)
-  ON_BN_CLICKED(IDC_HsharpEdges, OnHsharpEdges)
-  ON_BN_CLICKED(IDC_HsmoothEdges, OnHsmoothEdges)
-  ON_BN_CLICKED(IDC_HSewingEdges, OnHSewingEdges)
-  ON_BN_CLICKED(IDC_HIsoParametrics, OnHIsoParametrics)
-  ON_BN_CLICKED(IDC_HApparentContour, OnHApparentContour)
-  ON_EN_CHANGE(IDC_EDIT_NBIsos, OnChangeEDITNBIsos)
-  ON_BN_CLICKED(IDC_Algo, OnAlgo)
-  ON_BN_CLICKED(IDC_PolyAlgo, OnPolyAlgo)
-  ON_BN_CLICKED(ID_Update2D, OnUpdate2D)
-  ON_BN_CLICKED(IDC_TopView, OnTopView)
-  ON_BN_CLICKED(IDC_BottomView, OnBottomView)
-  ON_BN_CLICKED(IDC_LeftView, OnLeftView)
-  ON_BN_CLICKED(IDC_RightView, OnRightView)
-  ON_BN_CLICKED(IDC_FrontView, OnFrontView)
-  ON_BN_CLICKED(IDC_BackView, OnBackView)
-  ON_BN_CLICKED(IDC_AxoView, OnAxoView)
-  ON_WM_LBUTTONDOWN()
-  ON_WM_LBUTTONUP()
-  ON_WM_RBUTTONDOWN()
-  ON_WM_RBUTTONUP()
-  ON_WM_MOUSEMOVE()
-  ON_BN_CLICKED(IDC_DrawHiddenLine, OnDrawHiddenLine)
-  ON_BN_CLICKED(IDC_HlrModeIsOn, OnHlrMode)
-  ON_WM_DRAWITEM()
-  ON_WM_PAINT()
-  //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CSelectionDialog message handlers
-
-BOOL CSelectionDialog::OnInitDialog()
-{
-  CDialog::OnInitDialog();
-
-  VERIFY(TopView.AutoLoad (IDC_TopView, this));
-  VERIFY(BottomView.AutoLoad (IDC_BottomView, this)) ;
-  VERIFY(LeftView  .AutoLoad (IDC_LeftView  , this)) ;
-  VERIFY(RightView .AutoLoad (IDC_RightView , this)) ;
-  VERIFY(FrontView .AutoLoad (IDC_FrontView , this)) ;
-  VERIFY(BackView  .AutoLoad (IDC_BackView  , this)) ;
-  VERIFY(AxoView   .AutoLoad (IDC_AxoView   , this)) ;
-
-  // get the View Window position to managed mouse move
-  CRect BoxRect,ViewRect;
-  GetWindowRect (BoxRect);
-  CWnd * TheViewerWindow = GetDlgItem (IDC_HlrDlgView);
-  TheViewerWindow->GetWindowRect (ViewRect);
-  myPosMinX = ViewRect.TopLeft().x - BoxRect.TopLeft().x;
-  myPosMaxX = ViewRect.Width() + myPosMinX;
-  myPosMinY = ViewRect.TopLeft().y - BoxRect.TopLeft().y;
-  myPosMaxY = myPosMinY + ViewRect.Height();
-
-  ShowHideButton (Standard_False);
-  OnDisplay (true);
-
-  // return TRUE unless you set the focus to a control
-  // EXCEPTION: OCX Property Pages should return FALSE
-  return TRUE;
-}
-
-void CSelectionDialog::OnDisplay (bool isFit)
-{
-  // GetDlgItem(IDC_HlrDlgView)->SetRedraw() wrapping of this method makes view blinking,
-  // but displaying of big models may be faster.
-  //GetDlgItem(IDC_HlrDlgView)->SetRedraw(true);
-  if (!myIsDisplayed)
-  {
-    Handle(Graphic3d_GraphicDriver) aGraphicDriver =
-      ((CHLRApp*)AfxGetApp())->GetGraphicDriver();
-
-    myActiveViewer = new V3d_Viewer (aGraphicDriver);
-    myActiveViewer->SetDefaultLights();
-    myActiveViewer->SetLightOn();
-    myActiveView = myActiveViewer->CreateView();
-
-    Handle(WNT_Window) aWNTWindow = new WNT_Window (GetDlgItem (IDC_HlrDlgView)->GetSafeHwnd(),
-                                                    Quantity_NOC_GRAY);
-    myActiveView->SetComputedMode (m_HlrModeIsOn != 0);
-    myActiveView->SetWindow(aWNTWindow);
-
-    myInteractiveContext = new AIS_InteractiveContext (myActiveViewer);
-
-    // TRIHEDRON
-    Handle(Geom_Axis2Placement) aTrihedronAxis = new Geom_Axis2Placement (gp::XOY());
-    myTrihedron = new AIS_Trihedron (aTrihedronAxis);
-
-    myInteractiveContext->Display (myTrihedron, Standard_False);
-    myIsDisplayed = Standard_True;
-  }
-  if(isFit)
-  {
-    myActiveView->ZFitAll();
-    myActiveView->FitAll();
-  }
-
-  myActiveView->Redraw();
-  //GetDlgItem (IDC_HlrDlgView)->SetRedraw (false);
-}
-
-
-void CSelectionDialog::SetTitle (const CString & aTitle)
-{
-  SetWindowText (aTitle);
-}
-
-void CSelectionDialog::UpdateViews()
-{
-  // Clear HLR dialog view
-  myInteractiveContext->RemoveAll (Standard_False);
-  myInteractiveContext->Display (myTrihedron, Standard_False);
-
-  UpdateProjector();
-
-  // Display chosen shapes in the HLR dialog view.
-  Standard_Boolean OneOrMoreFound = Standard_False;
-  for (myDoc->GetAISContext()->InitSelected();
-       myDoc->GetAISContext()->MoreSelected();
-       myDoc->GetAISContext()->NextSelected())
-  {
-    Handle(AIS_Shape) anAISShape = Handle(AIS_Shape)::DownCast (myDoc->GetAISContext()->SelectedInteractive());
-    if (!anAISShape.IsNull())
-    {
-      OneOrMoreFound = Standard_True;
-      myInteractiveContext->Display (anAISShape, Standard_False);
-    }
-  }
-  myInteractiveContext->UpdateCurrentViewer();
-  // Apply HLR to chosen shapes and display result into the 2d view.
-  Apply();
-  // Update viewer
-  myDoc->FitAll2DViews (Standard_False);
-  // Check the selection: if no object : disable all possibility.
-  ShowHideButton (OneOrMoreFound);
-  OnDisplay (true);
-}
-
-void CSelectionDialog::OnGetSelectedShapes()
-{
-  // Create new displayable shape.
-  myDisplayableShape = new ISession2D_Shape();
-  UpdateProjector();
-  myDisplayableShape->SetNbIsos (m_NbIsos);
-
-  // Clear HLR dialog view
-  myInteractiveContext->RemoveAll (Standard_False);
-  myInteractiveContext->Display (myTrihedron, Standard_False);
-
-  Standard_Boolean OneOrMoreFound = Standard_False;
-  for (myDoc->GetAISContext()->InitSelected();
-       myDoc->GetAISContext()->MoreSelected();
-       myDoc->GetAISContext()->NextSelected())
-  {
-    Handle(AIS_Shape) anAISShape = Handle(AIS_Shape)::DownCast (myDoc->GetAISContext()->SelectedInteractive());
-
-    if (!anAISShape.IsNull())
-    {
-      OneOrMoreFound = Standard_True;
-      TopoDS_Shape aShape = anAISShape->Shape();
-      myDisplayableShape->Add (aShape);
-      Handle(AIS_Shape) aSelectedShape = new AIS_Shape (aShape);
-      myInteractiveContext->Display (aSelectedShape, Standard_False);
-    }
-  }
-  myInteractiveContext->UpdateCurrentViewer();
-  // Apply HLR to chosen shapes and display result into the 2d view.
-  Apply();
-  // Update viewer
-  myDoc->FitAll2DViews (Standard_False);
-
-  // Check the selection: if no object : disable all possibility.
-  ShowHideButton (OneOrMoreFound);
-  OnDisplay (true);
-}
-
-void CSelectionDialog::Apply()
-{
-  SetCursor(AfxGetApp()->LoadStandardCursor (IDC_WAIT));
-  myDoc->GetInteractiveContext2D()->RemoveAll (Standard_False);
-  UpdateData (true);
-
-  Standard_Integer aDisplayMode = m_DisplayMode;
-
-  if (m_Algo == 1)
-  {
-    aDisplayMode += 100;
-  }
-
-  if (!m_DrawHiddenLine)
-  {
-    aDisplayMode += 1000;
-  }
-
-  myDoc->GetInteractiveContext2D()->Display (myDisplayableShape,  // object
-                                             aDisplayMode,
-                                             aDisplayMode,
-                                             Standard_True); // Redraw
-
-  SetCursor(AfxGetApp()->LoadStandardCursor (IDC_ARROW));
-}
-
-void CSelectionDialog::UpdateProjector()
-{
-  const Handle(Graphic3d_Camera)& aCam = myActiveView->Camera();
-  gp_Dir aBackDir = -aCam->Direction();
-  gp_Dir aXpers   = aCam->Up().Crossed (aBackDir);
-  gp_Ax3 anAx3 (aCam->Center(), aBackDir, aXpers);
-  gp_Trsf aTrsf;
-  aTrsf.SetTransformation (anAx3);
-  HLRAlgo_Projector aProjector (aTrsf, !aCam->IsOrthographic(), aCam->Scale());
-
-  OnDisplay(false);
-
-  if (myDisplayableShape.IsNull()) return;
-  myDisplayableShape->SetProjector(aProjector);
-}
-
-void CSelectionDialog::ShowHideButton(Standard_Boolean EnableButton)
-{
-  UpdateData(true);
-
-  GetDlgItem(ID_Update2D          )->EnableWindow(EnableButton);
-  GetDlgItem(IDC_DisplayDefault   )->EnableWindow(EnableButton);
-  GetDlgItem(IDC_PolyAlgo         )->EnableWindow(EnableButton);
-  GetDlgItem(IDC_Algo             )->EnableWindow(EnableButton);
-
-  GetDlgItem(IDC_VsharpEdges      )->EnableWindow(EnableButton);
-  GetDlgItem(IDC_VsmoothEdges     )->EnableWindow(EnableButton);
-  GetDlgItem(IDC_VSewingEdges     )->EnableWindow(EnableButton);
-  GetDlgItem(IDC_VApparentContour )->EnableWindow(EnableButton);
-  GetDlgItem(IDC_VIsoParametrics  )->EnableWindow(EnableButton);
-
-  GetDlgItem(IDC_DrawHiddenLine   )->EnableWindow(EnableButton);
-
-  GetDlgItem(IDC_HsmoothEdges     )->EnableWindow(EnableButton && m_DrawHiddenLine);
-  GetDlgItem(IDC_HSewingEdges     )->EnableWindow(EnableButton && m_DrawHiddenLine);
-  GetDlgItem(IDC_HApparentContour )->EnableWindow(EnableButton && m_DrawHiddenLine);
-  GetDlgItem(IDC_HsharpEdges      )->EnableWindow(EnableButton && m_DrawHiddenLine);
-  GetDlgItem(IDC_HIsoParametrics  )->EnableWindow(EnableButton && m_DrawHiddenLine);
-
-  GetDlgItem(IDC_EDIT_NBIsos      )->EnableWindow(EnableButton);
-  GetDlgItem(IDC_STATIC_NbIsos    )->EnableWindow(EnableButton);
-
-  if(m_Algo == 0)
-  {
-    if (m_DisplayMode == 5 || m_DisplayMode == 10)
-    {
-      m_DisplayMode=0;
-    }
-
-    GetDlgItem(IDC_VIsoParametrics)->EnableWindow(false);
-    GetDlgItem(IDC_HIsoParametrics)->EnableWindow(false);
-    GetDlgItem(IDC_STATIC_NbIsos)  ->EnableWindow(false);
-    GetDlgItem(IDC_EDIT_NBIsos)    ->EnableWindow(false);
-  }
-  else
-  {
-    GetDlgItem(IDC_VIsoParametrics)->EnableWindow(true);
-    GetDlgItem(IDC_HIsoParametrics)->EnableWindow(m_DrawHiddenLine);
-    GetDlgItem(IDC_STATIC_NbIsos)  ->EnableWindow(true);
-    GetDlgItem(IDC_EDIT_NBIsos)    ->EnableWindow(true);
-  }
-  UpdateData(false);
-} 
-
-void CSelectionDialog::OnDisplayDefault() 
-{ Apply(); }
-void CSelectionDialog::OnVIsoParametrics() 
-{ Apply(); }
-void CSelectionDialog::OnVApparentContour() 
-{ Apply(); }
-void CSelectionDialog::OnVSewingEdges() 
-{ Apply(); }
-void CSelectionDialog::OnVsharpEdges() 
-{ Apply(); }
-void CSelectionDialog::OnVsmoothEdges() 
-{ Apply(); }
-void CSelectionDialog::OnHsharpEdges() 
-{ Apply(); }
-void CSelectionDialog::OnHsmoothEdges() 
-{ Apply(); }
-void CSelectionDialog::OnHSewingEdges() 
-{ Apply(); }
-void CSelectionDialog::OnHIsoParametrics() 
-{ Apply(); }
-void CSelectionDialog::OnHApparentContour() 
-{ Apply(); }
-
-void CSelectionDialog::OnChangeEDITNBIsos() 
-{
-  UpdateData(true);
-  myDisplayableShape->SetNbIsos(m_NbIsos);
-  Apply(); 
-}
-void CSelectionDialog::OnAlgo() 
-{
-  ShowHideButton();
-  Apply();
-}
-
-void CSelectionDialog::OnPolyAlgo() 
-{
-  ShowHideButton();
-  Apply();
-}
-
-void CSelectionDialog::OnDrawHiddenLine() 
-{
-  UpdateData(true);
-  if(m_DisplayMode >=6 )
-  {
-    m_DisplayMode=0;
-    UpdateData(false);
-  }
-  ShowHideButton();
-  Apply();
-}
-
-void CSelectionDialog::OnUpdate2D() 
-{
-  SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
-  myDoc->ActivateFrame(RUNTIME_CLASS(OCC_2dView),SW_NORMAL);
-  UpdateProjector();
-  Apply();
-  myDoc->FitAll2DViews(Standard_False);
-  SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
-}
-
-void CSelectionDialog::OnTopView() 
-{
-  myActiveView->SetProj(V3d_Zpos);
-  OnDisplay(true);
-}
-
-void CSelectionDialog::OnBottomView() 
-{
-  myActiveView->SetProj(V3d_Zneg);
-  OnDisplay(true);
-}
-
-void CSelectionDialog::OnLeftView() 
-{
-  myActiveView->SetProj(V3d_Xneg);
-  OnDisplay(true);
-}
-
-void CSelectionDialog::OnRightView() 
-{
-  myActiveView->SetProj(V3d_Xpos);
-  OnDisplay(true);
-}
-
-void CSelectionDialog::OnFrontView() 
-{
-  myActiveView->SetProj(V3d_Yneg);
-  OnDisplay(true);
-}
-
-void CSelectionDialog::OnBackView() 
-{
-  myActiveView->SetProj(V3d_Ypos);
-  OnDisplay(true);
-}
-
-void CSelectionDialog::OnAxoView() 
-{
-  myActiveView->SetProj(V3d_XposYnegZpos);
-  OnDisplay(true);
-}
-
-void CSelectionDialog::OnHlrMode()
-{
-  UpdateData(true);
-
-  if (!m_HlrModeIsOn)
-  {
-    myActiveView->SetComputedMode (m_HlrModeIsOn != 0);
-    myActiveView->Redraw();
-  }
-  else
-  {
-    SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
-    myActiveView->SetComputedMode (m_HlrModeIsOn != 0);
-    myActiveView->Redraw();
-    SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
-  }
-  OnDisplay(false);
-}
-
-void CSelectionDialog::OnLButtonDown(UINT nFlags, CPoint point) 
-{
-  CDialog::OnLButtonDown(nFlags, point);
-
-  if ((myPosMinX > point.x)||(myPosMaxX < point.x) ||
-    (myPosMinY > point.y) ||(myPosMaxY < point.y))
-    return;
-
-  //  save the current mouse coordinate
-  myXmax=point.x;  myYmax=point.y;
-}
-
-void CSelectionDialog::OnLButtonUp(UINT nFlags, CPoint point) 
-{
-  CDialog::OnLButtonUp(nFlags, point);
-
-  if ((myPosMinX > point.x)||(myPosMaxX < point.x) ||
-    (myPosMinY > point.y) ||(myPosMaxY < point.y))
-    return;
-}
-
-void CSelectionDialog::OnRButtonDown(UINT nFlags, CPoint point) 
-{
-  CDialog::OnRButtonDown(nFlags, point);
-
-  if ((myPosMinX > point.x) || (myPosMaxX < point.x) ||
-      (myPosMinY > point.y) || (myPosMaxY < point.y))
-  {
-    return;
-  }
-
-  if ( nFlags & CASCADESHORTCUTKEY )
-  {
-    if (m_HlrModeIsOn)
-    {
-      myActiveView->SetComputedMode (Standard_False);
-    }
-    myActiveView->StartRotation (point.x, point.y);
-    OnDisplay (false);
-  }
-}
-
-void CSelectionDialog::OnRButtonUp(UINT nFlags, CPoint point) 
-{
-  CDialog::OnRButtonUp(nFlags, point);
-
-  if ((myPosMinX > point.x) || (myPosMaxX < point.x) ||
-      (myPosMinY > point.y) || (myPosMaxY < point.y))
-  {
-    return;
-  }
-
-  SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
-  // reset the good HLR mode according to the stored one
-  //   --> dynamic rotation may have change it
-  if (m_HlrModeIsOn != 0)
-  {
-    myActiveView->SetComputedMode (true);
-    myActiveView->Redraw();
-  }
-  OnDisplay(false);
-  SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
-}
-
-void CSelectionDialog::OnMouseMove(UINT nFlags, CPoint point) 
-{
-  CDialog::OnMouseMove(nFlags, point);
-
-  if ((myPosMinX > point.x)||(myPosMaxX < point.x) ||
-    (myPosMinY > point.y) ||(myPosMaxY < point.y))
-    return;
-
-  if ( nFlags & MK_LBUTTON)
-  {//left button
-    if ( nFlags & CASCADESHORTCUTKEY ) 
-    {
-      // move with MB1 and Control : on the dynamic zooming  
-      // Do the zoom in function of mouse's coordinates  
-      myActiveView->Zoom(myXmax,myYmax,point.x,point.y); 
-      // save the current mouse coordinate 
-      myXmax = point.x;    myYmax = point.y;   
-    }// if ( nFlags & CASCADESHORTCUTKEY )  else 
-  }
-  else if ( nFlags & MK_MBUTTON)
-  {
-    if ( nFlags & CASCADESHORTCUTKEY ) 
-    {
-      myActiveView->Pan(point.x-myXmax,myYmax-point.y); // Realize the panning
-      myXmax = point.x; myYmax = point.y;      
-    }
-  }
-  else if ( nFlags & MK_RBUTTON)
-  {//right button
-    if ( nFlags & CASCADESHORTCUTKEY ) 
-    {
-      myActiveView->Rotation(point.x,point.y);
-    }
-  } 
-  else
-  {// No buttons 
-    myXmax = point.x; myYmax = point.y;        
-  }
-  OnDisplay(false);
-}
-
-void CSelectionDialog::OnOK() 
-{
-  CDialog::OnOK();
-}
-
-void CSelectionDialog::OnPaint() 
-{
-  OnDisplay(false);
-}
diff --git a/samples/mfc/standard/08_HLR/src/SelectionDialog.h b/samples/mfc/standard/08_HLR/src/SelectionDialog.h
deleted file mode 100755 (executable)
index 7aa6eeb..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-#if !defined(AFX_SelectionDialog_H__0307BDF3_AF53_11D1_8DAE_0800369C8A03__INCLUDED_)
-#define AFX_SelectionDialog_H__0307BDF3_AF53_11D1_8DAE_0800369C8A03__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-// SelectionDialog.h : header file
-//
-#include "resource.h"
-#include <ISession2D/ISession2D_Shape.h>
-#include "SelectionDialog.h"
-
-class CHLRDoc;
-/////////////////////////////////////////////////////////////////////////////
-// CSelectionDialog dialog
-
-class CSelectionDialog : public CDialog
-{
-  // Construction
-public:
-  // standard constructor
-  CSelectionDialog (CHLRDoc* aDoc,CWnd* pParent = NULL);
-
-  void SetTitle (const CString& aTitle);
-
-  void OnDisplay (bool isFit);
-
-  const Handle(ISession2D_Shape) DiplayableShape() { return myDisplayableShape; }
-
-  // Updates in dialog view and main 2d and 3d views shapes for which HLR presentations are going to be displayed in 2d view.
-  void UpdateViews();
-
-  // Dialog Data
-  //{{AFX_DATA(CSelectionDialog)
-  enum { IDD = IDD_SelectionDialog };
-  int m_Algo;
-  int m_DisplayMode;
-  int m_NbIsos;
-  BOOL m_DrawHiddenLine;
-  BOOL m_HlrModeIsOn;
-  //}}AFX_DATA
-
-  // Overrides
-  // ClassWizard generated virtual function overrides
-  //{{AFX_VIRTUAL(CSelectionDialog)
-protected:
-  virtual void DoDataExchange(CDataExchange* pDX);
-  //}}AFX_VIRTUAL
-
-  // Implementation
-protected:
-
-  // Generated message map functions
-  //{{AFX_MSG(CSelectionDialog)
-  virtual BOOL OnInitDialog();
-  afx_msg void OnGetSelectedShapes();
-  afx_msg void OnDisplayDefault();
-  afx_msg void OnVIsoParametrics();
-  afx_msg void OnVApparentContour();
-  afx_msg void OnVSewingEdges();
-  afx_msg void OnVsharpEdges();
-  afx_msg void OnVsmoothEdges();
-  afx_msg void OnHsharpEdges();
-  afx_msg void OnHsmoothEdges();
-  afx_msg void OnHSewingEdges();
-  afx_msg void OnHIsoParametrics();
-  afx_msg void OnHApparentContour();
-  afx_msg void OnChangeEDITNBIsos();
-  afx_msg void OnAlgo();
-  afx_msg void OnPolyAlgo();
-  afx_msg void OnUpdate2D();
-  afx_msg void OnTopView();
-  afx_msg void OnBottomView();
-  afx_msg void OnLeftView();
-  afx_msg void OnRightView();
-  afx_msg void OnFrontView();
-  afx_msg void OnBackView();
-  afx_msg void OnAxoView();
-  virtual void OnOK();
-  afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
-  afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
-  afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
-  afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
-  afx_msg void OnMouseMove(UINT nFlags, CPoint point);
-  afx_msg void OnDrawHiddenLine();
-  afx_msg void OnHlrMode();
-  afx_msg void OnPaint();
-  //}}AFX_MSG
-  DECLARE_MESSAGE_MAP()
-private :
-  void UpdateProjector();
-  void ShowHideButton(Standard_Boolean EnableButton=Standard_True);
-  void Apply();
-  CHLRDoc* myDoc;
-
-  Handle(AIS_InteractiveContext) myInteractiveContext;
-  Handle(V3d_Viewer) myActiveViewer;
-  Handle(V3d_View)   myActiveView;
-  Handle(AIS_Trihedron)          myTrihedron;
-  Handle(ISession2D_Shape)       myDisplayableShape;
-
-  Standard_Integer myPosMaxX;
-  Standard_Integer myPosMinX;
-  Standard_Integer myBoxX;
-
-  Standard_Integer myPosMinY;
-  Standard_Integer myPosMaxY;
-  Standard_Integer myBoxY;
-
-  Standard_Integer   myXmax;
-  Standard_Integer   myYmax;
-
-protected:
-  CBitmapButton TopView;
-  CBitmapButton BottomView;
-  CBitmapButton LeftView;
-  CBitmapButton RightView;
-  CBitmapButton FrontView;
-  CBitmapButton BackView;
-  CBitmapButton AxoView;
-  bool myIsDisplayed;
-};
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_SelectionDialog_H__0307BDF3_AF53_11D1_8DAE_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/08_HLR/src/StdAfx.cpp b/samples/mfc/standard/08_HLR/src/StdAfx.cpp
deleted file mode 100755 (executable)
index da90289..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// stdafx.cpp : source file that includes just the standard includes
-//     SampleHLR.pch will be the pre-compiled header
-//     stdafx.obj will contain the pre-compiled type information
-
-#include "stdafx.h"
-
diff --git a/samples/mfc/standard/08_HLR/src/StdAfx.h b/samples/mfc/standard/08_HLR/src/StdAfx.h
deleted file mode 100755 (executable)
index 7250bcb..0000000
+++ /dev/null
@@ -1,205 +0,0 @@
-// stdafx.h : include file for standard system include files,
-//  or project specific include files that are used frequently, but
-//      are changed infrequently
-//
-
-#if !defined(AFX_STDAFX_H__376C7006_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_)
-#define AFX_STDAFX_H__376C7006_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#define VC_EXTRALEAN           // Exclude rarely-used stuff from Windows headers
-
-#include <afxwin.h>         // MFC core and standard components
-#include <afxext.h>         // MFC extensions
-#include <afxdisp.h>        // MFC OLE automation classes
-#ifndef _AFX_NO_AFXCMN_SUPPORT
-#include <afxcmn.h>                    // MFC support for Windows Common Controls
-#endif // _AFX_NO_AFXCMN_SUPPORT
-
-
-
-// CasCade :
-
-#define DEFAULT_DEVIATIONCOEFFICIENT 0.001
-#define DEFAULT_DCBIG 0.005
-#define DEFAULT_DCVBIG 0.01
-#define DEFAULT_DCSMALL 0.0002
-#define DEFAULT_DCVSMALL 0.00004
-#define DEFAULT_COLOR Quantity_NOC_CYAN1
-#define DEFAULT_MATERIAL Graphic3d_NameOfMaterial_Plastered
-#define DEFAULT_BACKGROUNDCOLOR Quantity_NOC_MATRAGRAY
-#define DEFAULT_HILIGHTCOLOR Quantity_NOC_YELLOW
-
-#pragma warning(  disable : 4244 )        // Issue warning 4244
-#include <Standard_ShortReal.hxx>
-#pragma warning(  default : 4244 )        // Issue warning 4244
-
-#include <Standard.hxx>
-/*
-#ifndef Version15B
-# ifndef Version15D
-#  ifndef Version20
-#   define Version15B
-#  endif // Version20
-# endif // Version15D
-#endif // Version15B
-
-#pragma message ("=============================")
-#ifdef Version15B
-# pragma message ("Set the libs for version 1.5B")
-#endif // Version15B
-
-#ifdef Version15D
-# pragma message ("Set the libs for version 1.5D")
-#endif // Version15D
-
-#ifdef Version20
-# pragma message ("Set the libs for version 2.0 ")
-#endif // Version20
-#pragma message ("=============================")
-
-#ifdef Version15B
-# pragma comment (lib,"TKTop.lib")
-# pragma comment (lib,"TShort.lib")
-# pragma comment (lib,"TColQuantity.lib")
-#endif
-
-#ifdef Version15D
-# pragma comment (lib,"TKTop.lib")
-#endif
-
-#ifdef Version20
-# pragma comment (lib,"TKTop1.lib")
-# pragma comment (lib,"TKTop2.lib")
-#endif
-
-#pragma message ("Set the specific libs for the application")
-# pragma comment (lib,"TKPrs.lib")
-# pragma comment (lib,"TKGeom.lib")
-# pragma comment (lib,"TKGlt.lib")
-# pragma comment (lib,"TKGraphic.lib")
-# pragma comment (lib,"TKPrsMgr.lib")
-# pragma comment (lib,"TKViewers.lib")
-# pragma comment (lib,"TKSession.lib")
-# pragma comment (lib,"gp.lib")
-# pragma comment (lib,"TKernel.lib")
-# pragma comment (lib,"UnitsAPI.lib")
-# pragma comment (lib,"PTColStd.lib")
-# pragma comment (lib,"TKMgtShape.lib")
-# pragma comment (lib,"TKPShape.lib")
-# pragma comment (lib,"ShapeSchema.lib")
-# pragma comment (lib,"FSD.lib")
-# pragma comment (lib,"OSDriver.lib")
-# pragma comment (lib,"ObjMgt.lib")
-# pragma comment (lib,"TKXSBase.lib")
-# pragma comment (lib,"TKXSIGES.lib")
-# pragma comment (lib,"TKXS214.lib")
-*/
-#include <AIS_InteractiveContext.hxx>
-#include <AIS_InteractiveObject.hxx>
-#include <AIS_Shape.hxx>
-#include <AIS_Trihedron.hxx>
-
-#include <Aspect_Background.hxx>
-#include <Aspect_TypeOfline.hxx>
-#include <Aspect_WidthOfline.hxx>
-#include <Bnd_Box2d.hxx>
-#include <BndLib_Add2dCurve.hxx>
-#include <BRep_Builder.hxx>
-#include <BRepBuilderAPI.hxx>
-#include <BRepTools.hxx>
-#include <Standard_DefineHandle.hxx>
-#include <DsgPrs_LengthPresentation.hxx>
-#include <GCE2d_MakeSegment.hxx>
-#include <GCPnts_TangentialDeflection.hxx>
-#include <Geom_CartesianPoint.hxx>
-#include <Geom_Axis2Placement.hxx>
-#include <Geom2d_BezierCurve.hxx>
-#include <Geom2d_BSplineCurve.hxx>
-#include <Geom2d_Curve.hxx>
-#include <Geom2d_TrimmedCurve.hxx>
-#include <Geom2dAdaptor_Curve.hxx>
-#include <GeomAbs_CurveType.hxx>
-#include <GeomAdaptor_Curve.hxx>
-#include <GeomTools_Curve2dSet.hxx>
-#include <gp_Ax2d.hxx>
-#include <gp_Circ2d.hxx>
-#include <gp_Dir2d.hxx>
-#include <gp_Lin2d.hxx>
-#include <gp_Pnt2d.hxx>
-#include <gp_Vec.hxx>
-#include <gp_Vec2d.hxx>
-#include <OSD_Environment.hxx>
-#include <Precision.hxx>
-#include <Prs3d_Drawer.hxx>
-#include <Prs3d_IsoAspect.hxx>
-#include <Prs3d_LineAspect.hxx>
-#include <Prs3d_Text.hxx>
-#include <Quantity_NameOfColor.hxx>
-#include <Quantity_TypeOfColor.hxx>
-#include <SelectMgr_EntityOwner.hxx>
-#include <SelectMgr_SelectableObject.hxx>
-#include <SelectMgr_Selection.hxx>
-#include <SelectMgr_SelectionManager.hxx>
-
-#include <Standard_Boolean.hxx>
-#include <Standard_CString.hxx>
-#include <Standard_ErrorHandler.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_IStream.hxx>
-#include <Standard_Macro.hxx>
-#include <Standard_NotImplemented.hxx>
-#include <Standard_OStream.hxx>
-#include <Standard_Real.hxx>
-#include <StdPrs_Curve.hxx>
-#include <StdPrs_Point.hxx>
-#include <StdPrs_PoleCurve.hxx>
-#include <TCollection_AsciiString.hxx>
-#include <TColgp_Array1OfPnt2d.hxx>
-#include <TColgp_HArray1OfPnt2d.hxx>
-#include <TCollection_AsciiString.hxx>
-#include <TColStd_HSequenceOfTransient.hxx>
-#include <TColStd_MapIteratorOfMapOfTransient.hxx>
-#include <TColStd_MapOfTransient.hxx>
-#include <TopExp_Explorer.hxx>
-#include <TopoDS.hxx>
-#include <TopoDS_Compound.hxx>
-#include <TopoDS_ListIteratorOfListOfShape.hxx>
-#include <TopoDS_Shape.hxx>
-#include <TopoDS_Solid.hxx>
-#include <TopTools_HSequenceOfShape.hxx>
-#include <UnitsAPI.hxx>
-#include <V3d_View.hxx>
-#include <V3d_Viewer.hxx>
-#include <WNT_Window.hxx>
-
-#include <HLRAlgo_Projector.hxx>
-#include <TopTools_ListOfShape.hxx>
-#include <HLRAlgo_Projector.hxx>
-#include <HLRBRep_Algo.hxx>
-#include <HLRBRep_PolyAlgo.hxx>
-
-#include <TopTools_ListIteratorOfListOfShape.hxx>
-#include <HLRBRep_PolyHLRToShape.hxx>
-#include <HLRBRep_HLRToShape.hxx>
-#include <TopExp.hxx>
-#include <TopoDS_Vertex.hxx>
-#include <BRep_Tool.hxx>
-
-#include <AIS_ListOfInteractive.hxx>
-#include <AIS_ListIteratorOfListOfInteractive.hxx>
-
-#include "..\res\resource.h"
-
-//End CasCade
-
-
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_STDAFX_H__376C7006_0B3D_11D2_8E0A_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/09_Animation/CMakeLists.txt b/samples/mfc/standard/09_Animation/CMakeLists.txt
deleted file mode 100644 (file)
index 9cea604..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-cmake_minimum_required (VERSION 2.6)
-
-project (Animation)
-
-add_definitions (-DWINVER=0x0501 -DUNICODE -D_UNICODE)
-set (CMAKE_MFC_FLAG 2)
-
-set (Animation_SRC_DIR      ${MFC_STANDARD_SAMPLES_DIR}/09_Animation/src)
-set (Animation_HEADER_FILES ${Animation_SRC_DIR}/AnimationApp.h
-                            ${Animation_SRC_DIR}/AnimationDoc.h
-                            ${Animation_SRC_DIR}/AnimationView3D.h
-                            ${Animation_SRC_DIR}/Fonc.hxx
-                            ${Animation_SRC_DIR}/ShadingDialog.h
-                            ${Animation_SRC_DIR}/ThreadDialog.h
-                            ${Animation_SRC_DIR}/StdAfx.h )
-set (Animation_SOURCE_FILES ${Animation_SRC_DIR}/AnimationApp.cpp
-                            ${Animation_SRC_DIR}/AnimationDoc.cpp
-                            ${Animation_SRC_DIR}/AnimationView3D.cpp
-                            ${Animation_SRC_DIR}/Fonc.cxx
-                            ${Animation_SRC_DIR}/ShadingDialog.cpp
-                            ${Animation_SRC_DIR}/ThreadDialog.cpp
-                            ${Animation_SRC_DIR}/StdAfx.cpp )
-
-set (Animation_RESOURCE_DIR    ${MFC_STANDARD_SAMPLES_DIR}/09_Animation/res)
-set (Animation_RESOURCE_HEADER ${Animation_RESOURCE_DIR}/resource.h)
-set (Animation_RESOURCE_FILES  ${Animation_RESOURCE_DIR}/child2.bmp
-                               ${Animation_RESOURCE_DIR}/Toolbar.bmp
-                               ${Animation_RESOURCE_DIR}/Animation.rc)
-
-# groups in the VS solution
-source_group ("Source Files"   FILES ${Animation_SOURCE_FILES}
-                                     ${COMMON_WINMAIN_FILE})
-
-source_group ("Header Files"   FILES ${Animation_HEADER_FILES})
-
-source_group ("Resource Files" FILES ${Animation_RESOURCE_FILES})
-
-add_executable (Animation WIN32 ${Animation_SOURCE_FILES}
-                                ${Animation_HEADER_FILES}
-                                ${COMMON_WINMAIN_FILE}
-                                ${Animation_RESOURCE_FILES})
-
-set_property (TARGET Animation PROPERTY FOLDER "Samples/mfc")
-
-if (SINGLE_GENERATOR)
-  install (TARGETS Animation DESTINATION "${INSTALL_DIR_BIN}")
-else()
-  install (TARGETS Animation
-           CONFIGURATIONS Release RelWithDebInfo
-           DESTINATION "${INSTALL_DIR_BIN}")
-  install (TARGETS Animation
-           CONFIGURATIONS Debug
-           DESTINATION "${INSTALL_DIR_BIN}d")
-endif()
-
-include_directories (${CMAKE_BINARY_DIR}/inc
-                     ${Animation_RESOURCE_DIR}
-                     ${Animation_SRC_DIR}
-                     ${MFC_STANDARD_SAMPLES_DIR}/Common)
-
-target_link_libraries (Animation mfcsample TKBO)
\ No newline at end of file
diff --git a/samples/mfc/standard/09_Animation/adm/win/vc10/Animation.vcxproj b/samples/mfc/standard/09_Animation/adm/win/vc10/Animation.vcxproj
deleted file mode 100644 (file)
index f22faa9..0000000
+++ /dev/null
@@ -1,409 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|Win32">
-      <Configuration>Debug</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Debug|x64">
-      <Configuration>Debug</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|x64">
-      <Configuration>Release</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectGuid>{92492ACB-1F57-40BB-818F-33AD1C20273A}</ProjectGuid>
-    <RootNamespace>Animation</RootNamespace>
-    <Keyword>MFCProj</Keyword>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <PropertyGroup>
-    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../../../../win32\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\win32\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">../../../../win64\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\win64\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../../../win32\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\win32\obj\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">../../../../win64\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\win64\obj\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\objd/Animation.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\objd/Animation.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\objd/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;TKBO.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bind/Animation.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bind/Animation.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\objd/Animation.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\objd/Animation.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\objd/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;TKBO.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bind/Animation.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bind/Animation.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\obj/Animation.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\obj/Animation.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;TKBO.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bin/Animation.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bin/Animation.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\obj/Animation.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>..\..\..\;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>Use</PrecompiledHeader>
-      <PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\obj/Animation.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;TKBO.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bin/Animation.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bin/Animation.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\res\Animation.rc">
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-    </ResourceCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\AnimationApp.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\AnimationDoc.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\AnimationView3D.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\Fonc.cxx" />
-    <ClCompile Include="..\..\..\src\ShadingDialog.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\StdAfx.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\ThreadDialog.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\src\AnimationApp.h" />
-    <ClInclude Include="..\..\..\src\AnimationDoc.h" />
-    <ClInclude Include="..\..\..\src\AnimationView3D.h" />
-    <ClInclude Include="..\..\..\src\Fonc.hxx" />
-    <ClInclude Include="..\..\..\res\resource.h" />
-    <ClInclude Include="..\..\..\src\ShadingDialog.h" />
-    <ClInclude Include="..\..\..\src\StdAfx.h" />
-    <ClInclude Include="..\..\..\src\ThreadDialog.h" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\res\child2.bmp" />
-    <None Include="..\..\..\res\Toolbar.bmp" />
-  </ItemGroup>
-  <ItemGroup>
-    <ProjectReference Include="..\..\..\..\mfcsample\adm\win\vc10\mfcsample.vcxproj">
-      <Project>{2d6cbbe8-6965-4016-b503-0d715ae26691}</Project>
-      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
-    </ProjectReference>
-  </ItemGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/09_Animation/adm/win/vc10/Animation.vcxproj.filters b/samples/mfc/standard/09_Animation/adm/win/vc10/Animation.vcxproj.filters
deleted file mode 100644 (file)
index 2be10d5..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
-    <Filter Include="Source Files">
-      <UniqueIdentifier>{d5298b93-c300-4e09-b89c-a7e7077e364f}</UniqueIdentifier>
-      <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
-    </Filter>
-    <Filter Include="Header Files">
-      <UniqueIdentifier>{44848e1a-ccd0-42de-b2d7-989ef24a56a9}</UniqueIdentifier>
-      <Extensions>h;hpp;hxx;hm;inl</Extensions>
-    </Filter>
-    <Filter Include="Resource Files">
-      <UniqueIdentifier>{ac89cece-2b9f-4975-ad38-a1fc83f2b2b3}</UniqueIdentifier>
-      <Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
-    </Filter>
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\res\Animation.rc">
-      <Filter>Source Files</Filter>
-    </ResourceCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\AnimationApp.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\AnimationDoc.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\AnimationView3D.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\Fonc.cxx">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\ShadingDialog.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\StdAfx.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\ThreadDialog.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\src\AnimationApp.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\AnimationDoc.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\AnimationView3D.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\Fonc.hxx">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\res\resource.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\ShadingDialog.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\StdAfx.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\ThreadDialog.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\res\child2.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\res\Toolbar.bmp">
-      <Filter>Resource Files</Filter>
-    </None>
-  </ItemGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/09_Animation/res/Animation.rc b/samples/mfc/standard/09_Animation/res/Animation.rc
deleted file mode 100755 (executable)
index f714777..0000000
+++ /dev/null
@@ -1,271 +0,0 @@
-// Microsoft Visual C++ generated resource script.
-//
-#include "resource.h"
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
-#include "afxres.h"
-#include "..\..\Common\res\OCC_Resource.h"
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-// English (U.S.) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-#pragma code_page(1252)
-#endif //_WIN32
-
-#ifdef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE 
-BEGIN
-    "resource.h\0"
-END
-
-2 TEXTINCLUDE 
-BEGIN
-    "#include ""afxres.h""\r\n"
-    "#include ""..\\..\\Common\\res\\OCC_Resource.h""\0"
-END
-
-3 TEXTINCLUDE 
-BEGIN
-    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
-    "#define _AFX_NO_OLE_RESOURCES\r\n"
-    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
-    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
-    "\r\n"
-    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
-    "#ifdef _WIN32\r\n"
-    "LANGUAGE 9, 1\r\n"
-    "#pragma code_page(1252)\r\n"
-    "#endif\r\n"
-    "#include ""afxres.rc""         // Standard components\r\n"
-    "#endif\0"
-END
-
-#endif    // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Bitmap
-//
-
-IDR_MAINFRAME           BITMAP                  "Toolbar.bmp"
-IDR_3dCHILDFRAME        BITMAP                  "child2.bmp"
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Toolbar
-//
-
-IDR_MAINFRAME TOOLBAR  21, 20
-BEGIN
-    BUTTON      ID_FILE_NEW
-    SEPARATOR
-    BUTTON      ID_RESTART
-    BUTTON      ID_STOP
-    BUTTON      ID_Thread
-    BUTTON      ID_SHADING
-    SEPARATOR
-    BUTTON      ID_FILE_LOADGRID
-    SEPARATOR
-    BUTTON      ID_APP_ABOUT
-END
-
-IDR_3dCHILDFRAME TOOLBAR  20, 20
-BEGIN
-    BUTTON      ID_BUTTONZoomAll
-    BUTTON      ID_BUTTONZoomWin
-    BUTTON      ID_BUTTONZoomProg
-    SEPARATOR
-    BUTTON      ID_BUTTONPan
-    BUTTON      ID_BUTTONPanGlo
-    SEPARATOR
-    BUTTON      ID_BUTTONFly
-    BUTTON      ID_BUTTONTurn
-    SEPARATOR
-    BUTTON      ID_BUTTONRot
-    BUTTON      ID_BUTTONReset
-    SEPARATOR
-    BUTTON      ID_BUTTONHlrOff
-    BUTTON      ID_BUTTONHlrOn
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Menu
-//
-
-IDR_MAINFRAME MENU 
-BEGIN
-    POPUP "&File"
-    BEGIN
-        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
-        MENUITEM SEPARATOR
-        MENUITEM "E&xit",                       ID_APP_EXIT
-    END
-    POPUP "&View"
-    BEGIN
-        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
-        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
-    END
-    POPUP "&Help"
-    BEGIN
-        MENUITEM "&About DisplayAnimation...",  ID_APP_ABOUT
-    END
-END
-
-IDR_3DTYPE MENU 
-BEGIN
-    POPUP "&File"
-    BEGIN
-        MENUITEM "&New\tCtrl+N",                ID_FILE_NEW
-        MENUITEM "&Close",                      ID_FILE_CLOSE
-        MENUITEM SEPARATOR
-        MENUITEM "E&xit",                       ID_APP_EXIT
-    END
-    POPUP "&View"
-    BEGIN
-        MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
-        MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
-    END
-    POPUP "&Window"
-    BEGIN
-        MENUITEM "&New Window",                 ID_WINDOW_NEW
-        MENUITEM "&Cascade",                    ID_WINDOW_CASCADE
-        MENUITEM "&Tile",                       ID_WINDOW_TILE_HORZ
-        MENUITEM "&Arrange Icons",              ID_WINDOW_ARRANGE
-    END
-    POPUP "&Help"
-    BEGIN
-        MENUITEM "&About DisplayAnimation...",  ID_APP_ABOUT
-    END
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Dialog
-//
-
-IDD_ShadingBoxDialog DIALOG  0, 0, 186, 95
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Deviation Coefficient"
-FONT 8, "MS Sans Serif"
-BEGIN
-    DEFPUSHBUTTON   "OK",IDOK,21,65,50,14
-    PUSHBUTTON      "Cancel",IDCANCEL,111,65,50,14
-    CONTROL         "Slider1",IDC_SLIDER1,"msctls_trackbar32",TBS_TOP | TBS_NOTICKS | WS_BORDER | WS_TABSTOP,29,30,125,17
-    LTEXT           "Fine        Default             Unpolished",IDC_STATIC,35,14,118,13
-END
-
-IDD_ThreadBoxDialog DIALOG  0, 0, 186, 95
-STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Change the animation thread"
-FONT 8, "MS Sans Serif"
-BEGIN
-    DEFPUSHBUTTON   "OK",IDOK,22,65,50,14
-    PUSHBUTTON      "Cancel",IDCANCEL,107,65,50,14
-    GROUPBOX        "Angle increment ",IDC_STATIC,7,7,172,49
-    EDITTEXT        IDC_Angle,65,27,48,16,ES_AUTOHSCROLL
-END
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,0,0,1
- PRODUCTVERSION 1,0,0,1
- FILEFLAGSMASK 0x3fL
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x4L
- FILETYPE 0x1L
- FILESUBTYPE 0x0L
-BEGIN
-    BLOCK "StringFileInfo"
-    BEGIN
-        BLOCK "040904b0"
-        BEGIN
-            VALUE "CompanyName", "Matra Datavision"
-            VALUE "FileDescription", "Sample Animation MFC Application"
-            VALUE "FileVersion", "1, 0, 0, 1"
-            VALUE "InternalName", "SampleAnimation"
-            VALUE "LegalCopyright", "Copyright (C) 1998"
-            VALUE "OriginalFilename", "SampleAnimation.EXE"
-            VALUE "ProductName", "SampleAnimation Application"
-            VALUE "ProductVersion", "1, 0, 0, 1"
-        END
-    END
-    BLOCK "VarFileInfo"
-    BEGIN
-        VALUE "Translation", 0x409, 1200
-    END
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// String Table
-//
-
-STRINGTABLE 
-BEGIN
-    IDR_MAINFRAME           "Animation"
-    IDR_SAMPLE3DTYPE        "\nAnimation\nAnimation\n\n\nAnimation.Document\nAnimation Document"
-END
-
-STRINGTABLE 
-BEGIN
-    ID_ANIMATION            "Build the model and start the animation\nStart the animation"
-    ID_STOP                 "Stop the animation\nStop the animation"
-    ID_RESTART              "Restart the animation\nRestart the animation"
-    ID_SHADING              "Deviation coefficient\nDeviation coefficient"
-    ID_Thread               "Change the animation thread\nAnimation thread"
-    ID_DESTRUCT             "Destruct the presentation\nDestruct the presentation"
-    ID_FILE_LOADGRID        "Load Grid Files\nLoad Grid File"
-END
-
-#endif    // English (U.S.) resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-#define _AFX_NO_SPLITTER_RESOURCES
-#define _AFX_NO_OLE_RESOURCES
-#define _AFX_NO_TRACKER_RESOURCES
-#define _AFX_NO_PROPERTY_RESOURCES
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE 9, 1
-#pragma code_page(1252)
-#endif
-#include "afxres.rc"         // Standard components
-#endif
-/////////////////////////////////////////////////////////////////////////////
-#endif    // not APSTUDIO_INVOKED
-
diff --git a/samples/mfc/standard/09_Animation/res/Toolbar.bmp b/samples/mfc/standard/09_Animation/res/Toolbar.bmp
deleted file mode 100755 (executable)
index d4c5b99..0000000
Binary files a/samples/mfc/standard/09_Animation/res/Toolbar.bmp and /dev/null differ
diff --git a/samples/mfc/standard/09_Animation/res/child2.bmp b/samples/mfc/standard/09_Animation/res/child2.bmp
deleted file mode 100755 (executable)
index 03e8a14..0000000
Binary files a/samples/mfc/standard/09_Animation/res/child2.bmp and /dev/null differ
diff --git a/samples/mfc/standard/09_Animation/res/resource.h b/samples/mfc/standard/09_Animation/res/resource.h
deleted file mode 100755 (executable)
index ab87c82..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-//{{NO_DEPENDENCIES}}
-// Microsoft Visual C++ generated include file.
-// Used by Animation.rc
-//
-#define IDR_SAMPLE3DTYPE                131
-#define IDD_SENS                        131
-#define IDD_TUNE                        132
-#define IDD_ShadingBoxDialog            170
-#define IDD_ThreadBoxDialog             171
-#define ID_BUTTONFly                    804
-#define ID_BUTTONTurn                   805
-#define IDC_FLY                         1002
-#define IDC_SPIN1                       1003
-#define IDC_TURN                        1004
-#define IDC_SPIN2                       1005
-#define IDC_FOCDIST                     1005
-#define IDC_SPINANG                     1006
-#define IDC_APPERTURE                   1007
-#define IDC_SPINFOC                     1008
-#define IDC_XEYE                        1009
-#define IDC_YEYE                        1010
-#define IDC_ZEYE                        1011
-#define IDC_XAT                         1012
-#define IDC_YAT                         1013
-#define IDC_ZAT                         1014
-#define IDC_TWIST                       1015
-#define ID_OBJECT_MATERIAL              1205
-#define ID_OBJECT_TRANPARENCY           1214
-#define IDC_SLIDER1                     1500
-#define IDC_Angle                       1502
-#define IDC_FSaveSTEP_Type              3002
-#define ID_ANIMATION                    32790
-#define ID_STOP                         32792
-#define ID_RESTART                      32793
-#define ID_SHADING                      32794
-#define ID_Thread                       32795
-#define ID_DESTRUCT                     32796
-#define ID_FILE_LOADGRID                32798
-#define ID_VIEW_DISPLAYSTATUS           32800
-#define ID_WALK_WALKTHRU                32801
-#define ID_WALK_SENSITIVITY             32802
-#define ID_WALK_WALKTHROUGH             32803
-#define ID_WALK_THROUGH                 32804
-#define ID_SENSITIVITY                  32805
-
-// Next default values for new objects
-// 
-#ifdef APSTUDIO_INVOKED
-#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_3D_CONTROLS                     1
-#define _APS_NEXT_RESOURCE_VALUE        174
-#define _APS_NEXT_COMMAND_VALUE         32806
-#define _APS_NEXT_CONTROL_VALUE         1503
-#define _APS_NEXT_SYMED_VALUE           170
-#endif
-#endif
diff --git a/samples/mfc/standard/09_Animation/src/AnimationApp.cpp b/samples/mfc/standard/09_Animation/src/AnimationApp.cpp
deleted file mode 100755 (executable)
index ab4c1c3..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-// AnimationApp.cpp : Defines the class behaviors for the application.
-//
-
-#include "stdafx.h"
-
-#include "AnimationApp.h"
-
-#include <OCC_MainFrame.h>
-#include <OCC_3dChildFrame.h>
-#include "AnimationDoc.h"
-#include "AnimationView3D.h"
-#include "..\..\Common\res\OCC_Resource.h"
-
-BEGIN_MESSAGE_MAP(CAnimationApp, OCC_App)
-       //{{AFX_MSG_MAP(CAnimationApp)
-       ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
-               // NOTE - the ClassWizard will add and remove mapping macros here.
-               //    DO NOT EDIT what you see in these blocks of generated code!
-       //}}AFX_MSG_MAP
-       // Standard file based document commands
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CAnimationApp construction
-
-CAnimationApp::CAnimationApp() : OCC_App()
-{
-  SampleName = "Animation"; //for about dialog
-  SetSamplePath (L"..\\..\\09_Animation");
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// The one and only CAnimationApp object
-
-CAnimationApp theApp;
-
-/////////////////////////////////////////////////////////////////////////////
-// CAnimationApp initialization
-
-BOOL CAnimationApp::InitInstance()
-{
-       AfxEnableControlContainer();
-
-       // Standard initialization
-       // If you are not using these features and wish to reduce the size
-       //  of your final executable, you should remove from the following
-       //  the specific initialization routines you do not need.
-
-       // Change the registry key under which our settings are stored.
-       // You should modify this string to be something appropriate
-       // such as the name of your company or organization.
-       // Modified by CasCade :
-       SetRegistryKey(_T("Local CasCade Applications"));
-
-       LoadStdProfileSettings();  // Load standard INI file options (including MRU)
-
-       // Register the application's document templates.  Document templates
-       //  serve as the connection between documents, frame windows and views.
-
-       CMultiDocTemplate* pDocTemplateForView3d;
-    pDocTemplateForView3d  = new CMultiDocTemplate(
-               IDR_3DTYPE,
-               RUNTIME_CLASS(CAnimationDoc),
-               RUNTIME_CLASS(OCC_3dChildFrame), // custom MDI child frame
-               RUNTIME_CLASS(CAnimationView3D));
-       AddDocTemplate(pDocTemplateForView3d);
-
-
-       // create main MDI Frame window
-       OCC_MainFrame* pMainFrame = new OCC_MainFrame;
-       if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
-               return FALSE;
-       m_pMainWnd = pMainFrame;
-
-       // Parse command line for standard shell commands, DDE, file open
-       CCommandLineInfo cmdInfo;
-       ParseCommandLine(cmdInfo);
-
-       // Dispatch commands specified on the command line
-       if (!ProcessShellCommand(cmdInfo))
-               return FALSE;
-
-       // The main window has been initialized, so show and update it.
-       pMainFrame->ShowWindow(m_nCmdShow);
-       pMainFrame->UpdateWindow();
-
-       return TRUE;
-}
-
-void CAnimationApp::OnAppAbout()
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       CAnimationView3D *pView = (CAnimationView3D *) pChild->GetActiveView();
-       pView -> OnStop();
-       OCC_App::OnAppAbout();
-       pView -> OnRestart();
-}
-
diff --git a/samples/mfc/standard/09_Animation/src/AnimationApp.h b/samples/mfc/standard/09_Animation/src/AnimationApp.h
deleted file mode 100755 (executable)
index a05ecb3..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-// AnimationApp.h : main header file for the Animation application
-//
-
-#if !defined(AFX_ANIMATION_H__79840E7E_1001_11D2_B8C1_0000F87A77C1__INCLUDED_)
-#define AFX_ANIMATION_H__79840E7E_1001_11D2_B8C1_0000F87A77C1__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include <OCC_App.h>
-
-class CAnimationApp : public OCC_App
-{
-public:
-
-  CAnimationApp();
-
-//{{AFX_MSG(CAnimationApp)
-  afx_msg void OnAppAbout();
-    // NOTE - the ClassWizard will add and remove member functions here.
-    //    DO NOT EDIT what you see in these blocks of generated code !
-  //}}AFX_MSG
-  DECLARE_MESSAGE_MAP()
-// Overrides
-  // ClassWizard generated virtual function overrides
-  //{{AFX_VIRTUAL(CAnimationApp)
-  public:
-  virtual BOOL InitInstance();
-  //}}AFX_VIRTUAL
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_ANIMATION_H__79840E7E_1001_11D2_B8C1_0000F87A77C1__INCLUDED_)
diff --git a/samples/mfc/standard/09_Animation/src/AnimationDoc.cpp b/samples/mfc/standard/09_Animation/src/AnimationDoc.cpp
deleted file mode 100755 (executable)
index 1828576..0000000
+++ /dev/null
@@ -1,344 +0,0 @@
-// AnimationDocApp.cpp : implementation of the CAnimationDoc class
-//
-
-#include "stdafx.h"
-
-#include "AnimationApp.h"
-#include "AnimationDoc.h"
-#include "AnimationView3D.h"
-#include "AISDialogs.h"
-#include "ShadingDialog.h"
-#include "ThreadDialog.h"
-#include "Fonc.hxx"
-
-#define DEFAULT_COLOR Quantity_NOC_CYAN1
-#define DEFAULT_MATERIAL Graphic3d_NameOfMaterial_Plastered
-#define DEFAULT_DEVIATIONCOEFFICIENT 0.001
-#define DEFAULT_HILIGHTCOLOR Quantity_NOC_YELLOW
-
-
-#ifdef _DEBUG
-//#define new DEBUG_NEW  // by cascade
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CAnimationDoc
-
-IMPLEMENT_DYNCREATE(CAnimationDoc, CDocument)
-
-BEGIN_MESSAGE_MAP(CAnimationDoc, CDocument)
-       //{{AFX_MSG_MAP(CAnimationDoc)
-       ON_COMMAND(ID_SHADING, OnShading)
-       ON_COMMAND(ID_Thread, OnThread)
-       ON_COMMAND(ID_FILE_LOADGRID, OnFileLoadgrid)
-       ON_UPDATE_COMMAND_UI(ID_WALK_WALKTHRU, OnUpdateWalkWalkthru)
-       //}}AFX_MSG_MAP
-
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CAnimationDoc construction/destruction
-
-CAnimationDoc::CAnimationDoc()
-{
-       // TODO: add one-time construction code here
-
-       Handle(Graphic3d_GraphicDriver) aGraphicDriver = 
-               ((CAnimationApp*)AfxGetApp())->GetGraphicDriver();
-
-       myViewer = new V3d_Viewer(aGraphicDriver);
-       myViewer->SetDefaultLights();
-       myViewer->SetLightOn();
-
-       myAISContext =new AIS_InteractiveContext(myViewer);
-
-       myDeviation = 0.0008;
-       thread = 4;
-
-       BRep_Builder B;
-       TopoDS_Shape CrankArm;
-       TopoDS_Shape CylinderHead;
-       TopoDS_Shape Propeller;
-       TopoDS_Shape Piston;
-       TopoDS_Shape EngineBlock;
-       
-       /*wchar_t AbloluteExecutableFileName[200];
-       HMODULE hModule = GetModuleHandleW (NULL);
-       GetModuleFileNameW (hModule, AbloluteExecutableFileName, 200);
-  CString aDataDirPath (AbloluteExecutableFileName);
-  int index = aDataDirPath.ReverseFind ('\\');
-  aDataDirPath.Delete (index + 1, aDataDirPath.GetLength() - index - 1);*/
-
-  CString SHAREPATHValue;
-  SHAREPATHValue.GetEnvironmentVariable (L"CSF_OCCTDataPath");
-  CString aDataDirPath = (SHAREPATHValue + "\\occ");
-
-  std::filebuf aFileBuf;
-  std::istream aStream (&aFileBuf);
-  CString aPathCrankArm = aDataDirPath + "\\CrankArm.rle";
-  if (aFileBuf.open (aPathCrankArm, std::ios::in))
-  {
-    BRepTools::Read (CrankArm, aStream, B);
-    aFileBuf.close();
-  }
-
-  CString aPathCylinderHead = aDataDirPath + "\\CylinderHead.rle";
-  if (aFileBuf.open (aPathCylinderHead, std::ios::in))
-  {
-    BRepTools::Read (CylinderHead, aStream, B);
-    aFileBuf.close();
-  }
-
-  CString aPathPropeller = aDataDirPath + "\\Propeller.rle";
-  if (aFileBuf.open (aPathPropeller, std::ios::in))
-  {
-    BRepTools::Read (Propeller, aStream, B);
-    aFileBuf.close();
-  }
-
-  CString aPathPiston = aDataDirPath + "\\Piston.rle";
-  if (aFileBuf.open (aPathPiston, std::ios::in))
-  {
-    BRepTools::Read (Piston, aStream, B);
-    aFileBuf.close();
-  }
-
-  CString aPathEngineBlock = aDataDirPath + "\\EngineBlock.rle";
-  if (aFileBuf.open (aPathEngineBlock, std::ios::in))
-  {
-    BRepTools::Read (EngineBlock, aStream, B);
-    aFileBuf.close();
-  }
-
-       if (CrankArm.IsNull() || CylinderHead.IsNull() || 
-        Propeller.IsNull() || Piston.IsNull() || EngineBlock.IsNull())
-       {
-               int rep = MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, L"Shape(s) not found.\nCheck the Data directory path!", L"Error", MB_OK | MB_ICONERROR);
-               if (rep == IDOK)
-                       exit(0);
-       }
-       myAISContext->SetDeviationCoefficient(myDeviation);
-
-       myAisCylinderHead = new AIS_Shape (CylinderHead);
-       myAISContext->SetColor    (myAisCylinderHead, Quantity_NOC_WHITE, Standard_False);
-       myAISContext->SetMaterial (myAisCylinderHead, Graphic3d_NameOfMaterial_Plastified, Standard_False);
-       myAisEngineBlock  = new AIS_Shape (EngineBlock);
-       myAISContext->SetColor(myAisEngineBlock,   Quantity_NOC_WHITE, Standard_False);
-       myAISContext->SetMaterial(myAisEngineBlock,Graphic3d_NameOfMaterial_Plastified, Standard_False);
-
-       myAISContext->Display(myAisCylinderHead ,1,-1,Standard_False);
-       myAISContext->Display(myAisEngineBlock  ,1,-1,Standard_False);
-
-       myAisCrankArm     = new AIS_Shape (CrankArm);
-       myAISContext->SetColor   (myAisCrankArm, Quantity_NOC_HOTPINK, Standard_False);
-       myAISContext->SetMaterial(myAisCrankArm, Graphic3d_NameOfMaterial_Plastified, Standard_False);
-       myAisPiston       = new AIS_Shape (Piston);
-       myAISContext->SetColor   (myAisPiston  , Quantity_NOC_WHITE, Standard_False);
-       myAISContext->SetMaterial(myAisPiston  , Graphic3d_NameOfMaterial_Plastified, Standard_False);
-       myAisPropeller    = new AIS_Shape (Propeller);
-       myAISContext->SetColor   (myAisPropeller, Quantity_NOC_RED, Standard_False);
-       myAISContext->SetMaterial(myAisPropeller, Graphic3d_NameOfMaterial_Plastified, Standard_False);
-
-       myAISContext->Display(myAisCrankArm,  1,-1,Standard_False);
-       myAISContext->Display(myAisPropeller, 1,-1,Standard_False);
-       myAISContext->Display(myAisPiston,    1,-1,Standard_True);
-
-       m_Xmin = -300. ;
-       m_Ymin = -300. ;
-       m_Zmin = -300. ;
-       m_Xmax = +300. ;
-       m_Ymax = +300. ;
-       m_Zmax = +300. ;
-
-       m_bIsGridLoaded = FALSE;
-}
-
-CAnimationDoc::~CAnimationDoc()
-{
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CAnimationDoc diagnostics
-
-#ifdef _DEBUG
-void CAnimationDoc::AssertValid() const
-{
-       CDocument::AssertValid();
-}
-
-void CAnimationDoc::Dump(CDumpContext& dc) const
-{
-       CDocument::Dump(dc);
-}
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// CAnimationDoc commands
-//-----------------------------------------------------------------------------------------
-//
-//-----------------------------------------------------------------------------------------
-
-//-----------------------------------------------------------------------------------------
-//
-//-----------------------------------------------------------------------------------------
-void  CAnimationDoc::Popup(const Standard_Integer  /*x*/,
-                           const Standard_Integer  /*y*/ ,
-                           const Handle(V3d_View)& /*aView*/)
-{
-}
-
-void CAnimationDoc::OnMyTimer (double theTimeSec) 
-{
-       // TODO: Add your message handler code here and/or call default
-       
-       Standard_Real angleA;
-       Standard_Real angleB;
-       Standard_Real X;
-       gp_Ax1 Ax1(gp_Pnt(0,0,0),gp_Vec(0,0,1));
-
-       angleA = thread * theTimeSec;
-       X = Sin(angleA)*3/8;
-       angleB = atan(X / Sqrt(-X * X + 1));
-       Standard_Real decal(25*0.6);
-
-       
-       //Build a transformation on the display
-    gp_Trsf aPropellerTrsf;
-    aPropellerTrsf.SetRotation(Ax1,angleA);
-       myAISContext->SetLocation(myAisPropeller,aPropellerTrsf);
-       
-       gp_Ax3 base(gp_Pnt(3*decal*(1-Cos(angleA)),-3*decal*Sin(angleA),0),gp_Vec(0,0,1),gp_Vec(1,0,0));
-    gp_Trsf aCrankArmTrsf;
-    aCrankArmTrsf.SetTransformation(   base.Rotated(gp_Ax1(gp_Pnt(3*decal,0,0),gp_Dir(0,0,1)),angleB));
-       myAISContext->SetLocation(myAisCrankArm,aCrankArmTrsf);
-
-    gp_Trsf aPistonTrsf;
-    aPistonTrsf.SetTranslation(gp_Vec(-3*decal*(1-Cos(angleA))-8*decal*(1-Cos(angleB)),0,0));
-       myAISContext->SetLocation(myAisPiston,aPistonTrsf);
-}
-
-void CAnimationDoc::OnShading() 
-{
-       
-       POSITION position = GetFirstViewPosition();
-       CView* pCurrentView = (CView*)GetNextView(position);
-       ((CAnimationView3D *)pCurrentView)              ->OnStop();
-
-       CShadingDialog aDial(NULL);
-
-       aDial.myvalue=int((myDeviation-0.00003)/0.00003);
-       
-       if (aDial.DoModal()==IDOK) {
-               Standard_Real dev(aDial.myvalue);
-               myDeviation = 0.00003+0.00003*dev;
-
-               myAISContext->SetDeviationCoefficient(myDeviation);
-        TopoDS_Shape Propeller=myAisPropeller->Shape();
-               BRepTools::Clean(Propeller);
-               
-        myAisPropeller->Set(Propeller);
-        myAISContext->Deactivate(myAisPropeller);
-        myAISContext->Redisplay (myAisPropeller, Standard_True);
-       }
-       ((CAnimationView3D *)pCurrentView)->OnRestart();
-}
-
-
-void CAnimationDoc::OnThread() 
-{
-       POSITION position = GetFirstViewPosition();
-    CView* pCurrentView = (CView*)GetNextView(position);
-       ((CAnimationView3D *)pCurrentView)              ->OnStop();
-       CThreadDialog aThreadDial(NULL);
-       if (aThreadDial.DoModal()==IDOK) {
-               thread = aThreadDial.m_Angle;
-       }
-
-       ((CAnimationView3D *)pCurrentView)->OnRestart();
-}
-
-
-void CAnimationDoc::OnFileLoadgrid() 
-{
-       // TODO: Add your command handler code here
-
-  CFileDialog dlg(TRUE,
-                 NULL,
-                 NULL,
-                 OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
-                 L"Points Files (*.pnt;*.pnts)|*.pnt; *.pnts|All Files (*.*)|*.*||",
-                 NULL );
-
-       CString initdir;
-       initdir.GetEnvironmentVariable (L"CSF_OCCTDataPath");
-       initdir += L"\\occ\\";
-
-       dlg.m_ofn.lpstrInitialDir = initdir;
-
-
-  if (dlg.DoModal() == IDOK)
-    {
-      CString C = dlg.GetPathName();
-      SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
-
-      Handle(Geom_BSplineSurface) mySurface;
-
-      if(grid2surf(C,mySurface ))
-       {
-         //To set the minimum value of the surface to Z=0 
-         Standard_Real Tolerance = 0.0;
-         Bnd_Box B;
-      TopoDS_Face myFace;
-         GeomAdaptor_Surface GAS(mySurface);
-
-         
-         BndLib_AddSurface::Add(GAS,Tolerance,B);
-
-         Standard_Real Xmin,Xmax,Ymin,Ymax,Zmin,Zmax;
-         B.Get(Xmin,Ymin,Zmin,Xmax,Ymax,Zmax);
-         TopoDS_Solid Box = BRepPrimAPI_MakeBox(gp_Pnt(Xmin,Ymin,0),Xmax-Xmin,Ymax-Ymin,50).Solid();
-
-         gp_Vec V(gp_Pnt(0,0,Zmin),gp_Pnt(0,0,0));
-         
-         gp_Trsf T;
-         T.SetTranslation(V);
-         mySurface->Transform(T);
-         BRepBuilderAPI_MakeFace aMkFace(mySurface, Precision::Confusion());
-         myFace = aMkFace.Face();
-
-         // Remove all other shapes
-         myAISContext->RemoveAll (Standard_False);
-
-         Handle(AIS_Shape) myAISSurface = new AIS_Shape(myFace);
-
-         myAISContext->Display(myAISSurface, Standard_False);
-         myAISContext->Deactivate(myAISSurface,Standard_False);
-         myAISContext->SetColor (myAISSurface,Quantity_NOC_WHITE,Standard_False);
-         myAISContext->SetMaterial (myAISSurface,Graphic3d_NameOfMaterial_Stone,Standard_False);
-         myAISContext->SetDisplayMode (myAISSurface,1,Standard_False);
-         myAISContext->SetDeviationCoefficient (0.001);
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       CAnimationView3D *pView = (CAnimationView3D *) pChild->GetActiveView();
-       pView->FitAll();
-
-      Bnd_Box Boite;
-      BRepBndLib::Add(myFace, Boite);
-      Boite.Get(m_Xmin, m_Ymin, m_Zmin, m_Xmax, m_Ymax, m_Zmax);
-         
-         m_bIsGridLoaded = TRUE;
-       }       
-      SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
-}
-
-
-}
-
-void CAnimationDoc::OnUpdateWalkWalkthru(CCmdUI* pCmdUI) 
-{
-       // TODO: Add your command update UI handler code here
-  CString aValue;
-  pCmdUI->SetCheck (aValue.GetEnvironmentVariable (L"CSF_WALKTHROUGH") ? 1 : 0);
-}
diff --git a/samples/mfc/standard/09_Animation/src/AnimationDoc.h b/samples/mfc/standard/09_Animation/src/AnimationDoc.h
deleted file mode 100755 (executable)
index ce27112..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-// Animation.h : interface of the CAnimationDoc class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_ANIMATIONDOC_H__79840E86_1001_11D2_B8C1_0000F87A77C1__INCLUDED_)
-#define AFX_ANIMATIONDOC_H__79840E86_1001_11D2_B8C1_0000F87A77C1__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include "OCC_BaseDoc.h"
-#include "AIS_ConnectedInteractive.hxx"
-#include "Geom_Transformation.hxx"
-
-
-class CAnimationDoc : public OCC_BaseDoc
-{
-public:
-  void Popup (const Standard_Integer x,
-              const Standard_Integer y,
-              const Handle(V3d_View)& aView);
-
-protected: // create from serialization only
-  CAnimationDoc();
-  DECLARE_DYNCREATE(CAnimationDoc)
-
-// Implementation
-public:
-  virtual ~CAnimationDoc();
-#ifdef _DEBUG
-  virtual void AssertValid() const;
-  virtual void Dump(CDumpContext& dc) const;
-#endif
-
-// Generated message map functions
-protected:
-  //{{AFX_MSG(CAnimationDoc)
-  afx_msg void OnShading();
-  afx_msg void OnThread();
-  afx_msg void OnFileLoadgrid();
-  afx_msg void OnUpdateWalkWalkthru(CCmdUI* pCmdUI);
-  //}}AFX_MSG
-  DECLARE_MESSAGE_MAP()
-
-private:
-  Handle(AIS_Shape) myAisCrankArm     ;
-  Handle(AIS_Shape) myAisCylinderHead ;
-  Handle(AIS_Shape) myAisPropeller    ;
-  Handle(AIS_Shape) myAisPiston       ;
-  Handle(AIS_Shape) myAisEngineBlock  ;
-
-  Standard_Real     myDeviation;
-
-public:
-  void OnMyTimer (double theTimeSec);
-  Standard_Integer thread;
-  double m_Xmin, m_Ymin, m_Zmin, m_Xmax, m_Ymax, m_Zmax;
-  BOOL m_bIsGridLoaded;
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_ANIMATIONDOC_H__79840E86_1001_11D2_B8C1_0000F87A77C1__INCLUDED_)
diff --git a/samples/mfc/standard/09_Animation/src/AnimationView3D.cpp b/samples/mfc/standard/09_Animation/src/AnimationView3D.cpp
deleted file mode 100755 (executable)
index 1cc55b6..0000000
+++ /dev/null
@@ -1,568 +0,0 @@
-// AnimationView3D.cpp : implementation of the CAnimationView3D class
-//
-
-#include "stdafx.h"
-
-#include "AnimationView3D.h"
-
-#include "AnimationApp.h"
-#include "ShadingDialog.h"
-#include "AnimationDoc.h"
-
-#include <AIS_RubberBand.hxx>
-
-#ifdef _DEBUG
-//#define new DEBUG_NEW by CasCade
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-static int rotCount = 0;
-
-// for elastic bean selection
-#define ValZWMin 1
-
-
-/////////////////////////////////////////////////////////////////////////////
-// CAnimationView3D
-
-IMPLEMENT_DYNCREATE(CAnimationView3D, CView)
-
-BEGIN_MESSAGE_MAP(CAnimationView3D, CView)
-       //{{AFX_MSG_MAP(CAnimationView3D)
-       ON_COMMAND(ID_BUTTONAxo, OnBUTTONAxo)
-       ON_COMMAND(ID_BUTTONBack, OnBUTTONBack)
-       ON_COMMAND(ID_BUTTONBottom, OnBUTTONBottom)
-       ON_COMMAND(ID_BUTTONFront, OnBUTTONFront)
-       ON_COMMAND(ID_BUTTONHlrOff, OnBUTTONHlrOff)
-       ON_COMMAND(ID_BUTTONHlrOn, OnBUTTONHlrOn)
-       ON_COMMAND(ID_BUTTONLeft, OnBUTTONLeft)
-       ON_COMMAND(ID_BUTTONPan, OnBUTTONPan)
-       ON_COMMAND(ID_BUTTONPanGlo, OnBUTTONPanGlo)
-       ON_COMMAND(ID_BUTTONReset, OnBUTTONReset)
-       ON_COMMAND(ID_BUTTONRight, OnBUTTONRight)
-       ON_COMMAND(ID_BUTTONRot, OnBUTTONRot)
-       ON_COMMAND(ID_BUTTONTop, OnBUTTONTop)
-       ON_COMMAND(ID_BUTTONZoomAll, OnBUTTONZoomAll)
-    ON_COMMAND(ID_FILE_EXPORT_IMAGE, OnFileExportImage)
-       ON_WM_SIZE()
-       ON_COMMAND(ID_BUTTONZoomProg, OnBUTTONZoomProg)
-       ON_COMMAND(ID_BUTTONZoomWin, OnBUTTONZoomWin)
-       ON_WM_MOUSEWHEEL()
-       ON_WM_LBUTTONDOWN()
-       ON_WM_LBUTTONUP()
-       ON_WM_MBUTTONDOWN()
-       ON_WM_MBUTTONUP()
-       ON_WM_MOUSEMOVE()
-       ON_WM_RBUTTONDOWN()
-       ON_WM_RBUTTONUP()
-       ON_UPDATE_COMMAND_UI(ID_BUTTONHlrOff, OnUpdateBUTTONHlrOff)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONHlrOn, OnUpdateBUTTONHlrOn)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONPanGlo, OnUpdateBUTTONPanGlo)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONPan, OnUpdateBUTTONPan)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONZoomProg, OnUpdateBUTTONZoomProg)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONZoomWin, OnUpdateBUTTONZoomWin)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONRot, OnUpdateBUTTONRot)
-
-       ON_COMMAND(ID_Modify_ChangeBackground     , OnChangeBackground)
-       ON_WM_TIMER()
-       ON_COMMAND(ID_STOP, OnStop)
-       ON_COMMAND(ID_RESTART, OnRestart)
-
-       ON_COMMAND(ID_BUTTONFly, OnBUTTONFly)
-       ON_COMMAND(ID_BUTTONTurn, OnBUTTONTurn)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONFly, OnUpdateBUTTONFly)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONTurn, OnUpdateBUTTONTurn)
-       //}}AFX_MSG_MAP
-// CasCade
-
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CAnimationView3D construction/destruction
-
-CAnimationView3D::CAnimationView3D()
-: myCurZoom (0.0),
-  myHlrModeIsOn (Standard_False),
-  myIsTurnStarted (Standard_False),
-  myUpdateRequests (0),
-  myCurrentMode  (CurrentAction3d_Nothing)
-{
-  myDefaultGestures = myMouseGestureMap;
-}
-
-CAnimationView3D::~CAnimationView3D()
-{
-    myView->Remove();
-}
-
-BOOL CAnimationView3D::PreCreateWindow(CREATESTRUCT& cs)
-{
-  // TODO: Modify the Window class or styles here by modifying
-  //  the CREATESTRUCT cs
-  cs.lpszClass = ::AfxRegisterWndClass(CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS | CS_OWNDC, ::LoadCursor(NULL, IDC_ARROW), NULL, NULL);
-  return CView::PreCreateWindow(cs);
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CAnimationView3D drawing
-
-
-// ================================================================
-// Function : update3dView
-// Purpose  :
-// ================================================================
-void CAnimationView3D::update3dView()
-{
-  if (myView.IsNull())
-  {
-    return;
-  }
-
-  if (++myUpdateRequests == 1)
-  {
-    Invalidate (FALSE);
-    UpdateWindow();
-  }
-}
-
-// ================================================================
-// Function : redraw3dView
-// Purpose  :
-// ================================================================
-void CAnimationView3D::redraw3dView()
-{
-  if (!myView.IsNull())
-  {
-    FlushViewEvents (GetDocument()->GetAISContext(), myView, true);
-  }
-}
-
-// ================================================================
-// Function : handleViewRedraw
-// Purpose  :
-// ================================================================
-void CAnimationView3D::handleViewRedraw (const Handle(AIS_InteractiveContext)& theCtx,
-                                         const Handle(V3d_View)& theView)
-{
-  myUpdateRequests = 0;
-  if (myAnimTimer.IsStarted())
-  {
-    GetDocument()->OnMyTimer (myAnimTimer.ElapsedTime());
-    setAskNextFrame();
-  }
-  AIS_ViewController::handleViewRedraw (theCtx, theView);
-}
-
-void CAnimationView3D::OnDraw(CDC* /*pDC*/)
-{
-  // always redraw immediate layer (dynamic highlighting) on Paint event,
-  // and redraw entire view content only when it is explicitly invalidated (V3d_View::Invalidate())
-  myView->InvalidateImmediate();
-  FlushViewEvents (GetDocument()->GetInteractiveContext(), myView, true);
-}
-
-void CAnimationView3D::OnInitialUpdate() 
-{
-  CView::OnInitialUpdate();
-
-  // TODO: Add your specialized code here and/or call the base class
-  //   myView = GetDocument()->GetViewer()->CreateView();
-  Handle(V3d_Viewer) aViewer = GetDocument()->GetViewer();
-  aViewer->SetDefaultTypeOfView (V3d_PERSPECTIVE);
-
-  myView = aViewer->CreateView();
-  myView->SetImmediateUpdate (false);
-
-  // store for restore state after rotation (witch is in Degenerated mode)
-  myHlrModeIsOn = myView->ComputedMode();
-
-  Handle(WNT_Window) aWNTWindow = new WNT_Window (GetSafeHwnd());
-  myView->SetWindow(aWNTWindow);
-  if (!aWNTWindow->IsMapped()) aWNTWindow->Map();
-
-  // store the mode ( nothing , dynamic zooming, dynamic ... )
-  myCurrentMode = CurrentAction3d_Nothing;
-
-  CFrameWnd* pParentFrm = GetParentFrame();
-  pParentFrm->ActivateFrame(SW_SHOWMAXIMIZED);
-}
-
-// =======================================================================
-// function : defineMouseGestures
-// purpose  :
-// =======================================================================
-void CAnimationView3D::defineMouseGestures()
-{
-  myMouseGestureMap.Clear();
-  switch (myCurrentMode)
-  {
-    case CurrentAction3d_Nothing:
-    {
-      myMouseGestureMap = myDefaultGestures;
-      break;
-    }
-    case CurrentAction3d_DynamicZooming:
-    {
-      myMouseGestureMap.Bind (Aspect_VKeyMouse_LeftButton, AIS_MouseGesture_Zoom);
-      break;
-    }
-    case CurrentAction3d_GlobalPanning:
-    {
-      break;
-    }
-    case CurrentAction3d_WindowZooming:
-    {
-      myMouseGestureMap.Bind (Aspect_VKeyMouse_LeftButton, AIS_MouseGesture_ZoomWindow);
-      break;
-    }
-    case CurrentAction3d_DynamicPanning:
-    {
-      myMouseGestureMap.Bind (Aspect_VKeyMouse_LeftButton, AIS_MouseGesture_Pan);
-      break;
-    }
-    case CurrentAction3d_DynamicRotation:
-    {
-      myMouseGestureMap.Bind (Aspect_VKeyMouse_LeftButton, AIS_MouseGesture_RotateOrbit);
-      break;
-    }
-    case CurrentAction3d_Fly:
-    {
-      myMouseGestureMap.Bind (Aspect_VKeyMouse_LeftButton, AIS_MouseGesture_RotateView);
-      break;
-    }
-  }
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CAnimationView3D diagnostics
-
-#ifdef _DEBUG
-void CAnimationView3D::AssertValid() const
-{
-       CView::AssertValid();
-}
-
-void CAnimationView3D::Dump(CDumpContext& dc) const
-{
-       CView::Dump(dc);
-}
-
-CAnimationDoc* CAnimationView3D::GetDocument() // non-debug version is inline
-{
-       ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CAnimationDoc)));
-       return (CAnimationDoc*)m_pDocument;
-}
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// CAnimationView3D message handlers
-void CAnimationView3D::OnFileExportImage()
-{
-  GetDocument()->ExportView (myView);
-}
-
-void CAnimationView3D::OnSize(UINT nType, int cx, int cy)
-{
-  CView::OnSize (nType, cx, cy);
-  if (cx != 0
-   && cy != 0
-   && !myView.IsNull())
-  {
-    myView->Window()->DoResize();
-    myView->MustBeResized();
-    myView->Invalidate();
-    update3dView();
-  }
-}
-
-void CAnimationView3D::OnBUTTONBack() 
-{ myView->SetProj(V3d_Ypos); } // See the back View
-void CAnimationView3D::OnBUTTONFront() 
-{ myView->SetProj(V3d_Yneg); } // See the front View
-
-void CAnimationView3D::OnBUTTONBottom() 
-{ myView->SetProj(V3d_Zneg); } // See the bottom View
-void CAnimationView3D::OnBUTTONTop() 
-{ myView->SetProj(V3d_Zpos); } // See the top View     
-
-void CAnimationView3D::OnBUTTONLeft() 
-{ myView->SetProj(V3d_Xneg); } // See the left View    
-void CAnimationView3D::OnBUTTONRight() 
-{ myView->SetProj(V3d_Xpos); } // See the right View
-
-void CAnimationView3D::OnBUTTONAxo() 
-{ myView->SetProj(V3d_XposYnegZpos); } // See the axonometric View
-
-void CAnimationView3D::OnBUTTONHlrOff() 
-{
-  myHlrModeIsOn = Standard_False;
-  myView->SetComputedMode (myHlrModeIsOn);
-  myView->Redraw();
-}
-
-void CAnimationView3D::OnBUTTONHlrOn() 
-{
-  SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
-  myHlrModeIsOn = Standard_True;
-  myView->SetComputedMode (myHlrModeIsOn);
-  myView->Redraw();
-  SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
-}
-
-void CAnimationView3D::OnBUTTONPan() 
-{  
-  setCurrentAction (CurrentAction3d_DynamicPanning); 
-}
-
-void CAnimationView3D::OnBUTTONPanGlo() 
-{
-  // save the current zoom value 
-  myCurZoom = myView->Scale();
-  // Do a Global Zoom 
-  myView->FitAll();
-  // Set the mode 
-  setCurrentAction (CurrentAction3d_GlobalPanning);
-}
-
-void CAnimationView3D::OnBUTTONReset() 
-{
-  myView->Reset(); 
-}
-
-void CAnimationView3D::OnBUTTONRot() 
-{   setCurrentAction (CurrentAction3d_DynamicRotation); }
-
-
-void CAnimationView3D::OnBUTTONZoomAll() 
-{
-  FitAll();
-}
-
-void CAnimationView3D::OnBUTTONZoomProg() 
-{  setCurrentAction (CurrentAction3d_DynamicZooming); }
-
-void CAnimationView3D::OnBUTTONZoomWin() 
-{  setCurrentAction (CurrentAction3d_WindowZooming); }
-
-void CAnimationView3D::OnBUTTONFly() 
-{  setCurrentAction (CurrentAction3d_Fly); }
-
-void CAnimationView3D::OnBUTTONTurn() 
-{  setCurrentAction (CurrentAction3d_Turn); }
-
-
-void CAnimationView3D::OnLButtonDown(UINT theFlags, CPoint thePoint) 
-{
-  const Aspect_VKeyFlags aFlags = WNT_Window::MouseKeyFlagsFromEvent (theFlags);
-  PressMouseButton (Graphic3d_Vec2i (thePoint.x, thePoint.y), Aspect_VKeyMouse_LeftButton, aFlags, false);
-  myClickPos.SetValues (thePoint.x, thePoint.y);
-  myIsTurnStarted = myCurrentMode == CurrentAction3d_Turn && aFlags == Aspect_VKeyFlags_NONE;
-  update3dView();
-}
-
-void CAnimationView3D::OnLButtonUp(UINT theFlags, CPoint thePoint) 
-{
-  const Aspect_VKeyFlags aFlags = WNT_Window::MouseKeyFlagsFromEvent (theFlags);
-  ReleaseMouseButton (Graphic3d_Vec2i (thePoint.x, thePoint.y), Aspect_VKeyMouse_LeftButton, aFlags, false);
-  if (myCurrentMode == CurrentAction3d_GlobalPanning)
-  {
-    myView->Place (thePoint.x, thePoint.y, myCurZoom);
-    myView->Invalidate();
-  }
-  if (myCurrentMode != CurrentAction3d_Nothing)
-  {
-    setCurrentAction (CurrentAction3d_Nothing);
-    myIsTurnStarted = false;
-  }
-  update3dView();
-}
-
-void CAnimationView3D::OnMButtonDown(UINT theFlags, CPoint thePoint) 
-{
-  const Aspect_VKeyFlags aFlags = WNT_Window::MouseKeyFlagsFromEvent (theFlags);
-  PressMouseButton (Graphic3d_Vec2i (thePoint.x, thePoint.y), Aspect_VKeyMouse_MiddleButton, aFlags, false);
-  update3dView();
-}
-
-void CAnimationView3D::OnMButtonUp(UINT theFlags, CPoint thePoint) 
-{
-  const Aspect_VKeyFlags aFlags = WNT_Window::MouseKeyFlagsFromEvent (theFlags);
-  ReleaseMouseButton (Graphic3d_Vec2i (thePoint.x, thePoint.y), Aspect_VKeyMouse_MiddleButton, aFlags, false);
-  update3dView();
-  if (myCurrentMode != CurrentAction3d_Nothing)
-  {
-    setCurrentAction (CurrentAction3d_Nothing);
-  }
-}
-
-void CAnimationView3D::OnRButtonDown(UINT theFlags, CPoint thePoint) 
-{
-  const Aspect_VKeyFlags aFlags = WNT_Window::MouseKeyFlagsFromEvent (theFlags);
-  PressMouseButton (Graphic3d_Vec2i (thePoint.x, thePoint.y), Aspect_VKeyMouse_RightButton, aFlags, false);
-  update3dView();
-  myClickPos.SetValues (thePoint.x, thePoint.y);
-}
-
-void CAnimationView3D::OnRButtonUp(UINT theFlags, CPoint thePoint) 
-{
-  const Aspect_VKeyFlags aFlags = WNT_Window::MouseKeyFlagsFromEvent (theFlags);
-  ReleaseMouseButton (Graphic3d_Vec2i (thePoint.x, thePoint.y), Aspect_VKeyMouse_RightButton, aFlags, false);
-  update3dView();
-  if (myCurrentMode != CurrentAction3d_Nothing)
-  {
-    setCurrentAction (CurrentAction3d_Nothing);
-  }
-  if (aFlags == Aspect_VKeyFlags_NONE
-   && (myClickPos - Graphic3d_Vec2i (thePoint.x, thePoint.y)).cwiseAbs().maxComp() <= 4)
-  {
-    GetDocument()->Popup (thePoint.x, thePoint.y, myView);
-  }
-}
-
-// =======================================================================
-// function : OnMouseWheel
-// purpose  :
-// =======================================================================
-BOOL CAnimationView3D::OnMouseWheel (UINT theFlags, short theDelta, CPoint thePoint)
-{
-  const Standard_Real aDeltaF = Standard_Real(theDelta) / Standard_Real(WHEEL_DELTA);
-  CPoint aCursorPnt = thePoint;
-  ScreenToClient (&aCursorPnt);
-  const Graphic3d_Vec2i  aPos (aCursorPnt.x, aCursorPnt.y);
-  const Aspect_VKeyFlags aFlags = WNT_Window::MouseKeyFlagsFromEvent (theFlags);
-  if (UpdateMouseScroll (Aspect_ScrollDelta (aPos, aDeltaF, aFlags)))
-  {
-    update3dView();
-  }
-  return true;
-}
-
-void CAnimationView3D::OnMouseMove(UINT theFlags, CPoint thePoint) 
-{
-  TRACKMOUSEEVENT aMouseEvent;          // for WM_MOUSELEAVE
-  aMouseEvent.cbSize = sizeof(aMouseEvent);
-  aMouseEvent.dwFlags = TME_LEAVE;
-  aMouseEvent.hwndTrack = m_hWnd;
-  aMouseEvent.dwHoverTime = HOVER_DEFAULT;
-  if (!::_TrackMouseEvent (&aMouseEvent)) { TRACE("Track ERROR!\n"); }
-
-  const Graphic3d_Vec2i aNewPnt (thePoint.x, thePoint.y);
-  const Aspect_VKeyFlags aFlags = WNT_Window::MouseKeyFlagsFromEvent (theFlags);
-  if (UpdateMousePosition (aNewPnt, PressedMouseButtons(), aFlags, false))
-  {
-    update3dView();
-  }
-
-  if (myIsTurnStarted)
-  {
-    Graphic3d_Vec2i aWinSize;
-    myView->Window()->Size (aWinSize.x(), aWinSize.y());
-    const Graphic3d_Vec2i aCenter = aWinSize / 2;
-    if (myClickPos != aCenter
-     && aNewPnt != aCenter
-     && aNewPnt != myClickPos)
-    {
-      const Graphic3d_Vec2i aVecFrom = myClickPos - aCenter;
-      const Graphic3d_Vec2i aVecTo   = aNewPnt - aCenter;
-      const gp_Dir aDirFrom (aVecFrom.x() / double(aWinSize.x() / 2), aVecFrom.y() / double(aWinSize.y() / 2), 0.0);
-      const gp_Dir aDirTo   (aVecTo.x()   / double(aWinSize.x() / 2),   aVecTo.y() / double(aWinSize.y() / 2), 0.0);
-      double anAngle = aDirFrom.AngleWithRef (aDirTo, gp::DZ());
-
-      myView->SetTwist (myView->Twist() + anAngle);
-      myView->Invalidate();
-      update3dView();
-      myClickPos = aNewPnt;
-    }
-  }
-}
-
-void CAnimationView3D::OnUpdateBUTTONHlrOff(CCmdUI* pCmdUI) 
-{
-  pCmdUI->SetCheck (!myHlrModeIsOn);
-  pCmdUI->Enable   (myHlrModeIsOn);
-}
-
-void CAnimationView3D::OnUpdateBUTTONHlrOn(CCmdUI* pCmdUI) 
-{
-  pCmdUI->SetCheck (myHlrModeIsOn);
-  pCmdUI->Enable   (!myHlrModeIsOn);
-}
-
-void CAnimationView3D::OnUpdateBUTTONPanGlo(CCmdUI* pCmdUI) 
-{
-    pCmdUI->SetCheck (myCurrentMode == CurrentAction3d_GlobalPanning);
-       pCmdUI->Enable   (myCurrentMode != CurrentAction3d_GlobalPanning);      
-       
-}
-
-void CAnimationView3D::OnUpdateBUTTONPan(CCmdUI* pCmdUI) 
-{
-    pCmdUI->SetCheck (myCurrentMode == CurrentAction3d_DynamicPanning);
-       pCmdUI->Enable   (myCurrentMode != CurrentAction3d_DynamicPanning );    
-}
-
-void CAnimationView3D::OnUpdateBUTTONZoomProg(CCmdUI* pCmdUI) 
-{
-    pCmdUI->SetCheck (myCurrentMode == CurrentAction3d_DynamicZooming );
-       pCmdUI->Enable   (myCurrentMode != CurrentAction3d_DynamicZooming);     
-}
-
-void CAnimationView3D::OnUpdateBUTTONZoomWin(CCmdUI* pCmdUI) 
-{
-    pCmdUI->SetCheck (myCurrentMode == CurrentAction3d_WindowZooming);
-       pCmdUI->Enable   (myCurrentMode != CurrentAction3d_WindowZooming);      
-}
-
-void CAnimationView3D::OnUpdateBUTTONRot(CCmdUI* pCmdUI) 
-{
-    pCmdUI->SetCheck (myCurrentMode == CurrentAction3d_DynamicRotation);
-       pCmdUI->Enable   (myCurrentMode != CurrentAction3d_DynamicRotation);    
-}
-
-void CAnimationView3D::OnUpdateBUTTONFly(CCmdUI* pCmdUI) 
-{
-       pCmdUI->Enable(true);
-    pCmdUI->SetCheck (myCurrentMode == CurrentAction3d_Fly);
-}
-
-void CAnimationView3D::OnUpdateBUTTONTurn(CCmdUI* pCmdUI) 
-{
-       pCmdUI->Enable(true);
-    pCmdUI->SetCheck (myCurrentMode == CurrentAction3d_Turn);
-}
-
-void CAnimationView3D::OnChangeBackground() 
-{
-       Standard_Real R1;
-       Standard_Real G1;
-       Standard_Real B1;
-    myView->BackgroundColor(Quantity_TOC_RGB,R1,G1,B1);
-       COLORREF m_clr ;
-       m_clr = RGB(R1*255,G1*255,B1*255);
-
-       CColorDialog dlgColor(m_clr);
-       if (dlgColor.DoModal() == IDOK)
-       {
-               m_clr = dlgColor.GetColor();
-               R1 = GetRValue(m_clr)/255.;
-               G1 = GetGValue(m_clr)/255.;
-               B1 = GetBValue(m_clr)/255.;
-        myView->SetBackgroundColor(Quantity_TOC_RGB,R1,G1,B1);
-       }
-    myView->Redraw();
-}
-
-//==========================================================================================
-//==========================================================================================
-//==========================================================================================
-
-void CAnimationView3D::OnStop() 
-{
-  myAnimTimer.Pause();
-}
-
-void CAnimationView3D::OnRestart() 
-{
-  myAnimTimer.Start();
-  update3dView();
-}
diff --git a/samples/mfc/standard/09_Animation/src/AnimationView3D.h b/samples/mfc/standard/09_Animation/src/AnimationView3D.h
deleted file mode 100755 (executable)
index 30db5da..0000000
+++ /dev/null
@@ -1,173 +0,0 @@
-// AnimationView.h : interface of the CAnimationView3D class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_ANIMATIONVIEW3D_H__79840E88_1001_11D2_B8C1_0000F87A77C1_3D_INCLUDED_)
-#define AFX_ANIMATIONVIEW3D_H__79840E88_1001_11D2_B8C1_0000F87A77C1_3D_INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#include "AnimationDoc.h"
-#include "..\..\Common\res\OCC_Resource.h"
-
-#include <AIS_AnimationTimer.hxx>
-#include <AIS_ViewController.hxx>
-
-class AIS_RubberBand;
-
-enum View3D_CurrentAction { 
-  CurrentAction3d_Nothing,
-  CurrentAction3d_DynamicZooming,
-  CurrentAction3d_WindowZooming,
-  CurrentAction3d_DynamicPanning,
-  CurrentAction3d_GlobalPanning,
-  CurrentAction3d_DynamicRotation,
-  CurrentAction3d_Fly,
-  CurrentAction3d_Turn
-};
-
-class CAnimationView3D : public CView, public AIS_ViewController
-{
-protected: // create from serialization only
-       CAnimationView3D();
-       DECLARE_DYNCREATE(CAnimationView3D)
-
-// Attributes
-public:
-       CAnimationDoc* GetDocument();
-
-// Operations
-public:
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(CAnimationView3D)
-       public:
-       void FitAll() {   if ( !myView.IsNull() ) myView->FitAll();  myView->ZFitAll(); };
-       virtual void OnDraw(CDC* pDC);  // overridden to draw this view
-       virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
-       virtual void OnInitialUpdate(); // CasCade
-       protected:
-
-       //}}AFX_VIRTUAL
-
-// Implementation
-public:
-       virtual ~CAnimationView3D();
-#ifdef _DEBUG
-       virtual void AssertValid() const;
-       virtual void Dump(CDumpContext& dc) const;
-#endif
-
-protected:
-       double m_dAngle;
-       BOOL m_bShift;
-
-// Generated message map functions
-protected:
-       //{{AFX_MSG(CAnimationView3D)
-       afx_msg void OnBUTTONAxo();
-       afx_msg void OnBUTTONBack();
-       afx_msg void OnBUTTONBottom();
-       afx_msg void OnBUTTONFront();
-       afx_msg void OnBUTTONHlrOff();
-       afx_msg void OnBUTTONHlrOn();
-       afx_msg void OnBUTTONLeft();
-       afx_msg void OnBUTTONPan();
-       afx_msg void OnBUTTONPanGlo();
-       afx_msg void OnBUTTONReset();
-       afx_msg void OnBUTTONRight();
-       afx_msg void OnBUTTONRot();
-       afx_msg void OnBUTTONTop();
-       afx_msg void OnBUTTONZoomAll();
-    afx_msg void OnFileExportImage();
-       afx_msg void OnSize(UINT nType, int cx, int cy);
-       afx_msg void OnBUTTONZoomProg();
-       afx_msg void OnBUTTONZoomWin();
-       afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint point);
-       afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
-       afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
-       afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
-       afx_msg void OnMButtonUp(UINT nFlags, CPoint point);
-       afx_msg void OnMouseMove(UINT nFlags, CPoint point);
-       afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
-       afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
-       afx_msg void OnUpdateBUTTONHlrOff(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONHlrOn(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONPanGlo(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONPan(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONZoomProg(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONZoomWin(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONRot(CCmdUI* pCmdUI);
-
-       afx_msg void OnChangeBackground();
-
-       afx_msg void OnBUTTONFly();
-       afx_msg void OnBUTTONTurn();
-       afx_msg void OnUpdateBUTTONFly(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONTurn(CCmdUI* pCmdUI);
-       //}}AFX_MSG
-       
-public :
-       afx_msg void OnStop();
-       afx_msg void OnRestart();
-protected:
-
-       DECLARE_MESSAGE_MAP()
-private:
-       Handle(V3d_View)     myView;
-public:
-       Handle(V3d_View)&    GetView() { return myView;};
-
-  //! Request view redrawing.
-  void update3dView();
-
-  //! Flush events and redraw view.
-  void redraw3dView();
-
-protected:
-
-  //! Handle view redraw.
-  virtual void handleViewRedraw (const Handle(AIS_InteractiveContext)& theCtx,
-                                 const Handle(V3d_View)& theView) Standard_OVERRIDE;
-
-protected:
-
-  //! Setup mouse gestures.
-  void defineMouseGestures();
-
-  //! Get current action.
-  View3D_CurrentAction getCurrentAction() const { return myCurrentMode; }
-
-  //! Set current action.
-  void setCurrentAction (View3D_CurrentAction theAction)
-  {
-    myCurrentMode = theAction;
-    defineMouseGestures();
-  }
-
-private:
-  AIS_AnimationTimer   myAnimTimer;
-  AIS_MouseGestureMap  myDefaultGestures;
-  Graphic3d_Vec2i      myClickPos;
-  Standard_Real        myCurZoom;
-  Standard_Boolean     myHlrModeIsOn;
-  Standard_Boolean     myIsTurnStarted;
-  unsigned int         myUpdateRequests; //!< counter for unhandled update requests
-
-  View3D_CurrentAction myCurrentMode;
-};
-
-#ifndef _DEBUG  // debug version in AnimationView.cpp
-inline CAnimationDoc* CAnimationView3D::GetDocument()
-   { return (CAnimationDoc*)m_pDocument; }
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_ANIMATIONVIEW3D_H__79840E88_1001_11D2_B8C1_0000F87A77C1_3D_INCLUDED_)
diff --git a/samples/mfc/standard/09_Animation/src/Fonc.cxx b/samples/mfc/standard/09_Animation/src/Fonc.cxx
deleted file mode 100755 (executable)
index e003e51..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-#include "stdafx.h"
-
-#include "Fonc.hxx"
-
-//=======================================================================
-//function : grid2surf
-//purpose  : grid2surf S FileName
-//           cf jm-oliva@paris3.matra-dtv.fr  ( Merci JMO )
-//=======================================================================
-
-Standard_Boolean grid2surf(CString ShapeName, Handle(Geom_BSplineSurface)& S)
-{
-  CString aFileName = ShapeName;
-  aFileName.Replace(L'\\', L'/');
-
-  Handle(TColStd_HArray2OfReal) H;  
-
-  Standard_Real    xmin, ymin, Dx, Dy;
-  H = ReadRegularGrid (aFileName, xmin, ymin, Dx, Dy);
-  GeomAPI_PointsToBSplineSurface MkSurf;
-  MkSurf.Interpolate(H->Array2(), xmin, Dx, ymin, Dy);
-  S = MkSurf.Surface();
-  return Standard_True;
-}
-
-//=======================================================================
-//function : ReadRegularGrid
-//purpose  : 
-//           cf jm-oliva@paris3.matra-dtv.fr  ( Merci JMO )
-//=======================================================================
-Handle(TColStd_HArray2OfReal) ReadRegularGrid(CString FileName,
-                                             Standard_Real& xmin,
-                                             Standard_Real& ymin,
-                                             Standard_Real& Deltax,
-                                             Standard_Real& Deltay)
-{
-  CString aFileName = FileName;
-  aFileName.Replace (L'\\', L'/');
-
-  Handle(TColStd_HArray2OfReal) H;
-  Standard_Integer              R1 = 1, R2, C1 = 1, C2, R, C;
-  Standard_Real                 x, y, z;
-
-  xmin = ymin = 10000000;
-  
-  FILE *fp = NULL;
-  _wfopen_s (&fp, aFileName, L"r");
-
-  if (fp) 
-    {
-      fscanf_s(fp, "%d %d", &R2, &C2);
-      std::cout << "Reading Grid : ( " << R2 << " , " << C2 << " )." << std::endl;
-      
-      H = new TColStd_HArray2OfReal(C1, C2, R1, R2);
-      
-      Standard_Real FirstX = 0.0;
-      Standard_Real FirstY = 0.0;
-      
-      for(R = R1; R <= R2; R++) 
-       {
-         for(C = C1; C <= C2; C++) 
-           {
-             fscanf_s(fp, "%lf %lf %lf ", &x, &y, &z);
-           
-             if(R == 1 && C == 1)
-               {       
-                 FirstX=x; 
-                 FirstY=y;
-               }
-
-             // First step for X
-             if(R == 1 && C == 2)
-               Deltax = x - FirstX;
-
-             // First step for Y
-             if(R == 2 && C == 1)
-               Deltay = y - FirstY;
-       
-             //        H->SetValue(R, C, z);
-             H->SetValue(C, R, z);
-             if(x < xmin) xmin = x;
-             if(y < ymin) ymin = y;
-           }
-       }
-      
-      std::cout << "Deltax = " << Deltax << std::endl;
-      std::cout << "Deltay = " << Deltay << std::endl;
-      
-      fclose(fp);
-    } 
-  else 
-    {
-      std::cout << "cannot open file : " << FileName << std::endl;
-    }
-  return H;
-}
diff --git a/samples/mfc/standard/09_Animation/src/Fonc.hxx b/samples/mfc/standard/09_Animation/src/Fonc.hxx
deleted file mode 100755 (executable)
index 85c0825..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-// File:       Functions.hxx
-// Created:    Tue Oct 07 09:23:55 1997
-// Author:     Stephane ROUTELOUS
-//             <s-routelous@muenchen.matra-dtv.fr>
-
-
-#include "StdAfx.h"
-
-#include <TopoDS_Compound.hxx>
-#include <BRep_Builder.hxx>
-#include <BRepAlgoAPI_Common.hxx>
-
-#include <TColgp_SequenceOfPnt.hxx>
-#include <gp_Pnt.hxx>
-#include <gp_Vec.hxx>
-#include <gp_Vec2d.hxx>
-#include <gp_Pnt2d.hxx>
-#include <Standard.hxx>
-#include <Precision.hxx>
-#include <Standard_Boolean.hxx>
-#include <Geom_BSplineSurface.hxx>
-#include <TColStd_HArray2OfReal.hxx>
-#include "GeomAPI_PointsToBSplineSurface.hxx"
-#include <stdio.h>
-#include <TColStd_HArray2OfReal.hxx>
-#include <TColgp_Array1OfPnt.hxx>
-#include <Geom_CartesianPoint.hxx>
-#include <AIS_Point.hxx>
-#include <GeomAPI_PointsToBSpline.hxx>
-#include <Geom_BSplineCurve.hxx>
-#include <BRepBuilderAPI_Transform.hxx>
-#include <TopoDS_Solid.hxx>
-#include <BRepAlgoAPI_Fuse.hxx>
-#include <BRepTools.hxx>
-#include <AIS_ListIteratorOfListOfInteractive.hxx>
-#include <AIS_InteractiveContext.hxx>
-
-
-Standard_Boolean grid2surf(CString ShapeName, Handle(Geom_BSplineSurface)& S);
-Handle(Geom_BSplineCurve) SetTransfo(Handle(Geom_BSplineCurve) aBSCurve);
-Handle(Geom_BSplineCurve) BuildBSplineCurve(Standard_Boolean DisplayPoints = Standard_True);
-Handle(TColStd_HArray2OfReal) ReadRegularGrid(CString FileName,
-                                             Standard_Real& xmin,
-                                             Standard_Real& ymin,
-                                             Standard_Real& Deltax,
-                                             Standard_Real& Deltay);
diff --git a/samples/mfc/standard/09_Animation/src/ShadingDialog.cpp b/samples/mfc/standard/09_Animation/src/ShadingDialog.cpp
deleted file mode 100755 (executable)
index 646e89e..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-// ShadingDialog.cpp : implementation file
-//
-
-#include "stdafx.h"
-#include "AnimationApp.h"
-#include "ShadingDialog.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CShadingDialog dialog
-
-
-CShadingDialog::CShadingDialog(CWnd* pParent /*=NULL*/)
-       : CDialog(CShadingDialog::IDD, pParent)
-{
-//     EnableAutomation();
-
-       //{{AFX_DATA_INIT(CShadingDialog)
-               // NOTE: the ClassWizard will add member initialization here
-       //}}AFX_DATA_INIT
-}
-
-
-void CShadingDialog::OnFinalRelease()
-{
-       // When the last reference for an automation object is released
-       // OnFinalRelease is called.  The base class will automatically
-       // deletes the object.  Add additional cleanup required for your
-       // object before calling the base class.
-
-       CDialog::OnFinalRelease();
-}
-
-void CShadingDialog::DoDataExchange(CDataExchange* pDX)
-{
-       CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(CShadingDialog)
-       DDX_Control(pDX, IDC_SLIDER1, m_Slide);
-       //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(CShadingDialog, CDialog)
-       //{{AFX_MSG_MAP(CShadingDialog)
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-BEGIN_DISPATCH_MAP(CShadingDialog, CDialog)
-       //{{AFX_DISPATCH_MAP(CShadingDialog)
-               // NOTE - the ClassWizard will add and remove mapping macros here.
-       //}}AFX_DISPATCH_MAP
-END_DISPATCH_MAP()
-
-// Note: we add support for IID_IShadingDialog to support typesafe binding
-//  from VBA.  This IID must match the GUID that is attached to the 
-//  dispinterface in the .ODL file.
-
-// {02819A09-10F2-11D2-B8C4-0000F87A77C1}
-static const IID IID_IShadingDialog =
-{ 0x2819a09, 0x10f2, 0x11d2, { 0xb8, 0xc4, 0x0, 0x0, 0xf8, 0x7a, 0x77, 0xc1 } };
-
-BEGIN_INTERFACE_MAP(CShadingDialog, CDialog)
-       INTERFACE_PART(CShadingDialog, IID_IShadingDialog, Dispatch)
-END_INTERFACE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CShadingDialog message handlers
-
-BOOL CShadingDialog::OnInitDialog() 
-{
-       CDialog::OnInitDialog();
-
-    m_Slide.SetRange(0,100);
-    m_Slide.SetTicFreq(100);
-    m_Slide.SetPos(myvalue);
-
-       //UpdateData(false);    
-       return TRUE;  // return TRUE unless you set the focus to a control
-                     // EXCEPTION: OCX Property Pages should return FALSE
-}
-
-
-
-void CShadingDialog::OnOK() 
-{
-       // TODO: Add extra validation here
-       UpdateData(TRUE);
-       // store the position in my variable
-    myvalue=  m_Slide.GetPos();
-       
-       CDialog::OnOK();
-}
diff --git a/samples/mfc/standard/09_Animation/src/ShadingDialog.h b/samples/mfc/standard/09_Animation/src/ShadingDialog.h
deleted file mode 100755 (executable)
index 9f519e6..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-#if !defined(AFX_SHADINGDIALOG_H__02819A0A_10F2_11D2_B8C4_0000F87A77C1__INCLUDED_)
-#define AFX_SHADINGDIALOG_H__02819A0A_10F2_11D2_B8C4_0000F87A77C1__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-// ShadingDialog.h : header file
-//
-
-/////////////////////////////////////////////////////////////////////////////
-// CShadingDialog dialog
-
-class CShadingDialog : public CDialog
-{
-// Construction
-public:
-       CShadingDialog(CWnd* pParent = NULL);   // standard constructor
-
-// Dialog Data
-       //{{AFX_DATA(CShadingDialog)
-       enum { IDD = IDD_ShadingBoxDialog };
-       CSliderCtrl     m_Slide;
-       int myvalue;
-       //}}AFX_DATA
-
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(CShadingDialog)
-       public:
-       virtual void OnFinalRelease();
-       protected:
-       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
-       //}}AFX_VIRTUAL
-
-// Implementation
-protected:
-
-       // Generated message map functions
-       //{{AFX_MSG(CShadingDialog)
-       virtual BOOL OnInitDialog();
-       virtual void OnOK();
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-       // Generated OLE dispatch map functions
-       //{{AFX_DISPATCH(CShadingDialog)
-               // NOTE - the ClassWizard will add and remove member functions here.
-       //}}AFX_DISPATCH
-       DECLARE_DISPATCH_MAP()
-       DECLARE_INTERFACE_MAP()
-};
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_SHADINGDIALOG_H__02819A0A_10F2_11D2_B8C4_0000F87A77C1__INCLUDED_)
diff --git a/samples/mfc/standard/09_Animation/src/StdAfx.cpp b/samples/mfc/standard/09_Animation/src/StdAfx.cpp
deleted file mode 100755 (executable)
index f40034a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// stdafx.cpp : source file that includes just the standard includes
-//     SampleDisplayAnimation.pch will be the pre-compiled header
-//     stdafx.obj will contain the pre-compiled type information
-
-#include "stdafx.h"
-
diff --git a/samples/mfc/standard/09_Animation/src/StdAfx.h b/samples/mfc/standard/09_Animation/src/StdAfx.h
deleted file mode 100755 (executable)
index 65c608a..0000000
+++ /dev/null
@@ -1,214 +0,0 @@
-// stdafx.h : include file for standard system include files,
-//  or project specific include files that are used frequently, but
-//      are changed infrequently
-//
-
-#if !defined(AFX_STDAFX_H__79840E80_1001_11D2_B8C1_0000F87A77C1__INCLUDED_)
-#define AFX_STDAFX_H__79840E80_1001_11D2_B8C1_0000F87A77C1__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-
-#define VC_EXTRALEAN           // Exclude rarely-used stuff from Windows headers
-
-#include <afxwin.h>         // MFC core and standard components
-#include <afxext.h>         // MFC extensions
-#include <afxdisp.h>        // MFC OLE automation classes
-#ifndef _AFX_NO_AFXCMN_SUPPORT
-#include <afxcmn.h>                    // MFC support for Windows Common Controls
-#endif // _AFX_NO_AFXCMN_SUPPORT
-
-
-
-// CasCade :
-
-enum CurrentAction3d { 
-  CurAction3d_Nothing,
-  CurAction3d_DynamicZooming,
-  CurAction3d_WindowZooming,
-  CurAction3d_DynamicPanning,
-  CurAction3d_GlobalPanning,
-  CurAction3d_DynamicRotation
-};
-
-
-#define DEFAULT_DEVIATIONCOEFFICIENT 0.001
-#define DEFAULT_DCBIG 0.005
-#define DEFAULT_DCVBIG 0.01
-#define DEFAULT_DCSMALL 0.0002
-#define DEFAULT_DCVSMALL 0.00004
-#define DEFAULT_COLOR Quantity_NOC_CYAN1
-#define DEFAULT_MATERIAL Graphic3d_NameOfMaterial_Plastered
-#define DEFAULT_BACKGROUNDCOLOR Quantity_NOC_MATRAGRAY
-#define DEFAULT_HILIGHTCOLOR Quantity_NOC_YELLOW
-
-#pragma warning(  disable : 4244 )        // Issue warning 4244
-#include <Standard_ShortReal.hxx>
-#pragma warning(  default : 4244 )        // Issue warning 4244
-
-#include <Standard.hxx>
-/*
-#ifndef Version15B
-# ifndef Version15D
-#  ifndef Version20
-#   define Version15B
-#  endif // Version20
-# endif // Version15D
-#endif // Version15B
-
-#pragma message ("=============================")
-#ifdef Version15B
-# pragma message ("Set the libs for version 1.5B")
-#endif // Version15B
-
-#ifdef Version15D
-# pragma message ("Set the libs for version 1.5D")
-#endif // Version15D
-
-#ifdef Version20
-# pragma message ("Set the libs for version 2.0 ")
-#endif // Version20
-#pragma message ("=============================")
-
-#ifdef Version15B
-# pragma comment (lib,"TKTop.lib")
-# pragma comment (lib,"TShort.lib")
-# pragma comment (lib,"TColQuantity.lib")
-#endif
-
-#ifdef Version15D
-# pragma comment (lib,"TKTop.lib")
-#endif
-
-#ifdef Version20
-# pragma comment (lib,"TKTop1.lib")
-# pragma comment (lib,"TKTop2.lib")
-#endif
-
-#pragma message ("Set the specific libs for the application")
-# pragma comment (lib,"TKPrs.lib")
-# pragma comment (lib,"TKGeom.lib")
-# pragma comment (lib,"TKGlt.lib")
-# pragma comment (lib,"TKGraphic.lib")
-# pragma comment (lib,"TKPrsMgr.lib")
-# pragma comment (lib,"TKViewers.lib")
-# pragma comment (lib,"TKSession.lib")
-# pragma comment (lib,"gp.lib")
-# pragma comment (lib,"TKernel.lib")
-# pragma comment (lib,"UnitsAPI.lib")
-# pragma comment (lib,"PTColStd.lib")
-# pragma comment (lib,"TKMgtShape.lib")
-# pragma comment (lib,"TKPShape.lib")
-# pragma comment (lib,"ShapeSchema.lib")
-# pragma comment (lib,"FSD.lib")
-# pragma comment (lib,"OSDriver.lib")
-# pragma comment (lib,"ObjMgt.lib")
-# pragma comment (lib,"TKXSBase.lib")
-# pragma comment (lib,"TKXSIGES.lib")
-# pragma comment (lib,"TKXS214.lib")
-*/
-
-#include <AIS_InteractiveContext.hxx>
-#include <AIS_InteractiveObject.hxx>
-#include <AIS_Shape.hxx>
-#include <AIS_Trihedron.hxx>
-
-#include <Aspect_Background.hxx>
-#include <Aspect_TypeOfline.hxx>
-#include <Aspect_WidthOfline.hxx>
-#include <Bnd_Box2d.hxx>
-#include <BndLib_Add2dCurve.hxx>
-#include <BRep_Builder.hxx>
-#include <BRepBuilderAPI.hxx>
-#include <BRepTools.hxx>
-#include <Standard_DefineHandle.hxx>
-#include <DsgPrs_LengthPresentation.hxx>
-#include <GCE2d_MakeSegment.hxx>
-#include <GCPnts_TangentialDeflection.hxx>
-#include <Geom_CartesianPoint.hxx>
-#include <Geom_Axis2Placement.hxx>
-#include <Geom2d_BezierCurve.hxx>
-#include <Geom2d_BSplineCurve.hxx>
-#include <Geom2d_Curve.hxx>
-#include <Geom2d_TrimmedCurve.hxx>
-#include <Geom2dAdaptor_Curve.hxx>
-#include <GeomAbs_CurveType.hxx>
-#include <GeomAdaptor_Curve.hxx>
-#include <GeomTools_Curve2dSet.hxx>
-#include <gp_Ax2d.hxx>
-#include <gp_Circ2d.hxx>
-#include <gp_Dir2d.hxx>
-#include <gp_Lin2d.hxx>
-#include <gp_Pnt2d.hxx>
-#include <gp_Vec.hxx>
-#include <gp_Vec2d.hxx>
-#include <OSD_Environment.hxx>
-#include <Precision.hxx>
-#include <Prs3d_Drawer.hxx>
-#include <Prs3d_IsoAspect.hxx>
-#include <Prs3d_LineAspect.hxx>
-#include <Prs3d_Text.hxx>
-#include <Quantity_NameOfColor.hxx>
-#include <Quantity_TypeOfColor.hxx>
-#include <SelectMgr_EntityOwner.hxx>
-#include <SelectMgr_SelectableObject.hxx>
-#include <SelectMgr_Selection.hxx>
-#include <SelectMgr_SelectionManager.hxx>
-// had for opencascade
-//#include <Session_Selection.hxx>
-//#include <Session_Session.hxx>
-//#include <ShapeSchema.hxx>
-
-#include <Standard_Boolean.hxx>
-#include <Standard_CString.hxx>
-#include <Standard_ErrorHandler.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_IStream.hxx>
-#include <Standard_Macro.hxx>
-#include <Standard_NotImplemented.hxx>
-#include <Standard_OStream.hxx>
-#include <Standard_Real.hxx>
-#include <StdPrs_Curve.hxx>
-#include <StdPrs_Point.hxx>
-#include <StdPrs_PoleCurve.hxx>
-#include <TCollection_AsciiString.hxx>
-#include <TColgp_Array1OfPnt2d.hxx>
-#include <TColgp_HArray1OfPnt2d.hxx>
-#include <TCollection_AsciiString.hxx>
-#include <TColStd_HSequenceOfTransient.hxx>
-#include <TColStd_MapIteratorOfMapOfTransient.hxx>
-#include <TColStd_MapOfTransient.hxx>
-#include <TopExp_Explorer.hxx>
-#include <TopoDS.hxx>
-#include <TopoDS_Compound.hxx>
-#include <TopoDS_ListIteratorOfListOfShape.hxx>
-#include <TopoDS_Shape.hxx>
-#include <TopoDS_Solid.hxx>
-#include <TopTools_HSequenceOfShape.hxx>
-#include <UnitsAPI.hxx>
-#include <V3d_View.hxx>
-#include <V3d_Viewer.hxx>
-#include <WNT_Window.hxx>
-#include "HLRAlgo_Projector.hxx"
-
-#include <Geom_BSplineSurface.hxx>
-#include <TopoDS_Face.hxx>
-#include <TopoDS_Solid.hxx>
-#include <GeomAdaptor_Surface.hxx>
-#include <BndLib_AddSurface.hxx>
-#include <BRepPrimAPI_MakeBox.hxx>
-#include <BRepBuilderAPI_MakeFace.hxx>
-#include <BRepBndLib.hxx>
-
-#include "..\res\resource.h"
-
-//End CasCade
-
-
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_STDAFX_H__79840E80_1001_11D2_B8C1_0000F87A77C1__INCLUDED_)
diff --git a/samples/mfc/standard/09_Animation/src/ThreadDialog.cpp b/samples/mfc/standard/09_Animation/src/ThreadDialog.cpp
deleted file mode 100755 (executable)
index 77af262..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-// ThreadDialog.cpp : implementation file
-//
-
-#include "stdafx.h"
-#include "AnimationApp.h"
-#include "ThreadDialog.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CThreadDialog dialog
-
-
-CThreadDialog::CThreadDialog(CWnd* pParent /*=NULL*/)
-       : CDialog(CThreadDialog::IDD, pParent)
-{
-//     EnableAutomation();
-
-       //{{AFX_DATA_INIT(CThreadDialog)
-       m_Angle = 4;
-       //}}AFX_DATA_INIT
-}
-
-
-void CThreadDialog::OnFinalRelease()
-{
-       // When the last reference for an automation object is released
-       // OnFinalRelease is called.  The base class will automatically
-       // deletes the object.  Add additional cleanup required for your
-       // object before calling the base class.
-
-       CDialog::OnFinalRelease();
-}
-
-void CThreadDialog::DoDataExchange(CDataExchange* pDX)
-{
-       CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(CThreadDialog)
-       DDX_Text(pDX, IDC_Angle, m_Angle);
-       DDV_MinMaxUInt(pDX, m_Angle, 1, 60);
-       //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(CThreadDialog, CDialog)
-       //{{AFX_MSG_MAP(CThreadDialog)
-               // NOTE: the ClassWizard will add message map macros here
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-BEGIN_DISPATCH_MAP(CThreadDialog, CDialog)
-       //{{AFX_DISPATCH_MAP(CThreadDialog)
-               // NOTE - the ClassWizard will add and remove mapping macros here.
-       //}}AFX_DISPATCH_MAP
-END_DISPATCH_MAP()
-
-// Note: we add support for IID_IThreadDialog to support typesafe binding
-//  from VBA.  This IID must match the GUID that is attached to the 
-//  dispinterface in the .ODL file.
-
-// {539445D7-1182-11D2-B8C9-0000F87A77C1}
-static const IID IID_IThreadDialog =
-{ 0x539445d7, 0x1182, 0x11d2, { 0xb8, 0xc9, 0x0, 0x0, 0xf8, 0x7a, 0x77, 0xc1 } };
-
-BEGIN_INTERFACE_MAP(CThreadDialog, CDialog)
-       INTERFACE_PART(CThreadDialog, IID_IThreadDialog, Dispatch)
-END_INTERFACE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CThreadDialog message handlers
diff --git a/samples/mfc/standard/09_Animation/src/ThreadDialog.h b/samples/mfc/standard/09_Animation/src/ThreadDialog.h
deleted file mode 100755 (executable)
index 2a0a2a5..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#if !defined(AFX_THREADDIALOG_H__539445D8_1182_11D2_B8C9_0000F87A77C1__INCLUDED_)
-#define AFX_THREADDIALOG_H__539445D8_1182_11D2_B8C9_0000F87A77C1__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-// ThreadDialog.h : header file
-//
-
-/////////////////////////////////////////////////////////////////////////////
-// CThreadDialog dialog
-
-class CThreadDialog : public CDialog
-{
-// Construction
-public:
-       CThreadDialog(CWnd* pParent = NULL);   // standard constructor
-
-// Dialog Data
-       //{{AFX_DATA(CThreadDialog)
-       enum { IDD = IDD_ThreadBoxDialog };
-       UINT    m_Angle;
-       //}}AFX_DATA
-
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(CThreadDialog)
-       public:
-       virtual void OnFinalRelease();
-       protected:
-       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
-       //}}AFX_VIRTUAL
-
-// Implementation
-protected:
-
-       // Generated message map functions
-       //{{AFX_MSG(CThreadDialog)
-               // NOTE: the ClassWizard will add member functions here
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-       // Generated OLE dispatch map functions
-       //{{AFX_DISPATCH(CThreadDialog)
-               // NOTE - the ClassWizard will add and remove member functions here.
-       //}}AFX_DISPATCH
-       DECLARE_DISPATCH_MAP()
-       DECLARE_INTERFACE_MAP()
-};
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_THREADDIALOG_H__539445D8_1182_11D2_B8C9_0000F87A77C1__INCLUDED_)
diff --git a/samples/mfc/standard/10_Convert/CMakeLists.txt b/samples/mfc/standard/10_Convert/CMakeLists.txt
deleted file mode 100644 (file)
index d6f6735..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-cmake_minimum_required (VERSION 2.6)
-
-project (Convert)
-
-add_definitions (-DWINVER=0x0501 -DUNICODE -D_UNICODE)
-set (CMAKE_MFC_FLAG 2)
-
-set (Convert_SRC_DIR      ${MFC_STANDARD_SAMPLES_DIR}/10_Convert/src)
-set (Convert_HEADER_FILES ${Convert_SRC_DIR}/Convert_Presentation.h
-                          ${Convert_SRC_DIR}/OCCDemo_Presentation.h)
-set (Convert_SOURCE_FILES ${Convert_SRC_DIR}/Convert_Presentation.cpp
-                          ${Convert_SRC_DIR}/OCCDemo_Presentation.cpp )
-
-set (ISESSION_SUBDIR       ${Convert_SRC_DIR}/ISession)
-set (ISESSION_HEADER_FILES ${ISESSION_SUBDIR}/ISession_Curve.h)
-set (ISESSION_SOURCE_FILES ${ISESSION_SUBDIR}/ISession_Curve.cpp)
-
-set (WNT_SUBDIR       ${Convert_SRC_DIR}/WNT)
-set (WNT_HEADER_FILES ${WNT_SUBDIR}/resource.h
-                      ${WNT_SUBDIR}/MainFrm.h
-                      ${WNT_SUBDIR}/OCCDemo.h
-                      ${WNT_SUBDIR}/OCCDemoDoc.h
-                      ${WNT_SUBDIR}/OCCDemoView.h
-                      ${WNT_SUBDIR}/ResultDialog.h
-                      ${WNT_SUBDIR}/StdAfx.h)
-set (WNT_SOURCE_FILES ${WNT_SUBDIR}/MainFrm.cpp
-                      ${WNT_SUBDIR}/OCCDemo.cpp
-                      ${WNT_SUBDIR}/OCCDemoDoc.cpp
-                      ${WNT_SUBDIR}/OCCDemoView.cpp
-                      ${WNT_SUBDIR}/ResultDialog.cpp
-                      ${WNT_SUBDIR}/StdAfx.cpp)
-
-set (WNT_RESOURCE_DIR   ${WNT_SUBDIR}/res)
-set (WNT_RESOURCE_FILES ${WNT_RESOURCE_DIR}/OCCDemo.ico
-                        ${WNT_RESOURCE_DIR}/occlogo.bmp
-                        ${WNT_RESOURCE_DIR}/toolbar.bmp
-                        ${WNT_RESOURCE_DIR}/toolbar1.bmp
-                        ${WNT_RESOURCE_DIR}/logopen.bmp
-                        ${WNT_RESOURCE_DIR}/OCCDemo.rc2
-                        ${WNT_SUBDIR}/OCCDemo.rc)
-
-# groups in the VS solution
-source_group ("Source Files" FILES ${Convert_SOURCE_FILES}
-                                   ${COMMON_WINMAIN_FILE})
-
-source_group ("Source Files\\ISession" FILES ${ISESSION_SOURCE_FILES})
-source_group ("Source Files\\WNT" FILES ${WNT_SOURCE_FILES})
-
-source_group ("Header Files" FILES ${Convert_HEADER_FILES} )
-source_group ("Header Files\\ISession" FILES ${ISESSION_HEADER_FILES} )
-source_group ("Header Files\\WNT" FILES ${WNT_HEADER_FILES})
-
-source_group ("Resource Files" FILES ${WNT_RESOURCE_FILES})
-
-add_executable (Convert WIN32 ${Convert_SOURCE_FILES}
-                              ${Convert_HEADER_FILES}
-                              ${ISESSION_SOURCE_FILES}
-                              ${ISESSION_HEADER_FILES}
-                              ${WNT_SOURCE_FILES}
-                              ${WNT_HEADER_FILES}
-                              ${COMMON_WINMAIN_FILE}
-                              ${WNT_RESOURCE_FILES} )
-
-set_property (TARGET Convert PROPERTY FOLDER "Samples/mfc")
-
-if (SINGLE_GENERATOR)
-  install (TARGETS Convert DESTINATION "${INSTALL_DIR_BIN}")
-else()
-  install (TARGETS Convert
-           CONFIGURATIONS Release RelWithDebInfo
-           DESTINATION "${INSTALL_DIR_BIN}")
-  install (TARGETS Convert
-           CONFIGURATIONS Debug
-           DESTINATION "${INSTALL_DIR_BIN}d")
-endif()
-
-include_directories (${CMAKE_BINARY_DIR}/inc
-                     ${Convert_SRC_DIR}
-                     ${ISESSION_SUBDIR}
-                     ${WNT_SUBDIR}
-                     ${MFC_STANDARD_SAMPLES_DIR}/Common)
-
-target_link_libraries (Convert mfcsample)
\ No newline at end of file
diff --git a/samples/mfc/standard/10_Convert/adm/win/vc10/Convert.vcxproj b/samples/mfc/standard/10_Convert/adm/win/vc10/Convert.vcxproj
deleted file mode 100644 (file)
index 858193b..0000000
+++ /dev/null
@@ -1,467 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup Label="ProjectConfigurations">
-    <ProjectConfiguration Include="Debug|Win32">
-      <Configuration>Debug</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Debug|x64">
-      <Configuration>Debug</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-    <ProjectConfiguration Include="Release|x64">
-      <Configuration>Release</Configuration>
-      <Platform>x64</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectGuid>{C527B648-F98D-42E5-9F59-251FD95D15A0}</ProjectGuid>
-    <RootNamespace>Convert</RootNamespace>
-    <Keyword>MFCProj</Keyword>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <UseOfMfc>Dynamic</UseOfMfc>
-    <CharacterSet>Unicode</CharacterSet>
-    <PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
-    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
-    <Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <PropertyGroup>
-    <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../../../win32\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\win32\obj\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">../../../../win64\$(VCFMT)\bin\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\win64\obj\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../../../../win32\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\win32\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
-    <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">../../../../win64\$(VCFMT)\bind\</OutDir>
-    <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\win64\objd\</IntDir>
-    <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\obj/Convert.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>../../../../;../../../../Common;../../../src/WNT;../../../src;../../../src/ISession;$(CSF_OCCTIncludePath);../../../Common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>
-      </PrecompiledHeader>
-      <PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\obj/Convert.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKGeomAlgo.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKBRep.lib;TKG2d.lib;TKG3d.lib;TKGeomBase.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bin/Convert.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ManifestFile>.\win32\obj\$(TargetFileName).intermediate.manifest</ManifestFile>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bin/Convert.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <OptimizeReferences>false</OptimizeReferences>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
-    <Midl>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\obj/Convert.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
-      <AdditionalIncludeDirectories>../../../../;../../../../Common;../../../src/WNT;../../../src;../../../src/ISession;$(CSF_OCCTIncludePath);../../../Common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <StringPooling>true</StringPooling>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <PrecompiledHeader>
-      </PrecompiledHeader>
-      <PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\obj/Convert.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\obj/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\obj/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\obj/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKGeomAlgo.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKBRep.lib;TKG2d.lib;TKG3d.lib;TKGeomBase.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bin/Convert.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ManifestFile>.\win64\obj\$(TargetFileName).intermediate.manifest</ManifestFile>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bin/Convert.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <OptimizeReferences>false</OptimizeReferences>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>Win32</TargetEnvironment>
-      <TypeLibraryName>.\win32\objd/Convert.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>../../../../;../../../../Common;../../../src/WNT;../../../src;../../../src/ISession;$(CSF_OCCTIncludePath);../../../Common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>
-      </PrecompiledHeader>
-      <PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win32\objd/Convert.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win32\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win32\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win32\objd/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKGeomAlgo.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKBRep.lib;TKG2d.lib;TKG3d.lib;TKGeomBase.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win32\$(VCFMT)\bind/Convert.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ManifestFile>.\win32\objd\$(TargetFileName).intermediate.manifest</ManifestFile>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win32\$(VCFMT)\bind/Convert.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
-    <Midl>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MkTypLibCompatible>true</MkTypLibCompatible>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <TargetEnvironment>X64</TargetEnvironment>
-      <TypeLibraryName>.\win64\objd/Convert.tlb</TypeLibraryName>
-      <HeaderFileName>
-      </HeaderFileName>
-    </Midl>
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <AdditionalIncludeDirectories>../../../../;../../../../Common;../../../src/WNT;../../../src;../../../src/ISession;$(CSF_OCCTIncludePath);../../../Common;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <PrecompiledHeader>
-      </PrecompiledHeader>
-      <PrecompiledHeaderFile>StdAfx.h</PrecompiledHeaderFile>
-      <PrecompiledHeaderOutputFile>.\win64\objd/Convert.pch</PrecompiledHeaderOutputFile>
-      <AssemblerListingLocation>.\win64\objd/</AssemblerListingLocation>
-      <ObjectFileName>.\win64\objd/</ObjectFileName>
-      <ProgramDataBaseFileName>.\win64\objd/</ProgramDataBaseFileName>
-      <WarningLevel>Level4</WarningLevel>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
-      <CompileAs>Default</CompileAs>
-    </ClCompile>
-    <ResourceCompile>
-      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Culture>0x0409</Culture>
-    </ResourceCompile>
-    <Link>
-      <AdditionalDependencies>TKVCAF.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKGeomAlgo.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;TKBRep.lib;TKG2d.lib;TKG3d.lib;TKGeomBase.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
-      <OutputFile>../../../../win64\$(VCFMT)\bind/Convert.exe</OutputFile>
-      <SuppressStartupBanner>true</SuppressStartupBanner>
-      <AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
-      <ManifestFile>.\win64\objd\$(TargetFileName).intermediate.manifest</ManifestFile>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <ProgramDatabaseFile>../../../../win64\$(VCFMT)\bind/Convert.pdb</ProgramDatabaseFile>
-      <SubSystem>Windows</SubSystem>
-      <TargetMachine>MachineX64</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\Convert_Presentation.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\ISession\ISession_Curve.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\WNT\MainFrm.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\WNT\OCCDemo.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\OCCDemo_Presentation.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\WNT\OCCDemoDoc.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\WNT\OCCDemoView.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\WNT\ResultDialog.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\WNT\StdAfx.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\src\Convert_Presentation.h" />
-    <ClInclude Include="..\..\..\src\ISession\ISession_Curve.h" />
-    <ClInclude Include="..\..\..\src\WNT\MainFrm.h" />
-    <ClInclude Include="..\..\..\src\WNT\OCCDemo.h" />
-    <ClInclude Include="..\..\..\src\OCCDemo_Presentation.h" />
-    <ClInclude Include="..\..\..\src\WNT\OCCDemoDoc.h" />
-    <ClInclude Include="..\..\..\src\WNT\OCCDemoView.h" />
-    <ClInclude Include="..\..\..\src\WNT\resource.h" />
-    <ClInclude Include="..\..\..\src\WNT\ResultDialog.h" />
-    <ClInclude Include="..\..\..\src\WNT\StdAfx.h" />
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\src\WNT\OCCDemo.rc">
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\mfc\15_AdditionalSamples\Common\WNT;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">\mfc\15_AdditionalSamples\Common\WNT;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\mfc\15_AdditionalSamples\Common\WNT;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">\mfc\15_AdditionalSamples\Common\WNT;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-    </ResourceCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\src\WNT\res\OCCDemo.ico" />
-    <None Include="..\..\..\src\WNT\res\OCCDemo.rc2" />
-    <None Include="..\..\..\src\WNT\res\occlogo.bmp" />
-    <None Include="..\..\..\src\WNT\res\toolbar.bmp" />
-    <None Include="..\..\..\src\WNT\res\toolbar1.bmp" />
-    <None Include="..\Common\WNT\res\logopen.bmp" />
-  </ItemGroup>
-  <ItemGroup>
-    <ProjectReference Include="..\..\..\..\mfcsample\adm\win\vc10\mfcsample.vcxproj">
-      <Project>{2d6cbbe8-6965-4016-b503-0d715ae26691}</Project>
-      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
-    </ProjectReference>
-  </ItemGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/10_Convert/adm/win/vc10/Convert.vcxproj.filters b/samples/mfc/standard/10_Convert/adm/win/vc10/Convert.vcxproj.filters
deleted file mode 100644 (file)
index 2423254..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
-    <Filter Include="Source Files">
-      <UniqueIdentifier>{b2e6cca6-ebc5-4e7e-b06c-1e047a9e5013}</UniqueIdentifier>
-      <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
-    </Filter>
-    <Filter Include="Header Files">
-      <UniqueIdentifier>{3f765fb2-98a9-4f66-b536-0f09b68eefce}</UniqueIdentifier>
-      <Extensions>h;hpp;hxx;hm;inl</Extensions>
-    </Filter>
-    <Filter Include="Common Files">
-      <UniqueIdentifier>{44a1d1d0-2210-4fc3-9d12-694b98b3e218}</UniqueIdentifier>
-    </Filter>
-    <Filter Include="Common Files\Sources">
-      <UniqueIdentifier>{40f21a32-e9bf-4885-95d3-c8ee7a07c9ad}</UniqueIdentifier>
-    </Filter>
-    <Filter Include="Common Files\Headers">
-      <UniqueIdentifier>{8cb29cb9-5584-4028-9405-cd74b6d71fb5}</UniqueIdentifier>
-    </Filter>
-    <Filter Include="Common Files\Resource Files">
-      <UniqueIdentifier>{83444696-f610-4476-9d6b-1fed4444557f}</UniqueIdentifier>
-    </Filter>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\..\src\Convert_Presentation.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\ISession\ISession_Curve.cpp">
-      <Filter>Common Files\Sources</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\WNT\MainFrm.cpp">
-      <Filter>Common Files\Sources</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\WNT\OCCDemo.cpp">
-      <Filter>Common Files\Sources</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\OCCDemo_Presentation.cpp">
-      <Filter>Common Files\Sources</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\WNT\OCCDemoDoc.cpp">
-      <Filter>Common Files\Sources</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\WNT\OCCDemoView.cpp">
-      <Filter>Common Files\Sources</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\WNT\ResultDialog.cpp">
-      <Filter>Common Files\Sources</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\src\WNT\StdAfx.cpp">
-      <Filter>Common Files\Sources</Filter>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\..\src\Convert_Presentation.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\ISession\ISession_Curve.h">
-      <Filter>Common Files\Headers</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\WNT\MainFrm.h">
-      <Filter>Common Files\Headers</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\WNT\OCCDemo.h">
-      <Filter>Common Files\Headers</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\OCCDemo_Presentation.h">
-      <Filter>Common Files\Headers</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\WNT\OCCDemoDoc.h">
-      <Filter>Common Files\Headers</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\WNT\OCCDemoView.h">
-      <Filter>Common Files\Headers</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\WNT\resource.h">
-      <Filter>Common Files\Headers</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\WNT\ResultDialog.h">
-      <Filter>Common Files\Headers</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\src\WNT\StdAfx.h">
-      <Filter>Common Files\Headers</Filter>
-    </ClInclude>
-  </ItemGroup>
-  <ItemGroup>
-    <ResourceCompile Include="..\..\..\src\WNT\OCCDemo.rc">
-      <Filter>Common Files\Sources</Filter>
-    </ResourceCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="..\..\..\src\WNT\res\OCCDemo.ico">
-      <Filter>Common Files\Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\src\WNT\res\OCCDemo.rc2">
-      <Filter>Common Files\Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\src\WNT\res\occlogo.bmp">
-      <Filter>Common Files\Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\src\WNT\res\toolbar.bmp">
-      <Filter>Common Files\Resource Files</Filter>
-    </None>
-    <None Include="..\..\..\src\WNT\res\toolbar1.bmp">
-      <Filter>Common Files\Resource Files</Filter>
-    </None>
-    <None Include="..\Common\WNT\res\logopen.bmp" />
-  </ItemGroup>
-</Project>
\ No newline at end of file
diff --git a/samples/mfc/standard/10_Convert/src/Convert_Presentation.cpp b/samples/mfc/standard/10_Convert/src/Convert_Presentation.cpp
deleted file mode 100755 (executable)
index bbc65b1..0000000
+++ /dev/null
@@ -1,459 +0,0 @@
-// Convert_Presentation.cpp: implementation of the Convert_Presentation class.
-// Conversion of elementary geometry to BSpline curves and surfaces
-//////////////////////////////////////////////////////////////////////
-
-#include "stdafx.h"
-#include "Convert_Presentation.h"
-
-#include <Quantity_Color.hxx>
-
-#include <gp_Dir.hxx>
-#include <gp_Ax2.hxx>
-
-#include <TColgp_Array1OfPnt.hxx>
-#include <TColStd_Array1OfReal.hxx>
-#include <TColgp_Array2OfPnt.hxx>
-#include <TColStd_Array2OfReal.hxx>
-
-#include <GeomConvert.hxx>
-
-#include <Geom_BezierSurface.hxx>
-#include <Geom_Circle.hxx>
-#include <Geom_Ellipse.hxx>
-#include <Geom_BezierCurve.hxx>
-#include <Geom_BSplineCurve.hxx>
-#include <Geom_SphericalSurface.hxx>
-#include <Geom_CylindricalSurface.hxx>
-#include <Geom_RectangularTrimmedSurface.hxx>
-#include <Geom_SurfaceOfRevolution.hxx>
-#include <Geom_ToroidalSurface.hxx>
-#include <Geom_ConicalSurface.hxx>
-#include <Geom_BSplineSurface.hxx>
-
-
-// Initialization of global variable with an instance of this class
-OCCDemo_Presentation* OCCDemo_Presentation::Current = new Convert_Presentation;
-
-// Initialization of array of samples
-const Convert_Presentation::PSampleFuncType Convert_Presentation::SampleFuncs[] =
-{
-  &Convert_Presentation::sampleCircle,
-  &Convert_Presentation::sampleEllipse,
-  &Convert_Presentation::sampleBezier,
-  &Convert_Presentation::sampleBezierSurface,
-  &Convert_Presentation::sampleCylindricalSurface,
-  &Convert_Presentation::sampleRevolSurface,
-  &Convert_Presentation::sampleToroidalSurface,
-  &Convert_Presentation::sampleConicalSurface,
-  &Convert_Presentation::sampleSphericalSurface
-};
-
-// Colors of objects
-static const Quantity_Color CurveColor       (1,1,0, Quantity_TOC_RGB);      // yellow
-static const Quantity_Color SurfaceColor     (1,1,0, Quantity_TOC_RGB);      // yellow
-static const Quantity_Color BSplineColor     (1,0.647,0, Quantity_TOC_RGB);  // orange
-static const Quantity_Color BSplineSurfaceColor (0,0,1, Quantity_TOC_RGB);   // blue
-
-#define EOL "\r\n"
-
-//////////////////////////////////////////////////////////////////////
-// Construction/Destruction
-//////////////////////////////////////////////////////////////////////
-
-Convert_Presentation::Convert_Presentation()
-{
-  setName ("Conversion to BSpline curves and surfaces");
-  myIndex = 0;
-  myNbFuncs = sizeof(SampleFuncs)/sizeof(PSampleFuncType);
-  myNbSamples = myNbFuncs;
-  FitMode = true;
-}
-
-//////////////////////////////////////////////////////////////////////
-// Sample execution
-//////////////////////////////////////////////////////////////////////
-
-void Convert_Presentation::DoSample()
-{
-       ((COCCDemoApp*) AfxGetApp())->SetSampleName (L"Convert");
-  ((COCCDemoApp*) AfxGetApp())->SetSamplePath (L"..\\..\\10_Convert");
-       getAISContext()->EraseAll (Standard_True);
-       if (myIndex >=0 && myIndex < myNbFuncs)
-    (this->*SampleFuncs[myIndex])();
-}
-
-//================================================================
-// Function : Convert_Presentation::drawSurfaceAndItsBSpline
-// Purpose  : 
-//================================================================
-void Convert_Presentation::drawSurfaceAndItsBSpline(const Handle(Geom_Surface) & theSurface, 
-                                                    const Standard_CString theName, 
-                                                    TCollection_AsciiString& theText)
-{
-  TCollection_AsciiString aTitle ("Converting ");
-  aTitle += theName;
-  aTitle += " to BSpline surface";
-
-  theText += EOL
-    "  Handle(Geom_BSplineSurface) aBSplineSurface = " EOL
-    "    GeomConvert::SurfaceToBSplineSurface(aSurface);" EOL;
-
-  setResultTitle (aTitle.ToCString());
-  setResultText (theText.ToCString());
-
-  drawSurface (theSurface, SurfaceColor);
-
-  if (WAIT_A_LITTLE) return;
-
-  Handle(Geom_BSplineSurface) aBSplineSurface = GeomConvert::SurfaceToBSplineSurface(theSurface);
-
-  _ASSERTE(!aBSplineSurface.IsNull());
-
-  drawSurface (aBSplineSurface, BSplineSurfaceColor);
-}
-
-//================================================================
-// Function : Convert_Presentation::drawCurveAndItsBSpline
-// Purpose  : 
-//================================================================
-void Convert_Presentation::drawCurveAndItsBSpline(Handle(Geom_Curve) theCurve, 
-                                                  const Standard_CString theName, 
-                                                  TCollection_AsciiString& theText)
-{
-  TCollection_AsciiString aTitle ("Converting ");
-  aTitle += theName;
-  aTitle += " to BSpline curve";
-
-  theText += EOL
-    "  Handle(Geom_BSplineCurve) aBSpline = " EOL
-    "    GeomConvert::CurveToBSplineCurve(aCurve);" EOL;
-
-  setResultTitle (aTitle.ToCString());
-  setResultText (theText.ToCString());
-  
-  drawCurve (theCurve, CurveColor);
-  
-  if (WAIT_A_LITTLE) return;
-
-  Handle(Geom_Curve) aBSpline = GeomConvert::CurveToBSplineCurve(theCurve);
-
-  drawCurve (aBSpline, BSplineColor);
-}
-
-
-//////////////////////////////////////////////////////////////////////
-// Sample functions
-//////////////////////////////////////////////////////////////////////
-
-//================================================================
-// Function : Convert_Presentation::sampleCircle
-// Purpose  : 
-//================================================================
-void Convert_Presentation::sampleCircle()
-{
-  gp_Pnt aOrigin (0,0,0);
-  gp_Dir aDir (1,0,0);
-  gp_Ax2 aAxis (aOrigin, aDir);
-  Standard_Real aRadius = 300;
-  Handle(Geom_Circle) aCurve = new Geom_Circle (aAxis, aRadius);
-
-  TCollection_AsciiString aText (
-    "  gp_Pnt aOrigin (0,0,0);" EOL
-    "  gp_Dir aDir (1,0,0);" EOL
-    "  gp_Ax2 aAxis (aOrigin, aDir);" EOL
-    "  Standard_Real aRadius = 300;" EOL
-    "  Handle(Geom_Circle) aCurve = new Geom_Circle (aAxis, aRadius);" EOL
-    );
-  drawCurveAndItsBSpline (aCurve, "Circle", aText);
-}
-
-//================================================================
-// Function : Convert_Presentation::sampleEllipse
-// Purpose  : 
-//================================================================
-void Convert_Presentation::sampleEllipse()
-{
-  gp_Pnt aOrigin (0,0,0);
-  gp_Dir aDir (1,0,0);
-  gp_Ax2 aMajorAxis (aOrigin, aDir);
-  Standard_Real aMajorRadius = 300;
-  Standard_Real aMinorRadius = 150;
-  Handle(Geom_Ellipse) aCurve = 
-    new Geom_Ellipse (aMajorAxis, aMajorRadius, aMinorRadius);
-
-  TCollection_AsciiString aText (
-    "  gp_Pnt aOrigin (0,0,0);" EOL
-    "  gp_Dir aDir (1,0,0);" EOL
-    "  gp_Ax2 aAxis (aOrigin, aDir);" EOL
-    "  Standard_Real aMajorRadius = 300;" EOL
-    "  Standard_Real aMinorRadius = 150;" EOL
-    "  Handle(Geom_Ellipse) aCurve = " EOL
-    "    new Geom_Ellipse (aAxis, aMajorRadius, aMinorRadius);" EOL
-    );
-  drawCurveAndItsBSpline (aCurve, "Ellipse", aText);
-}
-
-//================================================================
-// Function : Convert_Presentation::sampleBezier
-// Purpose  : 
-//================================================================
-void Convert_Presentation::sampleBezier()
-{
-  TCollection_AsciiString aText (
-    "  Standard_Real aPolesCoords[][3] = {" EOL
-    "    {0,0,0},{0,1,0},{1,1,0},{1,2,0},{2,2,0},{2,1,0},{3,1,0},{3,0,0},{2,0,0},{2,-1,0}," EOL
-    "    {3,-1,0},{3,-2,0},{4,-2,0},{4,-1,0},{5,-1,0},{5,0,0},{6,0,0},{6,-1,0},{7,-1,0}," EOL
-    "    {7,0,0},{8,0,0},{8,1,0}" EOL
-    "  };" EOL
-    "  TColgp_Array1OfPnt aPoles (1, sizeof(aPolesCoords)/(sizeof(Standard_Real)*2));" EOL
-    " " EOL
-    "  for (Standard_Integer i=1; i <= aPoles.Upper(); i++)" EOL
-    "    aPoles(i) = gp_Pnt (aPolesCoords[i-1][0]*100, " EOL
-    "                        aPolesCoords[i-1][1]*100, " EOL
-    "                        aPolesCoords[i-1][2]*100);" EOL
-    "  " EOL
-    "  Handle(Geom_BezierCurve) aCurve = new Geom_BezierCurve (aPoles);" EOL
-    );
-
-  Standard_Real aPolesCoords[][3] = {
-    {0,0,0},{0,1,0},{1,1,0},{1,2,0},{2,2,0},{2,1,0},{3,1,0},{3,0,0},{2,0,0},{2,-1,0},
-    {3,-1,0},{3,-2,0},{4,-2,0},{4,-1,0},{5,-1,0},{5,0,0},{6,0,0},{6,-1,0},{7,-1,0},
-    {7,0,0},{8,0,0},{8,1,0}
-  };
-  TColgp_Array1OfPnt aPoles (1, sizeof(aPolesCoords)/(sizeof(Standard_Real)*3));
-  for (Standard_Integer i=1; i <= aPoles.Upper(); i++)
-    aPoles(i) = gp_Pnt (aPolesCoords[i-1][0]*150-500, 
-                        aPolesCoords[i-1][1]*150, 
-                        aPolesCoords[i-1][2]*150);
-  
-  Handle(Geom_BezierCurve) aCurve = new Geom_BezierCurve (aPoles);
-
-  drawCurveAndItsBSpline (aCurve, "BezierCurve", aText);
-}
-
-//================================================================
-// Function : Convert_Presentation::sampleBezierSurface
-// Purpose  : 
-//================================================================
-void Convert_Presentation::sampleBezierSurface()
-{
-  getAISContext()->EraseAll (Standard_True);
-
-  Standard_CString aName = "BezierSurface";
-  // Create a BezierSurface
-  TColgp_Array2OfPnt aPoles(1,2,1,4); // 8 points
-  TColStd_Array2OfReal aWeights(1,2,1,4);
-  // initializing array of points
-  aPoles.SetValue(1,1,gp_Pnt(0,10,0));     aPoles.SetValue(1,2,gp_Pnt(3.3,6.6,3));
-  aPoles.SetValue(1,3,gp_Pnt(6.6,6.6,-3)); aPoles.SetValue(1,4,gp_Pnt(10,10,0));
-  aPoles.SetValue(2,1,gp_Pnt(0,0,0));      aPoles.SetValue(2,2,gp_Pnt(3.3,3.3,-3));
-  aPoles.SetValue(2,3,gp_Pnt(6.6,3.3,3));  aPoles.SetValue(2,4,gp_Pnt(10,0,0));  
-  // scaling poles
-  for (Standard_Integer i=1; i <= aPoles.ColLength(); i++)
-    for (Standard_Integer j=1; j <= aPoles.RowLength(); j++)
-      aPoles(i,j).ChangeCoord() = aPoles(i,j).Coord() * 100 + gp_XYZ(-500,-500,0);
-  //initializing array of weights
-  aWeights.SetValue(1,1,1); aWeights.SetValue(1,2,3);
-  aWeights.SetValue(1,3,9); aWeights.SetValue(1,4,1);
-  aWeights.SetValue(2,1,1); aWeights.SetValue(2,2,2);
-  aWeights.SetValue(2,3,5); aWeights.SetValue(2,4,1);
-  Handle(Geom_BezierSurface) aSurface =
-    new Geom_BezierSurface(aPoles, aWeights);
-
-  TCollection_AsciiString aText (
-    "  // Create a BezierSurface" EOL
-    "  TColgp_Array2OfPnt aPoles(1,2,1,4); // 8 points" EOL
-    "  TColStd_Array2OfReal aWeights(1,2,1,4);" EOL
-    "  // initializing array of points" EOL
-    "  aPoles.SetValue(1,1,gp_Pnt(0,10,0));     aPoles.SetValue(1,2,gp_Pnt(3.3,6.6,3));" EOL
-    "  aPoles.SetValue(1,3,gp_Pnt(6.6,6.6,-3)); aPoles.SetValue(1,4,gp_Pnt(10,10,0));" EOL
-    "  aPoles.SetValue(2,1,gp_Pnt(0,0,0));      aPoles.SetValue(2,2,gp_Pnt(3.3,3.3,-3));" EOL
-    "  aPoles.SetValue(2,3,gp_Pnt(6.6,3.3,3));  aPoles.SetValue(2,4,gp_Pnt(10,0,0));  " EOL
-    "  // scaling poles" EOL
-    "  for (Standard_Integer i=1; i <= aPoles.ColLength(); i++)" EOL
-    "    for (Standard_Integer j=1; j <= aPoles.RowLength(); j++)" EOL
-    "      aPoles(i,j).ChangeCoord() = aPoles(i,j).Coord() * 100 + gp_XYZ(-500,-500,0);" EOL
-    "  //initializing array of weights" EOL
-    "  aWeights.SetValue(1,1,1); aWeights.SetValue(1,2,3);" EOL
-    "  aWeights.SetValue(1,3,9); aWeights.SetValue(1,4,1);" EOL
-    "  aWeights.SetValue(2,1,1); aWeights.SetValue(2,2,2);" EOL
-    "  aWeights.SetValue(2,3,5); aWeights.SetValue(2,4,1);" EOL
-    "  Handle(Geom_BezierSurface) aSurface =" EOL
-    "    new Geom_BezierSurface(aPoles, aWeights);" EOL
-    );
-
-  drawSurfaceAndItsBSpline (aSurface, aName, aText);
-}
-
-//================================================================
-// Function : OCCDemo_Presentation::sampleCylindricalSurface
-// Purpose  : 
-//================================================================
-void Convert_Presentation::sampleCylindricalSurface()
-{
-  getAISContext()->EraseAll (Standard_True);
-
-  Standard_CString aName = "Cylindrical Surface";
-  TCollection_AsciiString aText (
-    "  // creating an axis parallel to Y axis" EOL
-    "  gp_Ax3 anAx(gp_Pnt(0,0,0), gp_Dir(0,1,0));" EOL EOL
-
-    "  // creating a cylindrical surface along anAx with radius = 100" EOL
-    "  Handle(Geom_CylindricalSurface) aCylSurface = new Geom_CylindricalSurface(anAx, 100);" EOL EOL
-
-    "  // only finit surfaces can be converted to BSpline surfaces, " EOL
-    "  // cylindrical surface is infinite, it must be trimmed" EOL
-    "  Handle(Geom_RectangularTrimmedSurface) aSurface = " EOL
-    "    new Geom_RectangularTrimmedSurface(aCylSurface, 0, 2*PI, -1000, 1000, Standard_True, Standard_True);" EOL);
-
-  // creating an axis parallel to Y axis
-  gp_Ax3 anAx(gp_Pnt(0,0,0), gp_Dir(0,1,0));
-
-  // creating a cylindrical surface along anAx with radius = 4
-  Handle(Geom_CylindricalSurface) aCylSurface = new Geom_CylindricalSurface(anAx, 100);
-
-  // only finit surfaces can be converted to BSpline surfaces, 
-  // cylindrical surface is infinite, it must be trimmed
-  Handle(Geom_RectangularTrimmedSurface) aSurface = 
-    new Geom_RectangularTrimmedSurface(aCylSurface, 0, 2*M_PI, -1000, 1000, Standard_True, Standard_True);
-  
-  drawSurfaceAndItsBSpline(aSurface, aName, aText);
-}
-
-//================================================================
-// Function : OCCDemo_Presentation::sampleRevolSurface
-// Purpose  : 
-//================================================================
-void Convert_Presentation::sampleRevolSurface()
-{
-  FitMode=false;
-  ResetView();
-  TranslateView(-176.84682, -102.12892);
-  SetViewScale(0.69326);
-
-  getAISContext()->EraseAll (Standard_True);
-
-  Standard_CString aName = "Surface of revolution";
-  TCollection_AsciiString aText (
-    "  // creating a curve for revolution.  Let it be a Bezier curve." EOL
-    "  Handle(Geom_BezierCurve) aBezierCurve;" EOL EOL
-
-    "  // array of the bezier curve poles" EOL
-    "  TColgp_Array1OfPnt aPoles(1,4);" EOL
-    "  // array of the poles' weights" EOL
-    "  TColStd_Array1OfReal aWeights(1,4);" EOL EOL
-
-    "  aPoles(1) = gp_Pnt(0, 0, 0);      aWeights(1) = 1;" EOL
-    "  aPoles(2) = gp_Pnt(150, 250, 0);  aWeights(2) =75;" EOL
-    "  aPoles(3) = gp_Pnt(350, 150, 0);  aWeights(3) =120;" EOL
-    "  aPoles(4) = gp_Pnt(500, 500, 0);  aWeights(4) = 1;" EOL EOL
-
-    "  // creating a bezier curve" EOL
-    "  aBezierCurve = new Geom_BezierCurve(aPoles, aWeights);" EOL EOL
-
-    "  // creating a surface of revolution of the bezier curve around Y axis" EOL
-    "  gp_Ax1 anAx(gp_Pnt(0, 0, 0), gp_Dir(0,1,0));" EOL
-    "  Handle(Geom_SurfaceOfRevolution) aSurface = new Geom_SurfaceOfRevolution(aBezierCurve, anAx);" EOL
-    );
-  
-  // array of the bezier curve poles
-  TColgp_Array1OfPnt aPoles(1,4);
-  // array of the poles' weights
-  TColStd_Array1OfReal aWeights(1,4);
-
-  aPoles(1) = gp_Pnt(0, 0, 0);      aWeights(1) = 1;
-  aPoles(2) = gp_Pnt(150, 250, 0);  aWeights(2) =75;
-  aPoles(3) = gp_Pnt(350, 150, 0);  aWeights(3) =120;
-  aPoles(4) = gp_Pnt(500, 500, 0);  aWeights(4) = 1;
-
-  Handle(Geom_Curve) aBezierCurve = new Geom_BezierCurve(aPoles, aWeights);
-  drawCurve(aBezierCurve);
-
-  // creating a surface of revolution of the bezier curve around Y axis
-  gp_Ax1 anAx(gp_Pnt(0,0,0), gp_Dir(0,1,0));
-  Handle(Geom_SurfaceOfRevolution) aSurface = new Geom_SurfaceOfRevolution(aBezierCurve, anAx);
-
-  drawSurfaceAndItsBSpline (aSurface, aName, aText);
-  FitMode=true;
-}
-
-//================================================================
-// Function : Convert_Presentation::sampleToroidalSurface
-// Purpose  : 
-//================================================================
-void Convert_Presentation::sampleToroidalSurface()
-{
-  getAISContext()->EraseAll (Standard_True);
-
-  Standard_CString aName = "Toroidal surface";
-  TCollection_AsciiString aText (
-    "  // creating an axis parallel to Y axis" EOL
-    "  gp_Ax3 anAx(gp_Pnt(0,0,0), gp_Dir(0,1,0));" EOL
-    "  // creating a toroidal surface with major radius = 240 and minor radius = 120" EOL
-    "  Handle(Geom_ToroidalSurface) aSurface = new Geom_ToroidalSurface(anAx, 240, 120);" EOL);
-
-  // creating an axis parallel to Y axis 
-  gp_Ax3 anAx(gp_Pnt(0,0,0), gp_Dir(0,1,0)); 
-  // creating a toroidal surface with major radius = 240 and minor radius = 120
-  Handle(Geom_ToroidalSurface) aSurface = new Geom_ToroidalSurface(anAx, 240, 120);
-
-  drawSurfaceAndItsBSpline(aSurface, aName, aText);
-}
-
-//================================================================
-// Function : Convert_Presentation::sampleConicalSurface
-// Purpose  : 
-//================================================================
-void Convert_Presentation::sampleConicalSurface()
-{
-  getAISContext()->EraseAll (Standard_True);
-
-  Standard_CString aName = "Conical surface";
-  TCollection_AsciiString aText (
-    "  // creating an axis parallel to Z axis" EOL
-    "  gp_Ax3 anAx(gp_Pnt(0,0,0), gp_Dir(0,0,1)); " EOL
-    "  // creating a conical surface with base radius = 10 and angle = 20 deg" EOL
-    "  Handle(Geom_ConicalSurface) aConicalSurface = new Geom_ConicalSurface(anAx,PI/9., 10);" EOL EOL
-
-    "  // only finit surfaces can be converted to BSpline surfaces, " EOL
-    "  // conical surface is infinite, it must be trimmed" EOL
-    "  Handle(Geom_RectangularTrimmedSurface) aSurface = " EOL
-    "    new Geom_RectangularTrimmedSurface(aConicalSurface, 0, 2*PI, -1000, 1000, Standard_True, Standard_True);" EOL);
-
-  // creating an axis parallel to Z axis 
-  gp_Ax3 anAx(gp_Pnt(0,0,0), gp_Dir(0,0,1)); 
-  // creating a conical surface with base radius = 10 and angle = 20 deg
-  Handle(Geom_ConicalSurface) aConicalSurface = new Geom_ConicalSurface(anAx,M_PI/9., 10);
-
-  // only finit surfaces can be converted to BSpline surfaces, 
-  // conical surface is infinite, it must be trimmed
-  Handle(Geom_RectangularTrimmedSurface) aSurface = 
-    new Geom_RectangularTrimmedSurface(aConicalSurface, 0, 2*M_PI, -1000, 1000, Standard_True, Standard_True);
-
-  drawSurfaceAndItsBSpline(aSurface, aName, aText);
-}
-
-//================================================================
-// Function : Convert_Presentation::sampleSphericalSurface
-// Purpose  : 
-//================================================================
-void Convert_Presentation::sampleSphericalSurface()
-{
-  getAISContext()->EraseAll (Standard_True);
-
-  Standard_CString aName = "Spherical surface";
-  TCollection_AsciiString aText (
-    "// creating an axis parallel to Z axis" EOL
-    "gp_Ax3 anAx(gp_Pnt(0,0,0), gp_Dir(0,0,1));" EOL
-    "// creating a spherical surface with radius = 300" EOL
-    "Handle(Geom_SphericalSurface) aSurface = new Geom_SphericalSurface(anAx,300);" EOL);
-
-  // creating an axis parallel to Z axis 
-  gp_Ax3 anAx(gp_Pnt(0,0,0), gp_Dir(0,0,1)); 
-  // creating a spherical surface with radius = 300
-  Handle(Geom_SphericalSurface) aSurface = new Geom_SphericalSurface(anAx,300);
-
-  drawSurfaceAndItsBSpline(aSurface, aName, aText);
-}
-
diff --git a/samples/mfc/standard/10_Convert/src/Convert_Presentation.h b/samples/mfc/standard/10_Convert/src/Convert_Presentation.h
deleted file mode 100755 (executable)
index 1652113..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-// Convert_Presentation.h: interface for the Convert_Presentation class.
-// Conversion of elementary geometry to BSpline curves and surfaces
-//////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_Convert_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
-#define AFX_Convert_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-#include <OCCDemo_Presentation.h>
-#include <Geom_Curve.hxx>
-#include <Geom_Surface.hxx>
-
-class Quantity_Color;
-
-class Convert_Presentation : public OCCDemo_Presentation
-{
-public:
-  // Construction
-  Convert_Presentation();
-
-public:
-  // Iteration on samples
-  virtual void DoSample();
-  // one phase of iterations
-
-private:
-  // Sample functions
-  void sampleCircle();
-  void sampleEllipse();
-  void sampleBezier();
-  void sampleBezierSurface();
-  void sampleCylindricalSurface();
-  void sampleRevolSurface();
-  void sampleToroidalSurface();
-  void sampleConicalSurface(); 
-  void sampleSphericalSurface(); 
-
-  void drawCurveAndItsBSpline (Handle(Geom_Curve) theCurve, 
-    const Standard_CString theName, TCollection_AsciiString& theText);
-
-  void drawSurfaceAndItsBSpline (const Handle(Geom_Surface) & theSurface, 
-    const Standard_CString theName, TCollection_AsciiString& theText);
-
-private:
-  // Array of pointers to sample functions
-  typedef void (Convert_Presentation::*PSampleFuncType)();
-  static const PSampleFuncType SampleFuncs[];
-
-  int myNbFuncs;
-};
-
-#endif // !defined(AFX_Convert_Presentation_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
diff --git a/samples/mfc/standard/10_Convert/src/ISession/ISession_Curve.cpp b/samples/mfc/standard/10_Convert/src/ISession/ISession_Curve.cpp
deleted file mode 100755 (executable)
index 6d6fb6d..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-// ISession_Curve.cpp: implementation of the ISession_Curve class.
-//
-//////////////////////////////////////////////////////////////////////
-
-#include "stdafx.h"
-#include "ISession_Curve.h"
-#include <Prs3d_LineAspect.hxx>
-#include <StdPrs_Curve.hxx>
-#include <GeomAdaptor_Curve.hxx>
-#include <Prs3d_Drawer.hxx>
-#include <Prs3d_ArrowAspect.hxx>
-
-IMPLEMENT_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
-
-#ifdef _DEBUG
-#undef THIS_FILE
-static char THIS_FILE[]=__FILE__;
-#endif
-
-//////////////////////////////////////////////////////////////////////
-// Construction/Destruction
-//////////////////////////////////////////////////////////////////////
-
-
-ISession_Curve::ISession_Curve(const Handle(Geom_Curve)& aCurve)
-:AIS_InteractiveObject(),myCurve(aCurve)
-{
-}
-
-ISession_Curve::~ISession_Curve()
-{
-
-}
-void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager)& /*aPresentationManager*/,
-                             const Handle(Prs3d_Presentation)& aPresentation,
-                             const Standard_Integer /*aMode*/)
-{
-  GeomAdaptor_Curve anAdaptorCurve(myCurve);
-  if (hasOwnColor)
-    myDrawer->LineAspect()->SetColor (myDrawer->Color());
-  myDrawer->Link()->SetDiscretisation(100);
-  myDrawer->Link()->SetMaximalParameterValue(500);
-
-  StdPrs_Curve::Add (aPresentation, anAdaptorCurve, myDrawer);
-}
-
-void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
-                                     const Standard_Integer /*aMode*/) 
-{ 
-}
-
-
diff --git a/samples/mfc/standard/10_Convert/src/ISession/ISession_Curve.h b/samples/mfc/standard/10_Convert/src/ISession/ISession_Curve.h
deleted file mode 100755 (executable)
index c1c955f..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-// ISession_Curve.h: interface for the ISession_Curve class.
-//
-//////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_ISESSION_CURVE_H__F981CB93_A3CC_11D1_8DA3_0800369C8A03__INCLUDED_)
-#define AFX_ISESSION_CURVE_H__F981CB93_A3CC_11D1_8DA3_0800369C8A03__INCLUDED_
-
-#if _MSC_VER >= 1000
-#pragma once
-#endif // _MSC_VER >= 1000
-#include <Standard_Macro.hxx>
-#include <Standard_DefineHandle.hxx>
-#include <AIS_InteractiveObject.hxx>
-#include <Geom_Curve.hxx>
-class ISession_Curve;
-DEFINE_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
-
-class ISession_Curve : public AIS_InteractiveObject  
-{
-public:
-       ISession_Curve(const Handle(Geom_Curve)& aCurve);
-       virtual ~ISession_Curve();
-DEFINE_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
-private:
-
-Standard_EXPORT virtual  void Compute(const Handle(PrsMgr_PresentationManager)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0) ;
-void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer aMode) ;
-
-Handle(Geom_Curve) myCurve;
-};
-
-#endif // !defined(AFX_ISESSION_CURVE_H__F981CB93_A3CC_11D1_8DA3_0800369C8A03__INCLUDED_)
diff --git a/samples/mfc/standard/10_Convert/src/OCCDemo_Presentation.cpp b/samples/mfc/standard/10_Convert/src/OCCDemo_Presentation.cpp
deleted file mode 100755 (executable)
index ed10730..0000000
+++ /dev/null
@@ -1,324 +0,0 @@
-// OCCDemo_Presentation.cpp: implementation of the OCCDemo_Presentation class.
-// This is a base class for all presentations
-//////////////////////////////////////////////////////////////////////
-
-#include "stdafx.h"
-#include "OCCDemo_Presentation.h"
-#include "OCCDemoView.h"
-#include "ISession_Curve.h"
-
-#include <AIS_InteractiveObject.hxx>
-#include <Geom_Surface.hxx>
-#include <Geom_Curve.hxx>
-#include <Geom2d_Curve.hxx>
-#include <Quantity_Color.hxx>
-#include <AIS_Shape.hxx>
-#include <BRepBuilderAPI_MakeFace.hxx>
-#include <Precision.hxx>
-#include <Geom_Line.hxx>
-#include <Geom_TrimmedCurve.hxx>
-#include <Prs3d_Drawer.hxx>
-#include <Prs3d_ArrowAspect.hxx>
-#include <AIS_Point.hxx>
-#include <Geom_CartesianPoint.hxx>
-#include <Geom2d_OffsetCurve.hxx>
-#include <GeomAPI.hxx>
-#include <gp_Pln.hxx>
-#include <Geom_OffsetCurve.hxx>
-
-#define MAX_PARAM 1000 // if a surface parameter is infinite, it is assigned
-// this value in order to display the "infinit" object in the viewer.
-
-
-Standard_Boolean OCCDemo_Presentation::WaitForInput (unsigned long aMilliSeconds)
-{
-  //::WaitForSingleObject(::CreateEvent (NULL, FALSE, FALSE, NULL), aMilliSeconds);
-  if (::MsgWaitForMultipleObjects(0, NULL, FALSE, aMilliSeconds,
-    QS_KEY | QS_MOUSEBUTTON) != WAIT_TIMEOUT)
-  {
-    MSG msg;
-    if (::PeekMessage (&msg, NULL, 0, 0, PM_NOREMOVE))
-    {
-      if ( msg.message == WM_KEYUP ||
-           msg.message == WM_MOUSEFIRST ||
-           msg.message == WM_PAINT )
-      {
-        ::PeekMessage (&msg, NULL, 0, 0, PM_REMOVE);
-        return WaitForInput (aMilliSeconds);
-      }
-      else
-        return Standard_True;
-    }
-  }
-  return Standard_False;
-}
-
-//================================================================
-// Function : fixParam
-// Purpose  : assigns a finite value to theParam if it's infinite
-//            (equal to +- Precision::Infinite())
-//================================================================
-static Standard_Boolean fixParam(Standard_Real& theParam)
-{
-  Standard_Boolean aResult = Standard_False;
-  if (Precision::IsNegativeInfinite(theParam))
-  {
-    theParam = -MAX_PARAM;
-    aResult = Standard_True;
-  }
-  if (Precision::IsPositiveInfinite(theParam))
-  {
-    theParam = MAX_PARAM;
-    aResult = Standard_True;
-  }
-  return aResult;
-}
-
-//================================================================
-// Function : DrawSurface                           
-// Purpose  : displays a given geometric surface in 3d viewer
-//            (creates a finite face and displays it)
-//================================================================
-Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawSurface
-                                  (const Handle(Geom_Surface)& theSurface,
-                                   const Quantity_Color& theColor,
-                                   const Standard_Boolean toDisplay)
-{
-  Standard_Real u1, u2, v1, v2;
-  theSurface->Bounds(u1,u2,v1,v2);
-  fixParam(u1);
-  fixParam(u2);
-  fixParam(v1);
-  fixParam(v2);
-
-  Handle(AIS_Shape) aGraphicSurface = 
-    new AIS_Shape(BRepBuilderAPI_MakeFace (theSurface, u1, u2, v1, v2, Precision::Confusion()));
-
-  getAISContext()->SetMaterial(aGraphicSurface, Graphic3d_NOM_PLASTIC, toDisplay);
-  getAISContext()->SetColor(aGraphicSurface, theColor, toDisplay);
-  if (toDisplay) {
-    if (FitMode){
-               getAISContext()->Display (aGraphicSurface, Standard_False);
-               COCCDemoDoc::Fit();
-       }
-       else
-               getAISContext()->Display (aGraphicSurface, Standard_True);
-  }
-  
-  return aGraphicSurface;
-}
-
-//================================================================
-// Function : DrawCurve                                 
-// Purpose  : displays a given curve 3d
-//================================================================
-Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawCurve
-                                  (const Handle(Geom_Curve)& theCurve,
-                                   const Quantity_Color& theColor,
-                                   const Standard_Boolean toDisplay)
-{
-  Handle(ISession_Curve) aGraphicCurve = new ISession_Curve (theCurve);
-
-  getAISContext()->SetColor (aGraphicCurve, theColor, toDisplay);
-  aGraphicCurve->Attributes()->Link()->SetLineArrowDraw(Standard_False);
-  if (toDisplay){ 
-    if (FitMode){
-               getAISContext()->Display (aGraphicCurve, Standard_False);
-               COCCDemoDoc::Fit();
-       }
-       else
-               getAISContext()->Display (aGraphicCurve, Standard_True);
-  }
-
-  return aGraphicCurve;
-}
-
-//================================================================
-// Function : DrawCurve                                 
-// Purpose  : displays a given curve 2d
-//================================================================
-Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawCurve
-                                  (const Handle(Geom2d_Curve)& theCurve,
-                                   const Quantity_Color& theColor,
-                                   const Standard_Boolean toDisplay,
-                                   const gp_Ax2& aPosition)
-{
-  // create 3D curve in plane
-  Handle(Geom_Curve) aCurve3d;
-  if (theCurve->IsKind(STANDARD_TYPE(Geom2d_OffsetCurve)))
-  {
-    Handle(Geom2d_OffsetCurve) aOffCurve =
-      Handle(Geom2d_OffsetCurve)::DownCast(theCurve);
-    Handle(Geom_Curve) aBasCurve3d =
-      GeomAPI::To3d (aOffCurve->BasisCurve(), gp_Pln(aPosition));
-    Standard_Real aDist = aOffCurve->Offset();
-    aCurve3d = new Geom_OffsetCurve (aBasCurve3d, aDist, aPosition.Direction());
-  }
-  else
-  {
-    aCurve3d = GeomAPI::To3d (theCurve, gp_Pln(aPosition));
-  }
-  return drawCurve (aCurve3d, theColor, toDisplay);
-}
-
-//================================================================
-// Function : drawPoint
-// Purpose  : displays a given point
-//================================================================
-Handle(AIS_Point) OCCDemo_Presentation::drawPoint
-                                  (const gp_Pnt& aPnt,
-                                   const Quantity_Color& theColor,
-                                   const Standard_Boolean toDisplay)
-{
-  Handle(AIS_Point) aGraphicPoint = new AIS_Point (new Geom_CartesianPoint(aPnt));
-
-  getAISContext()->SetColor (aGraphicPoint, theColor, toDisplay);
-  if (toDisplay) {
-    getAISContext()->Display (aGraphicPoint, Standard_True);
-    //COCCDemoDoc::Fit();
-  }
-
-  return aGraphicPoint;
-}
-
-//================================================================
-// Function : drawVector
-// Purpose  : displays a given vector in 3d viewer
-//            (segment of line starting at thePnt with the arrow at the end,
-//             the length of segment is the length of the vector)
-//================================================================
-Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawVector 
-                                  (const gp_Pnt& thePnt,
-                                   const gp_Vec& theVec,
-                                   const Quantity_Color& theColor,
-                                   const Standard_Boolean toDisplay)
-{
-  Standard_Real aLength = theVec.Magnitude();
-  if (aLength < Precision::Confusion())
-    return Handle(AIS_InteractiveObject)();
-
-  Handle(Geom_Curve) aCurve = new Geom_Line (thePnt, theVec);
-  aCurve = new Geom_TrimmedCurve (aCurve, 0, aLength);
-
-  Handle(ISession_Curve) aGraphicCurve = new ISession_Curve (aCurve);
-
-  getAISContext()->SetColor (aGraphicCurve, theColor, toDisplay);
-  Handle(Prs3d_Drawer) aDrawer = aGraphicCurve->Attributes()->Link();
-  aDrawer->SetLineArrowDraw(Standard_True);
-  aDrawer->ArrowAspect()->SetLength(aLength/10);
-  if (toDisplay) {
-    if (FitMode){
-               getAISContext()->Display (aGraphicCurve, Standard_False);
-               COCCDemoDoc::Fit();
-       }
-       else
-               getAISContext()->Display (aGraphicCurve, Standard_True);
-  }
-
-  return aGraphicCurve;
-}
-
-
-Handle(AIS_Shape) OCCDemo_Presentation::drawShape 
-         (const TopoDS_Shape& theShape,const Quantity_Color& theColor,
-          const Standard_Boolean toDisplay)
-{
-  Handle(AIS_Shape) aGraphicShape = new AIS_Shape(theShape);
-
-  getAISContext()->SetMaterial(aGraphicShape, Graphic3d_NOM_PLASTIC, toDisplay);
-  getAISContext()->SetColor (aGraphicShape, theColor, toDisplay);
-  if (toDisplay){ 
-    if (FitMode){
-               getAISContext()->Display (aGraphicShape, Standard_False);
-               COCCDemoDoc::Fit();
-       }
-       else
-               getAISContext()->Display (aGraphicShape, Standard_True);
-  }
-
-  return aGraphicShape;
-}
-
-Handle(AIS_Shape) OCCDemo_Presentation::drawShape
-         (const TopoDS_Shape& theShape,
-          const Graphic3d_NameOfMaterial theMaterial,
-          const Standard_Boolean toDisplay)
-{
-  Handle(AIS_Shape) aGraphicShape = new AIS_Shape(theShape);
-
-  getAISContext()->SetMaterial(aGraphicShape, theMaterial, toDisplay);
-  if (toDisplay) {
-    if (FitMode){
-               getAISContext()->Display (aGraphicShape, Standard_False);
-               COCCDemoDoc::Fit();
-       }
-       else
-               getAISContext()->Display (aGraphicShape, Standard_True);
-  }
-
-  return aGraphicShape;
-}
-
-void OCCDemo_Presentation::GetViewAt (Standard_Real& theX, Standard_Real& theY, Standard_Real& theZ)
-{
-  CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-  CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-  COCCDemoView *pView = (COCCDemoView *) pChild->GetActiveView();
-  pView->GetViewAt (theX, theY, theZ);
-}
-
-void OCCDemo_Presentation::SetViewAt (const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ)
-{
-  CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-  CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-  COCCDemoView *pView = (COCCDemoView *) pChild->GetActiveView();
-  pView->SetViewAt (theX, theY, theZ);
-}
-
-void OCCDemo_Presentation::GetViewEye(Standard_Real& X, Standard_Real& Y, Standard_Real& Z)
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       COCCDemoView *pView = (COCCDemoView *) pChild->GetActiveView();
-       pView->GetViewEye(X,Y,Z);
-}
-
-void OCCDemo_Presentation::SetViewEye(Standard_Real X, Standard_Real Y, Standard_Real Z)
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       COCCDemoView *pView = (COCCDemoView *) pChild->GetActiveView();
-       pView->SetViewEye(X,Y,Z);
-}
-
-Standard_Real OCCDemo_Presentation::GetViewScale()
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       COCCDemoView *pView = (COCCDemoView *) pChild->GetActiveView();
-       return pView->GetViewScale();
-}
-
-void OCCDemo_Presentation::SetViewScale(Standard_Real Coef)
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       COCCDemoView *pView = (COCCDemoView *) pChild->GetActiveView();
-       pView->SetViewScale(Coef);
-}
-
-void OCCDemo_Presentation::ResetView()
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       COCCDemoView *pView = (COCCDemoView *) pChild->GetActiveView();
-       pView->Reset();
-}
-
-void OCCDemo_Presentation::TranslateView (const Standard_Real theX, const Standard_Real theY)
-{
-  CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-  CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-  COCCDemoView *pView = (COCCDemoView *) pChild->GetActiveView();
-  pView->Translate (theX, theY);
-}
diff --git a/samples/mfc/standard/10_Convert/src/OCCDemo_Presentation.h b/samples/mfc/standard/10_Convert/src/OCCDemo_Presentation.h
deleted file mode 100755 (executable)
index 5cf9390..0000000
+++ /dev/null
@@ -1,134 +0,0 @@
-// OCCDemo_Presentation.h: interface for the OCCDemo_Presentation class.
-// This is a base class for all presentations
-//////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_OCCDEMO_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
-#define AFX_OCCDEMO_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-
-#define WAIT_A_LITTLE WaitForInput(500)
-#define WAIT_A_SECOND WaitForInput(1000)
-
-#include <OCCDemoDoc.h>
-#include <OCCDemo.h>
-#include <AIS_InteractiveObject.hxx>
-#include <AIS_Point.hxx>
-#include <Geom_Surface.hxx>
-#include <Geom_Curve.hxx>
-#include <Geom2d_Curve.hxx>
-class Quantity_Color;
-
-class OCCDemo_Presentation
-{
-public:
-  // Construction
-  OCCDemo_Presentation() : myIndex(0), myNbSamples(0), FitMode(false){}
-  virtual ~OCCDemo_Presentation() {}
-
-public:
-  static OCCDemo_Presentation* Current;
-  // this pointer must be initialized when realize a derivable class;
-  // it is used by application to access to a presentation class instance
-
-  void SetDocument (COCCDemoDoc* theDoc) {myDoc = theDoc;}
-  // document must be set by the user of this class before first use of iterations
-
-public:
-  // Titling
-  const CString& GetName() const {return myName;}
-
-public:
-  // Iteration on samples
-  void FirstSample() {myIndex=0;}
-  void LastSample() {myIndex=myNbSamples-1;}
-  Standard_Boolean AtFirstSample() const {return myIndex <= 0;}
-  Standard_Boolean AtLastSample() const {return myIndex >= myNbSamples-1;}
-  void NextSample() {myIndex++;}
-  void PrevSample() {myIndex--;}
-  virtual void DoSample() = 0;
-  static void GetViewAt (Standard_Real& theX, Standard_Real& theY, Standard_Real& theZ);
-  static void SetViewAt (const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ);
-  static void GetViewEye (Standard_Real& X, Standard_Real& Y, Standard_Real& Z);
-  static void SetViewEye (Standard_Real X, Standard_Real Y, Standard_Real Z);
-  static Standard_Real GetViewScale();
-  static void SetViewScale(Standard_Real Coef);
-  static void ResetView();
-  static void TranslateView (const Standard_Real theX, const Standard_Real theY);
-
-  // place one-time initialization code in this function
-  virtual void Init() {}
-
-protected:
-  // Methods to call from a derivable class
-  void setName (const char* theName) {myName = CString(theName);}
-  Handle(AIS_InteractiveContext) getAISContext() const {return myDoc->GetAISContext();}
-  Handle(V3d_Viewer) getViewer() const {return myDoc->GetViewer();}
-  void setResultTitle (const char* theTitle) {myDoc->GetResultDialog()->SetTitle(theTitle);}
-  void setResultText (const char* theText) {myDoc->GetResultDialog()->SetText(theText);}
-  Standard_CString GetDataDir() {return myDoc->GetDataDir();}
-
-  Standard_Boolean WaitForInput (unsigned long aMilliSeconds);
-  // Waits for a user input or a period of time has been elapsed
-
-  Handle(AIS_InteractiveObject) drawSurface (const Handle(Geom_Surface)& theSurface,
-         const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_LEMONCHIFFON3),
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates a finite face based on the given geometric surface 
-  // and displays it in the viewer if toDisplay = Standard_True
-
-  Handle(AIS_InteractiveObject) drawCurve (const Handle(Geom_Curve)& theCurve,
-         const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_RED),
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates an ISession_Curve based on the given geometric curve
-  // and displays it in the viewer if toDisplay = Standard_True
-
-  Handle(AIS_InteractiveObject) drawCurve (const Handle(Geom2d_Curve)& theCurve,
-         const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_RED),
-         const Standard_Boolean toDisplay = Standard_True,
-         const gp_Ax2& aPosition = gp::XOY());
-  // converts a given curve to 3d using aPosition and calls the previous method
-
-  Handle(AIS_Point) drawPoint (const gp_Pnt& thePnt,
-         const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_GREEN),
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates a presentation of the given point
-  // and displays it in the viewer if toDisplay = Standard_True
-
-  Handle(AIS_InteractiveObject) drawVector (const gp_Pnt& thePnt,
-                                           const gp_Vec& theVec,
-         const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_YELLOW),
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates a presentation of the given vector
-  // and displays it in the viewer if toDisplay = Standard_True
-
-  Handle(AIS_Shape) drawShape (const TopoDS_Shape& theShape,
-         const Quantity_Color& theColor,
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates a presentation of the given shape
-  // with material PLASTIC and a given color
-  // and displays it in the viewer if toDisplay = Standard_True
-
-  Handle(AIS_Shape) drawShape (const TopoDS_Shape& theShape,
-         const Graphic3d_NameOfMaterial theMaterial = Graphic3d_NameOfMaterial_Brass,
-         const Standard_Boolean toDisplay = Standard_True);
-  // creates a presentation of the given shape with the given material
-  // (color is default for a given material)
-  // and displays it in the viewer if toDisplay = Standard_True
-
-protected:
-  // Fields to use in a derivable class
-  BOOL FitMode;
-  int myIndex;
-  int myNbSamples;
-
-private:
-  COCCDemoDoc* myDoc;
-  CString myName;
-
-};
-
-#endif // !defined(AFX_OCCDEMO_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
diff --git a/samples/mfc/standard/10_Convert/src/WNT/MainFrm.cpp b/samples/mfc/standard/10_Convert/src/WNT/MainFrm.cpp
deleted file mode 100755 (executable)
index 7135610..0000000
+++ /dev/null
@@ -1,113 +0,0 @@
-// MainFrm.cpp : implementation of the CMainFrame class
-//
-
-#include "stdafx.h"
-#include "OCCDemo.h"
-
-#include "MainFrm.h"
-#include "OCCDemoDoc.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// CMainFrame
-
-IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
-
-BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
-       //{{AFX_MSG_MAP(CMainFrame)
-               // NOTE - the ClassWizard will add and remove mapping macros here.
-               //    DO NOT EDIT what you see in these blocks of generated code !
-       ON_WM_CREATE()
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-static UINT indicators[] =
-{
-       ID_SEPARATOR           // status line indicator
-};
-
-/////////////////////////////////////////////////////////////////////////////
-// CMainFrame construction/destruction
-
-CMainFrame::CMainFrame()
-{
-       // TODO: add member initialization code here
-       
-}
-
-CMainFrame::~CMainFrame()
-{
-}
-
-int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
-{
-       if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
-               return -1;
-
-       if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
-               /* | CBRS_GRIPPER */| CBRS_TOOLTIPS | CBRS_FLYBY) ||
-               !m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
-       {
-               TRACE0("Failed to create toolbar\n");
-               return -1;      // fail to create
-       }
-       
-  if (!m_wndToolBar1.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
-    | CBRS_TOOLTIPS | CBRS_FLYBY) ||
-               !m_wndToolBar1.LoadToolBar(IDR_TOOLBAR1))
-       {
-               TRACE0("Failed to create toolbar\n");
-               return -1;      // fail to create
-       }
-
-       if (!m_wndStatusBar.Create(this) ||
-    !m_wndStatusBar.SetIndicators(indicators,
-                 sizeof(indicators)/sizeof(UINT)))
-       {
-               TRACE0("Failed to create status bar\n");
-               return -1;      // fail to create
-       }
-
-       // TODO: Delete these three lines if you don't want the toolbar to
-       //  be dockable
-  //m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
-       //EnableDocking(CBRS_ALIGN_ANY);
-       //DockControlBar(&m_wndToolBar);
-
-  return 0;
-}
-
-BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
-{
-       if( !CFrameWnd::PreCreateWindow(cs) )
-               return FALSE;
-       // TODO: Modify the Window class or styles here by modifying
-       //  the CREATESTRUCT cs
-
-       return TRUE;
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// CMainFrame diagnostics
-
-#ifdef _DEBUG
-void CMainFrame::AssertValid() const
-{
-       CFrameWnd::AssertValid();
-}
-
-void CMainFrame::Dump(CDumpContext& dc) const
-{
-       CFrameWnd::Dump(dc);
-}
-
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// CMainFrame message handlers
-
diff --git a/samples/mfc/standard/10_Convert/src/WNT/MainFrm.h b/samples/mfc/standard/10_Convert/src/WNT/MainFrm.h
deleted file mode 100755 (executable)
index 51a368e..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-// MainFrm.h : interface of the CMainFrame class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_MAINFRM_H__57A6A22C_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_)
-#define AFX_MAINFRM_H__57A6A22C_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-class CMainFrame : public CFrameWnd
-{
-       
-protected: // create from serialization only
-       CMainFrame();
-       DECLARE_DYNCREATE(CMainFrame)
-
-// Attributes
-public:
-
-// Operations
-public:
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(CMainFrame)
-       virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
-       //}}AFX_VIRTUAL
-
-// Implementation
-public:
-       virtual ~CMainFrame();
-#ifdef _DEBUG
-       virtual void AssertValid() const;
-       virtual void Dump(CDumpContext& dc) const;
-#endif
-
-protected:  // control bar embedded members
-       CStatusBar  m_wndStatusBar;
-       CToolBar    m_wndToolBar;
-       CToolBar    m_wndToolBar1;
-
-// Generated message map functions
-protected:
-       //{{AFX_MSG(CMainFrame)
-       afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
-               // NOTE - the ClassWizard will add and remove member functions here.
-               //    DO NOT EDIT what you see in these blocks of generated code!
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_MAINFRM_H__57A6A22C_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_)
diff --git a/samples/mfc/standard/10_Convert/src/WNT/OCCDemo.cpp b/samples/mfc/standard/10_Convert/src/WNT/OCCDemo.cpp
deleted file mode 100755 (executable)
index f43f375..0000000
+++ /dev/null
@@ -1,178 +0,0 @@
-// OCCDemo.cpp : Defines the class behaviors for the application.
-//
-
-#include "stdafx.h"
-#include "OCCDemo.h"
-
-#include "MainFrm.h"
-#include "OCCDemoDoc.h"
-#include "OCCDemoView.h"
-
-#ifdef _DEBUG
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// COCCDemoApp
-
-BEGIN_MESSAGE_MAP(COCCDemoApp, CWinApp)
-       //{{AFX_MSG_MAP(COCCDemoApp)
-       ON_COMMAND(ID_APP_ABOUT, OnAppAbout)
-       //}}AFX_MSG_MAP
-       // Standard file based document commands
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// COCCDemoApp construction
-
-COCCDemoApp::COCCDemoApp() : OCC_App()
-{
-  SampleName = "";
-  try
-  {
-    Handle(Aspect_DisplayConnection) aDisplayConnection;
-    myGraphicDriver = new OpenGl_GraphicDriver (aDisplayConnection);
-  }
-  catch (Standard_Failure)
-  {
-    AfxMessageBox (L"Fatal Error During Graphic Initialisation");
-  }
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// The one and only COCCDemoApp object
-
-COCCDemoApp theApp;
-
-/////////////////////////////////////////////////////////////////////////////
-// COCCDemoApp initialization
-
-BOOL COCCDemoApp::InitInstance()
-{
-       // Standard initialization
-       // If you are not using these features and wish to reduce the size
-       //  of your final executable, you should remove from the following
-       //  the specific initialization routines you do not need.
-
-       // Change the registry key under which our settings are stored.
-       // TODO: You should modify this string to be something appropriate
-       // such as the name of your company or organization.
-       SetRegistryKey(_T("Local AppWizard-Generated Applications"));
-
-       LoadStdProfileSettings();  // Load standard INI file options (including MRU)
-
-       // Register the application's document templates.  Document templates
-       //  serve as the connection between documents, frame windows and views.
-
-       CSingleDocTemplate* pDocTemplate;
-       pDocTemplate = new CSingleDocTemplate(
-               IDR_MAINFRAME,
-               RUNTIME_CLASS(COCCDemoDoc),
-               RUNTIME_CLASS(CMainFrame),       // main SDI frame window
-               RUNTIME_CLASS(COCCDemoView));
-       AddDocTemplate(pDocTemplate);
-
-
-       // Parse command line for standard shell commands, DDE, file open
-       CCommandLineInfo cmdInfo;
-       ParseCommandLine(cmdInfo);
-
-       // Dispatch commands specified on the command line
-       if (!ProcessShellCommand(cmdInfo))
-               return FALSE;
-
-       
-  // Create result dialog
-  AfxInitRichEdit();
-  CMainFrame* cFrame = (CMainFrame*) GetMainWnd();
-  COCCDemoDoc* aDoc = (COCCDemoDoc*) cFrame->GetActiveDocument();
-
-  // pass cFrame->GetDesktopWindow() as parent to have an independent dialog
-  // pass cFrame as parent to have the result dialog always above the main window
-  if (!aDoc->GetResultDialog()->Create(CResultDialog::IDD, cFrame->GetDesktopWindow()))
-    TRACE0("Failed to create result dialog\n");
-
-  aDoc->GetResultDialog()->SetIcon(AfxGetApp()->LoadIcon(IDR_MAINFRAME), FALSE);
-       aDoc->GetResultDialog()->ShowWindow(SW_HIDE);
-  aDoc->GetResultDialog()->Initialize();
-
-  // resize the result dialog, so no clipping occurs when user
-  // resizes the dialog manually
-  // position the result dialog to the left bottom corner of the view
-  CRect aDlgRect, aViewRect;
-  aDoc->GetResultDialog()->GetWindowRect(&aDlgRect);
-  cFrame->GetActiveView()->GetWindowRect(&aViewRect);
-
-  int x = aViewRect.left;
-  int y = aViewRect.bottom - aDlgRect.Size().cy;
-  int cx = aDlgRect.Size().cx+1;
-  int cy = aDlgRect.Size().cy+1;
-  aDoc->GetResultDialog()->SetWindowPos(NULL, x, y, cx, cy, SWP_NOREDRAW | SWP_NOZORDER);
-
-       m_pMainWnd->ShowWindow(SW_SHOW);
-       m_pMainWnd->UpdateWindow();
-  m_pMainWnd->SetFocus();
-  aDoc->Start();
-
-       return TRUE;
-}
-
-/*
-/////////////////////////////////////////////////////////////////////////////
-// CAboutDlg dialog used for App About
-
-class CAboutDlg : public CDialog
-{
-public:
-       CAboutDlg();
-
-// Dialog Data
-       //{{AFX_DATA(CAboutDlg)
-       enum { IDD = IDD_ABOUTBOX };
-       //}}AFX_DATA
-
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(CAboutDlg)
-       protected:
-       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
-       //}}AFX_VIRTUAL
-
-// Implementation
-protected:
-       //{{AFX_MSG(CAboutDlg)
-               // No message handlers
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-};
-
-CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
-{
-       //{{AFX_DATA_INIT(CAboutDlg)
-       //}}AFX_DATA_INIT
-}
-
-void CAboutDlg::DoDataExchange(CDataExchange* pDX)
-{
-       CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(CAboutDlg)
-       //}}AFX_DATA_MAP
-}
-
-BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
-       //{{AFX_MSG_MAP(CAboutDlg)
-               // No message handlers
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-// App command to run the dialog
-void COCCDemoApp::OnAppAbout()
-{
-       CAboutDlg aboutDlg;
-       aboutDlg.DoModal();
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// COCCDemoApp message handlers
-
-*/
\ No newline at end of file
diff --git a/samples/mfc/standard/10_Convert/src/WNT/OCCDemo.h b/samples/mfc/standard/10_Convert/src/WNT/OCCDemo.h
deleted file mode 100755 (executable)
index 180976d..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-// OCCDemo.h : main header file for the OCCDEMO application
-//
-
-#if !defined(AFX_OCCDEMO_H__57A6A228_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_)
-#define AFX_OCCDEMO_H__57A6A228_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-#ifndef __AFXWIN_H__
-       #error include 'stdafx.h' before including this file for PCH
-#endif
-
-#include "resource.h"       // main symbols
-
-#include <OCC_App.h>
-
-/////////////////////////////////////////////////////////////////////////////
-// COCCDemoApp:
-// See OCCDemo.cpp for the implementation of this class
-//
-
-class COCCDemoApp : public OCC_App
-{
-public:
-
-  COCCDemoApp();
-
-  Handle(Graphic3d_GraphicDriver) GetGraphicDriver() const { return myGraphicDriver; }
-
-// Overrides
-  // ClassWizard generated virtual function overrides
-  //{{AFX_VIRTUAL(COCCDemoApp)
-  public:
-  virtual BOOL InitInstance();
-  //}}AFX_VIRTUAL
-
-// Implementation
-  //{{AFX_MSG(COCCDemoApp)
-  //afx_msg void OnAppAbout();
-    // NOTE - the ClassWizard will add and remove member functions here.
-    //    DO NOT EDIT what you see in these blocks of generated code !
-  //}}AFX_MSG
-  DECLARE_MESSAGE_MAP()
-
-private:
-
-  Handle(Graphic3d_GraphicDriver) myGraphicDriver;
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_OCCDEMO_H__57A6A228_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_)
diff --git a/samples/mfc/standard/10_Convert/src/WNT/OCCDemo.rc b/samples/mfc/standard/10_Convert/src/WNT/OCCDemo.rc
deleted file mode 100755 (executable)
index 352d2b6..0000000
+++ /dev/null
@@ -1,388 +0,0 @@
-//Microsoft Developer Studio generated resource script.
-//
-#include "resource.h"
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
-#include "afxres.h"
-#include "..\..\..\Common\res\OCC_Resource.h"
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-// English (U.S.) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-#pragma code_page(1252)
-#endif //_WIN32
-
-#ifdef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE DISCARDABLE 
-BEGIN
-    "resource.h\0"
-END
-
-2 TEXTINCLUDE DISCARDABLE 
-BEGIN
-    "#include ""afxres.h""\r\n"
-    "#include ""..\\..\\..\\Common\\res\\OCC_Resource.h""\0"
-
-END
-
-3 TEXTINCLUDE DISCARDABLE 
-BEGIN
-    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
-    "#define _AFX_NO_OLE_RESOURCES\r\n"
-    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
-    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
-    "\r\n"
-    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
-    "#ifdef _WIN32\r\n"
-    "LANGUAGE 9, 1\r\n"
-    "#pragma code_page(1252)\r\n"
-    "#endif //_WIN32\r\n"
-    "#include ""res\\OCCDemo.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
-    "#include ""afxres.rc""         // Standard components\r\n"
-    "#endif\r\n"
-    "\0"
-END
-
-#endif    // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Icon
-//
-
-// Icon with lowest ID value placed first to ensure application icon
-// remains consistent on all systems.
-IDR_MAINFRAME           ICON    DISCARDABLE     "res\\OCCDemo.ico"
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Bitmap
-//
-
-IDR_MAINFRAME           BITMAP  MOVEABLE PURE   "res\\Toolbar.bmp"
-IDR_TOOLBAR1            BITMAP  DISCARDABLE     "res\\Toolbar1.bmp"
-IDB_OCCLOGO             BITMAP  DISCARDABLE     "res\\occlogo.bmp"
-IDB_OPENLOGO            BITMAP  DISCARDABLE     "res\\logopen.bmp"
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Toolbar
-//
-
-IDR_MAINFRAME TOOLBAR DISCARDABLE  20, 20
-BEGIN
-    BUTTON      ID_BUTTONStart
-    BUTTON      ID_BUTTONPrev
-    BUTTON      ID_BUTTONRepeat
-    BUTTON      ID_BUTTONNext
-    BUTTON      ID_BUTTONEnd
-    SEPARATOR
-    BUTTON      ID_BUTTONShowResult
-    BUTTON      ID_DUMP_VIEW
-END
-
-IDR_TOOLBAR1 TOOLBAR DISCARDABLE  20, 20
-BEGIN
-    BUTTON      ID_BUTTONZoomAll
-    BUTTON      ID_BUTTONZoomWin
-    BUTTON      ID_BUTTONZoomProg
-    SEPARATOR
-    BUTTON      ID_BUTTONPan
-    BUTTON      ID_BUTTONPanGlo
-    SEPARATOR
-    BUTTON      ID_BUTTONFront
-    BUTTON      ID_BUTTONTop
-    BUTTON      ID_BUTTONLeft
-    BUTTON      ID_BUTTONBack
-    BUTTON      ID_BUTTONRight
-    BUTTON      ID_BUTTONBottom
-    BUTTON      ID_BUTTONAxo
-    SEPARATOR
-    BUTTON      ID_BUTTONRot
-    BUTTON      ID_BUTTONReset
-    SEPARATOR
-    BUTTON      ID_BUTTONWire
-    BUTTON      ID_BUTTONShade
-    BUTTON      ID_BUTTONHlrOn
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Menu
-//
-
-IDR_MAINFRAME MENU PRELOAD DISCARDABLE 
-BEGIN
-    POPUP "&File"
-    BEGIN
-        MENUITEM "Reset",                       ID_FILE_NEW
-        MENUITEM SEPARATOR
-        MENUITEM "E&xit",                       ID_APP_EXIT
-    END
-    POPUP "&Help"
-    BEGIN
-        MENUITEM "&About OCCDemo...",           ID_APP_ABOUT
-    END
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Accelerator
-//
-
-IDR_MAINFRAME ACCELERATORS PRELOAD MOVEABLE PURE 
-BEGIN
-    "A",            ID_BUTTONAxo,           VIRTKEY, CONTROL, NOINVERT
-    "B",            ID_BUTTONBack,          VIRTKEY, CONTROL, NOINVERT
-    "F",            ID_BUTTONZoomAll,       VIRTKEY, NOINVERT
-    "F",            ID_BUTTONFront,         VIRTKEY, CONTROL, NOINVERT
-    "H",            ID_BUTTONHlrOn,         VIRTKEY, SHIFT, NOINVERT
-    "L",            ID_BUTTONLeft,          VIRTKEY, CONTROL, NOINVERT
-    "M",            ID_BUTTONBottom,        VIRTKEY, CONTROL, NOINVERT
-    "R",            ID_BUTTONReset,         VIRTKEY, NOINVERT
-    "R",            ID_BUTTONRight,         VIRTKEY, CONTROL, NOINVERT
-    "S",            ID_BUTTONShade,         VIRTKEY, SHIFT, NOINVERT
-    "T",            ID_BUTTONTop,           VIRTKEY, CONTROL, NOINVERT
-    VK_END,         ID_BUTTONEnd,           VIRTKEY, NOINVERT
-    VK_F11,         ID_BUTTONShowResult,    VIRTKEY, NOINVERT
-    VK_F12,         ID_DUMP_VIEW,           VIRTKEY, NOINVERT
-    VK_HOME,        ID_BUTTONStart,         VIRTKEY, NOINVERT
-    VK_NEXT,        ID_BUTTONNext,          VIRTKEY, NOINVERT
-    VK_PRIOR,       ID_BUTTONPrev,          VIRTKEY, NOINVERT
-    VK_SPACE,       ID_BUTTONRepeat,        VIRTKEY, NOINVERT
-    "W",            ID_BUTTONWire,          VIRTKEY, SHIFT, NOINVERT
-    "X",            ID_APP_EXIT,            VIRTKEY, CONTROL, NOINVERT
-END
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Dialog
-//
-
-IDD_ABOUTBOX DIALOG DISCARDABLE  0, 0, 229, 170
-STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "About OCCDemo"
-FONT 8, "MS Sans Serif"
-BEGIN
-    CTEXT           "Copyright (C) 2003, OpenCASCADE Company",IDC_STATIC,42,
-                    106,145,8,SS_NOPREFIX
-    DEFPUSHBUTTON   "OK",IDOK,90,132,50,14,WS_GROUP
-    CONTROL         142,IDC_STATIC,"Static",SS_BITMAP,50,35,129,62
-    LTEXT           "OCCDemo, OpenCASCADE 5.0",IDC_STATIC,64,20,101,8
-END
-
-IDD_ResultDialog DIALOG DISCARDABLE  0, 0, 244, 231
-STYLE WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | 
-    WS_THICKFRAME
-CAPTION "Result Dialog"
-FONT 8, "MS Sans Serif"
-BEGIN
-    CONTROL         "",IDC_RICHEDIT_ResultDialog,"RICHEDIT",ES_MULTILINE | 
-                    ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_NOHIDESEL | 
-                    ES_READONLY | WS_BORDER | WS_VSCROLL | WS_HSCROLL | 
-                    WS_TABSTOP,0,7,243,192
-    PUSHBUTTON      "Copy selection",IDC_CopySelectionToClipboard,0,206,60,
-                    18
-    PUSHBUTTON      "Copy all",IDC_CopyAllToClipboard,65,206,60,18
-    PUSHBUTTON      "Close",IDCANCEL,183,206,60,18
-END
-
-
-#ifndef _MAC
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,0,0,1
- PRODUCTVERSION 1,0,0,1
- FILEFLAGSMASK 0x3fL
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x4L
- FILETYPE 0x1L
- FILESUBTYPE 0x0L
-BEGIN
-    BLOCK "StringFileInfo"
-    BEGIN
-        BLOCK "040904b0"
-        BEGIN
-            VALUE "Comments", "Open CASCADE Technology Demonstration Application\0"
-            VALUE "CompanyName", "Open CASCADE, France\0"
-            VALUE "FileDescription", "OCCDemo MFC Application\0"
-            VALUE "FileVersion", "1, 0, 0, 1\0"
-            VALUE "InternalName", "OCCDemo\0"
-            VALUE "LegalCopyright", "Copyright (C) 2001, Open CASCADE Company\0"
-            VALUE "LegalTrademarks", "Open CASCADE\0"
-            VALUE "OriginalFilename", "OCCDemo.EXE\0"
-            VALUE "PrivateBuild", "\0"
-            VALUE "ProductName", "OCCDemo Application\0"
-            VALUE "ProductVersion", "1, 0, 0, 1\0"
-            VALUE "SpecialBuild", "\0"
-        END
-    END
-    BLOCK "VarFileInfo"
-    BEGIN
-        VALUE "Translation", 0x409, 1200
-    END
-END
-
-#endif    // !_MAC
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DESIGNINFO
-//
-
-#ifdef APSTUDIO_INVOKED
-GUIDELINES DESIGNINFO DISCARDABLE 
-BEGIN
-    IDD_ABOUTBOX, DIALOG
-    BEGIN
-        LEFTMARGIN, 7
-        RIGHTMARGIN, 222
-        TOPMARGIN, 7
-        BOTTOMMARGIN, 162
-    END
-
-    IDD_ResultDialog, DIALOG
-    BEGIN
-        RIGHTMARGIN, 243
-        TOPMARGIN, 7
-        BOTTOMMARGIN, 224
-    END
-END
-#endif    // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// String Table
-//
-
-STRINGTABLE PRELOAD DISCARDABLE 
-BEGIN
-    IDR_MAINFRAME           "OCCDemo\n\nOCCDem\n\n\nOCCDemo.Document\nOCCDem Document"
-END
-
-STRINGTABLE PRELOAD DISCARDABLE 
-BEGIN
-    AFX_IDS_APP_TITLE       "OCCDemo"
-    AFX_IDS_IDLEMESSAGE     "Ready"
-END
-
-STRINGTABLE DISCARDABLE 
-BEGIN
-    ID_FILE_NEW             "Start demo a new\nReset"
-END
-
-STRINGTABLE DISCARDABLE 
-BEGIN
-    ID_APP_ABOUT            "Display program information, version number and copyright\nAbout"
-    ID_APP_EXIT             "Quit the application\nExit"
-END
-
-STRINGTABLE DISCARDABLE 
-BEGIN
-    AFX_IDS_SCSIZE          "Change the window size"
-    AFX_IDS_SCMOVE          "Change the window position"
-    AFX_IDS_SCMINIMIZE      "Reduce the window to an icon"
-    AFX_IDS_SCMAXIMIZE      "Enlarge the window to full size"
-    AFX_IDS_SCNEXTWINDOW    "Switch to the next document window"
-    AFX_IDS_SCPREVWINDOW    "Switch to the previous document window"
-    AFX_IDS_SCCLOSE         "Close the active window"
-END
-
-STRINGTABLE DISCARDABLE 
-BEGIN
-    AFX_IDS_SCRESTORE       "Restore the window to normal size"
-    AFX_IDS_SCTASKLIST      "Activate Task List"
-END
-
-STRINGTABLE DISCARDABLE 
-BEGIN
-    ID_BUTTONZoomAll        "Press to zoom the application objects in the view\nFitAll (F)"
-    ID_BUTTONZoomWin        "Press and drag MB1 to select a zoom window\nZoom Window"
-    ID_BUTTONZoomProg       "Press and drag MB1 to zoom\nDynamic Zooming"
-    ID_BUTTONPan            "Press and drag MB1 to pan\nDynamic Panning"
-    ID_BUTTONPanGlo         "Press and select a new view center t\nGlobal Panning"
-    ID_BUTTONFront          "Press to select a front View\nFront (Ctrl+F)"
-    ID_BUTTONLeft           "Press to select a left View\nLeft (Ctrl+L)"
-    ID_BUTTONTop            "Press to select a top View\nTop (Ctrl+T)"
-    ID_BUTTONBack           "Press to select a back View\nBack (Ctrl+B)"
-    ID_BUTTONRight          "Press to select a right View\nRight (Ctrl+R)"
-    ID_BUTTONBottom         "Press to select a bottom View\nBottom (Ctrl+M)"
-    ID_BUTTONAxo            "Press to select axonometric View\nAxo (Ctrl+A)"
-    ID_BUTTONRot            "Press and drag MB1 to rotate\nDynamic Rotation"
-    ID_BUTTONReset          "Press to reset view\nReset (R)"
-    ID_BUTTONWire           "Press to switch to wireframe mode\nWireframe mode (Shift+W)"
-END
-
-STRINGTABLE DISCARDABLE 
-BEGIN
-    ID_BUTTONShade          "Press to switch to shading mode\nShading mode (Shift+S)"
-    ID_BUTTONHlrOn          "Press to switch to HLR mode\nHLR mode (Shift+H)"
-END
-
-STRINGTABLE DISCARDABLE 
-BEGIN
-    ID_BUTTONStart          "Press to go to the first sample\nFirst sample (Home)"
-    ID_BUTTONNext           "Press to go to the next sample\nNext sample (PgDn)"
-    ID_BUTTONShowResult     "Press to toggle show of source code on/off\nSource code (F11)"
-    ID_DUMP_VIEW            "Save current frame into an image file\nExport view (F12)"
-    ID_BUTTONEnd            "Press to go to the last sample\nLast sample (End)"
-    ID_BUTTONPrev           "Press to go to the previous sample\nPrevious sample (PgUp)"
-    ID_BUTTONRepeat         "Press to repeat the current sample\nRepeat sample (Space)"
-END
-
-#endif    // English (U.S.) resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-#define _AFX_NO_SPLITTER_RESOURCES
-#define _AFX_NO_OLE_RESOURCES
-#define _AFX_NO_TRACKER_RESOURCES
-#define _AFX_NO_PROPERTY_RESOURCES
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE 9, 1
-#pragma code_page(1252)
-#endif //_WIN32
-#include "res\OCCDemo.rc2"  // non-Microsoft Visual C++ edited resources
-#include "afxres.rc"         // Standard components
-#include "..\\..\\..\\Common\\res\\OCC_Resource.h"
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-#endif    // not APSTUDIO_INVOKED
-
diff --git a/samples/mfc/standard/10_Convert/src/WNT/OCCDemoDoc.cpp b/samples/mfc/standard/10_Convert/src/WNT/OCCDemoDoc.cpp
deleted file mode 100755 (executable)
index ae16d93..0000000
+++ /dev/null
@@ -1,243 +0,0 @@
-// OCCDemoDoc.cpp : implementation of the COCCDemoDoc class
-//
-
-#include "stdafx.h"
-#include "OCCDemo.h"
-
-#include "OCCDemoDoc.h"
-#include "OCCDemo_Presentation.h"
-#include "OCCDemoView.h"
-
-#include <Standard_ErrorHandler.hxx>
-#include <Standard_SStream.hxx>
-
-#ifdef _DEBUG
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// COCCDemoDoc
-
-IMPLEMENT_DYNCREATE(COCCDemoDoc, CDocument)
-
-BEGIN_MESSAGE_MAP(COCCDemoDoc, CDocument)
-       //{{AFX_MSG_MAP(COCCDemoDoc)
-       ON_COMMAND(ID_BUTTONNext, OnBUTTONNext)
-       ON_COMMAND(ID_BUTTONStart, OnBUTTONStart)
-       ON_COMMAND(ID_BUTTONRepeat, OnBUTTONRepeat)
-       ON_COMMAND(ID_BUTTONPrev, OnBUTTONPrev)
-       ON_COMMAND(ID_BUTTONEnd, OnBUTTONEnd)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONNext, OnUpdateBUTTONNext)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONPrev, OnUpdateBUTTONPrev)
-       ON_COMMAND(ID_FILE_NEW, OnFileNew)
-       ON_COMMAND(ID_BUTTONShowResult, OnBUTTONShowResult)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONShowResult, OnUpdateBUTTONShowResult)
-       ON_COMMAND(ID_DUMP_VIEW, OnDumpView)
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// COCCDemoDoc construction/destruction
-
-COCCDemoDoc::COCCDemoDoc()
-{
-       // TODO: add one-time construction code here
-       Handle(Graphic3d_GraphicDriver) aGraphicDriver = 
-               ((COCCDemoApp*)AfxGetApp())->GetGraphicDriver();
-
-       myViewer = new V3d_Viewer(aGraphicDriver);
-       myViewer->SetDefaultLights();
-       myViewer->SetLightOn();
-  myViewer->SetDefaultBackgroundColor (Quantity_NOC_BLACK);
-
-       myAISContext = new AIS_InteractiveContext(myViewer);
-  myShowResult = FALSE;
-  myPresentation = OCCDemo_Presentation::Current;
-  myPresentation->SetDocument(this);
-
-  strcpy_s(myDataDir, "Data");
-  strcpy_s(myLastPath, ".");
-}
-
-COCCDemoDoc::~COCCDemoDoc()
-{
-}
-
-BOOL COCCDemoDoc::OnNewDocument()
-{
-       if (!CDocument::OnNewDocument())
-               return FALSE;
-
-       // TODO: add reinitialization code here
-       // (SDI documents will reuse this document)
-  SetTitle(myPresentation->GetName());
-
-  myAISContext->EraseAll (Standard_False);
-  myAISContext->SetDisplayMode (AIS_Shaded, Standard_True);
-
-  POSITION pos = GetFirstViewPosition();
-  while (pos != NULL)
-  {
-    COCCDemoView* pView = (COCCDemoView*) GetNextView(pos);
-    pView->Reset();
-  }  
-
-       return TRUE;
-}
-
-void COCCDemoDoc::Start()
-{
-  myPresentation->Init();
-  OnBUTTONStart();
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// COCCDemoDoc serialization
-
-void COCCDemoDoc::Serialize(CArchive& ar)
-{
-       if (ar.IsStoring())
-               {}// TODO: add storing code here
-       else
-               {}// TODO: add loading code here
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// COCCDemoDoc diagnostics
-
-#ifdef _DEBUG
-void COCCDemoDoc::AssertValid() const
-{
-       CDocument::AssertValid();
-}
-
-void COCCDemoDoc::Dump(CDumpContext& dc) const
-{
-       CDocument::Dump(dc);
-}
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// COCCDemoDoc commands
-
-void COCCDemoDoc::OnFileNew()
-{
-  OnNewDocument();
-  Start();
-}
-
-void COCCDemoDoc::InitViewButtons()
-{
-  POSITION pos = GetFirstViewPosition();
-  while (pos != NULL)
-  {
-    COCCDemoView* pView = (COCCDemoView*) GetNextView(pos);
-    pView->InitButtons();
-  }
-}
-
-void COCCDemoDoc::DoSample()
-{
-  InitViewButtons();
-
-  HCURSOR hOldCursor = ::GetCursor();
-  HCURSOR hNewCursor = AfxGetApp()->LoadStandardCursor(IDC_APPSTARTING);
-
-  SetCursor(hNewCursor);
-  {
-    try
-    {
-      myPresentation->DoSample();
-    }
-    catch (Standard_Failure const& anException)
-    {
-      Standard_SStream aSStream;
-      aSStream << "An exception was caught: " << anException << std::ends;
-      CString aMsg = aSStream.str().c_str();
-      AfxMessageBox (aMsg);
-    }
-  }
-  SetCursor(hOldCursor);
-}
-
-void COCCDemoDoc::OnBUTTONStart() 
-{
-  myAISContext->EraseAll (Standard_True);
-  myPresentation->FirstSample();
-  DoSample();
-}
-
-void COCCDemoDoc::OnBUTTONEnd()
-{
-  myAISContext->EraseAll (Standard_True);
-  myPresentation->LastSample();
-  DoSample();
-}
-
-void COCCDemoDoc::OnBUTTONRepeat() 
-{
-  DoSample();
-}
-
-void COCCDemoDoc::OnBUTTONNext() 
-{
-  if (!myPresentation->AtLastSample())
-  {
-    myPresentation->NextSample();
-    DoSample();
-  }
-}
-
-void COCCDemoDoc::OnBUTTONPrev() 
-{
-  if (!myPresentation->AtFirstSample())
-  {
-    myPresentation->PrevSample();
-    DoSample();
-  }
-}
-
-void COCCDemoDoc::OnUpdateBUTTONNext(CCmdUI* pCmdUI) 
-{
-       pCmdUI->Enable (!myPresentation->AtLastSample());
-}
-
-void COCCDemoDoc::OnUpdateBUTTONPrev(CCmdUI* pCmdUI) 
-{
-       pCmdUI->Enable (!myPresentation->AtFirstSample());
-}
-
-void COCCDemoDoc::OnBUTTONShowResult()
-{
-  myShowResult = !myShowResult;
-  if (myShowResult)
-    myCResultDialog.ShowWindow(SW_SHOWNORMAL);
-  else
-    myCResultDialog.ShowWindow(SW_HIDE);
-}
-
-void COCCDemoDoc::OnUpdateBUTTONShowResult(CCmdUI* pCmdUI)
-{
-  pCmdUI->SetCheck (myShowResult);
-}
-
-void COCCDemoDoc::OnDumpView() 
-{
-  for (POSITION aPos = GetFirstViewPosition(); aPos != NULL;)
-  {
-    COCCDemoView* pView = (COCCDemoView* )GetNextView (aPos);
-    pView->UpdateWindow();
-  }
-
-  Handle(V3d_View) aView = myViewer->ActiveViews().First();
-  ExportView (aView);
-}
-
-void COCCDemoDoc::Fit()
-{
-       CMDIFrameWnd *pFrame =  (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
-       CMDIChildWnd *pChild =  (CMDIChildWnd *) pFrame->GetActiveFrame();
-       COCCDemoView *pView = (COCCDemoView *) pChild->GetActiveView();
-       pView->FitAll();
-}
diff --git a/samples/mfc/standard/10_Convert/src/WNT/OCCDemoDoc.h b/samples/mfc/standard/10_Convert/src/WNT/OCCDemoDoc.h
deleted file mode 100755 (executable)
index 0907c14..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-// OCCDemoDoc.h : interface of the COCCDemoDoc class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_OCCDEMODOC_H__57A6A22E_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_)
-#define AFX_OCCDEMODOC_H__57A6A22E_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-#include <OCC_BaseDoc.h>
-#include "ResultDialog.h"
-class OCCDemo_Presentation;
-
-class COCCDemoDoc : public OCC_BaseDoc
-{
-public:
-  CResultDialog* GetResultDialog () {return &myCResultDialog;}
-  Standard_CString GetDataDir() {return myDataDir;}
-
-protected: // create from serialization only
-       COCCDemoDoc();
-       DECLARE_DYNCREATE(COCCDemoDoc)
-
-// Attributes
-public:
-  BOOL& IsShowResult() {return myShowResult;}
-
-// Operations
-public:
-  void Start();
-  static void Fit();
-
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(COCCDemoDoc)
-       public:
-       virtual BOOL OnNewDocument();
-       virtual void Serialize(CArchive& ar);
-       //}}AFX_VIRTUAL
-
-// Implementation
-public:
-       virtual ~COCCDemoDoc();
-#ifdef _DEBUG
-       virtual void AssertValid() const;
-       virtual void Dump(CDumpContext& dc) const;
-#endif
-
-protected:
-  void InitViewButtons();
-  void DoSample();
-
-// Generated message map functions
-protected:
-       //{{AFX_MSG(COCCDemoDoc)
-       afx_msg void OnBUTTONNext();
-       afx_msg void OnBUTTONStart();
-       afx_msg void OnBUTTONRepeat();
-       afx_msg void OnBUTTONPrev();
-       afx_msg void OnBUTTONEnd();
-       afx_msg void OnUpdateBUTTONNext(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONPrev(CCmdUI* pCmdUI);
-       afx_msg void OnFileNew();
-       afx_msg void OnBUTTONShowResult();
-       afx_msg void OnUpdateBUTTONShowResult(CCmdUI* pCmdUI);
-       afx_msg void OnDumpView();
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-
-private:
-  OCCDemo_Presentation *myPresentation;
-  CResultDialog myCResultDialog;
-  BOOL myShowResult;
-  char myDataDir[5]; // for "Data\0"
-  char myLastPath[MAX_PATH]; // directory of lastly saved file in DumpView()
-};
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_OCCDEMODOC_H__57A6A22E_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_)
diff --git a/samples/mfc/standard/10_Convert/src/WNT/OCCDemoView.cpp b/samples/mfc/standard/10_Convert/src/WNT/OCCDemoView.cpp
deleted file mode 100755 (executable)
index e16f537..0000000
+++ /dev/null
@@ -1,552 +0,0 @@
-// OCCDemoView.cpp : implementation of the COCCDemoView class
-//
-
-#include "stdafx.h"
-#include "MainFrm.h"
-#include "OCCDemo.h"
-#include "OCCDemoDoc.h"
-#include "OCCDemoView.h"
-
-#include <AIS_RubberBand.hxx>
-#include <Graphic3d_GraphicDriver.hxx>
-
-#define ValZWMin 1
-
-#ifdef _DEBUG
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-// COCCDemoView
-
-IMPLEMENT_DYNCREATE(COCCDemoView, CView)
-
-BEGIN_MESSAGE_MAP(COCCDemoView, CView)
-       //{{AFX_MSG_MAP(COCCDemoView)
-       ON_COMMAND(ID_BUTTONAxo, OnBUTTONAxo)
-       ON_COMMAND(ID_BUTTONBack, OnBUTTONBack)
-       ON_COMMAND(ID_BUTTONBottom, OnBUTTONBottom)
-       ON_COMMAND(ID_BUTTONFront, OnBUTTONFront)
-       ON_COMMAND(ID_BUTTONHlrOn, OnBUTTONHlrOn)
-       ON_COMMAND(ID_BUTTONLeft, OnBUTTONLeft)
-       ON_COMMAND(ID_BUTTONPan, OnBUTTONPan)
-       ON_COMMAND(ID_BUTTONPanGlo, OnBUTTONPanGlo)
-       ON_COMMAND(ID_BUTTONReset, OnBUTTONReset)
-       ON_COMMAND(ID_BUTTONRight, OnBUTTONRight)
-       ON_COMMAND(ID_BUTTONRot, OnBUTTONRot)
-       ON_COMMAND(ID_BUTTONTop, OnBUTTONTop)
-       ON_COMMAND(ID_BUTTONZoomAll, OnBUTTONZoomAll)
-       ON_WM_SIZE()
-       ON_COMMAND(ID_BUTTONZoomProg, OnBUTTONZoomProg)
-       ON_COMMAND(ID_BUTTONZoomWin, OnBUTTONZoomWin)
-       ON_WM_LBUTTONDOWN()
-       ON_WM_LBUTTONUP()
-       ON_WM_MOUSEMOVE()
-       ON_WM_RBUTTONDOWN()
-       ON_WM_RBUTTONUP()
-       ON_UPDATE_COMMAND_UI(ID_BUTTONPanGlo, OnUpdateBUTTONPanGlo)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONPan, OnUpdateBUTTONPan)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONZoomProg, OnUpdateBUTTONZoomProg)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONZoomWin, OnUpdateBUTTONZoomWin)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONRot, OnUpdateBUTTONRot)
-       ON_COMMAND(ID_BUTTONWire, OnBUTTONWire)
-       ON_COMMAND(ID_BUTTONShade, OnBUTTONShade)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONHlrOn, OnUpdateBUTTONHlrOn)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONShade, OnUpdateBUTTONShade)
-       ON_UPDATE_COMMAND_UI(ID_BUTTONWire, OnUpdateBUTTONWire)
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// COCCDemoView construction/destruction
-
-COCCDemoView::COCCDemoView()
-{
-  myXmin=0;
-  myYmin=0;  
-  myXmax=0;
-  myYmax=0;
-  myCurZoom=0;
-  myCurrentMode = CurAction3d_Nothing;
-  myVisMode = VIS_SHADE;
-  myRect = new AIS_RubberBand (Quantity_NOC_WHITE, Aspect_TOL_SOLID, 1.0);
-  myGraphicDriver = ((COCCDemoApp*)AfxGetApp())->GetGraphicDriver();
-}
-
-COCCDemoView::~COCCDemoView()
-{
-       if (!myView.IsNull())
-    myView->Remove();
-}
-
-BOOL COCCDemoView::PreCreateWindow(CREATESTRUCT& cs)
-{
-  // TODO: Modify the Window class or styles here by modifying
-  //  the CREATESTRUCT cs
-  cs.lpszClass = ::AfxRegisterWndClass(CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS | CS_OWNDC, ::LoadCursor(NULL, IDC_ARROW), NULL, NULL);
-  return CView::PreCreateWindow(cs);
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// COCCDemoView drawing
-
-void COCCDemoView::OnInitialUpdate() 
-{
-  CView::OnInitialUpdate();
-  
-  myView = GetDocument()->GetViewer()->CreateView();
-  myView->SetViewMappingDefault();
-  myView->SetViewOrientationDefault();
-
-  Handle(WNT_Window) aWNTWindow = new WNT_Window(GetSafeHwnd ());
-  myView->SetWindow(aWNTWindow);
-  if (!aWNTWindow->IsMapped()) aWNTWindow->Map();
-
-  myCurrentMode = CurAction3d_Nothing;
-  myVisMode = VIS_SHADE;
-  RedrawVisMode();
-}
-
-void COCCDemoView::OnDraw(CDC* /*pDC*/)
-{
-       COCCDemoDoc* pDoc = GetDocument();
-       ASSERT_VALID(pDoc);
-       // TODO: add draw code for native data here
-  myView->Redraw();
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// COCCDemoView diagnostics
-
-#ifdef _DEBUG
-void COCCDemoView::AssertValid() const
-{
-       CView::AssertValid();
-}
-
-void COCCDemoView::Dump(CDumpContext& dc) const
-{
-       CView::Dump(dc);
-}
-
-COCCDemoDoc* COCCDemoView::GetDocument() // non-debug version is inline
-{
-       ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(COCCDemoDoc)));
-       return (COCCDemoDoc*)m_pDocument;
-}
-#endif //_DEBUG
-
-/////////////////////////////////////////////////////////////////////////////
-// COCCDemoView message handlers
-
-void COCCDemoView::OnSize(UINT nType, int cx, int cy)
-{
-  CView::OnSize (nType, cx, cy);
-  if (!myView.IsNull())
-    myView->MustBeResized();
-}
-
-void COCCDemoView::OnBUTTONBack() 
-{ 
-  myView->SetProj(V3d_Ypos);
-}
-
-void COCCDemoView::OnBUTTONFront() 
-{ 
-       myView->SetProj(V3d_Yneg);
-}
-
-void COCCDemoView::OnBUTTONBottom() 
-{ 
-       myView->SetProj(V3d_Zneg); 
-}
-
-void COCCDemoView::OnBUTTONTop() 
-{ 
-       myView->SetProj(V3d_Zpos); 
-}
-
-void COCCDemoView::OnBUTTONLeft() 
-{ 
-       myView->SetProj(V3d_Xneg);
-}
-
-void COCCDemoView::OnBUTTONRight() 
-{ 
-       myView->SetProj(V3d_Xpos);
-}
-
-void COCCDemoView::OnBUTTONAxo() 
-{ 
-       myView->SetProj(V3d_XposYnegZpos); 
-}
-
-void COCCDemoView::OnBUTTONPan() 
-{
-  myCurrentMode = CurAction3d_DynamicPanning;
-}
-
-void COCCDemoView::OnBUTTONPanGlo() 
-{
-  // save the current zoom value 
-  myCurZoom = myView->Scale();
-  // Do a Global Zoom 
-  myView->FitAll();
-  // Set the mode 
-  myCurrentMode = CurAction3d_GlobalPanning;
-}
-
-void COCCDemoView::OnBUTTONReset() 
-{
-  myView->Reset();
-}
-
-void COCCDemoView::OnBUTTONRot() 
-{
-  myCurrentMode = CurAction3d_DynamicRotation;
-}
-
-void COCCDemoView::OnBUTTONZoomAll() 
-{
-  myView->FitAll();
-  myView->ZFitAll();
-}
-
-void COCCDemoView::OnBUTTONZoomProg() 
-{
-  myCurrentMode = CurAction3d_DynamicZooming;
-}
-
-void COCCDemoView::OnBUTTONZoomWin() 
-{
-  myCurrentMode = CurAction3d_WindowZooming;
-}
-
-void COCCDemoView::OnLButtonDown(UINT nFlags, CPoint point) 
-{
-  //  save the current mouse coordinate in min 
-  myXmin=point.x;  myYmin=point.y;
-  myXmax=point.x;  myYmax=point.y;
-  
-  if ( ! (nFlags & MK_CONTROL) ) 
-  {
-    if (myCurrentMode == CurAction3d_DynamicRotation)
-    {
-      myView->SetComputedMode(Standard_False);
-      myView->StartRotation(point.x,point.y);  
-    }
-  }
-}
-
-void COCCDemoView::OnLButtonUp(UINT nFlags, CPoint point) 
-{
-  if ( !(nFlags & MK_CONTROL) )
-  {
-    switch (myCurrentMode)
-    {
-    case CurAction3d_Nothing :
-      myXmax=point.x;  
-      myYmax=point.y;
-      break;
-    case CurAction3d_DynamicZooming :
-      myCurrentMode = CurAction3d_Nothing;
-      break;
-    case CurAction3d_WindowZooming :
-      DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_False);
-      myXmax=point.x;
-      myYmax=point.y;
-      if ((abs(myXmin-myXmax)>ValZWMin) || (abs(myYmin-myYmax)>ValZWMin))
-        // Test if the zoom window is greater than a minimale window.
-      {
-        // Do the zoom window between Pmin and Pmax
-        myView->WindowFitAll(myXmin,myYmin,myXmax,myYmax);  
-      }  
-      myCurrentMode = CurAction3d_Nothing;
-      break;
-    case CurAction3d_DynamicPanning :
-      myCurrentMode = CurAction3d_Nothing;
-      break;
-    case CurAction3d_GlobalPanning :
-      myView->Place(point.x,point.y,myCurZoom); 
-      myCurrentMode = CurAction3d_Nothing;
-      break;
-    case  CurAction3d_DynamicRotation :
-      if (myVisMode == VIS_HLR)
-      {
-        SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
-        myView->SetComputedMode(Standard_True);
-        myView->Redraw();
-        SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
-      }
-      myCurrentMode = CurAction3d_Nothing;
-      break;
-    } //switch (myCurrentMode)
-  }
-}
-
-void COCCDemoView::OnRButtonDown(UINT nFlags, CPoint point) 
-{
-  if ( nFlags & MK_CONTROL ) 
-  {
-    myView->SetComputedMode(Standard_False);
-    myView->StartRotation(point.x,point.y);  
-  }
-}
-
-void COCCDemoView::OnRButtonUp(UINT /*nFlags*/, CPoint /*point*/) 
-{
-  if (myVisMode == VIS_HLR)
-  {
-    SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
-    myView->SetComputedMode(Standard_True);
-    myView->Redraw();
-    SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
-  }
-}
-
-void COCCDemoView::OnMouseMove(UINT nFlags, CPoint point) 
-{
-  //   ============================  LEFT BUTTON =======================
-  if ( nFlags & MK_LBUTTON)
-  {
-    if ( nFlags & MK_CONTROL ) 
-    {
-      // move with MB1 and Control : on the dynamic zooming  
-      // Do the zoom in function of mouse's coordinates  
-      myView->Zoom(myXmax,myYmax,point.x,point.y); 
-      // save the current mouse coordinate in max
-      myXmax = point.x; 
-      myYmax = point.y;        
-    }
-    else // if ( Ctrl )
-    {
-      switch (myCurrentMode)
-      {
-      case CurAction3d_Nothing :
-        myXmax = point.x;
-        myYmax = point.y;
-        break;
-      case CurAction3d_DynamicZooming :
-        myView->Zoom(myXmax,myYmax,point.x,point.y); 
-        // save the current mouse coordinate in max;
-        myXmax=point.x;
-        myYmax=point.y;
-        break;
-      case CurAction3d_WindowZooming :
-        myXmax = point.x; myYmax = point.y;    
-        DrawRectangle (myXmin, myYmin, myXmax, myYmax, Standard_True, Aspect_TOL_DASH);
-        break;
-      case CurAction3d_DynamicPanning :
-        myView->Pan(point.x-myXmax,myYmax-point.y); // Realize the panning
-        myXmax = point.x; myYmax = point.y;    
-        break;
-      case CurAction3d_GlobalPanning : // nothing           
-        break;
-      case  CurAction3d_DynamicRotation :
-        myView->Rotation(point.x,point.y);
-        myView->Redraw();
-        break;
-      }
-    }
-  }
-  //   ============================  MIDDLE BUTTON =======================
-  else if ( nFlags & MK_MBUTTON)
-  {
-    if ( nFlags & MK_CONTROL ) 
-    {
-      myView->Pan(point.x-myXmax,myYmax-point.y); // Realize the panning
-      myXmax = point.x; myYmax = point.y;      
-    }
-  }
-  //   ============================  RIGHT BUTTON =======================
-  else if ( nFlags & MK_RBUTTON)
-  {
-    if ( nFlags & MK_CONTROL ) 
-    {
-      myView->Rotation(point.x,point.y);
-    }
-  }
-  //   ============================  NO BUTTON =======================
-  else
-  {
-    myXmax = point.x;
-    myYmax = point.y;  
-  }
-}
-
-void COCCDemoView::OnUpdateBUTTONPanGlo(CCmdUI* pCmdUI) 
-{
-  pCmdUI->SetCheck (myCurrentMode == CurAction3d_GlobalPanning);
-       pCmdUI->Enable   (myCurrentMode != CurAction3d_GlobalPanning);  
-}
-
-void COCCDemoView::OnUpdateBUTTONPan(CCmdUI* pCmdUI) 
-{
-  pCmdUI->SetCheck (myCurrentMode == CurAction3d_DynamicPanning);
-       pCmdUI->Enable   (myCurrentMode != CurAction3d_DynamicPanning );        
-}
-
-void COCCDemoView::OnUpdateBUTTONZoomProg(CCmdUI* pCmdUI) 
-{
-  pCmdUI->SetCheck (myCurrentMode == CurAction3d_DynamicZooming );
-       pCmdUI->Enable   (myCurrentMode != CurAction3d_DynamicZooming); 
-}
-
-void COCCDemoView::OnUpdateBUTTONZoomWin(CCmdUI* pCmdUI) 
-{
-  pCmdUI->SetCheck (myCurrentMode == CurAction3d_WindowZooming);
-       pCmdUI->Enable   (myCurrentMode != CurAction3d_WindowZooming);  
-}
-
-void COCCDemoView::OnUpdateBUTTONRot(CCmdUI* pCmdUI) 
-{
-  pCmdUI->SetCheck (myCurrentMode == CurAction3d_DynamicRotation);
-       pCmdUI->Enable   (myCurrentMode != CurAction3d_DynamicRotation);        
-}
-
-void COCCDemoView::DrawRectangle (Standard_Integer theMinX,
-                                  Standard_Integer theMinY,
-                                  Standard_Integer theMaxX,
-                                  Standard_Integer theMaxY,
-                                  Standard_Boolean theToDraw,
-                                  Aspect_TypeOfLine theLineType)
-{
-  const Handle(AIS_InteractiveContext)& aCtx = GetDocument()->GetAISContext();
-  if (!theToDraw)
-  {
-    aCtx->Remove (myRect, false);
-    aCtx->CurrentViewer()->RedrawImmediate();
-    return;
-  }
-
-  CRect aRect;
-  GetWindowRect (aRect);
-  myRect->SetLineType (theLineType);
-  myRect->SetRectangle (theMinX, aRect.Height() - theMinY, theMaxX, aRect.Height() - theMaxY);
-  if (!aCtx->IsDisplayed (myRect))
-  {
-    aCtx->Display (myRect, false);
-  }
-  else
-  {
-    aCtx->Redisplay (myRect, false);
-  }
-  aCtx->CurrentViewer()->RedrawImmediate();
-}
-
-void COCCDemoView::InitButtons()
-{
-  myXmin=0;
-  myYmin=0;  
-  myXmax=0;
-  myYmax=0;
-  myCurZoom=0;
-  myCurrentMode = CurAction3d_Nothing;
-}
-
-void COCCDemoView::Reset()
-{
-  InitButtons();
-  myVisMode = VIS_SHADE;
-  if (!myView.IsNull())
-  {
-    RedrawVisMode();
-    myView->Reset();
-  }
-}
-
-void COCCDemoView::RedrawVisMode()
-{
-  switch (myVisMode)
-  {
-  case VIS_WIREFRAME:
-    GetDocument()->GetAISContext()->SetDisplayMode (AIS_WireFrame, Standard_True);
-    myView->SetComputedMode (Standard_False);
-    myView->Redraw();
-    break;
-  case VIS_SHADE:
-    GetDocument()->GetAISContext()->SetDisplayMode (AIS_Shaded, Standard_True);
-    myView->SetComputedMode (Standard_False);
-    myView->Redraw();
-    break;
-  case VIS_HLR:
-    SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
-    myView->SetComputedMode (Standard_True);
-    myView->Redraw();
-    SetCursor(AfxGetApp()->LoadStandardCursor(IDC_ARROW));
-    GetDocument()->GetAISContext()->SetDisplayMode (AIS_WireFrame, Standard_True);
-    break;
-  }
-}
-
-void COCCDemoView::OnBUTTONWire() 
-{
-  myVisMode = VIS_WIREFRAME;
-  RedrawVisMode();
-}
-
-void COCCDemoView::OnBUTTONShade() 
-{
-  myVisMode = VIS_SHADE;
-  RedrawVisMode();
-}
-
-void COCCDemoView::OnBUTTONHlrOn() 
-{
-  myVisMode = VIS_HLR;
-  RedrawVisMode();
-}
-
-void COCCDemoView::OnUpdateBUTTONWire(CCmdUI* pCmdUI) 
-{
-  pCmdUI->SetCheck (myVisMode == VIS_WIREFRAME);
-       pCmdUI->Enable   (myVisMode != VIS_WIREFRAME);  
-}
-
-void COCCDemoView::OnUpdateBUTTONShade(CCmdUI* pCmdUI) 
-{
-  pCmdUI->SetCheck (myVisMode == VIS_SHADE);
-       pCmdUI->Enable   (myVisMode != VIS_SHADE);      
-}
-
-void COCCDemoView::OnUpdateBUTTONHlrOn(CCmdUI* pCmdUI) 
-{
-  pCmdUI->SetCheck (myVisMode == VIS_HLR);
-       pCmdUI->Enable   (myVisMode != VIS_HLR);        
-}
-
-void COCCDemoView::GetViewAt (Standard_Real& theX, Standard_Real& theY, Standard_Real& theZ) const
-{
-  myView->At (theX, theY, theZ);
-}
-
-void COCCDemoView::SetViewAt (const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ)
-{
-  myView->SetAt (theX, theY, theZ);
-}
-
-void COCCDemoView::GetViewEye(Standard_Real& X, Standard_Real& Y, Standard_Real& Z)
-{
-       myView->Eye(X,Y,Z);
-}
-
-void COCCDemoView::SetViewEye(Standard_Real X, Standard_Real Y, Standard_Real Z)
-{
-       myView->SetEye(X,Y,Z);
-}
-
-Standard_Real COCCDemoView::GetViewScale()
-{
-       return myView->Scale();
-}
-
-void COCCDemoView::SetViewScale(Standard_Real Coef)
-{
-       myView->SetScale(Coef);
-}
-
-void COCCDemoView::Translate (const Standard_Real theX, const Standard_Real theY)
-{
-  myView->Panning (theX, theY);
-}
diff --git a/samples/mfc/standard/10_Convert/src/WNT/OCCDemoView.h b/samples/mfc/standard/10_Convert/src/WNT/OCCDemoView.h
deleted file mode 100755 (executable)
index d8379b6..0000000
+++ /dev/null
@@ -1,144 +0,0 @@
-// OCCDemoView.h : interface of the COCCDemoView class
-//
-/////////////////////////////////////////////////////////////////////////////
-
-#if !defined(AFX_OCCDEMOVIEW_H__57A6A230_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_)
-#define AFX_OCCDEMOVIEW_H__57A6A230_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-enum View3D_CurrentAction { 
-  CurAction3d_Nothing,
-  CurAction3d_DynamicZooming,
-  CurAction3d_WindowZooming,
-  CurAction3d_DynamicPanning,
-  CurAction3d_GlobalPanning,
-  CurAction3d_DynamicRotation
-};
-
-class AIS_RubberBand;
-
-class COCCDemoView : public CView
-{
-protected: // create from serialization only
-       COCCDemoView();
-       DECLARE_DYNCREATE(COCCDemoView)
-
-// Attributes
-public:
-  COCCDemoDoc* GetDocument();
-  void FitAll()
-  {
-    myView->FitAll();
-    myView->ZFitAll();
-  };
-  void GetViewAt (Standard_Real& theX, Standard_Real& theY, Standard_Real& theZ) const;
-  void SetViewAt (const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ);
-  void GetViewEye (Standard_Real& X, Standard_Real& Y, Standard_Real& Z);
-  void SetViewEye (const Standard_Real X,const Standard_Real Y,const Standard_Real Z);
-  Standard_Real GetViewScale();
-  void SetViewScale(const Standard_Real Coef);
-  void Translate (const Standard_Real theX, const Standard_Real theY);
-
-
-// Operations
-public:
-  void InitButtons();
-  void Reset();
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(COCCDemoView)
-       public:
-       virtual void OnDraw(CDC* pDC);  // overridden to draw this view
-       virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
-       virtual void OnInitialUpdate();
-       protected:
-       //}}AFX_VIRTUAL
-
-// Implementation
-public:
-       virtual ~COCCDemoView();
-#ifdef _DEBUG
-       virtual void AssertValid() const;
-       virtual void Dump(CDumpContext& dc) const;
-#endif
-
-protected:
-
-// Generated message map functions
-protected:
-       //{{AFX_MSG(COCCDemoView)
-       afx_msg void OnBUTTONAxo();
-       afx_msg void OnBUTTONBack();
-       afx_msg void OnBUTTONBottom();
-       afx_msg void OnBUTTONFront();
-       afx_msg void OnBUTTONHlrOn();
-       afx_msg void OnBUTTONLeft();
-       afx_msg void OnBUTTONPan();
-       afx_msg void OnBUTTONPanGlo();
-       afx_msg void OnBUTTONReset();
-       afx_msg void OnBUTTONRight();
-       afx_msg void OnBUTTONRot();
-       afx_msg void OnBUTTONTop();
-       afx_msg void OnBUTTONZoomAll();
-       afx_msg void OnSize(UINT nType, int cx, int cy);
-       afx_msg void OnBUTTONZoomProg();
-       afx_msg void OnBUTTONZoomWin();
-       afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
-       afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
-       afx_msg void OnMouseMove(UINT nFlags, CPoint point);
-       afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
-       afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
-       afx_msg void OnUpdateBUTTONPanGlo(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONPan(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONZoomProg(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONZoomWin(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONRot(CCmdUI* pCmdUI);
-       afx_msg void OnBUTTONWire();
-       afx_msg void OnBUTTONShade();
-       afx_msg void OnUpdateBUTTONHlrOn(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONShade(CCmdUI* pCmdUI);
-       afx_msg void OnUpdateBUTTONWire(CCmdUI* pCmdUI);
-       //}}AFX_MSG
-       DECLARE_MESSAGE_MAP()
-
-private:
-  void RedrawVisMode();
-
-private:
-  enum VisMode { VIS_WIREFRAME, VIS_SHADE, VIS_HLR };
-  Handle(V3d_View)     myView;
-  Handle(Graphic3d_GraphicDriver) myGraphicDriver;
-  View3D_CurrentAction myCurrentMode;
-  VisMode              myVisMode;
-  Standard_Integer     myXmin;
-  Standard_Integer     myYmin;  
-  Standard_Integer     myXmax;
-  Standard_Integer     myYmax;
-  Standard_Real        myCurZoom;
-
-private:
-  Handle(AIS_RubberBand) myRect; //!< Rubber rectangle for selection
-  virtual void DrawRectangle (const Standard_Integer  MinX  ,
-                              const Standard_Integer  MinY  ,
-                              const Standard_Integer  MaxX  ,
-                              const Standard_Integer  MaxY  ,
-                              const Standard_Boolean  Draw  ,
-                              Aspect_TypeOfLine theLineType = Aspect_TOL_SOLID);
-
-};
-
-#ifndef _DEBUG  // debug version in OCCDemoView.cpp
-inline COCCDemoDoc* COCCDemoView::GetDocument()
-   { return (COCCDemoDoc*)m_pDocument; }
-#endif
-
-/////////////////////////////////////////////////////////////////////////////
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_OCCDEMOVIEW_H__57A6A230_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_)
diff --git a/samples/mfc/standard/10_Convert/src/WNT/ResultDialog.cpp b/samples/mfc/standard/10_Convert/src/WNT/ResultDialog.cpp
deleted file mode 100755 (executable)
index 90d6ab9..0000000
+++ /dev/null
@@ -1,206 +0,0 @@
-// ResultDialog.cpp : implementation file
-//
-
-#include "stdafx.h"
-#include "OCCDemo.h"
-#include "ResultDialog.h"
-#include "MainFrm.h"
-#include "OCCDemoDoc.h"
-
-#ifdef _DEBUG
-#define new DEBUG_NEW
-#undef THIS_FILE
-static char THIS_FILE[] = __FILE__;
-#endif
-
-// minimum distance between buttons, button and dialog border
-#define d 5
-
-/////////////////////////////////////////////////////////////////////////////
-// CResultDialog dialog
-
-
-CResultDialog::CResultDialog(CWnd* pParent /*=NULL*/)
-       : CDialog(CResultDialog::IDD, pParent)
-{
-       //{{AFX_DATA_INIT(CResultDialog)
-               // NOTE: the ClassWizard will add member initialization here
-       //}}AFX_DATA_INIT
-}
-
-void CResultDialog::Empty()
-{
-  CRichEditCtrl *pEd = (CRichEditCtrl *) GetDlgItem (IDC_RICHEDIT_ResultDialog);
-  pEd->Clear();
-}
-
-void CResultDialog::SetText(LPCSTR aText)
-{
-  CRichEditCtrl *pEd = (CRichEditCtrl *) GetDlgItem (IDC_RICHEDIT_ResultDialog);
-       CString aCStr(aText);
-  pEd->SetWindowText(aCStr);
-}
-
-void CResultDialog::SetTitle(LPCSTR aTitle)
-{
-  CString aCStr(aTitle);
-  SetWindowText(aCStr);
-}
-
-void CResultDialog::DoDataExchange(CDataExchange* pDX)
-{
-       CDialog::DoDataExchange(pDX);
-       //{{AFX_DATA_MAP(CResultDialog)
-               // NOTE: the ClassWizard will add DDX and DDV calls here
-       //}}AFX_DATA_MAP
-}
-
-
-BEGIN_MESSAGE_MAP(CResultDialog, CDialog)
-       //{{AFX_MSG_MAP(CResultDialog)
-       ON_BN_CLICKED(IDC_CopySelectionToClipboard, OnCopySelectionToClipboard)
-       ON_BN_CLICKED(IDC_CopyAllToClipboard, OnCopyAllToClipboard)
-       ON_WM_SIZE()
-       //}}AFX_MSG_MAP
-END_MESSAGE_MAP()
-
-/////////////////////////////////////////////////////////////////////////////
-// CResultDialog message handlers
-
-void CResultDialog::OnCopySelectionToClipboard() 
-{
-       CRichEditCtrl *pEd = (CRichEditCtrl *) GetDlgItem (IDC_RICHEDIT_ResultDialog);
-       pEd->Copy( );
-}
-
-void CResultDialog::OnCopyAllToClipboard() 
-{
-  CRichEditCtrl *pEd = (CRichEditCtrl *) GetDlgItem (IDC_RICHEDIT_ResultDialog);
-  long nStartChar, nEndChar;
-  pEd->GetSel (nStartChar, nEndChar);
-  pEd->SetSel (0, -1);
-  pEd->Copy();
-  pEd->SetSel (nStartChar, nEndChar);
-}
-
-void CResultDialog::OnCancel() 
-{
-  CMainFrame* cFrame = (CMainFrame*) AfxGetApp()->GetMainWnd();
-  COCCDemoDoc* aDoc = (COCCDemoDoc*) cFrame->GetActiveDocument();
-  aDoc->IsShowResult() = FALSE;
-       
-       CDialog::OnCancel();
-}
-
-void CResultDialog::Initialize()
-{
-  // Set Fixed Width Font for rich edit control
-  CRichEditCtrl *pEd = (CRichEditCtrl *) GetDlgItem (IDC_RICHEDIT_ResultDialog);
-  CFont aFixedWidthFont;
-  VERIFY(aFixedWidthFont.CreateFont(   
-    15,                        // nHeight
-    5,                         // nWidth
-    0,                         // nEscapement
-    0,                         // nOrientation
-    FW_NORMAL,                 // nWeight   
-    FALSE,                     // bItalic
-    FALSE,                     // bUnderline
-    0,                         // cStrikeOut
-    ANSI_CHARSET,              // nCharSet
-    OUT_DEFAULT_PRECIS,        // nOutPrecision
-    CLIP_DEFAULT_PRECIS,       // nClipPrecision
-    DEFAULT_QUALITY,           // nQuality
-    FF_MODERN,                 // Fix width fonts are FF_MODERN
-    L"Courier New"));          // lpszFacename
-  pEd->SetFont(&aFixedWidthFont, false);
-
-  // save button's width and height, so they are calculated only once
-  RECT rect;
-  CWnd *pBCopy = (CWnd *) GetDlgItem (IDC_CopySelectionToClipboard);
-  pBCopy->GetWindowRect(&rect);
-  bw = rect.right - rect.left; // a button's width (they are all equal)
-  bh = rect.bottom - rect.top; // a button's height
-}
-
-
-// OnSize is a message handler of WM_SIZE message,
-// it is reimplemented in order to reposition the buttons
-// (keep them always in the bottom part of the dialog)
-// and resize the rich edit controls as user resized THIS dialog.
-void CResultDialog::OnSize(UINT nType, int cx, int cy) 
-{ 
-  // call the base class handler
-  CDialog::OnSize(nType, cx, cy);
-  
-  //resizes internal GUI controls (rich edit control and 3 buttons)
-  //according to given values of this dialog width (cx) and height (cy).
-  //the method is called from OnSize message handler and 
-  //from InitInstance of OCCDemo to do initial resize
-  CWnd *pEd = (CWnd *) GetDlgItem (IDC_RICHEDIT_ResultDialog);
-  CWnd *pBCopy = (CWnd *) GetDlgItem (IDC_CopySelectionToClipboard);
-  CWnd *pBCopyAll = (CWnd *) GetDlgItem (IDC_CopyAllToClipboard);
-  CWnd *pBClose = (CWnd *) GetDlgItem (IDCANCEL);
-
-  if (pEd != NULL) // it is NULL when dialog is being created and OnSize is called
-  {
-    int butY = cy-bh-d; // y coordinate of buttons' top left corner
-
-    pEd->SetWindowPos(&wndTop, 0, 0, cx, butY-4*d, SWP_NOMOVE);
-    pBCopy->SetWindowPos(&wndTop, d, butY, 0, 0, SWP_NOSIZE); 
-    pBCopyAll->SetWindowPos(&wndTop, d+bw+d, butY, 0, 0, SWP_NOSIZE);
-    pBClose->SetWindowPos(&wndTop, cx-bw-d, butY, 0, 0, SWP_NOSIZE);
-  }
-
-  RedrawWindow();
-}
-
-LRESULT CResultDialog::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) 
-{
-  if (message != WM_SIZING)
-    return CDialog::WindowProc(message, wParam, lParam);
-
-  LPRECT pRect = (LPRECT) lParam;
-  int cx = pRect->right - pRect->left;
-  int cy = pRect->bottom - pRect->top;
-
-  int minCx = 3*bw+5*d;
-  int minCy = 2*d+bh+200;
-
-  if (cx < minCx || cy < minCy)
-  {
-    switch (wParam)
-    {
-    case WMSZ_BOTTOM:
-      pRect->bottom = pRect->top + minCy;
-      break;
-    case WMSZ_TOP:
-      pRect->top = pRect->bottom - minCy;
-      break;
-    case WMSZ_LEFT:
-      pRect->left = pRect->right - minCx;
-      break;
-    case WMSZ_RIGHT:
-      pRect->right = pRect->left + minCx;
-      break;
-    case WMSZ_TOPLEFT:
-      if (cx < minCx) pRect->left = pRect->right - minCx;
-      if (cy < minCy) pRect->top = pRect->bottom - minCy;
-      break;
-    case WMSZ_BOTTOMRIGHT:
-      if (cx < minCx) pRect->right = pRect->left + minCx;
-      if (cy < minCy) pRect->bottom = pRect->top + minCy;
-      break;
-    case WMSZ_TOPRIGHT:
-      if (cx < minCx) pRect->right = pRect->left + minCx;
-      if (cy < minCy) pRect->top = pRect->bottom - minCy;
-      break;
-    case WMSZ_BOTTOMLEFT:
-      if (cx < minCx) pRect->left = pRect->right - minCx;
-      if (cy < minCy) pRect->bottom = pRect->top + minCy;
-      break;
-    }
-  }
-
-  return CDialog::WindowProc(message, wParam, lParam);
-}
-
diff --git a/samples/mfc/standard/10_Convert/src/WNT/ResultDialog.h b/samples/mfc/standard/10_Convert/src/WNT/ResultDialog.h
deleted file mode 100755 (executable)
index 688fb14..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-#if !defined(AFX_RESULTDIALOG_H__6597303D_7F5B_11D5_BA4D_0060B0EE18EA__INCLUDED_)
-#define AFX_RESULTDIALOG_H__6597303D_7F5B_11D5_BA4D_0060B0EE18EA__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-// ResultDialog.h : header file
-//
-
-#include "resource.h"
-#include <res\\OCC_Resource.h>
-
-/////////////////////////////////////////////////////////////////////////////
-// CResultDialog dialog
-
-class CResultDialog : public CDialog
-{
-// Construction
-public:
-       void Initialize();
-       CResultDialog(CWnd* pParent = NULL);   // standard constructor
-       void SetTitle(LPCSTR aTitle);
-       void SetText(LPCSTR aText);
-       void Empty();
-
-// Dialog Data
-       //{{AFX_DATA(CResultDialog)
-       enum { IDD = IDD_ResultDialog };
-               // NOTE: the ClassWizard will add data members here
-       //}}AFX_DATA
-
-
-// Overrides
-       // ClassWizard generated virtual function overrides
-       //{{AFX_VIRTUAL(CResultDialog)
-       protected:
-       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
-       virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
-       //}}AFX_VIRTUAL
-
-// Implementation
-protected:
-
-  // Generated message map functions
-       //{{AFX_MSG(CResultDialog)
-       afx_msg void OnCopySelectionToClipboard();
-       afx_msg void OnCopyAllToClipboard();
-       virtual void OnCancel();
-
-  // OnSize is a message handler of WM_SIZE message,
-  // it is reimplemented in order to reposition the buttons
-  // (keep them always in the bottom part of the dialog)
-  // and resize the rich edit controls as user resized THIS dialog.
-       afx_msg void OnSize(UINT nType, int cx, int cy);
-       //}}AFX_MSG
-
-       DECLARE_MESSAGE_MAP()
-
-private:
-  int bw, bh; // button width and height
-
-};
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_RESULTDIALOG_H__6597303D_7F5B_11D5_BA4D_0060B0EE18EA__INCLUDED_)
diff --git a/samples/mfc/standard/10_Convert/src/WNT/StdAfx.cpp b/samples/mfc/standard/10_Convert/src/WNT/StdAfx.cpp
deleted file mode 100755 (executable)
index 24876ba..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-// stdafx.cpp : source file that includes just the standard includes
-//     OCCDemo.pch will be the pre-compiled header
-//     stdafx.obj will contain the pre-compiled type information
-
-#include "stdafx.h"
-
diff --git a/samples/mfc/standard/10_Convert/src/WNT/StdAfx.h b/samples/mfc/standard/10_Convert/src/WNT/StdAfx.h
deleted file mode 100755 (executable)
index 43eaa40..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-// stdafx.h : include file for standard system include files,
-//  or project specific include files that are used frequently, but
-//      are changed infrequently
-//
-
-#if !defined(AFX_STDAFX_H__57A6A22A_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_)
-#define AFX_STDAFX_H__57A6A22A_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_
-
-#if _MSC_VER > 1000
-#pragma once
-#endif // _MSC_VER > 1000
-
-#define VC_EXTRALEAN           // Exclude rarely-used stuff from Windows headers
-
-#include <afxwin.h>         // MFC core and standard components
-#include <afxext.h>         // MFC extensions
-//#include <afxdtctl.h>                // MFC support for Internet Explorer 4 Common Controls
-#ifndef _AFX_NO_AFXCMN_SUPPORT
-#include <afxcmn.h>                    // MFC support for Windows Common Controls
-#endif // _AFX_NO_AFXCMN_SUPPORT
-
-#pragma warning(  disable : 4244 )        // Issue warning 4244
-#include "Standard_ShortReal.hxx"
-#pragma warning(  default : 4244 )        // Issue warning 4244
-
-#include <Standard.hxx>
-
-#include <Aspect_DisplayConnection.hxx>
-#include <AIS_InteractiveContext.hxx>
-#include <AIS_Shape.hxx>
-#include <AIS_Point.hxx>
-#include <V3d_Viewer.hxx>
-#include <V3d_View.hxx>
-#include <OpenGl_GraphicDriver.hxx>
-#include <WNT_Window.hxx>
-#include <Standard_ErrorHandler.hxx>
-
-//{{AFX_INSERT_LOCATION}}
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
-#endif // !defined(AFX_STDAFX_H__57A6A22A_7B4F_11D5_BA4A_0060B0EE18EA__INCLUDED_)
diff --git a/samples/mfc/standard/10_Convert/src/WNT/res/OCCDemo.ico b/samples/mfc/standard/10_Convert/src/WNT/res/OCCDemo.ico
deleted file mode 100755 (executable)
index 99dbceb..0000000
Binary files a/samples/mfc/standard/10_Convert/src/WNT/res/OCCDemo.ico and /dev/null differ
diff --git a/samples/mfc/standard/10_Convert/src/WNT/res/OCCDemo.rc2 b/samples/mfc/standard/10_Convert/src/WNT/res/OCCDemo.rc2
deleted file mode 100755 (executable)
index ff1b99b..0000000
+++ /dev/null
@@ -1 +0,0 @@
-// This file is to be included in the main resource file
diff --git a/samples/mfc/standard/10_Convert/src/WNT/res/logopen.bmp b/samples/mfc/standard/10_Convert/src/WNT/res/logopen.bmp
deleted file mode 100755 (executable)
index 443a7de..0000000
Binary files a/samples/mfc/standard/10_Convert/src/WNT/res/logopen.bmp and /dev/null differ
diff --git a/samples/mfc/standard/10_Convert/src/WNT/res/occlogo.bmp b/samples/mfc/standard/10_Convert/src/WNT/res/occlogo.bmp
deleted file mode 100755 (executable)
index bf12607..0000000
Binary files a/samples/mfc/standard/10_Convert/src/WNT/res/occlogo.bmp and /dev/null differ
diff --git a/samples/mfc/standard/10_Convert/src/WNT/res/toolbar.bmp b/samples/mfc/standard/10_Convert/src/WNT/res/toolbar.bmp
deleted file mode 100755 (executable)
index ccffcd3..0000000
Binary files a/samples/mfc/standard/10_Convert/src/WNT/res/toolbar.bmp and /dev/null differ
diff --git a/samples/mfc/standard/10_Convert/src/WNT/res/toolbar1.bmp b/samples/mfc/standard/10_Convert/src/WNT/res/toolbar1.bmp
deleted file mode 100755 (executable)
index 141f18f..0000000
Binary files a/samples/mfc/standard/10_Convert/src/WNT/res/toolbar1.bmp and /dev/null differ
diff --git a/samples/mfc/standard/10_Convert/src/WNT/resource.h b/samples/mfc/standard/10_Convert/src/WNT/resource.h
deleted file mode 100755 (executable)
index 5a9e788..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-//{{NO_DEPENDENCIES}}
-// Microsoft Developer Studio generated include file.
-// Used by OCCDemo.rc
-//
-#define IDD_ABOUTBOX                    100
-#define IDR_MAINFRAME                   128
-#define IDR_TOOLBAR1                    130
-#define IDB_OCCLOGO                     138
-#define IDB_OPENLOGO                    142
-#define ID_BUTTONWire                   50015
-#define ID_BUTTONShade                  50016
-#define ID_BUTTONStart                  50103
-#define ID_BUTTONNext                   50104
-#define ID_BUTTONShowResult             50105
-#define ID_DUMP_VIEW                    50106
-#define ID_BUTTONEnd                    50107
-#define ID_BUTTONPrev                   50109
-#define ID_BUTTONRepeat                 50110
-
-// Next default values for new objects
-// 
-#ifdef APSTUDIO_INVOKED
-#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_3D_CONTROLS                     1
-#define _APS_NEXT_RESOURCE_VALUE        143
-#define _APS_NEXT_COMMAND_VALUE         40111
-#define _APS_NEXT_CONTROL_VALUE         1007
-#define _APS_NEXT_SYMED_VALUE           101
-#endif
-#endif
index 74cead69d46dfbd2fb56d6bcc637d469b2ccb1ba..882e279641d9c506ef1434c189c32608d35d4b00 100644 (file)
@@ -4,24 +4,12 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Geometry", "01_Geometry\adm
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Modeling", "02_Modeling\adm\win\vc10\Modeling.vcxproj", "{B10FC678-B9AF-4B05-B3DC-8F790C610CC3}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Viewer2d", "03_Viewer2d\adm\win\vc10\Viewer2d.vcxproj", "{6B905DC2-4E72-4EDA-99C2-7473634690FE}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ImportExport", "03_ImportExport\adm\win\vc10\ImportExport.vcxproj", "{1C9A05AE-AF5A-4ACE-9A72-83436D77504C}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Viewer3d", "04_Viewer3d\adm\win\vc10\Viewer3d.vcxproj", "{949DFBDF-9007-4C88-8925-43209C36A5D6}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ImportExport", "05_ImportExport\adm\win\vc10\ImportExport.vcxproj", "{1C9A05AE-AF5A-4ACE-9A72-83436D77504C}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Ocaf", "06_Ocaf\adm\win\vc10\Ocaf.vcxproj", "{B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Triangulation", "07_Triangulation\adm\win\vc10\Triangulation.vcxproj", "{B50C10C8-5260-498B-A80F-48FFB4534360}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HLR", "08_HLR\adm\win\vc10\HLR.vcxproj", "{76045260-8DA6-4A3E-B220-F5B1B4ADE192}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Animation", "09_Animation\adm\win\vc10\Animation.vcxproj", "{92492ACB-1F57-40BB-818F-33AD1C20273A}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HLR", "04_HLR\adm\win\vc10\HLR.vcxproj", "{76045260-8DA6-4A3E-B220-F5B1B4ADE192}"
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mfcsample", "mfcsample\adm\win\vc10\mfcsample.vcxproj", "{2D6CBBE8-6965-4016-B503-0D715AE26691}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Convert", "10_Convert\adm\win\vc10\Convert.vcxproj", "{C527B648-F98D-42E5-9F59-251FD95D15A0}"
-EndProject
 Global
        GlobalSection(SolutionConfigurationPlatforms) = preSolution
                Debug|Win32 = Debug|Win32
@@ -46,22 +34,6 @@ Global
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|Win32.Build.0 = Release|Win32
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|x64.ActiveCfg = Release|x64
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|x64.Build.0 = Release|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|Win32.ActiveCfg = Debug|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|Win32.Build.0 = Debug|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|x64.ActiveCfg = Debug|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|x64.Build.0 = Debug|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|Win32.ActiveCfg = Release|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|Win32.Build.0 = Release|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|x64.ActiveCfg = Release|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|x64.Build.0 = Release|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|Win32.ActiveCfg = Debug|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|Win32.Build.0 = Debug|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|x64.ActiveCfg = Debug|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|x64.Build.0 = Debug|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|Win32.ActiveCfg = Release|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|Win32.Build.0 = Release|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|x64.ActiveCfg = Release|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|x64.Build.0 = Release|x64
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|Win32.ActiveCfg = Debug|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|Win32.Build.0 = Debug|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|x64.ActiveCfg = Debug|x64
@@ -70,22 +42,6 @@ Global
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|Win32.Build.0 = Release|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|x64.ActiveCfg = Release|x64
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|x64.Build.0 = Release|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|Win32.ActiveCfg = Debug|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|Win32.Build.0 = Debug|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|x64.ActiveCfg = Debug|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|x64.Build.0 = Debug|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|Win32.ActiveCfg = Release|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|Win32.Build.0 = Release|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|x64.ActiveCfg = Release|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|x64.Build.0 = Release|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|Win32.ActiveCfg = Debug|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|Win32.Build.0 = Debug|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|x64.ActiveCfg = Debug|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|x64.Build.0 = Debug|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|Win32.ActiveCfg = Release|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|Win32.Build.0 = Release|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|x64.ActiveCfg = Release|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|x64.Build.0 = Release|x64
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|Win32.ActiveCfg = Debug|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|Win32.Build.0 = Debug|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|x64.ActiveCfg = Debug|x64
@@ -94,14 +50,6 @@ Global
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|Win32.Build.0 = Release|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|x64.ActiveCfg = Release|x64
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|x64.Build.0 = Release|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|Win32.ActiveCfg = Debug|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|Win32.Build.0 = Debug|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|x64.ActiveCfg = Debug|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|x64.Build.0 = Debug|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|Win32.ActiveCfg = Release|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|Win32.Build.0 = Release|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|x64.ActiveCfg = Release|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|x64.Build.0 = Release|x64
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|Win32.ActiveCfg = Debug|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|Win32.Build.0 = Debug|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|x64.ActiveCfg = Debug|x64
@@ -110,14 +58,6 @@ Global
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|Win32.Build.0 = Release|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|x64.ActiveCfg = Release|x64
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|x64.Build.0 = Release|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|Win32.ActiveCfg = Debug|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|Win32.Build.0 = Debug|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|x64.ActiveCfg = Debug|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|x64.Build.0 = Debug|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|Win32.ActiveCfg = Release|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|Win32.Build.0 = Release|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|x64.ActiveCfg = Release|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|x64.Build.0 = Release|x64
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
index 655e05c6022e55b84bba1ca0e038a1e9c2e730ea..08aac37cc4cd7523269602af14799c79b1fbb9fa 100644 (file)
@@ -4,24 +4,12 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Geometry", "01_Geometry\adm
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Modeling", "02_Modeling\adm\win\vc10\Modeling.vcxproj", "{B10FC678-B9AF-4B05-B3DC-8F790C610CC3}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Viewer2d", "03_Viewer2d\adm\win\vc10\Viewer2d.vcxproj", "{6B905DC2-4E72-4EDA-99C2-7473634690FE}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ImportExport", "03_ImportExport\adm\win\vc10\ImportExport.vcxproj", "{1C9A05AE-AF5A-4ACE-9A72-83436D77504C}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Viewer3d", "04_Viewer3d\adm\win\vc10\Viewer3d.vcxproj", "{949DFBDF-9007-4C88-8925-43209C36A5D6}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ImportExport", "05_ImportExport\adm\win\vc10\ImportExport.vcxproj", "{1C9A05AE-AF5A-4ACE-9A72-83436D77504C}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Ocaf", "06_Ocaf\adm\win\vc10\Ocaf.vcxproj", "{B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Triangulation", "07_Triangulation\adm\win\vc10\Triangulation.vcxproj", "{B50C10C8-5260-498B-A80F-48FFB4534360}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HLR", "08_HLR\adm\win\vc10\HLR.vcxproj", "{76045260-8DA6-4A3E-B220-F5B1B4ADE192}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Animation", "09_Animation\adm\win\vc10\Animation.vcxproj", "{92492ACB-1F57-40BB-818F-33AD1C20273A}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HLR", "04_HLR\adm\win\vc10\HLR.vcxproj", "{76045260-8DA6-4A3E-B220-F5B1B4ADE192}"
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mfcsample", "mfcsample\adm\win\vc10\mfcsample.vcxproj", "{2D6CBBE8-6965-4016-B503-0D715AE26691}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Convert", "10_Convert\adm\win\vc10\Convert.vcxproj", "{C527B648-F98D-42E5-9F59-251FD95D15A0}"
-EndProject
 Global
        GlobalSection(SolutionConfigurationPlatforms) = preSolution
                Debug|Win32 = Debug|Win32
@@ -46,22 +34,6 @@ Global
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|Win32.Build.0 = Release|Win32
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|x64.ActiveCfg = Release|x64
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|x64.Build.0 = Release|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|Win32.ActiveCfg = Debug|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|Win32.Build.0 = Debug|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|x64.ActiveCfg = Debug|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|x64.Build.0 = Debug|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|Win32.ActiveCfg = Release|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|Win32.Build.0 = Release|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|x64.ActiveCfg = Release|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|x64.Build.0 = Release|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|Win32.ActiveCfg = Debug|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|Win32.Build.0 = Debug|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|x64.ActiveCfg = Debug|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|x64.Build.0 = Debug|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|Win32.ActiveCfg = Release|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|Win32.Build.0 = Release|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|x64.ActiveCfg = Release|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|x64.Build.0 = Release|x64
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|Win32.ActiveCfg = Debug|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|Win32.Build.0 = Debug|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|x64.ActiveCfg = Debug|x64
@@ -70,22 +42,6 @@ Global
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|Win32.Build.0 = Release|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|x64.ActiveCfg = Release|x64
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|x64.Build.0 = Release|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|Win32.ActiveCfg = Debug|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|Win32.Build.0 = Debug|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|x64.ActiveCfg = Debug|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|x64.Build.0 = Debug|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|Win32.ActiveCfg = Release|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|Win32.Build.0 = Release|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|x64.ActiveCfg = Release|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|x64.Build.0 = Release|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|Win32.ActiveCfg = Debug|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|Win32.Build.0 = Debug|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|x64.ActiveCfg = Debug|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|x64.Build.0 = Debug|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|Win32.ActiveCfg = Release|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|Win32.Build.0 = Release|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|x64.ActiveCfg = Release|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|x64.Build.0 = Release|x64
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|Win32.ActiveCfg = Debug|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|Win32.Build.0 = Debug|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|x64.ActiveCfg = Debug|x64
@@ -94,14 +50,6 @@ Global
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|Win32.Build.0 = Release|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|x64.ActiveCfg = Release|x64
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|x64.Build.0 = Release|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|Win32.ActiveCfg = Debug|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|Win32.Build.0 = Debug|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|x64.ActiveCfg = Debug|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|x64.Build.0 = Debug|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|Win32.ActiveCfg = Release|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|Win32.Build.0 = Release|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|x64.ActiveCfg = Release|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|x64.Build.0 = Release|x64
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|Win32.ActiveCfg = Debug|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|Win32.Build.0 = Debug|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|x64.ActiveCfg = Debug|x64
@@ -110,14 +58,6 @@ Global
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|Win32.Build.0 = Release|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|x64.ActiveCfg = Release|x64
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|x64.Build.0 = Release|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|Win32.ActiveCfg = Debug|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|Win32.Build.0 = Debug|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|x64.ActiveCfg = Debug|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|x64.Build.0 = Debug|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|Win32.ActiveCfg = Release|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|Win32.Build.0 = Release|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|x64.ActiveCfg = Release|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|x64.Build.0 = Release|x64
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
index ab1f09712b39b6ba665dbd5d40ce788282a0b003..cc84cf8abb973e3f4e77bc55c536b81b726d34e5 100644 (file)
@@ -4,24 +4,12 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Geometry", "01_Geometry\adm
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Modeling", "02_Modeling\adm\win\vc10\Modeling.vcxproj", "{B10FC678-B9AF-4B05-B3DC-8F790C610CC3}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Viewer2d", "03_Viewer2d\adm\win\vc10\Viewer2d.vcxproj", "{6B905DC2-4E72-4EDA-99C2-7473634690FE}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ImportExport", "03_ImportExport\adm\win\vc10\ImportExport.vcxproj", "{1C9A05AE-AF5A-4ACE-9A72-83436D77504C}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Viewer3d", "04_Viewer3d\adm\win\vc10\Viewer3d.vcxproj", "{949DFBDF-9007-4C88-8925-43209C36A5D6}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ImportExport", "05_ImportExport\adm\win\vc10\ImportExport.vcxproj", "{1C9A05AE-AF5A-4ACE-9A72-83436D77504C}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Ocaf", "06_Ocaf\adm\win\vc10\Ocaf.vcxproj", "{B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Triangulation", "07_Triangulation\adm\win\vc10\Triangulation.vcxproj", "{B50C10C8-5260-498B-A80F-48FFB4534360}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HLR", "08_HLR\adm\win\vc10\HLR.vcxproj", "{76045260-8DA6-4A3E-B220-F5B1B4ADE192}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Animation", "09_Animation\adm\win\vc10\Animation.vcxproj", "{92492ACB-1F57-40BB-818F-33AD1C20273A}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HLR", "04_HLR\adm\win\vc10\HLR.vcxproj", "{76045260-8DA6-4A3E-B220-F5B1B4ADE192}"
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mfcsample", "mfcsample\adm\win\vc10\mfcsample.vcxproj", "{2D6CBBE8-6965-4016-B503-0D715AE26691}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Convert", "10_Convert\adm\win\vc10\Convert.vcxproj", "{C527B648-F98D-42E5-9F59-251FD95D15A0}"
-EndProject
 Global
        GlobalSection(SolutionConfigurationPlatforms) = preSolution
                Debug|Win32 = Debug|Win32
@@ -46,22 +34,6 @@ Global
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|Win32.Build.0 = Release|Win32
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|x64.ActiveCfg = Release|x64
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|x64.Build.0 = Release|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|Win32.ActiveCfg = Debug|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|Win32.Build.0 = Debug|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|x64.ActiveCfg = Debug|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|x64.Build.0 = Debug|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|Win32.ActiveCfg = Release|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|Win32.Build.0 = Release|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|x64.ActiveCfg = Release|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|x64.Build.0 = Release|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|Win32.ActiveCfg = Debug|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|Win32.Build.0 = Debug|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|x64.ActiveCfg = Debug|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|x64.Build.0 = Debug|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|Win32.ActiveCfg = Release|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|Win32.Build.0 = Release|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|x64.ActiveCfg = Release|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|x64.Build.0 = Release|x64
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|Win32.ActiveCfg = Debug|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|Win32.Build.0 = Debug|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|x64.ActiveCfg = Debug|x64
@@ -70,22 +42,6 @@ Global
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|Win32.Build.0 = Release|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|x64.ActiveCfg = Release|x64
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|x64.Build.0 = Release|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|Win32.ActiveCfg = Debug|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|Win32.Build.0 = Debug|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|x64.ActiveCfg = Debug|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|x64.Build.0 = Debug|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|Win32.ActiveCfg = Release|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|Win32.Build.0 = Release|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|x64.ActiveCfg = Release|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|x64.Build.0 = Release|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|Win32.ActiveCfg = Debug|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|Win32.Build.0 = Debug|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|x64.ActiveCfg = Debug|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|x64.Build.0 = Debug|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|Win32.ActiveCfg = Release|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|Win32.Build.0 = Release|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|x64.ActiveCfg = Release|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|x64.Build.0 = Release|x64
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|Win32.ActiveCfg = Debug|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|Win32.Build.0 = Debug|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|x64.ActiveCfg = Debug|x64
@@ -94,14 +50,6 @@ Global
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|Win32.Build.0 = Release|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|x64.ActiveCfg = Release|x64
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|x64.Build.0 = Release|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|Win32.ActiveCfg = Debug|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|Win32.Build.0 = Debug|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|x64.ActiveCfg = Debug|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|x64.Build.0 = Debug|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|Win32.ActiveCfg = Release|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|Win32.Build.0 = Release|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|x64.ActiveCfg = Release|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|x64.Build.0 = Release|x64
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|Win32.ActiveCfg = Debug|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|Win32.Build.0 = Debug|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|x64.ActiveCfg = Debug|x64
@@ -110,14 +58,6 @@ Global
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|Win32.Build.0 = Release|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|x64.ActiveCfg = Release|x64
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|x64.Build.0 = Release|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|Win32.ActiveCfg = Debug|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|Win32.Build.0 = Debug|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|x64.ActiveCfg = Debug|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|x64.Build.0 = Debug|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|Win32.ActiveCfg = Release|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|Win32.Build.0 = Release|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|x64.ActiveCfg = Release|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|x64.Build.0 = Release|x64
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
index 60d3c7cf2643a2ddb185b1d4f5303e56bbef9b13..40128526cc19f12e8fc4aa57ee1b495774f9af7d 100644 (file)
@@ -4,24 +4,12 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Geometry", "01_Geometry\adm
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Modeling", "02_Modeling\adm\win\vc10\Modeling.vcxproj", "{B10FC678-B9AF-4B05-B3DC-8F790C610CC3}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Viewer2d", "03_Viewer2d\adm\win\vc10\Viewer2d.vcxproj", "{6B905DC2-4E72-4EDA-99C2-7473634690FE}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ImportExport", "03_ImportExport\adm\win\vc10\ImportExport.vcxproj", "{1C9A05AE-AF5A-4ACE-9A72-83436D77504C}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Viewer3d", "04_Viewer3d\adm\win\vc10\Viewer3d.vcxproj", "{949DFBDF-9007-4C88-8925-43209C36A5D6}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ImportExport", "05_ImportExport\adm\win\vc10\ImportExport.vcxproj", "{1C9A05AE-AF5A-4ACE-9A72-83436D77504C}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Ocaf", "06_Ocaf\adm\win\vc10\Ocaf.vcxproj", "{B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Triangulation", "07_Triangulation\adm\win\vc10\Triangulation.vcxproj", "{B50C10C8-5260-498B-A80F-48FFB4534360}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HLR", "08_HLR\adm\win\vc10\HLR.vcxproj", "{76045260-8DA6-4A3E-B220-F5B1B4ADE192}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Animation", "09_Animation\adm\win\vc10\Animation.vcxproj", "{92492ACB-1F57-40BB-818F-33AD1C20273A}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HLR", "04_HLR\adm\win\vc10\HLR.vcxproj", "{76045260-8DA6-4A3E-B220-F5B1B4ADE192}"
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mfcsample", "mfcsample\adm\win\vc10\mfcsample.vcxproj", "{2D6CBBE8-6965-4016-B503-0D715AE26691}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Convert", "10_Convert\adm\win\vc10\Convert.vcxproj", "{C527B648-F98D-42E5-9F59-251FD95D15A0}"
-EndProject
 Global
        GlobalSection(SolutionConfigurationPlatforms) = preSolution
                Debug|Win32 = Debug|Win32
@@ -46,22 +34,6 @@ Global
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|Win32.Build.0 = Release|Win32
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|x64.ActiveCfg = Release|x64
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|x64.Build.0 = Release|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|Win32.ActiveCfg = Debug|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|Win32.Build.0 = Debug|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|x64.ActiveCfg = Debug|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|x64.Build.0 = Debug|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|Win32.ActiveCfg = Release|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|Win32.Build.0 = Release|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|x64.ActiveCfg = Release|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|x64.Build.0 = Release|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|Win32.ActiveCfg = Debug|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|Win32.Build.0 = Debug|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|x64.ActiveCfg = Debug|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|x64.Build.0 = Debug|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|Win32.ActiveCfg = Release|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|Win32.Build.0 = Release|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|x64.ActiveCfg = Release|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|x64.Build.0 = Release|x64
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|Win32.ActiveCfg = Debug|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|Win32.Build.0 = Debug|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|x64.ActiveCfg = Debug|x64
@@ -70,22 +42,6 @@ Global
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|Win32.Build.0 = Release|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|x64.ActiveCfg = Release|x64
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|x64.Build.0 = Release|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|Win32.ActiveCfg = Debug|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|Win32.Build.0 = Debug|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|x64.ActiveCfg = Debug|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|x64.Build.0 = Debug|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|Win32.ActiveCfg = Release|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|Win32.Build.0 = Release|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|x64.ActiveCfg = Release|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|x64.Build.0 = Release|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|Win32.ActiveCfg = Debug|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|Win32.Build.0 = Debug|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|x64.ActiveCfg = Debug|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|x64.Build.0 = Debug|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|Win32.ActiveCfg = Release|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|Win32.Build.0 = Release|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|x64.ActiveCfg = Release|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|x64.Build.0 = Release|x64
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|Win32.ActiveCfg = Debug|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|Win32.Build.0 = Debug|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|x64.ActiveCfg = Debug|x64
@@ -94,14 +50,6 @@ Global
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|Win32.Build.0 = Release|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|x64.ActiveCfg = Release|x64
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|x64.Build.0 = Release|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|Win32.ActiveCfg = Debug|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|Win32.Build.0 = Debug|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|x64.ActiveCfg = Debug|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|x64.Build.0 = Debug|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|Win32.ActiveCfg = Release|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|Win32.Build.0 = Release|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|x64.ActiveCfg = Release|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|x64.Build.0 = Release|x64
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|Win32.ActiveCfg = Debug|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|Win32.Build.0 = Debug|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|x64.ActiveCfg = Debug|x64
@@ -110,14 +58,6 @@ Global
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|Win32.Build.0 = Release|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|x64.ActiveCfg = Release|x64
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|x64.Build.0 = Release|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|Win32.ActiveCfg = Debug|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|Win32.Build.0 = Debug|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|x64.ActiveCfg = Debug|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|x64.Build.0 = Debug|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|Win32.ActiveCfg = Release|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|Win32.Build.0 = Release|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|x64.ActiveCfg = Release|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|x64.Build.0 = Release|x64
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
index 0ff8e8fac000b39dba591263c87f14465c2b6f21..627eea28c09fbe04c5052f92e927f1049f6ce5cb 100644 (file)
@@ -4,24 +4,12 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Geometry", "01_Geometry\adm
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Modeling", "02_Modeling\adm\win\vc10\Modeling.vcxproj", "{B10FC678-B9AF-4B05-B3DC-8F790C610CC3}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Viewer2d", "03_Viewer2d\adm\win\vc10\Viewer2d.vcxproj", "{6B905DC2-4E72-4EDA-99C2-7473634690FE}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ImportExport", "03_ImportExport\adm\win\vc10\ImportExport.vcxproj", "{1C9A05AE-AF5A-4ACE-9A72-83436D77504C}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Viewer3d", "04_Viewer3d\adm\win\vc10\Viewer3d.vcxproj", "{949DFBDF-9007-4C88-8925-43209C36A5D6}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ImportExport", "05_ImportExport\adm\win\vc10\ImportExport.vcxproj", "{1C9A05AE-AF5A-4ACE-9A72-83436D77504C}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Ocaf", "06_Ocaf\adm\win\vc10\Ocaf.vcxproj", "{B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Triangulation", "07_Triangulation\adm\win\vc10\Triangulation.vcxproj", "{B50C10C8-5260-498B-A80F-48FFB4534360}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HLR", "08_HLR\adm\win\vc10\HLR.vcxproj", "{76045260-8DA6-4A3E-B220-F5B1B4ADE192}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Animation", "09_Animation\adm\win\vc10\Animation.vcxproj", "{92492ACB-1F57-40BB-818F-33AD1C20273A}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HLR", "04_HLR\adm\win\vc10\HLR.vcxproj", "{76045260-8DA6-4A3E-B220-F5B1B4ADE192}"
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mfcsample", "mfcsample\adm\win\vc10\mfcsample.vcxproj", "{2D6CBBE8-6965-4016-B503-0D715AE26691}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Convert", "10_Convert\adm\win\vc10\Convert.vcxproj", "{C527B648-F98D-42E5-9F59-251FD95D15A0}"
-EndProject
 Global
        GlobalSection(SolutionConfigurationPlatforms) = preSolution
                Debug|Win32 = Debug|Win32
@@ -46,22 +34,6 @@ Global
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|Win32.Build.0 = Release|Win32
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|x64.ActiveCfg = Release|x64
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|x64.Build.0 = Release|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|Win32.ActiveCfg = Debug|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|Win32.Build.0 = Debug|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|x64.ActiveCfg = Debug|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|x64.Build.0 = Debug|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|Win32.ActiveCfg = Release|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|Win32.Build.0 = Release|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|x64.ActiveCfg = Release|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|x64.Build.0 = Release|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|Win32.ActiveCfg = Debug|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|Win32.Build.0 = Debug|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|x64.ActiveCfg = Debug|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|x64.Build.0 = Debug|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|Win32.ActiveCfg = Release|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|Win32.Build.0 = Release|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|x64.ActiveCfg = Release|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|x64.Build.0 = Release|x64
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|Win32.ActiveCfg = Debug|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|Win32.Build.0 = Debug|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|x64.ActiveCfg = Debug|x64
@@ -70,22 +42,6 @@ Global
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|Win32.Build.0 = Release|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|x64.ActiveCfg = Release|x64
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|x64.Build.0 = Release|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|Win32.ActiveCfg = Debug|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|Win32.Build.0 = Debug|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|x64.ActiveCfg = Debug|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|x64.Build.0 = Debug|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|Win32.ActiveCfg = Release|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|Win32.Build.0 = Release|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|x64.ActiveCfg = Release|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|x64.Build.0 = Release|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|Win32.ActiveCfg = Debug|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|Win32.Build.0 = Debug|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|x64.ActiveCfg = Debug|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|x64.Build.0 = Debug|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|Win32.ActiveCfg = Release|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|Win32.Build.0 = Release|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|x64.ActiveCfg = Release|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|x64.Build.0 = Release|x64
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|Win32.ActiveCfg = Debug|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|Win32.Build.0 = Debug|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|x64.ActiveCfg = Debug|x64
@@ -94,14 +50,6 @@ Global
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|Win32.Build.0 = Release|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|x64.ActiveCfg = Release|x64
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|x64.Build.0 = Release|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|Win32.ActiveCfg = Debug|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|Win32.Build.0 = Debug|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|x64.ActiveCfg = Debug|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|x64.Build.0 = Debug|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|Win32.ActiveCfg = Release|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|Win32.Build.0 = Release|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|x64.ActiveCfg = Release|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|x64.Build.0 = Release|x64
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|Win32.ActiveCfg = Debug|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|Win32.Build.0 = Debug|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|x64.ActiveCfg = Debug|x64
@@ -110,14 +58,6 @@ Global
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|Win32.Build.0 = Release|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|x64.ActiveCfg = Release|x64
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|x64.Build.0 = Release|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|Win32.ActiveCfg = Debug|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|Win32.Build.0 = Debug|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|x64.ActiveCfg = Debug|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|x64.Build.0 = Debug|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|Win32.ActiveCfg = Release|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|Win32.Build.0 = Release|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|x64.ActiveCfg = Release|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|x64.Build.0 = Release|x64
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
index 7fdda1fe8d7ac31201b1749c2bb6228ca1eac689..d4ef1b69383cefc25d8110b7cc12bfbf55de1a6e 100644 (file)
@@ -4,24 +4,12 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Geometry", "01_Geometry\adm
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Modeling", "02_Modeling\adm\win\vc10\Modeling.vcxproj", "{B10FC678-B9AF-4B05-B3DC-8F790C610CC3}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Viewer2d", "03_Viewer2d\adm\win\vc10\Viewer2d.vcxproj", "{6B905DC2-4E72-4EDA-99C2-7473634690FE}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ImportExport", "03_ImportExport\adm\win\vc10\ImportExport.vcxproj", "{1C9A05AE-AF5A-4ACE-9A72-83436D77504C}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Viewer3d", "04_Viewer3d\adm\win\vc10\Viewer3d.vcxproj", "{949DFBDF-9007-4C88-8925-43209C36A5D6}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ImportExport", "05_ImportExport\adm\win\vc10\ImportExport.vcxproj", "{1C9A05AE-AF5A-4ACE-9A72-83436D77504C}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Ocaf", "06_Ocaf\adm\win\vc10\Ocaf.vcxproj", "{B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Triangulation", "07_Triangulation\adm\win\vc10\Triangulation.vcxproj", "{B50C10C8-5260-498B-A80F-48FFB4534360}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HLR", "08_HLR\adm\win\vc10\HLR.vcxproj", "{76045260-8DA6-4A3E-B220-F5B1B4ADE192}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Animation", "09_Animation\adm\win\vc10\Animation.vcxproj", "{92492ACB-1F57-40BB-818F-33AD1C20273A}"
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HLR", "04_HLR\adm\win\vc10\HLR.vcxproj", "{76045260-8DA6-4A3E-B220-F5B1B4ADE192}"
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mfcsample", "mfcsample\adm\win\vc10\mfcsample.vcxproj", "{2D6CBBE8-6965-4016-B503-0D715AE26691}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Convert", "10_Convert\adm\win\vc10\Convert.vcxproj", "{C527B648-F98D-42E5-9F59-251FD95D15A0}"
-EndProject
 Global
        GlobalSection(SolutionConfigurationPlatforms) = preSolution
                Debug|Win32 = Debug|Win32
@@ -46,22 +34,6 @@ Global
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|Win32.Build.0 = Release|Win32
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|x64.ActiveCfg = Release|x64
                {B10FC678-B9AF-4B05-B3DC-8F790C610CC3}.Release|x64.Build.0 = Release|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|Win32.ActiveCfg = Debug|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|Win32.Build.0 = Debug|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|x64.ActiveCfg = Debug|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Debug|x64.Build.0 = Debug|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|Win32.ActiveCfg = Release|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|Win32.Build.0 = Release|Win32
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|x64.ActiveCfg = Release|x64
-               {6B905DC2-4E72-4EDA-99C2-7473634690FE}.Release|x64.Build.0 = Release|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|Win32.ActiveCfg = Debug|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|Win32.Build.0 = Debug|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|x64.ActiveCfg = Debug|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Debug|x64.Build.0 = Debug|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|Win32.ActiveCfg = Release|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|Win32.Build.0 = Release|Win32
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|x64.ActiveCfg = Release|x64
-               {949DFBDF-9007-4C88-8925-43209C36A5D6}.Release|x64.Build.0 = Release|x64
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|Win32.ActiveCfg = Debug|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|Win32.Build.0 = Debug|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Debug|x64.ActiveCfg = Debug|x64
@@ -70,22 +42,6 @@ Global
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|Win32.Build.0 = Release|Win32
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|x64.ActiveCfg = Release|x64
                {1C9A05AE-AF5A-4ACE-9A72-83436D77504C}.Release|x64.Build.0 = Release|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|Win32.ActiveCfg = Debug|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|Win32.Build.0 = Debug|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|x64.ActiveCfg = Debug|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Debug|x64.Build.0 = Debug|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|Win32.ActiveCfg = Release|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|Win32.Build.0 = Release|Win32
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|x64.ActiveCfg = Release|x64
-               {B3C10EF6-42C7-4DB8-A49C-7E38255D5B1B}.Release|x64.Build.0 = Release|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|Win32.ActiveCfg = Debug|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|Win32.Build.0 = Debug|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|x64.ActiveCfg = Debug|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Debug|x64.Build.0 = Debug|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|Win32.ActiveCfg = Release|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|Win32.Build.0 = Release|Win32
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|x64.ActiveCfg = Release|x64
-               {B50C10C8-5260-498B-A80F-48FFB4534360}.Release|x64.Build.0 = Release|x64
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|Win32.ActiveCfg = Debug|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|Win32.Build.0 = Debug|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Debug|x64.ActiveCfg = Debug|x64
@@ -94,14 +50,6 @@ Global
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|Win32.Build.0 = Release|Win32
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|x64.ActiveCfg = Release|x64
                {76045260-8DA6-4A3E-B220-F5B1B4ADE192}.Release|x64.Build.0 = Release|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|Win32.ActiveCfg = Debug|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|Win32.Build.0 = Debug|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|x64.ActiveCfg = Debug|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Debug|x64.Build.0 = Debug|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|Win32.ActiveCfg = Release|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|Win32.Build.0 = Release|Win32
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|x64.ActiveCfg = Release|x64
-               {92492ACB-1F57-40BB-818F-33AD1C20273A}.Release|x64.Build.0 = Release|x64
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|Win32.ActiveCfg = Debug|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|Win32.Build.0 = Debug|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Debug|x64.ActiveCfg = Debug|x64
@@ -110,14 +58,6 @@ Global
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|Win32.Build.0 = Release|Win32
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|x64.ActiveCfg = Release|x64
                {2D6CBBE8-6965-4016-B503-0D715AE26691}.Release|x64.Build.0 = Release|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|Win32.ActiveCfg = Debug|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|Win32.Build.0 = Debug|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|x64.ActiveCfg = Debug|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Debug|x64.Build.0 = Debug|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|Win32.ActiveCfg = Release|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|Win32.Build.0 = Release|Win32
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|x64.ActiveCfg = Release|x64
-               {C527B648-F98D-42E5-9F59-251FD95D15A0}.Release|x64.Build.0 = Release|x64
        EndGlobalSection
        GlobalSection(SolutionProperties) = preSolution
                HideSolutionNode = FALSE
diff --git a/samples/mfc/standard/Common/Primitive/Sample2D_Face.cpp b/samples/mfc/standard/Common/Primitive/Sample2D_Face.cpp
deleted file mode 100755 (executable)
index acbaf9c..0000000
+++ /dev/null
@@ -1,440 +0,0 @@
-#include "stdafx.h"
-
-#include "Sample2D_Face.h"
-
-IMPLEMENT_STANDARD_RTTIEXT(Sample2D_Face,AIS_InteractiveObject)
-
-Sample2D_Face::Sample2D_Face (const TopoDS_Shape& theFace)
-:AIS_InteractiveObject()
-{
-  myshape = theFace;
-  myFORWARDColor  = Quantity_NOC_BLUE1;
-  myREVERSEDColor = Quantity_NOC_YELLOW;
-  myINTERNALColor = Quantity_NOC_RED1;
-  myEXTERNALColor = Quantity_NOC_MAGENTA1;
-  myWidthIndex         = 1;
-  myTypeIndex          = 1;
-
-  myForwardNum=0;
-  myReversedNum=0;
-  myInternalNum=0;
-  myExternalNum=0;
-
-  SetAutoHilight(Standard_False);
-
-  FillData(Standard_True);
-}
-
-void Sample2D_Face::DrawMarker(const Handle(Geom2d_TrimmedCurve)& theCurve, const Handle(Prs3d_Presentation)& thePresentation)
-{
-  Standard_Real aCenterParam = (theCurve->FirstParameter()+theCurve->LastParameter())/2; 
-  gp_Pnt2d p;
-  gp_Vec2d v;
-  theCurve->D1(aCenterParam,p,v);
-  if (v.Magnitude() > gp::Resolution()) 
-  {
-    gp_Vec aDir(v.X(),v.Y(),0.);
-    gp_Pnt aPoint(p.X(),p.Y(),0.);
-    aDir.Normalize();
-    aDir.Reverse();
-    gp_Dir aZ(0,0,1);
-    gp_Pnt aLeft(aPoint.Translated(aDir.Rotated(gp_Ax1(aPoint,aZ), M_PI/6)*5)) ;
-    gp_Pnt aRight(aPoint.Translated(aDir.Rotated(gp_Ax1(aPoint,aZ), M_PI*11/6)*5));
-
-    Handle(Graphic3d_ArrayOfPolylines) anArrow = new Graphic3d_ArrayOfPolylines(3);
-    anArrow->AddVertex(aLeft);
-    anArrow->AddVertex(aPoint);
-    anArrow->AddVertex(aRight);
-
-    thePresentation->CurrentGroup()->AddPrimitiveArray(anArrow);
-  }
-}
-
-void Sample2D_Face::FillData(Standard_Boolean isSizesRecompute)
-{
-  if(myshape.IsNull() || myshape.ShapeType()!=TopAbs_FACE) return;
-
-  Standard_Real f,l;
-  TopExp_Explorer ex;
-  TopoDS_Face aFace = TopoDS::Face(myshape);
-
-  //count number of verteces and bounds in primitive arrays
-  if(isSizesRecompute)
-  {
-    mySeq_FORWARD.Clear();
-    mySeq_REVERSED.Clear();
-    mySeq_INTERNAL.Clear();
-    mySeq_EXTERNAL.Clear();
-
-    myshape.Orientation(TopAbs_FORWARD);
-    ex.Init(myshape,TopAbs_EDGE);
-    while (ex.More())
-    {
-      BRepAdaptor_Curve2d aCurveOnEdge(TopoDS::Edge(ex.Current()),aFace);
-      GCPnts_QuasiUniformDeflection anEdgeDistrib(aCurveOnEdge,1.e-2);
-      if(anEdgeDistrib.IsDone())
-        switch (ex.Current().Orientation())
-      {
-        case TopAbs_FORWARD: {
-          myForwardNum+=anEdgeDistrib.NbPoints();
-          myForwardBounds++;
-          break;
-                             }
-        case TopAbs_REVERSED: {
-          myReversedNum+=anEdgeDistrib.NbPoints();
-          myReversedBounds++;
-          break;
-                              }
-        case TopAbs_INTERNAL: {
-          myInternalNum+=anEdgeDistrib.NbPoints();
-          myInternalBounds++;
-          break;
-                              }
-        case TopAbs_EXTERNAL: {
-          myExternalNum+=anEdgeDistrib.NbPoints();
-          myExternalBounds++;
-          break;
-                              }
-        default : break;
-      }//end switch
-      ex.Next();
-    }
-  }
-
-  myForwardArray = new Graphic3d_ArrayOfPolylines(myForwardNum,myForwardBounds);
-  myReversedArray = new Graphic3d_ArrayOfPolylines(myReversedNum, myReversedBounds);
-  myInternalArray = new Graphic3d_ArrayOfPolylines(myInternalNum, myInternalBounds);
-  myExternalArray = new Graphic3d_ArrayOfPolylines(myExternalNum, myExternalBounds);
-
-  //fill primitive arrays
-  ex.Init(myshape,TopAbs_EDGE);
-  while (ex.More()) {
-    const Handle(Geom2d_Curve) aCurve = BRep_Tool::CurveOnSurface
-      (TopoDS::Edge(ex.Current()),aFace,f,l);
-
-    Handle(Geom2d_TrimmedCurve) aTrimmedCurve = new Geom2d_TrimmedCurve(aCurve,f,l);
-    TopoDS_Edge CurrentEdge= TopoDS::Edge(ex.Current());
-    if(!aTrimmedCurve.IsNull())
-    {
-      Handle(Geom_Curve) aCurve3d = GeomLib::To3d(gp_Ax2(gp_Pnt(0,0,0),gp_Dir(0,0,1)),aTrimmedCurve);
-      BRepAdaptor_Curve2d aCurveOnEdge(CurrentEdge,aFace);
-      GCPnts_QuasiUniformDeflection anEdgeDistrib(aCurveOnEdge,1.e-2);
-      if(anEdgeDistrib.IsDone())
-      {
-        switch (ex.Current().Orientation())
-        {
-        case TopAbs_FORWARD: {
-          myForwardArray->AddBound(anEdgeDistrib.NbPoints());
-          for(Standard_Integer i=1;i<=anEdgeDistrib.NbPoints();++i)
-          {
-            myForwardArray->AddVertex(anEdgeDistrib.Value(i));
-          }
-          if(isSizesRecompute)
-            mySeq_FORWARD.Append(aCurve3d);
-          break;
-                             }
-        case TopAbs_REVERSED: {
-          myReversedArray->AddBound(anEdgeDistrib.NbPoints());
-          for(Standard_Integer i=1;i<=anEdgeDistrib.NbPoints();++i)
-          {
-            myReversedArray->AddVertex(anEdgeDistrib.Value(i));
-          }
-          if(isSizesRecompute)
-            mySeq_REVERSED.Append(aCurve3d);
-          break;
-                              }
-        case TopAbs_INTERNAL: {
-          myInternalArray->AddBound(anEdgeDistrib.NbPoints());
-          for(Standard_Integer i=1;i<=anEdgeDistrib.NbPoints();++i)
-          {
-            myInternalArray->AddVertex(anEdgeDistrib.Value(i));
-          }
-          if(isSizesRecompute)
-            mySeq_INTERNAL.Append(aCurve3d);
-          break;
-                              }
-        case TopAbs_EXTERNAL: {
-          myExternalArray->AddBound(anEdgeDistrib.NbPoints());
-          for(Standard_Integer i=1;i<=anEdgeDistrib.NbPoints();++i)
-          {
-            myExternalArray->AddVertex(anEdgeDistrib.Value(i));
-          }
-          if(isSizesRecompute)
-            mySeq_EXTERNAL.Append(aCurve3d);
-          break;
-                              }
-        default : break;
-        }//end switch
-      }
-    }//end else
-    ex.Next();
-  }
-}
-
-void Sample2D_Face::Compute (const Handle(PrsMgr_PresentationManager)& /*thePresentationManager*/,
-                             const Handle(Prs3d_Presentation)& thePresentation,
-                             const Standard_Integer /*theMode*/)
-{
-  thePresentation->Clear();
-  myDrawer->SetWireDraw(1);
-
-  if(myshape.IsNull() || myshape.ShapeType()!=TopAbs_FACE) return;
-
-  Handle(Graphic3d_AspectLine3d) aLineAspect_FORWARD =
-    new Graphic3d_AspectLine3d(myFORWARDColor, Aspect_TOL_SOLID,1);
-  Handle(Graphic3d_AspectLine3d) aLineAspect_REVERSED =
-    new Graphic3d_AspectLine3d(myREVERSEDColor, Aspect_TOL_SOLID,1);
-  Handle(Graphic3d_AspectLine3d) aLineAspect_INTERNAL =
-    new Graphic3d_AspectLine3d(myINTERNALColor, Aspect_TOL_SOLID,1);
-  Handle(Graphic3d_AspectLine3d) aLineAspect_EXTERNAL =
-    new Graphic3d_AspectLine3d(myEXTERNALColor, Aspect_TOL_SOLID,1);
-
-  Standard_Real f,l;
-  TopoDS_Face aFace = TopoDS::Face(myshape);
-  //estimating number of verteces in primitive arrays
-  TopExp_Explorer ex(myshape,TopAbs_EDGE);
-  ex.Init(myshape,TopAbs_EDGE);
-  while (ex.More())
-  {
-    const Handle(Geom2d_Curve) aCurve = BRep_Tool::CurveOnSurface
-      (TopoDS::Edge(ex.Current()),aFace,f,l);
-
-    Handle(Geom2d_TrimmedCurve) aTrimmedCurve = new Geom2d_TrimmedCurve(aCurve,f,l);
-    TopoDS_Edge aCurrentEdge= TopoDS::Edge(ex.Current());
-    //make a 3D curve from 2D trimmed curve to display it
-    Handle(Geom_Curve) aCurve3d = GeomLib::To3d(gp_Ax2(gp_Pnt(0,0,0),gp_Dir(0,0,1)),aTrimmedCurve);
-    //make distribution of points
-    BRepAdaptor_Curve2d aCurveOnEdge(aCurrentEdge,aFace);
-    GCPnts_QuasiUniformDeflection anEdgeDistrib(aCurveOnEdge,1.e-2);
-    if(anEdgeDistrib.IsDone())
-    {
-      switch (ex.Current().Orientation())
-      {
-      case TopAbs_FORWARD: {
-
-        thePresentation->CurrentGroup()->SetPrimitivesAspect(aLineAspect_FORWARD);  
-        DrawMarker(aTrimmedCurve, thePresentation);
-        break;
-                           }
-      case TopAbs_REVERSED: {
-
-        thePresentation->CurrentGroup()->SetPrimitivesAspect(aLineAspect_REVERSED);  
-        DrawMarker(aTrimmedCurve, thePresentation);
-        break;
-                            }
-      case TopAbs_INTERNAL: {
-
-        thePresentation->CurrentGroup()->SetPrimitivesAspect(aLineAspect_INTERNAL);  
-        DrawMarker(aTrimmedCurve, thePresentation);
-
-        mySeq_INTERNAL.Append(aCurve3d);
-        break;
-                            }
-      case TopAbs_EXTERNAL: {
-
-        thePresentation->CurrentGroup()->SetPrimitivesAspect(aLineAspect_EXTERNAL);  
-        DrawMarker(aTrimmedCurve, thePresentation);
-        break;
-                            }
-      default : break;
-      }//end switch
-    }
-    ex.Next();
-  }
-  //add all primitives to the presentation
-  thePresentation->CurrentGroup()->SetPrimitivesAspect(aLineAspect_FORWARD);  
-  thePresentation->CurrentGroup()->AddPrimitiveArray(myForwardArray);
-
-  thePresentation->CurrentGroup()->SetPrimitivesAspect(aLineAspect_REVERSED);
-  thePresentation->CurrentGroup()->AddPrimitiveArray(myReversedArray);
-
-  thePresentation->CurrentGroup()->SetPrimitivesAspect(aLineAspect_INTERNAL);
-  thePresentation->CurrentGroup()->AddPrimitiveArray(myInternalArray);
-
-  thePresentation->CurrentGroup()->SetPrimitivesAspect(aLineAspect_EXTERNAL);
-  thePresentation->CurrentGroup()->AddPrimitiveArray(myExternalArray);
-}
-
-//Method for advanced customizable selection of picked object
-void Sample2D_Face::HilightSelected 
-( const Handle(PrsMgr_PresentationManager)& thePM,
- const SelectMgr_SequenceOfOwner& theOwners)
-{
-  Handle( Prs3d_Presentation ) aSelectionPrs;
-
-  aSelectionPrs = GetSelectPresentation( thePM );
-
-  Handle(Graphic3d_AspectLine3d) aLineAspect =
-    new Graphic3d_AspectLine3d(Quantity_NOC_ANTIQUEWHITE, Aspect_TOL_SOLID,2);
-  if( HasPresentation() )
-    aSelectionPrs->SetTransformPersistence (Presentation()->TransformPersistence());
-
-  Standard_Integer aLength = theOwners.Length();
-  Handle (SelectMgr_EntityOwner) anOwner;
-
-  aSelectionPrs->Clear();
-  FillData();
-
-  Handle (Graphic3d_Group) aSelectGroup = aSelectionPrs->NewGroup();
-
-  for(Standard_Integer i=1; i<=aLength; ++i)
-  {
-    anOwner = theOwners.Value(i);
-    //check priority of owner to add primitives in one of array
-    //containing primitives with certain type of orientation
-    switch(anOwner->Priority())
-    {
-    case 7:
-      {
-        //add to objects with forward orientation
-        aSelectGroup->SetGroupPrimitivesAspect(aLineAspect);
-        aSelectGroup->AddPrimitiveArray(myForwardArray);
-        break;
-      }
-    case 6:
-      {
-        //add to objects with reversed orientation
-        aSelectGroup->SetGroupPrimitivesAspect(aLineAspect);
-        aSelectGroup->AddPrimitiveArray(myReversedArray);
-        break;
-      }
-    case 5:
-      {
-        //add to objects with internal orientation
-        aSelectGroup->SetGroupPrimitivesAspect(aLineAspect);
-        aSelectGroup->AddPrimitiveArray(myInternalArray);
-        break;
-      }
-    case 4:
-      {
-        //add to objects with external orientation
-        aSelectGroup->SetGroupPrimitivesAspect(aLineAspect);
-        aSelectGroup->AddPrimitiveArray(myExternalArray);
-        break;
-      }
-    }
-
-  }
-  aSelectionPrs->Display();
-
-}
-
-void Sample2D_Face::ClearSelected ()
-{
-  Handle( Prs3d_Presentation ) aSelectionPrs = GetSelectPresentation( NULL );  
-  if( !aSelectionPrs.IsNull() )
-    aSelectionPrs->Clear(); 
-}
-
-
-
-//Method for advanced customizable highlighting of picked object
-void Sample2D_Face::HilightOwnerWithColor ( const Handle(PrsMgr_PresentationManager)& thePM,
-                                           const Handle(Prs3d_Drawer)& theStyle,
-                                           const Handle(SelectMgr_EntityOwner)& theOwner)
-{
-  Handle( Prs3d_Presentation ) aHighlightPrs;
-  aHighlightPrs = GetHilightPresentation( thePM );
-  if( HasPresentation() )
-    aHighlightPrs->SetTransformPersistence (Presentation()->TransformPersistence());
-  if(theOwner.IsNull())
-    return;
-  aHighlightPrs->Clear();
-  FillData();
-
-  //Direct highlighting
-  Handle (Graphic3d_Group) aHilightGroup = aHighlightPrs->NewGroup();
-  Handle(Graphic3d_AspectLine3d) aLineAspect =
-    new Graphic3d_AspectLine3d(theStyle->Color(), Aspect_TOL_SOLID,2);
-  switch(theOwner->Priority())
-  {
-  case 7:
-    {
-      aHilightGroup->SetGroupPrimitivesAspect(aLineAspect);
-      aHilightGroup->AddPrimitiveArray(myForwardArray);
-      break;
-    }
-  case 6:
-    {
-      aHilightGroup->SetGroupPrimitivesAspect(aLineAspect);
-      aHilightGroup->AddPrimitiveArray(myReversedArray);
-      break;
-    }
-  case 5:
-    {
-      aHilightGroup->SetGroupPrimitivesAspect(aLineAspect);
-      aHilightGroup->AddPrimitiveArray(myInternalArray);
-      break;
-    }
-  case 4:
-    {
-      aHilightGroup->SetGroupPrimitivesAspect(aLineAspect);
-      aHilightGroup->AddPrimitiveArray(myExternalArray);
-      break;
-    }
-  }
-  if( thePM->IsImmediateModeOn() )
-    thePM->AddToImmediateList( aHighlightPrs );
-
-}
-
-
-
-//for auto select
-void Sample2D_Face::ComputeSelection (const Handle(SelectMgr_Selection)& theSelection,
-                                      const Standard_Integer /*theMode*/)
-{
-  if(myshape.IsNull()) 
-    return;
-
-  if(mySeq_FORWARD.Length()==0 && 
-    mySeq_REVERSED.Length()==0 &&
-    mySeq_INTERNAL.Length()==0 &&
-    mySeq_EXTERNAL.Length()==0) return;
-
-  //create entity owner for every part of the face
-  //set different priorities for primitives of different orientation
-  Handle(SelectMgr_EntityOwner) anOwner_Forward = new SelectMgr_EntityOwner(this,7);
-  Handle(SelectMgr_EntityOwner) anOwner_Reversed = new SelectMgr_EntityOwner(this,6);
-  Handle(SelectMgr_EntityOwner) anOwner_Internal = new SelectMgr_EntityOwner(this,5);
-  Handle(SelectMgr_EntityOwner) anOwner_External = new SelectMgr_EntityOwner(this,4);
-
-  //create a sensitive for every part
-  Handle(Select3D_SensitiveGroup) aForwardGroup = new Select3D_SensitiveGroup(anOwner_Forward);
-  Handle(Select3D_SensitiveGroup) aReversedGroup = new Select3D_SensitiveGroup(anOwner_Reversed);
-  Handle(Select3D_SensitiveGroup) aInternalGroup = new Select3D_SensitiveGroup(anOwner_Internal);
-  Handle(Select3D_SensitiveGroup) aExternalGroup = new Select3D_SensitiveGroup(anOwner_External);
-
-  Standard_Integer aLength =  mySeq_FORWARD.Length();
-  for(Standard_Integer i=1;i<=aLength;++i)
-  {
-    Handle(Select3D_SensitiveCurve) aSensitveCurve = new Select3D_SensitiveCurve(anOwner_Forward,mySeq_FORWARD(i));
-    aForwardGroup->Add(aSensitveCurve);
-  }
-  theSelection->Add(aForwardGroup);
-
-  aLength =  mySeq_REVERSED.Length();
-  for(Standard_Integer i=1;i<=aLength;++i)
-  {
-    Handle(Select3D_SensitiveCurve) aSensitveCurve = new Select3D_SensitiveCurve(anOwner_Reversed,mySeq_REVERSED(i));
-    aReversedGroup->Add(aSensitveCurve);
-  }
-  theSelection->Add(aReversedGroup);
-
-  aLength =  mySeq_INTERNAL.Length();
-  for(Standard_Integer i=1;i<=aLength;++i)
-  {
-    Handle(Select3D_SensitiveCurve) aSensitveCurve = new Select3D_SensitiveCurve(anOwner_Internal,mySeq_INTERNAL(i));
-    aInternalGroup->Add(aSensitveCurve);
-  }
-  theSelection->Add(aInternalGroup);
-
-  aLength =  mySeq_EXTERNAL.Length();
-  for(Standard_Integer i=1;i<=aLength;++i)
-  {
-    Handle(Select3D_SensitiveCurve) aSensitveCurve = new Select3D_SensitiveCurve(anOwner_External,mySeq_EXTERNAL(i));
-    aExternalGroup->Add(aSensitveCurve);
-  }
-  theSelection->Add(aExternalGroup);
-}
-
diff --git a/samples/mfc/standard/Common/Primitive/Sample2D_Face.h b/samples/mfc/standard/Common/Primitive/Sample2D_Face.h
deleted file mode 100755 (executable)
index 53cecc6..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-#ifndef _Sample2D_Face_HeaderFile
-#define _Sample2D_Face_HeaderFile
-
-#include <Standard_Macro.hxx>
-#include <Standard_DefineHandle.hxx>
-#include "TopoDS_Face.hxx"
-#include <TColGeom_SequenceOfCurve.hxx>
-#include <Graphic3d_ArrayOfPolylines.hxx>
-
-#include <Standard_Macro.hxx>
-class Sample2D_Face;
-DEFINE_STANDARD_HANDLE(Sample2D_Face,AIS_InteractiveObject)
-class Sample2D_Face : public AIS_InteractiveObject {
-
-
-
-
-public:
-
- // Methods PUBLIC
- // 
-Standard_EXPORT Sample2D_Face (const TopoDS_Shape& theFace);
-
-DEFINE_STANDARD_RTTIEXT(Sample2D_Face,AIS_InteractiveObject)
-
-private:
-
-//private fields
-  TopoDS_Shape myshape;
-  TColGeom_SequenceOfCurve mySeq_FORWARD;
-  TColGeom_SequenceOfCurve mySeq_REVERSED;
-  TColGeom_SequenceOfCurve mySeq_INTERNAL;
-  TColGeom_SequenceOfCurve mySeq_EXTERNAL;
-
-  Handle(Graphic3d_ArrayOfPolylines) myForwardArray;
-  Handle(Graphic3d_ArrayOfPolylines) myReversedArray;
-  Handle(Graphic3d_ArrayOfPolylines) myInternalArray;
-  Handle(Graphic3d_ArrayOfPolylines) myExternalArray;
-
-  Standard_Integer myForwardNum,
-                    myReversedNum,
-                    myInternalNum,
-                    myExternalNum,
-                    myForwardBounds,
-                    myReversedBounds,
-                    myInternalBounds,
-                    myExternalBounds;
-
-//private methods
-  void FillData(Standard_Boolean isSizesRecomputed = Standard_False); 
-  void ClearSelected ();
-  void HilightSelected( const Handle(PrsMgr_PresentationManager)& thePM,
-                        const SelectMgr_SequenceOfOwner& theOwners);
-
-  void HilightOwnerWithColor( const Handle(PrsMgr_PresentationManager)& thePM,
-                              const Handle(Prs3d_Drawer)& theStyle,
-                              const Handle(SelectMgr_EntityOwner)& theOwner);
-
-  void Compute (  const Handle(PrsMgr_PresentationManager)& thePresentationManager,
-                  const Handle(Prs3d_Presentation)& thePresentation,
-                  const Standard_Integer theMode);
-
-  void ComputeSelection (const Handle(SelectMgr_Selection)& theSelection,
-    const Standard_Integer theMode);
-
-  void DrawMarker(const Handle(Geom2d_TrimmedCurve)& theCurve, const Handle(Prs3d_Presentation)& thePresentation);
-
-public:
-  Quantity_Color myFORWARDColor;
-  Quantity_Color myREVERSEDColor;
-  Quantity_Color myINTERNALColor;
-  Quantity_Color myEXTERNALColor;
-  Standard_Integer myWidthIndex;
-  Standard_Integer myTypeIndex ;
-
-  TopoDS_Shape& Shape(){return myshape;}
-  void SetFace (const TopoDS_Shape& theFace){myshape = theFace;}
-
-};
-
-#endif
diff --git a/samples/mfc/standard/Common/Primitive/Sample2D_Image.cpp b/samples/mfc/standard/Common/Primitive/Sample2D_Image.cpp
deleted file mode 100755 (executable)
index 957791b..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-#include "stdafx.h"
-
-#include "Sample2D_Image.h"
-
-#include <Graphic3d_Texture2Dmanual.hxx>
-#include <Image_AlienPixMap.hxx>
-
-IMPLEMENT_STANDARD_RTTIEXT(Sample2D_Image,AIS_Shape)
-
-Sample2D_Image::Sample2D_Image(TCollection_AsciiString& aFileName,
-                               const Standard_Real X,
-                               const Standard_Real Y,
-                               const Standard_Real aScale)
-    :AIS_Shape(TopoDS_Shape())
-{
-  myFilename = aFileName;
-  myX = X;
-  myY = Y;  
-  myScale = aScale;
-}
-void Sample2D_Image::MakeShape()
-{
-  Standard_Real coeff = 1.0;
-  Handle(Image_AlienPixMap) anImage = new Image_AlienPixMap();
-  if (anImage->Load (myFilename))
-  {
-    coeff = Standard_Real(anImage->Height()) / Standard_Real(anImage->Width()) * myScale;
-  }
-
-  TopoDS_Edge E1 = BRepBuilderAPI_MakeEdge(gp_Pnt(myX,myY,0.), gp_Pnt(100*myScale+myX,myY,0.));
-  TopoDS_Edge E2 = BRepBuilderAPI_MakeEdge(gp_Pnt(100*myScale+myX,myY,0.), gp_Pnt(100*myScale+myX,100*coeff+myY,0.));
-  TopoDS_Edge E3 = BRepBuilderAPI_MakeEdge(gp_Pnt(100*myScale+myX,100*coeff+myY,0.), gp_Pnt(myX,100*coeff+myY,0.));
-  TopoDS_Edge E4 = BRepBuilderAPI_MakeEdge(gp_Pnt(myX,100*coeff+myY,0.), gp_Pnt(myX,myY,0.));
-  TopoDS_Wire anImageBounds = BRepBuilderAPI_MakeWire(E1,E2,E3,E4);
-  myFace = BRepBuilderAPI_MakeFace(gp_Pln(gp_Pnt(0,0,0),gp_Dir(0,0,1)),anImageBounds);
-}
-
-void Sample2D_Image::SetContext(const Handle(AIS_InteractiveContext)& theContext) 
-{
-  if(theContext.IsNull() || theContext->CurrentViewer().IsNull()) return;
-  AIS_InteractiveObject::SetContext(theContext);
-  MakeShape();
-  this->Set(TopoDS_Shape(myFace));
-  myDrawer->SetShadingAspect (new Prs3d_ShadingAspect());
-  Handle(Graphic3d_Texture2Dmanual) aTexture = new Graphic3d_Texture2Dmanual (myFilename);
-  aTexture->DisableModulate();
-  myDrawer->ShadingAspect()->Aspect()->SetTextureMap (aTexture);
-  myDrawer->ShadingAspect()->Aspect()->SetTextureMapOn();
-}
diff --git a/samples/mfc/standard/Common/Primitive/Sample2D_Image.h b/samples/mfc/standard/Common/Primitive/Sample2D_Image.h
deleted file mode 100755 (executable)
index 0de9ef8..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-#ifndef _Sample2D_Image_HeaderFile
-#define _Sample2D_Image_HeaderFile
-#include <Standard_Macro.hxx>
-#include <Standard_DefineHandle.hxx>
-
-#include <OSD_File.hxx>
-#include <Standard_Boolean.hxx>
-#include <Standard_CString.hxx>
-#include <Standard_Integer.hxx>
-#include <SelectMgr_Selection.hxx>
-#include <Standard_OStream.hxx>
-#include <Standard_IStream.hxx>
-class Sample2D_Image;
-DEFINE_STANDARD_HANDLE(Sample2D_Image,AIS_Shape)
-class Sample2D_Image : public AIS_Shape {
-
-public:
-
-Standard_EXPORT Sample2D_Image(TCollection_AsciiString& aFileName,
-                               const Standard_Real X = 0.0,
-                               const Standard_Real Y = 0.0,
-                               const Standard_Real aScale = 1.0);
-Standard_EXPORT inline virtual  void GetCoord(Standard_Real& X,Standard_Real& Y) const;
-Standard_EXPORT inline virtual  void SetCoord(const Standard_Real X,const Standard_Real Y) ;
-Standard_EXPORT inline   Standard_Real GetScale() const;
-Standard_EXPORT inline   void SetScale(const Standard_Real aNewScale) ;
-Standard_EXPORT virtual void SetContext(const Handle(AIS_InteractiveContext)& theContext) ;
-
-DEFINE_STANDARD_RTTIEXT(Sample2D_Image,AIS_Shape)
-private:
-  void MakeShape();
-protected:
-TopoDS_Face myFace;
-TCollection_AsciiString myFilename;
-Standard_Real myX;
-Standard_Real myY;
-Standard_Real myScale;
-
-};
-
-// other inline functions and methods (like "C++: function call" methods)
-//
-
-inline  void Sample2D_Image::GetCoord(Standard_Real& X, Standard_Real& Y) const
-{
-  X = myX;
-  Y = myY;
-}
-
-inline  void Sample2D_Image::SetCoord(const Standard_Real X, const Standard_Real Y) 
-{
-  myX = X;
-  myY = Y;
-}
-
-inline Standard_Real Sample2D_Image::GetScale() const
-{
-  return myScale;
-}
-
-inline void Sample2D_Image::SetScale(const Standard_Real aNewScale) 
-{
-  myScale = aNewScale;
-}
-
-
-
-#endif
diff --git a/samples/mfc/standard/Common/Primitive/Sample2D_Markers.cpp b/samples/mfc/standard/Common/Primitive/Sample2D_Markers.cpp
deleted file mode 100755 (executable)
index 8485517..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-#include "stdafx.h"
-
-#include "Sample2D_Markers.h"
-
-IMPLEMENT_STANDARD_RTTIEXT(Sample2D_Markers,AIS_InteractiveObject)
-
-// generic marker
-Sample2D_Markers::Sample2D_Markers (const Standard_Real theXPosition,
-                   const Standard_Real theYPosition,
-                   const Aspect_TypeOfMarker theMarkerType,
-                   const Quantity_Color theColor,
-                   const Standard_Real theScaleOrId)
-                   :AIS_InteractiveObject(),myArrayOfPoints (new Graphic3d_ArrayOfPoints (1))
-{
-  myXPosition = theXPosition;
-  myYPosition = theYPosition;
-  myMarkerType = theMarkerType;
-  myColor = theColor;
-  myIndex = theScaleOrId;
-}
-
-Sample2D_Markers::Sample2D_Markers (const Standard_Real theXPosition,
-                   const Standard_Real theYPosition,
-                   const Handle(Graphic3d_ArrayOfPoints)& theArrayOfPoints,
-                   const Aspect_TypeOfMarker theMarkerType,
-                   const Quantity_Color theColor,
-                   const Standard_Real theScaleOrId)
-                   :AIS_InteractiveObject(),myArrayOfPoints (new Graphic3d_ArrayOfPoints (6))
-{
-  myXPosition = theXPosition;
-  myYPosition = theYPosition;
-  myMarkerType = theMarkerType;
-  myColor = theColor;
-  myIndex = theScaleOrId;
-  myArrayOfPoints = theArrayOfPoints;
-}
-
-
-void Sample2D_Markers::Compute (const Handle(PrsMgr_PresentationManager)& /*aPresentationManager*/,
-                                const Handle(Prs3d_Presentation)& aPresentation,
-                                const Standard_Integer /*aMode*/)
-{
-  if(myMarkerType == Aspect_TOM_USERDEFINED)
-  {
-    Handle(Graphic3d_AspectMarker3d) aMarker = new Graphic3d_AspectMarker3d(Aspect_TOM_POINT,myColor,myIndex);
-    aPresentation->CurrentGroup()->SetGroupPrimitivesAspect(aMarker);
-    aPresentation->CurrentGroup()->AddPrimitiveArray (myArrayOfPoints);
-  }
-  else
-  {
-    Handle(Graphic3d_AspectMarker3d) aMarker = new Graphic3d_AspectMarker3d(myMarkerType,myColor,myIndex);
-    aPresentation->CurrentGroup()->SetPrimitivesAspect(aMarker);
-    Handle(Graphic3d_ArrayOfPoints) anArrayOfPoints = new Graphic3d_ArrayOfPoints (1);
-    anArrayOfPoints->AddVertex (myXPosition, myYPosition, 0);
-    aPresentation->CurrentGroup()->AddPrimitiveArray (anArrayOfPoints);
-  }
-}
diff --git a/samples/mfc/standard/Common/Primitive/Sample2D_Markers.h b/samples/mfc/standard/Common/Primitive/Sample2D_Markers.h
deleted file mode 100755 (executable)
index 0aa3b20..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-#ifndef _Sample2D_Markers_HeaderFile
-#define _Sample2D_Markers_HeaderFile
-
-#include <Standard_Macro.hxx>
-#include <Standard_DefineHandle.hxx>
-#include <Graphic3d_ArrayOfPoints.hxx>
-class Sample2D_Markers;
-DEFINE_STANDARD_HANDLE(Sample2D_Markers,AIS_InteractiveObject)
-class Sample2D_Markers : public AIS_InteractiveObject {
-
-enum Sample2D_CurrentTypeOfMarker {
-Sample2D_CTOM_Generic,
-Sample2D_CTOM_Polyline,
-Sample2D_CTOM_Circle,
-Sample2D_CTOM_Ellips
-} ;
-
-public:
-
- // Generic marker
- Standard_EXPORT Sample2D_Markers (const Standard_Real theXPosition,
-                   const Standard_Real theYPosition,
-                   const Aspect_TypeOfMarker theMarkerType,
-                   const Quantity_Color theColor,
-                   const Standard_Real theScaleOrId=5.0);
-
- // Polyline marker
-  Standard_EXPORT Sample2D_Markers (const Standard_Real theXPosition,
-                   const Standard_Real theYPosition,
-                   const Handle(Graphic3d_ArrayOfPoints)& theArrayOfPoints,
-                   const Aspect_TypeOfMarker theMarkerType,
-                   const Quantity_Color theColor,
-                   const Standard_Real theScaleOrId=2.0);
-
-
-DEFINE_STANDARD_RTTIEXT(Sample2D_Markers,AIS_InteractiveObject)
-
-private: 
-
-virtual void Compute (const Handle(PrsMgr_PresentationManager)& /*aPresentationManager*/,
-                      const Handle(Prs3d_Presentation)& /*aPresentation*/,
-                      const Standard_Integer /*aMode*/);
-
-virtual void ComputeSelection (const Handle(SelectMgr_Selection)& /*aSelection*/,
-                               const Standard_Integer /*aMode*/) {}
-
-
-Standard_EXPORT virtual void SetContext(const Handle(AIS_InteractiveContext)& /*theContext*/) {}
-
-
-
-Sample2D_CurrentTypeOfMarker myCurrentTypeOfMarker;
-Standard_Real  myXPosition;
-Standard_Real  myYPosition;
-Aspect_TypeOfMarker myMarkerType;
-Quantity_Color myColor;
-Standard_Real  myWidth;
-Standard_Real  myHeight;
-Standard_Real  myIndex;//myScaleOrId
-// specific polyline marker
-Handle(Graphic3d_ArrayOfPoints) myArrayOfPoints;
-};
-
-
-
-// other inCurve functions and methods (like "C++: function call" methods)
-//
-
-
-
-#endif
diff --git a/samples/mfc/standard/Common/User_Cylinder.cxx b/samples/mfc/standard/Common/User_Cylinder.cxx
deleted file mode 100755 (executable)
index 815b738..0000000
+++ /dev/null
@@ -1,478 +0,0 @@
-#include <stdafx.h>
-
-#include <User_Cylinder.hxx>
-
-// Implementation of Handle and type mgt
-//
-
-IMPLEMENT_STANDARD_RTTIEXT(User_Cylinder,AIS_InteractiveObject)
-
-#include "ColoredMeshDlg.h"
-
-#include <Graphic3d_ArrayOfTriangles.hxx>
-#include <Graphic3d_StructureManager.hxx>
-#include <PrsMgr_PresentationManager.hxx>
-#include <StdPrs_ToolTriangulatedShape.hxx>
-#include <Poly_Connect.hxx>
-#include <TColgp_Array1OfPnt.hxx>
-#include <Poly_Triangulation.hxx>
-#include <TColgp_Array1OfDir.hxx>
-#include <GProp_PGProps.hxx>
-#include <Quantity_Color.hxx>
-#include <BRepMesh_IncrementalMesh.hxx>
-#include <StdPrs_ToolTriangulatedShape.hxx>
-
-#include <AIS_GraphicTool.hxx>
-
-// Constructors implementation
-//
-
-User_Cylinder::User_Cylinder(const Standard_Real R, const Standard_Real H) :
-AIS_InteractiveObject(PrsMgr_TOP_ProjectorDependent)
-{
-  BRepPrimAPI_MakeCylinder S(R,H);
-  myShape = S.Shape();
-  SetHilightMode(0);
-  myDrawer->SetShadingAspect(new Prs3d_ShadingAspect());
-  myColor = Quantity_NOC_GRAY;
-}
-
-User_Cylinder::User_Cylinder(const gp_Ax2 CylAx2, const Standard_Real R, const Standard_Real H) :
-AIS_InteractiveObject(PrsMgr_TOP_ProjectorDependent)
-
-{
-  BRepPrimAPI_MakeCylinder S(CylAx2,R,H);
-  BRepBuilderAPI_NurbsConvert aNurbsConvert(S.Shape());
-  myShape = aNurbsConvert.Shape();
-  SetHilightMode(0);
-  myDrawer->SetShadingAspect(new Prs3d_ShadingAspect());
-  myColor = Quantity_NOC_KHAKI4;
-}
-
-void User_Cylinder::Compute(const Handle(PrsMgr_PresentationManager)& /*aPresentationManager*/,
-                            const Handle(Prs3d_Presentation)& aPresentation,
-                            const Standard_Integer aMode ) 
-{
-  switch (aMode) {
-case AIS_WireFrame:
-  {
-    StdPrs_WFShape::Add(aPresentation,myShape, myDrawer );
-    break;
-  }
-case AIS_Shaded:
-  {
-    Standard_Real aTransparency = Transparency();
-    Graphic3d_NameOfMaterial aMaterial = Material();
-    myDrawer->ShadingAspect()->SetMaterial(aMaterial);
-    myDrawer->ShadingAspect()->SetColor(myColor);
-    myDrawer->ShadingAspect()->SetTransparency (aTransparency);
-    StdPrs_ShadedShape::Add(aPresentation,myShape, myDrawer);
-    break;
-  }
-case 6: //color
-  {
-    BRepTools::Clean(myShape);
-    BRepTools::Update(myShape);
-
-    Handle(Graphic3d_StructureManager) aStrucMana = GetContext()->MainPrsMgr()->StructureManager();
-
-    Handle(Graphic3d_Group) mygroup = aPresentation->CurrentGroup();
-    myAspect = (new Prs3d_ShadingAspect())->Aspect();
-    Graphic3d_MaterialAspect material = myAspect->FrontMaterial();
-    material.SetAmbientColor (Quantity_NOC_BLACK);
-    material.SetDiffuseColor (Quantity_NOC_BLACK);
-    material.SetSpecularColor(Quantity_NOC_BLACK);
-    material.SetEmissiveColor(Quantity_NOC_BLACK);
-    myAspect->SetFrontMaterial(material);
-
-    mygroup->SetPrimitivesAspect(myAspect);
-    myAspect->SetEdgeOn();
-
-    myDeflection = StdPrs_ToolTriangulatedShape::GetDeflection(myShape,myDrawer);
-    BRepMesh_IncrementalMesh(myShape,myDeflection);
-
-    myX1OnOff = Standard_False;
-    myXBlueOnOff = Standard_False;
-    myXGreenOnOff =Standard_False;
-    myXRedOnOff = Standard_False;
-    myY1OnOff = Standard_False;
-    myYBlueOnOff = Standard_False;
-    myYGreenOnOff = Standard_False;
-    myYRedOnOff = Standard_False;
-    myZ1OnOff = Standard_False;
-    myZBlueOnOff =Standard_False;
-    myZGreenOnOff = Standard_False;
-    myZRedOnOff = Standard_False;
-
-    CColoredMeshDlg Dlg(NULL);
-    Dlg.DoModal();
-
-    myX1OnOff = Dlg.X1OnOff;
-
-    myXBlueOnOff  = Dlg.m_CheckXBlueOnOff  != 0;
-    myXGreenOnOff = Dlg.m_CheckXGreenOnOff != 0;
-    myXRedOnOff   = Dlg.m_CheckXRedOnOff   != 0;
-
-    myY1OnOff = Dlg.Y1OnOff;
-
-    myYBlueOnOff  = Dlg.m_CheckYBlueOnOff  != 0;
-    myYGreenOnOff = Dlg.m_CheckYGreenOnOff != 0;
-    myYRedOnOff   = Dlg.m_CheckYRedOnOff   != 0;
-
-    myZ1OnOff = Dlg.Z1OnOff;
-
-    myZBlueOnOff  = Dlg.m_CheckZBlueOnOff  != 0;
-    myZGreenOnOff = Dlg.m_CheckZGreenOnOff != 0;
-    myZRedOnOff   = Dlg.m_CheckZRedOnOff   != 0;
-
-    // Adds a triangulation of the shape myShape to its topological data structure.
-    // This triangulation is computed with the deflection myDeflection.
-
-#ifdef DEBUG
-    std::cout <<"Deflection = " << myDeflection << "\n" << std::endl;
-#endif
-
-    Standard_Integer NumFace;
-    TopExp_Explorer ExpFace;
-
-    //khr -->
-
-    gp_Pnt H (0,0,0);
-    gp_Pnt B (0,0,1000000000);
-    for( NumFace=0,ExpFace.Init(myShape,TopAbs_FACE); ExpFace.More(); ExpFace.Next(),NumFace++ )
-    {
-      TopoDS_Face myFace = TopoDS::Face(ExpFace.Current());
-      TopLoc_Location myLocation = myFace.Location();
-
-#ifdef DEBUG
-      std::cout << "J\'explore actuellement la face " << NumFace << "\n" << std::endl;
-#endif
-      Handle(Poly_Triangulation) myT = BRep_Tool::Triangulation(myFace, myLocation);
-      // Returns the Triangulation of the face. It is a null handle if there is no triangulation.
-
-      if (myT.IsNull())
-      {
-#ifdef DEBUG
-        // std::cout << "Triangulation of the face "<< i <<" is null \n"<< std::endl;
-#endif
-        return;
-      }
-
-      Standard_Integer nnn = myT->NbTriangles(); // nnn : nombre de triangles
-      Standard_Integer nt, n1, n2, n3 = 0;// nt : triangle courant
-      // ni : sommet i du triangle courant
-      //recherche du pt "haut" et du pt "bas
-      for (nt = 1; nt <= nnn; nt++)
-      {
-        // triangles(nt).Get(n1,n2,n3); // le triangle est n1,n2,n3
-
-        if (myFace.Orientation() == TopAbs_REVERSED) // si la face est "reversed"
-          myT->Triangle (nt).Get (n1,n3,n2); // le triangle est n1,n3,n2
-        else
-          myT->Triangle (nt).Get (n1,n2,n3); // le triangle est n1,n2,n3
-
-        if (TriangleIsValid (myT->Node (n1), myT->Node (n2), myT->Node (n3)) )
-        { // Associates a vertexNT to each node
-          gp_Pnt p = myT->Node (n1).Transformed (myLocation.Transformation());
-          gp_Pnt q = myT->Node (n2).Transformed (myLocation.Transformation());
-          gp_Pnt r = myT->Node (n3).Transformed (myLocation.Transformation());
-
-          if (p.Z() > H.Z()) H=p;
-          if (q.Z() > H.Z()) H=q;
-          if (r.Z() > H.Z()) H=r;
-          if (p.Z() < B.Z()) B=p;
-          if (q.Z() < B.Z()) B=q;
-          if (r.Z() < B.Z()) B=r;
-        }
-      }
-    }
-
-    //khr <--
-
-
-    for( NumFace=0,ExpFace.Init(myShape,TopAbs_FACE); ExpFace.More(); ExpFace.Next(),NumFace++ )
-    {
-      TopoDS_Face myFace = TopoDS::Face(ExpFace.Current());
-      TopLoc_Location myLocation = myFace.Location();
-
-#ifdef DEBUG
-      std::cout << "J\'explore actuellement la face " << NumFace << "\n" << std::endl;
-#endif
-      Handle(Poly_Triangulation) myT = BRep_Tool::Triangulation(myFace, myLocation);
-      // Returns the Triangulation of the face. It is a null handle if there is no triangulation.
-
-      if (myT.IsNull())
-      {
-#ifdef DEBUG
-        //std::cout << "Triangulation of the face "<< i <<" is null \n"<< std::endl;
-#endif
-        return;
-      }
-      Poly_Connect pc(myT);
-      TColgp_Array1OfPnt Nodes (1, myT->NbNodes());
-      for (Standard_Integer in = 1; in <= myT->NbNodes(); in++)
-      {
-        Nodes.SetValue(in, myT->Node (in));
-      }
-      BAR = GProp_PGProps::Barycentre(Nodes);
-
-      TColgp_Array1OfDir myNormal(Nodes.Lower(), Nodes.Upper());
-
-      StdPrs_ToolTriangulatedShape::Normal(myFace, pc, myNormal);
-      BRepTools::UVBounds(myFace,Umin, Umax, Vmin, Vmax);
-      dUmax = (Umax - Umin);
-      dVmax = (Vmax - Vmin);
-
-      Standard_Integer nnn = myT->NbTriangles(); // nnn : nombre de triangles
-      Standard_Integer nt, n1, n2, n3 = 0;// nt : triangle courant
-      // ni : sommet i du triangle courant
-
-      //recherche du pt "haut" et du pt "bas
-      // gp_Pnt H (0,0,0);
-      // gp_Pnt B (0,0,1000000000);
-
-      for (nt = 1; nt <= nnn; nt++)
-      {
-        // triangles(nt).Get(n1,n2,n3); // le triangle est n1,n2,n3
-        if (myFace.Orientation() == TopAbs_REVERSED) // si la face est "reversed"
-          myT->Triangle (nt).Get (n1,n3,n2); // le triangle est n1,n3,n2
-        else
-          myT->Triangle (nt).Get (n1,n2,n3); // le triangle est n1,n2,n3
-
-        if (TriangleIsValid (Nodes(n1),Nodes(n2),Nodes(n3)) )
-        { // Associates a vertexNT to each node
-          gp_Pnt p = myT->Node(n1).Transformed(myLocation.Transformation());
-          gp_Pnt q = myT->Node(n2).Transformed(myLocation.Transformation());
-          gp_Pnt r = myT->Node(n3).Transformed(myLocation.Transformation());
-        }
-      }
-
-      Handle(Graphic3d_ArrayOfTriangles) aOP = new Graphic3d_ArrayOfTriangles(3 * nnn, 0, Standard_True, Standard_True);
-
-      for (nt = 1; nt <= nnn; nt++)
-      {
-#ifdef DEBUG
-        std::cout << "On traite actuellement le triangle : "<< nt <<"\n";
-#endif
-        if (myFace.Orientation() == TopAbs_REVERSED) // si la face est "reversed"
-          myT->Triangle (nt).Get (n1,n3,n2); // le triangle est n1,n3,n2
-        else
-          myT->Triangle (nt).Get (n1,n2,n3); // le triangle est n1,n2,n3
-
-        if (TriangleIsValid (Nodes(n1),Nodes(n2),Nodes(n3)) )
-        { // Associates a vertexNT to each node
-
-          TColgp_Array1OfPnt Points(1,3);
-
-          gp_Pnt p = myT->Node(n1).Transformed(myLocation.Transformation());
-          gp_Pnt q = myT->Node(n2).Transformed(myLocation.Transformation());
-          gp_Pnt r = myT->Node(n3).Transformed(myLocation.Transformation());
-
-          Points(1).SetCoord(p.X(), p.Y(), p.Z());
-          Points(2).SetCoord(q.X(), q.Y(), q.Z());
-          Points(3).SetCoord(r.X(), r.Y(), r.Z());
-
-          aOP->AddVertex(Points(1), myNormal(n1), Color(p,B.Z(),H.Z(),Dlg.Colorization));
-          aOP->AddVertex(Points(2), myNormal(n2), Color(q,B.Z(),H.Z(),Dlg.Colorization));
-          aOP->AddVertex(Points(3), myNormal(n3), Color(r,B.Z(),H.Z(),Dlg.Colorization));
-        } // end of "if the triangle is valid
-      } // end of the "parcours" of the triangles
-
-      aPresentation->CurrentGroup()->AddPrimitiveArray (aOP);
-
-      mygroup->SetGroupPrimitivesAspect(myAspect);
-    }// end of the exploration of the shape in faces
-
-    break;
-  }
-  }
-}
-
-void User_Cylinder::computeHLR (const Handle(Graphic3d_Camera)& aProjector,
-                                const Handle(TopLoc_Datum3D)& ,
-                                const Handle(Prs3d_Presentation)& aPresentation)
-{
-  Handle (Prs3d_Drawer) aDefDrawer = GetContext()->DefaultDrawer();
-  if (aDefDrawer->DrawHiddenLine())
-    myDrawer->EnableDrawHiddenLine();
-  else
-    myDrawer->DisableDrawHiddenLine();
-  StdPrs_HLRPolyShape aTool;
-  aTool.ComputeHLR (aPresentation,myShape,myDrawer,aProjector);
-}
-
-void User_Cylinder::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
-                                    const Standard_Integer aMode)
-{
-  switch(aMode)
-  {
-  case 0:
-    StdSelect_BRepSelectionTool::Load(aSelection,this,myShape,TopAbs_SHAPE, 0.01, 0.1);
-    break;
-  case 4:
-    StdSelect_BRepSelectionTool::Load(aSelection,this,myShape,TopAbs_FACE, 0.01, 0.1);
-    break;
-  }
-}
-
-Standard_Integer User_Cylinder::NbPossibleSelection() const
-{
-  return 2;
-}
-
-Standard_Boolean User_Cylinder::AcceptShapeDecomposition() const
-{
-  return Standard_True;
-}
-
-Standard_Boolean User_Cylinder::TriangleIsValid(const gp_Pnt& P1, const gp_Pnt& P2, const gp_Pnt& P3) const
-{ 
-  gp_Vec V1(P1,P2);// V1=(P1,P2)
-  gp_Vec V2(P2,P3);// V2=(P2,P3)
-  gp_Vec V3(P3,P1);// V3=(P3,P1)
-
-  if ((V1.SquareMagnitude() > 1.e-10) && (V2.SquareMagnitude() > 1.e-10) && (V3.SquareMagnitude() > 1.e-10))
-  {
-    V1.Cross(V2);// V1 = Normal        
-    if (V1.SquareMagnitude() > 1.e-10)
-      return Standard_True;
-    else
-      return Standard_False;
-  }
-  else
-    return Standard_False;
-}
-
-Quantity_Color User_Cylinder::Color(gp_Pnt& thePoint,Standard_Real AltMin,Standard_Real AltMax,
-                                    const Standard_Integer ColorizationMode) 
-{
-  red =1; //initializing colors parameters
-  green=1;
-  blue =1;
-  switch ( ColorizationMode)
-  {
-  case 0 : //normal, vert/maron
-    {
-      Standard_Real Alt= thePoint.Z();
-
-      Standard_Real AltDelta;
-
-      AltDelta = AltMax-AltMin;
-
-      red = 0.5- ((0.5*(AltMax-Alt))/(AltDelta));
-      //Standard_Real A = 7*Alt-7*AltMin;
-      green = (3*AltMax-AltMin)/(3*AltMax-AltMin+(7*Alt-7*AltMin));
-      blue = 0 ;
-
-      Quantity_Color color;
-      color.SetValues(red,green,blue, Quantity_TOC_RGB);
-      return color;
-      break;
-    }//end case 0
-
-  case 1 : //mer-neige
-    {
-      Standard_Real Alt= thePoint.Z();
-
-      Standard_Real b =AltMax-AltMin;
-      Standard_Real a= AltMax-thePoint.Z();
-
-      red =1;
-      green=1;
-      blue =1;
-      if (0<a && a <= (b/5))
-      {
-        red = 1;
-        green = 1;
-        blue = 1;
-      }
-      else if ((b/5)<a && a <= (2*b/5))
-      {
-        red = .55;
-        green = 0.3;
-        blue = 0;
-      }
-      else if ((2*b/5)<a && a <= (18*b/20))
-      {
-        green =1/(((7/(3*AltMax-AltMin))*Alt)+(1-(7*AltMin/(3*AltMax-AltMin))));
-        red = 1/(((1000/(AltMax-AltMin))*Alt)+1000*(1-(AltMin/(AltMax-AltMin))));
-        blue = 0;
-      }
-      else if ((18*b/20)<a && a <= (18.5*b/20))
-      {
-        red = 0.75;
-        green = 0.66;
-        blue = 0;
-      }
-
-      else if ((18.5*b/20)<a && a <= b)
-      {
-        red = 0.25;
-        green = .66;
-        blue = 1;
-      }
-      Quantity_Color color;
-      color.SetValues(red,green,blue, Quantity_TOC_RGB);
-      return color;
-      break;
-    }//end case 1
-
-  case 2 :
-    {
-      gp_Pnt P (85.,0.,-105.);
-      gp_Vec TheVect ( P, thePoint);
-      Standard_Real CoordX;
-      Standard_Real CoordY;
-      Standard_Real CoordZ;
-
-      CoordX = TheVect.X();
-      CoordY = TheVect.Y();
-      CoordZ = TheVect.Z();
-
-      Standard_Real Distance = BAR.Distance ( P);
-
-      Standard_Real a =fabs(CoordX);
-      Standard_Real b =fabs(CoordY);
-      Standard_Real c =fabs(CoordZ);
-
-      Standard_Real xx = a / Max(Distance,a); //(Max (Distance, Maxi));
-      Standard_Real yy = b / Max(Distance,b); //(Max (Distance, Maxi));
-      Standard_Real zz = c / Max(Distance,c); //(Max (Distance, Maxi));
-
-
-      if (myXRedOnOff)
-        red = xx;
-      else if (myXGreenOnOff)
-        green =xx;
-      else if (myXBlueOnOff)
-        blue=xx;
-
-      if (myYRedOnOff)
-        red = yy;
-      else if (myYGreenOnOff)
-        green = yy;
-      else if (myYBlueOnOff)
-        blue = yy;
-
-      if (myZRedOnOff)
-        red = zz;
-      else if (myZGreenOnOff)
-        green = zz;
-      else if (myZBlueOnOff)
-        blue = zz;
-      Quantity_Color color;
-      color.SetValues(red,green,blue, Quantity_TOC_RGB);
-      return color;
-      break;
-    }//end case 2
-  }//end switch
-
-  Quantity_Color c;
-  return c;
-}
-
-void User_Cylinder::SetColor(const Quantity_Color &aColor)
-{
-  AIS_InteractiveObject::SetColor(aColor);
-  myColor = aColor;
-}
diff --git a/samples/mfc/standard/Common/User_Cylinder.hxx b/samples/mfc/standard/Common/User_Cylinder.hxx
deleted file mode 100755 (executable)
index 194ab1d..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-#ifndef _User_Cylinder_HeaderFile
-       #define _User_Cylinder_HeaderFile
-       #ifndef _Standard_Macro_HeaderFile
-       #include <Standard_Macro.hxx>
-#endif
-
-#include <AIS_InteractiveObject.hxx>
-#include <Standard_DefineHandle.hxx>
-#include <Standard_Macro.hxx>
-#include <Graphic3d_AspectFillArea3d.hxx>
-// Handle definition
-//
-class User_Cylinder;
-DEFINE_STANDARD_HANDLE(User_Cylinder,AIS_InteractiveObject)
-
-class User_Cylinder: public AIS_InteractiveObject {
-public:
-       Standard_EXPORT User_Cylinder(const Standard_Real R, const Standard_Real H);
-       Standard_EXPORT User_Cylinder(const gp_Ax2 CylAx2, const Standard_Real R, const Standard_Real H);
-
-       ~User_Cylinder(){};
-       
-       Standard_Boolean AcceptShapeDecomposition() const;
-       Standard_Integer NbPossibleSelection() const;
-       void SetColor(const Quantity_Color &aColor);
-
-private:
-       void Compute(const Handle(PrsMgr_PresentationManager)& aPresentationManager,
-                                const Handle(Prs3d_Presentation)& aPresentation,
-                                const Standard_Integer aMode = 0) ;
-       void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
-                                                 const Standard_Integer aMode) ;
-       void computeHLR (const Handle(Graphic3d_Camera)& aProjector, const Handle(TopLoc_Datum3D)& theTrsf, const Handle(Prs3d_Presentation)& aPresentation);
-       Standard_Boolean TriangleIsValid(const gp_Pnt& P1,const gp_Pnt& P2,const gp_Pnt& P3) const;
-       Quantity_Color Color(gp_Pnt& thePoint,Standard_Real AltMin,Standard_Real AltMax, const Standard_Integer ColorizationMode) ;
-                                               
-// some methods like DynamicType() or IsKind()
-//
-DEFINE_STANDARD_RTTIEXT(User_Cylinder,AIS_InteractiveObject)
-private:
-       Quantity_Color myColor;
-       TopoDS_Shape myShape;
-
-       Handle(Graphic3d_AspectFillArea3d) myAspect;
-       Standard_Real myDeflection;
-
-       Standard_Boolean myX1OnOff;
-       Standard_Boolean myXBlueOnOff;
-       Standard_Boolean myXGreenOnOff;
-       Standard_Boolean myXRedOnOff;
-       Standard_Boolean myY1OnOff;
-       Standard_Boolean myYBlueOnOff;
-       Standard_Boolean myYGreenOnOff;
-       Standard_Boolean myYRedOnOff;
-       Standard_Boolean myZ1OnOff;
-       Standard_Boolean myZBlueOnOff;
-       Standard_Boolean myZGreenOnOff;
-       Standard_Boolean myZRedOnOff;
-
-       gp_Pnt BAR;
-
-       Standard_Real Umin;
-       Standard_Real Umax;
-       Standard_Real Vmin;
-       Standard_Real Vmax;
-       Standard_Real dUmax;
-       Standard_Real dVmax;
-
-       Standard_Real red;
-       Standard_Real green;
-       Standard_Real blue;
-
-
-
-//Handle(Graphic3d_Texture2Dmanual) mytexture;
-
-};
-#endif
index 4ab75edf4feb6e532237968454e4a2fd40bba943..2b2b9a19aafab9c1f9abeac03f6c1d8eb910b106 100644 (file)
@@ -5,14 +5,8 @@ Visual C++ programming samples for Windows platform containing illustrating how
 
   * Geometry
   * Modeling
-  * Viewer2d
-  * Viewer3d
   * ImportExport
-  * Ocaf
-  * Triangulation
   * HLR
-  * Animation
-  * Convert
 
 @figure{samples_mvc.png}
 
@@ -39,10 +33,10 @@ To run the Open CASCADE Technology samples, use command:
 execute run.bat [vc10|vc11|vc12|vc14] [win32|win64] [Release|Debug] [SampleName]
 ~~~~
 
-To run the **Animation** sample, use command:
+To run the **Geometry** sample, use command:
 
 ~~~~
-execute run.bat vc10 win64 Debug Animation
+execute run.bat vc10 win64 Debug Geometry
 ~~~~
 
 
@@ -61,4 +55,4 @@ To run all sample projects in MS Visual C++ at once, use command:
 execute msvc.bat vc10 win64 Debug
 ~~~~
 
-Note: make sure that your *PATH* environment variable contains a directory, where *msdev.exe* is located.
\ No newline at end of file
+Note: make sure that your *PATH* environment variable contains a directory, where *msdev.exe* is located.
index ee9c8b20c5f92e761726d7caa77a42c5d96dc49b..8b759a89d815241e7c7f088cf3869a0f89cf0053 100644 (file)
@@ -31,7 +31,6 @@ set (COMMON_SOURCE_FILES ${MFC_STANDARD_COMMON_SAMPLES_DIR}/AISDialogs.cpp
                          ${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_StereoConfigDlg.cpp
                          ${MFC_STANDARD_COMMON_SAMPLES_DIR}/ParamsFacesPage.cpp
                          ${MFC_STANDARD_COMMON_SAMPLES_DIR}/ResultDialog.cpp
-                         ${MFC_STANDARD_COMMON_SAMPLES_DIR}/User_Cylinder.cxx
                          ${MFC_STANDARD_COMMON_SAMPLES_DIR}/ColoredMeshDlg.cpp
                          ${MFC_STANDARD_COMMON_SAMPLES_DIR}/DimensionDlg.cpp
                          ${MFC_STANDARD_COMMON_SAMPLES_DIR}/LengthParamsEdgePage.cpp
@@ -53,15 +52,6 @@ set (COMMON_ISESSION2D_DIR          ${MFC_STANDARD_COMMON_SAMPLES_DIR}/ISession2
 set (COMMON_ISESSION2D_HEADER_FILES ${COMMON_ISESSION2D_DIR}/ISession2D_Shape.h )
 set (COMMON_ISESSION2D_SOURCE_FILES ${COMMON_ISESSION2D_DIR}/ISession2D_Shape.cpp )
 
-# Common Primitive
-set (COMMON_PRIMITIVE_DIR          ${MFC_STANDARD_COMMON_SAMPLES_DIR}/Primitive)
-set (COMMON_PRIMITIVE_HEADER_FILES ${COMMON_PRIMITIVE_DIR}/Sample2D_Face.h
-                                   ${COMMON_PRIMITIVE_DIR}/Sample2D_Image.h
-                                   ${COMMON_PRIMITIVE_DIR}/Sample2D_Markers.h )
-set (COMMON_PRIMITIVE_SOURCE_FILES ${COMMON_PRIMITIVE_DIR}/Sample2D_Face.cpp
-                                   ${COMMON_PRIMITIVE_DIR}/Sample2D_Image.cpp
-                                   ${COMMON_PRIMITIVE_DIR}/Sample2D_Markers.cpp )
-
 # Common Resource2D
 set (COMMON_RESOURCE2D_DIR          ${MFC_STANDARD_COMMON_SAMPLES_DIR}/Resource2D)
 set (COMMON_RESOURCE2D_HEADER_FILES ${COMMON_RESOURCE2D_DIR}/CircularGrid.h
@@ -112,14 +102,12 @@ set (COMMON_RESOURCE_FILES ${COMMON_RESOURCE_DIR}/2dChildFrameTB.bmp
 # groups in the VS solution
 source_group ( "Header Files" FILES   ${COMMON_HEADER_FILES}
                                       ${COMMON_IE_HEADER_FILES}
-                                      ${COMMON_PRIMITIVE_HEADER_FILES}
                                       ${COMMON_RESOURCE2D_HEADER_FILES}
                                       ${COMMON_ISESSION2D_HEADER_FILES})
 
 source_group ("Source Files" FILES    ${mfcsample_SOURCE_FILES}
                                       ${COMMON_SOURCE_FILES}
                                       ${COMMON_IE_SOURCE_FILES}
-                                      ${COMMON_PRIMITIVE_SOURCE_FILES}
                                       ${COMMON_RESOURCE2D_SOURCE_FILES}
                                       ${COMMON_ISESSION2D_SOURCE_FILES})
 
@@ -131,8 +119,6 @@ add_library ( mfcsample        ${mfcsample_SOURCE_FILES}
                                ${COMMON_SOURCE_FILES}
                                ${COMMON_IE_HEADER_FILES}
                                ${COMMON_IE_SOURCE_FILES}
-                               ${COMMON_PRIMITIVE_HEADER_FILES}
-                               ${COMMON_PRIMITIVE_SOURCE_FILES}
                                ${COMMON_RESOURCE2D_HEADER_FILES}
                                ${COMMON_RESOURCE2D_SOURCE_FILES}
                                ${COMMON_ISESSION2D_HEADER_FILES}
@@ -163,7 +149,6 @@ include_directories( ${CMAKE_BINARY_DIR}/inc
                      ${MFC_STANDARD_COMMON_SAMPLES_DIR}
                      ${COMMON_IE_DIR}
                      ${COMMON_ISESSION2D_DIR}
-                     ${COMMON_PRIMITIVE_DIR}
                      ${COMMON_RESOURCE2D_DIR})
 
 # OCCT libraries for using
index 52e741b35bdfcc13ac6f3cbefaf8bc9d5639b9f9..4394b3b834ec26cb48e78e0090d0a488eca28536 100644 (file)
       <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
       <PrecompiledHeaderFile Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\Common\stdafx.h</PrecompiledHeaderFile>
     </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\User_Cylinder.cxx">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
     <ClCompile Include="..\..\..\..\Common\Resource2D\CircularGrid.cpp">
       <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
       <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
       <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
     </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\Primitive\Sample2D_Face.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\Primitive\Sample2D_Image.cpp" />
-    <ClCompile Include="..\..\..\..\Common\Primitive\Sample2D_Markers.cpp">
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
-      <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
-    </ClCompile>
     <ClCompile Include="..\..\..\..\Common\ISession2D\ISession2D_Shape.cpp">
       <Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
       <AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     <ClInclude Include="..\..\..\..\Common\ResultDialog.h" />
     <ClInclude Include="..\..\..\..\Common\ImportExport\SaveSTEPDlg.h" />
     <ClInclude Include="..\..\..\..\Common\StdAfx.h" />
-    <ClInclude Include="..\..\..\..\Common\User_Cylinder.hxx" />
     <ClInclude Include="..\..\..\..\Common\Resource2D\CircularGrid.h" />
     <ClInclude Include="..\..\..\..\Common\ColoredMeshDlg.h" />
     <ClInclude Include="..\..\..\..\Common\Resource2D\RectangularGrid.h" />
-    <ClInclude Include="..\..\..\..\Common\Primitive\Sample2D_Face.h" />
-    <ClInclude Include="..\..\..\..\Common\Primitive\Sample2D_Image.h" />
-    <ClInclude Include="..\..\..\..\Common\Primitive\Sample2D_Markers.h" />
     <ClInclude Include="..\..\..\..\Common\ISession2D\ISession2D_Shape.h" />
   </ItemGroup>
   <ItemGroup>
index 9a0cc5252063eb7ccd12afa66f9bff254dbbc92d..712ec1084b3a063a7de1c83e61cdd529da645471 100644 (file)
@@ -9,10 +9,6 @@
       <UniqueIdentifier>{c0619ee9-00d5-4587-ac1c-7f8e97f7d314}</UniqueIdentifier>
       <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
     </Filter>
-    <Filter Include="Source Files\Primitive-src">
-      <UniqueIdentifier>{6c21e485-b17c-4b50-a64e-8032b8867916}</UniqueIdentifier>
-      <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
-    </Filter>
     <Filter Include="Source Files\ISession2D-src">
       <UniqueIdentifier>{5cef5b98-dbfe-4dc1-9030-6333f582b9e6}</UniqueIdentifier>
     </Filter>
@@ -24,9 +20,6 @@
       <UniqueIdentifier>{da6f5036-6fe5-479c-9407-d4c6bb3bc83f}</UniqueIdentifier>
       <Extensions>h;hpp;hxx;hm;inl</Extensions>
     </Filter>
-    <Filter Include="Header Files\Primitive-headers">
-      <UniqueIdentifier>{f0d2a1cd-637f-4375-8949-9c5bc227c1a6}</UniqueIdentifier>
-    </Filter>
     <Filter Include="Header Files\ISession2D-headers">
       <UniqueIdentifier>{cad0c56e-8d9f-4728-9d66-f7188c6080d7}</UniqueIdentifier>
     </Filter>
@@ -90,9 +83,6 @@
     <ClCompile Include="..\..\..\src\StdAfx.cpp">
       <Filter>Source Files</Filter>
     </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\User_Cylinder.cxx">
-      <Filter>Source Files</Filter>
-    </ClCompile>
     <ClCompile Include="..\..\..\..\Common\Resource2D\CircularGrid.cpp">
       <Filter>Source Files\Resource2D-src</Filter>
     </ClCompile>
     <ClCompile Include="..\..\..\..\Common\Resource2D\RectangularGrid.cpp">
       <Filter>Source Files\Resource2D-src</Filter>
     </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\Primitive\Sample2D_Face.cpp">
-      <Filter>Source Files\Primitive-src</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\Primitive\Sample2D_Image.cpp">
-      <Filter>Source Files\Primitive-src</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\..\..\Common\Primitive\Sample2D_Markers.cpp">
-      <Filter>Source Files\Primitive-src</Filter>
-    </ClCompile>
     <ClCompile Include="..\..\..\..\Common\ISession2D\ISession2D_Shape.cpp">
       <Filter>Source Files\ISession2D-src</Filter>
     </ClCompile>
     <ClInclude Include="..\..\..\..\Common\StdAfx.h">
       <Filter>Header Files</Filter>
     </ClInclude>
-    <ClInclude Include="..\..\..\..\Common\User_Cylinder.hxx">
-      <Filter>Header Files</Filter>
-    </ClInclude>
     <ClInclude Include="..\..\..\..\Common\Resource2D\CircularGrid.h">
       <Filter>Header Files\Resource2D-headers</Filter>
     </ClInclude>
     <ClInclude Include="..\..\..\..\Common\Resource2D\RectangularGrid.h">
       <Filter>Header Files\Resource2D-headers</Filter>
     </ClInclude>
-    <ClInclude Include="..\..\..\..\Common\Primitive\Sample2D_Face.h">
-      <Filter>Header Files\Primitive-headers</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\..\Common\Primitive\Sample2D_Image.h">
-      <Filter>Header Files\Primitive-headers</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\..\..\Common\Primitive\Sample2D_Markers.h">
-      <Filter>Header Files\Primitive-headers</Filter>
-    </ClInclude>
     <ClInclude Include="..\..\..\..\Common\ISession2D\ISession2D_Shape.h">
       <Filter>Header Files\ISession2D-headers</Filter>
     </ClInclude>