diff --git a/.github/actions/build-sample-csharp/action.yml b/.github/actions/build-sample-csharp/action.yml
deleted file mode 100644
index 1f02efb0ad..0000000000
--- a/.github/actions/build-sample-csharp/action.yml
+++ /dev/null
@@ -1,57 +0,0 @@
-name: 'Build CSharp Sample'
-description: 'Build CSharp sample using OCCT installation'
-
-inputs:
- platform:
- description: 'Build platform (windows)'
- required: true
- install-artifact-name:
- description: 'OCCT installation artifact name'
- required: true
-
-runs:
- using: "composite"
- steps:
- - name: Download OCCT installation
- uses: ./.github/actions/download-artifacts
- with:
- name: ${{ inputs.install-artifact-name }}
- path: occt-install
-
- - name: Build CSharp Sample
- if: inputs.platform == 'windows'
- shell: cmd
- run: |
- REM Setup environment
- call "${{ github.workspace }}\occt-install\env.bat" vc14 win64 Release
- call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" x64
- set "PATH=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE;%PATH%"
-
- cd ${{ github.workspace }}/samples/CSharp
-
- REM First upgrade solutions to VS2022
- echo "Upgrading solution files to VS2022..."
- devenv.exe CSharp.sln /upgrade
- devenv.exe CSharp_D3D.sln /upgrade
-
- REM Update project platform toolset
- powershell -Command "(Get-Content OCCTProxy\OCCTProxy.vcxproj) -replace 'v100', 'v143' | Set-Content OCCTProxy\OCCTProxy.vcxproj"
- powershell -Command "(Get-Content OCCTProxy_D3D\OCCTProxy_D3D.vcxproj) -replace 'v100', 'v143' | Set-Content OCCTProxy_D3D\OCCTProxy_D3D.vcxproj"
-
- REM Restore NuGet packages
- echo "Upgrading solution files..."
- msbuild.exe CSharp.sln -t:Restore -p:Configuration=Release -p:Platform=x64 /consoleloggerparameters:Verbosity=normal;Summary /flp:LogFile=restore_csharp.log;Verbosity=detailed
- msbuild.exe CSharp_D3D.sln -t:Restore -p:Configuration=Release -p:Platform=x64 /consoleloggerparameters:Verbosity=normal;Summary /flp:LogFile=restore_d3d.log;Verbosity=detailed
-
- REM Build solutions with real-time console output
- echo "Building CSharp.sln..."
- msbuild.exe CSharp.sln /p:Configuration=Release /p:Platform=x64 /consoleloggerparameters:Verbosity=normal;Summary /flp:LogFile=build_csharp.log;Verbosity=detailed /m
- echo "Building CSharp_D3D.sln..."
- msbuild.exe CSharp_D3D.sln /p:Configuration=Release /p:Platform=x64 /consoleloggerparameters:Verbosity=normal;Summary /flp:LogFile=build_d3d.log;Verbosity=detailed /m
-
- - name: Upload CSharp Sample
- uses: actions/upload-artifact@v4.6.2
- with:
- name: csharp-sample-${{ inputs.platform }}-x64
- path: samples/CSharp
- retention-days: 7
diff --git a/.github/actions/build-sample-mfc/action.yml b/.github/actions/build-sample-mfc/action.yml
deleted file mode 100644
index e4103b2415..0000000000
--- a/.github/actions/build-sample-mfc/action.yml
+++ /dev/null
@@ -1,54 +0,0 @@
-name: 'Build MFC Sample'
-description: 'Build MFC sample using OCCT installation'
-
-inputs:
- platform:
- description: 'Build platform (windows)'
- required: true
- install-artifact-name:
- description: 'OCCT installation artifact name'
- required: true
-
-runs:
- using: "composite"
- steps:
- - name: Download OCCT installation
- uses: ./.github/actions/download-artifacts
- with:
- name: ${{ inputs.install-artifact-name }}
- path: occt-install
-
- - name: Build MFC Sample
- if: inputs.platform == 'windows'
- shell: cmd
- run: |
- REM Setup environment
- call "${{ github.workspace }}\occt-install\env.bat" vc14 win64 Release
- call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" x64
-
- cd ${{ github.workspace }}/samples/mfc/standard
- set "PATH=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE;%PATH%"
-
- REM First restore the solution
- echo "Restoring solution..."
- msbuild.exe ALL-vc14.sln -t:Restore -p:Configuration=Release -p:Platform=x64 /consoleloggerparameters:Verbosity=normal;Summary /flp:LogFile=restore.log;Verbosity=detailed
-
- REM Build solution with detailed logging
- echo "Building solution..."
- msbuild.exe ALL-vc14.sln /p:Configuration=Release /p:Platform=x64 /p:PlatformToolset=v143 /consoleloggerparameters:Verbosity=normal;Summary /flp:LogFile=build.log;Verbosity=detailed /m
-
- REM Display logs if build fails
- if errorlevel 1 (
- echo "Build failed. Contents of restore.log:"
- type restore.log
- echo "Contents of build.log:"
- type build.log
- exit /b 1
- )
-
- - name: Upload MFC Sample
- uses: actions/upload-artifact@v4.6.2
- with:
- name: mfc-sample-${{ inputs.platform }}-x64
- path: samples/mfc/
- retention-days: 7
diff --git a/.github/actions/build-sample-qt/action.yml b/.github/actions/build-sample-qt/action.yml
deleted file mode 100644
index c910d6829d..0000000000
--- a/.github/actions/build-sample-qt/action.yml
+++ /dev/null
@@ -1,125 +0,0 @@
-name: 'Build Qt Sample'
-description: 'Build Qt samples using OCCT installation'
-
-inputs:
- platform:
- description: 'Build platform (windows/linux)'
- required: true
- install-artifact-name:
- description: 'OCCT installation artifact name'
- required: true
- thirdparty_url:
- description: 'URL to download 3rdparty dependencies'
- required: false
- default: 'https://github.com/Open-Cascade-SAS/OCCT/releases/download/V7_9_0_beta1/3rdparty-vc14-64.zip'
-
-runs:
- using: "composite"
- steps:
- - name: Download OCCT installation
- uses: ./.github/actions/download-artifacts
- with:
- name: ${{ inputs.install-artifact-name }}
- path: occt-install
-
- - name: Download vcpkg cache
- uses: ./.github/actions/download-vcpkg-cache
- with:
- artifact-name: ${{ inputs.install-artifact-name }}-cache
-
- - name: Install Windows dependencies
- if: inputs.platform == 'windows'
- shell: pwsh
- run: |
- Invoke-WebRequest -Uri ${{ inputs.thirdparty_url }} -OutFile 3rdparty-vc14-64.zip
- Expand-Archive -Path 3rdparty-vc14-64.zip -DestinationPath .
- Remove-Item 3rdparty-vc14-64.zip
-
- - name: Install Linux dependencies
- if: inputs.platform == 'linux'
- shell: bash
- run: sudo apt-get update && sudo apt-get install -y tcl-dev tk-dev cmake gcc g++ make libbtbb-dev libx11-dev libglu1-mesa-dev tcllib tcl-thread tcl libvtk9-dev libopenvr-dev libdraco-dev libfreeimage-dev libegl1-mesa-dev libgles2-mesa-dev libfreetype-dev qtbase5-dev qt5-qmake qtbase5-dev-tools qtdeclarative5-dev qttools5-dev qttools5-dev-tools
-
- - name: Setup MSBuild
- if: inputs.platform == 'windows'
- uses: microsoft/setup-msbuild@v2
-
- - name: Build Qt Samples - Windows
- if: inputs.platform == 'windows'
- shell: cmd
- run: |
- REM Setup environment
- cd ${{ github.workspace }}/occt-install/
- call env.bat vc14 win64 Release
-
- call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" x64
-
- REM Setup Qt environment
- set "QTDIR=${{ github.workspace }}\3rdparty-vc14-64\qt5.11.2-vc14-64"
- set "PATH=%QTDIR%\bin;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE;%PATH%"
-
- cd ${{ github.workspace }}/samples/qt
-
- for %%s in (IESample Tutorial FuncDemo) do (
- cd %%s
- echo "Generating project for %%s..."
- qmake -tp vc -r -o %%s.sln %%s0.pro
-
- echo "Restoring %%s..."
- msbuild.exe %%s.sln -t:Restore -p:Configuration=Release -p:Platform=x64 /consoleloggerparameters:Verbosity=normal;Summary /flp:LogFile=%%s_restore.log;Verbosity=detailed
-
- echo "Building %%s..."
- msbuild.exe %%s.sln /p:Configuration=Release /p:Platform=x64 /p:PlatformToolset=v143 /consoleloggerparameters:Verbosity=normal;Summary /flp:LogFile=%%s_build.log;Verbosity=detailed /m
-
- REM Display logs if build fails
- if errorlevel 1 (
- echo "Build failed for %%s. Contents of restore log:"
- type %%s_restore.log
- echo "Contents of build log:"
- type %%s_build.log
- exit /b 1
- )
-
- cd ..
- )
-
- - name: Build Qt Samples - Linux
- if: inputs.platform == 'linux'
- shell: bash
- run: |
- cd ${{ github.workspace }}/occt-install/bin
- source env.sh
-
- # Set library paths for vcpkg dependencies
- export LD_LIBRARY_PATH="${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/lib:${{ github.workspace }}/occt-install/lib:$LD_LIBRARY_PATH"
- export LIBRARY_PATH="${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/lib:${{ github.workspace }}/occt-install/lib:$LIBRARY_PATH"
- export PKG_CONFIG_PATH="${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/lib/pkgconfig:$PKG_CONFIG_PATH"
-
- cd ${{ github.workspace }}/samples/qt
-
- for sample in IESample Tutorial FuncDemo; do
- cd $sample
- aQMakePath=`which qmake`
- host=`uname -s`
- export STATION=$host
- export RES_DIR="${{ github.workspace }}/samples/qt/${sample}/result"
-
- # Configure qmake with vcpkg paths
- qmake $sample.pro \
- "LIBS += -L${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/lib" \
- "LIBS += -Wl,-rpath,${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/lib" \
- "INCLUDEPATH += ${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/include"
-
- aNbJobs="$(getconf _NPROCESSORS_ONLN)"
- make -j$aNbJobs release
- cd ..
- done
-
- - name: Upload Qt Samples
- uses: actions/upload-artifact@v4.6.2
- with:
- name: qt-samples-${{ inputs.platform }}-x64
- path: |
- samples/qt/
- samples/qt/
- retention-days: 7
diff --git a/.github/actions/build-tinspector/action.yml b/.github/actions/build-tinspector/action.yml
deleted file mode 100644
index 2565967e8f..0000000000
--- a/.github/actions/build-tinspector/action.yml
+++ /dev/null
@@ -1,111 +0,0 @@
-name: 'Build TInspector'
-description: 'Build TInspector using OCCT installation as a separate job'
-
-inputs:
- platform:
- description: 'Build platform (windows/linux)'
- required: true
- install-artifact-name:
- description: 'OCCT installation artifact name'
- required: true
- thirdparty_url:
- description: 'URL to download 3rdparty dependencies'
- required: false
- default: 'https://github.com/Open-Cascade-SAS/OCCT/releases/download/V7_9_0_beta1/3rdparty-vc14-64.zip'
-
-runs:
- using: "composite"
- steps:
- - name: Download OCCT installation
- uses: ./.github/actions/download-artifacts
- with:
- name: ${{ inputs.install-artifact-name }}
- path: occt-install
-
- - name: Download vcpkg cache
- uses: ./.github/actions/download-vcpkg-cache
- with:
- artifact-name: ${{ inputs.install-artifact-name }}-cache
-
- - name: Install Windows dependencies
- if: inputs.platform == 'windows'
- shell: pwsh
- run: |
- Invoke-WebRequest -Uri ${{ inputs.thirdparty_url }} -OutFile 3rdparty-vc14-64.zip
- Expand-Archive -Path 3rdparty-vc14-64.zip -DestinationPath .
- Remove-Item 3rdparty-vc14-64.zip
-
- - name: Install Linux dependencies
- if: inputs.platform == 'linux'
- shell: bash
- run: sudo apt-get update && sudo apt-get install -y tcl-dev tk-dev cmake gcc g++ make libbtbb-dev libx11-dev libglu1-mesa-dev tcllib tcl-thread tcl libvtk9-dev libopenvr-dev libdraco-dev libfreeimage-dev libegl1-mesa-dev libgles2-mesa-dev libfreetype-dev qtbase5-dev qt5-qmake qtbase5-dev-tools qtdeclarative5-dev qttools5-dev qttools5-dev-tools
-
- - name: Checkout TInspector
- shell: bash
- run: |
- git clone https://github.com/Open-Cascade-SAS/Inspector.git inspector
- cd inspector
- git checkout efe00930adc2130a91744ba950c5270986d19739
-
- - name: Configure TInspector - Windows
- if: inputs.platform == 'windows'
- shell: pwsh
- run: |
- cd inspector
- mkdir build
- cd build
- cmake -G "Visual Studio 17 2022" -A x64 `
- -D CMAKE_BUILD_TYPE=Release `
- -D BUILD_SHARED_LIBS=ON `
- -D QtX=Qt5 `
- -D 3RDPARTY_DIR=${{ github.workspace }}//3rdparty-vc14-64 `
- -D OpenCASCADE_DIR=${{ github.workspace }}/occt-install `
- -D INSTALL_DIR=${{ github.workspace }}/inspector/install `
- -D CMAKE_POLICY_VERSION_MINIMUM=3.5 `
- ..
-
- - name: Configure TInspector - Linux
- if: inputs.platform == 'linux'
- shell: bash
- run: |
- cd inspector
- mkdir build
- cd build
- export LD_LIBRARY_PATH="${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/lib:${{ github.workspace }}/occt-install/lib:$LD_LIBRARY_PATH"
- cmake -G "Unix Makefiles" \
- -D CMAKE_BUILD_TYPE=Release \
- -D BUILD_SHARED_LIBS=ON \
- -D OpenCASCADE_DIR=${{ github.workspace }}/occt-install \
- -D INSTALL_DIR=${{ github.workspace }}/inspector/install \
- -D QtX=Qt5 \
- -D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
- -D CMAKE_LIBRARY_PATH="${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/lib" \
- -D CMAKE_INCLUDE_PATH="${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/include" \
- -D CMAKE_EXE_LINKER_FLAGS="-L${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/lib -Wl,-rpath,${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/lib" \
- -D CMAKE_SHARED_LINKER_FLAGS="-L${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/lib -Wl,-rpath,${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/lib" \
- ..
-
- - name: Build TInspector - Windows
- if: inputs.platform == 'windows'
- shell: pwsh
- run: |
- cd inspector/build
- cmake --build . --config Release --target install
-
- - name: Build TInspector - Linux
- if: inputs.platform == 'linux'
- shell: bash
- run: |
- cd inspector/build
- # Set library paths for build and runtime
- export LD_LIBRARY_PATH="${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/lib:${{ github.workspace }}/occt-install/lib:$LD_LIBRARY_PATH"
- export LIBRARY_PATH="${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/lib:${{ github.workspace }}/occt-install/lib:$LIBRARY_PATH"
- export PKG_CONFIG_PATH="${{ github.workspace }}/build/vcpkg_installed/x64-linux-dynamic/lib/pkgconfig:$PKG_CONFIG_PATH"
- make install -j$(nproc)
-
- - name: Upload TInspector installation
- uses: actions/upload-artifact@v4.6.2
- with:
- name: inspector-${{ inputs.platform }}-x64
- path: inspector/install
- retention-days: 7
diff --git a/.github/workflows/build-and-test-multiplatform.yml b/.github/workflows/build-and-test-multiplatform.yml
index 56d61661cc..a4fc53dc17 100644
--- a/.github/workflows/build-and-test-multiplatform.yml
+++ b/.github/workflows/build-and-test-multiplatform.yml
@@ -57,12 +57,6 @@ jobs:
needs:
- clang-format
- ascii-check
- - build-inspector-windows
- - build-inspector-linux
- - build-csharp-windows
- - build-mfc-windows
- - build-qt-windows
- - build-qt-linux
- retest-windows-x64
- retest-macos-x64
- retest-linux-clang-x64
@@ -147,96 +141,6 @@ jobs:
cmake-build-type: 'Debug'
github-token: ${{ secrets.GITHUB_TOKEN }}
- build-inspector-windows:
- name: Build TInspector on Windows
- needs: prepare-and-build-windows-x64
- runs-on: windows-2025
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4.2.2
-
- - name: Build TInspector
- uses: ./.github/actions/build-tinspector
- with:
- platform: windows
- install-artifact-name: install-windows-x64
-
- build-inspector-linux:
- name: Build TInspector on Linux
- needs: prepare-and-build-linux-clang-x64
- runs-on: ubuntu-24.04
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4.2.2
-
- - name: Build TInspector
- uses: ./.github/actions/build-tinspector
- with:
- platform: linux
- install-artifact-name: install-linux-clang-x64
-
- build-csharp-windows:
- name: Build CSharp Sample on Windows
- needs: prepare-and-build-windows-x64
- runs-on: windows-2025
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4.2.2
-
- - name: Build CSharp Sample
- uses: ./.github/actions/build-sample-csharp
- with:
- platform: windows
- install-artifact-name: install-windows-x64
-
- build-mfc-windows:
- name: Build MFC Sample on Windows
- needs: prepare-and-build-windows-x64
- runs-on: windows-2025
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4.2.2
-
- - name: Build MFC Sample
- uses: ./.github/actions/build-sample-mfc
- with:
- platform: windows
- install-artifact-name: install-windows-x64
-
- build-qt-windows:
- name: Build Qt Sample on Windows
- needs: prepare-and-build-windows-x64
- runs-on: windows-2025
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4.2.2
-
- - name: Build Qt Sample
- uses: ./.github/actions/build-sample-qt
- with:
- platform: windows
- install-artifact-name: install-windows-x64
-
- build-qt-linux:
- name: Build Qt Sample on Linux
- needs: prepare-and-build-linux-clang-x64
- runs-on: ubuntu-24.04
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4.2.2
-
- - name: Build Qt Sample
- uses: ./.github/actions/build-sample-qt
- with:
- platform: linux
- install-artifact-name: install-linux-clang-x64
-
test-windows-x64:
name: Test on Windows (x64)
runs-on: windows-2025
diff --git a/.gitignore b/.gitignore
index e255c8c4f1..38a912d45c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,7 +18,6 @@
!/cmake/
!/data/
!/dox/
-!/samples/
!/src/
!/tests/
!/tools/
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e8e743430e..f13ccd569c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -241,9 +241,6 @@ if (CMAKE_VERSION VERSION_LESS "3.14")
OCCT_CHECK_AND_UNSET (BUILD_INCLUDE_SYMLINK)
endif()
-# copy samples to install directory
-set (INSTALL_SAMPLES OFF CACHE BOOL "${INSTALL_SAMPLES_DESCR}")
-
# install dir of the project
if (NOT DEFINED INSTALL_DIR)
# set default install directory for Windows
@@ -369,11 +366,6 @@ endif()
set (BUILD_ADDITIONAL_TOOLKITS "" CACHE STRING "${BUILD_ADDITIONAL_TOOLKITS_DESCR}")
separate_arguments (BUILD_ADDITIONAL_TOOLKITS)
-if (MSVC)
- set (BUILD_SAMPLES_MFC OFF CACHE BOOL "${BUILD_SAMPLES_MFC_DESCR}")
-endif()
-set (BUILD_SAMPLES_QT OFF CACHE BOOL "${BUILD_SAMPLES_QT_DESCR}")
-
# uwp sample
if (MSVC)
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore")
@@ -834,18 +826,6 @@ else()
OCCT_CHECK_AND_UNSET ("INSTALL_GTEST")
endif()
-# qt for samples
-if (BUILD_SAMPLES_QT)
- # check qt 3rdparty path
- add_definitions (-DHAVE_QT)
- list (APPEND OCCT_3RDPARTY_CMAKE_LIST "adm/cmake/qt")
- message (STATUS "Info: Qt is used by OCCT")
-else()
- OCCT_CHECK_AND_UNSET_GROUP ("3RDPARTY_QT")
- OCCT_CHECK_AND_UNSET_GROUP ("3RDPARTY_TQTMALLOC")
- OCCT_CHECK_AND_UNSET ("INSTALL_QT")
-endif()
-
# VCPKG require delayed processing of 3rdparty.
# That is why we delay the creating project and setting up
# the platform specific variables.
@@ -937,20 +917,6 @@ if (NOT DEFINED INSTALL_DIR_DATA)
endif()
endif()
-# OCCT samples
-if (NOT DEFINED INSTALL_DIR_SAMPLES)
- if (LAYOUT_IS_UNIX)
- set (INSTALL_DIR_SAMPLES "share/opencascade/samples" CACHE PATH "${INSTALL_DIR_SAMPLES_DESCR}")
- if (INSTALL_DIR_WITH_VERSION)
- set (INSTALL_DIR_SAMPLES "share/opencascade-${OCC_VERSION_STRING_EXT}/samples" CACHE PATH "${INSTALL_DIR_SAMPLES_DESCR}" FORCE)
- endif()
- elseif (LAYOUT_IS_VCPKG)
- set (INSTALL_DIR_SAMPLES "share/${OCCT_PROJECT_NAME}/samples" CACHE PATH "${INSTALL_DIR_SAMPLES_DESCR}")
- else()
- set (INSTALL_DIR_SAMPLES "samples" CACHE PATH "${INSTALL_DIR_SAMPLES_DESCR}")
- endif()
-endif()
-
# OCCT tests
if (NOT DEFINED INSTALL_DIR_TESTS)
if (LAYOUT_IS_UNIX)
@@ -1143,58 +1109,20 @@ CONFIGURE_AND_INSTALL_VERSION_HEADER()
string(TIMESTAMP CURRENT_TIME "%H:%M:%S")
message (STATUS "Info: \(${CURRENT_TIME}\) End the collecting")
-list (FIND BUILD_TOOLKITS DRAWEXE DRAWEXE_INDEX)
-if (${DRAWEXE_INDEX} GREATER -1)
- OCCT_INSTALL_FILE_OR_DIR ("data/" "${INSTALL_DIR_DATA}")
- OCCT_INSTALL_FILE_OR_DIR ("samples/tcl" "${INSTALL_DIR_SAMPLES}")
-endif()
-
if (WIN32)
set (SCRIPT_EXT bat)
else()
set (SCRIPT_EXT sh)
endif()
-# OCCT samples
-# get absolute path from INSTALL_DIR
-set (INSTALL_DIR_ABSOLUTE "${INSTALL_DIR}")
-if(NOT IS_ABSOLUTE "${INSTALL_DIR_ABSOLUTE}")
- get_filename_component(INSTALL_DIR_ABSOLUTE "${CMAKE_BINARY_DIR}/${INSTALL_DIR}" ABSOLUTE)
-endif()
-
-if (INSTALL_SAMPLES)
- OCCT_CONFIGURE ("adm/templates/env.samples.${SCRIPT_EXT}.in" "env.samples.${SCRIPT_EXT}")
- if (WIN32)
- OCCT_INSTALL_FILE_OR_DIR ("samples/CSharp" "${INSTALL_DIR_SAMPLES}")
- OCCT_INSTALL_FILE_OR_DIR ("samples/mfc" "${INSTALL_DIR_SAMPLES}")
-
- if ("${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore")
- OCCT_INSTALL_FILE_OR_DIR ("samples/xaml" "${INSTALL_DIR_SAMPLES}")
- endif()
-
- install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SAMPLES}/CSharp" RENAME "env.${SCRIPT_EXT}")
- install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SAMPLES}/mfc/standard" RENAME "env.${SCRIPT_EXT}")
- endif()
-
- OCCT_INSTALL_FILE_OR_DIR ("samples/java" "${INSTALL_DIR_SAMPLES}")
- OCCT_INSTALL_FILE_OR_DIR ("samples/ocafsamples" "${INSTALL_DIR_SAMPLES}")
- OCCT_INSTALL_FILE_OR_DIR ("samples/qt" "${INSTALL_DIR_SAMPLES}")
-
- install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SAMPLES}/qt/FuncDemo" RENAME "env.${SCRIPT_EXT}")
- install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SAMPLES}/qt/IESample" RENAME "env.${SCRIPT_EXT}")
- install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SAMPLES}/qt/OCCTOverview" RENAME "env.${SCRIPT_EXT}")
- install (FILES "${CMAKE_BINARY_DIR}/env.samples.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SAMPLES}/qt/Tutorial" RENAME "env.${SCRIPT_EXT}")
-endif()
-
if (INSTALL_TEST_CASES)
OCCT_INSTALL_FILE_OR_DIR ("tests/" "${INSTALL_DIR_TESTS}")
endif()
list (FIND BUILD_TOOLKITS DRAWEXE DRAWEXE_INDEX)
if (${DRAWEXE_INDEX} GREATER -1)
- # copy data and samples/tcl folders to install script folder
+ # copy data folder (includes tcl samples) to install folder
OCCT_INSTALL_FILE_OR_DIR ("data/" "${INSTALL_DIR_DATA}")
- OCCT_INSTALL_FILE_OR_DIR ("samples/tcl" "${INSTALL_DIR_SAMPLES}")
install (FILES "${OCCT_ROOT_DIR}/adm/templates/draw.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR_SCRIPT}"
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
@@ -1259,7 +1187,6 @@ if (LAYOUT_IS_VCPKG)
set \"CSF_OCCTIncludePath=%CASCONTENTROOT%\\include\"
set \"CSF_OCCTResourcePath=%CASCONTENTROOT%\\share\\${OCCT_PROJECT_NAME}\"
set \"CSF_OCCTDataPath=%CASCONTENTROOT%\\share\\${OCCT_PROJECT_NAME}\"
- set \"CSF_OCCTSamplesPath=%CASCONTENTROOT%\\share\\${OCCT_PROJECT_NAME}\\samples\"
set \"CSF_OCCTTestsPath=%CASCONTENTROOT%\\share\\${OCCT_PROJECT_NAME}\\tests\"
set \"CSF_OCCTDocPath=%CASCONTENTROOT%\\share\\${OCCT_PROJECT_NAME}\\doc\"")
else()
@@ -1273,7 +1200,6 @@ if (LAYOUT_IS_VCPKG)
export CSF_OCCTIncludePath=\"\${CASCONTENTROOT}/include\"
export CSF_OCCTResourcePath=\"\${CASCONTENTROOT}/share/${OCCT_PROJECT_NAME}\"
export CSF_OCCTDataPath=\"\${CASCONTENTROOT}/share/${OCCT_PROJECT_NAME}\"
- export CSF_OCCTSamplesPath=\"\${CASCONTENTROOT}/share/${OCCT_PROJECT_NAME}/samples\"
export CSF_OCCTTestsPath=\"\${CASCONTENTROOT}/share/${OCCT_PROJECT_NAME}/tests\"
export CSF_OCCTDocPath=\"\${CASCONTENTROOT}/share/${OCCT_PROJECT_NAME}/doc\"")
endif()
@@ -1288,7 +1214,6 @@ else()
set (OCCT_CUSTOM_ADDITIONAL_PATHS "set \"CSF_OCCTIncludePath=%CASROOT%/${INSTALL_DIR_INCLUDE}\"
set \"CSF_OCCTResourcePath=%CASROOT%/${INSTALL_DIR_RESOURCE}\"
set \"CSF_OCCTDataPath=%CASROOT%/${INSTALL_DIR_DATA}\"
- set \"CSF_OCCTSamplesPath=%CASROOT%/${INSTALL_DIR_SAMPLES}\"
set \"CSF_OCCTTestsPath=%CASROOT%/${INSTALL_DIR_TESTS}\"
set \"CSF_OCCTDocPath=%CASROOT%/${INSTALL_DIR_DOC}\"")
else()
@@ -1297,7 +1222,6 @@ else()
set (OCCT_CUSTOM_ADDITIONAL_PATHS "export CSF_OCCTIncludePath=\"\${CASROOT}/${INSTALL_DIR_INCLUDE}\"
export CSF_OCCTResourcePath=\"\${CASROOT}/${INSTALL_DIR_RESOURCE}\"
export CSF_OCCTDataPath=\"\${CASROOT}/${INSTALL_DIR_DATA}\"
- export CSF_OCCTSamplesPath=\"\${CASROOT}/${INSTALL_DIR_SAMPLES}\"
export CSF_OCCTTestsPath=\"\${CASROOT}/${INSTALL_DIR_TESTS}\"
export CSF_OCCTDocPath=\"\${CASROOT}/${INSTALL_DIR_DOC}\"")
endif()
@@ -1342,11 +1266,6 @@ endif()
# write current custom.bat/sh (for build directory)
OCCT_CONFIGURE ("adm/templates/custom.build.${SCRIPT_EXT}.in" "${SUB_CUSTOM_NAME}")
-if (BUILD_SAMPLES_MFC OR BUILD_SAMPLES_QT)
- OCCT_INSTALL_FILE_OR_DIR ("adm/templates/sample.${SCRIPT_EXT}" "${INSTALL_DIR_SCRIPT}")
- OCCT_COPY_FILE_OR_DIR ("adm/templates/sample.${SCRIPT_EXT}" "${CMAKE_BINARY_DIR}")
-endif()
-
if (WIN32)
# Set custom script path variable for Windows template
if (LAYOUT_IS_VCPKG)
@@ -1405,24 +1324,6 @@ foreach(RESOURCE ${RESOURCES})
endif()
endforeach()
-if (BUILD_SAMPLES_QT)
- FILE_TO_LIST ("adm/SAMPLES_RESOURCES" SAMPLES_RESOURCES)
- foreach(RESOURCE ${SAMPLES_RESOURCES})
- OCCT_INSTALL_FILE_OR_DIR ("samples/${RESOURCE}" "${INSTALL_DIR_RESOURCE}/samples")
- #message("Copy Sample resources: samples/${RESOURCE} into ${INSTALL_DIR_RESOURCE}/samples")
- endforeach()
-
- ## Copy sources of OCCTOverview for using in the sample
- OCCT_INSTALL_FILE_OR_DIR ("samples/qt/OCCTOverview/code/DataExchangeSamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
- OCCT_INSTALL_FILE_OR_DIR ("samples/qt/OCCTOverview/code/OcafSamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
- OCCT_INSTALL_FILE_OR_DIR ("samples/qt/OCCTOverview/code/GeometrySamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
- OCCT_INSTALL_FILE_OR_DIR ("samples/qt/OCCTOverview/code/TopologySamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
- OCCT_INSTALL_FILE_OR_DIR ("samples/qt/OCCTOverview/code/TriangulationSamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
- OCCT_INSTALL_FILE_OR_DIR ("samples/qt/OCCTOverview/code/Viewer2dSamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
- OCCT_INSTALL_FILE_OR_DIR ("samples/qt/OCCTOverview/code/Viewer3dSamples.cxx" "${INSTALL_DIR_SAMPLES}/OCCTOverview/code")
-endif()
-
-
# patch installed DrawDefault file if BUILD_SHARED_LIBRARY_NAME_POSTFIX is changed
if (NOT "${BUILD_SHARED_LIBRARY_NAME_POSTFIX}" STREQUAL "")
OCCT_UPDATE_DRAW_DEFAULT_FILE()
@@ -1477,68 +1378,6 @@ if (MSVC AND 3RDPARTY_DLL_DIRS)
endif()
endif()
-message (STATUS "Info: \(${CURRENT_TIME}\) OCCT toolkits processed")
-# samples do not support patch usage
-if (BUILD_SAMPLES_MFC OR BUILD_SAMPLES_QT)
- set (OCCT_ROOT ${OCCT_ROOT_DIR})
-endif()
-
-if (BUILD_SAMPLES_MFC)
- set (MFC_STANDARD_SAMPLES_DIR ${OCCT_ROOT}/samples/mfc/standard)
- set (COMMON_WINMAIN_FILE ${MFC_STANDARD_SAMPLES_DIR}/Common/Winmain.cpp)
-
- 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_ImportExport)
- add_subdirectory(samples/mfc/standard/04_HLR)
-
- message (STATUS "Info: \(${CURRENT_TIME}\) MFC Sample projects added")
-endif()
-
-OCCT_MODULES_AND_TOOLKITS (SAMPLES "SAMPLES_TOOLKITS" OCCT_SAMPLES)
-
-# Load sample configuration files
-foreach (OCCT_SAMPLE ${OCCT_SAMPLES})
- foreach (BUILD_SAMPLE_TOOLKIT ${${OCCT_SAMPLE}_SAMPLES_TOOLKITS})
- OCCT_INCLUDE_CMAKE_FILE (samples/${OCCT_SAMPLE}/${BUILD_SAMPLE_TOOLKIT}/PACKAGES)
- OCCT_INCLUDE_CMAKE_FILE (samples/${OCCT_SAMPLE}/${BUILD_SAMPLE_TOOLKIT}/EXTERNLIB)
- OCCT_INCLUDE_CMAKE_FILE (samples/${OCCT_SAMPLE}/${BUILD_SAMPLE_TOOLKIT}/FILES)
- foreach (PACKAGE ${OCCT_${BUILD_SAMPLE_TOOLKIT}_LIST_OF_PACKAGES})
- OCCT_INCLUDE_CMAKE_FILE (samples/${OCCT_SAMPLE}/${PACKAGE}/FILES)
- endforeach()
- endforeach()
-endforeach()
-
-if (BUILD_SAMPLES_QT)
- if (BUILD_SAMPLES_QT)
- if (NOT Qt5_FOUND OR "${Qt5Gui_EGL_INCLUDE_DIRS}" STREQUAL "" OR NOT WIN32)
- list (REMOVE_ITEM qt_SAMPLES_TOOLKITS AndroidQt)
- message (STATUS "Info: AndroidQt sample excluded due to OS is not Windows or Qt is configured without ANGLE")
- endif()
- else()
- list (REMOVE_ITEM OCCT_SAMPLES qt)
- message (STATUS "Info: qt samples excluded due to BUILD_SAMPLES_QT is disabled")
- endif()
-
- foreach (OCCT_SAMPLE ${OCCT_SAMPLES})
- list (APPEND BUILD_SAMPLE_TOOLKITS ${${OCCT_SAMPLE}_SAMPLES_TOOLKITS})
-
- # collect all the headers to /inc/samples folder
- string(TIMESTAMP CURRENT_TIME "%H:%M:%S")
- message (STATUS "Info: \(${CURRENT_TIME}\) ${OCCT_SAMPLE} Sample projects added")
-
- # include patched toolkit projects or original ones
- foreach (BUILD_SAMPLE_TOOLKIT ${${OCCT_SAMPLE}_SAMPLES_TOOLKITS})
- OCCT_ADD_SUBDIRECTORY ("samples/${OCCT_SAMPLE}/${BUILD_SAMPLE_TOOLKIT}")
- endforeach()
- endforeach()
-endif()
-
-if (BUILD_MODULE_UwpSample)
- add_subdirectory(samples/xaml)
-endif()
-
# Prepare variables for configuration of OpenCASCADE cmake config file
set (OCCT_MODULES_ENABLED)
set (OCCT_LIBRARIES)
diff --git a/adm/RESOURCES b/adm/RESOURCES
index a0dd9bf5be..029466f242 100644
--- a/adm/RESOURCES
+++ b/adm/RESOURCES
@@ -1,4 +1,5 @@
DrawResources
+samples/tcl
StdResource
SHMessage
Textures
diff --git a/adm/SAMPLES b/adm/SAMPLES
deleted file mode 100644
index 92496b7397..0000000000
--- a/adm/SAMPLES
+++ /dev/null
@@ -1 +0,0 @@
-qt AndroidQt FuncDemo IESample Tutorial OCCTOverview
\ No newline at end of file
diff --git a/adm/SAMPLES_RESOURCES b/adm/SAMPLES_RESOURCES
deleted file mode 100644
index 42b0dea440..0000000000
--- a/adm/SAMPLES_RESOURCES
+++ /dev/null
@@ -1,3 +0,0 @@
-qt/Common/res/
-qt/Tutorial/res/
-qt/OCCTOverview/res/
\ No newline at end of file
diff --git a/adm/cmake/occt_doc.cmake b/adm/cmake/occt_doc.cmake
index 20ff54146f..5ec9c8ef21 100644
--- a/adm/cmake/occt_doc.cmake
+++ b/adm/cmake/occt_doc.cmake
@@ -388,9 +388,6 @@ function(OCCT_DOC_CONFIGURE_DOXYGEN OUTPUT_DIR CONFIG_FILE DOC_TYPE)
else()
file(APPEND ${DOXYGEN_CONFIG_FILE} "IMAGE_PATH = ${OCCT_ROOT_DIR}/dox/resources\n")
endif()
-
- # Example paths
- file(APPEND ${DOXYGEN_CONFIG_FILE} "EXAMPLE_PATH = ${OCCT_ROOT_DIR}/src ${OCCT_ROOT_DIR}/samples\n")
else()
# Settings for Reference Manual
file(APPEND ${DOXYGEN_CONFIG_FILE} "PROJECT_NAME = \"Open CASCADE Technology Reference Manual\"\n")
diff --git a/adm/cmake/occt_gtest.cmake b/adm/cmake/occt_gtest.cmake
index 036e0bca2b..be7c7c7333 100644
--- a/adm/cmake/occt_gtest.cmake
+++ b/adm/cmake/occt_gtest.cmake
@@ -152,7 +152,6 @@ function(OCCT_SET_GTEST_ENVIRONMENT)
"CSF_OCCTResourcePath=${OCCT_ROOT_DIR}/resources"
"CSF_OCCTDataPath=${OCCT_ROOT_DIR}/data"
"CSF_OCCTDocPath=${OCCT_ROOT_DIR}/doc"
- "CSF_OCCTSamplesPath=${OCCT_ROOT_DIR}/samples"
"CSF_OCCTTestsPath=${OCCT_ROOT_DIR}/tests"
"CSF_OCCTBinPath=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}"
"CSF_OCCTLibPath=${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}"
diff --git a/adm/cmake/occt_macros.cmake b/adm/cmake/occt_macros.cmake
index 360a5306cf..4d5442d7f5 100644
--- a/adm/cmake/occt_macros.cmake
+++ b/adm/cmake/occt_macros.cmake
@@ -27,7 +27,6 @@ macro (OCCT_CHECK_AND_UNSET_INSTALL_DIR_SUBDIRS)
OCCT_CHECK_AND_UNSET (INSTALL_DIR_INCLUDE)
OCCT_CHECK_AND_UNSET (INSTALL_DIR_RESOURCE)
OCCT_CHECK_AND_UNSET (INSTALL_DIR_DATA)
- OCCT_CHECK_AND_UNSET (INSTALL_DIR_SAMPLES)
OCCT_CHECK_AND_UNSET (INSTALL_DIR_TESTS)
OCCT_CHECK_AND_UNSET (INSTALL_DIR_DOC)
endmacro()
diff --git a/adm/cmake/vardescr.cmake b/adm/cmake/vardescr.cmake
index f874b18a00..617ec63723 100644
--- a/adm/cmake/vardescr.cmake
+++ b/adm/cmake/vardescr.cmake
@@ -50,10 +50,10 @@ OFF - using a reference file with direct include to the origin,
ON - symbolic link to the origin file are created")
# install variables
-set (INSTALL_DIR_DESCR
+set (INSTALL_DIR_DESCR
"The place where built OCCT libraries, headers, test cases (INSTALL_TEST_CASES variable),
-samples (INSTALL_SAMPLES_DESCR variable) and certain 3rdparties (INSTALL_TBB and
-other similar variables) will be placed during the installation process (building INSTALL project)")
+and certain 3rdparties (INSTALL_TBB and other similar variables) will be placed
+during the installation process (building INSTALL project)")
set (INSTALL_DIR_WITH_VERSION_DESCR
"Use OCCT version number as suffix for names of directories")
@@ -73,10 +73,8 @@ set (INSTALL_DIR_DOC_DESCR
"Subdirectory of INSTALL_DIR where documentation will be installed")
set (INSTALL_DIR_LIB_DESCR
"Subdirectory of INSTALL_DIR where libraries (.so on Linux, .lib on Windows) will be installed")
-set (INSTALL_DIR_RESOURCE_DESCR
+set (INSTALL_DIR_RESOURCE_DESCR
"Subdirectory of INSTALL_DIR where OCCT resource files will be installed")
-set (INSTALL_DIR_SAMPLES_DESCR
-"Subdirectory of INSTALL_DIR where samples will be installed")
set (INSTALL_DIR_TESTS_DESCR
"Subdirectory of INSTALL_DIR where test scripts will be installed")
set (INSTALL_DIR_SCRIPT_DESCR
@@ -91,7 +89,6 @@ set (${INSTALL_TARGET_VARIABLE}_DESCR
project) into the installation directory (INSTALL_DIR variable)")
endmacro()
-INSTALL_MESSAGE (INSTALL_SAMPLES "OCCT samples")
INSTALL_MESSAGE (INSTALL_TEST_CASES "non-regression OCCT test scripts")
INSTALL_MESSAGE (INSTALL_DOC_Overview "OCCT overview documentation (HTML format)")
INSTALL_MESSAGE (INSTALL_FFMPEG "FFmpeg binaries")
@@ -130,19 +127,6 @@ want to build some particular libraries (toolkits) only, then you may uncheck
all modules in the corresponding BUILD_MODUE_* options and provide the list of
necessary libraries here. Of course, all dependencies will be resolved automatically")
-set (BUILD_SAMPLES_MFC_DESCR
-"Indicates whether OCCT MFC samples should be built together with OCCT.
-These samples show some possibilities of using OCCT and they can be executed
-with script samples.bat from the installation directory (INSTALL_DIR)")
-
-set (BUILD_SAMPLES_QT_DESCR
-"Indicates whether OCCT Qt samples should be built together with OCCT.
-These samples show some possibilities of using OCCT and they can be executed
-with script samples.bat from the installation directory (INSTALL_DIR)")
-
-set (BUILD_MODULE_UwpSample_DESCR
-"Indicates whether OCCT UWP sample should be built together with OCCT.")
-
set (BUILD_DOC_Overview_DESCR
"Indicates whether OCCT overview documentation project (Markdown format) should be
created together with OCCT. It is not built together with OCCT. Checking this options
diff --git a/adm/templates/DRAWEXE.vcxproj.user.in b/adm/templates/DRAWEXE.vcxproj.user.in
index e19f3328ab..ff3e612fa3 100644
--- a/adm/templates/DRAWEXE.vcxproj.user.in
+++ b/adm/templates/DRAWEXE.vcxproj.user.in
@@ -6,7 +6,6 @@ CSF_FPE=@BUILD_ENABLE_FPE_SIGNAL_HANDLER@
CSF_OCCTResourcePath=@OCCT_ROOT_DIR@/resources
DRAWHOME=@OCCT_ROOT_DIR@/resources/DrawResources
CSF_OCCTDataPath=@OCCT_ROOT_DIR@/data
-CSF_OCCTSamplesPath=@OCCT_ROOT_DIR@/samples
CSF_OCCTTestsPath=@OCCT_ROOT_DIR@/tests
CSF_OCCTDocPath=@OCCT_ROOT_DIR@/doc
PATH=@3RDPARTY_DLL_DIRS_FOR_PATH@;%PATH%
@@ -19,7 +18,6 @@ PATH=@3RDPARTY_DLL_DIRS_FOR_PATH@;%PATH%
CSF_FPE=@BUILD_ENABLE_FPE_SIGNAL_HANDLER@
CSF_OCCTResourcePath=@OCCT_ROOT_DIR@/resources
CSF_OCCTDataPath=@OCCT_ROOT_DIR@/data
-CSF_OCCTSamplesPath=@OCCT_ROOT_DIR@/samples
CSF_OCCTTestsPath=@OCCT_ROOT_DIR@/tests
CSF_OCCTDocPath=@OCCT_ROOT_DIR@/doc
PATH=@3RDPARTY_DLL_DIRS_FOR_PATH@;%PATH%
@@ -33,7 +31,6 @@ CSF_FPE=@BUILD_ENABLE_FPE_SIGNAL_HANDLER@
DRAWHOME=@OCCT_ROOT_DIR@/resources/DrawResources
CSF_OCCTResourcePath=@OCCT_ROOT_DIR@/resources
CSF_OCCTDataPath=@OCCT_ROOT_DIR@/data
-CSF_OCCTSamplesPath=@OCCT_ROOT_DIR@/samples
CSF_OCCTTestsPath=@OCCT_ROOT_DIR@/tests
CSF_OCCTDocPath=@OCCT_ROOT_DIR@/doc
PATH=@3RDPARTY_DLL_DIRS_FOR_PATH@;%PATH%
diff --git a/adm/templates/custom.build.bat.in b/adm/templates/custom.build.bat.in
index a511fcb43e..d23f784ad8 100644
--- a/adm/templates/custom.build.bat.in
+++ b/adm/templates/custom.build.bat.in
@@ -30,7 +30,6 @@ if /I "%VCVER%" == "@COMPILER@" (
set "CSF_OCCTIncludePath=@CMAKE_BINARY_DIR@/@INSTALL_DIR_INCLUDE@"
set "CSF_OCCTResourcePath=@OCCT_ROOT_DIR@/resources"
set "CSF_OCCTDataPath=@OCCT_ROOT_DIR@/data"
- set "CSF_OCCTSamplesPath=@OCCT_ROOT_DIR@/samples"
set "CSF_OCCTTestsPath=@OCCT_ROOT_DIR@/tests"
set "CSF_OCCTDocPath=@OCCT_ROOT_DIR@/doc"
diff --git a/adm/templates/custom.build.sh.in b/adm/templates/custom.build.sh.in
index f281aeaed1..609fa5b671 100644
--- a/adm/templates/custom.build.sh.in
+++ b/adm/templates/custom.build.sh.in
@@ -27,7 +27,6 @@ if [ "$1" == "@BIN_LETTER@" ]; then
export CSF_OCCTIncludePath="@CMAKE_BINARY_DIR@/@INSTALL_DIR_INCLUDE@"
export CSF_OCCTResourcePath="@OCCT_ROOT_DIR@/resources"
export CSF_OCCTDataPath="@OCCT_ROOT_DIR@/data"
- export CSF_OCCTSamplesPath="@OCCT_ROOT_DIR@/samples"
export CSF_OCCTTestsPath="@OCCT_ROOT_DIR@/tests"
export CSF_OCCTDocPath="@OCCT_ROOT_DIR@/doc"
diff --git a/adm/templates/env.bat b/adm/templates/env.bat
index 33e129a457..45c9d81a48 100644
--- a/adm/templates/env.bat
+++ b/adm/templates/env.bat
@@ -257,7 +257,6 @@ set "CSF_OPT_LNK64I=%CSF_OPT_LNK64I% %OPT_LIB64%"
rem ----- Default paths to sub-folders (can be different in install env) -----
if "%CSF_OCCTIncludePath%" == "" set "CSF_OCCTIncludePath=%CASROOT%\inc"
if "%CSF_OCCTResourcePath%" == "" set "CSF_OCCTResourcePath=%CASROOT%\src"
-if "%CSF_OCCTSamplesPath%" == "" set "CSF_OCCTSamplesPath=%CASROOT%\samples"
if "%CSF_OCCTDataPath%" == "" set "CSF_OCCTDataPath=%CASROOT%\data"
if "%CSF_OCCTTestsPath%" == "" set "CSF_OCCTTestsPath=%CASROOT%\tests"
if "%CSF_OCCTBinPath%" == "" set "CSF_OCCTBinPath=%CASROOT%\win%ARCH%\%VCLIB%\bin%CASDEB%"
diff --git a/adm/templates/env.samples.bat.in b/adm/templates/env.samples.bat.in
deleted file mode 100644
index a787deed46..0000000000
--- a/adm/templates/env.samples.bat.in
+++ /dev/null
@@ -1,32 +0,0 @@
-@echo off
-
-if exist "%~dp0custom.bat" (
- call "%~dp0custom.bat" %1 %2 %3
-)
-
-call "@INSTALL_DIR_ABSOLUTE@\@INSTALL_DIR_SCRIPT@\env.bat" %1 %2 %3
-if /I ["%1"] == ["vc141"] set "VCVER=vc141"
-if /I ["%1"] == ["vc142"] set "VCVER=vc142"
-if /I ["%1"] == ["vc143"] set "VCVER=vc143"
-set "BIN_DIR=win%ARCH%\%VCVER%\bind"
-set "LIB_DIR=win%ARCH%\%VCVER%\libd"
-
-if ["%CASDEB%"] == [""] (
- set "BIN_DIR=win%ARCH%\%VCVER%\bin"
- set "LIB_DIR=win%ARCH%\%VCVER%\lib"
-)
-
-set "PATH=%~dp0%BIN_DIR%;%PATH%"
-
-if not "%QTDIR%" == "" (
- set "RES_DIR=%~dp0win%ARCH%\%VCVER%\res"
-
- set "CSF_ResourcesDefaults=!RES_DIR!"
- set "CSF_TutorialResourcesDefaults=!RES_DIR!"
- set "CSF_IEResourcesDefaults=!RES_DIR!"
-
- set "PATH=%QTDIR%/bin;%PATH%"
- set "QT_QPA_PLATFORM_PLUGIN_PATH=%QTDIR%\plugins\platforms"
-)
-
-set "CSF_OCCTOverviewSampleCodePath=%~dp0..\..\OCCTOverview\code"
diff --git a/adm/templates/env.samples.sh.in b/adm/templates/env.samples.sh.in
deleted file mode 100644
index 08db608092..0000000000
--- a/adm/templates/env.samples.sh.in
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-
-if [ -e "custom.sh" ]; then
- source "custom.sh";
-fi
-
-if [ -e "@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_SCRIPT@/env.sh" ]; then
- source "@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_SCRIPT@/env.sh";
-fi
-
-if test "${QTDIR}" == ""; then
- echo "Environment variable \"QTDIR\" not defined. Define it in \"custom.sh\" script."
- exit 1
-fi
-
-host=`uname -s`
-export STATION=$host
-export RES_DIR=${aSamplePath}/${STATION}/res
-
-export PATH=${QTDIR}/bin:${PATH}
-
-export "CSF_OCCTOverviewSampleCodePath=${aSamplePath}/../../qt/OCCTOverview/code"
diff --git a/adm/templates/env.sh b/adm/templates/env.sh
index dc2e811b2e..7ac45fb947 100644
--- a/adm/templates/env.sh
+++ b/adm/templates/env.sh
@@ -188,7 +188,6 @@ fi
# ----- Default paths to sub-folders (can be different in install env) -----
export CSF_OCCTIncludePath="${CSF_OCCTIncludePath:-$CASROOT/inc}"
export CSF_OCCTResourcePath="${CSF_OCCTResourcePath:-$CASROOT/src}"
-export CSF_OCCTSamplesPath="${CSF_OCCTSamplesPath:-$CASROOT/samples}"
export CSF_OCCTDataPath="${CSF_OCCTDataPath:-$CASROOT/data}"
export CSF_OCCTTestsPath="${CSF_OCCTTestsPath:-$CASROOT/tests}"
diff --git a/adm/templates/sample.bat b/adm/templates/sample.bat
deleted file mode 100644
index 576984ed8a..0000000000
--- a/adm/templates/sample.bat
+++ /dev/null
@@ -1,43 +0,0 @@
-@echo off
-
-if ["%1"] == [""] (
- echo Launch selected sample as follows:
- echo sample.bat SampleName vc10 win32 d
- echo or to use last sample build configuration:
- echo sample.bat SampleName
- echo available samples:
- echo Geometry
- echo Modeling
- echo Viewer2d
- echo Viewer3d
- echo ImportExport
- echo Ocaf
- echo Triangulation
- echo HLR
- echo Animation
- echo Convert
- echo AndroidQt
- echo FuncDemo
- echo IESample
- echo OCCTOverview
- echo Tutorial
- PAUSE
- exit /B
-)
-
-call "%~dp0env.bat" %2 %3 %4
-if not ["%QTDIR%"] == [""] if exist "%QTDIR%\qml" if ["%QML2_IMPORT_PATH%"] == [""] set "QML2_IMPORT_PATH=%QTDIR%/qml"
-set "EXE_PATH=%CSF_OCCTBinPath%/%1.exe"
-
-if not exist "%EXE_PATH%" (
- echo Executable %EXE_PATH% not found.
- echo Probably you didn't compile the application.
- PAUSE
- exit /B
-)
-
-rem Set path to location where sample code is installed
-set "CSF_OCCTOverviewSampleCodePath=%CSF_OCCTSamplesPath%\OCCTOverview\code"
-
-"%EXE_PATH%"
-
diff --git a/adm/templates/sample.sh b/adm/templates/sample.sh
deleted file mode 100644
index 65647576a7..0000000000
--- a/adm/templates/sample.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-if [ "$1" == "" ]; then
- echo Launch selected sample as follows:
- echo sample.sh SampleName d
- echo or to use last sample build configuration:
- echo sample.sh SampleName
- echo available samples:
- echo FuncDemo
- echo IESample
- echo OCCTOverview
- echo Tutorial
-fi
-
-
-aCurrentPath="$PWD"
-aScriptPath=${BASH_SOURCE%/*}; if [ -d "${aScriptPath}" ]; then cd "$aScriptPath"; fi; aScriptPath="$PWD";
-
-source "${aScriptPath}/env.sh" "$2"
-
-if test "${QTDIR}" == ""; then
- if [ -d "$QTDIR%\qml" ];
- then export QML2_IMPORT_PATH="$QTDIR\qml";
- fi
-fi
-
-export "EXE_PATH=$CSF_OCCTBinPath/$1"
-
-if [ ! -f "$EXE_PATH" ]; then
- echo "Executable \"$EXE_PATH\" not found."
- echo "Probably you didn't compile the application."
- exit 1
-fi
-
-export CSF_OCCTOverviewSampleCodePath="${CSF_OCCTSamplesPath}/qt/OCCTOverview/code"
-
-cd ${aCurrentPath}
-"$EXE_PATH"
diff --git a/adm/templates/uwp.toolchain.config.cmake b/adm/templates/uwp.toolchain.config.cmake
deleted file mode 100644
index 4dbd2ae6a9..0000000000
--- a/adm/templates/uwp.toolchain.config.cmake
+++ /dev/null
@@ -1,5 +0,0 @@
-# A toolchain file to configure a Visual Studio generator for a Windows 10 Universal Application (UWP)
-# Specify the CMAKE_SYSTEM_VERSION variable to be 10.0 to build with the latest available Windows 10 SDK.
-
-set (CMAKE_SYSTEM_NAME WindowsStore)
-set (CMAKE_SYSTEM_VERSION 10.0)
diff --git a/dox/build/build_occt/building_occt.md b/dox/build/build_occt/building_occt.md
index 500359ef41..ce095d6118 100644
--- a/dox/build/build_occt/building_occt.md
+++ b/dox/build/build_occt/building_occt.md
@@ -143,7 +143,6 @@ The following table gives the full list of environment variables used at the con
| INSTALL_DIR_RESOURCE | Path | Relative path to the resources installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_RESOURCE}) |
| INSTALL_DIR_LAYOUT | String | Defines the structure of OCCT files (binaries, resources, headers, etc.) for the install directory. Two variants are predefined: for Windows (standard OCCT layout) and for Unix operating systems (standard Linux layout). If needed, the layout can be customized with INSTALL_DIR_* variables |
| INSTALL_DIR_DATA | Path | Relative path to the data files installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_DATA}) |
-| INSTALL_DIR_SAMPLES | Path | Relative path to the samples installation directory. Note that only "samples/tcl" folder will be installed. (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_SAMPLES}) |
| INSTALL_DIR_TESTS | Path | Relative path to the tests installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_TESTS}) |
| INSTALL_DIR_DOC | Path | Relative path to the documentation installation directory (absolute path is ${INSTALL_DIR}/${INSTALL_DIR_DOC}) |
| INSTALL_FREETYPE | Boolean | Indicates whether FreeType binaries should be installed into the installation directory |
diff --git a/dox/samples/draw_scripts.md b/dox/samples/draw_scripts.md
index 786e8962c6..5de2f17bb9 100644
--- a/dox/samples/draw_scripts.md
+++ b/dox/samples/draw_scripts.md
@@ -1,12 +1,12 @@
Draw: Demo Scripts {#samples__draw_scripts}
================
-All demo scripts are provided with OCCT sources and locate in CASROOT/samples/tcl. To play around them please
+All demo scripts are provided with OCCT sources and locate in CASROOT/resources/samples/tcl. To play around them please
follow the steps below:
-1. Start DRAWEXE
+1. Start DRAWEXE
2. Type *cd ../..* to return to the root directory
-3. Type *cd samples/tcl* to reach the *DrawResources* directory
+3. Type *cd resources/samples/tcl* to reach the demo scripts directory
4. Type *source \* to run the demonstration file provided with Open CASCADE. The following demonstration
files are available:
* DataExchangeDemo.tcl: demonstrates sample sequence of operations with writing and reading IGES file
@@ -105,7 +105,7 @@ Type pload ALL
**Running demonstration files**
1. Type *cd ../..* to return to the root directory
-2. Type *cd samples/tcl* to reach the *DrawResources* directory
+2. Type *cd resources/samples/tcl* to reach the demo scripts directory
3. Type *source \* to run the demonstration file provided with Open CASCADE. The following demonstration files are available:
* DataExchangeDemo.tcl: demonstrates sample sequence of operations with writing and reading IGES file
* ModelingDemo.tcl: demonstrates creation of simple shape and displaying it in HLR mode
diff --git a/samples/tcl/ANC101.tcl b/resources/samples/tcl/ANC101.tcl
similarity index 100%
rename from samples/tcl/ANC101.tcl
rename to resources/samples/tcl/ANC101.tcl
diff --git a/samples/tcl/DataExchangeDemo.tcl b/resources/samples/tcl/DataExchangeDemo.tcl
similarity index 100%
rename from samples/tcl/DataExchangeDemo.tcl
rename to resources/samples/tcl/DataExchangeDemo.tcl
diff --git a/samples/tcl/MBBGehauseRohteil.tcl b/resources/samples/tcl/MBBGehauseRohteil.tcl
similarity index 100%
rename from samples/tcl/MBBGehauseRohteil.tcl
rename to resources/samples/tcl/MBBGehauseRohteil.tcl
diff --git a/samples/tcl/ModelingDemo.tcl b/resources/samples/tcl/ModelingDemo.tcl
similarity index 100%
rename from samples/tcl/ModelingDemo.tcl
rename to resources/samples/tcl/ModelingDemo.tcl
diff --git a/samples/tcl/Penrose.tcl b/resources/samples/tcl/Penrose.tcl
similarity index 100%
rename from samples/tcl/Penrose.tcl
rename to resources/samples/tcl/Penrose.tcl
diff --git a/samples/tcl/Readme.txt b/resources/samples/tcl/Readme.txt
similarity index 71%
rename from samples/tcl/Readme.txt
rename to resources/samples/tcl/Readme.txt
index 377c441e3a..061b335c88 100644
--- a/samples/tcl/Readme.txt
+++ b/resources/samples/tcl/Readme.txt
@@ -1,4 +1,4 @@
This directory provides a set of demo scripts for using OCCT functionality from
within DRAW Test Harness. Call the scripts from DRAW prompt, e.g.:
-Draw[]> source samples/tcl/VisualizationDemo.tcl
+Draw[]> source resources/samples/tcl/VisualizationDemo.tcl
diff --git a/samples/tcl/VisualizationDemo.tcl b/resources/samples/tcl/VisualizationDemo.tcl
similarity index 100%
rename from samples/tcl/VisualizationDemo.tcl
rename to resources/samples/tcl/VisualizationDemo.tcl
diff --git a/samples/tcl/bottle.tcl b/resources/samples/tcl/bottle.tcl
similarity index 100%
rename from samples/tcl/bottle.tcl
rename to resources/samples/tcl/bottle.tcl
diff --git a/samples/tcl/cad.tcl b/resources/samples/tcl/cad.tcl
similarity index 100%
rename from samples/tcl/cad.tcl
rename to resources/samples/tcl/cad.tcl
diff --git a/samples/tcl/cpu.tcl b/resources/samples/tcl/cpu.tcl
similarity index 100%
rename from samples/tcl/cpu.tcl
rename to resources/samples/tcl/cpu.tcl
diff --git a/samples/tcl/cutter.tcl b/resources/samples/tcl/cutter.tcl
similarity index 100%
rename from samples/tcl/cutter.tcl
rename to resources/samples/tcl/cutter.tcl
diff --git a/samples/tcl/dimensions.tcl b/resources/samples/tcl/dimensions.tcl
similarity index 100%
rename from samples/tcl/dimensions.tcl
rename to resources/samples/tcl/dimensions.tcl
diff --git a/samples/tcl/drill.tcl b/resources/samples/tcl/drill.tcl
similarity index 100%
rename from samples/tcl/drill.tcl
rename to resources/samples/tcl/drill.tcl
diff --git a/samples/tcl/logo2019.tcl b/resources/samples/tcl/logo2019.tcl
similarity index 100%
rename from samples/tcl/logo2019.tcl
rename to resources/samples/tcl/logo2019.tcl
diff --git a/samples/tcl/markers.tcl b/resources/samples/tcl/markers.tcl
similarity index 100%
rename from samples/tcl/markers.tcl
rename to resources/samples/tcl/markers.tcl
diff --git a/samples/tcl/materials.tcl b/resources/samples/tcl/materials.tcl
similarity index 100%
rename from samples/tcl/materials.tcl
rename to resources/samples/tcl/materials.tcl
diff --git a/samples/tcl/pathtrace_ball.tcl b/resources/samples/tcl/pathtrace_ball.tcl
similarity index 100%
rename from samples/tcl/pathtrace_ball.tcl
rename to resources/samples/tcl/pathtrace_ball.tcl
diff --git a/samples/tcl/pathtrace_cube.tcl b/resources/samples/tcl/pathtrace_cube.tcl
similarity index 100%
rename from samples/tcl/pathtrace_cube.tcl
rename to resources/samples/tcl/pathtrace_cube.tcl
diff --git a/samples/tcl/pathtrace_materials.tcl b/resources/samples/tcl/pathtrace_materials.tcl
similarity index 100%
rename from samples/tcl/pathtrace_materials.tcl
rename to resources/samples/tcl/pathtrace_materials.tcl
diff --git a/samples/tcl/pencil.tcl b/resources/samples/tcl/pencil.tcl
similarity index 100%
rename from samples/tcl/pencil.tcl
rename to resources/samples/tcl/pencil.tcl
diff --git a/samples/tcl/raytrace.tcl b/resources/samples/tcl/raytrace.tcl
similarity index 100%
rename from samples/tcl/raytrace.tcl
rename to resources/samples/tcl/raytrace.tcl
diff --git a/samples/tcl/snowflake.tcl b/resources/samples/tcl/snowflake.tcl
similarity index 100%
rename from samples/tcl/snowflake.tcl
rename to resources/samples/tcl/snowflake.tcl
diff --git a/samples/tcl/spheres.tcl b/resources/samples/tcl/spheres.tcl
similarity index 100%
rename from samples/tcl/spheres.tcl
rename to resources/samples/tcl/spheres.tcl
diff --git a/samples/tcl/vis_pbr_spheres.tcl b/resources/samples/tcl/vis_pbr_spheres.tcl
similarity index 100%
rename from samples/tcl/vis_pbr_spheres.tcl
rename to resources/samples/tcl/vis_pbr_spheres.tcl
diff --git a/samples/tcl/xde.tcl b/resources/samples/tcl/xde.tcl
similarity index 100%
rename from samples/tcl/xde.tcl
rename to resources/samples/tcl/xde.tcl
diff --git a/samples/CSharp/CSharp.sln b/samples/CSharp/CSharp.sln
deleted file mode 100644
index e67bae1fa2..0000000000
--- a/samples/CSharp/CSharp.sln
+++ /dev/null
@@ -1,45 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IE_WPF_WinForms", "WPF_WinForms\IE_WPF_WinForms.csproj", "{D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IE_WinForms", "WinForms\IE_WinForms.csproj", "{B9914BB3-B886-4B41-B48D-350EBEBEFD1F}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OCCTProxy", "OCCTProxy\OCCTProxy.vcxproj", "{969912D9-78E7-4AB8-B4FF-6B52B4F03991}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
- Debug|x64 = Debug|x64
- Release|Win32 = Release|Win32
- Release|x64 = Release|x64
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Debug|Win32.ActiveCfg = Debug|x86
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Debug|Win32.Build.0 = Debug|x86
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Debug|x64.ActiveCfg = Debug|x64
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Debug|x64.Build.0 = Debug|x64
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Release|Win32.ActiveCfg = Release|x86
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Release|Win32.Build.0 = Release|x86
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Release|x64.ActiveCfg = Release|x64
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Release|x64.Build.0 = Release|x64
- {B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Debug|Win32.ActiveCfg = Debug|x86
- {B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Debug|Win32.Build.0 = Debug|x86
- {B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Debug|x64.ActiveCfg = Debug|x64
- {B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Debug|x64.Build.0 = Debug|x64
- {B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Release|Win32.ActiveCfg = Release|x86
- {B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Release|Win32.Build.0 = Release|x86
- {B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Release|x64.ActiveCfg = Release|x64
- {B9914BB3-B886-4B41-B48D-350EBEBEFD1F}.Release|x64.Build.0 = Release|x64
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Debug|Win32.ActiveCfg = Debug|Win32
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Debug|Win32.Build.0 = Debug|Win32
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Debug|x64.ActiveCfg = Debug|x64
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Debug|x64.Build.0 = Debug|x64
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Release|Win32.ActiveCfg = Release|Win32
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Release|Win32.Build.0 = Release|Win32
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Release|x64.ActiveCfg = Release|x64
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Release|x64.Build.0 = Release|x64
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/samples/CSharp/CSharp_D3D.sln b/samples/CSharp/CSharp_D3D.sln
deleted file mode 100644
index a0fedddcac..0000000000
--- a/samples/CSharp/CSharp_D3D.sln
+++ /dev/null
@@ -1,35 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IE_WPF_D3D", "WPF_D3D\IE_WPF_D3D.csproj", "{D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "OCCTProxy_D3D", "OCCTProxy_D3D\OCCTProxy_D3D.vcxproj", "{969912D9-78E7-4AB8-B4FF-6B52B4F03991}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Win32 = Debug|Win32
- Debug|x64 = Debug|x64
- Release|Win32 = Release|Win32
- Release|x64 = Release|x64
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Debug|Win32.ActiveCfg = Debug|x86
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Debug|Win32.Build.0 = Debug|x86
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Debug|x64.ActiveCfg = Debug|x64
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Debug|x64.Build.0 = Debug|x64
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Release|Win32.ActiveCfg = Release|x86
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Release|Win32.Build.0 = Release|x86
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Release|x64.ActiveCfg = Release|x64
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}.Release|x64.Build.0 = Release|x64
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Debug|Win32.ActiveCfg = Debug|Win32
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Debug|Win32.Build.0 = Debug|Win32
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Debug|x64.ActiveCfg = Debug|x64
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Debug|x64.Build.0 = Debug|x64
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Release|Win32.ActiveCfg = Release|Win32
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Release|Win32.Build.0 = Release|Win32
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Release|x64.ActiveCfg = Release|x64
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}.Release|x64.Build.0 = Release|x64
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/samples/CSharp/OCCTProxy/OCCTProxy.cpp b/samples/CSharp/OCCTProxy/OCCTProxy.cpp
deleted file mode 100644
index ce6afca7ed..0000000000
--- a/samples/CSharp/OCCTProxy/OCCTProxy.cpp
+++ /dev/null
@@ -1,1052 +0,0 @@
-// Prevent Windows from defining min/max macros
-#ifndef NOMINMAX
- #define NOMINMAX
-#endif
-
-// include required OCCT headers
-#include
-#include
-#include
-//for OCC graphic
-#include
-#include
-#include
-//for object display
-#include
-#include
-#include
-#include
-//topology
-#include
-#include
-//brep tools
-#include
-#include
-// iges I/E
-#include
-#include
-#include
-#include
-#include
-//step I/E
-#include
-#include
-//for stl export
-#include
-//for vrml export
-#include
-//wrapper of pure C++ classes to ref classes
-#include
-
-#include
-
-// list of required OCCT libraries
-#pragma comment(lib, "TKernel.lib")
-#pragma comment(lib, "TKMath.lib")
-#pragma comment(lib, "TKBRep.lib")
-#pragma comment(lib, "TKXSBase.lib")
-#pragma comment(lib, "TKService.lib")
-#pragma comment(lib, "TKV3d.lib")
-#pragma comment(lib, "TKOpenGl.lib")
-#pragma comment(lib, "TKDEIGES.lib")
-#pragma comment(lib, "TKDESTEP.lib")
-#pragma comment(lib, "TKDESTL.lib")
-#pragma comment(lib, "TKDEVRML.lib")
-#pragma comment(lib, "TKLCAF.lib")
-
-//! Auxiliary tool for converting C# string into UTF-8 string.
-static TCollection_AsciiString toAsciiString (String^ theString)
-{
- if (theString == nullptr)
- {
- return TCollection_AsciiString();
- }
-
- pin_ptr aPinChars = PtrToStringChars (theString);
- const wchar_t* aWCharPtr = aPinChars;
- if (aWCharPtr == NULL
- || *aWCharPtr == L'\0')
- {
- return TCollection_AsciiString();
- }
- return TCollection_AsciiString (aWCharPtr);
-}
-
-///
-/// Proxy class encapsulating calls to OCCT C++ classes within
-/// C++/CLI class visible from .Net (CSharp)
-///
-public ref class OCCTProxy
-{
-public:
- // ============================================
- // Viewer functionality
- // ============================================
-
- ///
- ///Initialize a viewer
- ///
- /// System.IntPtr that contains the window handle (HWND) of the control
- bool InitViewer(System::IntPtr theWnd)
- {
- try
- {
- Handle(Aspect_DisplayConnection) aDisplayConnection;
- myGraphicDriver() = new OpenGl_GraphicDriver (aDisplayConnection);
- }
- catch (Standard_Failure)
- {
- return false;
- }
-
- myViewer() = new V3d_Viewer (myGraphicDriver());
- myViewer()->SetDefaultLights();
- myViewer()->SetLightOn();
- myView() = myViewer()->CreateView();
- Handle(WNT_Window) aWNTWindow = new WNT_Window (reinterpret_cast (theWnd.ToPointer()));
- myView()->SetWindow(aWNTWindow);
- if (!aWNTWindow->IsMapped())
- {
- aWNTWindow->Map();
- }
- myAISContext() = new AIS_InteractiveContext( myViewer() );
- myAISContext()->UpdateCurrentViewer();
- myView()->Redraw();
- myView()->MustBeResized();
- return true;
- }
-
- ///
- /// Make dump of current view to file
- ///
- /// Name of dump file
- bool Dump(const TCollection_AsciiString& theFileName)
- {
- if (myView().IsNull())
- {
- return false;
- }
- myView()->Redraw();
- return myView()->Dump(theFileName.ToCString()) != Standard_False;
- }
-
- ///
- ///Redraw view
- ///
- void RedrawView(void)
- {
- if (!myView().IsNull())
- {
- myView()->Redraw();
- }
- }
-
- ///
- ///Update view
- ///
- void UpdateView(void)
- {
- if (!myView().IsNull())
- {
- myView()->MustBeResized();
- }
- }
-
- ///
- ///Set computed mode in false
- ///
- void SetDegenerateModeOn(void)
- {
- if (!myView().IsNull())
- {
- myView()->SetComputedMode (Standard_False);
- myView()->Redraw();
- }
- }
-
- ///
- ///Set computed mode in true
- ///
- void SetDegenerateModeOff(void)
- {
- if (!myView().IsNull())
- {
- myView()->SetComputedMode (Standard_True);
- myView()->Redraw();
- }
- }
-
- ///
- ///Fit all
- ///
- void WindowFitAll(int theXmin, int theYmin, int theXmax, int theYmax)
- {
- if (!myView().IsNull())
- {
- myView()->WindowFitAll(theXmin, theYmin, theXmax, theYmax);
- }
- }
-
- ///
- ///Current place of window
- ///
- /// Current zoom
- void Place(int theX, int theY, float theZoomFactor)
- {
- Standard_Real aZoomFactor = theZoomFactor;
- if (!myView().IsNull())
- {
- myView()->Place(theX, theY, aZoomFactor);
- }
- }
-
- ///
- ///Set Zoom
- ///
- void Zoom(int theX1, int theY1, int theX2, int theY2)
- {
- if (!myView().IsNull())
- {
- myView()->Zoom(theX1, theY1, theX2, theY2);
- }
- }
-
- ///
- ///Set Pan
- ///
- void Pan(int theX, int theY)
- {
- if (!myView().IsNull())
- {
- myView()->Pan(theX, theY);
- }
- }
-
- ///
- ///Rotation
- ///
- void Rotation(int theX, int theY)
- {
- if (!myView().IsNull())
- {
- myView()->Rotation(theX, theY);
- }
- }
-
- ///
- ///Start rotation
- ///
- void StartRotation(int theX, int theY)
- {
- if (!myView().IsNull())
- {
- myView()->StartRotation(theX, theY);
- }
- }
-
- ///
- ///Select by rectangle
- ///
- void Select(int theX1, int theY1, int theX2, int theY2)
- {
- if (!myAISContext().IsNull())
- {
- myAISContext()->SelectRectangle (Graphic3d_Vec2i (theX1, theY1),
- Graphic3d_Vec2i (theX2, theY2),
- myView());
- myAISContext()->UpdateCurrentViewer();
- }
- }
-
- ///
- ///Select by click
- ///
- void Select(void)
- {
- if (!myAISContext().IsNull())
- {
- myAISContext()->SelectDetected();
- myAISContext()->UpdateCurrentViewer();
- }
- }
-
- ///
- ///Move view
- ///
- void MoveTo(int theX, int theY)
- {
- if ((!myAISContext().IsNull()) && (!myView().IsNull()))
- {
- myAISContext()->MoveTo (theX, theY, myView(), Standard_True);
- }
- }
-
- ///
- ///Select by rectangle with pressed "Shift" key
- ///
- void ShiftSelect(int theX1, int theY1, int theX2, int theY2)
- {
- if ((!myAISContext().IsNull()) && (!myView().IsNull()))
- {
- myAISContext()->SelectRectangle (Graphic3d_Vec2i (theX1, theY1),
- Graphic3d_Vec2i (theX2, theY2),
- myView(),
- AIS_SelectionScheme_XOR);
- myAISContext()->UpdateCurrentViewer();
- }
- }
-
- ///
- ///Select by "Shift" key
- ///
- void ShiftSelect(void)
- {
- if (!myAISContext().IsNull())
- {
- myAISContext()->SelectDetected (AIS_SelectionScheme_XOR);
- myAISContext()->UpdateCurrentViewer();
- }
- }
-
- ///
- ///Set background color
- ///
- void BackgroundColor(int& theRed, int& theGreen, int& theBlue)
- {
- Standard_Real R1;
- Standard_Real G1;
- Standard_Real B1;
- if (!myView().IsNull())
- {
- myView()->BackgroundColor(Quantity_TOC_RGB,R1,G1,B1);
- }
- theRed = (int)R1*255;
- theGreen = (int)G1*255;
- theBlue = (int)B1*255;
- }
-
- ///
- ///Get background color Red
- ///
- int GetBGColR(void)
- {
- int aRed, aGreen, aBlue;
- BackgroundColor(aRed, aGreen, aBlue);
- return aRed;
- }
-
- ///
- ///Get background color Green
- ///
- int GetBGColG(void)
- {
- int aRed, aGreen, aBlue;
- BackgroundColor(aRed, aGreen, aBlue);
- return aGreen;
- }
-
- ///
- ///Get background color Blue
- ///
- int GetBGColB(void)
- {
- int aRed, aGreen, aBlue;
- BackgroundColor(aRed, aGreen, aBlue);
- return aBlue;
- }
-
- ///
- ///Update current viewer
- ///
- void UpdateCurrentViewer(void)
- {
- if (!myAISContext().IsNull())
- {
- myAISContext()->UpdateCurrentViewer();
- }
- }
-
- ///
- ///Front side
- ///
- void FrontView(void)
- {
- if (!myView().IsNull())
- {
- myView()->SetProj(V3d_Yneg);
- }
- }
-
- ///
- ///Top side
- ///
- void TopView(void)
- {
- if (!myView().IsNull())
- {
- myView()->SetProj(V3d_Zpos);
- }
- }
-
- ///
- ///Left side
- ///
- void LeftView(void)
- {
- if (!myView().IsNull())
- {
- myView()->SetProj(V3d_Xneg);
- }
- }
-
- ///
- ///Back side
- ///
- void BackView(void)
- {
- if (!myView().IsNull())
- {
- myView()->SetProj(V3d_Ypos);
- }
- }
-
- ///
- ///Right side
- ///
- void RightView(void)
- {
- if (!myView().IsNull())
- {
- myView()->SetProj(V3d_Xpos);
- }
- }
-
- ///
- ///Bottom side
- ///
- void BottomView(void)
- {
- if (!myView().IsNull())
- {
- myView()->SetProj(V3d_Zneg);
- }
- }
-
- ///
- ///Axo side
- ///
- void AxoView(void)
- {
- if (!myView().IsNull())
- {
- myView()->SetProj(V3d_XposYnegZpos);
- }
- }
-
- ///
- ///Scale
- ///
- float Scale(void)
- {
- if (myView().IsNull())
- {
- return -1;
- }
- else
- {
- return (float)myView()->Scale();
- }
- }
-
- ///
- ///Zoom in all view
- ///
- void ZoomAllView(void)
- {
- if (!myView().IsNull())
- {
- myView()->FitAll();
- myView()->ZFitAll();
- }
- }
-
- ///
- ///Reset view
- ///
- void Reset(void)
- {
- if (!myView().IsNull())
- {
- myView()->Reset();
- }
- }
-
- ///
- ///Set display mode of objects
- ///
- /// Set current mode
- void SetDisplayMode(int theMode)
- {
- if (myAISContext().IsNull())
- {
- return;
- }
- AIS_DisplayMode aCurrentMode;
- if (theMode == 0)
- {
- aCurrentMode=AIS_WireFrame;
- }
- else
- {
- aCurrentMode=AIS_Shaded;
- }
-
- if(myAISContext()->NbSelected()==0)
- {
- myAISContext()->SetDisplayMode (aCurrentMode, Standard_False);
- }
- else
- {
- for(myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected())
- {
- myAISContext()->SetDisplayMode (myAISContext()->SelectedInteractive(), theMode, Standard_False);
- }
- }
- myAISContext()->UpdateCurrentViewer();
- }
-
- ///
- ///Set color
- ///
- void SetColor(int theR, int theG, int theB)
- {
- if (myAISContext().IsNull())
- {
- return;
- }
- Quantity_Color aCol = Quantity_Color(theR/255.,theG/255.,theB/255.,Quantity_TOC_RGB);
- for (; myAISContext()->MoreSelected(); myAISContext()->NextSelected())
- {
- myAISContext()->SetColor (myAISContext()->SelectedInteractive(), aCol, Standard_False);
- }
- myAISContext()->UpdateCurrentViewer();
- }
-
- ///
- ///Get object color red
- ///
- int GetObjColR(void)
- {
- int aRed, aGreen, aBlue;
- ObjectColor(aRed, aGreen, aBlue);
- return aRed;
- }
-
- ///
- ///Get object color green
- ///
- int GetObjColG(void)
- {
- int aRed, aGreen, aBlue;
- ObjectColor(aRed, aGreen, aBlue);
- return aGreen;
- }
-
- ///
- ///Get object color R/G/B
- ///
- void ObjectColor(int& theRed, int& theGreen, int& theBlue)
- {
- if (myAISContext().IsNull())
- {
- return;
- }
- theRed=255;
- theGreen=255;
- theBlue=255;
- Handle(AIS_InteractiveObject) aCurrent ;
- myAISContext()->InitSelected();
- if (!myAISContext()->MoreSelected())
- {
- return;
- }
- aCurrent = myAISContext()->SelectedInteractive();
- if ( aCurrent->HasColor () )
- {
- Quantity_Color anObjCol;
- myAISContext()->Color (aCurrent, anObjCol);
- Standard_Real r1, r2, r3;
- anObjCol.Values(r1, r2, r3, Quantity_TOC_RGB);
- theRed=(int)r1*255;
- theGreen=(int)r2*255;
- theBlue=(int)r3*255;
- }
- }
-
- ///
- ///Get object color blue
- ///
- int GetObjColB(void)
- {
- int aRed, aGreen, aBlue;
- ObjectColor(aRed, aGreen, aBlue);
- return aBlue;
- }
-
- ///
- ///Set background color R/G/B
- ///
- void SetBackgroundColor(int theRed, int theGreen, int theBlue)
- {
- if (!myView().IsNull())
- {
- myView()->SetBackgroundColor(Quantity_TOC_RGB, theRed/255.,theGreen/255.,theBlue/255.);
- }
- }
-
- ///
- ///Erase objects
- ///
- void EraseObjects(void)
- {
- if (myAISContext().IsNull())
- {
- return;
- }
-
- myAISContext()->EraseSelected (Standard_False);
- myAISContext()->ClearSelected (Standard_True);
- }
-
- ///
- ///Get version
- ///
- float GetOCCVersion(void)
- {
- return (float)OCC_VERSION;
- }
-
- ///
- ///set material
- ///
- void SetMaterial(int theMaterial)
- {
- if (myAISContext().IsNull())
- {
- return;
- }
- for (myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected())
- {
- myAISContext()->SetMaterial (myAISContext()->SelectedInteractive(), (Graphic3d_NameOfMaterial)theMaterial, Standard_False);
- }
- myAISContext()->UpdateCurrentViewer();
- }
-
- ///
- ///set transparency
- ///
- void SetTransparency(int theTrans)
- {
- if (myAISContext().IsNull())
- {
- return;
- }
- for( myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected() )
- {
- myAISContext()->SetTransparency (myAISContext()->SelectedInteractive(), ((Standard_Real)theTrans) / 10.0, Standard_False);
- }
- myAISContext()->UpdateCurrentViewer();
- }
-
- ///
- ///Return true if object is selected
- ///
- bool IsObjectSelected(void)
- {
- if (myAISContext().IsNull())
- {
- return false;
- }
- myAISContext()->InitSelected();
- return myAISContext()->MoreSelected() != Standard_False;
- }
-
- ///
- ///Return display mode
- ///
- int DisplayMode(void)
- {
- if (myAISContext().IsNull())
- {
- return -1;
- }
- int aMode = -1;
- bool OneOrMoreInShading = false;
- bool OneOrMoreInWireframe = false;
- for (myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected())
- {
- if ( myAISContext()->IsDisplayed( myAISContext()->SelectedInteractive(), 1 ) )
- {
- OneOrMoreInShading = true;
- }
- if ( myAISContext()->IsDisplayed( myAISContext()->SelectedInteractive(), 0 ) )
- {
- OneOrMoreInWireframe = true;
- }
- }
- if (OneOrMoreInShading && OneOrMoreInWireframe)
- {
- aMode=10;
- }
- else if(OneOrMoreInShading)
- {
- aMode=1;
- }
- else if (OneOrMoreInWireframe)
- {
- aMode=0;
- }
-
- return aMode;
- }
-
- ///
- ///Create new view
- ///
- /// System.IntPtr that contains the window handle (HWND) of the control
- void CreateNewView(System::IntPtr theWnd)
- {
- if (myAISContext().IsNull())
- {
- return;
- }
- myView() = myAISContext()->CurrentViewer()->CreateView();
- if (myGraphicDriver().IsNull())
- {
- myGraphicDriver() = new OpenGl_GraphicDriver (Handle(Aspect_DisplayConnection)());
- }
- Handle(WNT_Window) aWNTWindow = new WNT_Window (reinterpret_cast (theWnd.ToPointer()));
- myView()->SetWindow(aWNTWindow);
- Standard_Integer w=100, h=100;
- aWNTWindow->Size(w,h);
- if (!aWNTWindow->IsMapped())
- {
- aWNTWindow->Map();
- }
- }
-
- ///
- ///Set AISContext
- ///
- bool SetAISContext(OCCTProxy^ theViewer)
- {
- this->myAISContext() = theViewer->GetContext();
- if (myAISContext().IsNull())
- {
- return false;
- }
- return true;
- }
-
- ///
- ///Get AISContext
- ///
- Handle(AIS_InteractiveContext) GetContext(void)
- {
- return myAISContext();
- }
-
-public:
- // ============================================
- // Import / export functionality
- // ============================================
-
- ///
- ///Import BRep file
- ///
- /// Name of import file
- bool ImportBrep(System::String^ theFileName)
- {
- return ImportBrep (toAsciiString (theFileName));
- }
-
- ///
- ///Import BRep file
- ///
- /// Name of import file
- bool ImportBrep (const TCollection_AsciiString& theFileName)
- {
- TopoDS_Shape aShape;
- BRep_Builder aBuilder;
- Standard_Boolean isResult = BRepTools::Read(aShape,theFileName.ToCString(),aBuilder);
- if (!isResult)
- {
- return false;
- }
-
- myAISContext()->Display (new AIS_Shape (aShape), Standard_True);
- return true;
- }
-
- ///
- ///Import Step file
- ///
- /// Name of import file
- bool ImportStep(const TCollection_AsciiString& theFileName)
- {
- STEPControl_Reader aReader;
- IFSelect_ReturnStatus aStatus = aReader.ReadFile(theFileName.ToCString());
- if ( aStatus == IFSelect_RetDone )
- {
- bool isFailsonly = false;
- aReader.PrintCheckLoad( isFailsonly, IFSelect_ItemsByEntity );
-
- int aNbRoot = aReader.NbRootsForTransfer();
- aReader.PrintCheckTransfer( isFailsonly, IFSelect_ItemsByEntity );
- for ( Standard_Integer n = 1; n <= aNbRoot; n++ )
- {
- Standard_Boolean ok = aReader.TransferRoot( n );
- int aNbShap = aReader.NbShapes();
- if ( aNbShap > 0 )
- {
- for ( int i = 1; i <= aNbShap; i++ )
- {
- TopoDS_Shape aShape = aReader.Shape( i );
- myAISContext()->Display (new AIS_Shape (aShape), Standard_False);
- }
- myAISContext()->UpdateCurrentViewer();
- }
- }
- }
- else
- {
- return false;
- }
-
- return true;
- }
-
- ///
- ///Import Iges file
- ///
- /// Name of import file
- bool ImportIges(const TCollection_AsciiString& theFileName)
- {
- IGESControl_Reader aReader;
- int aStatus = aReader.ReadFile( theFileName.ToCString() );
-
- if ( aStatus == IFSelect_RetDone )
- {
- aReader.TransferRoots();
- TopoDS_Shape aShape = aReader.OneShape();
- myAISContext()->Display (new AIS_Shape (aShape), Standard_False);
- }
- else
- {
- return false;
- }
-
- myAISContext()->UpdateCurrentViewer();
- return true;
- }
-
- ///
- ///Export BRep file
- ///
- /// Name of export file
- bool ExportBRep(const TCollection_AsciiString& theFileName)
- {
- myAISContext()->InitSelected();
- if (!myAISContext()->MoreSelected())
- {
- return false;
- }
-
- Handle(AIS_InteractiveObject) anIO = myAISContext()->SelectedInteractive();
- Handle(AIS_Shape) anIS = Handle(AIS_Shape)::DownCast(anIO);
- return BRepTools::Write (anIS->Shape(), theFileName.ToCString()) != Standard_False;
- }
-
- ///
- ///Export Step file
- ///
- /// Name of export file
- bool ExportStep(const TCollection_AsciiString& theFileName)
- {
- STEPControl_StepModelType aType = STEPControl_AsIs;
- IFSelect_ReturnStatus aStatus;
- STEPControl_Writer aWriter;
- for ( myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected() )
- {
- Handle(AIS_InteractiveObject) anIO = myAISContext()->SelectedInteractive();
- Handle(AIS_Shape) anIS=Handle(AIS_Shape)::DownCast(anIO);
- TopoDS_Shape aShape = anIS->Shape();
- aStatus = aWriter.Transfer( aShape , aType );
- if ( aStatus != IFSelect_RetDone )
- {
- return false;
- }
- }
-
- aStatus = aWriter.Write(theFileName.ToCString());
- if ( aStatus != IFSelect_RetDone )
- {
- return false;
- }
-
- return true;
- }
-
- ///
- ///Export Iges file
- ///
- /// Name of export file
- bool ExportIges(const TCollection_AsciiString& theFileName)
- {
- IGESControl_Controller::Init();
- IGESControl_Writer aWriter( Interface_Static::CVal( "XSTEP.iges.unit" ),
- Interface_Static::IVal( "XSTEP.iges.writebrep.mode" ) );
-
- for ( myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected() )
- {
- Handle(AIS_InteractiveObject) anIO = myAISContext()->SelectedInteractive();
- Handle(AIS_Shape) anIS=Handle(AIS_Shape)::DownCast(anIO);
- TopoDS_Shape aShape = anIS->Shape();
- aWriter.AddShape ( aShape );
- }
-
- aWriter.ComputeModel();
- return aWriter.Write(theFileName.ToCString()) != Standard_False;
- }
-
- ///
- ///Export Vrml file
- ///
- /// Name of export file
- bool ExportVrml(const TCollection_AsciiString& theFileName)
- {
- TopoDS_Compound aRes;
- BRep_Builder aBuilder;
- aBuilder.MakeCompound( aRes );
-
- for ( myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected() )
- {
- Handle(AIS_InteractiveObject) anIO = myAISContext()->SelectedInteractive();
- Handle(AIS_Shape) anIS=Handle(AIS_Shape)::DownCast(anIO);
- TopoDS_Shape aShape = anIS->Shape();
- if ( aShape.IsNull() )
- {
- return false;
- }
-
- aBuilder.Add( aRes, aShape );
- }
-
- VrmlAPI_Writer aWriter;
- aWriter.Write(aRes, theFileName.ToCString());
-
- return true;
- }
-
- ///
- ///Export Stl file
- ///
- /// Name of export file
- bool ExportStl(const TCollection_AsciiString& theFileName)
- {
- TopoDS_Compound aComp;
- BRep_Builder aBuilder;
- aBuilder.MakeCompound( aComp );
-
- for ( myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected() )
- {
- Handle(AIS_InteractiveObject) anIO = myAISContext()->SelectedInteractive();
- Handle(AIS_Shape) anIS=Handle(AIS_Shape)::DownCast(anIO);
- TopoDS_Shape aShape = anIS->Shape();
- if ( aShape.IsNull() )
- {
- return false;
- }
- aBuilder.Add( aComp, aShape );
- }
-
- StlAPI_Writer aWriter;
- aWriter.Write(aComp, theFileName.ToCString());
- return true;
- }
-
- ///
- ///Define which Import/Export function must be called
- ///
- /// Name of Import/Export file
- /// Determines format of Import/Export file
- /// Determines is Import or not
- bool TranslateModel(System::String^ theFileName, int theFormat, bool theIsImport)
- {
- bool isResult;
-
- const TCollection_AsciiString aFilename = toAsciiString (theFileName);
- if (theIsImport)
- {
- switch(theFormat)
- {
- case 0:
- isResult = ImportBrep(aFilename);
- break;
- case 1:
- isResult = ImportStep(aFilename);
- break;
- case 2:
- isResult = ImportIges(aFilename);
- break;
- default:
- isResult = false;
- }
- }
- else
- {
- switch(theFormat)
- {
- case 0:
- isResult = ExportBRep(aFilename);
- break;
- case 1:
- isResult = ExportStep(aFilename);
- break;
- case 2:
- isResult = ExportIges(aFilename);
- break;
- case 3:
- isResult = ExportVrml(aFilename);
- break;
- case 4:
- isResult = ExportStl(aFilename);
- break;
- case 5:
- isResult = Dump(aFilename);
- break;
- default:
- isResult = false;
- }
- }
- return isResult;
- }
-
- ///
- ///Initialize OCCTProxy
- ///
- void InitOCCTProxy(void)
- {
- myGraphicDriver()=NULL;
- myViewer()=NULL;
- myView()=NULL;
- myAISContext()=NULL;
- }
-
-private:
- // fields
- NCollection_Haft myViewer;
- NCollection_Haft myView;
- NCollection_Haft myAISContext;
- NCollection_Haft myGraphicDriver;
-};
diff --git a/samples/CSharp/OCCTProxy/OCCTProxy.vcproj b/samples/CSharp/OCCTProxy/OCCTProxy.vcproj
deleted file mode 100644
index 5eb62a5e01..0000000000
--- a/samples/CSharp/OCCTProxy/OCCTProxy.vcproj
+++ /dev/null
@@ -1,367 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/CSharp/OCCTProxy/OCCTProxy.vcxproj b/samples/CSharp/OCCTProxy/OCCTProxy.vcxproj
deleted file mode 100644
index 7e3c0265d9..0000000000
--- a/samples/CSharp/OCCTProxy/OCCTProxy.vcxproj
+++ /dev/null
@@ -1,199 +0,0 @@
-
-
-
-
- Debug
- Win32
-
-
- Debug
- x64
-
-
- Release
- Win32
-
-
- Release
- x64
-
-
-
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}
- OCCTProxy
- Win32Proj
-
-
-
- DynamicLibrary
- MultiByte
- true
-
-
- DynamicLibrary
- MultiByte
- true
-
-
- DynamicLibrary
- MultiByte
- true
-
-
- DynamicLibrary
- MultiByte
- true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <_ProjectFileVersion>10.0.40219.1
- ..\win32\$(VCVER)\bind\
- obj\$(Platform)\$(Configuration)\
- true
- ..\win64\$(VCVER)\bind\
- obj\$(Platform)\$(Configuration)\
- true
- ..\win32\$(VCVER)\bin\
- obj\$(Platform)\$(Configuration)\
- false
- ..\win64\$(VCVER)\bin\
- obj\$(Platform)\$(Configuration)\
- false
-
-
- stdcpp17
-
-
-
- Disabled
- ..\OCC\;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)
- %(PreprocessorDefinitions)
- false
- Default
- MultiThreadedDebugDLL
-
-
- Level3
- ProgramDatabase
-
-
- $(OutDir)OCCTProxy.dll
- $(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)
- true
- true
- $(OutDir)OCCTProxy.pdb
- Windows
- false
-
-
- $(OutDir)OCCTProxy.lib
- MachineX86
-
-
-
-
- X64
-
-
- Disabled
- ..\OCC\;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)
- %(PreprocessorDefinitions)
- false
- Default
- MultiThreadedDebugDLL
-
-
- Level3
- ProgramDatabase
-
-
- $(OutDir)OCCTProxy.dll
- $(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)
- true
- true
- $(OutDir)OCCTProxy.pdb
- Windows
- false
-
-
- $(OutDir)OCCTProxy.lib
- MachineX64
-
-
-
-
- ..\OCC\;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)
- %(PreprocessorDefinitions)
- MultiThreadedDLL
-
-
- Level3
- ProgramDatabase
-
-
- $(OutDir)OCCTProxy.dll
- $(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)
- true
- Windows
- true
- true
- false
-
-
- $(OutDir)OCCTProxy.lib
- MachineX86
-
-
-
-
- X64
-
-
- ..\OCC\;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)
- %(PreprocessorDefinitions)
- MultiThreadedDLL
-
-
- Level3
- ProgramDatabase
-
-
- $(OutDir)OCCTProxy.dll
- $(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)
- true
- Windows
- true
- true
- false
-
-
- $(OutDir)OCCTProxy.lib
- MachineX64
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/OCCTProxy_D3D/OCCTProxyD3D.cpp b/samples/CSharp/OCCTProxy_D3D/OCCTProxyD3D.cpp
deleted file mode 100644
index 446d1fabf2..0000000000
--- a/samples/CSharp/OCCTProxy_D3D/OCCTProxyD3D.cpp
+++ /dev/null
@@ -1,989 +0,0 @@
-// Prevent Windows from defining min/max macros
-#ifndef NOMINMAX
- #define NOMINMAX
-#endif
-
-#include
-#include
-
-// include required OCCT headers
-#include
-#include
-#include
-//for OCC graphic
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-//for object display
-#include
-#include
-#include
-#include
-//topology
-#include
-#include
-//brep tools
-#include
-#include
-// iges I/E
-#include
-#include
-#include
-#include
-#include
-//step I/E
-#include
-#include
-//for stl export
-#include
-//for vrml export
-#include
-//wrapper of pure C++ classes to ref classes
-#include
-
-#include
-
-// list of required OCCT libraries
-#pragma comment(lib, "TKernel.lib")
-#pragma comment(lib, "TKMath.lib")
-#pragma comment(lib, "TKBRep.lib")
-#pragma comment(lib, "TKXSBase.lib")
-#pragma comment(lib, "TKService.lib")
-#pragma comment(lib, "TKV3d.lib")
-#pragma comment(lib, "TKOpenGl.lib")
-#pragma comment(lib, "TKD3dHost.lib")
-#pragma comment(lib, "TKDEIGES.lib")
-#pragma comment(lib, "TKDESTEP.lib")
-#pragma comment(lib, "TKDESTL.lib")
-#pragma comment(lib, "TKDEVRML.lib")
-#pragma comment(lib, "TKLCAF.lib")
-
-#pragma comment(lib, "D3D9.lib")
-
-//! Auxiliary tool for converting C# string into UTF-8 string.
-static TCollection_AsciiString toAsciiString (String^ theString)
-{
- if (theString == nullptr)
- {
- return TCollection_AsciiString();
- }
-
- pin_ptr aPinChars = PtrToStringChars (theString);
- const wchar_t* aWCharPtr = aPinChars;
- if (aWCharPtr == NULL
- || *aWCharPtr == L'\0')
- {
- return TCollection_AsciiString();
- }
- return TCollection_AsciiString (aWCharPtr);
-}
-
-///
-/// Proxy class encapsulating calls to OCCT C++ classes within
-/// C++/CLI class visible from .Net (CSharp)
-///
-public ref class OCCTProxyD3D
-{
-public:
-
- OCCTProxyD3D() {}
-
- // ============================================
- // Viewer functionality
- // ============================================
-
- ///
- ///Initialize a viewer
- ///
- /// System.IntPtr that contains the window handle (HWND) of the control
- bool InitViewer()
- {
- myGraphicDriver() = new D3DHost_GraphicDriver();
- myGraphicDriver()->ChangeOptions().buffersNoSwap = true;
- //myGraphicDriver()->ChangeOptions().contextDebug = true;
-
- myViewer() = new V3d_Viewer (myGraphicDriver());
- myViewer()->SetDefaultLights();
- myViewer()->SetLightOn();
- myView() = myViewer()->CreateView();
-
- static Handle(WNT_WClass) aWClass = new WNT_WClass ("OCC_Viewer", NULL, CS_OWNDC);
- Handle(WNT_Window) aWNTWindow = new WNT_Window ("OCC_Viewer", aWClass, WS_POPUP, 64, 64, 64, 64);
- aWNTWindow->SetVirtual (Standard_True);
- myView()->SetWindow(aWNTWindow);
- myAISContext() = new AIS_InteractiveContext (myViewer());
- myAISContext()->UpdateCurrentViewer();
- myView()->MustBeResized();
- return true;
- }
-
- /// Resizes custom FBO for Direct3D output.
- System::IntPtr ResizeBridgeFBO (int theWinSizeX,
- int theWinSizeY)
- {
- Handle(WNT_Window) aWNTWindow = Handle(WNT_Window)::DownCast (myView()->Window());
- aWNTWindow->SetPos (0, 0, theWinSizeX, theWinSizeY);
- myView()->MustBeResized();
- myView()->Invalidate();
- return System::IntPtr(Handle(D3DHost_View)::DownCast (myView()->View())->D3dColorSurface());
- }
-
- ///
- /// Make dump of current view to file
- ///
- /// Name of dump file
- bool Dump (const TCollection_AsciiString& theFileName)
- {
- if (myView().IsNull())
- {
- return false;
- }
- myView()->Redraw();
- return myView()->Dump (theFileName.ToCString()) != Standard_False;
- }
-
- ///
- ///Redraw view
- ///
- void RedrawView()
- {
- if (!myView().IsNull())
- {
- myView()->Redraw();
- }
- }
-
- ///
- ///Update view
- ///
- void UpdateView(void)
- {
- if (!myView().IsNull())
- {
- myView()->MustBeResized();
- }
- }
-
- ///
- ///Set computed mode in false
- ///
- void SetDegenerateModeOn()
- {
- if (!myView().IsNull())
- {
- myView()->SetComputedMode (Standard_False);
- myView()->Redraw();
- }
- }
-
- ///
- ///Set computed mode in true
- ///
- void SetDegenerateModeOff()
- {
- if (!myView().IsNull())
- {
- myView()->SetComputedMode (Standard_True);
- myView()->Redraw();
- }
- }
-
- ///
- ///Fit all
- ///
- void WindowFitAll (int theXmin, int theYmin,
- int theXmax, int theYmax)
- {
- if (!myView().IsNull())
- {
- myView()->WindowFitAll (theXmin, theYmin, theXmax, theYmax);
- }
- }
-
- ///
- ///Current place of window
- ///
- /// Current zoom
- void Place (int theX, int theY, float theZoomFactor)
- {
- Standard_Real aZoomFactor = theZoomFactor;
- if (!myView().IsNull())
- {
- myView()->Place (theX, theY, aZoomFactor);
- }
- }
-
- ///
- ///Set Zoom
- ///
- void Zoom (int theX1, int theY1, int theX2, int theY2)
- {
- if (!myView().IsNull())
- {
- myView()->Zoom (theX1, theY1, theX2, theY2);
- }
- }
-
- ///
- ///Set Pan
- ///
- void Pan (int theX, int theY)
- {
- if (!myView().IsNull())
- {
- myView()->Pan (theX, theY);
- }
- }
-
- ///
- ///Rotation
- ///
- void Rotation (int theX, int theY)
- {
- if (!myView().IsNull())
- {
- myView()->Rotation (theX, theY);
- }
- }
-
- ///
- ///Start rotation
- ///
- void StartRotation (int theX, int theY)
- {
- if (!myView().IsNull())
- {
- myView()->StartRotation (theX, theY);
- }
- }
-
- ///
- ///Select by rectangle
- ///
- void Select (int theX1, int theY1, int theX2, int theY2)
- {
- if (!myAISContext().IsNull())
- {
- myAISContext()->SelectRectangle (Graphic3d_Vec2i (theX1, theY1),
- Graphic3d_Vec2i (theX2, theY2),
- myView());
- myAISContext()->UpdateCurrentViewer();
- }
- }
-
- ///
- ///Select by click
- ///
- void Select()
- {
- if (!myAISContext().IsNull())
- {
- myAISContext()->SelectDetected();
- myAISContext()->UpdateCurrentViewer();
- }
- }
-
- ///
- ///Move view
- ///
- void MoveTo (int theX, int theY)
- {
- if (!myAISContext().IsNull() && !myView().IsNull())
- {
- myAISContext()->MoveTo (theX, theY, myView(), Standard_True);
- }
- }
-
- ///
- ///Select by rectangle with pressed "Shift" key
- ///
- void ShiftSelect (int theX1, int theY1, int theX2, int theY2)
- {
- if (!myAISContext().IsNull() && !myView().IsNull())
- {
- myAISContext()->SelectRectangle (Graphic3d_Vec2i (theX1, theY1),
- Graphic3d_Vec2i (theX2, theY2),
- myView(),
- AIS_SelectionScheme_XOR);
- myAISContext()->UpdateCurrentViewer();
- }
- }
-
- ///
- ///Select by "Shift" key
- ///
- void ShiftSelect()
- {
- if (!myAISContext().IsNull())
- {
- myAISContext()->SelectDetected (AIS_SelectionScheme_XOR);
- myAISContext()->UpdateCurrentViewer();
- }
- }
-
- ///
- ///Set background color
- ///
- void BackgroundColor (int& theRed, int& theGreen, int& theBlue)
- {
- if (!myView().IsNull())
- {
- Quantity_Color aColor = myView()->BackgroundColor();
- theRed = (int )aColor.Red() * 255;
- theGreen = (int )aColor.Green() * 255;
- theBlue = (int )aColor.Blue() * 255;
- }
- }
-
- ///
- ///Get background color Red
- ///
- int GetBGColR()
- {
- int anRgb[3];
- BackgroundColor (anRgb[0], anRgb[1], anRgb[2]);
- return anRgb[0];
- }
-
- ///
- ///Get background color Green
- ///
- int GetBGColG()
- {
- int anRgb[3];
- BackgroundColor (anRgb[0], anRgb[1], anRgb[2]);
- return anRgb[1];
- }
-
- ///
- ///Get background color Blue
- ///
- int GetBGColB()
- {
- int anRgb[3];
- BackgroundColor (anRgb[0], anRgb[1], anRgb[2]);
- return anRgb[2];
- }
-
- ///
- ///Update current viewer
- ///
- void UpdateCurrentViewer()
- {
- if (!myAISContext().IsNull())
- {
- myAISContext()->UpdateCurrentViewer();
- }
- }
-
- ///
- ///Front side
- ///
- void FrontView()
- {
- if (!myView().IsNull())
- {
- myView()->SetProj (V3d_Yneg);
- }
- }
-
- ///
- ///Top side
- ///
- void TopView()
- {
- if (!myView().IsNull())
- {
- myView()->SetProj (V3d_Zpos);
- }
- }
-
- ///
- ///Left side
- ///
- void LeftView()
- {
- if (!myView().IsNull())
- {
- myView()->SetProj (V3d_Xneg);
- }
- }
-
- ///
- ///Back side
- ///
- void BackView()
- {
- if (!myView().IsNull())
- {
- myView()->SetProj (V3d_Ypos);
- }
- }
-
- ///
- ///Right side
- ///
- void RightView()
- {
- if (!myView().IsNull())
- {
- myView()->SetProj (V3d_Xpos);
- }
- }
-
- ///
- ///Bottom side
- ///
- void BottomView()
- {
- if (!myView().IsNull())
- {
- myView()->SetProj (V3d_Zneg);
- }
- }
-
- ///
- ///Axo side
- ///
- void AxoView()
- {
- if (!myView().IsNull())
- {
- myView()->SetProj (V3d_XposYnegZpos);
- }
- }
-
- ///
- ///Scale
- ///
- float Scale()
- {
- return myView().IsNull()
- ? -1.0f
- : float(myView()->Scale());
- }
-
- ///
- ///Zoom in all view
- ///
- void ZoomAllView()
- {
- if (!myView().IsNull())
- {
- myView()->FitAll();
- myView()->ZFitAll();
- }
- }
-
- ///
- ///Reset view
- ///
- void Reset()
- {
- if (!myView().IsNull())
- {
- myView()->Reset();
- }
- }
-
- ///
- ///Set display mode of objects
- ///
- /// Set current mode
- void SetDisplayMode (int theMode)
- {
- if (myAISContext().IsNull())
- {
- return;
- }
-
- AIS_DisplayMode aCurrentMode = theMode == 0
- ? AIS_WireFrame
- : AIS_Shaded;
- if (myAISContext()->NbSelected() == 0)
- {
- myAISContext()->SetDisplayMode (aCurrentMode, Standard_False);
- }
- else
- {
- for (myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected())
- {
- myAISContext()->SetDisplayMode (myAISContext()->SelectedInteractive(), theMode, Standard_False);
- }
- }
- myAISContext()->UpdateCurrentViewer();
- }
-
- ///
- ///Set color
- ///
- void SetColor (int theR, int theG, int theB)
- {
- if (myAISContext().IsNull())
- {
- return;
- }
-
- Quantity_Color aCol (theR / 255.0, theG / 255.0, theB / 255.0, Quantity_TOC_RGB);
- for (; myAISContext()->MoreSelected(); myAISContext()->NextSelected())
- {
- myAISContext()->SetColor (myAISContext()->SelectedInteractive(), aCol, false);
- }
- myAISContext()->UpdateCurrentViewer();
- }
-
- ///
- ///Get object color red
- ///
- int GetObjColR()
- {
- int anRgb[3];
- ObjectColor (anRgb[0], anRgb[1], anRgb[2]);
- return anRgb[0];
- }
-
- ///
- ///Get object color green
- ///
- int GetObjColG()
- {
- int anRgb[3];
- ObjectColor (anRgb[0], anRgb[1], anRgb[2]);
- return anRgb[1];
- }
-
- ///
- ///Get object color blue
- ///
- int GetObjColB()
- {
- int anRgb[3];
- ObjectColor (anRgb[0], anRgb[1], anRgb[2]);
- return anRgb[2];
- }
-
- ///
- ///Get object color R/G/B
- ///
- void ObjectColor (int& theRed, int& theGreen, int& theBlue)
- {
- if (myAISContext().IsNull())
- {
- return;
- }
-
- theRed = 255;
- theGreen = 255;
- theBlue = 255;
- myAISContext()->InitSelected();
- if (!myAISContext()->MoreSelected())
- {
- return;
- }
-
- Handle(AIS_InteractiveObject) aCurrent = myAISContext()->SelectedInteractive();
- if (aCurrent->HasColor())
- {
- Quantity_Color anObjCol;
- myAISContext()->Color (aCurrent, anObjCol);
- theRed = int(anObjCol.Red() * 255.0);
- theGreen = int(anObjCol.Green() * 255.0);
- theBlue = int(anObjCol.Blue() * 255.0);
- }
- }
-
- ///
- ///Set background color R/G/B
- ///
- void SetBackgroundColor (int theRed, int theGreen, int theBlue)
- {
- if (!myView().IsNull())
- {
- myView()->SetBackgroundColor (Quantity_TOC_RGB, theRed / 255.0, theGreen / 255.0, theBlue / 255.0);
- }
- }
-
- ///
- ///Erase objects
- ///
- void EraseObjects()
- {
- if (myAISContext().IsNull())
- {
- return;
- }
-
- myAISContext()->EraseSelected (Standard_False);
- myAISContext()->ClearSelected (Standard_True);
- }
-
- ///
- ///Get version
- ///
- float GetOCCVersion()
- {
- return (float )OCC_VERSION;
- }
-
- ///
- ///set material
- ///
- void SetMaterial (int theMaterial)
- {
- if (myAISContext().IsNull())
- {
- return;
- }
- for (myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected())
- {
- myAISContext()->SetMaterial (myAISContext()->SelectedInteractive(), (Graphic3d_NameOfMaterial )theMaterial, Standard_False);
- }
- myAISContext()->UpdateCurrentViewer();
- }
-
- ///
- ///set transparency
- ///
- void SetTransparency (int theTrans)
- {
- if (myAISContext().IsNull())
- {
- return;
- }
- for (myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected())
- {
- myAISContext()->SetTransparency (myAISContext()->SelectedInteractive(), ((Standard_Real )theTrans) / 10.0, Standard_False);
- }
- myAISContext()->UpdateCurrentViewer();
- }
-
- ///
- ///Return true if object is selected
- ///
- bool IsObjectSelected()
- {
- if (myAISContext().IsNull())
- {
- return false;
- }
- myAISContext()->InitSelected();
- return myAISContext()->MoreSelected() != Standard_False;
- }
-
- ///
- ///Return display mode
- ///
- int DisplayMode()
- {
- if (myAISContext().IsNull())
- {
- return -1;
- }
-
- bool isOneOrMoreInShading = false;
- bool isOneOrMoreInWireframe = false;
- for (myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected())
- {
- if (myAISContext()->IsDisplayed (myAISContext()->SelectedInteractive(), AIS_Shaded))
- {
- isOneOrMoreInShading = true;
- }
- if (myAISContext()->IsDisplayed (myAISContext()->SelectedInteractive(), AIS_WireFrame))
- {
- isOneOrMoreInWireframe = true;
- }
- }
- if (isOneOrMoreInShading
- && isOneOrMoreInWireframe)
- {
- return 10;
- }
- else if (isOneOrMoreInShading)
- {
- return 1;
- }
- else if (isOneOrMoreInWireframe)
- {
- return 0;
- }
- return -1;
- }
-
- ///
- ///Set AISContext
- ///
- bool SetAISContext (OCCTProxyD3D^ theViewer)
- {
- this->myAISContext() = theViewer->GetContext();
- if (myAISContext().IsNull())
- {
- return false;
- }
- return true;
- }
-
- ///
- ///Get AISContext
- ///
- Handle(AIS_InteractiveContext) GetContext()
- {
- return myAISContext();
- }
-
-public:
- // ============================================
- // Import / export functionality
- // ============================================
-
- ///
- ///Import BRep file
- ///
- /// Name of import file
- bool ImportBrep (System::String^ theFileName)
- {
- return ImportBrep (toAsciiString (theFileName));
- }
-
- ///
- ///Import BRep file
- ///
- /// Name of import file
- bool ImportBrep (const TCollection_AsciiString& theFileName)
- {
- TopoDS_Shape aShape;
- BRep_Builder aBuilder;
- if (!BRepTools::Read (aShape, theFileName.ToCString(), aBuilder))
- {
- return false;
- }
-
- Handle(AIS_Shape) aPrs = new AIS_Shape (aShape);
- myAISContext()->SetMaterial (aPrs, Graphic3d_NameOfMaterial_Gold, Standard_False);
- myAISContext()->SetDisplayMode(aPrs, AIS_Shaded, Standard_False);
- myAISContext()->Display (aPrs, Standard_True);
- return true;
- }
-
- ///
- ///Import Step file
- ///
- /// Name of import file
- bool ImportStep (const TCollection_AsciiString& theFileName)
- {
- STEPControl_Reader aReader;
- if (aReader.ReadFile (theFileName.ToCString()) != IFSelect_RetDone)
- {
- return false;
- }
-
- bool isFailsonly = false;
- aReader.PrintCheckLoad( isFailsonly, IFSelect_ItemsByEntity );
-
- int aNbRoot = aReader.NbRootsForTransfer();
- aReader.PrintCheckTransfer (isFailsonly, IFSelect_ItemsByEntity);
- for (Standard_Integer aRootIter = 1; aRootIter <= aNbRoot; ++aRootIter)
- {
- aReader.TransferRoot (aRootIter);
- int aNbShap = aReader.NbShapes();
- if (aNbShap > 0)
- {
- for (int aShapeIter = 1; aShapeIter <= aNbShap; ++aShapeIter)
- {
- myAISContext()->Display (new AIS_Shape (aReader.Shape (aShapeIter)), Standard_False);
- }
- myAISContext()->UpdateCurrentViewer();
- }
- }
- return true;
- }
-
- ///
- ///Import Iges file
- ///
- /// Name of import file
- bool ImportIges (const TCollection_AsciiString& theFileName)
- {
- IGESControl_Reader aReader;
- if (aReader.ReadFile (theFileName.ToCString()) != IFSelect_RetDone)
- {
- return false;
- }
-
- aReader.TransferRoots();
- TopoDS_Shape aShape = aReader.OneShape();
- myAISContext()->Display (new AIS_Shape (aShape), Standard_False);
- myAISContext()->UpdateCurrentViewer();
- return true;
- }
-
- ///
- ///Export BRep file
- ///
- /// Name of export file
- bool ExportBRep (const TCollection_AsciiString& theFileName)
- {
- myAISContext()->InitSelected();
- if (!myAISContext()->MoreSelected())
- {
- return false;
- }
-
- Handle(AIS_Shape) anIS = Handle(AIS_Shape)::DownCast (myAISContext()->SelectedInteractive());
- return !anIS.IsNull()
- && BRepTools::Write (anIS->Shape(), theFileName.ToCString());
- }
-
- ///
- ///Export Step file
- ///
- /// Name of export file
- bool ExportStep (const TCollection_AsciiString& theFileName)
- {
- STEPControl_StepModelType aType = STEPControl_AsIs;
- STEPControl_Writer aWriter;
- for (myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected())
- {
- Handle(AIS_Shape) anIS = Handle(AIS_Shape)::DownCast (myAISContext()->SelectedInteractive());
- if (anIS.IsNull())
- {
- return false;
- }
-
- TopoDS_Shape aShape = anIS->Shape();
- if (aWriter.Transfer (aShape, aType) != IFSelect_RetDone)
- {
- return false;
- }
- }
- return aWriter.Write (theFileName.ToCString()) == IFSelect_RetDone;
- }
-
- ///
- ///Export Iges file
- ///
- /// Name of export file
- bool ExportIges (const TCollection_AsciiString& theFileName)
- {
- IGESControl_Controller::Init();
- IGESControl_Writer aWriter (Interface_Static::CVal ("XSTEP.iges.unit"),
- Interface_Static::IVal ("XSTEP.iges.writebrep.mode"));
- for (myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected())
- {
- Handle(AIS_Shape) anIS = Handle(AIS_Shape)::DownCast (myAISContext()->SelectedInteractive());
- if (anIS.IsNull())
- {
- return false;
- }
-
- aWriter.AddShape (anIS->Shape());
- }
-
- aWriter.ComputeModel();
- return aWriter.Write (theFileName.ToCString()) != Standard_False;
- }
-
- ///
- ///Export Vrml file
- ///
- /// Name of export file
- bool ExportVrml (const TCollection_AsciiString& theFileName)
- {
- TopoDS_Compound aRes;
- BRep_Builder aBuilder;
- aBuilder.MakeCompound (aRes);
- for (myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected())
- {
- Handle(AIS_Shape) anIS = Handle(AIS_Shape)::DownCast (myAISContext()->SelectedInteractive());
- if (anIS.IsNull())
- {
- return false;
- }
- aBuilder.Add (aRes, anIS->Shape());
- }
-
- VrmlAPI_Writer aWriter;
- aWriter.Write (aRes, theFileName.ToCString());
- return true;
- }
-
- ///
- ///Export Stl file
- ///
- /// Name of export file
- bool ExportStl (const TCollection_AsciiString& theFileName)
- {
- TopoDS_Compound aComp;
- BRep_Builder aBuilder;
- aBuilder.MakeCompound (aComp);
- for (myAISContext()->InitSelected(); myAISContext()->MoreSelected(); myAISContext()->NextSelected())
- {
- Handle(AIS_Shape) anIS = Handle(AIS_Shape)::DownCast (myAISContext()->SelectedInteractive());
- if (anIS.IsNull())
- {
- return false;
- }
- aBuilder.Add (aComp, anIS->Shape());
- }
-
- StlAPI_Writer aWriter;
- aWriter.Write (aComp, theFileName.ToCString());
- return true;
- }
-
- ///
- ///Define which Import/Export function must be called
- ///
- /// Name of Import/Export file
- /// Determines format of Import/Export file
- /// Determines is Import or not
- bool TranslateModel (System::String^ theFileName, int theFormat, bool theIsImport)
- {
- bool isResult = false;
- const TCollection_AsciiString aFilename = toAsciiString (theFileName);
- if (theIsImport)
- {
- switch (theFormat)
- {
- case 0: isResult = ImportBrep (aFilename); break;
- case 1: isResult = ImportStep (aFilename); break;
- case 2: isResult = ImportIges (aFilename); break;
- }
- }
- else
- {
- switch (theFormat)
- {
- case 0: isResult = ExportBRep (aFilename); break;
- case 1: isResult = ExportStep (aFilename); break;
- case 2: isResult = ExportIges (aFilename); break;
- case 3: isResult = ExportVrml (aFilename); break;
- case 4: isResult = ExportStl (aFilename); break;
- case 5: isResult = Dump (aFilename); break;
- }
- }
- return isResult;
- }
-
- ///
- ///Initialize OCCTProxyD3D
- ///
- void InitOCCTProxy()
- {
- myGraphicDriver().Nullify();
- myViewer().Nullify();
- myView().Nullify();
- myAISContext().Nullify();
- }
-
-private:
-
- NCollection_Haft myViewer;
- NCollection_Haft myView;
- NCollection_Haft myAISContext;
- NCollection_Haft myGraphicDriver;
-
-};
diff --git a/samples/CSharp/OCCTProxy_D3D/OCCTProxy_D3D.vcproj b/samples/CSharp/OCCTProxy_D3D/OCCTProxy_D3D.vcproj
deleted file mode 100644
index 7ab2689cd6..0000000000
--- a/samples/CSharp/OCCTProxy_D3D/OCCTProxy_D3D.vcproj
+++ /dev/null
@@ -1,369 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/CSharp/OCCTProxy_D3D/OCCTProxy_D3D.vcxproj b/samples/CSharp/OCCTProxy_D3D/OCCTProxy_D3D.vcxproj
deleted file mode 100644
index ac8c560f62..0000000000
--- a/samples/CSharp/OCCTProxy_D3D/OCCTProxy_D3D.vcxproj
+++ /dev/null
@@ -1,201 +0,0 @@
-
-
-
-
- Debug
- Win32
-
-
- Debug
- x64
-
-
- Release
- Win32
-
-
- Release
- x64
-
-
-
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}
- OCCTProxy_D3D
- Win32Proj
- OCCTProxy_D3D
-
-
-
- DynamicLibrary
- MultiByte
- true
-
-
- DynamicLibrary
- MultiByte
- true
-
-
- DynamicLibrary
- MultiByte
- true
-
-
- DynamicLibrary
- MultiByte
- true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <_ProjectFileVersion>10.0.40219.1
- ..\win32\$(VCVER)\bind\
- obj\$(Platform)\$(Configuration)\
- false
- ..\win64\$(VCVER)\bind\
- obj\$(Platform)\$(Configuration)\
- false
- ..\win32\$(VCVER)\bin\
- obj\$(Platform)\$(Configuration)\
- false
- ..\win64\$(VCVER)\bin\
- obj\$(Platform)\$(Configuration)\
- false
-
-
- stdcpp17
-
-
-
- Disabled
- ..\OCC\;$(CSF_OCCTIncludePath);$(DXSDK_DIR)Include;%(AdditionalIncludeDirectories)
- _DEBUG;%(PreprocessorDefinitions)
- false
- Default
- MultiThreadedDebugDLL
-
-
- Level3
- ProgramDatabase
-
-
- $(OutDir)OCCTProxy_D3D.dll
- $(CSF_OCCTLibPath);$(DXSDK_DIR)Lib\x86;%(AdditionalLibraryDirectories)
- true
- true
- $(OutDir)OCCTProxy_D3D.pdb
- Windows
- false
-
-
- $(OutDir)OCCTProxy_D3D.lib
- MachineX86
- d3d9.lib;d3dx9d.lib;%(AdditionalDependencies)
-
-
-
-
- X64
-
-
- Disabled
- ..\OCC\;$(CSF_OCCTIncludePath);$(DXSDK_DIR)Include;%(AdditionalIncludeDirectories)
- _DEBUG;%(PreprocessorDefinitions)
- false
- Default
- MultiThreadedDebugDLL
-
-
- Level3
- ProgramDatabase
-
-
- $(OutDir)OCCTProxy_D3D.dll
- $(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)
- true
- true
- $(OutDir)OCCTProxy_D3D.pdb
- Windows
- false
-
-
- $(OutDir)OCCTProxy_D3D.lib
- MachineX64
-
-
-
-
- ..\OCC\;$(CSF_OCCTIncludePath);$(DXSDK_DIR)Include;%(AdditionalIncludeDirectories)
- %(PreprocessorDefinitions)
- MultiThreadedDLL
-
-
- Level3
- ProgramDatabase
-
-
- $(OutDir)OCCTProxy_D3D.dll
- $(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)
- true
- Windows
- true
- true
- false
-
-
- $(OutDir)OCCTProxy_D3D.lib
- MachineX86
-
-
-
-
- X64
-
-
- ..\OCC\;$(CSF_OCCTIncludePath);$(DXSDK_DIR)Include;%(AdditionalIncludeDirectories)
- %(PreprocessorDefinitions)
- MultiThreadedDLL
-
-
- Level3
- ProgramDatabase
-
-
- $(OutDir)OCCTProxy_D3D.dll
- $(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)
- true
- Windows
- true
- true
- false
-
-
- $(OutDir)OCCTProxy_D3D.lib
- MachineX64
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/ReadMe.md b/samples/CSharp/ReadMe.md
deleted file mode 100644
index a64ca6bc35..0000000000
--- a/samples/CSharp/ReadMe.md
+++ /dev/null
@@ -1,54 +0,0 @@
-.NET: Import/Export (C#|C++/CLI|WinForms|WPF) {#samples_csharp_occt}
-==================
-
-This sample demonstrates how to use OCCT libraries in .Net application
-written using **CSharp** and **Windows Forms** or **Windows Presentation Foundation** (WPF).
-The sample could be found within OCCT repository in folder `/samples/CSharp/`.
-
-The connection between .Net and OCCT (C++) level is provided by proxy library
-**OCCProxy**, written in C++/CLI. The proxy library contains a single *ref* class
-encapsulating OCCT viewer and providing the functionality to manipulate this viewer
-and to import / export OCCT shapes from / to several supported CAD file formats (IGES, STEP, BREP).
-
-The sample implements two approaches to the development of a user interface with C#.
-Both applications provide the same functionality as the standard OCCT Import/Export sample.
-The first project is called *IE_WinForms* and uses Windows Forms for GUI.
-The second application is called *IE_WPF_WinForms* and uses Windows Presentation Foundation.
-
-@figure{samples_c__ie.png}
-
-Note a few important details:
-
-- OCCT template class *NCollection_Haft* is used to encapsulate C++ class into a field of *ref* class;
-
-- It is necessary to explicitly set the target platform for C# assemblies to *x86*
- in project **Properties - Build** to work consistently on 64-bit systems with OCCT libraries built in 32-bit mode;
-
-- this sample demonstrates indirect method of wrapping C++ to C# using a manually
- created proxy library. There is an alternative method of wrapping individual
- OCCT classes to C# equivalents to make their full API available to a C# user
- and to let the code be programmed on C# level similarly to C++ one. See the description
- of **OCCT C# Wrapper** in **Advanced Samples and Tools** at
- http://www.opencascade.org/support/products/advsamples
-
-- in WPF sample, **WinForms** control is used to encapsulate OCC viewer since WPF
- does not provide the necessary interface to embed OpenGl view. Other possible
- solution could be to render OpenGl scene in an off-screen buffer and to map it
- to WPF control as an image. That approach would allow using all WPF features to
- control the OCCT viewer.
-
-Run *msvc.bat* to start MS Visual Studio for building the sample.
-Note that project files are provided only for VS 2010, you can open them in
-newer versions of Visual Studio the using automatic converter.
-
-After conversion check option **Target framework** in the properties of C# projects
-(tab **Application**) to make sure that it corresponds to the version set in
-the properties of C++ projects (e.g. .Net Framework 4.0 for VS 2010).
-
-Run *run_winforms.bat* or *run_wpf.bat* to launch the corresponding sample.
-
-Note that all batch scripts use the configuration defined in OCCT *custom.bat* file
-as default; you can provide arguments specifying VS version, bitness, and mode
-to override these settings, e.g.:
-
- > msvc.bat vc10 win64 Debug
diff --git a/samples/CSharp/ReadMe_D3D.md b/samples/CSharp/ReadMe_D3D.md
deleted file mode 100644
index 7c1649d348..0000000000
--- a/samples/CSharp/ReadMe_D3D.md
+++ /dev/null
@@ -1,55 +0,0 @@
-.NET: D3D/OpenGL Viewer (C#|C++/CLI|WPF) {#samples_csharp_direct3d}
-==================
-
-This sample demonstrates how to use OCCT and DirectX libraries in .Net application
-written using **CSharp** and **Windows Presentation Foundation** (WPF).
-The sample could be found within OCCT repository in folder `/samples/CSharp/`.
-
-The connection between .Net, OCCT (C++) and DirectX level is provided by proxy libraries,
-**OCCProxy** and **D3DProxy**, written in C++/CLI. The proxy library **OCCProxy** contains a single
-*ref* class encapsulating OCCT viewer and providing the functionality to manipulate this viewer
-and to import / export OCCT shapes from / to several supported CAD file formats (IGES, STEP,
-BREP). The proxy library **D3DProxy** contains helper methods for rendering via DirectX.
-
-The user interface in this sample is based on Windows Presentation Foundation (WPF).
-It has the same functionality as the standard OCCT Import/Export sample. The project is
-called *IE_WPF_D3D*.
-
-Note a few important details:
-
-- to build this sample you should to download and install DirectX SDK
- http://www.microsoft.com/en-us/download/details.aspx?id=6812
-
-- OCCT template class *NCollection_Haft* is used to encapsulate C++ class into a field of *ref* class;
-
-- It is necessary to explicitly set the target platform for C# assemblies to *x86*
- in project **Properties - Build** to work consistently on 64-bit systems with OCCT libraries built in 32-bit mode;
-
-- this sample demonstrates indirect method of wrapping C++ to C# using a manually
- created proxy library. There is an alternative method of wrapping individual
- OCCT classes to C# equivalents to make their full API available to a C# user
- and to let the code be programmed on C# level similarly to C++ one. See the description
- of **OCCT C# Wrapper** in **Advanced Samples and Tools** at
- http://www.opencascade.org/support/products/advsamples
-
-- in WPF sample, **WinForms** control is used to encapsulate OCC viewer since WPF
- does not provide the necessary interface to embed OpenGl view. Other possible
- solution could be to render OpenGl scene in an off-screen buffer and to map it
- to WPF control as an image. That approach would allow using all WPF features to
- control the OCCT viewer.
-
-Run *msvc.bat* to start MS Visual Studio for building the sample.
-Note that project files are provided only for VS 2010, you can open them in
-newer versions of Visual Studio using an automatic converter.
-
-After conversion check option **Target framework** in the properties of C# projects
-(tab **Application**) to make sure that it corresponds to the version set in
-the properties of C++ projects (e.g. .Net Framework 4.0 for VS 2010).
-
-Run *run_wpf-D3D.bat* to launch the corresponding sample.
-
-Note that all batch scripts use the configuration defined in OCCT *custom.bat* file
-as default; you can provide arguments specifying VS version, bitness, and mode
-to override these settings, e.g.:
-
- > msvc.bat vc10 win64 Debug
diff --git a/samples/CSharp/WPF_D3D/About.xaml b/samples/CSharp/WPF_D3D/About.xaml
deleted file mode 100644
index c9f4fb29fe..0000000000
--- a/samples/CSharp/WPF_D3D/About.xaml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WPF_D3D/About.xaml.cs b/samples/CSharp/WPF_D3D/About.xaml.cs
deleted file mode 100644
index f39e66d837..0000000000
--- a/samples/CSharp/WPF_D3D/About.xaml.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Shapes;
-
-namespace IE_WPF_D3D
-{
- ///
- /// Interaction logic for About.xaml
- ///
- public partial class AboutDialog : Window
- {
- public AboutDialog()
- {
- this.InitializeComponent();
-
- CommandBinding aBind_Ok = new CommandBinding( IECommands.AboutOk );
- aBind_Ok.Executed += OkCommand_Executed;
- aBind_Ok.CanExecute += OkCommand_CanExecute;
- CommandBindings.Add( aBind_Ok );
- }
-
- private void OkCommand_Executed( object sender, ExecutedRoutedEventArgs e )
- {
- this.Close();
- }
-
- private void OkCommand_CanExecute( object sender, CanExecuteRoutedEventArgs e )
- {
- e.CanExecute = true;
- }
- }
-}
\ No newline at end of file
diff --git a/samples/CSharp/WPF_D3D/App.xaml b/samples/CSharp/WPF_D3D/App.xaml
deleted file mode 100644
index f1eaf2b5c3..0000000000
--- a/samples/CSharp/WPF_D3D/App.xaml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/CSharp/WPF_D3D/App.xaml.cs b/samples/CSharp/WPF_D3D/App.xaml.cs
deleted file mode 100644
index 4df5b1f277..0000000000
--- a/samples/CSharp/WPF_D3D/App.xaml.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Linq;
-using System.Windows;
-
-namespace IE_WPF_D3D
-{
- ///
- /// Interaction logic for App.xaml
- ///
- public partial class App : Application
- {
- }
-}
diff --git a/samples/CSharp/WPF_D3D/D3DViewer.cs b/samples/CSharp/WPF_D3D/D3DViewer.cs
deleted file mode 100644
index a888079c21..0000000000
--- a/samples/CSharp/WPF_D3D/D3DViewer.cs
+++ /dev/null
@@ -1,136 +0,0 @@
-using System;
-using System.Windows;
-using System.Windows.Media;
-using System.Windows.Interop;
-using System.Runtime.InteropServices;
-
-namespace IE_WPF_D3D
-{
- ///
- /// Tool object for output OCCT rendering with Direct3D.
- ///
- class D3DViewer
- {
- /// Direct3D output image.
- private D3DImage myD3DImage = new D3DImage ();
-
- /// Direct3D color surface.
- private IntPtr myColorSurf;
-
- public OCCViewer Viewer;
-
- /// Creates new Direct3D-based OCCT viewer.
- public D3DViewer ()
- {
- myD3DImage.IsFrontBufferAvailableChanged
- += new DependencyPropertyChangedEventHandler (OnIsFrontBufferAvailableChanged);
-
- BeginRenderingScene ();
- }
-
- /// Creates new Direct3D-based OCCT viewer.
- private void OnIsFrontBufferAvailableChanged (object sender, DependencyPropertyChangedEventArgs e)
- {
- // If the front buffer is available, then WPF has just created a new
- // Direct3D device, thus we need to start rendering our custom scene
- if (myD3DImage.IsFrontBufferAvailable)
- {
- BeginRenderingScene ();
- }
- else
- {
- // If the front buffer is no longer available, then WPF has lost Direct3D
- // device, thus we need to stop rendering until the new device is created
- StopRenderingScene ();
- }
- }
-
- private bool myIsFailed = false;
-
- /// Initializes Direct3D-OCCT rendering.
- private void BeginRenderingScene ()
- {
- if (myIsFailed)
- {
- return;
- }
-
- if (myD3DImage.IsFrontBufferAvailable)
- {
- Viewer = new OCCViewer();
-
- if (!Viewer.InitViewer())
- {
- MessageBox.Show ("Failed to initialize OpenGL-Direct3D interoperability!",
- "Error", MessageBoxButton.OK, MessageBoxImage.Error);
-
- myIsFailed = true;
- return;
- }
-
- // Leverage the Rendering event of WPF composition
- // target to update the our custom Direct3D scene
- CompositionTarget.Rendering += OnRendering;
- }
- }
-
- /// Releases Direct3D-OCCT rendering.
- public void StopRenderingScene ()
- {
- // This method is called when WPF loses its Direct3D device,
- // so we should just release our custom Direct3D scene
- CompositionTarget.Rendering -= OnRendering;
- myColorSurf = IntPtr.Zero;
- }
-
- /// Performs Direct3D-OCCT rendering.
- private void OnRendering (object sender, EventArgs e)
- {
- UpdateScene ();
- }
-
- /// Performs Direct3D-OCCT rendering.
- private void UpdateScene ()
- {
- if (!myIsFailed
- && myD3DImage.IsFrontBufferAvailable
- && myColorSurf != IntPtr.Zero
- && (myD3DImage.PixelWidth != 0 && myD3DImage.PixelHeight != 0))
- {
- myD3DImage.Lock ();
- {
- // Update the scene (via a call into our custom library)
- Viewer.View.RedrawView ();
-
- // Invalidate the updated region of the D3DImage
- myD3DImage.AddDirtyRect(new Int32Rect(0, 0, myD3DImage.PixelWidth, myD3DImage.PixelHeight));
- }
- myD3DImage.Unlock ();
- }
- }
-
- /// Resizes Direct3D surfaces and OpenGL FBO.
- public void Resize (int theSizeX, int theSizeY)
- {
- if (!myIsFailed && myD3DImage.IsFrontBufferAvailable)
- {
- // Set the back buffer for Direct3D WPF image
- myD3DImage.Lock ();
- {
- myD3DImage.SetBackBuffer (D3DResourceType.IDirect3DSurface9, IntPtr.Zero);
- myColorSurf = Viewer.View.ResizeBridgeFBO (theSizeX, theSizeY);
- myD3DImage.SetBackBuffer (D3DResourceType.IDirect3DSurface9, myColorSurf);
- }
- myD3DImage.Unlock ();
- }
- }
-
- public D3DImage Image
- {
- get
- {
- return myD3DImage;
- }
- }
- }
-}
diff --git a/samples/CSharp/WPF_D3D/IECommands.cs b/samples/CSharp/WPF_D3D/IECommands.cs
deleted file mode 100644
index 0089a17afe..0000000000
--- a/samples/CSharp/WPF_D3D/IECommands.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows.Input;
-
-namespace IE_WPF_D3D
-{
- public class IECommands
- {
- public static RoutedUICommand New { get; private set; }
- public static RoutedUICommand Close { get; private set; }
- public static RoutedUICommand Quit { get; private set; }
- public static RoutedUICommand About { get; private set; }
- public static RoutedUICommand AboutOk { get; private set; }
-
- static IECommands()
- {
- #region menu
-
- InputGestureCollection inputsNew = new InputGestureCollection();
- inputsNew.Add( new KeyGesture( Key.N, ModifierKeys.Control, "Ctrl + N" ) );
- New = new RoutedUICommand( "New", "New", typeof(IECommands), inputsNew );
-
- Close = new RoutedUICommand( "Close", "Close", typeof(IECommands) );
-
- InputGestureCollection inputsQuit = new InputGestureCollection();
- inputsQuit.Add( new KeyGesture( Key.F4, ModifierKeys.Alt, "Alt + F4" ) );
- Quit = new RoutedUICommand( "Quit", "Quit", typeof(IECommands), inputsQuit );
-
- InputGestureCollection inputsAbout = new InputGestureCollection();
- inputsAbout.Add( new KeyGesture( Key.F1 ) );
- About = new RoutedUICommand( "About", "About", typeof(IECommands), inputsAbout );
-
- #endregion
-
- #region aboutDlg
- InputGestureCollection inputsAboutOk = new InputGestureCollection();
- inputsAboutOk.Add( new KeyGesture( Key.Enter ) );
- AboutOk = new RoutedUICommand( "AboutOk", "AboutOk", typeof(IECommands), inputsAboutOk );
- #endregion
- }
- }
-}
diff --git a/samples/CSharp/WPF_D3D/IE_WPF_D3D.csproj b/samples/CSharp/WPF_D3D/IE_WPF_D3D.csproj
deleted file mode 100644
index 1e326d7b8b..0000000000
--- a/samples/CSharp/WPF_D3D/IE_WPF_D3D.csproj
+++ /dev/null
@@ -1,268 +0,0 @@
-
-
-
- Debug
- AnyCPU
- 9.0.30729
- 2.0
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}
- WinExe
- Properties
- IE_WPF_D3D
- IE_WPF_D3D
- v4.8
- 512
- {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- 4
- 3.0.1927.0
-
-
- 3.5
-
-
- false
- publish\
- true
- Disk
- false
- Foreground
- 7
- Days
- false
- false
- true
- 0
- 1.0.0.%2a
- false
- true
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
- true
- ..\win32\$(VCVER)\bind\
- DEBUG;TRACE
- full
- x86
- prompt
-
-
- ..\win32\$(VCVER)\bin\
- TRACE
- true
- pdbonly
- x86
- prompt
-
-
- true
- ..\win64\$(VCVER)\bind\
- DEBUG;TRACE
- full
- x64
- prompt
-
-
- ..\win64\$(VCVER)\bin\
- TRACE
- true
- pdbonly
- x64
- prompt
-
-
-
-
- 3.5
-
-
-
-
-
- 3.5
-
-
- 3.5
-
-
-
-
- 3.0
-
-
- 3.0
-
-
- 3.0
-
-
- 3.0
-
-
- 3.0
-
-
-
-
- MSBuild:Compile
- Designer
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
- MSBuild:Compile
- Designer
-
-
- App.xaml
- Code
-
-
- MainWindow.xaml
- Code
-
-
-
-
- About.xaml
-
-
-
-
- MaterialDlg.xaml
-
-
- Code
-
-
- True
- True
- Resources.resx
-
-
- True
- Settings.settings
- True
-
-
-
-
- Form
-
-
- ResXFileCodeGenerator
- Resources.Designer.cs
-
-
- TransparencyDialog.cs
-
-
-
- SettingsSingleFileGenerator
- Settings.Designer.cs
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- False
- Microsoft .NET Framework 4 %28x86 and x64%29
- true
-
-
- False
- .NET Framework 3.5 SP1 Client Profile
- false
-
-
- False
- .NET Framework 3.5 SP1
- false
-
-
- False
- Windows Installer 3.1
- true
-
-
-
-
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}
- OCCTProxy_D3D
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WPF_D3D/MainWindow.xaml b/samples/CSharp/WPF_D3D/MainWindow.xaml
deleted file mode 100644
index ed0481683d..0000000000
--- a/samples/CSharp/WPF_D3D/MainWindow.xaml
+++ /dev/null
@@ -1,177 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/CSharp/WPF_D3D/MainWindow.xaml.cs b/samples/CSharp/WPF_D3D/MainWindow.xaml.cs
deleted file mode 100644
index fab4967e0d..0000000000
--- a/samples/CSharp/WPF_D3D/MainWindow.xaml.cs
+++ /dev/null
@@ -1,695 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.ComponentModel;
-using System.Windows.Forms.Integration;
-using System.Windows.Interop;
-using System.Runtime.InteropServices;
-
-namespace IE_WPF_D3D
-{
- ///
- /// Interaction logic for MainWindow.xaml
- ///
- public partial class MainWindow : Window, INotifyPropertyChanged
- {
- public event PropertyChangedEventHandler PropertyChanged;
- protected void RaisePropertyChanged (string thePropertyName)
- {
- if (PropertyChanged != null)
- {
- PropertyChanged (this, new PropertyChangedEventArgs (thePropertyName));
- }
- }
-
- public MainWindow ()
- {
- InitializeComponent ();
-
- StatusBarText = String.Empty;
- IsHlrOffPushed = false;
- IsHlrOnPushed = true;
- IsZoomWinEnabled = true;
-
- #region menu operations
-
- CommandBinding aBind_New = new CommandBinding (IECommands.New);
- aBind_New.Executed += NewCommand_Executed;
- CommandBindings.Add (aBind_New);
-
- CommandBinding aBind_Close = new CommandBinding (IECommands.Close);
- aBind_Close.Executed += CloseCommand_Executed;
- aBind_Close.CanExecute += CloseCommand_CanExecute;
- CommandBindings.Add (aBind_Close);
-
- CommandBinding aBind_Quit = new CommandBinding (IECommands.Quit);
- aBind_Quit.Executed += QuitCommand_Executed;
- CommandBindings.Add (aBind_Quit);
-
- CommandBinding aBind_About = new CommandBinding (IECommands.About);
- aBind_About.Executed += AboutCommand_Executed;
- CommandBindings.Add (aBind_About);
-
- #endregion
- }
-
- private String myStatusBarText;
- public String StatusBarText
- {
- get
- {
- return myStatusBarText;
- }
- private set
- {
- myStatusBarText = value;
- RaisePropertyChanged ("StatusBarText");
- }
- }
-
- private bool isHlrOffPushed;
- public Boolean IsHlrOffPushed
- {
- get
- {
- return isHlrOffPushed;
- }
- set
- {
- isHlrOffPushed = value;
- RaisePropertyChanged ("isHlrOffPushed");
- }
- }
-
- private bool isHlrOnPushed;
- public Boolean IsHlrOnPushed
- {
- get
- {
- return isHlrOnPushed;
- }
- set
- {
- isHlrOnPushed = value;
- RaisePropertyChanged ("IsHlrOnPushed");
- }
- }
-
- private bool isZoomWinEnabled;
- public Boolean IsZoomWinEnabled
- {
- get
- {
- return isZoomWinEnabled;
- }
- set
- {
- isZoomWinEnabled = value;
- RaisePropertyChanged ("IsZoomWinEnabled");
- }
- }
-
- private OCCViewer ActiveViewer
- {
- get
- {
- if (!IsDocumentOpen)
- {
- return null;
- }
-
- Grid aGrid = (ViewPanel.SelectedContent) as Grid;
-
- if (aGrid == null)
- {
- return null;
- }
-
- return Map[aGrid].Viewer;
- }
- }
-
- public Boolean IsDocumentOpen
- {
- get
- {
- return ViewPanel.Items.Count > 0;
- }
- }
-
- private int myDocumentCounter = 1;
-
- Dictionary Map = new Dictionary ();
-
- private void NewCommand_Executed (object sender, ExecutedRoutedEventArgs e)
- {
- D3DViewer aViwer = new D3DViewer ();
-
- Grid g = new Grid ();
-
- Map.Add (g, aViwer);
-
- ImageBrush anImage = new ImageBrush (aViwer.Image);
-
- //anImage.RelativeTransform = new ScaleTransform (1.0, -1.0, 0.5, 0.5);
-
- g.Background = anImage;
- g.MouseMove += new MouseEventHandler (g_MouseMove);
- g.MouseDown += new MouseButtonEventHandler (g_MouseDown);
- g.MouseUp += new MouseButtonEventHandler (g_MouseUp);
-
- g.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
-
-
- TabItem aNewTab = new TabItem ();
- aNewTab.Content = g;
-
- aNewTab.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
- aNewTab.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Stretch;
- aNewTab.VerticalContentAlignment = System.Windows.VerticalAlignment.Stretch;
-
- g.SizeChanged += new SizeChangedEventHandler (g_SizeChanged);
-
- aNewTab.IsSelected = true;
- aNewTab.Header = "Document " + myDocumentCounter.ToString ();
- myDocumentCounter++;
-
- ViewPanel.Items.Add (aNewTab);
-
- ViewPanel.Focus ();
-
- // update XAML property
- RaisePropertyChanged ("IsDocumentOpen");
- }
-
- void g_SizeChanged (object sender, SizeChangedEventArgs e)
- {
- if (!IsDocumentOpen)
- return;
-
- Grid aGrid = (ViewPanel.SelectedContent) as Grid;
-
- if (aGrid == null)
- return;
-
- Map[aGrid].Resize (Convert.ToInt32 (e.NewSize.Width),
- Convert.ToInt32 (e.NewSize.Height));
- }
-
- void g_MouseUp (object sender, MouseButtonEventArgs e)
- {
- Grid aGrid = (ViewPanel.SelectedContent) as Grid;
-
- if (aGrid != null)
- {
- ActiveViewer.OnMouseUp(aGrid, e);
- }
- }
-
- void g_MouseDown (object sender, MouseButtonEventArgs e)
- {
- Grid aGrid = (ViewPanel.SelectedContent) as Grid;
-
- if (aGrid != null)
- {
- ActiveViewer.OnMouseDown(ViewPanel, e);
- }
- }
-
- void g_MouseMove (object sender, MouseEventArgs e)
- {
- Grid aGrid = (ViewPanel.SelectedContent) as Grid;
-
- if (aGrid != null)
- {
- ActiveViewer.OnMouseMove (aGrid, e);
- }
- }
-
- private void CloseCommand_Executed (object sender, ExecutedRoutedEventArgs e)
- {
- if (ViewPanel.Items.Count > 0)
- {
- Grid aGrid = (ViewPanel.SelectedContent) as Grid;
-
- if (aGrid == null)
- {
- return;
- }
-
- Map[aGrid].StopRenderingScene ();
-
- ViewPanel.Items.Remove (ViewPanel.SelectedItem);
- }
-
- // update XAML property
- RaisePropertyChanged ("IsDocumentOpen");
- }
-
- private void CloseCommand_CanExecute (object sender, CanExecuteRoutedEventArgs e)
- {
- e.CanExecute = IsDocumentOpen;
- }
-
- private void QuitCommand_Executed (object sender, ExecutedRoutedEventArgs e)
- {
- this.Close ();
- }
-
- private void ImportBRep_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.ImportModel (ModelFormat.BREP);
- }
- }
-
- private void ImportIges_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.ImportModel (ModelFormat.IGES);
- }
- }
-
- private void ImportStep_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.ImportModel (ModelFormat.STEP);
- }
- }
-
- private void ExportBRep_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.ExportModel (ModelFormat.BREP);
- }
- }
-
- private void ExportStep_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.ExportModel (ModelFormat.STEP);
- }
- }
-
- private void ExportIges_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.ExportModel (ModelFormat.IGES);
- }
- }
-
- private void ExportStl_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.ExportModel (ModelFormat.STL);
- }
- }
-
- private void ExportVrml_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.ExportModel (ModelFormat.VRML);
- }
- }
-
- private void ExportImage_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.ExportModel (ModelFormat.IMAGE);
- }
- }
-
- private void FitAllBtn_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.FitAll ();
- }
- }
-
- private void ZoomWindowBtn_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- IsZoomWinEnabled = false;
- ActiveViewer.ZoomWindow ();
- }
- }
-
- private void DynamicZoomingBtn_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.DynamicZooming ();
- }
- }
-
- private void DynamicPanningBtn_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.DynamicPanning ();
- }
- }
-
- private void GlobalPanningBtn_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.GlobalPanning ();
- }
- }
-
- private void FrontBtn_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.FrontView ();
- }
- }
-
- private void BackBtn_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.BackView ();
- }
- }
-
- private void TopBtn_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.TopView ();
- }
- }
-
- private void BottomBtn_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.BottomView ();
- }
- }
-
- private void LeftBtn_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.LeftView ();
- }
- }
-
- private void RightBtn_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.RightView ();
- }
- }
-
- private void AxoBtn_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.AxoView ();
- }
- }
-
- private void ResetBtn_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.Reset ();
- }
- }
-
- private void DynamicRotationBtn_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.DynamicRotation ();
- }
- }
-
- private void HiddenOffBtn_Click (object sender, RoutedEventArgs e)
- {
- IsHlrOffPushed = true;
- IsHlrOnPushed = false;
- if (ActiveViewer != null)
- {
- ActiveViewer.HiddenOff ();
- }
- }
-
- private void HiddenOnBtn_Click (object sender, RoutedEventArgs e)
- {
- IsHlrOffPushed = false;
- IsHlrOnPushed = true;
- if (ActiveViewer != null)
- {
- ActiveViewer.HiddenOn ();
- }
- }
-
- private void AboutCommand_Executed (object sender, ExecutedRoutedEventArgs e)
- {
- AboutDialog aDlg = new AboutDialog ();
- aDlg.ShowDialog ();
- }
-
- private void ToolBar_MouseEnter (object sender, MouseEventArgs e)
- {
- StatusBarText = "Toolbar";
- }
-
- private void DocumentToolBar_MouseEnter (object sender, MouseEventArgs e)
- {
- StatusBarText = "Document toolbar";
- }
-
- private void ViewToolBar_MouseEnter (object sender, MouseEventArgs e)
- {
- StatusBarText = "View toolbar";
- }
-
- private void ToolBar_MouseLeave (object sender, MouseEventArgs e)
- {
- StatusBarText = "";
- }
-
- public void OnZoomingFinished (object sender, EventArgs e)
- {
- IsZoomWinEnabled = true;
- }
-
- public bool IsWireframeEnabled
- {
- get
- {
- if (ActiveViewer != null)
- {
- return ActiveViewer.IsWireframeEnabled;
- }
- return false;
- }
- }
-
- private void Wireframe_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.Wireframe ();
- }
- }
-
- private void Shading_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.Shading ();
- }
- }
-
- public bool IsShadingEnabled
- {
- get
- {
- if (ActiveViewer != null)
- {
- return ActiveViewer.IsShadingEnabled;
- }
- return false;
- }
- }
-
- private void Color_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.Color ();
- }
- }
-
- public bool IsColorEnabled
- {
- get
- {
- if (ActiveViewer != null)
- {
- return ActiveViewer.IsColorEnabled;
- }
- return false;
- }
- }
-
- private void Material_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.Material ();
- }
- }
-
- public bool IsMaterialEnabled
- {
- get
- {
- if (ActiveViewer != null)
- {
- return ActiveViewer.IsMaterialEnabled;
- }
- return false;
- }
- }
-
- private void Transparency_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.Transparency ();
- }
- }
-
- public bool IsTransparencyEnabled
- {
- get
- {
- if (ActiveViewer != null)
- {
- return ActiveViewer.IsTransparencyEnabled;
- }
- return false;
- }
- }
-
- private void Delete_Click (object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.Delete ();
- }
- }
-
- private void Background_Click(object sender, RoutedEventArgs e)
- {
- if (ActiveViewer != null)
- {
- ActiveViewer.Background();
- }
- }
-
- public bool IsDeleteEnabled
- {
- get
- {
- if (ActiveViewer != null)
- {
- return ActiveViewer.IsDeleteEnabled;
- }
- return false;
- }
- }
-
- private void AvaliabiltyOfOperationToolbarChanged ()
- {
- RaisePropertyChanged ("IsWireframeEnabled");
- RaisePropertyChanged ("IsShadingEnabled");
- RaisePropertyChanged ("IsTransparencyEnabled");
- RaisePropertyChanged ("IsColorEnabled");
- RaisePropertyChanged ("IsMaterialEnabled");
- RaisePropertyChanged ("IsDeleteEnabled");
- }
-
- public void OnAvaliabiltyOfOperationsChanged (object sender, EventArgs e)
- {
- AvaliabiltyOfOperationToolbarChanged ();
- }
-
- private void OnViewerChanged (object sender, SelectionChangedEventArgs e)
- {
- if (e.RemovedItems.Count > 0)
- {
- Grid aHost = ((e.RemovedItems[0] as TabItem).Content) as Grid;
- if (aHost == null)
- {
- return;
- }
-
- OCCViewer aViewer = Map[aHost].Viewer;
- if (aViewer != null)
- {
- aViewer.ZoomingFinished -= new EventHandler (OnZoomingFinished);
- aViewer.AvaliabiltyOfOperationsChanged -= new EventHandler (OnAvaliabiltyOfOperationsChanged);
- }
- }
-
- if (e.AddedItems.Count > 0)
- {
- Grid aHost = ((e.AddedItems[0] as TabItem).Content) as Grid;
- if (aHost == null)
- {
- return;
- }
-
- OCCViewer aViewer = Map[aHost].Viewer;
- if (aViewer != null)
- {
- aViewer.ZoomingFinished += new EventHandler (OnZoomingFinished);
- aViewer.AvaliabiltyOfOperationsChanged += new EventHandler (OnAvaliabiltyOfOperationsChanged);
- }
- }
-
- AvaliabiltyOfOperationToolbarChanged ();
- }
-
- private void OnContextOpened(object sender, RoutedEventArgs e)
- {
- this.WireframeItem.IsEnabled = IsWireframeEnabled;
- this.ShadingItem.IsEnabled = IsShadingEnabled;
- this.ColorItem.IsEnabled = IsColorEnabled;
- this.MaterialItem.IsEnabled = IsMaterialEnabled;
- this.TransparencyItem.IsEnabled = IsTransparencyEnabled;
- this.DeleteItem.IsEnabled = IsDeleteEnabled;
- }
- }
-}
diff --git a/samples/CSharp/WPF_D3D/MaterialDlg.xaml b/samples/CSharp/WPF_D3D/MaterialDlg.xaml
deleted file mode 100644
index dafa734a31..0000000000
--- a/samples/CSharp/WPF_D3D/MaterialDlg.xaml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WPF_D3D/MaterialDlg.xaml.cs b/samples/CSharp/WPF_D3D/MaterialDlg.xaml.cs
deleted file mode 100644
index 4751ed8376..0000000000
--- a/samples/CSharp/WPF_D3D/MaterialDlg.xaml.cs
+++ /dev/null
@@ -1,101 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Shapes;
-
-namespace IE_WPF_D3D
-{
- public enum Material
- {
- Brass,
- Bronze,
- Copper,
- Gold,
- Pewter,
- Plaster,
- Plastic,
- Silver
- }
-
- ///
- /// Interaction logic for MaterialDlg.xaml
- ///
- public partial class MaterialDlg : Window
- {
- public MaterialDlg( OCCTProxyD3D theView )
- {
- this.InitializeComponent();
-
- if ( theView == null )
- {
- MessageBox.Show( "Fatal Error during the graphic initialisation", "Error!" );
- }
-
- View = theView;
-
- SetInitialState();
- }
-
- public OCCTProxyD3D View { get; private set; }
-
- private void PlasterBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Plaster );
- View.UpdateCurrentViewer();
- }
-
- private void BrassBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Brass );
- View.UpdateCurrentViewer();
- }
-
- private void BronzeBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Bronze );
- View.UpdateCurrentViewer();
- }
-
- private void CopperBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Copper );
- View.UpdateCurrentViewer();
- }
-
- private void GoldBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Gold );
- View.UpdateCurrentViewer();
- }
-
- private void PewterBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Pewter );
- View.UpdateCurrentViewer();
- }
-
- private void PlasticBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Plastic );
- View.UpdateCurrentViewer();
- }
-
- private void SilverBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Silver );
- View.UpdateCurrentViewer();
- }
-
- private void SetInitialState()
- {
- // TODO
- }
- }
-}
\ No newline at end of file
diff --git a/samples/CSharp/WPF_D3D/OCCViewer.cs b/samples/CSharp/WPF_D3D/OCCViewer.cs
deleted file mode 100644
index 7ec4355bad..0000000000
--- a/samples/CSharp/WPF_D3D/OCCViewer.cs
+++ /dev/null
@@ -1,665 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows.Forms;
-using System.Windows.Input;
-using System.Drawing;
-
-namespace IE_WPF_D3D
-{
- public enum CurrentAction3d
- {
- CurAction3d_Nothing,
- CurAction3d_DynamicZooming,
- CurAction3d_WindowZooming,
- CurAction3d_DynamicPanning,
- CurAction3d_GlobalPanning,
- CurAction3d_DynamicRotation
- }
- public enum CurrentPressedKey
- {
- CurPressedKey_Nothing,
- CurPressedKey_Ctrl,
- CurPressedKey_Shift
- }
- public enum ModelFormat
- {
- BREP,
- STEP,
- IGES,
- VRML,
- STL,
- IMAGE
- }
-
- public enum DisplayMode
- {
- Wireframe,
- Shading
- }
-
- public class OCCViewer
- {
- public event EventHandler ZoomingFinished;
- protected void RaiseZoomingFinished ()
- {
- if (ZoomingFinished != null)
- {
- ZoomingFinished (this, EventArgs.Empty);
- }
- }
-
- public event EventHandler AvaliabiltyOfOperationsChanged;
- protected void RaiseAvaliabiltyOfOperationsChanged ()
- {
- if (AvaliabiltyOfOperationsChanged != null)
- {
- AvaliabiltyOfOperationsChanged (this, EventArgs.Empty);
- }
- }
-
- public OCCTProxyD3D View { get; private set; }
- public CurrentAction3d CurrentMode { get; private set; }
- private bool IsRectVisible { get; set; }
- public bool DegenerateMode { get; private set; }
-
- public bool IsWireframeEnabled { get; private set; }
- public bool IsShadingEnabled { get; private set; }
- public bool IsTransparencyEnabled { get; private set; }
- public bool IsColorEnabled { get; private set; }
- public bool IsMaterialEnabled { get; private set; }
- public bool IsDeleteEnabled { get; private set; }
-
- private float myCurZoom;
- private int myXmin;
- private int myYmin;
- private int myXmax;
- private int myYmax;
- private int myButtonDownX;
- private int myButtonDownY;
- public OCCViewer()
- {
- View = new OCCTProxyD3D ();
- View.InitOCCTProxy ();
- CurrentMode = CurrentAction3d.CurAction3d_Nothing;
- IsRectVisible = false;
- DegenerateMode = true;
- }
-
- public bool InitViewer()
- {
- return View.InitViewer();
- }
-
- public void ImportModel (ModelFormat theFormat)
- {
- int aFormat = 10;
- OpenFileDialog anOpenDialog = new OpenFileDialog ();
- string aDataDir = Environment.GetEnvironmentVariable ("CSF_OCCTDataPath");
- string aFilter = "";
-
- switch (theFormat)
- {
- case ModelFormat.BREP:
- anOpenDialog.InitialDirectory = (aDataDir + "\\occ");
- aFormat = 0;
- aFilter = "BREP Files (*.brep *.rle)|*.brep; *.rle";
- break;
- case ModelFormat.STEP:
- anOpenDialog.InitialDirectory = (aDataDir + "\\step");
- aFormat = 1;
- aFilter = "STEP Files (*.stp *.step)|*.stp; *.step";
- break;
- case ModelFormat.IGES:
- anOpenDialog.InitialDirectory = (aDataDir + "\\iges");
- aFormat = 2;
- aFilter = "IGES Files (*.igs *.iges)|*.igs; *.iges";
- break;
- default:
- break;
- }
-
- anOpenDialog.Filter = aFilter + "|All files (*.*)|*.*";
- if (anOpenDialog.ShowDialog () == DialogResult.OK)
- {
- string aFileName = anOpenDialog.FileName;
- if (aFileName == "")
- {
- return;
- }
-
- if (!View.TranslateModel (aFileName, aFormat, true))
- {
- MessageBox.Show ("Can't read this file", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- }
- }
- View.ZoomAllView ();
- }
-
- public void ExportModel (ModelFormat theFormat)
- {
- int aFormat = 10;
- SaveFileDialog saveDialog = new SaveFileDialog ();
- string aDataDir = Environment.GetEnvironmentVariable ("CSF_OCCTDataPath");
- string aFilter = "";
-
- switch (theFormat)
- {
- case ModelFormat.BREP:
- saveDialog.InitialDirectory = (aDataDir + "\\occ");
- aFormat = 0;
- aFilter = "BREP Files (*.brep *.rle)|*.brep; *.rle";
- break;
- case ModelFormat.STEP:
- saveDialog.InitialDirectory = (aDataDir + "\\step");
- aFormat = 1;
- aFilter = "STEP Files (*.stp *.step)|*.step; *.stp";
- break;
- case ModelFormat.IGES:
- saveDialog.InitialDirectory = (aDataDir + "\\iges");
- aFormat = 2;
- aFilter = "IGES Files (*.igs *.iges)| *.iges; *.igs";
- break;
- case ModelFormat.VRML:
- saveDialog.InitialDirectory = (aDataDir + "\\vrml");
- aFormat = 3;
- aFilter = "VRML Files (*.vrml)|*.vrml";
- break;
- case ModelFormat.STL:
- saveDialog.InitialDirectory = (aDataDir + "\\stl");
- aFormat = 4;
- aFilter = "STL Files (*.stl)|*.stl";
- break;
- case ModelFormat.IMAGE:
- saveDialog.InitialDirectory = (aDataDir + "\\images");
- aFormat = 5;
- aFilter = "Images Files (*.bmp)|*.bmp";
- break;
- default:
- break;
- }
-
- saveDialog.Filter = aFilter;
- if (saveDialog.ShowDialog () == DialogResult.OK)
- {
- string aFileName = saveDialog.FileName;
- if (aFileName == "")
- {
- return;
- }
-
- if (!View.TranslateModel (aFileName, aFormat, false))
- {
- MessageBox.Show ("Can not write this file", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- }
- }
- }
-
- public void FitAll ()
- {
- View.ZoomAllView ();
- }
-
- public void ZoomWindow ()
- {
- CurrentMode = CurrentAction3d.CurAction3d_WindowZooming;
- }
-
- public void DynamicZooming ()
- {
- CurrentMode = CurrentAction3d.CurAction3d_DynamicZooming;
- }
-
- public void DynamicPanning ()
- {
- CurrentMode = CurrentAction3d.CurAction3d_DynamicPanning;
- }
-
- public void GlobalPanning ()
- {
- myCurZoom = View.Scale ();
- CurrentMode = CurrentAction3d.CurAction3d_GlobalPanning;
- }
-
- public void AxoView ()
- {
- View.AxoView ();
- }
-
- public void FrontView ()
- {
- View.FrontView ();
- }
-
- public void TopView ()
- {
- View.TopView ();
- }
-
- public void LeftView ()
- {
- View.LeftView ();
- }
-
- public void BackView ()
- {
- View.BackView ();
- }
-
- public void RightView ()
- {
- View.RightView ();
- }
-
- public void Reset ()
- {
- View.Reset ();
- }
-
- public void BottomView ()
- {
- View.BottomView ();
- }
-
- public void HiddenOff ()
- {
- View.SetDegenerateModeOff ();
- DegenerateMode = false;
- }
-
- public void HiddenOn ()
- {
- View.SetDegenerateModeOn ();
- DegenerateMode = true;
- }
-
- public void DynamicRotation ()
- {
- CurrentMode = CurrentAction3d.CurAction3d_DynamicRotation;
- }
-
- public void SelectionChanged ()
- {
- switch (View.DisplayMode ())
- {
- case -1:
- IsShadingEnabled = false;
- IsWireframeEnabled = false;
- break;
- case 0:
- IsWireframeEnabled = false;
- IsShadingEnabled = true;
- IsTransparencyEnabled = false;
- break;
- case 1:
- IsWireframeEnabled = true;
- IsShadingEnabled = false;
- IsTransparencyEnabled = true;
- break;
- case 10:
- IsWireframeEnabled = true;
- IsShadingEnabled = true;
- IsTransparencyEnabled = true;
- break;
- default:
- break;
- }
-
- if (View.IsObjectSelected ())
- {
- IsColorEnabled = true;
- IsMaterialEnabled = true;
- IsDeleteEnabled = true;
- }
- else
- {
- IsColorEnabled = false;
- IsMaterialEnabled = false;
- IsTransparencyEnabled = false;
- IsDeleteEnabled = false;
- }
-
- RaiseAvaliabiltyOfOperationsChanged ();
- }
-
- public void ChangeColor (bool IsObjectColor)
- {
- int r, g, b;
- if (IsObjectColor)
- {
- r = View.GetObjColR ();
- g = View.GetObjColG ();
- b = View.GetObjColB ();
- }
- else
- {
- r = View.GetBGColR ();
- g = View.GetBGColG ();
- b = View.GetBGColB ();
- }
- System.Windows.Forms.ColorDialog ColDlg = new System.Windows.Forms.ColorDialog ();
- ColDlg.Color = System.Drawing.Color.FromArgb (r, g, b);
- if (ColDlg.ShowDialog () == System.Windows.Forms.DialogResult.OK)
- {
- System.Drawing.Color c = ColDlg.Color;
- r = c.R;
- g = c.G;
- b = c.B;
- if (IsObjectColor)
- {
- View.SetColor (r, g, b);
- }
- else
- {
- View.SetBackgroundColor (r, g, b);
- }
- }
- View.UpdateCurrentViewer ();
- }
-
- public void Wireframe ()
- {
- View.SetDisplayMode ((int)DisplayMode.Wireframe);
- View.UpdateCurrentViewer ();
-
- SelectionChanged ();
- RaiseZoomingFinished ();
- }
-
- public void Shading ()
- {
- View.SetDisplayMode ((int)DisplayMode.Shading);
- View.UpdateCurrentViewer ();
-
- SelectionChanged ();
- RaiseZoomingFinished ();
- }
-
- public void Color ()
- {
- ChangeColor (true);
- }
-
- public void Background ()
- {
- ChangeColor (false);
- }
-
- public void Material ()
- {
- MaterialDlg aDlg = new MaterialDlg (View);
- aDlg.ShowDialog ();
- }
-
- public void Transparency ()
- {
- TransparencyDialog dlg = new TransparencyDialog ();
- dlg.View = View;
- dlg.ShowDialog ();
- }
-
- public void Delete ()
- {
- View.EraseObjects ();
- SelectionChanged ();
- }
-
- protected void MultiDragEvent (int x, int y, int theState)
- {
- if (theState == -1) //mouse is down
- {
- myButtonDownX = x;
- myButtonDownY = y;
- }
- else if (theState == 1) //mouse is up
- {
- View.ShiftSelect (Math.Min (myButtonDownX, x), Math.Min (myButtonDownY, y),
- Math.Max (myButtonDownX, x), Math.Max (myButtonDownY, y));
- }
- }
-
- protected void DragEvent (int x, int y, int theState)
- {
- if (theState == -1) //mouse is down
- {
- myButtonDownX = x;
- myButtonDownY = y;
- }
- else if (theState == 1) //mouse is up
- {
- View.Select (Math.Min (myButtonDownX, x), Math.Min (myButtonDownY, y),
- Math.Max (myButtonDownX, x), Math.Max (myButtonDownY, y));
- }
- }
-
- public void OnMouseDown (System.Windows.IInputElement sender, MouseButtonEventArgs e)
- {
- System.Windows.Controls.TabControl aTabControl = sender as System.Windows.Controls.TabControl;
- System.Windows.Controls.Grid aGrid = aTabControl.SelectedContent as System.Windows.Controls.Grid;
-
- Point p = new Point((int)e.GetPosition(aGrid).X, (int)e.GetPosition(aGrid).Y);
-
- // to avoid the context menu opening
- aTabControl.ContextMenu.Visibility = System.Windows.Visibility.Collapsed;
- aTabControl.ContextMenu.IsOpen = false;
-
- if (e.LeftButton == MouseButtonState.Pressed)
- {
- myXmin = p.X;
- myXmax = p.X;
- myYmin = p.Y;
- myYmax = p.Y;
-
- if (Keyboard.IsKeyDown (Key.LeftCtrl) || Keyboard.IsKeyDown (Key.RightCtrl))
- {
- // start the dynamic zooming....
- CurrentMode = CurrentAction3d.CurAction3d_DynamicZooming;
- }
- else
- {
- switch (CurrentMode)
- {
- case CurrentAction3d.CurAction3d_Nothing:
- if (Keyboard.IsKeyDown (Key.LeftShift) || Keyboard.IsKeyDown (Key.RightShift))
- {
- MultiDragEvent (myXmax, myYmax, -1);
- }
- else
- {
- DragEvent (myXmax, myYmax, -1);
- }
- break;
- case CurrentAction3d.CurAction3d_DynamicRotation:
- if (!DegenerateMode)
- {
- View.SetDegenerateModeOn ();
- }
- View.StartRotation (p.X, p.Y);
- break;
- default:
- break;
- }
- }
- }
- else if (e.RightButton == MouseButtonState.Pressed)
- {
- if (Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl))
- {
- if (!DegenerateMode)
- {
- View.SetDegenerateModeOn();
- }
- View.StartRotation(p.X, p.Y);
- }
- else
- {
- // show context menu only in this case
- aTabControl.ContextMenu.Visibility = System.Windows.Visibility.Visible;
- }
- }
- }
-
- public void OnMouseUp(System.Windows.IInputElement sender, MouseButtonEventArgs e)
- {
- Point p = new Point((int)e.GetPosition(sender).X, (int)e.GetPosition(sender).Y);
-
- if (e.ChangedButton == MouseButton.Left)
- {
- if (Keyboard.IsKeyDown (Key.LeftCtrl) || Keyboard.IsKeyDown (Key.RightCtrl))
- {
- CurrentMode = CurrentAction3d.CurAction3d_Nothing;
- return;
- }
- switch (CurrentMode)
- {
- case CurrentAction3d.CurAction3d_Nothing:
- if (p.X == myXmin && p.Y == myYmin)
- {
- myXmax = p.X;
- myYmax = p.Y;
- if (Keyboard.IsKeyDown (Key.LeftShift) || Keyboard.IsKeyDown (Key.RightShift))
- {
- View.ShiftSelect ();
- }
- else
- {
- View.Select ();
- }
- }
- else
- {
- myXmax = p.X;
- myYmax = p.Y;
- if (Keyboard.IsKeyDown (Key.LeftShift) || Keyboard.IsKeyDown (Key.RightShift))
- {
- MultiDragEvent (myXmax, myYmax, 1);
- }
- else
- {
- DragEvent (myXmax, myYmax, 1);
- }
- }
- break;
- case CurrentAction3d.CurAction3d_DynamicZooming:
- CurrentMode = CurrentAction3d.CurAction3d_Nothing;
- break;
- case CurrentAction3d.CurAction3d_WindowZooming:
- myXmax = p.X;
- myYmax = p.Y;
- int ValZWMin = 1;
- if (Math.Abs (myXmax - myXmin) > ValZWMin &&
- Math.Abs (myXmax - myYmax) > ValZWMin)
- {
- View.WindowFitAll (myXmin, myYmin, myXmax, myYmax);
- }
- RaiseZoomingFinished ();
- CurrentMode = CurrentAction3d.CurAction3d_Nothing;
- break;
- case CurrentAction3d.CurAction3d_DynamicPanning:
- CurrentMode = CurrentAction3d.CurAction3d_Nothing;
- break;
- case CurrentAction3d.CurAction3d_GlobalPanning:
- View.Place (p.X, p.Y, myCurZoom);
- CurrentMode = CurrentAction3d.CurAction3d_Nothing;
- break;
- case CurrentAction3d.CurAction3d_DynamicRotation:
- CurrentMode = CurrentAction3d.CurAction3d_Nothing;
- if (!DegenerateMode)
- {
- View.SetDegenerateModeOff ();
- }
- else
- {
- View.SetDegenerateModeOn ();
- }
- break;
- default:
- break;
- }
- }
- else if (e.ChangedButton == MouseButton.Right)
- {
- if (!DegenerateMode)
- {
- View.SetDegenerateModeOff ();
- }
- else
- {
- View.SetDegenerateModeOn ();
- }
- }
-
- SelectionChanged ();
- }
-
- public void OnMouseMove (System.Windows.IInputElement sender, System.Windows.Input.MouseEventArgs e)
- {
- Point p = new Point ((int)e.GetPosition (sender).X, (int)e.GetPosition (sender).Y);
-
- if (e.LeftButton == MouseButtonState.Pressed) //left button is pressed
- {
- if (Keyboard.IsKeyDown (Key.LeftCtrl) || Keyboard.IsKeyDown (Key.RightCtrl))
- {
- View.Zoom (myXmax, myYmax, p.X, p.Y);
- myXmax = p.X;
- myYmax = p.Y;
- }
- else
- {
- switch (CurrentMode)
- {
- case CurrentAction3d.CurAction3d_Nothing:
- myXmax = p.X;
- myYmax = p.Y;
- break;
- case CurrentAction3d.CurAction3d_DynamicZooming:
- View.Zoom (myXmax, myYmax, p.X, p.Y);
- myXmax = p.X;
- myYmax = p.Y;
- break;
- case CurrentAction3d.CurAction3d_WindowZooming:
- myXmax = p.X;
- myYmax = p.Y;
- break;
- case CurrentAction3d.CurAction3d_DynamicPanning:
- View.Pan (p.X - myXmax, myYmax - p.Y);
- myXmax = p.X;
- myYmax = p.Y;
- break;
- case CurrentAction3d.CurAction3d_GlobalPanning:
- break;
- case CurrentAction3d.CurAction3d_DynamicRotation:
- View.Rotation (p.X, p.Y);
- View.RedrawView ();
- break;
- default:
- break;
- }
- }
- }
- else if (e.MiddleButton == MouseButtonState.Pressed) //middle button is pressed
- {
- if (Keyboard.IsKeyDown (Key.LeftCtrl) || Keyboard.IsKeyDown (Key.RightCtrl))
- {
- View.Pan (p.X - myXmax, myYmax - p.Y);
- myXmax = p.X;
- myYmax = p.Y;
- }
- }
- else if (e.RightButton == MouseButtonState.Pressed) //right button is pressed
- {
- if (Keyboard.IsKeyDown (Key.LeftCtrl) || Keyboard.IsKeyDown (Key.RightCtrl))
- {
- View.Rotation (p.X, p.Y);
- }
- }
- else // no buttons are pressed
- {
- myXmax = p.X;
- myYmax = p.Y;
- View.MoveTo (p.X, p.Y);
- }
- }
- }
-}
diff --git a/samples/CSharp/WPF_D3D/Properties/AssemblyInfo.cs b/samples/CSharp/WPF_D3D/Properties/AssemblyInfo.cs
deleted file mode 100644
index 02445ca672..0000000000
--- a/samples/CSharp/WPF_D3D/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-using System.Reflection;
-using System.Resources;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using System.Windows;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("IE")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("IE")]
-[assembly: AssemblyCopyright("Copyright © 2013")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-//In order to begin building localizable applications, set
-//CultureYouAreCodingWith in your .csproj file
-//inside a . For example, if you are using US english
-//in your source files, set the to en-US. Then uncomment
-//the NeutralResourceLanguage attribute below. Update the "en-US" in
-//the line below to match the UICulture setting in the project file.
-
-//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
-
-
-[assembly: ThemeInfo(
- ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
- //(used if a resource is not found in the page,
- // or application resource dictionaries)
- ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
- //(used if a resource is not found in the page,
- // app, or any theme specific resource dictionaries)
-)]
-
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/samples/CSharp/WPF_D3D/Properties/Resources.Designer.cs b/samples/CSharp/WPF_D3D/Properties/Resources.Designer.cs
deleted file mode 100644
index 1388afa068..0000000000
--- a/samples/CSharp/WPF_D3D/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.18444
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace IE_WPF_D3D.Properties {
- using System;
-
-
- ///
- /// A strongly-typed resource class, for looking up localized strings, etc.
- ///
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources() {
- }
-
- ///
- /// Returns the cached ResourceManager instance used by this class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager {
- get {
- if (object.ReferenceEquals(resourceMan, null)) {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("IE_WPF_D3D.Properties.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- ///
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture {
- get {
- return resourceCulture;
- }
- set {
- resourceCulture = value;
- }
- }
- }
-}
diff --git a/samples/CSharp/WPF_D3D/Properties/Resources.resx b/samples/CSharp/WPF_D3D/Properties/Resources.resx
deleted file mode 100644
index af7dbebbac..0000000000
--- a/samples/CSharp/WPF_D3D/Properties/Resources.resx
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WPF_D3D/Properties/Settings.Designer.cs b/samples/CSharp/WPF_D3D/Properties/Settings.Designer.cs
deleted file mode 100644
index 34d904b27f..0000000000
--- a/samples/CSharp/WPF_D3D/Properties/Settings.Designer.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.18444
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace IE_WPF_D3D.Properties {
-
-
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
-
- private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default {
- get {
- return defaultInstance;
- }
- }
- }
-}
diff --git a/samples/CSharp/WPF_D3D/Properties/Settings.settings b/samples/CSharp/WPF_D3D/Properties/Settings.settings
deleted file mode 100644
index 033d7a5e9e..0000000000
--- a/samples/CSharp/WPF_D3D/Properties/Settings.settings
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WPF_D3D/Simple Styles.xaml b/samples/CSharp/WPF_D3D/Simple Styles.xaml
deleted file mode 100644
index 3be3f557c0..0000000000
--- a/samples/CSharp/WPF_D3D/Simple Styles.xaml
+++ /dev/null
@@ -1,1134 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/CSharp/WPF_D3D/TransparencyDialog.cs b/samples/CSharp/WPF_D3D/TransparencyDialog.cs
deleted file mode 100644
index ab885b7f98..0000000000
--- a/samples/CSharp/WPF_D3D/TransparencyDialog.cs
+++ /dev/null
@@ -1,108 +0,0 @@
-using System;
-using System.Drawing;
-using System.Collections;
-using System.ComponentModel;
-using System.Windows.Forms;
-
-namespace IE_WPF_D3D
-{
- ///
- /// Summary description for TransparencyDialog.
- ///
- public class TransparencyDialog : System.Windows.Forms.Form
- {
- private System.Windows.Forms.NumericUpDown MyTransparency;
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.Container components = null;
- private OCCTProxyD3D myView;
-
- public TransparencyDialog()
- {
- //
- // Required for Windows Form Designer support
- //
- InitializeComponent();
-
- //
- // TODO: Add any constructor code after InitializeComponent call
- //
- myView = null;
- }
-
- ///
- /// Clean up any resources being used.
- ///
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(TransparencyDialog));
- this.MyTransparency = new System.Windows.Forms.NumericUpDown();
- ((System.ComponentModel.ISupportInitialize)(this.MyTransparency)).BeginInit();
- this.SuspendLayout();
- //
- // MyTransparency
- //
- this.MyTransparency.Location = new System.Drawing.Point(16, 16);
- this.MyTransparency.Maximum = new System.Decimal(new int[] {
- 10,
- 0,
- 0,
- 0});
- this.MyTransparency.Name = "MyTransparency";
- this.MyTransparency.Size = new System.Drawing.Size(96, 20);
- this.MyTransparency.TabIndex = 0;
- this.MyTransparency.ValueChanged += new System.EventHandler(this.MyTransparency_ValueChanged);
- //
- // TransparencyDialog
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(128, 53);
- this.Controls.Add(this.MyTransparency);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "TransparencyDialog";
- this.Text = "TransparencyDialog";
- ((System.ComponentModel.ISupportInitialize)(this.MyTransparency)).EndInit();
- this.ResumeLayout(false);
-
- }
- #endregion
-
- private void MyTransparency_ValueChanged(object sender, System.EventArgs e)
- {
- if (this.myView == null)
- return;
- int transp = (int)this.MyTransparency.Value;
- this.myView.SetTransparency(transp);
- }
-
- public OCCTProxyD3D View
- {
- set
- {
- this.myView = value;
- }
- }
-
- }
-}
diff --git a/samples/CSharp/WPF_D3D/TransparencyDialog.resx b/samples/CSharp/WPF_D3D/TransparencyDialog.resx
deleted file mode 100644
index 688fd72e80..0000000000
--- a/samples/CSharp/WPF_D3D/TransparencyDialog.resx
+++ /dev/null
@@ -1,206 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 1.3
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- (Default)
-
-
- False
-
-
- False
-
-
- 8, 8
-
-
- True
-
-
- 80
-
-
- True
-
-
- Private
-
-
- TransparencyDialog
-
-
-
- AAABAAEAMDAAAAAAAACoDgAAFgAAACgAAAAwAAAAYAAAAAEACAAAAAAAgAoAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAMDcwADwyqYABAQEAAgICAAMDAwAERERABYW
- FgAcHBwAIiIiACkpKQBVVVUATU1NAEJCQgA5OTkAgHz/AFBQ/wCTANYA/+zMAMbW7wDW5+cAkKmtAAAA
- MwAAAGYAAACZAAAAzAAAMwAAADMzAAAzZgAAM5kAADPMAAAz/wAAZgAAAGYzAABmZgAAZpkAAGbMAABm
- /wAAmQAAAJkzAACZZgAAmZkAAJnMAACZ/wAAzAAAAMwzAADMZgAAzJkAAMzMAADM/wAA/2YAAP+ZAAD/
- zAAzAAAAMwAzADMAZgAzAJkAMwDMADMA/wAzMwAAMzMzADMzZgAzM5kAMzPMADMz/wAzZgAAM2YzADNm
- ZgAzZpkAM2bMADNm/wAzmQAAM5kzADOZZgAzmZkAM5nMADOZ/wAzzAAAM8wzADPMZgAzzJkAM8zMADPM
- /wAz/zMAM/9mADP/mQAz/8wAM///AGYAAABmADMAZgBmAGYAmQBmAMwAZgD/AGYzAABmMzMAZjNmAGYz
- mQBmM8wAZjP/AGZmAABmZjMAZmZmAGZmmQBmZswAZpkAAGaZMwBmmWYAZpmZAGaZzABmmf8AZswAAGbM
- MwBmzJkAZszMAGbM/wBm/wAAZv8zAGb/mQBm/8wAzAD/AP8AzACZmQAAmTOZAJkAmQCZAMwAmQAAAJkz
- MwCZAGYAmTPMAJkA/wCZZgAAmWYzAJkzZgCZZpkAmWbMAJkz/wCZmTMAmZlmAJmZmQCZmcwAmZn/AJnM
- AACZzDMAZsxmAJnMmQCZzMwAmcz/AJn/AACZ/zMAmcxmAJn/mQCZ/8wAmf//AMwAAACZADMAzABmAMwA
- mQDMAMwAmTMAAMwzMwDMM2YAzDOZAMwzzADMM/8AzGYAAMxmMwCZZmYAzGaZAMxmzACZZv8AzJkAAMyZ
- MwDMmWYAzJmZAMyZzADMmf8AzMwAAMzMMwDMzGYAzMyZAMzMzADMzP8AzP8AAMz/MwCZ/2YAzP+ZAMz/
- zADM//8AzAAzAP8AZgD/AJkAzDMAAP8zMwD/M2YA/zOZAP8zzAD/M/8A/2YAAP9mMwDMZmYA/2aZAP9m
- zADMZv8A/5kAAP+ZMwD/mWYA/5mZAP+ZzAD/mf8A/8wAAP/MMwD/zGYA/8yZAP/MzAD/zP8A//8zAMz/
- ZgD//5kA///MAGZm/wBm/2YAZv//AP9mZgD/Zv8A//9mACEApQBfX18Ad3d3AIaGhgCWlpYAy8vLALKy
- sgDX19cA3d3dAOPj4wDq6uoA8fHxAPj4+ADw+/8ApKCgAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP//
- AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMT
- ExMTExMTEyIiQiI8HTyCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwDODg4Nzc4MQMdAAAA
- AADDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOw4ODgyOCQAAAAdAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAODIyMSIAHewAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAA7DI3MSIdCwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAADEyMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAs4JAALAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwxJAAhAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4IgC8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAJAxJB0LAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- ALwLCx0dIh0dCwATAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACx0dAB0dIiIiIiId
- CxMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvAsdAB0dIiQkAyQkIiIiHSIAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAIgMxMVhZmZqZAyQiHR0AAAAAkAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAvAsdISIDMThZWVmgvaCZWVIkIh0AAB0dIh0hCwALCwALtgAAAAAAAAAAAAAAAOwAAB0iMTEx
- ODhYWZrDw8Ofn1hSJCIAHQAdACIAHSIkAwsdOAAAAADeExMTCwsLIiIkMTEyODg3MllZmprDw8PDwllS
- MSQdHQAAAB0AIiQkAAAAvDi8AAAxAzExMTExMTI4Nzg4ODc4ODhZXpnDw8PDml1YNwMkIh0AAB0hIiQA
- AAAAACIAAAA4ODc4Nzg4ODg4ODg4ODg4ODhZWV6avb2gmllZODcxJCIAAAAdIgMLAAAAACIAAACGE0+G
- T4bs7Oy8vLy8vAAxODg4ODg4NzIyMSQdHQAAvADsCwAiJDExAAAAwjjsAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAALMSQAAAAAAAAAAAAAAAAAEyI4MQsiOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALMSQAAAAA
- AAAAAAAAAAAAAAC8CwsAEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8AAsAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////AAD///////8AAP///////wAA////////
- AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
- /////wAA//8AAH//AAD//wAAf/8AAP//4AP//wAA///4B///AAD///gP//8AAP///B///wAA///8H///
- AAD///wf//8AAP///h///wAA///8H///AAD//+AD//8AAP//wAD//wAA//4AAD//AAD//AAAB/8AAP/w
- AAAAAwAA/8AAAAABAADAAAAAADgAAMAAAAAAPAAAwAAAAAA8AADAAAAAIDgAAP///j/+AQAA///+P/+D
- AAD///4///8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
- /////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WPF_D3D/app.config b/samples/CSharp/WPF_D3D/app.config
deleted file mode 100644
index 786a845b30..0000000000
--- a/samples/CSharp/WPF_D3D/app.config
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/samples/CSharp/WPF_D3D/res/MainFrame.ico b/samples/CSharp/WPF_D3D/res/MainFrame.ico
deleted file mode 100644
index 99dbceb637..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/MainFrame.ico and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/document.png b/samples/CSharp/WPF_D3D/res/document.png
deleted file mode 100644
index 1ba28fff33..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/document.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/help.png b/samples/CSharp/WPF_D3D/res/help.png
deleted file mode 100644
index e57336285e..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/help.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/lamp.png b/samples/CSharp/WPF_D3D/res/lamp.png
deleted file mode 100644
index a5a6775c33..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/lamp.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/new.png b/samples/CSharp/WPF_D3D/res/new.png
deleted file mode 100644
index 953757a62f..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/new.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/occ_logo.bmp b/samples/CSharp/WPF_D3D/res/occ_logo.bmp
deleted file mode 100644
index 443a7de612..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/occ_logo.bmp and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/tool_color.png b/samples/CSharp/WPF_D3D/res/tool_color.png
deleted file mode 100644
index b37ad7d480..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/tool_color.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/tool_delete.png b/samples/CSharp/WPF_D3D/res/tool_delete.png
deleted file mode 100644
index aaab07fc9f..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/tool_delete.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/tool_material.png b/samples/CSharp/WPF_D3D/res/tool_material.png
deleted file mode 100644
index 41e936855e..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/tool_material.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/tool_shading.png b/samples/CSharp/WPF_D3D/res/tool_shading.png
deleted file mode 100644
index 6bb9dc46de..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/tool_shading.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/tool_transparency.png b/samples/CSharp/WPF_D3D/res/tool_transparency.png
deleted file mode 100644
index 6b42536eae..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/tool_transparency.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/tool_wireframe.png b/samples/CSharp/WPF_D3D/res/tool_wireframe.png
deleted file mode 100644
index 57c560f15a..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/tool_wireframe.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_axo.png b/samples/CSharp/WPF_D3D/res/view_axo.png
deleted file mode 100644
index c9a9226180..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_axo.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_back.png b/samples/CSharp/WPF_D3D/res/view_back.png
deleted file mode 100644
index 0798f52938..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_back.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_bottom.png b/samples/CSharp/WPF_D3D/res/view_bottom.png
deleted file mode 100644
index c7cfdc208a..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_bottom.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_comp_off.png b/samples/CSharp/WPF_D3D/res/view_comp_off.png
deleted file mode 100644
index c900b196f0..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_comp_off.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_comp_on.png b/samples/CSharp/WPF_D3D/res/view_comp_on.png
deleted file mode 100644
index 73ca4c83d0..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_comp_on.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_fitall.png b/samples/CSharp/WPF_D3D/res/view_fitall.png
deleted file mode 100644
index 21d2f423ef..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_fitall.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_fitarea.png b/samples/CSharp/WPF_D3D/res/view_fitarea.png
deleted file mode 100644
index f20f5c0554..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_fitarea.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_front.png b/samples/CSharp/WPF_D3D/res/view_front.png
deleted file mode 100644
index a9e99c59b6..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_front.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_glpan.png b/samples/CSharp/WPF_D3D/res/view_glpan.png
deleted file mode 100644
index 02a9c1cb8d..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_glpan.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_left.png b/samples/CSharp/WPF_D3D/res/view_left.png
deleted file mode 100644
index 7d25b6ab2f..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_left.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_pan.png b/samples/CSharp/WPF_D3D/res/view_pan.png
deleted file mode 100644
index 0e9a6a5a03..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_pan.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_reset.png b/samples/CSharp/WPF_D3D/res/view_reset.png
deleted file mode 100644
index 38849fd694..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_reset.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_right.png b/samples/CSharp/WPF_D3D/res/view_right.png
deleted file mode 100644
index 5540220cfa..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_right.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_rotate.png b/samples/CSharp/WPF_D3D/res/view_rotate.png
deleted file mode 100644
index 7e5d013b9f..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_rotate.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_top.png b/samples/CSharp/WPF_D3D/res/view_top.png
deleted file mode 100644
index b788de36fb..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_top.png and /dev/null differ
diff --git a/samples/CSharp/WPF_D3D/res/view_zoom.png b/samples/CSharp/WPF_D3D/res/view_zoom.png
deleted file mode 100644
index 1b50a37bc8..0000000000
Binary files a/samples/CSharp/WPF_D3D/res/view_zoom.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/About.xaml b/samples/CSharp/WPF_WinForms/About.xaml
deleted file mode 100644
index 950405f605..0000000000
--- a/samples/CSharp/WPF_WinForms/About.xaml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WPF_WinForms/About.xaml.cs b/samples/CSharp/WPF_WinForms/About.xaml.cs
deleted file mode 100644
index cc06e3a8a3..0000000000
--- a/samples/CSharp/WPF_WinForms/About.xaml.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Shapes;
-
-namespace IE_WPF_WinForms
-{
- ///
- /// Interaction logic for About.xaml
- ///
- public partial class AboutDialog : Window
- {
- public AboutDialog()
- {
- this.InitializeComponent();
-
- CommandBinding aBind_Ok = new CommandBinding( IECommands.AboutOk );
- aBind_Ok.Executed += OkCommand_Executed;
- aBind_Ok.CanExecute += OkCommand_CanExecute;
- CommandBindings.Add( aBind_Ok );
- }
-
- private void OkCommand_Executed( object sender, ExecutedRoutedEventArgs e )
- {
- this.Close();
- }
-
- private void OkCommand_CanExecute( object sender, CanExecuteRoutedEventArgs e )
- {
- e.CanExecute = true;
- }
- }
-}
\ No newline at end of file
diff --git a/samples/CSharp/WPF_WinForms/App.xaml b/samples/CSharp/WPF_WinForms/App.xaml
deleted file mode 100644
index d4faa615f2..0000000000
--- a/samples/CSharp/WPF_WinForms/App.xaml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/CSharp/WPF_WinForms/App.xaml.cs b/samples/CSharp/WPF_WinForms/App.xaml.cs
deleted file mode 100644
index 2da10a4c40..0000000000
--- a/samples/CSharp/WPF_WinForms/App.xaml.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Linq;
-using System.Windows;
-
-namespace IE_WPF_WinForms
-{
- ///
- /// Interaction logic for App.xaml
- ///
- public partial class App : Application
- {
- }
-}
diff --git a/samples/CSharp/WPF_WinForms/IECommands.cs b/samples/CSharp/WPF_WinForms/IECommands.cs
deleted file mode 100644
index 55c44f6c93..0000000000
--- a/samples/CSharp/WPF_WinForms/IECommands.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows.Input;
-
-namespace IE_WPF_WinForms
-{
- public class IECommands
- {
- public static RoutedUICommand New { get; private set; }
- public static RoutedUICommand Close { get; private set; }
- public static RoutedUICommand Quit { get; private set; }
- public static RoutedUICommand About { get; private set; }
- public static RoutedUICommand AboutOk { get; private set; }
-
- static IECommands()
- {
- #region menu
-
- InputGestureCollection inputsNew = new InputGestureCollection();
- inputsNew.Add( new KeyGesture( Key.N, ModifierKeys.Control, "Ctrl + N" ) );
- New = new RoutedUICommand( "New", "New", typeof(IECommands), inputsNew );
-
- Close = new RoutedUICommand( "Close", "Close", typeof(IECommands) );
-
- InputGestureCollection inputsQuit = new InputGestureCollection();
- inputsQuit.Add( new KeyGesture( Key.F4, ModifierKeys.Alt, "Alt + F4" ) );
- Quit = new RoutedUICommand( "Quit", "Quit", typeof(IECommands), inputsQuit );
-
- InputGestureCollection inputsAbout = new InputGestureCollection();
- inputsAbout.Add( new KeyGesture( Key.F1 ) );
- About = new RoutedUICommand( "About", "About", typeof(IECommands), inputsAbout );
-
- #endregion
-
- #region aboutDlg
- InputGestureCollection inputsAboutOk = new InputGestureCollection();
- inputsAboutOk.Add( new KeyGesture( Key.Enter ) );
- AboutOk = new RoutedUICommand( "AboutOk", "AboutOk", typeof(IECommands), inputsAboutOk );
- #endregion
- }
- }
-}
diff --git a/samples/CSharp/WPF_WinForms/IE_WPF_WinForms.csproj b/samples/CSharp/WPF_WinForms/IE_WPF_WinForms.csproj
deleted file mode 100644
index a49e95f164..0000000000
--- a/samples/CSharp/WPF_WinForms/IE_WPF_WinForms.csproj
+++ /dev/null
@@ -1,263 +0,0 @@
-
-
-
- Debug
- AnyCPU
- 9.0.30729
- 2.0
- {D12A8897-5BF8-4345-BBB0-8ADE4B9FB9A7}
- WinExe
- Properties
- IE_WPF_WinForms
- IE_WPF_WinForms
- v4.8
- 512
- {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- 4
- 3.0.1927.0
-
-
- 3.5
-
-
- false
- publish\
- true
- Disk
- false
- Foreground
- 7
- Days
- false
- false
- true
- 0
- 1.0.0.%2a
- false
- true
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
- true
- ..\win32\$(VCVER)\bind\
- DEBUG;TRACE
- full
- x86
- prompt
-
-
- ..\win32\$(VCVER)\bin\
- TRACE
- true
- pdbonly
- x86
- prompt
-
-
- true
- ..\win64\$(VCVER)\bind\
- DEBUG;TRACE
- full
- x64
- prompt
-
-
- ..\win64\$(VCVER)\bin\
- TRACE
- true
- pdbonly
- x64
- prompt
-
-
-
-
- 3.5
-
-
-
-
-
- 3.5
-
-
- 3.5
-
-
-
-
- 3.0
-
-
- 3.0
-
-
- 3.0
-
-
- 3.0
-
-
- 3.0
-
-
-
-
- MSBuild:Compile
- Designer
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
- MSBuild:Compile
- Designer
-
-
- App.xaml
- Code
-
-
- MainWindow.xaml
- Code
-
-
-
-
- About.xaml
-
-
-
- MaterialDlg.xaml
-
-
- Code
-
-
- True
- True
- Resources.resx
-
-
- True
- Settings.settings
- True
-
-
- Form
-
-
- Form
-
-
- ResXFileCodeGenerator
- Resources.Designer.cs
-
-
- TransparencyDialog.cs
-
-
-
- SettingsSingleFileGenerator
- Settings.Designer.cs
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}
- OCCTProxy
-
-
-
-
- False
- .NET Framework 3.5 SP1 Client Profile
- false
-
-
- False
- .NET Framework 3.5 SP1
- true
-
-
- False
- Windows Installer 3.1
- true
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WPF_WinForms/MainWindow.xaml b/samples/CSharp/WPF_WinForms/MainWindow.xaml
deleted file mode 100644
index 7d80d3391a..0000000000
--- a/samples/CSharp/WPF_WinForms/MainWindow.xaml
+++ /dev/null
@@ -1,169 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/CSharp/WPF_WinForms/MainWindow.xaml.cs b/samples/CSharp/WPF_WinForms/MainWindow.xaml.cs
deleted file mode 100644
index c4a40742af..0000000000
--- a/samples/CSharp/WPF_WinForms/MainWindow.xaml.cs
+++ /dev/null
@@ -1,614 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using System.ComponentModel;
-using System.Windows.Forms.Integration;
-
-namespace IE_WPF_WinForms
-{
- ///
- /// Interaction logic for MainWindow.xaml
- ///
- public partial class MainWindow : Window, INotifyPropertyChanged
- {
- public event PropertyChangedEventHandler PropertyChanged;
- protected void RaisePropertyChanged( string thePropertyName )
- {
- if ( PropertyChanged != null )
- {
- PropertyChanged( this, new PropertyChangedEventArgs( thePropertyName ) );
- }
- }
-
- public MainWindow()
- {
- InitializeComponent();
-
- StatusBarText = String.Empty;
- IsHlrOffPushed = false;
- IsHlrOnPushed = true;
- IsZoomWinEnabled = true;
-
- #region menu operations
-
- CommandBinding aBind_New = new CommandBinding( IECommands.New );
- aBind_New.Executed += NewCommand_Executed;
- CommandBindings.Add( aBind_New );
-
- CommandBinding aBind_Close = new CommandBinding( IECommands.Close );
- aBind_Close.Executed += CloseCommand_Executed;
- aBind_Close.CanExecute += CloseCommand_CanExecute;
- CommandBindings.Add( aBind_Close );
-
- CommandBinding aBind_Quit = new CommandBinding( IECommands.Quit );
- aBind_Quit.Executed += QuitCommand_Executed;
- CommandBindings.Add( aBind_Quit );
-
- CommandBinding aBind_About = new CommandBinding( IECommands.About );
- aBind_About.Executed += AboutCommand_Executed;
- CommandBindings.Add( aBind_About );
-
- # endregion
-
- PreviewKeyDown += new KeyEventHandler( OnPreviewKeyDown );
- PreviewKeyUp += new KeyEventHandler( OnPreviewKeyUp );
- }
-
- private String myStatusBarText;
- public String StatusBarText
- {
- get
- {
- return myStatusBarText;
- }
- private set
- {
- myStatusBarText = value;
- RaisePropertyChanged( "StatusBarText" );
- }
- }
-
- private bool isHlrOffPushed;
- public Boolean IsHlrOffPushed
- {
- get
- {
- return isHlrOffPushed;
- }
- set
- {
- isHlrOffPushed = value;
- RaisePropertyChanged("isHlrOffPushed");
- }
- }
-
- private bool isHlrOnPushed;
- public Boolean IsHlrOnPushed
- {
- get
- {
- return isHlrOnPushed;
- }
- set
- {
- isHlrOnPushed = value;
- RaisePropertyChanged("IsHlrOnPushed");
- }
- }
-
- private bool isZoomWinEnabled;
- public Boolean IsZoomWinEnabled
- {
- get
- {
- return isZoomWinEnabled;
- }
- set
- {
- isZoomWinEnabled = value;
- RaisePropertyChanged("IsZoomWinEnabled");
- }
- }
-
- private OCCViewer ActiveViewer
- {
- get
- {
- if ( !IsDocumentOpen )
- {
- return null;
- }
-
- WindowsFormsHost aHost = ( ViewPanel.SelectedContent ) as WindowsFormsHost;
- if( aHost == null )
- {
- return null;
- }
-
- return aHost.Child as OCCViewer;
- }
- }
-
- public Boolean IsDocumentOpen
- {
- get
- {
- return ViewPanel.Items.Count > 0;
- }
- }
-
- private int myDocumentCounter = 1;
-
- private void NewCommand_Executed( object sender, ExecutedRoutedEventArgs e )
- {
- WindowsFormsHost aHost = new WindowsFormsHost();
- OCCViewer aForm = new OCCViewer();
- aForm.Show();
- aHost.Child = aForm;
-
- TabItem aNewTab = new TabItem();
- aNewTab.Content = aHost;
- aNewTab.IsSelected = true;
- aNewTab.Header = "Document " + myDocumentCounter.ToString();
- myDocumentCounter++;
-
- ViewPanel.Items.Add( aNewTab );
-
- // update XAML property
- RaisePropertyChanged("IsDocumentOpen");
- }
-
- private void CloseCommand_Executed(object sender, ExecutedRoutedEventArgs e)
- {
- if ( ViewPanel.Items.Count > 0 )
- {
- ViewPanel.Items.Remove( ViewPanel.SelectedItem );
- }
-
- // update XAML property
- RaisePropertyChanged( "IsDocumentOpen" );
- }
-
- private void CloseCommand_CanExecute(object sender, CanExecuteRoutedEventArgs e)
- {
- e.CanExecute = IsDocumentOpen;
- }
-
- private void QuitCommand_Executed( object sender, ExecutedRoutedEventArgs e )
- {
- this.Close();
- }
-
- private void ImportBRep_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.ImportModel( ModelFormat.BREP );
- }
- }
-
- private void ImportIges_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.ImportModel( ModelFormat.IGES );
- }
- }
-
- private void ImportStep_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.ImportModel( ModelFormat.STEP );
- }
- }
-
- private void ExportBRep_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.ExportModel( ModelFormat.BREP );
- }
- }
-
- private void ExportStep_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.ExportModel( ModelFormat.STEP );
- }
- }
-
- private void ExportIges_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.ExportModel( ModelFormat.IGES );
- }
- }
-
- private void ExportStl_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.ExportModel( ModelFormat.STL );
- }
- }
-
- private void ExportVrml_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.ExportModel( ModelFormat.VRML );
- }
- }
-
- private void ExportImage_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.ExportModel( ModelFormat.IMAGE );
- }
- }
-
- private void FitAllBtn_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.FitAll();
- }
- }
-
- private void ZoomWindowBtn_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- IsZoomWinEnabled = false;
- ActiveViewer.ZoomWindow();
- }
- }
-
- private void DynamicZoomingBtn_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.DynamicZooming();
- }
- }
-
- private void DynamicPanningBtn_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.DynamicPanning();
- }
- }
-
- private void GlobalPanningBtn_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.GlobalPanning();
- }
- }
-
- private void FrontBtn_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.FrontView();
- }
- }
-
- private void BackBtn_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.BackView();
- }
- }
-
- private void TopBtn_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.TopView();
- }
- }
-
- private void BottomBtn_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.BottomView();
- }
- }
-
- private void LeftBtn_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.LeftView();
- }
- }
-
- private void RightBtn_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.RightView();
- }
- }
-
- private void AxoBtn_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.AxoView();
- }
- }
-
- private void ResetBtn_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.Reset();
- }
- }
-
- private void DynamicRotationBtn_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.DynamicRotation();
- }
- }
-
- private void HiddenOffBtn_Click( object sender, RoutedEventArgs e )
- {
- IsHlrOffPushed = true;
- IsHlrOnPushed = false;
- if ( ActiveViewer != null )
- {
- ActiveViewer.HiddenOff();
- }
- }
-
- private void HiddenOnBtn_Click( object sender, RoutedEventArgs e )
- {
- IsHlrOffPushed = false;
- IsHlrOnPushed = true;
- if (ActiveViewer != null)
- {
- ActiveViewer.HiddenOn();
- }
- }
-
- private void AboutCommand_Executed( object sender, ExecutedRoutedEventArgs e )
- {
- AboutDialog aDlg = new AboutDialog();
- aDlg.ShowDialog();
- }
-
- private void ToolBar_MouseEnter( object sender, MouseEventArgs e )
- {
- StatusBarText = "Toolbar";
- }
-
- private void DocumentToolBar_MouseEnter(object sender, MouseEventArgs e)
- {
- StatusBarText = "Document toolbar";
- }
-
- private void ViewToolBar_MouseEnter(object sender, MouseEventArgs e)
- {
- StatusBarText = "View toolbar";
- }
-
- private void ToolBar_MouseLeave( object sender, MouseEventArgs e )
- {
- StatusBarText = "";
- }
-
- public void OnZoomingFinished( object sender, EventArgs e )
- {
- IsZoomWinEnabled = true;
- }
-
- public bool IsWireframeEnabled
- {
- get
- {
- if ( ActiveViewer != null )
- {
- return ActiveViewer.IsWireframeEnabled;
- }
- return false;
- }
- }
-
- private void Wireframe_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.Wireframe();
- }
- }
-
- private void Shading_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.Shading();
- }
- }
-
- public bool IsShadingEnabled
- {
- get
- {
- if ( ActiveViewer != null )
- {
- return ActiveViewer.IsShadingEnabled;
- }
- return false;
- }
- }
-
- private void Color_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.Color();
- }
- }
-
- public bool IsColorEnabled
- {
- get
- {
- if ( ActiveViewer != null )
- {
- return ActiveViewer.IsColorEnabled;
- }
- return false;
- }
- }
-
- private void Material_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.Material();
- }
- }
-
- public bool IsMaterialEnabled
- {
- get
- {
- if ( ActiveViewer != null )
- {
- return ActiveViewer.IsMaterialEnabled;
- }
- return false;
- }
- }
-
- private void Transparency_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.Transparency();
- }
- }
-
- public bool IsTransparencyEnabled
- {
- get
- {
- if ( ActiveViewer != null )
- {
- return ActiveViewer.IsTransparencyEnabled;
- }
- return false;
- }
- }
-
- private void Delete_Click( object sender, RoutedEventArgs e )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.Delete();
- }
- }
-
- public bool IsDeleteEnabled
- {
- get
- {
- if ( ActiveViewer != null )
- {
- return ActiveViewer.IsDeleteEnabled;
- }
- return false;
- }
- }
-
- private void AvaliabiltyOfOperationToolbarChanged()
- {
- RaisePropertyChanged( "IsWireframeEnabled" );
- RaisePropertyChanged( "IsShadingEnabled" );
- RaisePropertyChanged( "IsTransparencyEnabled" );
- RaisePropertyChanged( "IsColorEnabled" );
- RaisePropertyChanged( "IsMaterialEnabled" );
- RaisePropertyChanged( "IsDeleteEnabled" );
- }
-
- public void OnAvaliabiltyOfOperationsChanged( object sender, EventArgs e )
- {
- AvaliabiltyOfOperationToolbarChanged();
- }
-
- private void OnViewerChanged( object sender, SelectionChangedEventArgs e )
- {
- if ( e.RemovedItems.Count > 0 )
- {
- WindowsFormsHost aHost = ( ( e.RemovedItems[0] as TabItem).Content ) as WindowsFormsHost;
- if( aHost == null )
- {
- return;
- }
- OCCViewer aViewer = aHost.Child as OCCViewer;
- if( aViewer != null )
- {
- aViewer.ZoomingFinished -= new EventHandler( OnZoomingFinished );
- aViewer.AvaliabiltyOfOperationsChanged -= new EventHandler( OnAvaliabiltyOfOperationsChanged );
- }
- }
-
- if ( e.AddedItems.Count > 0 )
- {
- WindowsFormsHost aHost = ( (e.AddedItems[0] as TabItem).Content ) as WindowsFormsHost;
- if ( aHost == null )
- {
- return;
- }
- OCCViewer aViewer = aHost.Child as OCCViewer;
- if ( aViewer != null )
- {
- aViewer.ZoomingFinished += new EventHandler( OnZoomingFinished );
- aViewer.AvaliabiltyOfOperationsChanged += new EventHandler( OnAvaliabiltyOfOperationsChanged );
- }
- }
-
- AvaliabiltyOfOperationToolbarChanged();
- }
-
- private void OnPreviewKeyDown( object sender, KeyEventArgs args )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.OnKeyDown( args.Key );
- }
- }
-
- private void OnPreviewKeyUp( object sender, KeyEventArgs args )
- {
- if ( ActiveViewer != null )
- {
- ActiveViewer.OnKeyUp();
- }
- }
- }
-}
diff --git a/samples/CSharp/WPF_WinForms/MaterialDlg.xaml b/samples/CSharp/WPF_WinForms/MaterialDlg.xaml
deleted file mode 100644
index 8b2249dfc9..0000000000
--- a/samples/CSharp/WPF_WinForms/MaterialDlg.xaml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WPF_WinForms/MaterialDlg.xaml.cs b/samples/CSharp/WPF_WinForms/MaterialDlg.xaml.cs
deleted file mode 100644
index e89ace7d59..0000000000
--- a/samples/CSharp/WPF_WinForms/MaterialDlg.xaml.cs
+++ /dev/null
@@ -1,101 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Shapes;
-
-namespace IE_WPF_WinForms
-{
- public enum Material
- {
- Brass,
- Bronze,
- Copper,
- Gold,
- Pewter,
- Plaster,
- Plastic,
- Silver
- }
-
- ///
- /// Interaction logic for MaterialDlg.xaml
- ///
- public partial class MaterialDlg : Window
- {
- public MaterialDlg( OCCTProxy theView )
- {
- this.InitializeComponent();
-
- if ( theView == null )
- {
- MessageBox.Show( "Fatal Error during the graphic initialisation", "Error!" );
- }
-
- View = theView;
-
- SetInitialState();
- }
-
- public OCCTProxy View { get; private set; }
-
- private void PlasterBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Plaster );
- View.UpdateCurrentViewer();
- }
-
- private void BrassBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Brass );
- View.UpdateCurrentViewer();
- }
-
- private void BronzeBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Bronze );
- View.UpdateCurrentViewer();
- }
-
- private void CopperBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Copper );
- View.UpdateCurrentViewer();
- }
-
- private void GoldBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Gold );
- View.UpdateCurrentViewer();
- }
-
- private void PewterBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Pewter );
- View.UpdateCurrentViewer();
- }
-
- private void PlasticBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Plastic );
- View.UpdateCurrentViewer();
- }
-
- private void SilverBtn_Checked( object sender, RoutedEventArgs e )
- {
- View.SetMaterial( (int)Material.Silver );
- View.UpdateCurrentViewer();
- }
-
- private void SetInitialState()
- {
- // TODO
- }
- }
-}
\ No newline at end of file
diff --git a/samples/CSharp/WPF_WinForms/OCCViewer.cs b/samples/CSharp/WPF_WinForms/OCCViewer.cs
deleted file mode 100644
index 733ae7204b..0000000000
--- a/samples/CSharp/WPF_WinForms/OCCViewer.cs
+++ /dev/null
@@ -1,832 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows.Forms;
-
-namespace IE_WPF_WinForms
-{
- public enum CurrentAction3d
- {
- CurAction3d_Nothing,
- CurAction3d_DynamicZooming,
- CurAction3d_WindowZooming,
- CurAction3d_DynamicPanning,
- CurAction3d_GlobalPanning,
- CurAction3d_DynamicRotation
- }
- public enum CurrentPressedKey
- {
- CurPressedKey_Nothing,
- CurPressedKey_Ctrl,
- CurPressedKey_Shift
- }
- public enum ModelFormat
- {
- BREP,
- STEP,
- IGES,
- VRML,
- STL,
- IMAGE
- }
-
- public enum DisplayMode
- {
- Wireframe,
- Shading
- }
-
- public class OCCViewer : System.Windows.Forms.Form
- {
- public event EventHandler ZoomingFinished;
- protected void RaiseZoomingFinished()
- {
- if ( ZoomingFinished != null )
- {
- ZoomingFinished( this, EventArgs.Empty );
- }
- }
-
- public event EventHandler AvaliabiltyOfOperationsChanged;
- protected void RaiseAvaliabiltyOfOperationsChanged()
- {
- if ( AvaliabiltyOfOperationsChanged != null )
- {
- AvaliabiltyOfOperationsChanged( this, EventArgs.Empty );
- }
- }
-
- public OCCTProxy View { get; private set; }
- public CurrentAction3d CurrentMode { get; private set; }
- private CurrentPressedKey CurrentPressedKey { get; set; }
- private bool IsRectVisible { get; set; }
- public bool DegenerateMode { get; private set; }
-
- public bool IsWireframeEnabled { get; private set; }
- public bool IsShadingEnabled { get; private set; }
- public bool IsTransparencyEnabled { get; private set; }
- public bool IsColorEnabled { get; private set; }
- public bool IsMaterialEnabled { get; private set; }
- public bool IsDeleteEnabled { get; private set; }
-
- private float myCurZoom;
- private int myXmin;
- private int myYmin;
- private int myXmax;
- private int myYmax;
- private int myRectDownX;
- private int myRectDownY;
- private int myButtonDownX;
- private int myButtonDownY;
-
- private ContextMenu Popup { get; set; }
- private MenuItem ContextWireframe;
- private MenuItem ContextShading;
- private MenuItem ContextColor;
- private MenuItem ContextMaterial;
- private MenuItem ContextDelete;
- private MenuItem ContextBackground;
- private MenuItem ContextTransparency;
-
-
- public OCCViewer()
- {
- InitializeComponent();
-
- View = new OCCTProxy();
- View.InitOCCTProxy();
- if ( !View.InitViewer( this.Handle ) )
- {
- MessageBox.Show( "Fatal Error during the graphic initialisation", "Error!" );
- }
-
- CurrentMode = CurrentAction3d.CurAction3d_Nothing;
- CurrentPressedKey = CurrentPressedKey.CurPressedKey_Nothing;
- IsRectVisible = false;
- DegenerateMode = true;
- }
-
- private void InitializeComponent()
- {
- ControlBox = false;
- TopLevel = false;
-
- this.ImeMode = System.Windows.Forms.ImeMode.NoControl;
-
- SizeChanged += new System.EventHandler( OnSizeChanged );
- Paint += new System.Windows.Forms.PaintEventHandler( OnPaint );
-
- MouseDown += new System.Windows.Forms.MouseEventHandler( OnMouseDown );
- MouseUp += new System.Windows.Forms.MouseEventHandler( OnMouseUp );
- MouseMove += new System.Windows.Forms.MouseEventHandler( OnMouseMove );
-
- Popup = new ContextMenu();
- ContextWireframe = new MenuItem();
- ContextShading = new MenuItem();
- ContextColor = new MenuItem();
- ContextMaterial = new MenuItem();
- ContextTransparency = new MenuItem();
- ContextDelete = new MenuItem();
- ContextBackground = new MenuItem();
-
- ContextWireframe.Text = "Wireframe";
- ContextShading.Text = "Shading";
- ContextColor.Text = "Color";
- ContextMaterial.Text = "Material";
- ContextTransparency.Text = "Transparency";
- ContextDelete.Text = "Delete";
- ContextBackground.Text = "Background";
-
- ContextWireframe.Click += new System.EventHandler( ContextWireframe_Click );
- ContextShading.Click += new System.EventHandler( ContextShading_Click );
- ContextColor.Click += new System.EventHandler( ContextColor_Click );
- ContextMaterial.Click += new System.EventHandler( ContextMaterial_Click );
- ContextTransparency.Click += new System.EventHandler( ContextTransparency_Click );
- ContextDelete.Click += new System.EventHandler( ContextDelete_Click );
- ContextBackground.Click += new System.EventHandler( ContextBackground_Click );
-
- Popup.MenuItems.AddRange( new MenuItem[] { ContextWireframe,
- ContextShading,
- ContextColor,
- ContextMaterial,
- ContextTransparency,
- ContextDelete,
- ContextBackground } );
- Popup.Popup += new System.EventHandler( OnPopup );
- }
-
- private void OnPaint(object sender, System.Windows.Forms.PaintEventArgs e)
- {
- View.RedrawView();
- View.UpdateView();
- }
-
- private void OnSizeChanged(object sender, System.EventArgs e)
- {
- View.UpdateView();
- }
-
- public void ImportModel( ModelFormat theFormat )
- {
- int aFormat = 10;
- OpenFileDialog anOpenDialog = new OpenFileDialog();
- string aDataDir = Environment.GetEnvironmentVariable("CSF_OCCTDataPath");
- string aFilter = "";
-
- switch ( theFormat )
- {
- case ModelFormat.BREP:
- anOpenDialog.InitialDirectory = (aDataDir + "\\occ");
- aFormat = 0;
- aFilter = "BREP Files (*.brep *.rle)|*.brep; *.rle";
- break;
- case ModelFormat.STEP:
- anOpenDialog.InitialDirectory = (aDataDir + "\\step");
- aFormat = 1;
- aFilter = "STEP Files (*.stp *.step)|*.stp; *.step";
- break;
- case ModelFormat.IGES:
- anOpenDialog.InitialDirectory = (aDataDir + "\\iges");
- aFormat = 2;
- aFilter = "IGES Files (*.igs *.iges)|*.igs; *.iges";
- break;
- default:
- break;
- }
-
- anOpenDialog.Filter = aFilter + "|All files (*.*)|*.*";
- if (anOpenDialog.ShowDialog() == DialogResult.OK)
- {
- string aFileName = anOpenDialog.FileName;
- if (aFileName == "")
- {
- return;
- }
-
- Cursor = System.Windows.Forms.Cursors.WaitCursor;
- if ( !View.TranslateModel( aFileName, aFormat, true ) )
- {
- MessageBox.Show( "Can't read this file", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Warning );
- }
- Cursor = System.Windows.Forms.Cursors.Default;
- }
- View.ZoomAllView();
- }
-
- public void ExportModel( ModelFormat theFormat )
- {
- int aFormat = 10;
- SaveFileDialog saveDialog = new SaveFileDialog();
- string aDataDir = Environment.GetEnvironmentVariable("CSF_OCCTDataPath");
- string aFilter = "";
-
- switch ( theFormat )
- {
- case ModelFormat.BREP:
- saveDialog.InitialDirectory = ( aDataDir + "\\occ" );
- aFormat = 0;
- aFilter = "BREP Files (*.brep *.rle)|*.brep; *.rle";
- break;
- case ModelFormat.STEP:
- saveDialog.InitialDirectory = ( aDataDir + "\\step" );
- aFormat = 1;
- aFilter = "STEP Files (*.stp *.step)|*.step; *.stp";
- break;
- case ModelFormat.IGES:
- saveDialog.InitialDirectory = ( aDataDir + "\\iges" );
- aFormat = 2;
- aFilter = "IGES Files (*.igs *.iges)| *.iges; *.igs";
- break;
- case ModelFormat.VRML:
- saveDialog.InitialDirectory = ( aDataDir + "\\vrml" );
- aFormat = 3;
- aFilter = "VRML Files (*.vrml)|*.vrml";
- break;
- case ModelFormat.STL:
- saveDialog.InitialDirectory = ( aDataDir + "\\stl" );
- aFormat = 4;
- aFilter = "STL Files (*.stl)|*.stl";
- break;
- case ModelFormat.IMAGE:
- saveDialog.InitialDirectory = ( aDataDir + "\\images" );
- aFormat = 5;
- aFilter = "Images Files (*.bmp)|*.bmp";
- break;
- default:
- break;
- }
-
- saveDialog.Filter = aFilter;
- if ( saveDialog.ShowDialog() == DialogResult.OK )
- {
- string aFileName = saveDialog.FileName;
- if ( aFileName == "" )
- {
- return;
- }
-
- Cursor = System.Windows.Forms.Cursors.WaitCursor;
- if ( !View.TranslateModel( aFileName, aFormat, false ) )
- {
- MessageBox.Show( "Can not write this file", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Warning );
- }
- Cursor = System.Windows.Forms.Cursors.Default;
- }
- }
-
- public void FitAll()
- {
- View.ZoomAllView();
- }
-
- public void ZoomWindow()
- {
- CurrentMode = CurrentAction3d.CurAction3d_WindowZooming;
- }
-
- public void DynamicZooming()
- {
- CurrentMode = CurrentAction3d.CurAction3d_DynamicZooming;
- }
-
- public void DynamicPanning()
- {
- CurrentMode = CurrentAction3d.CurAction3d_DynamicPanning;
- }
-
- public void GlobalPanning()
- {
- myCurZoom = View.Scale();
- CurrentMode = CurrentAction3d.CurAction3d_GlobalPanning;
- }
-
- public void AxoView()
- {
- View.AxoView();
- }
-
- public void FrontView()
- {
- View.FrontView();
- }
-
- public void TopView()
- {
- View.TopView();
- }
-
- public void LeftView()
- {
- View.LeftView();
- }
-
- public void BackView()
- {
- View.BackView();
- }
-
- public void RightView()
- {
- View.RightView();
- }
-
- public void Reset()
- {
- View.Reset();
- }
-
- public void BottomView()
- {
- View.BottomView();
- }
-
- public void HiddenOff()
- {
- View.SetDegenerateModeOff();
- DegenerateMode = false;
- }
-
- public void HiddenOn()
- {
- View.SetDegenerateModeOn();
- DegenerateMode = true;
- }
-
- public void DynamicRotation()
- {
- CurrentMode = CurrentAction3d.CurAction3d_DynamicRotation;
- }
-
- public void SelectionChanged()
- {
- switch ( View.DisplayMode() )
- {
- case -1:
- IsShadingEnabled = false;
- IsWireframeEnabled = false;
- break;
- case 0:
- IsWireframeEnabled = false;
- IsShadingEnabled = true;
- IsTransparencyEnabled = false;
- break;
- case 1:
- IsWireframeEnabled = true;
- IsShadingEnabled = false;
- IsTransparencyEnabled = true;
- break;
- case 10:
- IsWireframeEnabled = true;
- IsShadingEnabled = true;
- IsTransparencyEnabled = true;
- break;
- default:
- break;
- }
-
- if ( View.IsObjectSelected() )
- {
- IsColorEnabled = true;
- IsMaterialEnabled = true;
- IsDeleteEnabled = true;
- }
- else
- {
- IsColorEnabled = false;
- IsMaterialEnabled = false;
- IsTransparencyEnabled = false;
- IsDeleteEnabled = false;
- }
-
- RaiseAvaliabiltyOfOperationsChanged();
- }
-
- public void ChangeColor( bool IsObjectColor )
- {
- int r, g, b;
- if ( IsObjectColor )
- {
- r = View.GetObjColR();
- g = View.GetObjColG();
- b = View.GetObjColB();
- }
- else
- {
- r = View.GetBGColR();
- g = View.GetBGColG();
- b = View.GetBGColB();
- }
- System.Windows.Forms.ColorDialog ColDlg = new System.Windows.Forms.ColorDialog();
- ColDlg.Color = System.Drawing.Color.FromArgb( r, g, b );
- if ( ColDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK )
- {
- System.Drawing.Color c = ColDlg.Color;
- r = c.R;
- g = c.G;
- b = c.B;
- if ( IsObjectColor )
- {
- View.SetColor( r, g, b );
- }
- else
- {
- View.SetBackgroundColor( r, g, b );
- }
- }
- View.UpdateCurrentViewer();
- }
-
- public void Wireframe()
- {
- View.SetDisplayMode( (int)DisplayMode.Wireframe );
- View.UpdateCurrentViewer();
-
- SelectionChanged();
- RaiseZoomingFinished();
- }
-
- public void Shading()
- {
- View.SetDisplayMode( (int)DisplayMode.Shading );
- View.UpdateCurrentViewer();
-
- SelectionChanged();
- RaiseZoomingFinished();
- }
-
- public void Color()
- {
- ChangeColor( true );
- }
-
- public void Background()
- {
- ChangeColor( false );
- }
-
- public void Material()
- {
- MaterialDlg aDlg = new MaterialDlg( View );
- aDlg.ShowDialog();
- }
-
- public void Transparency()
- {
- TransparencyDialog dlg = new TransparencyDialog();
- dlg.View = View;
- dlg.ShowDialog( this );
- }
-
- public void Delete()
- {
- View.EraseObjects();
- SelectionChanged();
- }
-
- public void OnKeyDown( System.Windows.Input.Key theKey )
- {
- if ( theKey == System.Windows.Input.Key.LeftShift ||
- theKey == System.Windows.Input.Key.RightShift )
- {
- CurrentPressedKey = CurrentPressedKey.CurPressedKey_Shift;
- }
- else if (theKey == System.Windows.Input.Key.LeftCtrl ||
- theKey == System.Windows.Input.Key.RightCtrl )
- {
- CurrentPressedKey = CurrentPressedKey.CurPressedKey_Ctrl;
- }
- }
-
- public void OnKeyUp()
- {
- CurrentPressedKey = CurrentPressedKey.CurPressedKey_Nothing;
- }
-
- protected void MultiDragEvent( int x, int y, int theState )
- {
- if ( theState == -1 ) //mouse is down
- {
- myButtonDownX = x;
- myButtonDownY = y;
- }
- else if ( theState == 1) //mouse is up
- {
- View.ShiftSelect( Math.Min( myButtonDownX, x ), Math.Min( myButtonDownY, y ),
- Math.Max( myButtonDownX, x ), Math.Max( myButtonDownY, y ) );
- }
- }
-
- protected void DragEvent( int x, int y, int theState )
- {
- if ( theState == -1 ) //mouse is down
- {
- myButtonDownX = x;
- myButtonDownY = y;
- }
- else if ( theState == 1 ) //mouse is up
- {
- View.Select( Math.Min( myButtonDownX, x ), Math.Min( myButtonDownY, y ),
- Math.Max( myButtonDownX, x ), Math.Max( myButtonDownY, y ) );
- }
- }
-
- private void DrawRectangle( bool draw )
- {
- System.Drawing.Graphics gr = System.Drawing.Graphics.FromHwnd(Handle);
- System.Drawing.Pen p = null;
- if ( IsRectVisible || !draw )//erase the rect
- {
- int r = View.GetBGColR();
- int g = View.GetBGColG();
- int b = View.GetBGColB();
- p = new System.Drawing.Pen( System.Drawing.Color.FromArgb(r, g, b) );
- IsRectVisible = false;
- View.UpdateView();
- }
- else if ( draw )
- {
- p = new System.Drawing.Pen( System.Drawing.Color.White );
- IsRectVisible = true;
- }
- if ( p == null )
- {
- return;
- }
- int x = Math.Min( myXmin, myXmax );
- int y = Math.Min( myYmin, myYmax );
- gr.DrawRectangle( p, x, y, Math.Abs(myXmax - myXmin), Math.Abs(myYmax - myYmin) );
- myRectDownX = Math.Max( myXmin, myXmax );
- myRectDownY = Math.Max( myYmin, myYmax );
- }
-
- private void OnMouseDown( object sender, System.Windows.Forms.MouseEventArgs e )
- {
- if ( e.Button == MouseButtons.Left )
- {
- myXmin = e.X;
- myXmax = e.X;
- myYmin = e.Y;
- myYmax = e.Y;
- if ( CurrentPressedKey == CurrentPressedKey.CurPressedKey_Ctrl )
- {
- // start the dynamic zooming....
- CurrentMode = CurrentAction3d.CurAction3d_DynamicZooming;
- }
- else
- {
- switch ( CurrentMode )
- {
- case CurrentAction3d.CurAction3d_Nothing:
- if ( CurrentPressedKey == CurrentPressedKey.CurPressedKey_Shift )
- {
- MultiDragEvent( myXmax, myYmax, -1 );
- }
- else
- {
- DragEvent( myXmax, myYmax, -1 );
- }
- break;
- case CurrentAction3d.CurAction3d_DynamicRotation:
- if ( !DegenerateMode )
- {
- View.SetDegenerateModeOn();
- }
- View.StartRotation( e.X, e.Y );
- break;
- case CurrentAction3d.CurAction3d_WindowZooming:
- Cursor = Cursors.Hand;
- break;
- default:
- break;
- }
- }
- }
- else if ( e.Button == MouseButtons.Right )
- {
- if ( CurrentPressedKey == CurrentPressedKey.CurPressedKey_Ctrl )
- {
- if ( !DegenerateMode )
- {
- View.SetDegenerateModeOn();
- }
- View.StartRotation( e.X, e.Y );
- }
- else
- {
- Popup.Show( this, new System.Drawing.Point( e.X, e.Y ) );
- }
- }
- }
-
- private void OnMouseUp( object sender, System.Windows.Forms.MouseEventArgs e )
- {
- if ( e.Button == MouseButtons.Left )
- {
- if ( CurrentPressedKey == CurrentPressedKey.CurPressedKey_Ctrl )
- {
- return;
- }
- switch ( CurrentMode )
- {
- case CurrentAction3d.CurAction3d_Nothing:
- if ( e.X == myXmin && e.Y == myYmin )
- {
- myXmax = e.X;
- myYmax = e.Y;
- if ( CurrentPressedKey == CurrentPressedKey.CurPressedKey_Shift )
- {
- View.ShiftSelect();
- }
- else
- {
- View.Select();
- }
- }
- else
- {
- myXmax = e.X;
- myYmax = e.Y;
- DrawRectangle( false );
- if ( CurrentPressedKey == CurrentPressedKey.CurPressedKey_Shift )
- {
- MultiDragEvent( myXmax, myYmax, 1 );
- }
- else
- {
- DragEvent( myXmax, myYmax, 1 );
- }
- }
- break;
- case CurrentAction3d.CurAction3d_DynamicZooming:
- CurrentMode = CurrentAction3d.CurAction3d_Nothing;
- break;
- case CurrentAction3d.CurAction3d_WindowZooming:
- myXmax = e.X;
- myYmax = e.Y;
- DrawRectangle( false );
- int ValZWMin = 1;
- if ( Math.Abs(myXmax - myXmin) > ValZWMin &&
- Math.Abs(myXmax - myYmax) > ValZWMin )
- {
- View.WindowFitAll( myXmin, myYmin, myXmax, myYmax );
- }
- Cursor = Cursors.Arrow;
- RaiseZoomingFinished();
- CurrentMode = CurrentAction3d.CurAction3d_Nothing;
- break;
- case CurrentAction3d.CurAction3d_DynamicPanning:
- CurrentMode = CurrentAction3d.CurAction3d_Nothing;
- break;
- case CurrentAction3d.CurAction3d_GlobalPanning:
- View.Place( e.X, e.Y, myCurZoom );
- CurrentMode = CurrentAction3d.CurAction3d_Nothing;
- break;
- case CurrentAction3d.CurAction3d_DynamicRotation:
- CurrentMode = CurrentAction3d.CurAction3d_Nothing;
- if ( !DegenerateMode )
- {
- View.SetDegenerateModeOff();
- }
- else
- {
- View.SetDegenerateModeOn();
- }
- break;
- default:
- break;
- }
- }
- else if ( e.Button == MouseButtons.Right )
- {
- if ( !DegenerateMode )
- {
- View.SetDegenerateModeOff();
- }
- else
- {
- View.SetDegenerateModeOn();
- }
- }
-
- SelectionChanged();
- }
-
- private void OnMouseMove( object sender, System.Windows.Forms.MouseEventArgs e )
- {
- if ( e.Button == MouseButtons.Left ) //left button is pressed
- {
- if ( CurrentPressedKey == CurrentPressedKey.CurPressedKey_Ctrl )
- {
- View.Zoom(myXmax, myYmax, e.X, e.Y);
- myXmax = e.X;
- myYmax = e.Y;
- }
- else
- {
- switch ( CurrentMode )
- {
- case CurrentAction3d.CurAction3d_Nothing:
- DrawRectangle( false );
- myXmax = e.X;
- myYmax = e.Y;
- DrawRectangle( true );
- break;
- case CurrentAction3d.CurAction3d_DynamicZooming:
- View.Zoom( myXmax, myYmax, e.X, e.Y );
- myXmax = e.X;
- myYmax = e.Y;
- break;
- case CurrentAction3d.CurAction3d_WindowZooming:
- DrawRectangle( false );
- myXmax = e.X;
- myYmax = e.Y;
- DrawRectangle( true );//add brush here
- break;
- case CurrentAction3d.CurAction3d_DynamicPanning:
- View.Pan( e.X - myXmax, myYmax - e.Y );
- myXmax = e.X;
- myYmax = e.Y;
- break;
- case CurrentAction3d.CurAction3d_GlobalPanning:
- break;
- case CurrentAction3d.CurAction3d_DynamicRotation:
- View.Rotation( e.X, e.Y );
- View.RedrawView();
- break;
- default:
- break;
- }
- }
- }
- else if ( e.Button == MouseButtons.Middle ) //middle button is pressed
- {
- if ( CurrentPressedKey == CurrentPressedKey.CurPressedKey_Ctrl )
- {
- View.Pan( e.X - myXmax, myYmax - e.Y );
- myXmax = e.X;
- myYmax = e.Y;
- }
- }
- else if ( e.Button == MouseButtons.Right ) //right button is pressed
- {
- if ( CurrentPressedKey == CurrentPressedKey.CurPressedKey_Ctrl)
- {
- View.Rotation( e.X, e.Y );
- }
- }
- else // no buttons are pressed
- {
- myXmax = e.X;
- myYmax = e.Y;
- View.MoveTo( e.X, e.Y );
- }
- }
-
- private void OnPopup( object sender, System.EventArgs e )
- {
- ContextWireframe.Enabled = IsWireframeEnabled;
- ContextShading.Enabled = IsShadingEnabled;
- ContextColor.Enabled = IsColorEnabled;
- ContextMaterial.Enabled = IsMaterialEnabled;
- ContextDelete.Enabled = IsDeleteEnabled;
- ContextTransparency.Enabled = IsTransparencyEnabled;
- ContextBackground.Enabled = true;
- }
-
- private void ContextWireframe_Click( object sender, System.EventArgs e )
- {
- Wireframe();
- }
-
- private void ContextShading_Click( object sender, System.EventArgs e )
- {
- Shading();
- }
-
- private void ContextColor_Click( object sender, System.EventArgs e )
- {
- Color();
- }
-
- private void ContextMaterial_Click( object sender, System.EventArgs e )
- {
- Material();
- }
-
- private void ContextTransparency_Click( object sender, System.EventArgs e )
- {
- Transparency();
- }
-
- private void ContextDelete_Click( object sender, System.EventArgs e )
- {
- Delete();
- }
-
- private void ContextBackground_Click( object sender, System.EventArgs e )
- {
- Background();
- }
- }
-}
diff --git a/samples/CSharp/WPF_WinForms/Properties/AssemblyInfo.cs b/samples/CSharp/WPF_WinForms/Properties/AssemblyInfo.cs
deleted file mode 100644
index 02445ca672..0000000000
--- a/samples/CSharp/WPF_WinForms/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-using System.Reflection;
-using System.Resources;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using System.Windows;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("IE")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("IE")]
-[assembly: AssemblyCopyright("Copyright © 2013")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-//In order to begin building localizable applications, set
-//CultureYouAreCodingWith in your .csproj file
-//inside a . For example, if you are using US english
-//in your source files, set the to en-US. Then uncomment
-//the NeutralResourceLanguage attribute below. Update the "en-US" in
-//the line below to match the UICulture setting in the project file.
-
-//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
-
-
-[assembly: ThemeInfo(
- ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
- //(used if a resource is not found in the page,
- // or application resource dictionaries)
- ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
- //(used if a resource is not found in the page,
- // app, or any theme specific resource dictionaries)
-)]
-
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/samples/CSharp/WPF_WinForms/Properties/Resources.Designer.cs b/samples/CSharp/WPF_WinForms/Properties/Resources.Designer.cs
deleted file mode 100644
index e6c1eac679..0000000000
--- a/samples/CSharp/WPF_WinForms/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.18444
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace IE_WPF_WinForms.Properties {
- using System;
-
-
- ///
- /// A strongly-typed resource class, for looking up localized strings, etc.
- ///
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources() {
- }
-
- ///
- /// Returns the cached ResourceManager instance used by this class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager {
- get {
- if (object.ReferenceEquals(resourceMan, null)) {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("IE_WPF_WinForms.Properties.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- ///
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture {
- get {
- return resourceCulture;
- }
- set {
- resourceCulture = value;
- }
- }
- }
-}
diff --git a/samples/CSharp/WPF_WinForms/Properties/Resources.resx b/samples/CSharp/WPF_WinForms/Properties/Resources.resx
deleted file mode 100644
index af7dbebbac..0000000000
--- a/samples/CSharp/WPF_WinForms/Properties/Resources.resx
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WPF_WinForms/Properties/Settings.Designer.cs b/samples/CSharp/WPF_WinForms/Properties/Settings.Designer.cs
deleted file mode 100644
index 117456a5c0..0000000000
--- a/samples/CSharp/WPF_WinForms/Properties/Settings.Designer.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.18444
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace IE_WPF_WinForms.Properties {
-
-
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
-
- private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default {
- get {
- return defaultInstance;
- }
- }
- }
-}
diff --git a/samples/CSharp/WPF_WinForms/Properties/Settings.settings b/samples/CSharp/WPF_WinForms/Properties/Settings.settings
deleted file mode 100644
index 033d7a5e9e..0000000000
--- a/samples/CSharp/WPF_WinForms/Properties/Settings.settings
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WPF_WinForms/Simple Styles.xaml b/samples/CSharp/WPF_WinForms/Simple Styles.xaml
deleted file mode 100644
index 3be3f557c0..0000000000
--- a/samples/CSharp/WPF_WinForms/Simple Styles.xaml
+++ /dev/null
@@ -1,1134 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/CSharp/WPF_WinForms/TransparencyDialog.cs b/samples/CSharp/WPF_WinForms/TransparencyDialog.cs
deleted file mode 100644
index ba7a456252..0000000000
--- a/samples/CSharp/WPF_WinForms/TransparencyDialog.cs
+++ /dev/null
@@ -1,108 +0,0 @@
-using System;
-using System.Drawing;
-using System.Collections;
-using System.ComponentModel;
-using System.Windows.Forms;
-
-namespace IE_WPF_WinForms
-{
- ///
- /// Summary description for TransparencyDialog.
- ///
- public class TransparencyDialog : System.Windows.Forms.Form
- {
- private System.Windows.Forms.NumericUpDown MyTransparency;
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.Container components = null;
- private OCCTProxy myView;
-
- public TransparencyDialog()
- {
- //
- // Required for Windows Form Designer support
- //
- InitializeComponent();
-
- //
- // TODO: Add any constructor code after InitializeComponent call
- //
- myView = null;
- }
-
- ///
- /// Clean up any resources being used.
- ///
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(TransparencyDialog));
- this.MyTransparency = new System.Windows.Forms.NumericUpDown();
- ((System.ComponentModel.ISupportInitialize)(this.MyTransparency)).BeginInit();
- this.SuspendLayout();
- //
- // MyTransparency
- //
- this.MyTransparency.Location = new System.Drawing.Point(16, 16);
- this.MyTransparency.Maximum = new System.Decimal(new int[] {
- 10,
- 0,
- 0,
- 0});
- this.MyTransparency.Name = "MyTransparency";
- this.MyTransparency.Size = new System.Drawing.Size(96, 20);
- this.MyTransparency.TabIndex = 0;
- this.MyTransparency.ValueChanged += new System.EventHandler(this.MyTransparency_ValueChanged);
- //
- // TransparencyDialog
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(128, 53);
- this.Controls.Add(this.MyTransparency);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "TransparencyDialog";
- this.Text = "TransparencyDialog";
- ((System.ComponentModel.ISupportInitialize)(this.MyTransparency)).EndInit();
- this.ResumeLayout(false);
-
- }
- #endregion
-
- private void MyTransparency_ValueChanged(object sender, System.EventArgs e)
- {
- if (this.myView == null)
- return;
- int transp = (int)this.MyTransparency.Value;
- this.myView.SetTransparency(transp);
- }
-
- public OCCTProxy View
- {
- set
- {
- this.myView = value;
- }
- }
-
- }
-}
diff --git a/samples/CSharp/WPF_WinForms/TransparencyDialog.resx b/samples/CSharp/WPF_WinForms/TransparencyDialog.resx
deleted file mode 100644
index 688fd72e80..0000000000
--- a/samples/CSharp/WPF_WinForms/TransparencyDialog.resx
+++ /dev/null
@@ -1,206 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 1.3
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- (Default)
-
-
- False
-
-
- False
-
-
- 8, 8
-
-
- True
-
-
- 80
-
-
- True
-
-
- Private
-
-
- TransparencyDialog
-
-
-
- AAABAAEAMDAAAAAAAACoDgAAFgAAACgAAAAwAAAAYAAAAAEACAAAAAAAgAoAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAMDcwADwyqYABAQEAAgICAAMDAwAERERABYW
- FgAcHBwAIiIiACkpKQBVVVUATU1NAEJCQgA5OTkAgHz/AFBQ/wCTANYA/+zMAMbW7wDW5+cAkKmtAAAA
- MwAAAGYAAACZAAAAzAAAMwAAADMzAAAzZgAAM5kAADPMAAAz/wAAZgAAAGYzAABmZgAAZpkAAGbMAABm
- /wAAmQAAAJkzAACZZgAAmZkAAJnMAACZ/wAAzAAAAMwzAADMZgAAzJkAAMzMAADM/wAA/2YAAP+ZAAD/
- zAAzAAAAMwAzADMAZgAzAJkAMwDMADMA/wAzMwAAMzMzADMzZgAzM5kAMzPMADMz/wAzZgAAM2YzADNm
- ZgAzZpkAM2bMADNm/wAzmQAAM5kzADOZZgAzmZkAM5nMADOZ/wAzzAAAM8wzADPMZgAzzJkAM8zMADPM
- /wAz/zMAM/9mADP/mQAz/8wAM///AGYAAABmADMAZgBmAGYAmQBmAMwAZgD/AGYzAABmMzMAZjNmAGYz
- mQBmM8wAZjP/AGZmAABmZjMAZmZmAGZmmQBmZswAZpkAAGaZMwBmmWYAZpmZAGaZzABmmf8AZswAAGbM
- MwBmzJkAZszMAGbM/wBm/wAAZv8zAGb/mQBm/8wAzAD/AP8AzACZmQAAmTOZAJkAmQCZAMwAmQAAAJkz
- MwCZAGYAmTPMAJkA/wCZZgAAmWYzAJkzZgCZZpkAmWbMAJkz/wCZmTMAmZlmAJmZmQCZmcwAmZn/AJnM
- AACZzDMAZsxmAJnMmQCZzMwAmcz/AJn/AACZ/zMAmcxmAJn/mQCZ/8wAmf//AMwAAACZADMAzABmAMwA
- mQDMAMwAmTMAAMwzMwDMM2YAzDOZAMwzzADMM/8AzGYAAMxmMwCZZmYAzGaZAMxmzACZZv8AzJkAAMyZ
- MwDMmWYAzJmZAMyZzADMmf8AzMwAAMzMMwDMzGYAzMyZAMzMzADMzP8AzP8AAMz/MwCZ/2YAzP+ZAMz/
- zADM//8AzAAzAP8AZgD/AJkAzDMAAP8zMwD/M2YA/zOZAP8zzAD/M/8A/2YAAP9mMwDMZmYA/2aZAP9m
- zADMZv8A/5kAAP+ZMwD/mWYA/5mZAP+ZzAD/mf8A/8wAAP/MMwD/zGYA/8yZAP/MzAD/zP8A//8zAMz/
- ZgD//5kA///MAGZm/wBm/2YAZv//AP9mZgD/Zv8A//9mACEApQBfX18Ad3d3AIaGhgCWlpYAy8vLALKy
- sgDX19cA3d3dAOPj4wDq6uoA8fHxAPj4+ADw+/8ApKCgAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP//
- AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMT
- ExMTExMTEyIiQiI8HTyCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwDODg4Nzc4MQMdAAAA
- AADDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOw4ODgyOCQAAAAdAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAODIyMSIAHewAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAA7DI3MSIdCwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAADEyMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAs4JAALAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwxJAAhAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4IgC8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAJAxJB0LAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- ALwLCx0dIh0dCwATAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACx0dAB0dIiIiIiId
- CxMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvAsdAB0dIiQkAyQkIiIiHSIAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAIgMxMVhZmZqZAyQiHR0AAAAAkAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAvAsdISIDMThZWVmgvaCZWVIkIh0AAB0dIh0hCwALCwALtgAAAAAAAAAAAAAAAOwAAB0iMTEx
- ODhYWZrDw8Ofn1hSJCIAHQAdACIAHSIkAwsdOAAAAADeExMTCwsLIiIkMTEyODg3MllZmprDw8PDwllS
- MSQdHQAAAB0AIiQkAAAAvDi8AAAxAzExMTExMTI4Nzg4ODc4ODhZXpnDw8PDml1YNwMkIh0AAB0hIiQA
- AAAAACIAAAA4ODc4Nzg4ODg4ODg4ODg4ODhZWV6avb2gmllZODcxJCIAAAAdIgMLAAAAACIAAACGE0+G
- T4bs7Oy8vLy8vAAxODg4ODg4NzIyMSQdHQAAvADsCwAiJDExAAAAwjjsAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAALMSQAAAAAAAAAAAAAAAAAEyI4MQsiOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALMSQAAAAA
- AAAAAAAAAAAAAAC8CwsAEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8AAsAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////AAD///////8AAP///////wAA////////
- AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
- /////wAA//8AAH//AAD//wAAf/8AAP//4AP//wAA///4B///AAD///gP//8AAP///B///wAA///8H///
- AAD///wf//8AAP///h///wAA///8H///AAD//+AD//8AAP//wAD//wAA//4AAD//AAD//AAAB/8AAP/w
- AAAAAwAA/8AAAAABAADAAAAAADgAAMAAAAAAPAAAwAAAAAA8AADAAAAAIDgAAP///j/+AQAA///+P/+D
- AAD///4///8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
- /////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WPF_WinForms/app.config b/samples/CSharp/WPF_WinForms/app.config
deleted file mode 100644
index 786a845b30..0000000000
--- a/samples/CSharp/WPF_WinForms/app.config
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/samples/CSharp/WPF_WinForms/res/MainFrame.ico b/samples/CSharp/WPF_WinForms/res/MainFrame.ico
deleted file mode 100644
index 99dbceb637..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/MainFrame.ico and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/document.png b/samples/CSharp/WPF_WinForms/res/document.png
deleted file mode 100644
index 1ba28fff33..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/document.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/help.png b/samples/CSharp/WPF_WinForms/res/help.png
deleted file mode 100644
index e57336285e..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/help.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/lamp.png b/samples/CSharp/WPF_WinForms/res/lamp.png
deleted file mode 100644
index a5a6775c33..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/lamp.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/new.png b/samples/CSharp/WPF_WinForms/res/new.png
deleted file mode 100644
index 953757a62f..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/new.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/occ_logo.bmp b/samples/CSharp/WPF_WinForms/res/occ_logo.bmp
deleted file mode 100644
index 443a7de612..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/occ_logo.bmp and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/tool_color.png b/samples/CSharp/WPF_WinForms/res/tool_color.png
deleted file mode 100644
index b37ad7d480..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/tool_color.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/tool_delete.png b/samples/CSharp/WPF_WinForms/res/tool_delete.png
deleted file mode 100644
index aaab07fc9f..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/tool_delete.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/tool_material.png b/samples/CSharp/WPF_WinForms/res/tool_material.png
deleted file mode 100644
index 41e936855e..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/tool_material.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/tool_shading.png b/samples/CSharp/WPF_WinForms/res/tool_shading.png
deleted file mode 100644
index 6bb9dc46de..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/tool_shading.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/tool_transparency.png b/samples/CSharp/WPF_WinForms/res/tool_transparency.png
deleted file mode 100644
index 6b42536eae..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/tool_transparency.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/tool_wireframe.png b/samples/CSharp/WPF_WinForms/res/tool_wireframe.png
deleted file mode 100644
index 57c560f15a..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/tool_wireframe.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_axo.png b/samples/CSharp/WPF_WinForms/res/view_axo.png
deleted file mode 100644
index c9a9226180..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_axo.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_back.png b/samples/CSharp/WPF_WinForms/res/view_back.png
deleted file mode 100644
index 0798f52938..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_back.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_bottom.png b/samples/CSharp/WPF_WinForms/res/view_bottom.png
deleted file mode 100644
index c7cfdc208a..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_bottom.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_comp_off.png b/samples/CSharp/WPF_WinForms/res/view_comp_off.png
deleted file mode 100644
index c900b196f0..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_comp_off.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_comp_on.png b/samples/CSharp/WPF_WinForms/res/view_comp_on.png
deleted file mode 100644
index 73ca4c83d0..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_comp_on.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_fitall.png b/samples/CSharp/WPF_WinForms/res/view_fitall.png
deleted file mode 100644
index 21d2f423ef..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_fitall.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_fitarea.png b/samples/CSharp/WPF_WinForms/res/view_fitarea.png
deleted file mode 100644
index f20f5c0554..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_fitarea.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_front.png b/samples/CSharp/WPF_WinForms/res/view_front.png
deleted file mode 100644
index a9e99c59b6..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_front.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_glpan.png b/samples/CSharp/WPF_WinForms/res/view_glpan.png
deleted file mode 100644
index 02a9c1cb8d..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_glpan.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_left.png b/samples/CSharp/WPF_WinForms/res/view_left.png
deleted file mode 100644
index 7d25b6ab2f..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_left.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_pan.png b/samples/CSharp/WPF_WinForms/res/view_pan.png
deleted file mode 100644
index 0e9a6a5a03..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_pan.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_reset.png b/samples/CSharp/WPF_WinForms/res/view_reset.png
deleted file mode 100644
index 38849fd694..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_reset.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_right.png b/samples/CSharp/WPF_WinForms/res/view_right.png
deleted file mode 100644
index 5540220cfa..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_right.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_rotate.png b/samples/CSharp/WPF_WinForms/res/view_rotate.png
deleted file mode 100644
index 7e5d013b9f..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_rotate.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_top.png b/samples/CSharp/WPF_WinForms/res/view_top.png
deleted file mode 100644
index b788de36fb..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_top.png and /dev/null differ
diff --git a/samples/CSharp/WPF_WinForms/res/view_zoom.png b/samples/CSharp/WPF_WinForms/res/view_zoom.png
deleted file mode 100644
index 1b50a37bc8..0000000000
Binary files a/samples/CSharp/WPF_WinForms/res/view_zoom.png and /dev/null differ
diff --git a/samples/CSharp/WinForms/AboutDialog.cs b/samples/CSharp/WinForms/AboutDialog.cs
deleted file mode 100644
index 73c98a726b..0000000000
--- a/samples/CSharp/WinForms/AboutDialog.cs
+++ /dev/null
@@ -1,157 +0,0 @@
-using System;
-using System.Drawing;
-using System.Collections;
-using System.ComponentModel;
-using System.Windows.Forms;
-
-namespace IE_WinForms
-{
- ///
- /// Summary description for AboutDialog.
- ///
- public class AboutDialog : System.Windows.Forms.Form
- {
- private System.Windows.Forms.PictureBox pictureBox1;
- private System.Windows.Forms.Button button1;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.Label myVersion;
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.Container components = null;
-
- public AboutDialog()
- {
- //
- // Required for Windows Form Designer support
- //
- InitializeComponent();
- //
- // Create OCCT proxy object and get OCCT version
- //
- OCCTProxy t = new OCCTProxy();
- t.InitOCCTProxy();
- float version = t.GetOCCVersion();
- this.myVersion.Text = this.myVersion.Text + version;
- }
-
- ///
- /// Clean up any resources being used.
- ///
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutDialog));
- this.pictureBox1 = new System.Windows.Forms.PictureBox();
- this.button1 = new System.Windows.Forms.Button();
- this.label1 = new System.Windows.Forms.Label();
- this.myVersion = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
- this.SuspendLayout();
- //
- // pictureBox1
- //
- this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
- this.pictureBox1.Location = new System.Drawing.Point(59, 64);
- this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new System.Drawing.Size(196, 102);
- this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
- this.pictureBox1.TabIndex = 0;
- this.pictureBox1.TabStop = false;
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(96, 248);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(128, 24);
- this.button1.TabIndex = 1;
- this.button1.Text = "OK";
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // label1
- //
- this.label1.Location = new System.Drawing.Point(16, 9);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(288, 24);
- this.label1.TabIndex = 2;
- this.label1.Text = "Import/Export Sample,";
- this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // myVersion
- //
- this.myVersion.Location = new System.Drawing.Point(16, 32);
- this.myVersion.Name = "myVersion";
- this.myVersion.Size = new System.Drawing.Size(288, 16);
- this.myVersion.TabIndex = 3;
- this.myVersion.Text = "Open CASCADE Technology ";
- this.myVersion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // label3
- //
- this.label3.Location = new System.Drawing.Point(24, 168);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(280, 23);
- this.label3.TabIndex = 4;
- this.label3.Text = "Copyright (C) 2004-2013, Open CASCADE S.A.S";
- this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // label4
- //
- this.label4.Location = new System.Drawing.Point(8, 200);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(296, 24);
- this.label4.TabIndex = 5;
- this.label4.Text = "http://www.opencascade.com";
- this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // AboutDialog
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(312, 285);
- this.ControlBox = false;
- this.Controls.Add(this.label4);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.myVersion);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.button1);
- this.Controls.Add(this.pictureBox1);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "AboutDialog";
- this.Text = "About Import/Export Sample";
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
- #endregion
-
- private void button1_Click(object sender, System.EventArgs e)
- {
- this.Close();
- }
- }
-}
diff --git a/samples/CSharp/WinForms/AboutDialog.resx b/samples/CSharp/WinForms/AboutDialog.resx
deleted file mode 100644
index 0406147f1f..0000000000
--- a/samples/CSharp/WinForms/AboutDialog.resx
+++ /dev/null
@@ -1,1167 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
-
-
- Qk1W5AAAAAAAADYAAAAoAAAAwgAAAGQAAAABABgAAAAAAAAAAAAgLgAAIC4AAAAAAAAAAAAA////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////AAD/////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////8AAP//////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////wAA////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////AAD/////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////8AAP//////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////////////////////wAA////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- AAD/////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////8AAP//////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////wAA////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////AAD/////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////8AAP//
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////wAA////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////AAD/////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////8AAP//////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////wAA////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////AAD/////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////8AAP//////////////////////////////////////////////////
- /////////////////9Px9szm7P/8/PT19fr7+/////////7///7/////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////wAA////////////////////////////////////////////////////////////////////qerz
- NZam19ve5ebn5ufp+Pn5/////////////v//////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////AAD/////////////
- ///////////////////////////////////////////////////////k/v9FpbGAoKnh3d/R1dfp6ev+
- /f7////////9////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////8AAP//////////////////////////////////
- //////////////////////////////////z//37U3zx8is7M0c7O0Nvc3vf3+P7///7/////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////////////////////wAA////////////////////////////////////////////////////////
- ///////////+////v/P7KIqYjaar0M7Rzc/U6err////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- AAD///////////////////////////////////////////////////////////////////////7j//9L
- tcNMeoTJy83FyMva2t35+fn////+////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////7/////
- /v////7///////////////////////////////////////////////////7////+/v//////////////
- /////////////////////v/+//7//v////////////////////////////////7/////////////////
- //7////////////////+//7+///////+///////////////////+//79///+/////v//////////////
- /////////////////////v/////////////////////////////////////////////////////+//7+
- //7///7////////////////////////////////+///+///+///+/v7+/v7/////////////////////
- /////////////////////v/9/v/+/////////////v7//v7////////////////+//7+/v7/////////
- //////////////////////////////////////////////////////////8AAP//////////////////
- ///////////////////////////////////////////////////+/vn+/5bm8Cd4h52pssjHysnNz+zs
- 7f7///7/////////////////////////////////////////////////////////////////////////
- /////////////////////////////////9ve36uvsa+ytenr7P///////////////+vr7bO1t7CytbCz
- t6+ytbCztrCztrCzt7Cztq2ws7y/w/j6+/////7//v////39/c3O0pmcoISHjIyPla+yturs7f////7+
- /v7+/////87R06uusLW3uvT19f///////////////87R1Kyvsba5u/Dy8////9zg4qyvsLW4ue7u8P//
- //////7//////8nMza2usLG0ue7w8v////3+//////////T19r7CxZSXnIOGjIyPlK6xtebn6f//////
- /v///////////8THyq2wtK+zt7G0t6+zt7CytrCztrCzt6yws8/R0v////3+/////////9/h4qmssIqN
- koWHjZaan8THyfn5+f////////////7+/v7+/v////////Hy8r2/wZOXmoOIjIyQlamtsd3e4P//////
- //7////+///+/v///////////8zQ0KqusLW3u/X09v//////////////////////////////////////
- /////////////////////////////////////wAA////////////////////////////////////////
- //////////////////////////////////7/1P3/PaOzU3uEwsXIv8TI29zf+/r6////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////o6erKjAzMjc7x8nL////////////////x8rOOj9DMzg8MzY6LjI3LzM4LjM3LjM3LzQ4
- KCwwTlFV8PPz////////7O3tfoSHPUFFLzQ3LTE1LjM2NDg7WFphvcDD////////////f4OHKC0xQ0ZM
- 4OHj////////////////gISIKS4xQ0dM293f////p6quLDA0QERI0NLV///////+////3uDiRkxQMDQ4
- NzxC1tnb///////+////z9DSZ2lvOD5BLzM4LjI2LjM2Mzk6U1dcr7G1/////////////v7+Z2twLzQ3
- NDk9MDQ4LzQ3LzQ4LzM3MDU4JiwvfoKG/////////Pz9n6KlSk9TMjY6LjM2LTI1LjM3OT5BcHd73t/g
- ///////////////+////v8LEXGNmNjxALzM3LjE2LTQ2Mzk8SU1RgoaK2Nrc///////+/////v7+////
- ////f4OFJy0xQERJ4uPk///////+////////////////////////////////////////////////////
- ////////////////AAD/////////////////////////////////////////////////////////////
- ///////+//////7v//951uMoa3mnsbS9wcTMztHt7+/+////////////////////////////////////
- //////////////////////////////////////////////////////////////////////+pq64zODw7
- P0PKzc7////////+/v7////KzM9CRko6P0JLT1NbX2NYXGFXXF9ZXWFZXWFSVltydXrz9fX////w8fJr
- bnMxNjo2PD5PVVhpbnJbYGU6PkMzODxBREnJy83///////+Gio4wNTlKTlPg4+X////+/v7///////+E
- iI0xNjlLUFXe3+D///+srbIzODtHTE/U1dj////////8/P16foE0OTw7P0NARUrY2tv////////MztBI
- TFAyNzo3O0BTV1pscHReY2c9QUc0ODw2Oz6ipqf////////+//9ucXc2Oj1CR0lXXF9aXWBYXWFYXGFY
- XWBQVVqYnJ/////7/PyQk5Y0OD00OT1AREhhZWdrbnNPVVc2Oz4zNztVWV3g4uP///////////+0uLk+
- QkcxNjk8P0JaX2Jpb3JbYGQ+QkY0OTwyNzpNUVbS1Nb///////////////////+EiIowNThITlDj5eX/
- ///+/v7///////////////////////////////////////////////////////////////////8AAP//
- //////////////////////////////////////////////////////////////////3//v/+//7//7j0
- /iuOnmqIj8XEyMLFyODi4/39/P//////////////////////////////////////////////////////
- /////////////////////////////////////////////////6mqrzM3PDo/RMrMzv////7///7+/v//
- /8rMz0BFSTY6Ppean/Hy8+3u8O3v8O3v8e3u8O3t7/Dx8v3+/v///5OWmjE0Ozc8P36DiOHi5P////Hx
- 86Smqj9DRjA1N2Fma/P09P///4SIjDE0OUtPU+Dj5f/////+/v///////4OIjjI2OUtQVd7f4P///6uu
- sTM5PEhNUNPV2P///////7q9wDg+QTxAQzw/Q0BESdra3P////L09GFlajM4Ojg8P46RleXl6P////T0
- 97C0uEVLTjQ4PENHTNbY2v///////29yeTE1OlxgZt/i5u/w8uzu8O3u8e7v8ezu7/X19v///8HDxTk9
- QTU6PVFWWb7Cxvb2+f///+Hi5IGFiTg8PzA1OXl7f/z7/P///+Hh5EhPUjQ6PkZJTq2wtPDw8v////Dx
- 88LEx2RpbDk8Pjo+Qra6vf////7+/v///////////4SIijI1OUlNUeTl5///////////////////////
- /////////////////////////////////////////////////////wAA////////////////////////
- /////////////////////////////////////////v///v/+/v7/////6P3/Zs/bJWtzprK0wsLI0dPX
- 8vT0/////////v//////////////////////////////////////////////////////////////////
- ////////////////////////////p6uuMzc7Oz9EysvO//////////7+////yszRQUVLNTk9oKSm////
- ////////////////////////////6OnrVFdcMjc6WV5k9vb2/////v//////////f4KGKzE1UVZb3N3f
- ////hYmNMTU6S05S4ePl////////////////hIiNMTY4Sk9U3t/h////q66xNDg8SExQ1NXY////8PLz
- Wl9kNjs+Oz9CPD9EQEVJ2drb////v8PENjs+Njo/eXyA/f7+////////////////q6yvNjxAMTc7kJOY
- ////////bnJ2MTU4X2Rn8fL0////////////////////////////dXh+Mzg8PUFGv8HE/////////v//
- ////+fr6ZGhsMzg8QUdM1tnb////lpmdMjc7OT5BpKir////////////////////tbe6Njs/PEFGvL7B
- /////v7+/v//////////hIiLMTU6SU1S4+Pn///////+////////////////////////////////////
- ////////////////////////////////AAD/////////////////////////////////////////////
- /////////////////////////v79///////5//+t9PsiiZVui5LEw8bCxMff4uP8/f3+///9///+///+
- ////////////////////////////////////////////////////////////////////////////////
- //////+nq64zODs6P0PKzM7////////////////LzNFBRko1Oj2ipqj////////////////////////+
- ///////O0NE6P0MzOTyQk5n////////////+/v7////X2dqtr7Lg4eL7/P3///+EiYwwNTlMUFTo6+z/
- //////////////+IjJExNjhMT1Td3uH///+qrbI1OTxGS1DU1tn///+WmZw0OD0+Q0VgZGk+QkVARUnZ
- 29z///+QlJc0ODs7P0PDxcf////////////////////u7u9OU1c0OTxkaW33+Pn///9ucnYwNThdYmfu
- 7vH//////////////////v/////y8vNRVFkzNztgZWn09fb////+/v7///////////+qrbEzOTszNzyw
- s7X+//9oa28wNDhSVlrp7O3////////U1tmfo6inqq99gIU5PUE7QUa7vcL///////////////////+H
- i44wNjlJT1Ln6ev/////////////////////////////////////////////////////////////////
- //////////8AAP//////////////////////////////////////////////////////////////////
- ///+//7//////////97+/1jF0zFse7O4ub/AwsvP0+/v8f//////////////////////////////////
- /////////////////////////////////////////////////////////////////6errjM4Ozo/Q8rM
- zv///////////////8vM0UFGSjg9QG90d6Snq56jp56ipp6ipqChpp+jp+vs7f///7W5vDQ5PTQ4PKyv
- sf////////7+/v/////+/v///////////////////4WJjDI4O0RITJGVmaGlqZ+ipp+jpqGlqWNnazU6
- PUtPVN7f4f///6qtszQ4PEdMUNvd39vc3kNISzE2OXR3fa+0tzY5PUBFSdrb3P///3t+gjE3OklOUtja
- 3P////////////////////f3+GptcjM4O1JWW/Dx8f///25ydjA1OV1hZ+7u8f//////////////////
- /////9ze4ERITDE1OX2AhP///////////v///////////83O0Ds/RDM4OpqdoO3v8VVaXjE1OGdscf//
- /////////5yeoigsMTI3OzM6PDY7PzY9Qbe6vv////////7+/v////n5+mpvcjQ4Oz9ESMfKzP//////
- /////////////////////////////////////////////////////////////////////wAA////////
- /////////////////////////////////////////////////////////v///v///////f/////+9v7/
- ofD6IImZboWRwcLHwcLF3uDi/Pz9////////////////////////////////////////////////////
- ////////////////////////////////////////////p6uuMzk7Oj9DyszO////////////////y8zR
- QUZKPEBDNDk8KS0xKS8zKy8yKi8xKS4wKi8z0dPU////sLK2NDg8Mzc7trm7/////////////v7+/v7+
- /f/+/v///v7+////////hYqONjo+PEBDLTE0Ky8zKi4yKi8yKS4zNjo+OT1BSlBU3t/g////qq2xMzk7
- SU5S2dvgenyAMTY5QEVJ1tfaur3ANDg8QEVJ2drb////eHt/MDY5TVJW3d/h//////7/////////////
- +fr7cXZ6Mjc7TlNX7/Dw////bnJ2MTY5XWFo7u7x/////////////////v/+////1tjbQkdLMDU4hYiM
- ///////////+////////////1NXXQERJMzY6lZmd5ujqUVZaMjQ4b3R5////////////tLe7WV5jYWZq
- Y2ZrY2ZsYmdrxsrN///////+////////q66xODtAOj9CNDk9aW1w8/T1////////////////////////
- ////////////////////////////////////////////////AAD/////////////////////////////
- ///////////////////////////////////////////////+///9//7////f+/9ez9wlaXSgrLK+wMLO
- z9Hu7vD////////+/v7/////////////////////////////////////////////////////////////
- //////////////////////+nq64zOTs7P0PKzc/////////////////LzNFCRko6P0NUWV5vcnZrb3Jr
- b3NqcHRrb3Nrb3Te4eL////CxMY2Oz8zNzunqa3////////+///+//////////////////////////+F
- iY00OD1AREllam5scHRrb3Nrb3RucnVPU1Y3Oz9LUFTe3+H///+qrrIzODxQVFiPkphBRUkyNjqMj5P/
- //+xs7Y0ODxARUnZ2tv///+ChYkyNzpFSk7U1tj////+/v7////////////29vdjaGwzODtWW2Dy8/P/
- //9ucncwNTlcYWbu7vH////////////////9/v7////l5ulHS08xNjl4e3////////////7/////////
- ///Hycw4PEEyNzqfoqX09fdYXGAwNThnam/////////////9/f38/f38/f3////////+///+//7///3/
- ///////k5eZNU1Y3PEBESU0/REg1Oj2jpqj/////////////////////////////////////////////
- //////////////////////////8AAP//////////////////////////////////////////////////
- //////////////////7+//3///////7//v///vj+/qv1/SeWo19/hcLCxMDCxt3e3/r6+v7/////////
- ////////////////////////////////////////////////////////////////////////////////
- /6errjM4Ozo/Q8rNzv///////////////8vM0UFGSjU6Ppyfo/v8/fj5+vj5+/f5+/j5+fn5+f3+/v//
- /9rb3UJHSzI4OoGEif///////////v///////9vc3tXW2vT19f39/v///4WJjDA2OktPU9/g4/n6+/j5
- +vj5+vr7+4WIjjE2OUpOVN3f4v///6qssjY7P0BFSUJGSTY7PlNWW+nq7P///6+xtTM5O0BESdja3P//
- /6GlqTM4Ozg7P7W3uf////////7+/v7+/v///+Pk5UdLUDQ5PG90ePv7/P///25ydzA1OF1hZu7u8f//
- //////////7///7+/v////n5+VxfZTI3O1ZbX+3u7/////7//////////////5mdoDM4OzY6P7u/wf//
- /25zdzA2OUxQVOLk5v///////////////////+zs7eTn6Pj4+f79/v3////////+/3+ChjM4Oz5CRbi8
- wHB1ejA2OkpNUtze3///////////////////////////////////////////////////////////////
- /////wAA////////////////////////////////////////////////////////////////////////
- ////////////////////6f3/adbkH216lqerwMHEyszO7Ozt/v///////v7+////////////////////
- /////////////////////////////////////////v//////////////////rrG1Mzg7Oj9C0tTW////
- ////////////yszQQUVKMzk9o6ep////////////////////////////////9fb3aGtvMDY4SE1R3N3f
- ////////////9PX2ZGZrODxBY2hv4+Tm////homMMDU5S09U5ubo////////////////hYmPMjU4S1BU
- 3t/h////q66yNzxBPUFEOz9COD1AsbS3////////rrG0Mzg7QERJ2dvc////2NrbPkNHNDo+XmNm7e7w
- /////////////v//io6RNTo+Mzg9pqqs////////bXJ4MTU5XWJm7e7w/////v7+/v//////////////
- ////kJOWMTU6NztAoaSn////////////////5eboUVZaMTY5TlNY5ujp////q6+xMzc8NzxAiI2Q/f7/
- ////////////+Pj5bXBzP0RJZ2tw4ePk////////v8HDOT1DMzc6eHt+////xsrNO0FFMjc5eX2A/Pz8
- /////////////v///v//////////////////////////////////////////////AAD/////////////
- ///////////+/v7////////////////////////////////////////////////////////+/v7///7+
- /v+39v83o7NHdH69vsLAwsbY2dz3+Pj////+///////+/v7/////////////////////////////////
- ///////////////////////W2dy7vsG+wcXAw8iGio82Oz87QESeoKXCxMe+wMO/wcT5+fnNztNBRUs1
- OkB/g4fCxcm+wMO+wcS+wcS+wMS7vcHS1Nj///////++wMM6P0Q1OTxWWmCwsrbc3eDFyMtzdnw3PUEv
- NDdtcXb3+Pj///+Hio0xNjpKT1Ph4uT///////////////+Eh40xNTlKT1Te3+L///+rrrE3PD89QkU0
- Oj1zdXz6+vv///////+vsrQ1ODxARUnY2tv////8/f2Hio8xNjo2Oz1kZ224ur3c3eDIyc6BhIo8QUUy
- NzpeYGTs7O////////9tcnYwNTddYWbu7vH//////////////v/////+/v7////e4OBOUlY0ODxARUmL
- j5LMz9La292xsrZaX2E3Oz8zNzydoqL////////y8/NkaG0zNzs6PkJ8gIPCxcna3N/Exsl1eHw5PkEx
- NThjZWj19/f////w8PFcX2MzNztGSk/V19r///////99gIQ0OTw3PEG4ubz/////////////////////
- //////////////////////////////////////////8AAP//////////////////////////////////
- //////7///7///////////////////////////////////////////7//v///ur+/4Dl8Bp0goKZnr/C
- xMfIzOPl5vv8/P//////////////////////////////////////////////////////////////////
- /3x/hiowMzI3OjI4OzU5PTg9Pzc9QDU5PDM4OzI2OjM6Pt/g4NDR1TxBRDU6PjY6PjQ4OzI3OzM4OzI4
- OzI4OikuMnJ1ev///////////5+jpjg9QS8zNzM4PT1BRTk9PzI2OTI2OlBUWNvd3v///////4KFiSsw
- M0RJTeDh5P/////+/v///////4CEiSswNEVKTtze4P///6irrzI2OjY5PkFGSdXW2f///////v///6yw
- sS0yNjo/RNfZ2v///////+zu72tvczE2OjE1OzQ5PT5DRTc9QDA1ODA1OFJVWtPU1/////////7//2ds
- cSovMldbX+3t7/////////7+/v/+/v///////////////7/Bw0NITDE1OTA1ODo+QT1CRjQ5PTA1OTQ5
- PYaKjfn5+v////3//////93f4FpeYjA0Ny80Nzc8Pz5ERzg8PzE2OTE2OUtQU9DT1v////z8/Y6SlC0y
- Ni80OJGUlv////3//////9vc3kNITC0xNFFWWubo6f///////v//////////////////////////////
- /////////////////////wAA/////////////////////////////v///////////////////v79+vz8
- +/39/v///////////////////////////v///v///v/+xfr/R7vML2l0prG2wcDDy87R6+3u///+////
- ////////////////////////////////////////////////////////////kZWZS1BVUldbU1hbU1dc
- U1dbU1dcU1dcU1hcUldaVVpe5OTm1dfaVlpeUVVaU1hcU1dbU1dcU1dbU1dbU1ZbS09UiIyP/////v/+
- ////////u7/Ca25zSk9TQkZKQ0hNTlNYgoSI3+Hi////////////k5aaSExPX2Rn5eXn////////////
- ////k5aaR0xQX2Jn4eLl////s7a7TVJWTVFVnaGk/////v//////////ubu8SU5SVFld3N7f///////+
- ////8fLzmpygWl9iRktQQUZLRUlNVFddiIuQ4ePk////////////////jJCUXWBjfoKH8fLz/////v//
- //7+/////////////////v7+////09bXd3t/TVJXQkhMQUZJSU1RZWdsr7K1+/v7///////+/v///v7/
- ////6evsjpKWVVpeRUpPQUZLREhNUFVafICC2Nnb////////2tzeV1tgTVFVZWht7Ozt//////////7+
- ////mJygTFBUSU5UnKCj//7///////7/////////////////////////////////////////////////
- AAD////////////////////////+//////7/////+vvy8PPm5+rk4+Tl4ePr5ebs6ens7u7z9/b9/f3/
- ///////////+///9/v7///70/f+Z8/0olqZLcny2ur/AwsLV2Nr19PT/////////////////////////
- ///////////////////////////////+///+///z9fXq6+7q7O7r7O7r7O7q7O7r7O/r7O/r7e/q7O7r
- 7O78/Pz5+vvr7O7q7O7q7O7r7O/r7O/r7O/r7O/r7O7p6uzw8vP///7+/v7+/v/////////+///d3+HK
- zM/Oz9Pm5+r////////+///+//7////x8/Xq6+vr7e/7/P3///7+/v7+/v7+/v7y8/Xo6evt7vD7/P3/
- /v729/jp6+3p6+78/f7////////9/v7+/v739/fq6uzr7O37+/v+/v79//7////////////y9PXV1tnJ
- y8/R0tXt7fD////////////+///+/v7///78/v/9/v38/v7////+/v/+/v7////+/v7////////////+
- /v7////////////k5ujO0NLKzM7Z2937/P3////////9//7+//7//v7+///+/v7////////w8PLR09fJ
- zM/P0NPo6ez////////////////y8/Tm6Onq6+309fb////+//7//v7+/v7////8/f7q6+zp6uzq6+z9
- /f3///7///7///////////////////////////////////////////////8AAP////7///3///7///7/
- //7//////+j3+6fn8XTW42DK1lu8yFu1wGKttoettq67wNHN0NzY3OHi4+/v7/n7+v/////////+/v7/
- /////+P5/3fi8Bt4hXCHkbu+v8HExd7g4fz7+/////////////7/////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////7/////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////wAA///////+/f///f7+///////+1fb9duP1MNXqE8/i
- E9PpKdToK8/jLcPVKKy6NJWhYZeilaewv8HG0dHT3dve6Orr9/n5/v///v//////+/7+vPf/T8fZI2Zz
- lKKnuL3BxMnN5+jq/v/+/////v//////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////AAD///////7//////v/+//7T+Pxw5fUuxdQytcNjucd/y9mH2OWB4e9r4/Jf3vJL
- 1OcruMkhlqNFh5CKoKS/wMTMz9DZ3N3s7e/8/Pv////////n+v2b8P0qo7E9a3Wwtbm/vcHJ0NLt7u7/
- ///+////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////8AAP//
- //////3//////vT8/5Hq+S2ou06Xoae4vsjDx9fT1Ovh5e3s79zu88Pt86Ht9Xjm9VXa7i61xySHlFmG
- kZmmrcfGyNHR1ODi5PX3+P///////9n5/3rn8x6GlVt5gba2vLzBxdfZ2/f39/////7+/v//////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////wAA/////////v/+//7/0Pj/TL7O
- QnqEvbzAyMbH1dbW7O/w/vz9//////7///7+/Pv94PX5su74iOn7V9jqKau8JHiFbYqSuLu/ysfN2djb
- 7vDw/f79/P//yPj+Y9jmHHF/co2UvLzBvsTI3+Dj+/v6////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////AAD////+/v7////1/f+N6fUihJORn6TJxcjHzM/o6Or///7/
- /////////////////////////v3j+Pqw7/l25/lJyNkegpBKd32mq6/Cw8fL0NTk5ub8+vrw+/609P9B
- wNAlZ3GWn6W8u8DEx8vj6Of9/f7///////7//////////v7//v/////+///////+///////////+////
- ///+/////v/////////9///////////+///////+///////////////////////////////////////+
- /v7//////////////////////////////////v7+///////+///+/v7////////////////////+////
- ///////+////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////8AAP///////v///+D9/2bN2y90gbC4u7+/w9DT1fPz9P//////////////////////////
- //////////v9/sv0+pTt+lrb7CGbqi1weIybosS/xMjKzOPj5Pn39uL4/ZPu/C2mtDVnc6mtsr28wM/P
- 0uzt7v3+/v////7+/v3///3+//7+//7+/v7///7///3///7///////7///////////z///3///7///7/
- //7///////7///7///7///3////+/v/////+/v7+/v7/////////////////////////////////////
- //////////3///7////+/v////3//v7////+/v7+/v////////7///z+/v////7+/v////7///7/////
- //////7///7/////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////wAA/////v//
- ////3v3/X8DPOnJ/tbq+vb/D1NbY+Pj4/////////////////////////////////v7/////////5/v9
- s+/7duf3LLDBI2p2g5KXvr7Bx8fL3t7f8fHz2Pf7guv5I5WmQ253qrO3vL7D0NPV7fDw/////////f/+
- /f7+/f///////////////////////v////7+/////v///v///v///v///////v/+/v/+/////v//////
- /////////////////////v///////////////////////////////////////////////v7//v///f7+
- /f7+/v///v///v7+/////////////////////////////////////////////v///v////7+////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////AAD//////v////7j//9fw9E3b32ytry8
- v8PT1dj4+Pj////////////////////////////+///9//7+///+///////4/P7C8/1+7Po1usodanaA
- kJa7vsHAxsva3d/t8PDO+P5y5PQjh5ROcXuwtby/wMTU1tjy9Pb9//////7////////////6+fj49/f5
- +Pn8/f3+///////////+/////////////////////v7//f38+/v6+/r3+/v29/j29/f2+Pjz9fX4+Pj9
- /f3////////////+/v7////////////////////////////+///////////////+////////////////
- ///////9///5+vv29/f39/f59vjz9fb29/f9/f3/////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////8AAP////7//////+n//2TJ2DRve661uby+wdHT1fX29v//////////
- //////////////////7///7///7///7///7//////vr9/sz2/Irt+z3B0SBxf3OKkL24v8LGx9nZ2+bs
- 77r1/13a5x14iWWFi7e5u73CxNTZ2/bz8/z9/Nv0+qzc4bTO1MvP1NXS1NrY2d/i4ebs7Pb29v78/P/9
- /P/7+v/39/Dx8uTm6NLc38/X2dnV19bW1tXS1dbS1tXV19fY29jZ29rZ2t/g4fHz8/3+/v//////////
- ///////////////////////9/f35+PPw7+/q7O7u7/X49/7+/v////////38/Pj19Ozp6d/f397Y2tbR
- 1dLP09DLz8/Pz9HV1d7j5Pb3+P//////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////wAA//////7+////8///fNnnKnF8oa+xvr7Bzs/R8PHx/////////////////////////////v//
- /v///////v/////////+////////2Pf+nfD9RMfVGm97bIiQvLq9v8LE1djX5+3xrPX/T9DiHXF+bYmP
- ubq/wcXI3tvezu/1aeDxIMPULKa4Pp+tU5ujhZ+ptLO5zcTH1c/Q3Nja2t7itt/mgdbiYMzaUMbVQbzN
- Qq67U6Grcp+llaKoqa+ypre9o7e/prO5tba8vbu+wsHD09PV5OPl7e/v+vv9/////f7++vr8+Pf49vX1
- 7u7xuuHojMTMn7O4uLe8xMTG2Nna4+fn5+fo5t/i4NjbvdTbjMvUf77Jc7vEbLK8eqOskaGor7S4uL3A
- zNLU9vb3////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////AAD////+///////4
- //+d7fcifImFmZ/AwcPFyMzn5uf+/v/////////////////////////////////////////////+/v7/
- ///////+/v/g9/yU7/s8xtYZb35siJC7t727w8ja2dzd7fGo9P9KyNcabnt0jJG9urvFyszK9fqD6PU8
- 2+o30+Yty90tusoqnKpBjpx7q7hwwMxdx9VV0uI52+4n1ewp1uok2ewq1usz0eMnxNUlrLw3o7FEu8o6
- ytgxv9A3q7lGnqpan6pvnqWRoKatrrO+vcHKy87U1dfa3N7f4ePl5ufu7OzX7fJy4vMswtMsnalChpN6
- lJ2xrrfHvcHGx8mz0dmH2edT3Owu1ukuy94szeEvyd0puMgphJBgeoKrrK+2vb/Z2d37+vz/////////
- ///+/v7/////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////8AAP////7//////vz//8H6/ziaqld6gru+wL3B
- xd3d3/r7+/////////////////////////////////////////////////39/v7//////v///tr4/ZDv
- /jvB0h9odn+Ql726wb7Dxdnb29jv9J7x/UjI1iF1gmiEiLq5u7/W3Zjp9mvi9Fnf8kbg8jLd8DDW5zHG
- 1yjI2yLU5yjX6y7U5jDL3TDJ20DK2UnM21HT5HTi8Hrp+FPf8DXT5TDY6zXb7TTW6SrX6TXR4i/E1Cev
- vy2WoUeMlX6SmqCjp7O0t7+9wcjKzdDV193e4Nfz+Ibo9jLZ7DTS5iu5yCiVo0GRnm+rs3zN217g70zf
- 8jnX6yvP4irQ4jDV6jLZ7THi8yK6yh9ibY+aoLu/wtXW2Pb19v////////7+/v7//v//////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////////////////////wAA/////////v/+/v//4vz/YMXULGl0rbS4vL/B0dLV8vLy////////////
- /////////////////////////////////f///f7//f7+/v///////f/+3Pj9k+v6NLrJJGh0hpacv7rA
- w8bH3d7e1+/zovL/S8zbHHWCZIGIt7W4s73DqM3XlNvoct3rT9vrXN7vb+L0XuDzSd7vPtvtMLrJTZKc
- dZmfiZuppKqvsbq+v8vQyOTqlun5N9/uMtrrOtnqNcDQRbfGXtjnZuf4UuL0QNPkL7zLJZqtOoKRb4yR
- n6WqtbG3v77Cw8fJ2u/0kOv3M9XoM9fqPN/xTdjrOMbYLsraO9rxQNToK7nLM6q4Ya+7gbbAkb/HlMbM
- l9DXhcvWhK+4tb3Bz8/R5ebn+vn5////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- AAD////+///9/v7///74/v+a6vQde4p9lp3CwsTEx8nk5uf9/v7/////////////////////////////
- ///////////+///////////8///+///////+///b9/6N7/0vq7opZG+Uo6e3vMDJyMvk4eHc8/if7/5F
- y9sdbnxyhou3tbjCubzFyMrR1tzP2+LQ4eXL6O6l6PN35fRW3vExwNMzdoJxen+hnZ+nqK3CwMfU09Tf
- 6u2C5vM31OZk4fRQ3u8qrL5Ib3aDkJeIu8aE0t6I5/Vt5/ZJ2+wzvdAkmKc5iJFkjJOVn6Wyq6/N192n
- 9P48zuE2p7hiu8pw4Otl5/gr3e8dxdYtp7dgn6igsLW9u77OxsnSzNHa1Nfe1tjh2tvd3N3d3uDl5un2
- 9/f+/v7/////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////8AAP///////v/+/f7//vz/
- /8/8/0KzwUBwere6vri/wtPV2fX19v////////7//////////////////////////////////v7/////
- //////////7//////v7//tD4/nbn9ySaqD9rcaats7m6wdHS0+rp6trz95ju/D7F1h94hV6CirKzt7vA
- v8rN0eXe4fDt7Pn19vT2+dLz+qHq+WXj9Cy1wiBocXuNkq2us7u7v9PX2Nn2+1jN2Vujs7Dj7ZPx/kHK
- 3B5tdGp4faOfpayutb3I0LHd6JDl9HPm9k/c7jXF2COgrjSGkHGWoK7Ax63w+0PO3Sd0gHV/hJ2mrJPM
- 1nXS4n/EzbXIzd3Y3efj5Ofq6+/x8vb4+Pj3+Pf19vT19vHx9fT29vv9/f//////////////////////
- //////////////////////////////////////////////////////////////////////////79/v38
- /f////////////////////////////////////////////////////////////////////7/////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////wAA/////v/+/f///v//////7/7/hub0InWEf5WXv8DD
- wMfJ5OXn/v7+/////v///////////////////////////////////////////////////v///P/+///+
- 9v3/vfL9aePwG4GPVXV9s7a6v7/D1tfY7O3v1/P7me/7TtLiGYeUTHN+p6itv8HEys/P4OPl9fX1///+
- ////6fn7u/D6eev4Kqu7MGRvlJyjr7O3ytDV3Pz/VL7QPmVoj3ZxttTZgvT+JaCtNVxignFtn5SRyMLE
- 6Ofq5e3xze3yoez1duz8UeP2OcfWJ7bJQNDfbOLzQNblJHSBXXN5o6Kmvbu92dfc9/Hx//3++vv8+fn4
- +/v5/Pr6+/j4/v//////////////////////+PX15NXSz7OsyKecyqWczayh2Ly2697d/Pr6////////
- //7+/f7//v///////v/+/////v/+////////+vb15dTQ0LKpyaOXvpKJu5GGw5yPzKuj487K9/Hv////
- //////////7++ff3+vj4+/n5/////////v/+/v/9///+/v///f///////v7+/////////v//+PLx9vLx
- 9/Py+fb0/v38/////////v//+PTz+PPz+PP0+PX1+fX19/Py9/T0/Pv7/v///////////////v7+///+
- /f7////+/v7+/v////////z9+fLy+fPy+PTy+fTz+PTz+fTz+PPy+PTy+PP0+fP0+PX09vPx+/b2////
- ////////////////AAD//////////v/+///////8/v7F+f9FscE2bnS0ur69wMTT1df09PT/////////
- ///////////////////////////////////////////////+/v/+///+//////71/P658/9Q0uEbcX5w
- h420t7u/xMXY3N359fTl9/uh7/te3e8hnKw0bnqJmZ+/vsDMyczW29/t8PH9+/v////6/PzG8/xq5vgd
- kp9GanGnrbShm5vG1NR52ucjXmZcOSuJamW48/hV1eYhaHdLQDlpQTSEY1i3oZzz7ev++fq7lY6bn5qH
- 1d546/pg5vhE3O493PA30+Yic4Bke4C2tbvO0NHw8PD////x6Oa4jHyteWqxfGuyfW2sd2fSta3/////
- ///////y7OvTtaqyf3CmZ1ajZE6jZU2lZE6hY0ugZU6mbVmzgXPUu7T49PL////+//7+/v79///+//78
- ///////8+fnWvLSxemykaFGiYk6hYEygYUykZFChY06fYEylZlGvdmXHoJTs4Nz++/zMqJ+ud2aveWqu
- fG7Vvbb+/fz//v/+//7+///+///+/v/9/v/9///////y7uy9loyweWqyfG+xfGyqeWfJqZ7////49PLF
- opSwemuwe22vfW6yfW21fW2zfm20gHK5h3vCnJHXv7bp4d7////////9///9/v7+/v7+/v7////p4t63
- in6xemuzfW2zfm+yfm+xfW+zfnCzfm6yf26yfm+xfm+xfnCwfG6yemzgzsf///////////////8AAP//
- //7///////7///7+/////+/9/43o8x19i3qQl8TBxcTFyeLj5f39/f//////////////////////////
- /////////////////////////////v/+//3+/v3//////+/7/6Px/T/C0h5kcIOXnri7vsfHzOPm5vz5
- +e74+6zw+Wvl9C62xSN/jlqFkaOqr8XExs/R1ODg5O7v8Pn4+e71+Lr2/0/T4SJqeWlsbGg8Nquhn5z1
- /SF/jlZIRGk4K6+vr5b0/h+Il0ZLTGxANXZJOYRINLyXjv7//7J+bZ1aQJ9rWZeRi5bN1Hbk9DXe8B25
- yTN3hKOtscnKz+Dj5fz7+////8GZjpxcQ6doUqNnUKRpUp5eSLuShf////jz8tCxqql0YqBgSqNnUKVt
- V6VtWKhuWKpvWqlsWqdsW6drVqRnUaBfS7J9b+LTz/////3//v/////+/v7///j087qTg6FfSqZnUadu
- WahtWKdsV6ZuWalvWqhuWadsWKZsV6prVpxfRqRsWvDm5b+Uh59hR6RqVKllUZ9jUOvh3/////7+/v//
- //3//v7//vz+/v7+/////8emnZ1aRKZqVKZpVKVpVKBgSLaLe////8yroZtbQ6JoUaZnVKZoU6RnUaVm
- UaNoU6VoUqVkT6JiS59iTKRqWL2UhunX1f////////3///////7+/r+XjJtdRKRpU6RnUqRnU6VnU6Vm
- UaRnUqZnU6VnUqRnUaRmUqNmUqNmUp9eRtK4rv///////////////wAA/////v//////////////////
- ////0fv/UcLRLGd0qbC1xMDDzM/S7e/w/////f//////////////////////////////////////////
- /////f/+/f7+/v///f7//v7////+4Pj+i+78KKi3OmVwo6euubm+ys/R6e3t////9/z+yvH7hOz6S9Pl
- JJ2tN4CNdJObrLK2x8XI1dHU39ze4uLj4/L2iun5JYiYQUJBYzcqkXRwuvj+OLXFMFVXZTkpimlirfD4
- LY+fSElFb0I2dk9EiFE8x6qk////1LWuomJKoWlSpmBKnmVQqKmmrPT8kc7Zt8nR4N7j5ujp9/r5////
- 8OvqqHJgqGlUq25ZqG1Zqm5boWNO3MrD+PTzs4d3nF9HpWVRqW1aqW1ap21ZqGxXpGZQo2VOpmhRp2xY
- qGxYp21Yqm1aoWROo2dT4M7K//////7+/v///Pr6vpSIm15HqWxaqGxbpWxXp2xYqG1YpmhSpGZQpWhR
- p2tXqG5Yp3BbpmlTsHpq+PT13MjBo2NPp21Yq25ao2JMyKWb/////////////f7///7+////////+PXz
- sHlppmlTpm1WqG1ZqW1ao2JN0rSt////vZSFo2NNqG5aqG1Zp21YqGxYqWxZqG9aqW5Yqm5cqG1ap21Y
- p2pUn2FLpWxW0rWs//7+/v/+/////fv8vY6Do2dSqm9bqW1ZqW1Yqm1Zp2xXpm5YpmxWqW1Zp2xYqG1Y
- p2xXp2pUpGxW6uDe////////////////AAD////////////////+//7///////3z/v+h8/0nkKFYe4W6
- wMK/wsXX29z4+Pn+///+/////////////////////////////////////////////v/9//7///////7/
- //7////+/v7M9f1y4/Qdh5JYd362trq9vcHY2Nv19/j//////v/g9/ye7/ll5PU2xtgknqs8k55jmaKR
- qbC1ur/DwsTR2+GV8PwmlKM/SUtmQTR3SjzEy8qK7vwdjJhHV1eEg4KJ5vEleYVQPTZwQTR9TTmUZVPx
- 6+n////s396naVelbVeobFmkaVKmZVPhysL////////+///////////+///IpJqkZE6oblqnbVmnbFmn
- aVSpc1/49PHl1dOgXkirblmlbFiob1qoa1ajZE6obly0hHi5kYWzg3OlaFWpalapblqoaleqbVqiZk6m
- dGL16+v+///////exsGcX0iocFqqbVmma1apb1qkZ1GlblqygHC2hnavemmma1agYEqlZlCfXUXSt67/
- ///y7OyrdGKnaVSobVqlbFekalTXwrv+///////////////////////PsaigZE6nblmobVmobVmoa1ap
- bVju4uD9///AloukZE6oblmoblmobVmncFumbVegYUudY0yiZk6naFSob1qoblqoblimalSeXkvTtrD/
- ///////9/P29j4KjZU+nbVmnbFmnbVeqblmhZVGkZlKkZ1OlaFOlaFSmaFSnaFSgYEy/m47+/v7/////
- //////////8AAP/////////////////////////+/////+b9/3Db6hpwfoybo8TBxcPIy+Xn6f7+/f7/
- /////////////////////////////////////////////////////////////////v////L9/bz0/1DP
- 3xxqeXuSmLe3vcXDyODj5Pr8+/////////L7/cHw+orq+WPi8jrM3iq1xiqms0Sqt1fDz3fi8F3e7yN9
- jU1GQ3BIO3tIN6B6bbnv9Fza7Ce80ULZ6SuuvT9xfZaGhIpsYYdbScuzrf////////v6+riLfaVjTqdu
- WqZvWqZmVKFmU8OeleDNyujc1+vd2+TU0MKflaJnUqltWadtWKdtV6huWaJjTb2Wh/7///v5+LqQgqJh
- S6VuWKNlTqZuWcakme7i3/78/f7///v5+d3IxKZwXKdpVKdsWKpqVqVuWZ9gSdOzq/////38+7eHeKVm
- T6lvW6dsWKZsV6ZmULaIeOfa2Pr5+P36+fr39OTY1Mmmna95Z7OJfPj08/////7//7+WiaRkTqluWqdu
- WaZqVaZmVMOYjd7Mx+rb2Ond2ObW08inoaZnVKRqVahrWapvWqltWaVmULmIeP7+/v7//8KYjKJkTalt
- WahtV6drV6lsWKhyYMikms6vp8KajKhwYaFkTahuWKhsWKptWaZpUqNrWOzi3v////79/ryQhKJkT6ds
- WahtWahqV6ZvW9CzruLKxuLMyOLLyOLMyeHMyODLyOPS0Pz49////////////////////wAA////////
- ///////////////////+///+/f7/vvj/PLjEMGl0rra6vsHEz9PX8PDz/v/+////////////////////
- //////////////////////////////////////////7//v7////+6/z9n+37Mq/BMmVwmqeut7m9yM3O
- 7e3u/////v/////+///+7fn9ue73geb1WuP0QtrrKtTlHNToJM/jJqe2QF1fbkc+f1FBjVtHkVdBvra1
- qvX/PODwHLfJRZCbrbe91dXa3t/h5+Ph/Pz8/v////7/////0bavn2BMqm5aqWtYpnBapmtVpGVOo2hT
- p21Xp21ZpGhWpGRPpm1YqG1XpmxYp25YqGxXo2NP28K8////////8+3tsYNynWBKuYd76NzZ////////
- /////f///v//////zKyioWJMpm1ZqG1Zpm5ZoGNOu5CC////7+Phpm1WpmhUqWxYpmxYpmlVpnBg8Orm
- /////v///f//////////////9vDx9vT0/////f7+////3crDomNOp21XqW1Xp25Zp3BboWFMoWVRpmxY
- p25ap2pVoGRPpmxXqG5bqG5aqG1YqW5aoWJN1bew//////7/wJeJo2RLqG1ZqG1Ypm1YnmNN0LGn////
- ////////8ennwJiKo2VQqG1Zp25apG1XoGBJzKad/////f7/vpGEo2VQp2xZp21YpmlVqHJh8erp////
- /////////////////////////////v/+////////////////AAD////////////////////////+///9
- ///////x/f+W8PslkJ1Xe4PCwsTAxMbW29/49vf/////////////////////////////////////////
- ///////////////////+//79///9/////v7Y+P576/gnjJlOdXuwtbq7vMHY2dz4+fn////+////////
- //////7t+PvF8fef6PRd3+48zeBXusVncnF5TDuFU0KPXUmaY02eX0vexsL0//+97PS53eHc4eLq6Ort
- 7+/6/P7////////8/v79/v/////y6OWobVipalembVumcFqnaleobFigYUyiXkmgX0ikZlCma1iob1qo
- a1iobFmlblmoalOscmHy6+n///////7////08O/k09D8+Pj////+///+/v/+///9//7+///////dxb2f
- ZEynbVmpbluoblmjZVC5hnf//f7gysWjZ1KmblmobFaqbVmiZk65joH////+///9/v/////+///9/v39
- /v/////////+///+//7////38O6rcWCmaFSla1arblmnb1uqbVilY02hX0qeYEijY0yqblqobFmpbVmm
- bVimbVipbVemalbp3dv////+///CmIykZU6pbluobFenbVqlY07axLv////+///////////59vaygXOk
- ZFKncFqpalqmZlKxfW78+vr9//++kYSmZ1GoblqnbVelalSrcF7x5OP/////////////////////////
- ///+/v7+//////////////////8AAP////////////////////////7+//7+/////////+D5/3Pg7B12
- hIKUnMTExcHIyN/i4/z8/P////////7+/v//////////////////////////////////////////////
- //7///7+//////r+/8L4/lnU4h1reYGVmrS4u8PHyebm5//+//7//v3+/f/+/////////v///v39/e71
- 9+bw9ejm5ZtpXI5XQ5diTp5lUaRnUqNrV+bb2f///////////////v39/f////7///////7+//z+////
- /v////3+/r2Pf6RkT6dwWqZvWqZrWKdxXb2Qg8GUiMGWirOGdaVqVadtWKdtWahtWadrWKZjTcCXiv//
- //7///v//v///////////////////v7+//7+//7//v7//////////8SimKRkTKtsWKdvWahsWaNlT7mM
- fv3//9S4sqRjTqhsWKdtWKluW6FkTcOZjP////3+//7//v7+//7//v3///////7///7+//3+/////v/+
- //7+/sehlqFiTKlvWqhsWKZrV6hwXLuQgsGWisCUibmKfKduWqZsV6dsWKdtWaZtV6NnUbmKfPz7+///
- /////8SZjaJkTqhtWadtWaduWqJjS9nAuf////3//////v7//////9O4sKJhTKptWahtWaZpVKhxX/Pt
- 6////72PhKVlT6htWKdsWKZoU6pwXvHl4/////7///7///7///////////7////+/v7/////////////
- /////wAA/////////////////////////v///v/////+/f///f//zvv/T8XUJmp4nqqxwMPEx83P6+rt
- //7+/////////////////////////////////////////////////////f///f7+/v7//v7/////8v3+
- nvL+Lqi2Omdypq6zt7m+0dPW9fT1/v////7//v7+/v7+/v///v//////////////+vTzpnJimmVOpGpX
- pGpXpmpUpG5Z6uDf/////f/+/f7+/////v///v7//v7////+/v7//f7+//7+/v7/////2MG7oGNNqW5Y
- p21ZoWVOwJmL////////////697bpmtYpmpWqHFcp2xXqW5ZnWJN2sO9/////f7+/v/+/f///f3+/v7+
- /v///v///v7+/v/+////////////6NrXp29cpWtVp2pXqHBZqm5ZoGFLxJ2N////0bOtomJOp21XqG5Y
- qG9bo2ROxJqO/////v///f7+/v///v7//f/////+/v/+/v7//v7+//7////+////383IoGRPqmpXqG9Z
- pWVPt41//v/+////////8ejnqXJgpmlTp21Yp25ZqW1Zn2FL0LSt/////////v//xJqNomRNp21ZqG1Y
- qW5YomNO2L+4/////v/////+/v7+////5NHLnmVOpmpXqG5ZpmpVpGhW6+Dd////u46DpGVPqW1YqGxY
- pmlSq3Jf8ufm//////////////////////////7//v//////////////////////AAD/////////////
- ///////////////////////+///////6/v+w9v84q7o8cHq3ub7CwsbR09jy8vL+///9////////////
- ///////////+/v7////////////////////////////////////////////X+P5t5PAee4hpgoq3uLu/
- wsbd4OT7/Pz////+/v7////////////////////////69fWweWqjaFOnbFinbVmma1Wob1vt4uD/////
- ///+///////////////////////////////////////////w6OirdGCmalSobVmkaFG0g3T7+vr9////
- ///Zv7eiYkypb1qob1mpbVika1WpcmDv6Ob//////v/9///+//7+///+/v/+///+///////////////4
- 8/PYw7uocGCoaFOnbluna1iqb1qmbFigYEzYu7L////TtK2hZE+obViobVeobVqiZE3GnpP/////////
- //7////////////////////////////+/v////7////39fSxe2unaFOmbFmkZlOtdWP07Oj////////f
- y8OkZFCobFenbVmmbVqobFekalfv4eH////////////BmY2jY06obVmobFmoblijZk/Xu7P/////////
- ///////////o2NShZVGna1eobFmnbFinalbu4N3///+8kIOkZE6pblqobFimaVOocFzt4uD/////////
- //////////////////7///////////////////////8AAP//////////////////////////////////
- //////////////P+/5Lx/CCPoVd5gr3Cw8HEyNna3fb19//////+////////////////////////////
- //////////////////////////////////////P8/rX0/zu+yyllbpuorLu4vMbMzvDu7v////7/////
- //////////////////////r19LF7aqVpVKltWaltWqZqVatwXO7i4P//////////////////////////
- //////////////////////7//////8GYiqFkTqhuWqdsVqdpVuXV0v/////+/ruMfKFjTKluW6dsWKpu
- WqJjTr6ViP39/v/////////////+//z///3///////////Dn59nEvcqnm7J9baNiTaRmUaluV6ltV6ht
- WqhuWqJlUKx2ZfXz8f///9G0rKBkT6htWKltWahuWqJjTMeelP///////////v//////////////////
- //////7///7//////v7//////8ulmqJiTKduXKhtWKJjTt/Kxf///////8KfkqNiTKluWaltWKluWqRl
- TrmKfP78/f///////////8GZjKNjTqhtWahtWqhuWaRlUNa6tP///////////////////+jW1KJlUalt
- WKZuWaZsWKhrVu7h3f///7yQg6JjTaltWqhtWKltWKdqVreHfMiilcWckMSck8SflMennO7g3f//////
- /////////////////////wAA////////////////////////////////////////////////////2/r/
- euLvHnuJcYyVx8TGxcjK3d/i+vn6////////////////////////////////////////////////////
- //////////////7+///+6fr/h+z4IoyYVnh/sba6ur7B2drc+fr7////////////////////////////
- +vb1sXtqo2hSqW1ZqW1apWlUrG9b7uLg////////////////////////////////////////////////
- /v//////3MjBomNNqW1aqW1ZoWFMz6+n////8ejmqHBbp2tVp2xYqGxYqW1ZpGRQ17+6/////v//////
- /v///v/+////////6+Lew56Tq3JfomJOoWBMpWhQqG5apm1Yp21YqG1ZqW5cpmdRomZR4M3I////////
- 0rOtomRPqG1YqGxYqG1aomNMx56U///////////+/////////////////////////v///f7+/v7//v//
- ////59bRo2RQp2xZqm9ao2FMw5mO////9/PxrnhnpmhTqG1ZqG1Zp25Yo2NL1bev/////////////v//
- wZmMo2NOqG1ZqW1apm1YpGVQ1rq1////////////////////6NfUo2VRqG1Ypm5ZpWtXp2pW7uHe////
- vZGDomNMqGxZqG5Zp21ZqG1Zo2ZPomNOoGNNoGFMoWJKn2BGrXps9vPy////////////////////////
- AAD//////////////////////////////////////////////v///v3//v7T+v9c1OMcc4CQnKPHyMrF
- yczh4uT7+/v//////////////////////////////////////////////////////////////v/////8
- //7H9/5Ty90fZ3SHmZ+0t7zFx8zr7Oz+//7////////////////////////69vWxe2ukaVKobViobFmm
- alWrblvu4uD////////////////////////////////////////////+///9///////18e+sc2Kna1Sn
- b1umZlG3g3X////bwLqiYk6pbVmoblenbVmmaFOsc2D27e3////+/////////v7////////XurSla1ei
- YEulalSmbVeobVmocFqlblinbVmnbVimZ1KgYUmmcl7ey8T//////v/////StKyhZE6pbVipbVmoblqi
- Y0zGn5T///////////7////////////////////////////+///9/v/+//7////59vewgHKkZ1CnbFmm
- alWweGf8+/rk1c+jZlCrblqpbVmpbVmma1WmbFns4N3////////////+///AmIykY06nbFiobVmmbFej
- ZE/VurT////////////////////o1tOjZVGobVimblmnbFeobFjt4N3///+9kIOjZE6pblqpblinbVqq
- bVqoa1WmaVSna1WlaVaoZ1SlZk6iZ1Ly6uj///////////////////////8AAP//////////////////
- /////////////////////////////////v/+/vz+/735/1LH1yZuepGhqMTEyMjMzeXl5/z8/P//////
- //////////////////////////////////////////////////////7//////+b7/4vt/COXpURuda6x
- trS6vtXY2fb4+P////////////////////////r19a95aaVqU6htWKhsWaZpVKptWu3h3///////////
- //////////////////////////////////7///7//////////8Gek6NjS6ZvWqdsV6RoVPLp58eilp9i
- TKdtWqhtWahuWaNiS8CWiv///////v7//////////v///9bAt6BfSadqVKhuWqhuWaduWKhuW6dsWKdr
- U6JhTKVkUa95Z8mmne/o5v////3///3//////9S0raFkT6hsWKhsWKhuWqJkTceflP///////////v//
- //////////////////////////7+//3+//////7//////8qroqBjTaltWaZtWKNoU+fb2M2toqJjTaht
- WadsWKhtWaNlT7aJev39/f////////////7+/8GYjKRkT6htWahtWqdsWKNlT9e7s///////////////
- /////+jX1KJlUaZsV6lvW6ZqV6ZrVu3g3f///72Qg6VlT6ltWaltWqltWKttV6ZoVaZuWKZvXKZuXKds
- WKdzYdK4sP///////////////////////////wAA////////////////////////////////////////
- /////v///v////7////+9/3/sPT/QL/MJGx2o6euxcbJy8/Q5+nq/P39///////+/v/+////////////
- /v7+/////////////////////////f7+/f///////f7/v/j/Ss/eHGx1i5adtrS6w8bJ6Onr///////+
- ///+/v7+////////+vT0rnlopWpUqG5aqW5ap2lVqm5a7eHe/////v//////////////////////////
- ////////////////////////////3szHoWNOqGxWqm1Zo2lUuo1/rnpnpWxUqG1aqW5aqW1ZoGFM2sbA
- /////f7+/v//////////8ujnp25foWhRqGpXqm5YqG1Zq25ZpGVQoGBLrXdnyqKZ4M3H9O/v////////
- /v///f/+////////0rStoWVQqGtYp21ZqG5ao2NNx5+V/////v///v7+////////////////////////
- /////v///////////v//////6dnXp2lWqGtWp2xZpWlTt4p7sH1rpWtXp21XqW1Xp21YoGFL0bOr////
- /v///////////v//wZmNo2ROp21YqG1Yp25apGZQ17yz/////v////7////+////6NfUomVRpmxXp25Z
- p2tXpmpX7eDd////vZGFpGZQqG5ZqG1YpmpVqHBd2cXC7ODf697d7ODd6uDd8ezs////////////////
- ////////////////AAD////////////////////////////////////////////+///+//7/////////
- ///z/P+r9f8/tsQtcHmmsbXKyMrQ0dTp6uz+/v3////9/v7////////////+/v7/////////////////
- ///////////9/v7+///////s/P+O7fsmm6tBanOqr7K2ub3W2dv7+vv////////////////////59fSu
- eWimalOoblmnbVelalWobVnt4d//////////////////////////////////////////////////////
- /v7+///38/Kve2ukZlKnbFmpblqkZVGkaFWqbluobVmqblmmaFOscmDz6+r////+///////////////Q
- s6uiYEunb1mobVqnbVenb1ijZVCxfGzXv7f28O7////////////+///+/////v/+/v7////////RtKyh
- ZE6na1ioblioblmjY0zHn5b////////9///+//7/////////////////////////////////////////
- ///9+/y3hXelZU+pbVmobVilZ1OlalWpbVqobFaobleobFema1fv5OH//////v7////////+///BmY2j
- ZE6obliobVmnbVikZVDYvLP////////9///+///////n09CkZVGqblqnb1mma1amalfs4Nz+//+9kIam
- ZVCoblqobVikZ1Kwemr49fb///////////////////////////////////////////////////8AAP//
- //////////////////////////////////////////7///7///3///7+///+/v///u37/qTx/TWtvDlv
- eKmxtsfIy8zS1urq6/z9/f3///////////////////////////////////////////7///7+//7/////
- //z+/sX1/k3S4R5odICUmra1ucXIyuvr7f////////////////////r3+LF8bqVoUqhuWahuWalpVKds
- V+fc2v////////////////////////////////////////////////7//v7+//7+/v///8efk6JkTqdt
- WqhtV6ltWahsWKhrWadsWKZtWaJkTcSXiv/+///////+/v////////78+7iMfqJpUahuWqZqV6duWKho
- VLOCc/Pp6f/////////////+//3+/v7///7+//////7//////v///9S2rqRmT6dsV6ltWKhtWaJkTMSe
- kf////7///7+/v/+/////////////////////////////////////////////////8+xqqBiS6htWaht
- WapuWqdsWKhsV6dsVqlsWKNmULiGePz6+/////3//////////////8KajaRjTaluWahuWahtV6VnUdi8
- s////////v7+/v7+/v///93Fv6BmTahrWKhvWaZpVqttXPPr6f7//72RhqdlUKdtWaZsV6RnUbB7aPjy
- 8v///////////////////////////////////////////////////wAA////////////////////////
- /////////////////////v///v///////v/////////////+8Pv+nvT+Nqy6M3B8q7C3yMnJytDR6evt
- //7+/////////////////////////////////////////////v///////v//////6fr+g+r5H4+bU3V+
- rbG0tbu93dzf/Pz8/////////////////Pz8tIZ4pWdRqG5ZqW5aqGtWpWdS3s7I////////////////
- /////////////////////////////////v/////+//7/////5tPNpGZQqXBaqG1Zp25ZqG1Ypm1Zp21Y
- qW1Zo2VQ2cG6/////v//////////////+/b1s4BwpGZSqnBapmxZqW1YpWVP2sTA//////39/v7/////
- /v/+/v///f///f////7+/v/////+////2L+6pGVQqG1Xp21YqG5YpWVNvpGC/////////v/+/v7//v//
- /////////////////////////////////////v//////7N7cpGlUpmtVp25aqGxYqG1Zp2xWqG5Zp2xY
- oWFM07as/////v///v/+////////////wpqNo2NNp21YqG1YqGxXpGRP2L61/////v/+/v7+/v//////
- wZyOoGNNpmpWqG5Zp2pUr3dp/Pn5//7/vZCEpGVQqG5Zp2tXpGhRsHtp+PLy////////////////////
- ////////////////////////////////AAD/////////////////////////////////////////////
- ///9///+//////7////+///////////t+/6b8vwyrbsycHqqr7XMy8zO0dTn6er7/Pz/////////////
- ///////////////////////+///+///+///+/v/////3/v+69P88uckvaHGYpaqztrnPz9Tz9PX/////
- ///////////+///DoJOjZE2obViobFimblmgYUzXt6z////+////////////////////////////////
- /////////////v/+/v7+///////39fSwe2umalSpbFinblmobFmpb1uobFimaVSrc2D17+7////+/v7+
- /v7////////69vW0f3CnZFGpb1qoblqnbFehZlHeysX////+/v/9///9////////////////////////
- ///+/v/////l2NeiZlSpbFinbFiobVmlaVOxemr69/b////+/v////////7/////////////////////
- ///////////////////////8+/u5iXykZVCmb1qpbViobFiobFipb1qmalWqbVvr393////////+/v//
- ///////////Cmo2kZE6obVmobFima1alYk3cxbz////+///////////n2NSmbFqmaVana1eobVmiZU29
- mIz+///+/P69kYOlZU+pblqobVikZ1Kwe2r48/L/////////////////////////////////////////
- //////////8AAP////////////////////////////////////////////////7///7///7+///+//7/
- /v7//v///////uv6/5rw/DGwvytxf6SrsM3Mzs/R0uXm5vn5+v////////7//v////7///7/////////
- ///////+//3///7+//////7//tr8/2zb7BxygHmLlLW1usDFyurr7f////////////7//////9i/tqBg
- TKhsWahuWahvWqNnUbF9bfXw8P////////////////////j29uLV1Pbx8P/////////////+//7+/v7/
- /v///////82nnp5jTKltWKdtWKdtWaluWalrWp9pULyShP/////////+/v////////////37+rWGe6Jl
- T6hwW6psV6ZvWKRkUMGXivn6+f////////////////n4+Ord3vz6+v////////7+//////r3+K55aaRo
- UqdsWKlsWKhuWaNkUNa7tf///////////////////////+zg3+nf4P////////////////3///////7/
- /////9G0rZ9hTKdsWKdtWqhtWahsV6hvWqVmUbaGeP/7/P////////7///7//////////8KajaJkTqhu
- WqhsWadsV6NjT8+zrP////////v4+NvIwah2ZKZnU6hyXKhtVqVsVqFfS+LKxf////v7/LuRhaZlUKdu
- WadsWqVnUq97avv4+P///////////////////////////////////////////////////wAA////////
- /////////////////////////////////////////////////////////v///v///v///f7+///+6vr/
- nvL+RbzMKXeDi5+kzcrMys/P3+Dj9/b4//3+/////////f7+/f39/v7+/////////////v7+//////7+
- ////6/3/juz6Jo2bWXmBsrS3ub/C4uTl/////////////v//////7+bmqG5do2hUqW1ZpW1YqG5ZpGlT
- sYZ34MzI7+Tg7+Pi5NbTyKqhtH5woGJNwJiK/f7///////7/////////////////////5tbTpmlWqWtX
- qW1ap21YqG1ZqGtZoWNM3MbA////////////////////////////yKujnmBJpW9aqGtYqGxYqG1Xo2dS
- u4uA2Lq14MrD2cG7yqmgtINyomRPzq2l////////////////////yKeboGFKqm1bpGpWp21Zp2tWqW1b
- y66m7N7c8Obi7ODc1728vJOIrHFdpW5e69/d/////v///v7//v/+/v////7/////8OXlpWxbqWxWqG5X
- qG1aqG5ZqW1an2JL0bGn/////////v/////+/v///v///f//w5uOo2RPqG1ZqGxZqWxXqG1XqHJfvJGD
- vJOGs4NwpWhTqGlUp25apmxZqXBcoV9KuY6C/fn6/v///Pz7vZGEomNOqW1Yp21Zp2pWqHFc2MC5693Y
- 6NrT6NjV6NjV6NnV6NjU7uXg////////////////////////AAD/////////////////////////////
- ///////////////////////////////////+///+//79/////v////7////1/f+w9v9Jydoieol7kJnH
- yMrO0M/c3eHi8Pa26e/R4eX79fTw7fDv7/P5+vn+///////////////+/v7////3/f+s8/8zpbJAbHOo
- sLO6vcHe3+H+/f3////////+/v7+//7////MraaeYUmqbVmobFmobVmqclqkZ1CiZVKnbVqmbFmiZlKh
- Yk2lalKnaVSiZFHn2dX////+/v7////////////////////8+/uzgnGkZVCpblmpbFmnbFenZVGqc1/y
- 6uj////////////////////////////r4d+jaVaoZ1KobVmobFinbViobFmhZk+iY02hZFCgY02eYUyl
- Z1KhY0m4joH+///////+/v7////////u5+Wma1uraVOlb1qla1eobleoa1WhY02ma1enb1ymbFWlY1Ck
- ZU+ka1WiYUrCnJD+/v/+///+/v/////+///8/v////////66jHyjZE6obVmobVupbFiobFelaFTt39v/
- /////v/+///+//79/////////v/Em46kZE2obVipbVmpbFinbFila1WhZk+fYk2laFKpa1aoalilbVio
- blmiX0muemrv6uj////////9+/28kIOiZU+pbFipbVmmbVmqbFijZU+kZVKjZlGjZ1KkZ1KkaFKiZ1Gj
- alXo2NT///////////////////8AAP//////////////////////////////////////////////////
- //////////////7///7//////v7///3//////////vb9/bz2/mbV5iCHlWeLlcTBxNLO0s7i5Ynp8jar
- tn+jrdDQ09/c3t/h5PDx8vz9/v////////7//////////r73/jmvvDdlcKStsry9wd7g4f3+/v//////
- //7+/v/+//////n29baJfJ9fSKZsV6hrWqZuWaVvWahsWKdqVqdrVqxtWatwXKZuWadtW6NhTLyUh///
- /////////////////////////////8ytpaFiTKpvWadsWKhuWaNlTb2Xiv7+/v////7/////////////
- ///////////+/8+yq59eSahsVqhuWqhtWahsWqduWqhuV6tsWqlsWaltWattWaNjTbyPf///////////
- /////////////9nCvZ5jT6hnUaptWqZsWahuWalvWaZsValrVqpsWKdtWahsV6huWKdrVaNoVOrc2v7/
- //7//v7+//7//v7//v7+/////9u/uqFiTqltWahuWKhuWaNmULeGd/v4+P////////////7///3//f//
- //3+/8SYjKRjTqduWadtWaltWqdtWKdtWKlsWqpvWqhvWahwW6ZuWKVnUaJhTLWKfPDl4v////3+////
- //38/ruOgaVmT6luWqluWKhuV6htWqRuV6pvWqZsWKdtWKltWaltWahvWZ5gScaimP//////////////
- /////wAA/////////////////////////////////////////////////////////////////////f7/
- /v///v/+/v///////f/+///+/v7+1Pf/e+TzLKa0PoWPlaarz8rLzd3khuTyLbLCQpSgprW41M3Q4drb
- 5+jo8/T1/Pv8//7+//7++fz8uPX/NqKwQGt1rrS4xMPG5eXn/////////v///v7//v7+/v7/////8+3s
- w5eNn2NLpGROqWhTqGtYpWxXpmxXp21XqG5ZqG9aqGpUomVOnWFJxKSZ/v///v/+////////////////
- ////////7+HfoWNOn2JMo2dTpmtVnWBK2MC8/////v7+/v/+/////////////////v/+////////z7Gm
- nmZQoGBKp2hSpmtVq2xZqG1ap21YqW1YpWdSomVPmlpCyqmh/////////v7+////////////////2cS7
- p3BdoGFKoWdRp2pYqGxXp25ZqWxXp2xXpGxXqGxWo2lSn2BJrHZn7eLe/////f/+/f7//v////7+/v7+
- ////8ennpW5bnWBJpmhQp2pVn1xIz7Oq/////////v///v////////7+/f///v//x6SZmVlBpWVOo2ZQ
- pGZRo2RPo2hRomNNoWVPo2NNoWFLpGhRtIV21722+/v6/////////f7+/v/+//7/yaadm1pCpmVRpWZS
- pWdUpWZRpGVQo2ZRpGZRo2ZRo2VPpGZQomVQoGFLrnpq/Pr7////////////////AAD/////////////
- ///////////////////////////////////////////////////////+/////v/+///////+/v///v//
- //////////7k+f6e8fxLxtgnjJxplp25uLvLztKn3+tQ0+EwscNborCjuLvX0tLl3t/s5+jz7O3y6+zU
- 8fh16fYlf4xviI+9wMHPz9Hy8fL////+///+/////v////7+/v7+///////9/f3hyMK8j4CpcF6jZVCj
- ZU+iZE+hZU+iY02kZVGrdWS+mIzn1dD9/Pv////+///////////////////////////9/v3Vvbe6j4G1
- f3ClbFqsfm317+7////9//7+///////////////////+///+/v7////////q2dTCnJCud2ejaFKiZU6j
- ZU+hZlGgZVCkZlSve2rKsKb49vX////////////////////+//7+//7////w5+PHpZmvfWqiaFWiZVCh
- ZE+hZVCjZVCiZFGpbFi1hnfStK327uz////9///+/////v7+///+//7+/v////7+///dxsG7kISwf26m
- blqreGft5eL////+/v/+/v7+/////////v/+//7////07OjFnJC2h3u3iXu4iXm4hnm5h3i5iHm5joLE
- m5HUtq7p2dX59/f////////+/v///v////7+/v/////48/HEo5exf22zgm60gnCzgm+1gW+0gXC0gXC1
- gW+0gXC0gW+zgG2wfGrGopf9/fz///////////////8AAP//////////////////////////////////
- //////////////////////////////////////////////////////////////////////////b9/771
- /mzg8SywwjeapoCkrLWzusTR1ZHf607R4iy4yl+7yoDDy6DJ0qDQ253f6Hzo+CyvwThwe7CzusvMzeHk
- 5vz+/f////////////////////////////////////////7//+/l5N/KxNrAuda4stK3sNq/uOLMyPLt
- 7P////////////////////////////////////////7///7///////////z4+Ozh4fTv7v////7+/v//
- //////////////////////////////////////////////bx8OXSzd3EvdrAudi/udvDvOLPzfj19f//
- //////////////////////////////7+/v////////////j19uPS0N3Dvda6s9Gzrte6tt3FwOra2f79
- /P////////////////////////////////////////////////////r49+7i4fLr6f//////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////37+vv4+Pz4+Pz4+Pv39/z39/v29vz49/z39/v39vv29vv39v//
- //7//////////////////wAA////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////795fr/p/D8X9rqJr/PMJup
- cY6Wvb2/xtbcoOHqbN7sRNPmMdHkPNfrIdbnKLbFTJagrbi91tTY4OLl9/j4////////////////////
- /////////////////v///v7//v///////////////////////////////////v///f///v//////////
- /////////////////v///f7+//7+/v///////////////////v7//////////v//////////////////
- /////////////////////v/////////////////////////////////////+/v//////////////////
- /////////////////v7+/////////////////////////////////////////v///v//////////////
- /////////////////////////////////////////////v/+////////////////////////////////
- /////////////////////////////v///////////////////////////////////////////v//////
- /v///v///v///////////////////////////////////////////////v///v//////////////////
- AAD/////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////v////7////f+f6Q7vw60eEWdoSVq7Di3d/v5uXu8/XZ
- 8/i87/aa5/Nyz92VxMrZ29zp5ebr7e77+/v////////+/v7////////////////////////////+//7+
- /v7+/v///v/+///+//7////////+///+/////v/+//7////////////////////////////////////+
- /////v7////+///9///////+///+///////9/v7+//7/////////////////////////////////////
- ///+///////+/////v/////////+///////////+///////////////////////////+/v7+/v7/////
- ///+/v/+/v/+//7////////+///////////+///+///////////////////////////////////////+
- /v7////+/v///v/9//7+/v/+/f//////////////////////////////////////////////////////
- ///////+///+///////////////+/v7////////////////////////////////+///+///////////+
- /v7////////////////////////////////9///9/v7///////////////8AAP//////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ///////////+//7+/////////v////z8/d73+8Lj6ODn6vf09v79/v///f/////////9/P/6+v/7+vv6
- +vr8/P////////7+/v////////////////////////////////////7///7///7+///+/v7//v3+//z+
- //7//v7///3///7///////////7+/v3///7+/v////////////////////////7///z+/v7///7+/v7/
- //////7+/v/+/v7+/v////////////////////////////////////////7///7///7+//////7+/v3/
- //7//v7+//7///7////////////////////////////////////////////////+///+//7//v////7+
- /v7+/v7//v///v/////////+//////////////////////////////////////////3//v7///7+//3+
- /v////////////////////////7+/v////////////////////////////////////7///7/////////
- ///////////////////////////////+//////7///3///7///7///7/////////////////////////
- ///////////+//////7//////////////////wAA////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////7//f7+/v/+
- /v7//v/+///+/////////////v/+/v/////+/v/////+//7//////////////v///f/////+////////
- /////////////////////////////////////v///v///////////v///v7+/v///v////7/////////
- /////v///////////////////////////////v///f///v7//v///v7+/////v7+/v///////v/+/v//
- /////////////////////////////////////////////v7+/////////v///////v7+/////////v//
- /////////////////////v///v7+/////////////////v7+/v7+/v///v///////v7+////////////
- /////////////////////////////////////////////f///P/+//7+/v///v//////////////////
- /////////////////////////////////////////////////////////////v//////////////////
- /////////v///////////////v///v///////////////////////////////////////v///v//////
- ////////////////AAD/////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////8AAP//
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////wAA////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////AAD/////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////8AAP//////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////wAA////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////AAD/////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////8AAP//////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////wAA////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////AAD/////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////8AAP//////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////////////////////wAA////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- AAD/////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////8AAP//////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////wAA////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////
- ////////////////AAA=
-
-
-
-
- AAABAAEAMDAAAAAAAACoDgAAFgAAACgAAAAwAAAAYAAAAAEACAAAAAAAgAoAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAMDcwADwyqYABAQEAAgICAAMDAwAERERABYW
- FgAcHBwAIiIiACkpKQBVVVUATU1NAEJCQgA5OTkAgHz/AFBQ/wCTANYA/+zMAMbW7wDW5+cAkKmtAAAA
- MwAAAGYAAACZAAAAzAAAMwAAADMzAAAzZgAAM5kAADPMAAAz/wAAZgAAAGYzAABmZgAAZpkAAGbMAABm
- /wAAmQAAAJkzAACZZgAAmZkAAJnMAACZ/wAAzAAAAMwzAADMZgAAzJkAAMzMAADM/wAA/2YAAP+ZAAD/
- zAAzAAAAMwAzADMAZgAzAJkAMwDMADMA/wAzMwAAMzMzADMzZgAzM5kAMzPMADMz/wAzZgAAM2YzADNm
- ZgAzZpkAM2bMADNm/wAzmQAAM5kzADOZZgAzmZkAM5nMADOZ/wAzzAAAM8wzADPMZgAzzJkAM8zMADPM
- /wAz/zMAM/9mADP/mQAz/8wAM///AGYAAABmADMAZgBmAGYAmQBmAMwAZgD/AGYzAABmMzMAZjNmAGYz
- mQBmM8wAZjP/AGZmAABmZjMAZmZmAGZmmQBmZswAZpkAAGaZMwBmmWYAZpmZAGaZzABmmf8AZswAAGbM
- MwBmzJkAZszMAGbM/wBm/wAAZv8zAGb/mQBm/8wAzAD/AP8AzACZmQAAmTOZAJkAmQCZAMwAmQAAAJkz
- MwCZAGYAmTPMAJkA/wCZZgAAmWYzAJkzZgCZZpkAmWbMAJkz/wCZmTMAmZlmAJmZmQCZmcwAmZn/AJnM
- AACZzDMAZsxmAJnMmQCZzMwAmcz/AJn/AACZ/zMAmcxmAJn/mQCZ/8wAmf//AMwAAACZADMAzABmAMwA
- mQDMAMwAmTMAAMwzMwDMM2YAzDOZAMwzzADMM/8AzGYAAMxmMwCZZmYAzGaZAMxmzACZZv8AzJkAAMyZ
- MwDMmWYAzJmZAMyZzADMmf8AzMwAAMzMMwDMzGYAzMyZAMzMzADMzP8AzP8AAMz/MwCZ/2YAzP+ZAMz/
- zADM//8AzAAzAP8AZgD/AJkAzDMAAP8zMwD/M2YA/zOZAP8zzAD/M/8A/2YAAP9mMwDMZmYA/2aZAP9m
- zADMZv8A/5kAAP+ZMwD/mWYA/5mZAP+ZzAD/mf8A/8wAAP/MMwD/zGYA/8yZAP/MzAD/zP8A//8zAMz/
- ZgD//5kA///MAGZm/wBm/2YAZv//AP9mZgD/Zv8A//9mACEApQBfX18Ad3d3AIaGhgCWlpYAy8vLALKy
- sgDX19cA3d3dAOPj4wDq6uoA8fHxAPj4+ADw+/8ApKCgAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP//
- AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMT
- ExMTExMTEyIiQiI8HTyCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwDODg4Nzc4MQMdAAAA
- AADDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOw4ODgyOCQAAAAdAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAODIyMSIAHewAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAA7DI3MSIdCwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAADEyMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAs4JAALAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwxJAAhAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4IgC8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAJAxJB0LAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- ALwLCx0dIh0dCwATAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACx0dAB0dIiIiIiId
- CxMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvAsdAB0dIiQkAyQkIiIiHSIAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAIgMxMVhZmZqZAyQiHR0AAAAAkAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAvAsdISIDMThZWVmgvaCZWVIkIh0AAB0dIh0hCwALCwALtgAAAAAAAAAAAAAAAOwAAB0iMTEx
- ODhYWZrDw8Ofn1hSJCIAHQAdACIAHSIkAwsdOAAAAADeExMTCwsLIiIkMTEyODg3MllZmprDw8PDwllS
- MSQdHQAAAB0AIiQkAAAAvDi8AAAxAzExMTExMTI4Nzg4ODc4ODhZXpnDw8PDml1YNwMkIh0AAB0hIiQA
- AAAAACIAAAA4ODc4Nzg4ODg4ODg4ODg4ODhZWV6avb2gmllZODcxJCIAAAAdIgMLAAAAACIAAACGE0+G
- T4bs7Oy8vLy8vAAxODg4ODg4NzIyMSQdHQAAvADsCwAiJDExAAAAwjjsAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAALMSQAAAAAAAAAAAAAAAAAEyI4MQsiOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALMSQAAAAA
- AAAAAAAAAAAAAAC8CwsAEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8AAsAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////AAD///////8AAP///////wAA////////
- AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
- /////wAA//8AAH//AAD//wAAf/8AAP//4AP//wAA///4B///AAD///gP//8AAP///B///wAA///8H///
- AAD///wf//8AAP///h///wAA///8H///AAD//+AD//8AAP//wAD//wAA//4AAD//AAD//AAAB/8AAP/w
- AAAAAwAA/8AAAAABAADAAAAAADgAAMAAAAAAPAAAwAAAAAA8AADAAAAAIDgAAP///j/+AQAA///+P/+D
- AAD///4///8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
- /////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WinForms/App.ico b/samples/CSharp/WinForms/App.ico
deleted file mode 100644
index 3a5525fd79..0000000000
Binary files a/samples/CSharp/WinForms/App.ico and /dev/null differ
diff --git a/samples/CSharp/WinForms/AssemblyInfo.cs b/samples/CSharp/WinForms/AssemblyInfo.cs
deleted file mode 100644
index 9f89a3282c..0000000000
--- a/samples/CSharp/WinForms/AssemblyInfo.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-
-//
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-//
-[assembly: AssemblyTitle("")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("")]
-[assembly: AssemblyCopyright("")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-//
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-
-[assembly: AssemblyVersion("1.0.*")]
-
-//
-// In order to sign your assembly you must specify a key to use. Refer to the
-// Microsoft .NET Framework documentation for more information on assembly signing.
-//
-// Use the attributes below to control which key is used for signing.
-//
-// Notes:
-// (*) If no key is specified, the assembly is not signed.
-// (*) KeyName refers to a key that has been installed in the Crypto Service
-// Provider (CSP) on your machine. KeyFile refers to a file which contains
-// a key.
-// (*) If the KeyFile and the KeyName values are both specified, the
-// following processing occurs:
-// (1) If the KeyName can be found in the CSP, that key is used.
-// (2) If the KeyName does not exist and the KeyFile does exist, the key
-// in the KeyFile is installed into the CSP and used.
-// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
-// When specifying the KeyFile, the location of the KeyFile should be
-// relative to the project output directory which is
-// %Project Directory%\obj\. For example, if your KeyFile is
-// located in the project directory, you would specify the AssemblyKeyFile
-// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
-// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
-// documentation for more information on this.
-//
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-[assembly: AssemblyKeyName("")]
diff --git a/samples/CSharp/WinForms/Form1.cs b/samples/CSharp/WinForms/Form1.cs
deleted file mode 100644
index d3f6a169c4..0000000000
--- a/samples/CSharp/WinForms/Form1.cs
+++ /dev/null
@@ -1,1070 +0,0 @@
-using System;
-using System.Drawing;
-using System.Collections;
-using System.ComponentModel;
-using System.Windows.Forms;
-using System.Data;
-
-namespace IE_WinForms
-{
- ///
- /// Summary description for Form1.
- ///
- public class Form1 : System.Windows.Forms.Form
- {
- private System.Windows.Forms.MainMenu mainMenu1;
- private System.Windows.Forms.MenuItem FileNew;
- private System.Windows.Forms.MenuItem FileClose;
- private System.Windows.Forms.MenuItem FileExport;
- private System.Windows.Forms.MenuItem FileImport;
- private System.Windows.Forms.MenuItem ImportBRep;
- private System.Windows.Forms.MenuItem ExportImage;
- private System.Windows.Forms.MenuItem File;
- private System.Windows.Forms.MenuItem Window;
- private System.Windows.Forms.ToolBarButton New;
- private System.Windows.Forms.ImageList imageList1;
- private System.Windows.Forms.ToolBarButton About;
- private System.Windows.Forms.StatusBar myStatusBar;
- private System.Windows.Forms.MenuItem ImportIges;
- private System.Windows.Forms.MenuItem ImportStep;
- private System.Windows.Forms.MenuItem ExportBRep;
- private System.Windows.Forms.MenuItem ExportIges;
- private System.Windows.Forms.MenuItem ExportStep;
- private System.Windows.Forms.MenuItem ExportStl;
- private System.Windows.Forms.MenuItem ExportVrml;
- private System.ComponentModel.IContainer components;
- private System.Windows.Forms.MenuItem menuItem1;
- private System.Windows.Forms.MenuItem menuItem2;
- private System.Windows.Forms.MenuItem menuItem3;
- private System.Windows.Forms.MenuItem View;
- private System.Windows.Forms.MenuItem Help;
- private System.Windows.Forms.MenuItem HelpAbout;
- private System.Windows.Forms.MenuItem ViewToolbar;
- private System.Windows.Forms.MenuItem ViewStatusBar;
- private System.Windows.Forms.MenuItem menuItem4;
- private System.Windows.Forms.MenuItem WindowCascade;
- private System.Windows.Forms.MenuItem WindowTile;
-
- protected IE_WinForms.ModelFormat myModelFormat;
- private System.Windows.Forms.ToolBarButton wireframe;
- private System.Windows.Forms.ToolBarButton shading;
- private System.Windows.Forms.ToolBarButton toolBarButton1;
- private System.Windows.Forms.ToolBarButton color;
- private System.Windows.Forms.ToolBarButton transparency;
- private System.Windows.Forms.ToolBarButton delete;
- private System.Windows.Forms.ToolBarButton material;
- private System.Windows.Forms.ToolBarButton ZoomAll;
- private System.Windows.Forms.ToolBarButton ZoomWin;
- private System.Windows.Forms.ToolBarButton ZoomProg;
- private System.Windows.Forms.ToolBarButton Pan;
- private System.Windows.Forms.ToolBarButton PanGlo;
- private System.Windows.Forms.ToolBarButton Front;
- private System.Windows.Forms.ToolBarButton Back;
- private System.Windows.Forms.ToolBarButton TOP;
- private System.Windows.Forms.ToolBarButton BOTTOM;
- private System.Windows.Forms.ToolBarButton RIGHT;
- private System.Windows.Forms.ToolBarButton LEFT;
- private System.Windows.Forms.ToolBarButton Axo;
- private System.Windows.Forms.ToolBarButton Rot;
- private System.Windows.Forms.ToolBarButton Reset;
- private System.Windows.Forms.ToolBarButton HlrOn;
- private System.Windows.Forms.ToolBarButton HlrOff;
- private System.Windows.Forms.ToolBar toolBarTool;
- private System.Windows.Forms.ToolBar toolBarView;
- protected static int myNbOfChildren;
-
- public Form1()
- {
- //
- // Required for Windows Form Designer support
- //
- InitializeComponent();
-
- //
- IE_WinForms.Form1.myNbOfChildren = 0;
- }
-
- ///
- /// Clean up any resources being used.
- ///
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
- this.mainMenu1 = new System.Windows.Forms.MainMenu();
- this.File = new System.Windows.Forms.MenuItem();
- this.FileNew = new System.Windows.Forms.MenuItem();
- this.FileExport = new System.Windows.Forms.MenuItem();
- this.ImportBRep = new System.Windows.Forms.MenuItem();
- this.ImportIges = new System.Windows.Forms.MenuItem();
- this.ImportStep = new System.Windows.Forms.MenuItem();
- this.FileImport = new System.Windows.Forms.MenuItem();
- this.ExportBRep = new System.Windows.Forms.MenuItem();
- this.ExportIges = new System.Windows.Forms.MenuItem();
- this.ExportStep = new System.Windows.Forms.MenuItem();
- this.ExportStl = new System.Windows.Forms.MenuItem();
- this.ExportVrml = new System.Windows.Forms.MenuItem();
- this.menuItem3 = new System.Windows.Forms.MenuItem();
- this.ExportImage = new System.Windows.Forms.MenuItem();
- this.FileClose = new System.Windows.Forms.MenuItem();
- this.menuItem2 = new System.Windows.Forms.MenuItem();
- this.menuItem1 = new System.Windows.Forms.MenuItem();
- this.View = new System.Windows.Forms.MenuItem();
- this.ViewToolbar = new System.Windows.Forms.MenuItem();
- this.ViewStatusBar = new System.Windows.Forms.MenuItem();
- this.Window = new System.Windows.Forms.MenuItem();
- this.menuItem4 = new System.Windows.Forms.MenuItem();
- this.WindowCascade = new System.Windows.Forms.MenuItem();
- this.WindowTile = new System.Windows.Forms.MenuItem();
- this.Help = new System.Windows.Forms.MenuItem();
- this.HelpAbout = new System.Windows.Forms.MenuItem();
- this.toolBarTool = new System.Windows.Forms.ToolBar();
- this.New = new System.Windows.Forms.ToolBarButton();
- this.About = new System.Windows.Forms.ToolBarButton();
- this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
- this.wireframe = new System.Windows.Forms.ToolBarButton();
- this.shading = new System.Windows.Forms.ToolBarButton();
- this.color = new System.Windows.Forms.ToolBarButton();
- this.material = new System.Windows.Forms.ToolBarButton();
- this.transparency = new System.Windows.Forms.ToolBarButton();
- this.delete = new System.Windows.Forms.ToolBarButton();
- this.imageList1 = new System.Windows.Forms.ImageList(this.components);
- this.myStatusBar = new System.Windows.Forms.StatusBar();
- this.toolBarView = new System.Windows.Forms.ToolBar();
- this.ZoomAll = new System.Windows.Forms.ToolBarButton();
- this.ZoomWin = new System.Windows.Forms.ToolBarButton();
- this.ZoomProg = new System.Windows.Forms.ToolBarButton();
- this.Pan = new System.Windows.Forms.ToolBarButton();
- this.PanGlo = new System.Windows.Forms.ToolBarButton();
- this.Front = new System.Windows.Forms.ToolBarButton();
- this.Back = new System.Windows.Forms.ToolBarButton();
- this.TOP = new System.Windows.Forms.ToolBarButton();
- this.BOTTOM = new System.Windows.Forms.ToolBarButton();
- this.LEFT = new System.Windows.Forms.ToolBarButton();
- this.RIGHT = new System.Windows.Forms.ToolBarButton();
- this.Axo = new System.Windows.Forms.ToolBarButton();
- this.Rot = new System.Windows.Forms.ToolBarButton();
- this.Reset = new System.Windows.Forms.ToolBarButton();
- this.HlrOn = new System.Windows.Forms.ToolBarButton();
- this.HlrOff = new System.Windows.Forms.ToolBarButton();
- this.SuspendLayout();
- //
- // mainMenu1
- //
- this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.File,
- this.View,
- this.Window,
- this.Help});
- //
- // File
- //
- this.File.Index = 0;
- this.File.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.FileNew,
- this.FileExport,
- this.FileImport,
- this.FileClose,
- this.menuItem2,
- this.menuItem1});
- this.File.Text = "&File";
- this.File.Popup += new System.EventHandler(this.File_Popup);
- //
- // FileNew
- //
- this.FileNew.Index = 0;
- this.FileNew.Text = "&New";
- this.FileNew.Click += new System.EventHandler(this.menuItem2_Click);
- //
- // FileExport
- //
- this.FileExport.Index = 1;
- this.FileExport.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.ImportBRep,
- this.ImportIges,
- this.ImportStep});
- this.FileExport.Text = "&Import";
- this.FileExport.Visible = false;
- //
- // ImportBRep
- //
- this.ImportBRep.Index = 0;
- this.ImportBRep.Text = "&BRep ...";
- this.ImportBRep.Click += new System.EventHandler(this.ImportBRep_Click);
- //
- // ImportIges
- //
- this.ImportIges.Index = 1;
- this.ImportIges.Text = "&Iges ...";
- this.ImportIges.Click += new System.EventHandler(this.ImportIges_Click);
- //
- // ImportStep
- //
- this.ImportStep.Index = 2;
- this.ImportStep.Text = "&Step ...";
- this.ImportStep.Click += new System.EventHandler(this.ImportStep_Click);
- //
- // FileImport
- //
- this.FileImport.Index = 2;
- this.FileImport.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.ExportBRep,
- this.ExportIges,
- this.ExportStep,
- this.ExportStl,
- this.ExportVrml,
- this.menuItem3,
- this.ExportImage});
- this.FileImport.Text = "&Export";
- this.FileImport.Visible = false;
- this.FileImport.Popup += new System.EventHandler(this.FileImport_Popup);
- //
- // ExportBRep
- //
- this.ExportBRep.Enabled = false;
- this.ExportBRep.Index = 0;
- this.ExportBRep.Text = "&BRep ...";
- this.ExportBRep.Click += new System.EventHandler(this.ExportBRep_Click);
- //
- // ExportIges
- //
- this.ExportIges.Enabled = false;
- this.ExportIges.Index = 1;
- this.ExportIges.Text = "&Iges ...";
- this.ExportIges.Click += new System.EventHandler(this.ExportIges_Click);
- //
- // ExportStep
- //
- this.ExportStep.Enabled = false;
- this.ExportStep.Index = 2;
- this.ExportStep.Text = "&Step ...";
- this.ExportStep.Click += new System.EventHandler(this.ExportStep_Click);
- //
- // ExportStl
- //
- this.ExportStl.Enabled = false;
- this.ExportStl.Index = 3;
- this.ExportStl.Text = "&Stl ...";
- this.ExportStl.Click += new System.EventHandler(this.ExportStl_Click);
- //
- // ExportVrml
- //
- this.ExportVrml.Enabled = false;
- this.ExportVrml.Index = 4;
- this.ExportVrml.Text = "&Vrml ...";
- this.ExportVrml.Click += new System.EventHandler(this.ExportVrml_Click);
- //
- // menuItem3
- //
- this.menuItem3.Index = 5;
- this.menuItem3.Text = "-";
- //
- // ExportImage
- //
- this.ExportImage.Index = 6;
- this.ExportImage.Text = "Image ...";
- this.ExportImage.Click += new System.EventHandler(this.ExportImage_Click);
- //
- // FileClose
- //
- this.FileClose.Enabled = false;
- this.FileClose.Index = 3;
- this.FileClose.Text = "&Close";
- this.FileClose.Click += new System.EventHandler(this.menuItem3_Click);
- //
- // menuItem2
- //
- this.menuItem2.Index = 4;
- this.menuItem2.Text = "-";
- //
- // menuItem1
- //
- this.menuItem1.Index = 5;
- this.menuItem1.Text = "&Quit";
- this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
- //
- // View
- //
- this.View.Index = 1;
- this.View.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.ViewToolbar,
- this.ViewStatusBar});
- this.View.Text = "&View";
- //
- // ViewToolbar
- //
- this.ViewToolbar.Checked = true;
- this.ViewToolbar.Index = 0;
- this.ViewToolbar.Text = "&Toolbar";
- this.ViewToolbar.Click += new System.EventHandler(this.ViewToolbar_Click);
- //
- // ViewStatusBar
- //
- this.ViewStatusBar.Checked = true;
- this.ViewStatusBar.Index = 1;
- this.ViewStatusBar.Text = "&Statusbar";
- this.ViewStatusBar.Click += new System.EventHandler(this.ViewStatusBar_Click);
- //
- // Window
- //
- this.Window.Index = 2;
- this.Window.MdiList = true;
- this.Window.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem4,
- this.WindowCascade,
- this.WindowTile});
- this.Window.Text = "&Window";
- this.Window.Visible = false;
- //
- // menuItem4
- //
- this.menuItem4.Index = 0;
- this.menuItem4.Text = "&New 3d View";
- this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click);
- //
- // WindowCascade
- //
- this.WindowCascade.Index = 1;
- this.WindowCascade.Text = "&Cascade";
- this.WindowCascade.Click += new System.EventHandler(this.WindowCascade_Click);
- //
- // WindowTile
- //
- this.WindowTile.Index = 2;
- this.WindowTile.Text = "&Tile";
- this.WindowTile.Click += new System.EventHandler(this.WindowTile_Click);
- //
- // Help
- //
- this.Help.Index = 3;
- this.Help.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.HelpAbout});
- this.Help.Text = "&Help";
- //
- // HelpAbout
- //
- this.HelpAbout.Index = 0;
- this.HelpAbout.Shortcut = System.Windows.Forms.Shortcut.F1;
- this.HelpAbout.Text = "&About";
- this.HelpAbout.Click += new System.EventHandler(this.HelpAbout_Click);
- //
- // toolBarTool
- //
- this.toolBarTool.AccessibleRole = System.Windows.Forms.AccessibleRole.ToolBar;
- this.toolBarTool.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
- this.New,
- this.About,
- this.toolBarButton1,
- this.wireframe,
- this.shading,
- this.color,
- this.material,
- this.transparency,
- this.delete});
- this.toolBarTool.DropDownArrows = true;
- this.toolBarTool.ImageList = this.imageList1;
- this.toolBarTool.Location = new System.Drawing.Point(0, 0);
- this.toolBarTool.Name = "toolBarTool";
- this.toolBarTool.ShowToolTips = true;
- this.toolBarTool.Size = new System.Drawing.Size(560, 28);
- this.toolBarTool.TabIndex = 1;
- this.toolBarTool.Enter += new System.EventHandler(this.menuItem3_Click);
- this.toolBarTool.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick);
- this.toolBarTool.MouseHover += new System.EventHandler(this.toolBar1_MouseHover);
- this.toolBarTool.MouseLeave += new System.EventHandler(this.toolBar1_MouseLeave);
- //
- // New
- //
- this.New.ImageIndex = 0;
- this.New.ToolTipText = "New";
- this.New.Visible = ((bool)(configurationAppSettings.GetValue("New.Visible", typeof(bool))));
- //
- // About
- //
- this.About.ImageIndex = 1;
- this.About.ToolTipText = "About(F1)";
- this.About.Visible = ((bool)(configurationAppSettings.GetValue("About.Visible", typeof(bool))));
- //
- // toolBarButton1
- //
- this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
- //
- // wireframe
- //
- this.wireframe.Enabled = ((bool)(configurationAppSettings.GetValue("wireframe.Enabled", typeof(bool))));
- this.wireframe.ImageIndex = 2;
- this.wireframe.Pushed = ((bool)(configurationAppSettings.GetValue("wireframe.Pushed", typeof(bool))));
- this.wireframe.ToolTipText = "Wireframe";
- this.wireframe.Visible = ((bool)(configurationAppSettings.GetValue("wireframe.Visible", typeof(bool))));
- //
- // shading
- //
- this.shading.Enabled = ((bool)(configurationAppSettings.GetValue("shading.Enabled", typeof(bool))));
- this.shading.ImageIndex = 3;
- this.shading.Pushed = ((bool)(configurationAppSettings.GetValue("shading.Pushed", typeof(bool))));
- this.shading.ToolTipText = "Shading";
- this.shading.Visible = ((bool)(configurationAppSettings.GetValue("shading.Visible", typeof(bool))));
- //
- // color
- //
- this.color.Enabled = ((bool)(configurationAppSettings.GetValue("color.Enabled", typeof(bool))));
- this.color.ImageIndex = 4;
- this.color.ToolTipText = "Color";
- this.color.Visible = ((bool)(configurationAppSettings.GetValue("color.Visible", typeof(bool))));
- //
- // material
- //
- this.material.Enabled = ((bool)(configurationAppSettings.GetValue("material.Enabled", typeof(bool))));
- this.material.ImageIndex = 5;
- this.material.ToolTipText = "Material";
- this.material.Visible = ((bool)(configurationAppSettings.GetValue("material.Visible", typeof(bool))));
- //
- // transparency
- //
- this.transparency.Enabled = ((bool)(configurationAppSettings.GetValue("transparency.Enabled", typeof(bool))));
- this.transparency.ImageIndex = 6;
- this.transparency.ToolTipText = "Transparency";
- this.transparency.Visible = ((bool)(configurationAppSettings.GetValue("transparency.Visible", typeof(bool))));
- //
- // delete
- //
- this.delete.Enabled = ((bool)(configurationAppSettings.GetValue("delete.Enabled", typeof(bool))));
- this.delete.ImageIndex = 7;
- this.delete.ToolTipText = "Delete";
- this.delete.Visible = ((bool)(configurationAppSettings.GetValue("delete.Visible", typeof(bool))));
- //
- // imageList1
- //
- this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
- this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
- this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
- //
- // myStatusBar
- //
- this.myStatusBar.AccessibleRole = System.Windows.Forms.AccessibleRole.StatusBar;
- this.myStatusBar.Location = new System.Drawing.Point(0, 363);
- this.myStatusBar.Name = "myStatusBar";
- this.myStatusBar.Size = new System.Drawing.Size(560, 22);
- this.myStatusBar.TabIndex = 3;
- //
- // toolBarView
- //
- this.toolBarView.AccessibleRole = System.Windows.Forms.AccessibleRole.ToolBar;
- this.toolBarView.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
- this.ZoomAll,
- this.ZoomWin,
- this.ZoomProg,
- this.Pan,
- this.PanGlo,
- this.Front,
- this.Back,
- this.TOP,
- this.BOTTOM,
- this.LEFT,
- this.RIGHT,
- this.Axo,
- this.Rot,
- this.Reset,
- this.HlrOn,
- this.HlrOff});
- this.toolBarView.DropDownArrows = true;
- this.toolBarView.ImageList = this.imageList1;
- this.toolBarView.Location = new System.Drawing.Point(0, 28);
- this.toolBarView.Name = "toolBarView";
- this.toolBarView.ShowToolTips = true;
- this.toolBarView.Size = new System.Drawing.Size(560, 28);
- this.toolBarView.TabIndex = 5;
- this.toolBarView.Visible = false;
- this.toolBarView.Wrappable = false;
- this.toolBarView.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBarView_ButtonClick);
- this.toolBarView.MouseHover += new System.EventHandler(this.toolBarView_MouseHover);
- this.toolBarView.MouseLeave += new System.EventHandler(this.toolBarView_MouseLeave);
- //
- // ZoomAll
- //
- this.ZoomAll.ImageIndex = 8;
- this.ZoomAll.ToolTipText = "FitAll";
- //
- // ZoomWin
- //
- this.ZoomWin.ImageIndex = 9;
- this.ZoomWin.ToolTipText = "Zoom Window";
- //
- // ZoomProg
- //
- this.ZoomProg.ImageIndex = 10;
- this.ZoomProg.ToolTipText = "Dynamic Zooming";
- //
- // Pan
- //
- this.Pan.ImageIndex = 11;
- this.Pan.ToolTipText = "Dynamic Panning";
- //
- // PanGlo
- //
- this.PanGlo.ImageIndex = 12;
- this.PanGlo.ToolTipText = "GlobalPanning";
- //
- // Front
- //
- this.Front.ImageIndex = 13;
- this.Front.ToolTipText = "Front";
- //
- // Back
- //
- this.Back.ImageIndex = 14;
- this.Back.ToolTipText = "Back";
- //
- // TOP
- //
- this.TOP.ImageIndex = 15;
- this.TOP.ToolTipText = "Top";
- //
- // BOTTOM
- //
- this.BOTTOM.ImageIndex = 16;
- this.BOTTOM.ToolTipText = "Bottom";
- //
- // LEFT
- //
- this.LEFT.ImageIndex = 17;
- this.LEFT.ToolTipText = "Left";
- //
- // RIGHT
- //
- this.RIGHT.ImageIndex = 18;
- this.RIGHT.ToolTipText = "Right";
- //
- // Axo
- //
- this.Axo.ImageIndex = 19;
- this.Axo.ToolTipText = "Axo";
- //
- // Rot
- //
- this.Rot.ImageIndex = 20;
- this.Rot.ToolTipText = "Dynamic Rotation";
- //
- // Reset
- //
- this.Reset.ImageIndex = 21;
- this.Reset.ToolTipText = "Reset";
- //
- // HlrOn
- //
- this.HlrOn.ImageIndex = 22;
- this.HlrOn.Pushed = true;
- this.HlrOn.ToolTipText = "Hidden On";
- //
- // HlrOff
- //
- this.HlrOff.ImageIndex = 23;
- this.HlrOff.ToolTipText = "Hidden Off";
- //
- // Form1
- //
- this.AccessibleRole = System.Windows.Forms.AccessibleRole.Application;
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(560, 385);
- this.Controls.Add(this.toolBarView);
- this.Controls.Add(this.myStatusBar);
- this.Controls.Add(this.toolBarTool);
- this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.IsMdiContainer = true;
- this.Menu = this.mainMenu1;
- this.Name = "Form1";
- this.Text = "Sample Import / Export";
- this.Activated += new System.EventHandler(this.Form1_Activated);
- this.ResumeLayout(false);
- }
- #endregion
-
- ///
- /// The main entry point for the application.
- ///
- [STAThread]
- static void Main()
- {
- Application.Run(new Form1());
- }
-
- private void menuItem2_Click(object sender, System.EventArgs e)
- {
-
- this.Cursor = System.Windows.Forms.Cursors.WaitCursor;
- this.OnNewFile();
- }
-
- private void menuItem3_Click(object sender, System.EventArgs e)
- {
- if (this.MdiChildren.Length > 0)
- this.ActiveMdiChild.Close();
-
- }
-
- private void ImportBRep_Click(object sender, System.EventArgs e)
- {
- Form2 curForm = (Form2)this.ActiveMdiChild;
- if (curForm == null)
- return;
- this.myModelFormat = ModelFormat.BREP;
- curForm.ImportModel(this.myModelFormat);
- }
-
- private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
- {
- Form2 curForm = (Form2)this.ActiveMdiChild;
- switch (toolBarTool.Buttons.IndexOf(e.Button))
- {
- case 0:
- this.Cursor = System.Windows.Forms.Cursors.WaitCursor;
- this.OnNewFile();
- break;
- case 1:
- AboutDialog myDlg = new AboutDialog();
- myDlg.ShowDialog(this);
- break;
-
- case 2: //just separator
- break;
- case 3:
- if (curForm == null)
- return;
- curForm.SetDisplayMode(0); //wireframe
- this.wireframe.Enabled = false;
- this.shading.Enabled = true;
- this.transparency.Enabled = false;
- break;
- case 4:
- if (curForm == null)
- return;
- curForm.SetDisplayMode(1); //shading
- this.shading.Enabled = false;
- this.wireframe.Enabled = true;
- this.transparency.Enabled = true;
- break;
- case 5:
- if (curForm == null)
- return;
- curForm.ChangeColor(true);
- break;
- case 6:
- if (curForm == null)
- return;
- MaterialDialog m = new MaterialDialog();
- m.View = curForm.View;
- m.ShowDialog(curForm);
- break;
- case 7:
- if (curForm == null)
- return;
- IE_WinForms.TransparencyDialog t = new TransparencyDialog();
- t.View = curForm.View;
- t.ShowDialog(curForm);
- break;
- case 8:
- if (curForm == null)
- return;
- curForm.DeleteObjects();
- break;
- default:
- break;
- }
- }
-
- private void toolBar1_MouseHover(object sender, System.EventArgs e)
- {
- this.myStatusBar.Text = "Document toolbar";
- }
-
- private void toolBar1_MouseLeave(object sender, System.EventArgs e)
- {
- this.myStatusBar.Text = "";
- }
-
- private void ImportIges_Click(object sender, System.EventArgs e)
- {
- Form2 curForm = (Form2)this.ActiveMdiChild;
- if (curForm == null)
- return;
- this.myModelFormat = IE_WinForms.ModelFormat.IGES;
- curForm.ImportModel(this.myModelFormat);
- }
-
- private void ImportStep_Click(object sender, System.EventArgs e)
- {
- Form2 curForm = (Form2)this.ActiveMdiChild;
- if (curForm == null)
- return;
- this.myModelFormat = IE_WinForms.ModelFormat.STEP;
- curForm.ImportModel(this.myModelFormat);
- }
-
- private void ExportBRep_Click(object sender, System.EventArgs e)
- {
- Form2 curForm = (Form2)this.ActiveMdiChild;
- if (curForm == null)
- return;
- this.myModelFormat = IE_WinForms.ModelFormat.BREP;
- curForm.ExportModel(this.myModelFormat);
- }
-
- private void ExportIges_Click(object sender, System.EventArgs e)
- {
- Form2 curForm = (Form2)this.ActiveMdiChild;
- if (curForm == null)
- return;
- this.myModelFormat = IE_WinForms.ModelFormat.IGES;
- curForm.ExportModel(this.myModelFormat);
- }
-
- private void ExportStep_Click(object sender, System.EventArgs e)
- {
- Form2 curForm = (Form2)this.ActiveMdiChild;
- if (curForm == null)
- return;
- this.myModelFormat = IE_WinForms.ModelFormat.STEP;
- curForm.ExportModel(this.myModelFormat);
- }
-
- private void ExportStl_Click(object sender, System.EventArgs e)
- {
- Form2 curForm = (Form2)this.ActiveMdiChild;
- if (curForm == null)
- return;
- this.myModelFormat = IE_WinForms.ModelFormat.STL;
- curForm.ExportModel(this.myModelFormat);
- }
-
- private void ExportVrml_Click(object sender, System.EventArgs e)
- {
- Form2 curForm = (Form2)this.ActiveMdiChild;
- if (curForm == null)
- return;
- this.myModelFormat = IE_WinForms.ModelFormat.VRML;
- curForm.ExportModel(this.myModelFormat);
- }
-
- private void ExportImage_Click(object sender, System.EventArgs e)
- {
- Form2 curForm = (Form2)this.ActiveMdiChild;
- if (curForm == null)
- return;
- this.myModelFormat = IE_WinForms.ModelFormat.IMAGE;
- curForm.ExportModel(this.myModelFormat);
- }
-
- private void HelpAbout_Click(object sender, System.EventArgs e)
- {
- AboutDialog myDlg = new AboutDialog();
- myDlg.ShowDialog(this);
- }
-
- private void ViewToolbar_Click(object sender, System.EventArgs e)
- {
-
- if (this.ViewToolbar.Checked)
- {
- if (this.MdiChildren.Length > 0)
- {
- this.New.Visible = false;
- this.About.Visible = false;
- }
- else
- this.toolBarTool.Hide();
- this.ViewToolbar.Checked = false;
- }
- else
- {
- if (this.MdiChildren.Length > 0)
- {
- this.New.Visible = true;
- this.About.Visible = true;
- }
- else
- this.toolBarTool.Show();
- this.ViewToolbar.Checked = true;
- }
-
- }
-
- private void ViewStatusBar_Click(object sender, System.EventArgs e)
- {
- if (this.ViewStatusBar.Checked)
- {
- this.myStatusBar.Hide();
- this.ViewStatusBar.Checked = false;
- }
- else
- {
- this.myStatusBar.Show();
- this.ViewStatusBar.Checked = true;
- }
- }
-
- public void OnNewFile()
- {
- Form2 newForm = new Form2();
- newForm.MdiParent = this;
- IE_WinForms.Form1.myNbOfChildren = IE_WinForms.Form1.myNbOfChildren + 1;
- newForm.SetIndex (IE_WinForms.Form1.myNbOfChildren, 1);
- newForm.Show();
- newForm.InitView();
- newForm.InitV3D();
- this.FileExport.Visible = true;
- this.FileImport.Visible = true;
- this.Window.Visible = true;
- this.wireframe.Visible = true;
- this.shading.Visible = true;
- this.color.Visible = true;
- this.material.Visible = true;
- this.transparency.Visible = true;
- this.delete.Visible = true;
- this.Cursor = System.Windows.Forms.Cursors.Default;
- this.toolBarView.Visible = true;
- }
-
- private void FileImport_Popup(object sender, System.EventArgs e)
- {
- IE_WinForms.Form2 curForm = (IE_WinForms.Form2)this.ActiveMdiChild;
- if (curForm == null)
- return;
- if (curForm.View.IsObjectSelected())
- {
- this.ExportBRep.Enabled = true;
- this.ExportIges.Enabled = true;
- this.ExportStep.Enabled = true;
- this.ExportVrml.Enabled = true;
- this.ExportStl.Enabled = true;
- }
-
- }
-
- private void menuItem1_Click(object sender, System.EventArgs e)
- {
- this.Close();
- }
-
- private void File_Popup(object sender, System.EventArgs e)
- {
- if (this.MdiChildren.Length > 0)
- this.FileClose.Enabled = true;
- else
- {
- this.FileClose.Enabled = false;
- this.FileExport.Visible = false;
- this.FileImport.Visible = false;
- }
- }
-
- private void menuItem4_Click(object sender, System.EventArgs e)
- {
- IE_WinForms.Form2 curForm = (IE_WinForms.Form2)this.ActiveMdiChild;
- IE_WinForms.Form2 newView = new Form2();
- newView.MdiParent = this;
- newView.Show();
- newView.InitView();
- newView.SetContext(curForm.View);
- newView.View.CreateNewView(newView.Handle);
- newView.SetNextIndex(curForm);
- }
-
- private void WindowCascade_Click(object sender, System.EventArgs e)
- {
- this.LayoutMdi(System.Windows.Forms.MdiLayout.Cascade);
- }
-
- private void WindowTile_Click(object sender, System.EventArgs e)
- {
- this.LayoutMdi(System.Windows.Forms.MdiLayout.TileVertical);
- }
-
- public void SelectionChanged()
- {
- if (this.MdiChildren.Length == 0)
- return;
- IE_WinForms.Form2 curForm = (IE_WinForms.Form2)this.ActiveMdiChild;
- if (curForm == null)
- return;
- switch (curForm.View.DisplayMode())
- {
- case -1:
- this.shading.Enabled = false;
- this.wireframe.Enabled = false;
- break;
- case 0:
- this.wireframe.Enabled = false;
- this.shading.Enabled = true;
- this.transparency.Enabled = false;
- break;
- case 1:
- this.wireframe.Enabled = true;
- this.shading.Enabled = false;
- this.transparency.Enabled = true;
- break;
- case 10:
- this.wireframe.Enabled = true;
- this.shading.Enabled = true;
- this.transparency.Enabled = true;
- break;
- default:
- break;
- }
- bool IsSelected = curForm.View.IsObjectSelected();
- if (IsSelected)
- {
- this.color.Enabled = true;
- this.material.Enabled = true;
- this.delete.Enabled = true;
- }
- else
- {
- this.color.Enabled = false;
- this.material.Enabled = false;
- this.transparency.Enabled = false;
- this.delete.Enabled = false;
- }
- if (curForm.DegenerateMode)
- {
- this.HlrOff.Pushed = false;
- this.HlrOn.Pushed = true;
- }
- else
- {
- this.HlrOff.Pushed = true;
- this.HlrOn.Pushed = false;
- }
- if (curForm.Mode == IE_WinForms.CurrentAction3d.CurAction3d_WindowZooming)
- this.ZoomWin.Pushed = false;
-
- }
-
- public StatusBar StatusBar
- {
- get
- {
- return this.myStatusBar;
- }
- }
-
- public void OnFileClose()
- {
- if (this.MdiChildren.Length <= 1)
- {
- this.FileClose.Enabled = false;
- this.Window.Visible = false;
- this.wireframe.Visible = false;
- this.shading.Visible = false;
- this.color.Visible = false;
- this.material.Visible = false;
- this.transparency.Visible = false;
- this.delete.Visible = false;
- this.toolBarView.Visible = false;
- }
- }
-
- private void toolBarView_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
- {
- IE_WinForms.Form2 curForm = (IE_WinForms.Form2)this.ActiveMdiChild;
- if (curForm == null)
- return;
- switch (toolBarView.Buttons.IndexOf(e.Button))
- {
- case 0:
- curForm.View.ZoomAllView();
- break;
- case 1:
- curForm.Mode = CurrentAction3d.CurAction3d_WindowZooming;
- this.ZoomWin.Pushed = true;
- break;
- case 2:
- curForm.Mode = CurrentAction3d.CurAction3d_DynamicZooming;
- break;
- case 3:
- curForm.Mode = CurrentAction3d.CurAction3d_DynamicPanning;
- break;
- case 4:
- curForm.Zoom = curForm.View.Scale();
- curForm.Mode = CurrentAction3d.CurAction3d_GlobalPanning;
- break;
- case 5:
- curForm.View.FrontView();
- break;
- case 6:
- curForm.View.BackView();
- break;
- case 7:
- curForm.View.TopView();
- break;
- case 8:
- curForm.View.BottomView();
- break;
- case 9:
- curForm.View.LeftView();
- break;
- case 10:
- curForm.View.RightView();
- break;
- case 11:
- curForm.View.AxoView();
- break;
- case 12:
- curForm.Mode = CurrentAction3d.CurAction3d_DynamicRotation;
- break;
- case 13:
- curForm.View.Reset();
- break;
- case 14:
- curForm.View.SetDegenerateModeOn();
- curForm.DegenerateMode = true;
- this.HlrOff.Pushed = false;
- this.HlrOn.Pushed = true;
- break;
- case 15:
- curForm.View.SetDegenerateModeOff();
- curForm.DegenerateMode = false;
- this.HlrOn.Pushed = false;
- this.HlrOff.Pushed = true;
- break;
- default:
- break;
- }
- }
-
- private void Form1_Activated(object sender, System.EventArgs e)
- {
- if (this.toolBarView.Visible)
- this.SelectionChanged();
- }
-
- private void toolBarView_MouseHover(object sender, System.EventArgs e)
- {
- this.myStatusBar.Text = "View toolbar";
- }
-
- private void toolBarView_MouseLeave(object sender, System.EventArgs e)
- {
- this.myStatusBar.Text = "";
- }
-
- }
-
-}
\ No newline at end of file
diff --git a/samples/CSharp/WinForms/Form1.resx b/samples/CSharp/WinForms/Form1.resx
deleted file mode 100644
index 4a7e017a69..0000000000
--- a/samples/CSharp/WinForms/Form1.resx
+++ /dev/null
@@ -1,660 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 1.3
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- Private
-
-
- 17, 17
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- 141, 18
-
-
-
- AAEAAAD/////AQAAAAAAAAAMAgAAAFpTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0xLjAuNTAw
- MC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZT
- eXN0ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMA
- AAB6GAAAAk1TRnQBSQFMAgEBGAEAAR0BAAEEAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQC
- AAEoAwABQAMAAYADAAEBAQABCAYAASAYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB
- 3AHAAQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IB
- AAM5AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8B
- MwMAAWYDAAGZAwABzAIAATMDAAIzAgABMwFmAgABMwGZAgABMwHMAgABMwH/AgABZgMAAWYBMwIAAmYC
- AAFmAZkCAAFmAcwCAAFmAf8CAAGZAwABmQEzAgABmQFmAgACmQIAAZkBzAIAAZkB/wIAAcwDAAHMATMC
- AAHMAWYCAAHMAZkCAALMAgABzAH/AgAB/wFmAgAB/wGZAgAB/wHMAQABMwH/AgAB/wEAATMBAAEzAQAB
- ZgEAATMBAAGZAQABMwEAAcwBAAEzAQAB/wEAAf8BMwIAAzMBAAIzAWYBAAIzAZkBAAIzAcwBAAIzAf8B
- AAEzAWYCAAEzAWYBMwEAATMCZgEAATMBZgGZAQABMwFmAcwBAAEzAWYB/wEAATMBmQIAATMBmQEzAQAB
- MwGZAWYBAAEzApkBAAEzAZkBzAEAATMBmQH/AQABMwHMAgABMwHMATMBAAEzAcwBZgEAATMBzAGZAQAB
- MwLMAQABMwHMAf8BAAEzAf8BMwEAATMB/wFmAQABMwH/AZkBAAEzAf8BzAEAATMC/wEAAWYDAAFmAQAB
- MwEAAWYBAAFmAQABZgEAAZkBAAFmAQABzAEAAWYBAAH/AQABZgEzAgABZgIzAQABZgEzAWYBAAFmATMB
- mQEAAWYBMwHMAQABZgEzAf8BAAJmAgACZgEzAQADZgEAAmYBmQEAAmYBzAEAAWYBmQIAAWYBmQEzAQAB
- ZgGZAWYBAAFmApkBAAFmAZkBzAEAAWYBmQH/AQABZgHMAgABZgHMATMBAAFmAcwBmQEAAWYCzAEAAWYB
- zAH/AQABZgH/AgABZgH/ATMBAAFmAf8BmQEAAWYB/wHMAQABzAEAAf8BAAH/AQABzAEAApkCAAGZATMB
- mQEAAZkBAAGZAQABmQEAAcwBAAGZAwABmQIzAQABmQEAAWYBAAGZATMBzAEAAZkBAAH/AQABmQFmAgAB
- mQFmATMBAAGZATMBZgEAAZkBZgGZAQABmQFmAcwBAAGZATMB/wEAApkBMwEAApkBZgEAA5kBAAKZAcwB
- AAKZAf8BAAGZAcwCAAGZAcwBMwEAAWYBzAFmAQABmQHMAZkBAAGZAswBAAGZAcwB/wEAAZkB/wIAAZkB
- /wEzAQABmQHMAWYBAAGZAf8BmQEAAZkB/wHMAQABmQL/AQABzAMAAZkBAAEzAQABzAEAAWYBAAHMAQAB
- mQEAAcwBAAHMAQABmQEzAgABzAIzAQABzAEzAWYBAAHMATMBmQEAAcwBMwHMAQABzAEzAf8BAAHMAWYC
- AAHMAWYBMwEAAZkCZgEAAcwBZgGZAQABzAFmAcwBAAGZAWYB/wEAAcwBmQIAAcwBmQEzAQABzAGZAWYB
- AAHMApkBAAHMAZkBzAEAAcwBmQH/AQACzAIAAswBMwEAAswBZgEAAswBmQEAA8wBAALMAf8BAAHMAf8C
- AAHMAf8BMwEAAZkB/wFmAQABzAH/AZkBAAHMAf8BzAEAAcwC/wEAAcwBAAEzAQAB/wEAAWYBAAH/AQAB
- mQEAAcwBMwIAAf8CMwEAAf8BMwFmAQAB/wEzAZkBAAH/ATMBzAEAAf8BMwH/AQAB/wFmAgAB/wFmATMB
- AAHMAmYBAAH/AWYBmQEAAf8BZgHMAQABzAFmAf8BAAH/AZkCAAH/AZkBMwEAAf8BmQFmAQAB/wKZAQAB
- /wGZAcwBAAH/AZkB/wEAAf8BzAIAAf8BzAEzAQAB/wHMAWYBAAH/AcwBmQEAAf8CzAEAAf8BzAH/AQAC
- /wEzAQABzAH/AWYBAAL/AZkBAAL/AcwBAAJmAf8BAAFmAf8BZgEAAWYC/wEAAf8CZgEAAf8BZgH/AQAC
- /wFmAQABIQEAAaUBAANfAQADdwEAA4YBAAOWAQADywEAA7IBAAPXAQAD3QEAA+MBAAPqAQAD8QEAA/gB
- AAHwAfsB/wEAAaQCoAEAA4ADAAH/AgAB/wMAAv8BAAH/AwAB/wEAAf8BAAL/AgAD//8A/wD/AP8A/wD/
- AP8A/wAPAAH7PgAD+wHsPQAB+wIAAewIAAP7NAAC7AYAAvsBAAL7DQAB7CMABOwGAAL7AQAC+w4AAewb
- AAL7AwAC7AIAAewBAAHsBQAC+wEAAvsPAAXsAQAC7BUAA/sB7AQAAuwFAAL7AQAC+w8AAeweAAHsAvsD
- AAPsBQAD+xAAAeweAAHsAwAB+wEAAewBAAHsGAAB7B4AAewEAAHsAgAB7BgAAewfAAHsAwAB7AMAA/sw
- AAP7AgAC7AEAAewBAALsAwAB+xUAAewdAAPsAgAC7BsAAewcAAHsAQAD7DwAAuw/AAHsQgAB+ywAA/sQ
- AAH7CwABAQnsAwAJ7AEBCwAC+w4AAfsBAAH7AQAB+wkAAgEHAALsAgAB7AH+BwACAQgABPsKAAoBCAAB
- AQEAAQEGAAHsAQAB7AEAAewBAAH+BgABAQEAAQEFAAL7DgAB7AEBAwAD+wEAAgEHAAEBAgABAQX+AewC
- /gLsAgAG/gEAAv4BAQQAAfsPAAHsAQABAQMAAfsCAAHsAQABAQUAAfsBAQIAAQEFAAHsAgAC7AIAAf4F
- AAEBAgABAQQAAfsCAAH+DAAB7AIACgEFAAEBAfsBAAEBBQAB7AIAAuwCAAH+BQABAQIAAfsDAAP7AQAB
- +wH+CwAB7AIAAf4FAAHsAgAB7AIAA/sBAQL7AQEFAAHsAgAC7AIAAf4FAAEBAQAB+wEBBAAB+wIAAvsF
- /gEAAv4DAAHsAgAB/gUAAewCAAHsBQABAQH7AQABAQUAAewCAALsAgAB/gUAAQEG+wYAAf4KAAHsAgAB
- /gUAAewCAAHsBAAB+wEBAgABAQUAAewCAALsAgAB/gUAAQEBAAH7AQEJAAH+CgAB7AIAAf4FAAHsAgAB
- 7AUAAQEC7AEBBuwCAArsAQECAAH7CQAB/goAAewCAAH+BQAB7AIAAewGAAEBAQABAQYAAewBAAHsAQAB
- 7AEAAf4GAAEBAQABAQkAAf4KAArsAgAB7AcAAgEHAALsAgAB7AH+BwACARUAAewBAAH+BgAB7AEAAewI
- AAEBCewDAAnsAQEJAAH+DAAB7AH+BwAC7CgAAf4NAArsOQAB+xkACuwGAArsCwAD+wgAAfsJAQYAAewB
- /gcAAuwFAAHsAf4HAALsCQAB+wEAAfsBAAH7BwABAQH7BwABAQHsBQAB7AEAAf4GAAHsAQAB7AQAAewB
- AAH+BgAB7AEAAewKAAH7CQABAQEAAfsGAAEBAQAB7AQAAewCAAoBAwAB7AIABv4B7AL+AewHAALsAfsB
- AAPsBQABAQIAAfsBAAH7A/4BAQL+AewDAAHsAgABAQUAAewCAAEBAwAB7AIAAf4FAAHsAgAB7AQAAfsB
- AAHsAgAB+wMAAewB+wQAAQEDAAL7AwABAQIAAewDAAHsAgABAQUAAewCAAEBAwAB7AIAAf4FAAHsAgAB
- 7AMAAfsCAAHsBgAB7AEAAfsDAAEBAgAD+wMAAQECAAHsAwAB7AIAAQEFAAHsAgABAQMAAewCAAH+BQAB
- 7AIAAewCAAb7BAAF+wIAAQECAAH+BQABAQIAAewDAAHsAgABAQUAAewCAAEBAwAB7AIAAf4FAAHsAgAB
- 7AMAAfsCAAHsBgAB7AEAAfsDAAEBAgAB/gUAAQECAAHsAwAB7AIAAQEBAAT7AewCAAEBAwAB7AIAAf4F
- AAHsAgAB7AQAAfsBAAHsAgAB+wMAAewB+wQAAQECAAH+BQABAQIAAewDAAPsAQEB7AL7A+wCAAEBAwAK
- AQIAAewGAAPsAfsBAAPsBQAKAQIAAewEAAHsAQABAQEAAfsBAAH7AgAB7AEAAQEEAAEBAQAB/gYAAQEB
- AAHsCQAB+woAAewBAAH+BgAB7AEAAewFAAHsAQEBAAH7AgAB+wIAAewBAQUAAQEB/gIAAfsEAAEBAewH
- AAH7AQAB+wEAAfsJAAHsAf4HAALsBgAKAQYAAgED+wUBCAAD+wsACuwNAAH7CQAB+wEAAfsBAAH7DQAB
- +yQAAfsKAAH7NQAB+wkAAfsIAAP7CgAD+w4AAfshAAL7DAAC+wIAAewDAAfsA/sB7BYAAfsIAAH7AewB
- AwoAAfsBAAH7DgAB+xcAA/sJAAEDCQAB+xEAAewWAAH7AQAB+wEAAfskAAHsDwAB+wgAAfsPAAXsBQAB
- 7AYABOwCAAHsBwAF7AIAA/sHAAH7DQAB7AYAAewEAAHsBAAB7AUAAewBAAHsBQAB7AYAAewCAAH7AwAB
- +wkAAfsIAAHsBwAB7AMAAewEAAHsBgAC7AUAAewHAAHsBAAB+wsAAfsGAALsBwAC7AIAAewDAALsBgAC
- 7AQAAuwHAAEDAewCAAX7BQAF+wUAAewJAAHsAgAB7AMAAewIAAHsBAAB7AQAA/sCAAHsAwAB+wsAAfsG
- AAHsCQAB7AIAAewDAAHsCAAB7AQAAewCAAL7BQAB7AQAAfsEAAH7BAAB+wcAAuwHAALsAgAB7AMAAuwG
- AALsBQAB7AcAAuwJAAH7CwAB+wEAAewHAAHsAwAB7AQAAewGAALsBQAB7AcAAewKAAH7CAAB+wEAAfsD
- AAHsBQAB7AH7AQAB+wEAAfsFAAHsBAAB7AEAAewBAAP7AgAB7AUAAewJAAH7AQAB+wEAAfsGAAL7BQAF
- 7AIABfsE7AEABuwIAAXsCwAD+wcAA/sKAAP7AQAB+yUAAfsfAAb4CAAG+A0AAgcC7AUADQoIAAH4BvsB
- +AYAAfgGoAH4CAACCwLvAQcD7AYAAx4BAANrAQACNwFtCAABrgFYBvsBWAGuBAABrgGZBqABmQGuBQAC
- CwKSAU8CBwHvAuwGAAMBAQADBgEAAvsB7AgAAVgBcwb7AXMBWAQAAewBHAagARwB7AUAAW0B7QEHAU8B
- AgJPAQcC7AFtAQsEAAMBAQADBgEAAvsB7AcAAT8B+wFYBnMBRgH7BAAB7AGZBhwBmQHsBQAB7AEHAU8B
- 7QECAe0BAgEHA+wFAAMLAQADDQEAAikBQwcAAfkBLAH7BkYB+QH7BAAB7AGgBpkBoAHsBAABbwHvAQcB
- AgEHAXIBBwFyAQcD7AUAAwIBAAMEAQADBgMABGIC+QEsATIG+QH7BAAB7AigAewEAAHsAQcBcgECAXIB
- BwJyAQcD7AUAA/oBAAP8AQAD/gMAB/kB+wb5AfsEAAHsCKAB7AQAAewBBwFyAQIBcgEHAgIBBwPsARQB
- AQMAA/oBAAP8AQAD/gMABGIC+QEsATIG+QH7BAAB7AigAewEAAHsAgcDcgE1AXIBeQGSA+wEAAMtAQAD
- hQEAA4EHAAH5ASwB+wZGAfkB+wQAAewBoAaZAaAB7AMAAUYBkgMHAk8BWAEHAVgBBwGSAuwEAAMeAQAD
- KQEAA2EHAAE/AfsBWAZzAUYB+wQAAewBmQYcAZkB7AMAAewCBwLvAeoC7AQHAewB7QQAA/kBAAP7AQAD
- /QgAAVgBcwb7AXMBWAQAAewBHAagARwB7AMAAewCBwLsAQAB7AHtAgcCmQHsAe8BCwMAA/kBAAP7AQAD
- /QgAAa4BWAb7AVgBrgQAAa4BmQagAZkBrgMAAewB7wEHAuwBAAHsAgcBmQJYAm4EAAMgAQADNwEAA6UJ
- AAH4BvsB+AYAAfgGoAH4BAACbgIHAewBDgMHAfsCbhsABvgIAAb4BwAC7AEHBew6AATsLQAG+woABuwp
- AAFYBqcBWAgAAewG+wHsGwAC+woAAVgBhgYAAYYBWAYAAa4BWAb7AVgBrgcACf8KAAL7CgAB+wFYBgAB
- WAH7BgAB7Aj7AewHAAn/FgAB+wGuBlEBrgH7BgAB7Aj7AewHAAn/CgAB+wsAAfsBAAauAQAB+wYAAewI
- +wHsBwAJ/woAAfsLAAH7CAAB+wYAAewI+wHsBwAJ/woAAfsLAAH7CAAB+wYAAewI+wHsBwAJ/woAAvsK
- AAH7CAAB+wYAAewI+wHsBwAJ/wsAAvsJAAH7AQAGrgEAAfsGAAHsAfsGWAH7AewHAAn/BwAB+wQAAvsI
- AAH7Aa4GUQGuAfsGAAHsAVgGcwFYAewHAAb/CgAB+wUAAfsIAAH7AVgGAAFYAfsGAAHsAXMG+wFzAewH
- AAb/AQAB/wgAAvsDAAL7CAABWAGGBgABhgFYBgABrgFYBvsBWAGuBwAG/wsABfsKAAFYBqcBWAgAAewG
- +wHsKQAG+woABuxFAAFCAU0BPgcAAT4DAAEoAwABQAMAAYADAAEBAQABAQYAAQQWAAP//wACAAH9B/8B
- +AF/Bv8B/QG/AccB/wHAAR8BwAEfAf8BnwGTAf8CzwHfAc8B/gEfAZMB/wLXAd8B1wE5AY8BkwH/AdgB
- AwHfAdsBwwHPAZMB/wLbAd8B2wHxAscB+wLbAd8B2wH3AVcB/wHBAtsB3wHbAfcBtwH/AZsC2wHfAdsB
- +wGoAf8BrwHAARsBwAEbARkBTgH/AbUC6wHvAesBwgE/Af8BuQLzAfcB8wHBAv8BEQH4AQMB+AEDAecC
- /wG/BP8B9wf/Af4F/wHxAf8B/gH/AeABBwEAAT8B+QH/AfoBvwHnAfMBPwGfAeEB/wGAAR8B6wH1AV8B
- rwGfAf8BnAFPAewBAAFgAQcBoAEPAa4B1wHNAfYBbwG3AacB5wGwAQMB5QH2AW8BtwEDAesBtwHbAQEB
- 9gFvAacBoAEBAbcB2wHlAfYBbwGAAu0BtwHbAc0B9gFvAacC7QG3AdsB4AEGAQABNwLtAbcB2wH1AfoB
- rwHXAu0BgAEbAfkB/AHPAecB4AENAdcB6wH8AQAB4AEHAvUB5wHzBP8C+QHwAQME/wH8AQEB/gP/AYAB
- HwGAAR8B/AF/AYABHwGfAc8BnwHPAfoBvwGfAc8BrwHXAa8B1wH+Af8BrwHXAbABAwGwAQMB8AGPAbQB
- AwG3AdsBtwHbAdYB5wG5AdsBtwHbAbcB2wG3AesBsQHbAbcB2wG3AdsBAwHBAbcB2wG3AdsBtwHbAbcB
- 6wG3AdsBtAEbAbcB2wHWAecBtwHbAYABGwGAARsB8AGPAYABGwHVAWsB1wHrAf4B/wHXAesB5QGzAeYB
- 8wH6Ab8B5wHzAfABAwHwAQMB/AF/AfABAwH/Ae8B+gG/Af4E/wH3Af4G/wH7Af4B/wEfAfgB/wH9BP8B
- PwH8AdwBAAF/Af8B/gH/AR8B+gHPAf0BPwH/AfwBfwHPAfcB5wH9AZ8B/wH6Ab8B5wH/AfMB/QHPAf0B
- /gH/AfIBDwG5AQ0B5AEYAf4B/wH5AfcBvAH1AfMB7QHfAfcC+wG9AfkC9wG/AfsB8wH5AbkB+QHnAfMB
- BwHBAfcB/QG7Af0B7wEbAb8B+wH3Af0BuwH9AewB+wHeAfcB8wH5AbkB+QH3AfMB/gH/AesB+wG9AfkC
- 9wH+Af8BXQHyAb4B9QEbAe8B+gG/AT4BDAIBAfwBHwH8AX8BHwH4Ab8D/wH+A/8B/gEHAfgBHwH8AQcB
- gAEDAfwBAwHwAQ8B8AEHAYABAwH4AQEB4AEHAcABBwGAAQMB+AEBAeABBwHAAQMBgAEDAfABAQHgAQcB
- wAEDAYABAwHwAQEB4AEHAYABAwGAAQMBAAEBAeABBwGAAQMBgAEDAQABAQHgAQcBgAEBAYABAwEAAQEB
- 4AEHAYABAQGAAQMB8AEBAeABBwEAAQEBgAEDAfABAQHgAQcBAAEBAYABAwH4AQEB4AEHAQABAQGAAQMB
- +AEBAeABBwEAAQMBgAEDAfwBAwHwAQ8BAAEPAYABAwH+AQcB+AEfAcABPwb/AfAF/wH4AR8B+AEfAv8B
- /gE/AfABDwHwAQ8B4AEDAfwBHwLnAeABBwHgAQMB/AEfAucB4AEHAeABAwH+AX8B4AEHAeABBwHgAQMB
- /AE/AegBFwHgAQcB4AEDAfwBPwHvAfcB4AEHAeABAwH8AT8B7wH3AeABBwHgAQMB/AEfAe8B9wHgAQcB
- 4AEDAfIBDwHoARcB4AEHAeABAwHhAQcB4AEHAeABBwHgAQMB4QGHAucB4AEHAeABBwHgAQcC5wHgAQcB
- 4AEPAfABDwHwAQ8B8AEPAeABHwH4AR8B+AEfAfgBHwj/Cw==
-
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- False
-
-
- (Default)
-
-
- False
-
-
- False
-
-
- 8, 8
-
-
- True
-
-
- Form1
-
-
- 80
-
-
- True
-
-
- Private
-
-
-
- AAABAAEAMDAAAAAAAACoDgAAFgAAACgAAAAwAAAAYAAAAAEACAAAAAAAgAoAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAMDcwADwyqYABAQEAAgICAAMDAwAERERABYW
- FgAcHBwAIiIiACkpKQBVVVUATU1NAEJCQgA5OTkAgHz/AFBQ/wCTANYA/+zMAMbW7wDW5+cAkKmtAAAA
- MwAAAGYAAACZAAAAzAAAMwAAADMzAAAzZgAAM5kAADPMAAAz/wAAZgAAAGYzAABmZgAAZpkAAGbMAABm
- /wAAmQAAAJkzAACZZgAAmZkAAJnMAACZ/wAAzAAAAMwzAADMZgAAzJkAAMzMAADM/wAA/2YAAP+ZAAD/
- zAAzAAAAMwAzADMAZgAzAJkAMwDMADMA/wAzMwAAMzMzADMzZgAzM5kAMzPMADMz/wAzZgAAM2YzADNm
- ZgAzZpkAM2bMADNm/wAzmQAAM5kzADOZZgAzmZkAM5nMADOZ/wAzzAAAM8wzADPMZgAzzJkAM8zMADPM
- /wAz/zMAM/9mADP/mQAz/8wAM///AGYAAABmADMAZgBmAGYAmQBmAMwAZgD/AGYzAABmMzMAZjNmAGYz
- mQBmM8wAZjP/AGZmAABmZjMAZmZmAGZmmQBmZswAZpkAAGaZMwBmmWYAZpmZAGaZzABmmf8AZswAAGbM
- MwBmzJkAZszMAGbM/wBm/wAAZv8zAGb/mQBm/8wAzAD/AP8AzACZmQAAmTOZAJkAmQCZAMwAmQAAAJkz
- MwCZAGYAmTPMAJkA/wCZZgAAmWYzAJkzZgCZZpkAmWbMAJkz/wCZmTMAmZlmAJmZmQCZmcwAmZn/AJnM
- AACZzDMAZsxmAJnMmQCZzMwAmcz/AJn/AACZ/zMAmcxmAJn/mQCZ/8wAmf//AMwAAACZADMAzABmAMwA
- mQDMAMwAmTMAAMwzMwDMM2YAzDOZAMwzzADMM/8AzGYAAMxmMwCZZmYAzGaZAMxmzACZZv8AzJkAAMyZ
- MwDMmWYAzJmZAMyZzADMmf8AzMwAAMzMMwDMzGYAzMyZAMzMzADMzP8AzP8AAMz/MwCZ/2YAzP+ZAMz/
- zADM//8AzAAzAP8AZgD/AJkAzDMAAP8zMwD/M2YA/zOZAP8zzAD/M/8A/2YAAP9mMwDMZmYA/2aZAP9m
- zADMZv8A/5kAAP+ZMwD/mWYA/5mZAP+ZzAD/mf8A/8wAAP/MMwD/zGYA/8yZAP/MzAD/zP8A//8zAMz/
- ZgD//5kA///MAGZm/wBm/2YAZv//AP9mZgD/Zv8A//9mACEApQBfX18Ad3d3AIaGhgCWlpYAy8vLALKy
- sgDX19cA3d3dAOPj4wDq6uoA8fHxAPj4+ADw+/8ApKCgAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP//
- AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMT
- ExMTExMTEyIiQiI8HTyCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwDODg4Nzc4MQMdAAAA
- AADDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOw4ODgyOCQAAAAdAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAODIyMSIAHewAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAA7DI3MSIdCwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAADEyMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAs4JAALAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwxJAAhAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4IgC8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAJAxJB0LAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- ALwLCx0dIh0dCwATAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACx0dAB0dIiIiIiId
- CxMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvAsdAB0dIiQkAyQkIiIiHSIAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAIgMxMVhZmZqZAyQiHR0AAAAAkAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAvAsdISIDMThZWVmgvaCZWVIkIh0AAB0dIh0hCwALCwALtgAAAAAAAAAAAAAAAOwAAB0iMTEx
- ODhYWZrDw8Ofn1hSJCIAHQAdACIAHSIkAwsdOAAAAADeExMTCwsLIiIkMTEyODg3MllZmprDw8PDwllS
- MSQdHQAAAB0AIiQkAAAAvDi8AAAxAzExMTExMTI4Nzg4ODc4ODhZXpnDw8PDml1YNwMkIh0AAB0hIiQA
- AAAAACIAAAA4ODc4Nzg4ODg4ODg4ODg4ODhZWV6avb2gmllZODcxJCIAAAAdIgMLAAAAACIAAACGE0+G
- T4bs7Oy8vLy8vAAxODg4ODg4NzIyMSQdHQAAvADsCwAiJDExAAAAwjjsAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAALMSQAAAAAAAAAAAAAAAAAEyI4MQsiOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALMSQAAAAA
- AAAAAAAAAAAAAAC8CwsAEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8AAsAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////AAD///////8AAP///////wAA////////
- AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
- /////wAA//8AAH//AAD//wAAf/8AAP//4AP//wAA///4B///AAD///gP//8AAP///B///wAA///8H///
- AAD///wf//8AAP///h///wAA///8H///AAD//+AD//8AAP//wAD//wAA//4AAD//AAD//AAAB/8AAP/w
- AAAAAwAA/8AAAAABAADAAAAAADgAAMAAAAAAPAAAwAAAAAA8AADAAAAAIDgAAP///j/+AQAA///+P/+D
- AAD///4///8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
- /////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WinForms/Form2.cs b/samples/CSharp/WinForms/Form2.cs
deleted file mode 100644
index 4c7b7920e4..0000000000
--- a/samples/CSharp/WinForms/Form2.cs
+++ /dev/null
@@ -1,945 +0,0 @@
-using System;
-using System.Drawing;
-using System.Collections;
-using System.ComponentModel;
-using System.Windows.Forms;
-
-
-namespace IE_WinForms
-{
- public enum CurrentAction3d
- {
- CurAction3d_Nothing,
- CurAction3d_DynamicZooming,
- CurAction3d_WindowZooming,
- CurAction3d_DynamicPanning,
- CurAction3d_GlobalPanning,
- CurAction3d_DynamicRotation
- }
- public enum CurrentPressedKey
- {
- CurPressedKey_Nothing,
- CurPressedKey_Ctrl,
- CurPressedKey_Shift
- }
- public enum ModelFormat
- {
- BREP,
- STEP,
- IGES,
- VRML,
- STL,
- IMAGE
- }
- ///
- /// Summary description for Form2.
- ///
- public class Form2 : System.Windows.Forms.Form
- {
- private System.ComponentModel.IContainer components;
-
- public Form2()
- {
- //
- // Required for Windows Form Designer support
- //
- InitializeComponent();
-
- //
- // Create OCCT proxy object
- //
- myOCCTProxy = new OCCTProxy();
- myCurrentMode = CurrentAction3d.CurAction3d_Nothing;
- myCurrentPressedKey = CurrentPressedKey.CurPressedKey_Nothing;
- myDegenerateModeIsOn = true;
- IsRectVisible = false;
- }
-
- ///
- /// Clean up any resources being used.
- ///
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form2));
- this.imageList1 = new System.Windows.Forms.ImageList(this.components);
- this.myPopup = new System.Windows.Forms.ContextMenu();
- this.menuItem1 = new System.Windows.Forms.MenuItem();
- this.myPopupObject = new System.Windows.Forms.ContextMenu();
- this.ContextWireframe = new System.Windows.Forms.MenuItem();
- this.ContextShading = new System.Windows.Forms.MenuItem();
- this.ContextColor = new System.Windows.Forms.MenuItem();
- this.ContextMaterial = new System.Windows.Forms.MenuItem();
- this.ContMatBrass = new System.Windows.Forms.MenuItem();
- this.ContMenBronze = new System.Windows.Forms.MenuItem();
- this.ContMenCopper = new System.Windows.Forms.MenuItem();
- this.ContMenGold = new System.Windows.Forms.MenuItem();
- this.ContMenPewt = new System.Windows.Forms.MenuItem();
- this.ContMenPlaster = new System.Windows.Forms.MenuItem();
- this.ContMenPlastic = new System.Windows.Forms.MenuItem();
- this.ContMenSilver = new System.Windows.Forms.MenuItem();
- this.ContMenTranc = new System.Windows.Forms.MenuItem();
- this.ContMenDelete = new System.Windows.Forms.MenuItem();
- //
- // imageList1
- //
- this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
- this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
- this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
- //
- // myPopup
- //
- this.myPopup.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.menuItem1});
- //
- // menuItem1
- //
- this.menuItem1.Index = 0;
- this.menuItem1.Text = "Change &Background";
- this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
- //
- // myPopupObject
- //
- this.myPopupObject.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.ContextWireframe,
- this.ContextShading,
- this.ContextColor,
- this.ContextMaterial,
- this.ContMenTranc,
- this.ContMenDelete});
- this.myPopupObject.Popup += new System.EventHandler(this.myPopupObject_Popup);
- //
- // ContextWireframe
- //
- this.ContextWireframe.Index = 0;
- this.ContextWireframe.Text = "Wireframe";
- this.ContextWireframe.Click += new System.EventHandler(this.ContextWireframe_Click);
- //
- // ContextShading
- //
- this.ContextShading.Index = 1;
- this.ContextShading.Text = "Shading";
- this.ContextShading.Click += new System.EventHandler(this.ContextShading_Click);
- //
- // ContextColor
- //
- this.ContextColor.Index = 2;
- this.ContextColor.Text = "Color";
- this.ContextColor.Click += new System.EventHandler(this.ContextColor_Click);
- //
- // ContextMaterial
- //
- this.ContextMaterial.Index = 3;
- this.ContextMaterial.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
- this.ContMatBrass,
- this.ContMenBronze,
- this.ContMenCopper,
- this.ContMenGold,
- this.ContMenPewt,
- this.ContMenPlaster,
- this.ContMenPlastic,
- this.ContMenSilver});
- this.ContextMaterial.Text = "Material";
- //
- // ContMatBrass
- //
- this.ContMatBrass.Index = 0;
- this.ContMatBrass.Text = "&Brass";
- this.ContMatBrass.Click += new System.EventHandler(this.ContMatBrass_Click);
- //
- // ContMenBronze
- //
- this.ContMenBronze.Index = 1;
- this.ContMenBronze.Text = "&Bronze";
- this.ContMenBronze.Click += new System.EventHandler(this.ContMenBronze_Click);
- //
- // ContMenCopper
- //
- this.ContMenCopper.Index = 2;
- this.ContMenCopper.Text = "&Copper";
- this.ContMenCopper.Click += new System.EventHandler(this.ContMenCopper_Click);
- //
- // ContMenGold
- //
- this.ContMenGold.Index = 3;
- this.ContMenGold.Text = "&Gold";
- this.ContMenGold.Click += new System.EventHandler(this.ContMenGold_Click);
- //
- // ContMenPewt
- //
- this.ContMenPewt.Index = 4;
- this.ContMenPewt.Text = "&Pewter";
- this.ContMenPewt.Click += new System.EventHandler(this.ContMenPewt_Click);
- //
- // ContMenPlaster
- //
- this.ContMenPlaster.Index = 5;
- this.ContMenPlaster.Text = "&Plaster";
- this.ContMenPlaster.Click += new System.EventHandler(this.ContMenPlaster_Click);
- //
- // ContMenPlastic
- //
- this.ContMenPlastic.Index = 6;
- this.ContMenPlastic.Text = "&Plastic";
- this.ContMenPlastic.Click += new System.EventHandler(this.ContMenPlastic_Click);
- //
- // ContMenSilver
- //
- this.ContMenSilver.Index = 7;
- this.ContMenSilver.Text = "&Silver";
- this.ContMenSilver.Click += new System.EventHandler(this.ContMenSilver_Click);
- //
- // ContMenTranc
- //
- this.ContMenTranc.Index = 4;
- this.ContMenTranc.Text = "&Trancparency";
- this.ContMenTranc.Click += new System.EventHandler(this.ContMenTranc_Click);
- //
- // ContMenDelete
- //
- this.ContMenDelete.Index = 5;
- this.ContMenDelete.Text = "&Delete";
- this.ContMenDelete.Click += new System.EventHandler(this.ContMenDelete_Click);
- //
- // Form2
- //
- this.AccessibleRole = System.Windows.Forms.AccessibleRole.Window;
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(320, 261);
- this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.ImeMode = System.Windows.Forms.ImeMode.NoControl;
- this.Name = "Form2";
- this.Text = "Document";
- this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
- this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form2_KeyDown);
- this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Form2_MouseDown);
- this.SizeChanged += new System.EventHandler(this.Form2_SizeChanged);
- this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Form2_MouseUp);
- this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.Form2_KeyUp);
- this.Closed += new System.EventHandler(this.Form2_Closed);
- this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form2_Paint);
- this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Form2_MouseMove);
- }
- #endregion
-
- private System.Windows.Forms.ImageList imageList1;
- private System.Windows.Forms.ContextMenu myPopup;
- private System.Windows.Forms.ContextMenu myPopupObject;
- private System.Windows.Forms.MenuItem ContextWireframe;
- private System.Windows.Forms.MenuItem ContextShading;
- private System.Windows.Forms.MenuItem ContextColor;
- private System.Windows.Forms.MenuItem ContextMaterial;
- private System.Windows.Forms.MenuItem ContMatBrass;
- private System.Windows.Forms.MenuItem ContMenBronze;
- private System.Windows.Forms.MenuItem ContMenCopper;
- private System.Windows.Forms.MenuItem ContMenGold;
- private System.Windows.Forms.MenuItem ContMenPewt;
- private System.Windows.Forms.MenuItem ContMenPlaster;
- private System.Windows.Forms.MenuItem ContMenPlastic;
- private System.Windows.Forms.MenuItem ContMenSilver;
- private System.Windows.Forms.MenuItem ContMenTranc;
- private System.Windows.Forms.MenuItem ContMenDelete;
- private System.Windows.Forms.MenuItem menuItem1;
-
- private OCCTProxy myOCCTProxy;
- private int myDocumentIndex, myViewIndex;
-
- public void InitV3D()
- {
- if (!myOCCTProxy.InitViewer(this.Handle))
- MessageBox.Show("Fatal Error during the graphic initialisation", "Error!",
- MessageBoxButtons.OK, MessageBoxIcon.Error);
- }
-
- public bool ImportBRep(System.String filename)
- {
- return myOCCTProxy.ImportBrep(filename);
- }
-
- private void Form2_SizeChanged(object sender, System.EventArgs e)
- {
- myOCCTProxy.UpdateView();
- }
-
- private void Form2_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
- {
- myOCCTProxy.RedrawView();
- myOCCTProxy.UpdateView();
- }
-
- protected CurrentAction3d myCurrentMode;
- protected CurrentPressedKey myCurrentPressedKey;
- protected float myCurZoom;
- protected bool myDegenerateModeIsOn;
- protected int myXmin;
- protected int myYmin;
- protected int myXmax;
- protected int myYmax;
- protected int theButtonDownX;
- protected int theButtonDownY;
- // for erasing of rectangle
- protected int theRectDownX;
- protected int theRectDownY;
- protected bool IsRectVisible;
-
- private void Form2_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
- {
- switch (e.Button)
- {
- case MouseButtons.Left:
- myXmin = e.X; myYmin = e.Y;
- myXmax = e.X; myYmax = e.Y;
- if (myCurrentPressedKey == CurrentPressedKey.CurPressedKey_Ctrl)
- // start the dynamic zooming....
- myCurrentMode = CurrentAction3d.CurAction3d_DynamicZooming;
- else
- {
- switch (myCurrentMode)
- {
- case CurrentAction3d.CurAction3d_Nothing:
- if (myCurrentPressedKey == CurrentPressedKey.CurPressedKey_Shift)
- MultiDragEvent(myXmax, myYmax, -1);
- else
- DragEvent(myXmax, myYmax, -1);
- break;
- case CurrentAction3d.CurAction3d_DynamicRotation:
- if (!myDegenerateModeIsOn)
- myOCCTProxy.SetDegenerateModeOn();
- //start the rotation
- myOCCTProxy.StartRotation(e.X, e.Y);
- break;
- case IE_WinForms.CurrentAction3d.CurAction3d_WindowZooming:
- this.Cursor = System.Windows.Forms.Cursors.Hand;
- break;
- default:
- break;
- }
- }
- break;
- case MouseButtons.Right:
- //MessageBox.Show("right mouse button is down");
- if (myCurrentPressedKey == CurrentPressedKey.CurPressedKey_Ctrl)
- {
- if (!myDegenerateModeIsOn)
- myOCCTProxy.SetDegenerateModeOn();
- myOCCTProxy.StartRotation(e.X, e.Y);
- }
- else
- Popup(e.X, e.Y);
- break;
- default:
- break;
- }
- }
-
- private void Form2_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
- {
- if (e.Shift)
- myCurrentPressedKey = CurrentPressedKey.CurPressedKey_Shift;
- else if (e.Control)
- myCurrentPressedKey = CurrentPressedKey.CurPressedKey_Ctrl;
- }
-
- private void Form2_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
- {
- myCurrentPressedKey = CurrentPressedKey.CurPressedKey_Nothing;
- }
-
- protected void MultiDragEvent(int x, int y, int theState)
- {
- if (theState == -1)
- {
- theButtonDownX = x;
- theButtonDownY = y;
- }
- else if (theState == 1)
- myOCCTProxy.ShiftSelect(Math.Min(theButtonDownX, x), Math.Min(theButtonDownY, y),
- Math.Max(theButtonDownX, x), Math.Max(theButtonDownY, y));
- }
-
- protected void DragEvent(int x, int y, int theState)
- {
- if (theState == -1) //mouse is down
- {
- theButtonDownX = x;
- theButtonDownY = y;
- }
- else if (theState == 1) //mouse is up
- {
- myOCCTProxy.Select(Math.Min(theButtonDownX, x), Math.Min(theButtonDownY, y),
- Math.Max(theButtonDownX, x), Math.Max(theButtonDownY, y));
- }
- }
-
- protected void Popup(int x, int y)
- {
- System.Drawing.Point p = new Point(x, y);
- if (this.myOCCTProxy.IsObjectSelected())
- this.myPopupObject.Show(this, p);
- else
- this.myPopup.Show(this, p);
- }
-
- private void Form2_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
- {
- switch (e.Button)
- {
- case MouseButtons.Left:
- if (myCurrentPressedKey == CurrentPressedKey.CurPressedKey_Ctrl)
- return;
- switch (myCurrentMode)
- {
- case CurrentAction3d.CurAction3d_Nothing:
- if (e.X == myXmin && e.Y == myYmin)
- {
- myXmax = e.X; myYmax = e.Y;
- if (myCurrentPressedKey == CurrentPressedKey.CurPressedKey_Shift)
- MultiInputEvent(myXmax, myYmax);
- else
- InputEvent(myXmax, myYmax);
- }
- else
- {
- myXmax = e.X; myYmax = e.Y;
- DrawRectangle(false);
- if (myCurrentPressedKey == CurrentPressedKey.CurPressedKey_Shift)
- MultiDragEvent(myXmax, myYmax, 1);
- else
- DragEvent(myXmax, myYmax, 1);
- }
- break;
- case CurrentAction3d.CurAction3d_DynamicZooming:
- myCurrentMode = CurrentAction3d.CurAction3d_Nothing;
- break;
- case CurrentAction3d.CurAction3d_WindowZooming:
- myXmax = e.X; myYmax = e.Y;
- DrawRectangle(false);
- int ValZWMin = 1;
- if (Math.Abs(myXmax - myXmin) > ValZWMin && Math.Abs(myXmax - myYmax) > ValZWMin)
- myOCCTProxy.WindowFitAll(myXmin, myYmin, myXmax, myYmax);
- this.Cursor = System.Windows.Forms.Cursors.Default;
- IE_WinForms.Form1 f = (IE_WinForms.Form1)this.ParentForm;
- f.SelectionChanged();
- myCurrentMode = CurrentAction3d.CurAction3d_Nothing;
- break;
- case CurrentAction3d.CurAction3d_DynamicPanning:
- myCurrentMode = CurrentAction3d.CurAction3d_Nothing;
- break;
- case CurrentAction3d.CurAction3d_GlobalPanning:
- myOCCTProxy.Place(e.X, e.Y, myCurZoom);
- myCurrentMode = CurrentAction3d.CurAction3d_Nothing;
- break;
- case CurrentAction3d.CurAction3d_DynamicRotation:
- myCurrentMode = CurrentAction3d.CurAction3d_Nothing;
- if (!myDegenerateModeIsOn)
- {
- myOCCTProxy.SetDegenerateModeOff();
- myDegenerateModeIsOn = false;
- }
- else
- {
- myOCCTProxy.SetDegenerateModeOn();
- myDegenerateModeIsOn = true;
- }
- break;
- default:
- break;
-
- }
- break;
- case MouseButtons.Right:
- if (!myDegenerateModeIsOn)
- {
- myOCCTProxy.SetDegenerateModeOff();
- myDegenerateModeIsOn = false;
- }
- else
- {
- myOCCTProxy.SetDegenerateModeOn();
- myDegenerateModeIsOn = true;
- }
- break;
- default:
- break;
- }
-
- IE_WinForms.Form1 parent = (IE_WinForms.Form1)this.ParentForm;
- parent.SelectionChanged();
- }
-
- protected void MultiInputEvent(int x, int y)
- {
- myOCCTProxy.ShiftSelect();
- }
-
- protected void InputEvent(int x, int y)
- {
- myOCCTProxy.Select();
- }
-
- private void DrawRectangle(bool draw)
- {
- Graphics gr = Graphics.FromHwnd(this.Handle);
- System.Drawing.Pen p = null;
- if (this.IsRectVisible || (!draw))//erase the rect
- {
- int r = myOCCTProxy.GetBGColR();
- int g = myOCCTProxy.GetBGColG();
- int b = myOCCTProxy.GetBGColB();
- p = new Pen(System.Drawing.Color.FromArgb(r, g, b));
- this.IsRectVisible = false;
- this.myOCCTProxy.UpdateView();
- }
- else if (draw)
- {
- p = new Pen(System.Drawing.Color.White);
- this.IsRectVisible = true;
- }
- if (p == null)
- return;
- int x = Math.Min(this.myXmin, this.myXmax);
- int y = Math.Min(this.myYmin, this.myYmax);
- gr.DrawRectangle(p, x, y, Math.Abs(myXmax - myXmin), Math.Abs(myYmax - myYmin));
- this.theRectDownX = Math.Max(this.myXmin, this.myXmax);
- this.theRectDownY = Math.Max(this.myYmin, this.myYmax);
- }
-
- private void Form2_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
- {
- if (e.Button == MouseButtons.Left) //left button is pressed
- {
- if (myCurrentPressedKey == CurrentPressedKey.CurPressedKey_Ctrl)
- {
- myOCCTProxy.Zoom(myXmax, myYmax, e.X, e.Y);
- myXmax = e.X; myYmax = e.Y;
- }
- else
- {
- switch (myCurrentMode)
- {
- case CurrentAction3d.CurAction3d_Nothing:
- DrawRectangle(false);
- myXmax = e.X; myYmax = e.Y;
- DrawRectangle(true);
- break;
- case CurrentAction3d.CurAction3d_DynamicZooming:
- myOCCTProxy.Zoom(myXmax, myYmax, e.X, e.Y);
- myXmax = e.X; myYmax = e.Y;
- break;
- case CurrentAction3d.CurAction3d_WindowZooming:
- DrawRectangle(false);
- myXmax = e.X; myYmax = e.Y;
- DrawRectangle(true);//add brush here
- break;
- case CurrentAction3d.CurAction3d_DynamicPanning:
- myOCCTProxy.Pan(e.X - myXmax, myYmax - e.Y);
- myXmax = e.X; myYmax = e.Y;
- break;
- case CurrentAction3d.CurAction3d_GlobalPanning:
- break;
- case CurrentAction3d.CurAction3d_DynamicRotation:
- myOCCTProxy.Rotation(e.X, e.Y);
- myOCCTProxy.RedrawView();
- break;
- default:
- break;
- }
- }
- } // e.Button == MouseButtons.Left
- else if (e.Button == MouseButtons.Middle)
- {
- if (myCurrentPressedKey == CurrentPressedKey.CurPressedKey_Ctrl)
- {
- myOCCTProxy.Pan(e.X - myXmax, myYmax - e.Y);
- myXmax = e.X; myYmax = e.Y;
- }
- }//e.Button=MouseButtons.Middle
- else if (e.Button == MouseButtons.Right) //right button is pressed
- {
- if (myCurrentPressedKey == CurrentPressedKey.CurPressedKey_Ctrl)
- myOCCTProxy.Rotation(e.X, e.Y);
- }
- else // no buttons are pressed
- {
- myXmax = e.X; myYmax = e.Y;
- if (myCurrentPressedKey == CurrentPressedKey.CurPressedKey_Shift)
- MultiMoveEvent(e.X, e.Y);
- else
- MoveEvent(e.X, e.Y);
- }
-
-
- }
-
- protected void MultiMoveEvent(int x, int y)
- {
- myOCCTProxy.MoveTo(x, y);
- }
-
- protected void MoveEvent(int x, int y)
- {
- myOCCTProxy.MoveTo(x, y);
- }
-
- public void SetDisplayMode(int aMode)
- {
- myOCCTProxy.SetDisplayMode(aMode);
- }
-
- public void ChangeColor(bool IsObjectColor)
- {
- int r, g, b;
- if (IsObjectColor)
- {
- r = myOCCTProxy.GetObjColR();
- g = myOCCTProxy.GetObjColG();
- b = myOCCTProxy.GetObjColB();
- }
- else
- {
- r = myOCCTProxy.GetBGColR();
- g = myOCCTProxy.GetBGColG();
- b = myOCCTProxy.GetBGColB();
- }
- System.Windows.Forms.ColorDialog ColDlg = new ColorDialog();
- ColDlg.Color = System.Drawing.Color.FromArgb(r, g, b);
- if (ColDlg.ShowDialog() == DialogResult.OK)
- {
- Color c = ColDlg.Color;
- r = c.R;
- g = c.G;
- b = c.B;
- if (IsObjectColor)
- myOCCTProxy.SetColor(r, g, b);
- else
- myOCCTProxy.SetBackgroundColor(r, g, b);
- }
- this.myOCCTProxy.UpdateCurrentViewer();
-
- }
-
- public void DeleteObjects()
- {
- myOCCTProxy.EraseObjects();
- IE_WinForms.Form1 parent = (IE_WinForms.Form1)this.ParentForm;
- parent.SelectionChanged();
- }
- public void ImportModel(IE_WinForms.ModelFormat format)
- {
- int theformat = 10;
- System.Windows.Forms.OpenFileDialog openDialog = new OpenFileDialog();
-
- string DataDir = Environment.GetEnvironmentVariable("CSF_OCCTDataPath");
-
- string filter = "";
-
- switch (format)
- {
- case ModelFormat.BREP:
- openDialog.InitialDirectory = (DataDir + "\\occ");
- theformat = 0;
- filter = "BREP Files (*.brep *.rle)|*.brep; *.rle";
- break;
- case IE_WinForms.ModelFormat.STEP:
- openDialog.InitialDirectory = (DataDir + "\\step");
- theformat = 1;
- filter = "STEP Files (*.stp *.step)|*.stp; *.step";
- break;
- case IE_WinForms.ModelFormat.IGES:
- openDialog.InitialDirectory = (DataDir + "\\iges");
- theformat = 2;
- filter = "IGES Files (*.igs *.iges)|*.igs; *.iges";
- break;
- default:
- break;
- }
- openDialog.Filter = filter + "|All files (*.*)|*.*";
- if (openDialog.ShowDialog() == DialogResult.OK)
- {
- string filename = openDialog.FileName;
- if (filename == "")
- return;
- this.Cursor = System.Windows.Forms.Cursors.WaitCursor;
- if (!myOCCTProxy.TranslateModel(filename, theformat, true))
- MessageBox.Show("Can't read this file", "Error!",
- MessageBoxButtons.OK, MessageBoxIcon.Warning);
- this.Cursor = System.Windows.Forms.Cursors.Default;
- }
- this.myOCCTProxy.ZoomAllView();
- }
-
- public void ExportModel(ModelFormat format)
- {
- int theformat = 10;
- System.Windows.Forms.SaveFileDialog saveDialog = new SaveFileDialog();
- string DataDir = Environment.GetEnvironmentVariable("CSF_OCCTDataPath");
- string filter = "";
- switch (format)
- {
- case IE_WinForms.ModelFormat.BREP:
- saveDialog.InitialDirectory = (DataDir + "\\occ");
- theformat = 0;
- filter = "BREP Files (*.brep *.rle)|*.brep; *.rle";
- break;
- case IE_WinForms.ModelFormat.STEP:
- saveDialog.InitialDirectory = (DataDir + "\\step");
- theformat = 1;
- filter = "STEP Files (*.stp *.step)|*.step; *.stp";
- break;
- case IE_WinForms.ModelFormat.IGES:
- saveDialog.InitialDirectory = (DataDir + "\\iges");
- theformat = 2;
- filter = "IGES Files (*.igs *.iges)| *.iges; *.igs";
- break;
- case IE_WinForms.ModelFormat.VRML:
- saveDialog.InitialDirectory = (DataDir + "\\vrml");
- theformat = 3;
- filter = "VRML Files (*.vrml)|*.vrml";
- break;
- case IE_WinForms.ModelFormat.STL:
- saveDialog.InitialDirectory = (DataDir + "\\stl");
- theformat = 4;
- filter = "STL Files (*.stl)|*.stl";
- break;
- case IE_WinForms.ModelFormat.IMAGE:
- saveDialog.InitialDirectory = (DataDir + "\\images");
- theformat = 5;
- filter = "Images Files (*.bmp *.gif)| *.bmp; *.gif";
- break;
- default:
- break;
- }
- saveDialog.Filter = filter;
- if (saveDialog.ShowDialog() == DialogResult.OK)
- {
- string filename = saveDialog.FileName;
- if (filename == "")
- return;
- this.Cursor = System.Windows.Forms.Cursors.WaitCursor;
- if (!myOCCTProxy.TranslateModel(filename, theformat, false))
- MessageBox.Show("Can't write this file", "Error!",
- MessageBoxButtons.OK, MessageBoxIcon.Warning);
- this.Cursor = System.Windows.Forms.Cursors.Default;
- }
- }
-
- private void ContextColor_Click(object sender, System.EventArgs e)
- {
- this.ChangeColor(true);
- }
-
- private void menuItem1_Click(object sender, System.EventArgs e)
- {
- this.myOCCTProxy.UpdateCurrentViewer();
- this.ChangeColor(false);
- }
-
- private void ContextWireframe_Click(object sender, System.EventArgs e)
- {
- this.SetDisplayMode(0);
- this.myOCCTProxy.UpdateCurrentViewer();
- IE_WinForms.Form1 parent = (IE_WinForms.Form1)this.ParentForm;
- parent.SelectionChanged();
- }
-
- private void ContextShading_Click(object sender, System.EventArgs e)
- {
- this.SetDisplayMode(1);
- this.myOCCTProxy.UpdateCurrentViewer();
- IE_WinForms.Form1 parent = (IE_WinForms.Form1)this.ParentForm;
- parent.SelectionChanged();
- }
-
- private void ContMenTranc_Click(object sender, System.EventArgs e)
- {
- IE_WinForms.TransparencyDialog dlg = new TransparencyDialog();
- dlg.View = this.myOCCTProxy;
- dlg.ShowDialog(this);
- }
-
- private void ContMenDelete_Click(object sender, System.EventArgs e)
- {
- this.DeleteObjects();
- }
-
- private void ContMatBrass_Click(object sender, System.EventArgs e)
- {
- this.myOCCTProxy.UpdateCurrentViewer();
- this.myOCCTProxy.SetMaterial(0);
- }
-
- private void ContMenBronze_Click(object sender, System.EventArgs e)
- {
- this.myOCCTProxy.UpdateCurrentViewer();
- this.myOCCTProxy.SetMaterial(1);
- }
-
- private void ContMenCopper_Click(object sender, System.EventArgs e)
- {
- this.myOCCTProxy.UpdateCurrentViewer();
- this.myOCCTProxy.SetMaterial(2);
- }
-
- private void ContMenGold_Click(object sender, System.EventArgs e)
- {
- this.myOCCTProxy.UpdateCurrentViewer();
- this.myOCCTProxy.SetMaterial(3);
- }
-
- private void ContMenPewt_Click(object sender, System.EventArgs e)
- {
- this.myOCCTProxy.UpdateCurrentViewer();
- this.myOCCTProxy.SetMaterial(4);
- }
-
- private void ContMenPlaster_Click(object sender, System.EventArgs e)
- {
- this.myOCCTProxy.UpdateCurrentViewer();
- this.myOCCTProxy.SetMaterial(5);
- }
-
- private void ContMenPlastic_Click(object sender, System.EventArgs e)
- {
- this.myOCCTProxy.UpdateCurrentViewer();
- this.myOCCTProxy.SetMaterial(6);
- }
-
- private void ContMenSilver_Click(object sender, System.EventArgs e)
- {
- this.myOCCTProxy.UpdateCurrentViewer();
- this.myOCCTProxy.SetMaterial(7);
- }
-
- private void toolBar1_MouseHover(object sender, System.EventArgs e)
- {
- IE_WinForms.Form1 parent = (IE_WinForms.Form1)this.ParentForm;
- parent.StatusBar.Text = "View toolbar";
-
- }
-
- private void toolBar1_MouseLeave(object sender, System.EventArgs e)
- {
- IE_WinForms.Form1 parent = (IE_WinForms.Form1)this.ParentForm;
- parent.StatusBar.Text = "";
- }
-
- private void myPopupObject_Popup(object sender, System.EventArgs e)
- {
- int mode = this.myOCCTProxy.DisplayMode();
- switch (mode)
- {
- case -1:
- break;
- case 0:
- this.ContextWireframe.Enabled = false;
- this.ContextShading.Enabled = true;
- this.ContMenTranc.Enabled = false;
- break;
- case 1:
- this.ContextShading.Enabled = false;
- this.ContextWireframe.Enabled = true;
- this.ContMenTranc.Enabled = true;
- break;
- case 10:
- this.ContextShading.Enabled = true; ;
- this.ContextWireframe.Enabled = true;
- this.ContMenTranc.Enabled = true;
- break;
- default:
- break;
-
- }
- }
-
- public OCCTProxy View
- {
- get
- {
- return this.myOCCTProxy;
- }
- set
- {
- this.myOCCTProxy = value;
- }
- }
-
- public void InitView()
- {
- this.myOCCTProxy.InitOCCTProxy();
- }
-
- public void SetIndex(int documentIndex, int viewIndex)
- {
- this.myDocumentIndex = documentIndex;
- this.myViewIndex = viewIndex;
- this.Text = System.String.Format("Document {0}:{1}", documentIndex, viewIndex);
- }
-
- public void SetNextIndex(Form2 other)
- {
- SetIndex(other.myDocumentIndex, other.myViewIndex + 1);
- }
-
- public void SetContext(OCCTProxy View)
- {
- this.myOCCTProxy.SetAISContext(View);
- }
-
- private void Form2_Closed(object sender, System.EventArgs e)
- {
- IE_WinForms.Form1 parent = (IE_WinForms.Form1)this.ParentForm;
- parent.OnFileClose();
- }
-
- public CurrentAction3d Mode
- {
- get
- {
- return this.myCurrentMode;
- }
- set
- {
- this.myCurrentMode = value;
- }
- }
-
- public float Zoom
- {
- set
- {
- this.myCurZoom = value;
- }
- }
-
- public bool DegenerateMode
- {
- get
- {
- return this.myDegenerateModeIsOn;
- }
- set
- {
- this.myDegenerateModeIsOn = value;
- }
- }
-
- }
-
-}
\ No newline at end of file
diff --git a/samples/CSharp/WinForms/Form2.resx b/samples/CSharp/WinForms/Form2.resx
deleted file mode 100644
index f93955ce43..0000000000
--- a/samples/CSharp/WinForms/Form2.resx
+++ /dev/null
@@ -1,357 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 1.3
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- Private
-
-
- Private
-
-
- 17, 17
-
-
-
- AAEAAAD/////AQAAAAAAAAAMAgAAAFpTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0xLjAuNTAw
- MC4wLCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZT
- eXN0ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMA
- AADoEgAAAk1TRnQBSQFMAgEBEAEAARMBAAEEAQABEAEAARABAAT/AQkBEAj/AUIBTQE2AQQGAAE2AQQC
- AAEoAwABQAMAAVADAAEBAQABCAYAARQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB
- 3AHAAQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IB
- AAM5AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8B
- MwMAAWYDAAGZAwABzAIAATMDAAIzAgABMwFmAgABMwGZAgABMwHMAgABMwH/AgABZgMAAWYBMwIAAmYC
- AAFmAZkCAAFmAcwCAAFmAf8CAAGZAwABmQEzAgABmQFmAgACmQIAAZkBzAIAAZkB/wIAAcwDAAHMATMC
- AAHMAWYCAAHMAZkCAALMAgABzAH/AgAB/wFmAgAB/wGZAgAB/wHMAQABMwH/AgAB/wEAATMBAAEzAQAB
- ZgEAATMBAAGZAQABMwEAAcwBAAEzAQAB/wEAAf8BMwIAAzMBAAIzAWYBAAIzAZkBAAIzAcwBAAIzAf8B
- AAEzAWYCAAEzAWYBMwEAATMCZgEAATMBZgGZAQABMwFmAcwBAAEzAWYB/wEAATMBmQIAATMBmQEzAQAB
- MwGZAWYBAAEzApkBAAEzAZkBzAEAATMBmQH/AQABMwHMAgABMwHMATMBAAEzAcwBZgEAATMBzAGZAQAB
- MwLMAQABMwHMAf8BAAEzAf8BMwEAATMB/wFmAQABMwH/AZkBAAEzAf8BzAEAATMC/wEAAWYDAAFmAQAB
- MwEAAWYBAAFmAQABZgEAAZkBAAFmAQABzAEAAWYBAAH/AQABZgEzAgABZgIzAQABZgEzAWYBAAFmATMB
- mQEAAWYBMwHMAQABZgEzAf8BAAJmAgACZgEzAQADZgEAAmYBmQEAAmYBzAEAAWYBmQIAAWYBmQEzAQAB
- ZgGZAWYBAAFmApkBAAFmAZkBzAEAAWYBmQH/AQABZgHMAgABZgHMATMBAAFmAcwBmQEAAWYCzAEAAWYB
- zAH/AQABZgH/AgABZgH/ATMBAAFmAf8BmQEAAWYB/wHMAQABzAEAAf8BAAH/AQABzAEAApkCAAGZATMB
- mQEAAZkBAAGZAQABmQEAAcwBAAGZAwABmQIzAQABmQEAAWYBAAGZATMBzAEAAZkBAAH/AQABmQFmAgAB
- mQFmATMBAAGZATMBZgEAAZkBZgGZAQABmQFmAcwBAAGZATMB/wEAApkBMwEAApkBZgEAA5kBAAKZAcwB
- AAKZAf8BAAGZAcwCAAGZAcwBMwEAAWYBzAFmAQABmQHMAZkBAAGZAswBAAGZAcwB/wEAAZkB/wIAAZkB
- /wEzAQABmQHMAWYBAAGZAf8BmQEAAZkB/wHMAQABmQL/AQABzAMAAZkBAAEzAQABzAEAAWYBAAHMAQAB
- mQEAAcwBAAHMAQABmQEzAgABzAIzAQABzAEzAWYBAAHMATMBmQEAAcwBMwHMAQABzAEzAf8BAAHMAWYC
- AAHMAWYBMwEAAZkCZgEAAcwBZgGZAQABzAFmAcwBAAGZAWYB/wEAAcwBmQIAAcwBmQEzAQABzAGZAWYB
- AAHMApkBAAHMAZkBzAEAAcwBmQH/AQACzAIAAswBMwEAAswBZgEAAswBmQEAA8wBAALMAf8BAAHMAf8C
- AAHMAf8BMwEAAZkB/wFmAQABzAH/AZkBAAHMAf8BzAEAAcwC/wEAAcwBAAEzAQAB/wEAAWYBAAH/AQAB
- mQEAAcwBMwIAAf8CMwEAAf8BMwFmAQAB/wEzAZkBAAH/ATMBzAEAAf8BMwH/AQAB/wFmAgAB/wFmATMB
- AAHMAmYBAAH/AWYBmQEAAf8BZgHMAQABzAFmAf8BAAH/AZkCAAH/AZkBMwEAAf8BmQFmAQAB/wKZAQAB
- /wGZAcwBAAH/AZkB/wEAAf8BzAIAAf8BzAEzAQAB/wHMAWYBAAH/AcwBmQEAAf8CzAEAAf8BzAH/AQAC
- /wEzAQABzAH/AWYBAAL/AZkBAAL/AcwBAAJmAf8BAAFmAf8BZgEAAWYC/wEAAf8CZgEAAf8BZgH/AQAC
- /wFmAQABIQEAAaUBAANfAQADdwEAA4YBAAOWAQADywEAA7IBAAPXAQAD3QEAA+MBAAPqAQAD8QEAA/gB
- AAHwAfsB/wEAAaQCoAEAA4ADAAH/AgAB/wMAAv8BAAH/AwAB/wEAAf8BAAL/AgAD//8A/wD/AP8ACwAB
- +z4AA/sB7D0AAfsCAAHsCAAD+zQAAuwGAAL7AQAC+w0AAewjAATsBgAC+wEAAvsOAAHsGwAC+wMAAuwC
- AAHsAQAB7AUAAvsBAAL7DwAF7AEAAuwVAAP7AewEAALsBQAC+wEAAvsPAAHsHgAB7AL7AwAD7AUAA/sQ
- AAHsHgAB7AMAAfsBAAHsAQAB7BgAAeweAAHsBAAB7AIAAewYAAHsHwAB7AMAAewDAAP7MAAD+wIAAuwB
- AAHsAQAC7AMAAfsVAAHsHQAD7AIAAuwbAAHsHAAB7AEAA+w8AALsPwAB7EIAAfs/AAH7CwABAQnsAwAJ
- 7AEBCgAC7AGGDgAB+wEAAfsBAAH7CQACAQcAAuwCAAHsAf4HAAIBCQABhgH7AewCAAEKAQQGAAoBCAAB
- AQEAAQEGAAHsAQAB7AEAAewBAAH+BgABAQEAAQEGAAHsA/sB7AEKAQABhQEAAYUFAAHsAQEDAAP7AQAC
- AQcAAQECAAEBBf4B7AL+AuwCAAb+AQAC/gEBBAABhgFYAa4BhQEEAQoBhQEAAYUCXwGFBAAB7AEAAQED
- AAH7AgAB7AEAAQEFAAH7AQECAAEBBQAB7AIAAuwCAAH+BQABAQIAAQEEAAGGAewBrgEAAYoDAAGFAV8B
- AAEGAQQDAAHsAgAKAQUAAQEB+wEAAQEFAAHsAgAC7AIAAf4FAAEBAgAB+wQAAYYB7AIAAX0BrAIAAYUB
- awHZAccBCgMAAewCAAH+BQAB7AIAAewCAAP7AQEC+wEBBQAB7AIAAuwCAAH+BQABAQEAAfsBAQQAAvsB
- hgEAAfsBngHHAQABuAFfAgABCgMAAewCAAH+BQAB7AIAAewFAAEBAfsBAAEBBQAB7AIAAuwCAAH+BQAB
- AQb7AQABhgGuBAABsgG4AQoBXwGhAQABCgMAAewCAAH+BQAB7AIAAewEAAH7AQECAAEBBQAB7AIAAuwC
- AAH+BQABAQEAAfsBAQgAAaECXwEGAQABhQFfAQABCgMAAewCAAH+BQAB7AIAAewFAAEBAuwBAQbsAgAK
- 7AEBAgAB+wgAAQoBhQGhAf4CAAGFAgoDAAHsAgAB/gUAAewCAAHsBgABAQEAAQEGAAHsAQAB7AEAAewB
- AAH+BgABAQEAAQEIAAEKAgAB/gQAAQoDAArsAgAB7AcAAgEHAALsAgAB7AH+BwACAQgAAYUBXwGhAf4B
- hQFfAQoGAAHsAQAB/gYAAewBAAHsCAABAQnsAwAJ7AEBCQABhQFfAQYBXwGFCAAB7AH+BwAC7CkAAoUL
- AArsOQAB+xkACuwGAArsCwAD+wgAAfsJAQYAAewB/gcAAuwFAAHsAf4HAALsCQAB+wEAAfsBAAH7BwAB
- AQH7BwABAQHsBQAB7AEAAf4GAAHsAQAB7AQAAewBAAH+BgAB7AEAAewKAAH7CQABAQEAAfsGAAEBAQAB
- 7AQAAewCAAoBAwAB7AIABv4B7AL+AewHAALsAfsBAAPsBQABAQIAAfsBAAH7A/4BAQL+AewDAAHsAgAB
- AQUAAewCAAEBAwAB7AIAAf4FAAHsAgAB7AQAAfsBAAHsAgAB+wMAAewB+wQAAQEDAAL7AwABAQIAAewD
- AAHsAgABAQUAAewCAAEBAwAB7AIAAf4FAAHsAgAB7AMAAfsCAAHsBgAB7AEAAfsDAAEBAgAD+wMAAQEC
- AAHsAwAB7AIAAQEFAAHsAgABAQMAAewCAAH+BQAB7AIAAewCAAb7BAAF+wIAAQECAAH+BQABAQIAAewD
- AAHsAgABAQUAAewCAAEBAwAB7AIAAf4FAAHsAgAB7AMAAfsCAAHsBgAB7AEAAfsDAAEBAgAB/gUAAQEC
- AAHsAwAB7AIAAQEBAAT7AewCAAEBAwAB7AIAAf4FAAHsAgAB7AQAAfsBAAHsAgAB+wMAAewB+wQAAQEC
- AAH+BQABAQIAAewDAAPsAQEB7AL7A+wCAAEBAwAKAQIAAewGAAPsAfsBAAPsBQAKAQIAAewEAAHsAQAB
- AQEAAfsBAAH7AgAB7AEAAQEEAAEBAQAB/gYAAQEBAAHsCQAB+woAAewBAAH+BgAB7AEAAewFAAHsAQEB
- AAH7AgAB+wIAAewBAQUAAQEB/gIAAfsEAAEBAewHAAH7AQAB+wEAAfsJAAHsAf4HAALsBgAKAQYAAgED
- +wUBCAAD+wsACuwNAAH7CQAB+wEAAfsBAAH7DQAB+yQAAfsKAAH7NQAB+wkAAfsIAAP7CgAD+w4AAfsh
- AAL7DAAC+wIAAewDAAfsA/sB7BYAAfsIAAH7AewBAwoAAfsBAAH7DgAB+xcAA/sJAAEDCQAB+xEAAewW
- AAH7AQAB+wEAAfskAAHsDwAB+wgAAfsPAAXsBQAB7AYABOwCAAHsBwAF7AIAA/sHAAH7DQAB7AYAAewE
- AAHsBAAB7AUAAewBAAHsBQAB7AYAAewCAAH7AwAB+wkAAfsIAAHsBwAB7AMAAewEAAHsBgAC7AUAAewH
- AAHsBAAB+wsAAfsGAALsBwAC7AIAAewDAALsBgAC7AQAAuwHAAEDAewCAAX7BQAF+wUAAewJAAHsAgAB
- 7AMAAewIAAHsBAAB7AQAA/sCAAHsAwAB+wsAAfsGAAHsCQAB7AIAAewDAAHsCAAB7AQAAewCAAL7BQAB
- 7AQAAfsEAAH7BAAB+wcAAuwHAALsAgAB7AMAAuwGAALsBQAB7AcAAuwJAAH7CwAB+wEAAewHAAHsAwAB
- 7AQAAewGAALsBQAB7AcAAewKAAH7CAAB+wEAAfsDAAHsBQAB7AH7AQAB+wEAAfsFAAHsBAAB7AEAAewB
- AAP7AgAB7AUAAewJAAH7AQAB+wEAAfsGAAL7BQAF7AIABfsE7AEABuwIAAXsCwAD+wcAA/sKAAP7AQAB
- +yUAAfsIAAFCAU0BPgcAAT4DAAEoAwABQAMAAVADAAEBAQABAQUAAYABAhYAA/+BAAH9B/8B+AF/Bv8B
- /QG/AccB/wHAAR8BwAEfAf8BnwGTAf8CzwHfAc8B/gEfAZMB/wLXAd8B1wE5AY8BkwH/AdgBAwHfAdsB
- wwHPAZMB/wLbAd8B2wHxAscB+wLbAd8B2wH3AVcB/wHBAtsB3wHbAfcBtwH/AZsC2wHfAdsB+wGoAf8B
- rwHAARsBwAEbARkBTgH/AbUC6wHvAesBwgE/Af8BuQLzAfcB8wHBAv8BEQH4AQMB+AEDAecC/wG/BP8B
- 9wf/Af4H/wH+Af8B4AEHAQABPwHxAf8B+gG/AecB8wE/AZ8B8QGfAYABHwHrAfUBXwGvAcABDwGcAU8B
- 7AEAAWABBwGAAYcBrgHXAc0B9gFvAbcBgwGTAbABAwHlAfYBbwG3AZEBgwG3AdsBAQH2AW8BpwGAAZsB
- twHbAeUB9gFvAYABlgELAbcB2wHNAfYBbwGnAfABSwG3AdsB4AEGAQABNwHwAWMBtwHbAfUB+gGvAdcB
- +wFzAYABGwH5AfwBzwHnAfgBDwHXAesB/AEAAeABBwH8AR8B5wHzBP8B/gF/AfABAwb/Af4D/wGAAR8B
- gAEfAfwBfwGAAR8BnwHPAZ8BzwH6Ab8BnwHPAa8B1wGvAdcB/gH/Aa8B1wGwAQMBsAEDAfABjwG0AQMB
- twHbAbcB2wHWAecBuQHbAbcB2wG3AdsBtwHrAbEB2wG3AdsBtwHbAQMBwQG3AdsBtwHbAbcB2wG3AesB
- twHbAbQBGwG3AdsB1gHnAbcB2wGAARsBgAEbAfABjwGAARsB1QFrAdcB6wH+Af8B1wHrAeUBswHmAfMB
- +gG/AecB8wHwAQMB8AEDAfwBfwHwAQMB/wHvAfoBvwH+BP8B9wH+Bv8B+wH+Af8BHwH4Af8B/QT/AT8B
- /AHcAQABfwH/Af4B/wEfAfoBzwH9AT8B/wH8AX8BzwH3AecB/QGfAf8B+gG/AecB/wHzAf0BzwH9Af4B
- /wHyAQ8BuQENAeQBGAH+Af8B+QH3AbwB9QHzAe0B3wH3AvsBvQH5AvcBvwH7AfMB+QG5AfkB5wHzAQcB
- wQH3Af0BuwH9Ae8BGwG/AfsB9wH9AbsB/QHsAfsB3gH3AfMB+QG5AfkB9wHzAf4B/wHrAfsBvQH5AvcB
- /gH/AV0B8gG+AfUBGwHvAfoBvwE+AQwCAQH8AR8B/AF/AR8B+AG/A/8B/gH/FgAL
-
-
-
- Private
-
-
- 122, 17
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- 220, 17
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- False
-
-
- (Default)
-
-
- False
-
-
- Form2
-
-
- False
-
-
- 8, 8
-
-
- True
-
-
- 80
-
-
- True
-
-
- Private
-
-
-
- AAABAAIAICAQAAAAAADoAgAAJgAAABAQEAAAAAAAKAEAAA4DAAAoAAAAIAAAAEAAAAABAAQAAAAAAIAC
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAAAACAAIAAgIAAAICAgADAwMAAAAD/AAD/
- AAAA//8A/wAAAP8A/wD//wAA////AAiIiIAAiIgAAAAAAAAAAAAAAACIgAAIiAAAAAAAAAAAD///AA//
- 8AiIAAAAAAAAAA////////8ACIgAAAAAAAAP//////////AIgAAAAAAAD///////////AIgAAAAAAA//
- //////////AIAAAAAAAP////////////CIAAAAAAD///+IiIiIiIiACIiIiAAA/////////////wAAAA
- iAAP////////////////8AiAD/////////////////8AgA//////////////////8IAP////////////
- //////CID//////////////////wCA////iIiIiIiIiIiIiIiAgP//////////////////8ID///////
- ////////////CA///////////////////wgP//////////////////8ID///////////////////CA//
- /////////////////wgP///4iIiIiIiIiIiIiIgID///////////////////CA////mZ//mf+Zn/mZ//
- /wgP///5/5+f+fn///n///8ID///+f+fn/n5///5////CA////n/n5/5+f//+f///wgP///5mf/5n/mZ
- /5n///8ID///////////////////CA///////////////////wgAAAAAAAAAAAAAAAAAAAAAgcP//wAA
- //8AAD//AAAP/wAAB/8AAAP/AAAD/wAAAf8AAAAHAAAAAwAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAEoAAAAEAAAACAAAAABAAQAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAgAAAAICAAIAA
- AACAAIAAgIAAAMDAwACAgIAAAAD/AAD/AAAA//8A/wAAAP8A/wD//wAA////AAd3B3AAAAAAAAdwAHcA
- AAAP8A//AHAAAA//////AAZgD/d3d3cHd2AP/////wAHcA////////AAD/d3d3d3dwcP////////Bw//
- //////8HD5n/+f/5nwcPn5+fn5//Bw+fn5+fn/8HD5n/+f/5nwcP////////BwAAAAAAAAAAif8AAAA/
- AAAAHwAAABkAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAA==
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WinForms/IE_WinForms.csproj b/samples/CSharp/WinForms/IE_WinForms.csproj
deleted file mode 100644
index 7d232b571a..0000000000
--- a/samples/CSharp/WinForms/IE_WinForms.csproj
+++ /dev/null
@@ -1,233 +0,0 @@
-
-
-
- Local
- 9.0.30729
- 2.0
- {B9914BB3-B886-4B41-B48D-350EBEBEFD1F}
- Debug
- AnyCPU
- App.ico
-
-
- IE_WinForms
-
-
- JScript
- Grid
- IE50
- false
- WinExe
- IE_WinForms
- OnBuildSuccess
-
-
-
-
-
-
- 3.5
- v4.8
-
- publish\
- true
- Disk
- false
- Foreground
- 7
- Days
- false
- false
- true
- 0
- 1.0.0.%2a
- false
- false
- true
-
-
- bin\Debug\
- false
- 285212672
- false
-
-
- DEBUG;TRACE
-
-
- true
- 4096
- false
-
-
- false
- false
- false
- false
- 4
- full
- prompt
-
-
- bin\Release\
- false
- 285212672
- false
-
-
- TRACE
-
-
- false
- 4096
- false
-
-
- true
- false
- false
- false
- 4
- none
- prompt
- Off
- x86
-
-
- true
- ..\win32\$(VCVER)\bind\
- DEBUG;TRACE
- 285212672
- full
- x86
- prompt
- Off
-
-
- ..\win32\$(VCVER)\bin\
- TRACE
- 285212672
- true
-
-
- x86
- Off
- prompt
-
-
- true
- ..\win64\$(VCVER)\bind\
- DEBUG;TRACE
- 285212672
- 4096
- full
- x64
- prompt
-
-
- ..\win64\$(VCVER)\bin\
- TRACE
- 285212672
- true
- 4096
- x64
- Off
- prompt
-
-
-
- System
-
-
-
- System.Data
-
-
- System.Drawing
-
-
-
- System.Windows.Forms
-
-
- System.XML
-
-
-
-
- Form
-
-
- Code
-
-
- Form
-
-
- Form
-
-
- Form
-
-
- Form
-
-
- AboutDialog.cs
- Designer
-
-
- Form1.cs
- Designer
-
-
- Form2.cs
- Designer
-
-
- MaterialDialog.cs
- Designer
-
-
- TransparencyDialog.cs
- Designer
-
-
-
-
-
-
- {969912D9-78E7-4AB8-B4FF-6B52B4F03991}
- OCCTProxy
-
-
-
-
- False
- Microsoft .NET Framework 4 %28x86 and x64%29
- true
-
-
- False
- .NET Framework 3.5 SP1 Client Profile
- false
-
-
- False
- .NET Framework 3.5 SP1
- false
-
-
- False
- Windows Installer 3.1
- true
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WinForms/MaterialDialog.cs b/samples/CSharp/WinForms/MaterialDialog.cs
deleted file mode 100644
index 7afbe47e6f..0000000000
--- a/samples/CSharp/WinForms/MaterialDialog.cs
+++ /dev/null
@@ -1,248 +0,0 @@
-using System;
-using System.Drawing;
-using System.Collections;
-using System.ComponentModel;
-using System.Windows.Forms;
-
-namespace IE_WinForms
-{
- ///
- /// Summary description for MaterialDialog.
- ///
- public class MaterialDialog : System.Windows.Forms.Form
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.Container components = null;
-
- public MaterialDialog()
- {
- //
- // Required for Windows Form Designer support
- //
- InitializeComponent();
-
- //
- // TODO: Add any constructor code after InitializeComponent call
- //
- this.myView = null;
- }
-
- ///
- /// Clean up any resources being used.
- ///
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MaterialDialog));
- this.BTN_PLASTER = new System.Windows.Forms.Button();
- this.BTN_BRASS = new System.Windows.Forms.Button();
- this.BTN_BRONZE = new System.Windows.Forms.Button();
- this.BTN_COPPER = new System.Windows.Forms.Button();
- this.BTN_GOLD = new System.Windows.Forms.Button();
- this.BTN_PEWTER = new System.Windows.Forms.Button();
- this.BTN_PLASTIC = new System.Windows.Forms.Button();
- this.BTN_SILVER = new System.Windows.Forms.Button();
- this.SuspendLayout();
- //
- // BTN_PLASTER
- //
- this.BTN_PLASTER.Location = new System.Drawing.Point(16, 8);
- this.BTN_PLASTER.Name = "BTN_PLASTER";
- this.BTN_PLASTER.Size = new System.Drawing.Size(80, 24);
- this.BTN_PLASTER.TabIndex = 0;
- this.BTN_PLASTER.Text = "Plaster";
- this.BTN_PLASTER.Click += new System.EventHandler(this.button1_Click);
- //
- // BTN_BRASS
- //
- this.BTN_BRASS.Location = new System.Drawing.Point(16, 40);
- this.BTN_BRASS.Name = "BTN_BRASS";
- this.BTN_BRASS.Size = new System.Drawing.Size(80, 24);
- this.BTN_BRASS.TabIndex = 1;
- this.BTN_BRASS.Text = "Brass";
- this.BTN_BRASS.Click += new System.EventHandler(this.BTN_BRASS_Click);
- //
- // BTN_BRONZE
- //
- this.BTN_BRONZE.Location = new System.Drawing.Point(16, 72);
- this.BTN_BRONZE.Name = "BTN_BRONZE";
- this.BTN_BRONZE.Size = new System.Drawing.Size(80, 24);
- this.BTN_BRONZE.TabIndex = 2;
- this.BTN_BRONZE.Text = "Bronze";
- this.BTN_BRONZE.Click += new System.EventHandler(this.BTN_BRONZE_Click);
- //
- // BTN_COPPER
- //
- this.BTN_COPPER.Location = new System.Drawing.Point(16, 104);
- this.BTN_COPPER.Name = "BTN_COPPER";
- this.BTN_COPPER.Size = new System.Drawing.Size(80, 24);
- this.BTN_COPPER.TabIndex = 3;
- this.BTN_COPPER.Text = "Copper";
- this.BTN_COPPER.Click += new System.EventHandler(this.BTN_COPPER_Click);
- //
- // BTN_GOLD
- //
- this.BTN_GOLD.Location = new System.Drawing.Point(16, 136);
- this.BTN_GOLD.Name = "BTN_GOLD";
- this.BTN_GOLD.Size = new System.Drawing.Size(80, 24);
- this.BTN_GOLD.TabIndex = 4;
- this.BTN_GOLD.Text = "Gold";
- this.BTN_GOLD.Click += new System.EventHandler(this.BTN_GOLD_Click);
- //
- // BTN_PEWTER
- //
- this.BTN_PEWTER.Location = new System.Drawing.Point(16, 168);
- this.BTN_PEWTER.Name = "BTN_PEWTER";
- this.BTN_PEWTER.Size = new System.Drawing.Size(80, 24);
- this.BTN_PEWTER.TabIndex = 5;
- this.BTN_PEWTER.Text = "Pewter";
- this.BTN_PEWTER.Click += new System.EventHandler(this.BTN_PEWTER_Click);
- //
- // BTN_PLASTIC
- //
- this.BTN_PLASTIC.Location = new System.Drawing.Point(16, 200);
- this.BTN_PLASTIC.Name = "BTN_PLASTIC";
- this.BTN_PLASTIC.Size = new System.Drawing.Size(80, 24);
- this.BTN_PLASTIC.TabIndex = 6;
- this.BTN_PLASTIC.Text = "Plastic";
- this.BTN_PLASTIC.Click += new System.EventHandler(this.BTN_PLASTIC_Click);
- //
- // BTN_SILVER
- //
- this.BTN_SILVER.Location = new System.Drawing.Point(16, 232);
- this.BTN_SILVER.Name = "BTN_SILVER";
- this.BTN_SILVER.Size = new System.Drawing.Size(80, 24);
- this.BTN_SILVER.TabIndex = 7;
- this.BTN_SILVER.Text = "Silver";
- this.BTN_SILVER.Click += new System.EventHandler(this.BTN_SILVER_Click);
- //
- // MaterialDialog
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(112, 273);
- this.Controls.Add(this.BTN_SILVER);
- this.Controls.Add(this.BTN_PLASTIC);
- this.Controls.Add(this.BTN_PEWTER);
- this.Controls.Add(this.BTN_GOLD);
- this.Controls.Add(this.BTN_COPPER);
- this.Controls.Add(this.BTN_BRONZE);
- this.Controls.Add(this.BTN_BRASS);
- this.Controls.Add(this.BTN_PLASTER);
- this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "MaterialDialog";
- this.Text = "MaterialDialog";
- this.ResumeLayout(false);
-
- }
- #endregion
-
- private System.Windows.Forms.Button BTN_PLASTER;
- private System.Windows.Forms.Button BTN_BRASS;
- private System.Windows.Forms.Button BTN_BRONZE;
- private System.Windows.Forms.Button BTN_COPPER;
- private System.Windows.Forms.Button BTN_GOLD;
- private System.Windows.Forms.Button BTN_PEWTER;
- private System.Windows.Forms.Button BTN_PLASTIC;
- private System.Windows.Forms.Button BTN_SILVER;
-
- private int myMaterial;
- private OCCTProxy myView;
-
- private void button1_Click(object sender, System.EventArgs e)
- {
- this.myMaterial = 5;
- ChangeMaterial();
- }
-
- private void BTN_BRASS_Click(object sender, System.EventArgs e)
- {
- this.myMaterial = 0;
- ChangeMaterial();
- }
-
- private void BTN_BRONZE_Click(object sender, System.EventArgs e)
- {
- this.myMaterial = 1;
- ChangeMaterial();
- }
-
- private void BTN_COPPER_Click(object sender, System.EventArgs e)
- {
- this.myMaterial = 2;
- ChangeMaterial();
- }
-
- private void BTN_GOLD_Click(object sender, System.EventArgs e)
- {
- this.myMaterial = 3;
- ChangeMaterial();
- }
-
- private void BTN_PEWTER_Click(object sender, System.EventArgs e)
- {
- this.myMaterial = 4;
- ChangeMaterial();
- }
-
- private void BTN_PLASTIC_Click(object sender, System.EventArgs e)
- {
- this.myMaterial = 6;
- ChangeMaterial();
- }
-
- private void BTN_SILVER_Click(object sender, System.EventArgs e)
- {
- this.myMaterial = 7;
- ChangeMaterial();
- }
-
- public int Material
- {
- get
- {
- return this.myMaterial;
- }
- set
- {
- this.myMaterial = value;
- }
- }
-
- public void ChangeMaterial()
- {
- if (myView == null)
- return;
- myView.SetMaterial(this.myMaterial);
-
- }
-
- public OCCTProxy View
- {
- set
- {
- this.myView = value;
- }
- }
-
- }
-}
diff --git a/samples/CSharp/WinForms/MaterialDialog.resx b/samples/CSharp/WinForms/MaterialDialog.resx
deleted file mode 100644
index 8a9f5cf8f7..0000000000
--- a/samples/CSharp/WinForms/MaterialDialog.resx
+++ /dev/null
@@ -1,269 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 1.3
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- (Default)
-
-
- False
-
-
- False
-
-
- 8, 8
-
-
- MaterialDialog
-
-
- True
-
-
- 80
-
-
- True
-
-
- Private
-
-
-
- AAABAAEAMDAAAAAAAACoDgAAFgAAACgAAAAwAAAAYAAAAAEACAAAAAAAgAoAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAMDcwADwyqYABAQEAAgICAAMDAwAERERABYW
- FgAcHBwAIiIiACkpKQBVVVUATU1NAEJCQgA5OTkAgHz/AFBQ/wCTANYA/+zMAMbW7wDW5+cAkKmtAAAA
- MwAAAGYAAACZAAAAzAAAMwAAADMzAAAzZgAAM5kAADPMAAAz/wAAZgAAAGYzAABmZgAAZpkAAGbMAABm
- /wAAmQAAAJkzAACZZgAAmZkAAJnMAACZ/wAAzAAAAMwzAADMZgAAzJkAAMzMAADM/wAA/2YAAP+ZAAD/
- zAAzAAAAMwAzADMAZgAzAJkAMwDMADMA/wAzMwAAMzMzADMzZgAzM5kAMzPMADMz/wAzZgAAM2YzADNm
- ZgAzZpkAM2bMADNm/wAzmQAAM5kzADOZZgAzmZkAM5nMADOZ/wAzzAAAM8wzADPMZgAzzJkAM8zMADPM
- /wAz/zMAM/9mADP/mQAz/8wAM///AGYAAABmADMAZgBmAGYAmQBmAMwAZgD/AGYzAABmMzMAZjNmAGYz
- mQBmM8wAZjP/AGZmAABmZjMAZmZmAGZmmQBmZswAZpkAAGaZMwBmmWYAZpmZAGaZzABmmf8AZswAAGbM
- MwBmzJkAZszMAGbM/wBm/wAAZv8zAGb/mQBm/8wAzAD/AP8AzACZmQAAmTOZAJkAmQCZAMwAmQAAAJkz
- MwCZAGYAmTPMAJkA/wCZZgAAmWYzAJkzZgCZZpkAmWbMAJkz/wCZmTMAmZlmAJmZmQCZmcwAmZn/AJnM
- AACZzDMAZsxmAJnMmQCZzMwAmcz/AJn/AACZ/zMAmcxmAJn/mQCZ/8wAmf//AMwAAACZADMAzABmAMwA
- mQDMAMwAmTMAAMwzMwDMM2YAzDOZAMwzzADMM/8AzGYAAMxmMwCZZmYAzGaZAMxmzACZZv8AzJkAAMyZ
- MwDMmWYAzJmZAMyZzADMmf8AzMwAAMzMMwDMzGYAzMyZAMzMzADMzP8AzP8AAMz/MwCZ/2YAzP+ZAMz/
- zADM//8AzAAzAP8AZgD/AJkAzDMAAP8zMwD/M2YA/zOZAP8zzAD/M/8A/2YAAP9mMwDMZmYA/2aZAP9m
- zADMZv8A/5kAAP+ZMwD/mWYA/5mZAP+ZzAD/mf8A/8wAAP/MMwD/zGYA/8yZAP/MzAD/zP8A//8zAMz/
- ZgD//5kA///MAGZm/wBm/2YAZv//AP9mZgD/Zv8A//9mACEApQBfX18Ad3d3AIaGhgCWlpYAy8vLALKy
- sgDX19cA3d3dAOPj4wDq6uoA8fHxAPj4+ADw+/8ApKCgAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP//
- AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMT
- ExMTExMTEyIiQiI8HTyCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwDODg4Nzc4MQMdAAAA
- AADDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOw4ODgyOCQAAAAdAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAODIyMSIAHewAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAA7DI3MSIdCwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAADEyMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAs4JAALAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwxJAAhAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4IgC8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAJAxJB0LAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- ALwLCx0dIh0dCwATAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACx0dAB0dIiIiIiId
- CxMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvAsdAB0dIiQkAyQkIiIiHSIAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAIgMxMVhZmZqZAyQiHR0AAAAAkAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAvAsdISIDMThZWVmgvaCZWVIkIh0AAB0dIh0hCwALCwALtgAAAAAAAAAAAAAAAOwAAB0iMTEx
- ODhYWZrDw8Ofn1hSJCIAHQAdACIAHSIkAwsdOAAAAADeExMTCwsLIiIkMTEyODg3MllZmprDw8PDwllS
- MSQdHQAAAB0AIiQkAAAAvDi8AAAxAzExMTExMTI4Nzg4ODc4ODhZXpnDw8PDml1YNwMkIh0AAB0hIiQA
- AAAAACIAAAA4ODc4Nzg4ODg4ODg4ODg4ODhZWV6avb2gmllZODcxJCIAAAAdIgMLAAAAACIAAACGE0+G
- T4bs7Oy8vLy8vAAxODg4ODg4NzIyMSQdHQAAvADsCwAiJDExAAAAwjjsAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAALMSQAAAAAAAAAAAAAAAAAEyI4MQsiOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALMSQAAAAA
- AAAAAAAAAAAAAAC8CwsAEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8AAsAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////AAD///////8AAP///////wAA////////
- AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
- /////wAA//8AAH//AAD//wAAf/8AAP//4AP//wAA///4B///AAD///gP//8AAP///B///wAA///8H///
- AAD///wf//8AAP///h///wAA///8H///AAD//+AD//8AAP//wAD//wAA//4AAD//AAD//AAAB/8AAP/w
- AAAAAwAA/8AAAAABAADAAAAAADgAAMAAAAAAPAAAwAAAAAA8AADAAAAAIDgAAP///j/+AQAA///+P/+D
- AAD///4///8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
- /////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WinForms/TransparencyDialog.cs b/samples/CSharp/WinForms/TransparencyDialog.cs
deleted file mode 100644
index 6a61ae64db..0000000000
--- a/samples/CSharp/WinForms/TransparencyDialog.cs
+++ /dev/null
@@ -1,108 +0,0 @@
-using System;
-using System.Drawing;
-using System.Collections;
-using System.ComponentModel;
-using System.Windows.Forms;
-
-namespace IE_WinForms
-{
- ///
- /// Summary description for TransparencyDialog.
- ///
- public class TransparencyDialog : System.Windows.Forms.Form
- {
- private System.Windows.Forms.NumericUpDown MyTransparency;
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.Container components = null;
- private OCCTProxy myView;
-
- public TransparencyDialog()
- {
- //
- // Required for Windows Form Designer support
- //
- InitializeComponent();
-
- //
- // TODO: Add any constructor code after InitializeComponent call
- //
- myView = null;
- }
-
- ///
- /// Clean up any resources being used.
- ///
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(TransparencyDialog));
- this.MyTransparency = new System.Windows.Forms.NumericUpDown();
- ((System.ComponentModel.ISupportInitialize)(this.MyTransparency)).BeginInit();
- this.SuspendLayout();
- //
- // MyTransparency
- //
- this.MyTransparency.Location = new System.Drawing.Point(16, 16);
- this.MyTransparency.Maximum = new System.Decimal(new int[] {
- 10,
- 0,
- 0,
- 0});
- this.MyTransparency.Name = "MyTransparency";
- this.MyTransparency.Size = new System.Drawing.Size(96, 20);
- this.MyTransparency.TabIndex = 0;
- this.MyTransparency.ValueChanged += new System.EventHandler(this.MyTransparency_ValueChanged);
- //
- // TransparencyDialog
- //
- this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(128, 53);
- this.Controls.Add(this.MyTransparency);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "TransparencyDialog";
- this.Text = "TransparencyDialog";
- ((System.ComponentModel.ISupportInitialize)(this.MyTransparency)).EndInit();
- this.ResumeLayout(false);
-
- }
- #endregion
-
- private void MyTransparency_ValueChanged(object sender, System.EventArgs e)
- {
- if (this.myView == null)
- return;
- int transp = (int)this.MyTransparency.Value;
- this.myView.SetTransparency(transp);
- }
-
- public OCCTProxy View
- {
- set
- {
- this.myView = value;
- }
- }
-
- }
-}
diff --git a/samples/CSharp/WinForms/TransparencyDialog.resx b/samples/CSharp/WinForms/TransparencyDialog.resx
deleted file mode 100644
index 688fd72e80..0000000000
--- a/samples/CSharp/WinForms/TransparencyDialog.resx
+++ /dev/null
@@ -1,206 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 1.3
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- (Default)
-
-
- False
-
-
- False
-
-
- 8, 8
-
-
- True
-
-
- 80
-
-
- True
-
-
- Private
-
-
- TransparencyDialog
-
-
-
- AAABAAEAMDAAAAAAAACoDgAAFgAAACgAAAAwAAAAYAAAAAEACAAAAAAAgAoAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAMDcwADwyqYABAQEAAgICAAMDAwAERERABYW
- FgAcHBwAIiIiACkpKQBVVVUATU1NAEJCQgA5OTkAgHz/AFBQ/wCTANYA/+zMAMbW7wDW5+cAkKmtAAAA
- MwAAAGYAAACZAAAAzAAAMwAAADMzAAAzZgAAM5kAADPMAAAz/wAAZgAAAGYzAABmZgAAZpkAAGbMAABm
- /wAAmQAAAJkzAACZZgAAmZkAAJnMAACZ/wAAzAAAAMwzAADMZgAAzJkAAMzMAADM/wAA/2YAAP+ZAAD/
- zAAzAAAAMwAzADMAZgAzAJkAMwDMADMA/wAzMwAAMzMzADMzZgAzM5kAMzPMADMz/wAzZgAAM2YzADNm
- ZgAzZpkAM2bMADNm/wAzmQAAM5kzADOZZgAzmZkAM5nMADOZ/wAzzAAAM8wzADPMZgAzzJkAM8zMADPM
- /wAz/zMAM/9mADP/mQAz/8wAM///AGYAAABmADMAZgBmAGYAmQBmAMwAZgD/AGYzAABmMzMAZjNmAGYz
- mQBmM8wAZjP/AGZmAABmZjMAZmZmAGZmmQBmZswAZpkAAGaZMwBmmWYAZpmZAGaZzABmmf8AZswAAGbM
- MwBmzJkAZszMAGbM/wBm/wAAZv8zAGb/mQBm/8wAzAD/AP8AzACZmQAAmTOZAJkAmQCZAMwAmQAAAJkz
- MwCZAGYAmTPMAJkA/wCZZgAAmWYzAJkzZgCZZpkAmWbMAJkz/wCZmTMAmZlmAJmZmQCZmcwAmZn/AJnM
- AACZzDMAZsxmAJnMmQCZzMwAmcz/AJn/AACZ/zMAmcxmAJn/mQCZ/8wAmf//AMwAAACZADMAzABmAMwA
- mQDMAMwAmTMAAMwzMwDMM2YAzDOZAMwzzADMM/8AzGYAAMxmMwCZZmYAzGaZAMxmzACZZv8AzJkAAMyZ
- MwDMmWYAzJmZAMyZzADMmf8AzMwAAMzMMwDMzGYAzMyZAMzMzADMzP8AzP8AAMz/MwCZ/2YAzP+ZAMz/
- zADM//8AzAAzAP8AZgD/AJkAzDMAAP8zMwD/M2YA/zOZAP8zzAD/M/8A/2YAAP9mMwDMZmYA/2aZAP9m
- zADMZv8A/5kAAP+ZMwD/mWYA/5mZAP+ZzAD/mf8A/8wAAP/MMwD/zGYA/8yZAP/MzAD/zP8A//8zAMz/
- ZgD//5kA///MAGZm/wBm/2YAZv//AP9mZgD/Zv8A//9mACEApQBfX18Ad3d3AIaGhgCWlpYAy8vLALKy
- sgDX19cA3d3dAOPj4wDq6uoA8fHxAPj4+ADw+/8ApKCgAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP//
- AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABMT
- ExMTExMTEyIiQiI8HTyCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwDODg4Nzc4MQMdAAAA
- AADDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOw4ODgyOCQAAAAdAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAODIyMSIAHewAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAA7DI3MSIdCwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAADEyMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAs4JAALAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwxJAAhAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4IgC8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAJAxJB0LAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- ALwLCx0dIh0dCwATAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACx0dAB0dIiIiIiId
- CxMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAvAsdAB0dIiQkAyQkIiIiHSIAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAIgMxMVhZmZqZAyQiHR0AAAAAkAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAvAsdISIDMThZWVmgvaCZWVIkIh0AAB0dIh0hCwALCwALtgAAAAAAAAAAAAAAAOwAAB0iMTEx
- ODhYWZrDw8Ofn1hSJCIAHQAdACIAHSIkAwsdOAAAAADeExMTCwsLIiIkMTEyODg3MllZmprDw8PDwllS
- MSQdHQAAAB0AIiQkAAAAvDi8AAAxAzExMTExMTI4Nzg4ODc4ODhZXpnDw8PDml1YNwMkIh0AAB0hIiQA
- AAAAACIAAAA4ODc4Nzg4ODg4ODg4ODg4ODhZWV6avb2gmllZODcxJCIAAAAdIgMLAAAAACIAAACGE0+G
- T4bs7Oy8vLy8vAAxODg4ODg4NzIyMSQdHQAAvADsCwAiJDExAAAAwjjsAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAALMSQAAAAAAAAAAAAAAAAAEyI4MQsiOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALMSQAAAAA
- AAAAAAAAAAAAAAC8CwsAEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8AAsAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
- AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////AAD///////8AAP///////wAA////////
- AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
- /////wAA//8AAH//AAD//wAAf/8AAP//4AP//wAA///4B///AAD///gP//8AAP///B///wAA///8H///
- AAD///wf//8AAP///h///wAA///8H///AAD//+AD//8AAP//wAD//wAA//4AAD//AAD//AAAB/8AAP/w
- AAAAAwAA/8AAAAABAADAAAAAADgAAMAAAAAAPAAAwAAAAAA8AADAAAAAIDgAAP///j/+AQAA///+P/+D
- AAD///4///8AAP///////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP//
- /////wAA////////AAD///////8AAP///////wAA////////AAD///////8AAP///////wAA
-
-
-
\ No newline at end of file
diff --git a/samples/CSharp/WinForms/app.config b/samples/CSharp/WinForms/app.config
deleted file mode 100644
index a7c484feaa..0000000000
--- a/samples/CSharp/WinForms/app.config
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/CSharp/env.bat b/samples/CSharp/env.bat
deleted file mode 100644
index dafb10bd86..0000000000
--- a/samples/CSharp/env.bat
+++ /dev/null
@@ -1,11 +0,0 @@
-call "%~dp0..\..\env.bat" %1 %2 %3
-
-set "BIN_DIR=win%ARCH%\%VCVER%\bind"
-set "LIB_DIR=win%ARCH%\%VCVER%\libd"
-
-if ["%CASDEB%"] == [""] (
- set "BIN_DIR=win%ARCH%\%VCVER%\bin"
- set "LIB_DIR=win%ARCH%\%VCVER%\lib"
-)
-
-set "PATH=%~dp0%LIB_DIR%;%~dp0%BIN_DIR%;%PATH%"
\ No newline at end of file
diff --git a/samples/CSharp/images/samples_c__ie.png b/samples/CSharp/images/samples_c__ie.png
deleted file mode 100644
index 3cfc12e82c..0000000000
Binary files a/samples/CSharp/images/samples_c__ie.png and /dev/null differ
diff --git a/samples/CSharp/msvc.bat b/samples/CSharp/msvc.bat
deleted file mode 100644
index 290a98109e..0000000000
--- a/samples/CSharp/msvc.bat
+++ /dev/null
@@ -1,19 +0,0 @@
-@echo off
-
-Setlocal EnableDelayedExpansion
-
-rem Setup environment
-call "%~dp0env.bat" %1 %2 %3
-
-rem Define path to project file
-set "PRJFILE=%~dp0\CSharp.sln"
-
-rem Launch Visual Studio - either professional (devenv) or Express, as available
-if exist "%DevEnvDir%\devenv.exe" (
- start "" "%DevEnvDir%\devenv.exe" "%PRJFILE%"
-) else if exist "%DevEnvDir%\%VisualStudioExpressName%.exe" (
- start "" "%DevEnvDir%\%VisualStudioExpressName%.exe" "%PRJFILE%"
-) else (
- echo Error: Could not find MS Visual Studio ^(%VCVER%^)
- echo Check relevant environment variable ^(e.g. VS100COMNTOOLS for vc10^)
-)
diff --git a/samples/CSharp/msvc_D3D.bat b/samples/CSharp/msvc_D3D.bat
deleted file mode 100644
index 9384467d67..0000000000
--- a/samples/CSharp/msvc_D3D.bat
+++ /dev/null
@@ -1,30 +0,0 @@
-@echo off
-
-Setlocal EnableDelayedExpansion
-
-rem Setup environment
-call "%~dp0env.bat" %1 %2 %3
-
-if NOT DEFINED DXSDK_DIR (
- if /I "%VCVER%" == "vc9" (
- echo ERROR: DirectX SDK is required in order to build the sample but it is not found in your system. Please install DirectX SDK and retry.
- exit /B
- )
- if /I "%VCVER%" == "vc10" (
- echo ERROR: DirectX SDK is required in order to build the sample but it is not found in your system. Please install DirectX SDK and retry.
- exit /B
- )
-)
-
-rem Define path to project file
-set "PRJFILE=%~dp0\CSharp_D3D.sln"
-
-rem Launch Visual Studio - either professional (devenv) or Express, as available
-if exist "%DevEnvDir%\devenv.exe" (
- start "" "%DevEnvDir%\devenv.exe" "%PRJFILE%"
-) else if exist "%DevEnvDir%\%VisualStudioExpressName%.exe" (
- start "" "%DevEnvDir%\%VisualStudioExpressName%.exe" "%PRJFILE%"
-) else (
- echo Error: Could not find MS Visual Studio ^(%VCVER%^)
- echo Check relevant environment variable ^(e.g. VS100COMNTOOLS for vc10^)
-)
diff --git a/samples/CSharp/run.bat b/samples/CSharp/run.bat
deleted file mode 100644
index 25c48faa69..0000000000
--- a/samples/CSharp/run.bat
+++ /dev/null
@@ -1,40 +0,0 @@
-@echo off
-
-Setlocal EnableDelayedExpansion
-
-if "%1" == "-h" (
- goto err_bat
-)
-
-if not ["%4"] == [""] (
- set "SampleName=%4"
- call "%~dp0env.bat" %1 %2 %3
-) else if not ["%1"] == [""] (
- set "SampleName=%1"
- call "%~dp0env.bat"
-) else (
- goto err_bat
-)
-
-if not exist "%~dp0%BIN_DIR%\IE_%SampleName%.exe" goto err_exe
-
-"%~dp0%BIN_DIR%\IE_%SampleName%.exe"
-
-goto eof
-
-:err_bat
-echo Possible names of samples: WinForms, WPF_D3D, WPF_WinForms
-echo Launch selected sample as follows:
-echo %~n0.bat [^vc10^|^vc11^|^vc12^|^vc14^] [^win32^|^win64^] [^Release^|^Debug^] [^SampleName^]
-echo or
-echo %~n0.bat [^SampleName^]
-echo Run %~n0.bat -h to get this help
-exit /B
-
-:err_exe
-echo Executable %~dp0%BIN_DIR%\IE_%SampleName%.exe not found.
-echo Check that OCCT and sample are built with the selected configuration:
-echo compiler=%VCVER% platform=win%ARCH% %3
-exit /B
-
-:eof
diff --git a/samples/CSharp/run_winforms.bat b/samples/CSharp/run_winforms.bat
deleted file mode 100644
index 9ea30924b7..0000000000
--- a/samples/CSharp/run_winforms.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-@echo off
-
-call "%~dp0run.bat" WinForms
diff --git a/samples/CSharp/run_wpf.bat b/samples/CSharp/run_wpf.bat
deleted file mode 100644
index 7a09f13843..0000000000
--- a/samples/CSharp/run_wpf.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-@echo off
-
-call "%~dp0run.bat" WPF_WinForms
diff --git a/samples/CSharp/run_wpf_D3D.bat b/samples/CSharp/run_wpf_D3D.bat
deleted file mode 100644
index 9a4d882e0f..0000000000
--- a/samples/CSharp/run_wpf_D3D.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-@echo off
-
-call "%~dp0run.bat" WPF_D3D
diff --git a/samples/glfw/CMakeLists.txt b/samples/glfw/CMakeLists.txt
deleted file mode 100644
index f0328a9f61..0000000000
--- a/samples/glfw/CMakeLists.txt
+++ /dev/null
@@ -1,68 +0,0 @@
-cmake_minimum_required(VERSION 3.2)
-
-project(glfw-occt-demo)
-
-set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/adm/cmake" ${CMAKE_MODULE_PATH})
-
-set(APP_VERSION_MAJOR 1)
-set(APP_VERSION_MINOR 0)
-set(APP_TARGET glfwocct)
-
-INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR})
-file(GLOB SOURCES
- *.h
- *.cpp
-)
-source_group ("Headers" FILES
- GlfwOcctView.h
- GlfwOcctWindow.h)
-source_group ("Sources" FILES
- GlfwOcctView.cpp
- GlfwOcctWindow.cpp
- main.cpp)
-
-# OpenGL
-find_package(OpenGL REQUIRED)
-
-# Open CASCADE Technology
-find_package (OpenCASCADE REQUIRED)
-if (NOT OpenCASCADE_FOUND)
- message (FATAL_ERROR "could not find OpenCASCADE, please set OpenCASCADE_DIR variable" )
-else()
- message (STATUS "Using OpenCASCADE from \"${OpenCASCADE_INSTALL_PREFIX}\"" )
- message (STATUS "OpenCASCADE_INCLUDE_DIR=${OpenCASCADE_INCLUDE_DIR}")
- message (STATUS "OpenCASCADE_LIBRARY_DIR=${OpenCASCADE_LIBRARY_DIR}")
- INCLUDE_DIRECTORIES(${OpenCASCADE_INCLUDE_DIR})
-endif()
-
-SET(OpenCASCADE_LIBS
- TKernel
- TKService
- TKV3d
- TKOpenGl
- TKBRep
- TKGeomBase
- TKGeomAlgo
- TKG3d
- TKG2d
- TKTopAlgo
- TKPrim
-)
-
-# glfw
-find_package(glfw3 REQUIRED)
-if (glfw3_FOUND)
- message (STATUS "Using glfw3 ${glfw3_VERSION}" )
- INCLUDE_DIRECTORIES(${GLFW_INCLUDE_DIRS})
- LINK_DIRECTORIES(${GLFW_LIBRARY_DIRS})
-else()
- message (STATUS "glfw3 is not found." )
-endif()
-
-add_executable(${APP_TARGET} ${SOURCES})
-target_link_libraries(
- ${APP_TARGET}
- ${OpenCASCADE_LIBS}
- glfw
- ${OPENGL_LIBRARIES}
-)
diff --git a/samples/glfw/GlfwOcctView.cpp b/samples/glfw/GlfwOcctView.cpp
deleted file mode 100644
index 36108497bf..0000000000
--- a/samples/glfw/GlfwOcctView.cpp
+++ /dev/null
@@ -1,313 +0,0 @@
-// Copyright (c) 2019 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#include "GlfwOcctView.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#include
-
-#include
-
-namespace
-{
- //! Convert GLFW mouse button into Aspect_VKeyMouse.
- static Aspect_VKeyMouse mouseButtonFromGlfw (int theButton)
- {
- switch (theButton)
- {
- case GLFW_MOUSE_BUTTON_LEFT: return Aspect_VKeyMouse_LeftButton;
- case GLFW_MOUSE_BUTTON_RIGHT: return Aspect_VKeyMouse_RightButton;
- case GLFW_MOUSE_BUTTON_MIDDLE: return Aspect_VKeyMouse_MiddleButton;
- }
- return Aspect_VKeyMouse_NONE;
- }
-
- //! Convert GLFW key modifiers into Aspect_VKeyFlags.
- static Aspect_VKeyFlags keyFlagsFromGlfw (int theFlags)
- {
- Aspect_VKeyFlags aFlags = Aspect_VKeyFlags_NONE;
- if ((theFlags & GLFW_MOD_SHIFT) != 0)
- {
- aFlags |= Aspect_VKeyFlags_SHIFT;
- }
- if ((theFlags & GLFW_MOD_CONTROL) != 0)
- {
- aFlags |= Aspect_VKeyFlags_CTRL;
- }
- if ((theFlags & GLFW_MOD_ALT) != 0)
- {
- aFlags |= Aspect_VKeyFlags_ALT;
- }
- if ((theFlags & GLFW_MOD_SUPER) != 0)
- {
- aFlags |= Aspect_VKeyFlags_META;
- }
- return aFlags;
- }
-}
-
-// ================================================================
-// Function : GlfwOcctView
-// Purpose :
-// ================================================================
-GlfwOcctView::GlfwOcctView()
-{
-}
-
-// ================================================================
-// Function : ~GlfwOcctView
-// Purpose :
-// ================================================================
-GlfwOcctView::~GlfwOcctView()
-{
-}
-
-// ================================================================
-// Function : toView
-// Purpose :
-// ================================================================
-GlfwOcctView* GlfwOcctView::toView (GLFWwindow* theWin)
-{
- return static_cast(glfwGetWindowUserPointer (theWin));
-}
-
-// ================================================================
-// Function : errorCallback
-// Purpose :
-// ================================================================
-void GlfwOcctView::errorCallback (int theError, const char* theDescription)
-{
- Message::DefaultMessenger()->Send (TCollection_AsciiString ("Error") + theError + ": " + theDescription, Message_Fail);
-}
-
-// ================================================================
-// Function : run
-// Purpose :
-// ================================================================
-void GlfwOcctView::run()
-{
- initWindow (800, 600, "glfw occt");
- initViewer();
- initDemoScene();
- if (myView.IsNull())
- {
- return;
- }
-
- myView->MustBeResized();
- myOcctWindow->Map();
- mainloop();
- cleanup();
-}
-
-// ================================================================
-// Function : initWindow
-// Purpose :
-// ================================================================
-void GlfwOcctView::initWindow (int theWidth, int theHeight, const char* theTitle)
-{
- glfwSetErrorCallback (GlfwOcctView::errorCallback);
- glfwInit();
- const bool toAskCoreProfile = true;
- if (toAskCoreProfile)
- {
- glfwWindowHint (GLFW_CONTEXT_VERSION_MAJOR, 3);
- glfwWindowHint (GLFW_CONTEXT_VERSION_MINOR, 3);
-#if defined (__APPLE__)
- glfwWindowHint (GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
-#endif
- glfwWindowHint (GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
- }
- myOcctWindow = new GlfwOcctWindow (theWidth, theHeight, theTitle);
- glfwSetWindowUserPointer (myOcctWindow->getGlfwWindow(), this);
- // window callback
- glfwSetWindowSizeCallback (myOcctWindow->getGlfwWindow(), GlfwOcctView::onResizeCallback);
- glfwSetFramebufferSizeCallback (myOcctWindow->getGlfwWindow(), GlfwOcctView::onFBResizeCallback);
- // mouse callback
- glfwSetScrollCallback (myOcctWindow->getGlfwWindow(), GlfwOcctView::onMouseScrollCallback);
- glfwSetMouseButtonCallback (myOcctWindow->getGlfwWindow(), GlfwOcctView::onMouseButtonCallback);
- glfwSetCursorPosCallback (myOcctWindow->getGlfwWindow(), GlfwOcctView::onMouseMoveCallback);
-}
-
-// ================================================================
-// Function : initViewer
-// Purpose :
-// ================================================================
-void GlfwOcctView::initViewer()
-{
- if (myOcctWindow.IsNull()
- || myOcctWindow->getGlfwWindow() == nullptr)
- {
- return;
- }
-
- Handle(OpenGl_GraphicDriver) aGraphicDriver = new OpenGl_GraphicDriver (myOcctWindow->GetDisplay(), false);
- Handle(V3d_Viewer) aViewer = new V3d_Viewer (aGraphicDriver);
- aViewer->SetDefaultLights();
- aViewer->SetLightOn();
- aViewer->SetDefaultTypeOfView (V3d_PERSPECTIVE);
- aViewer->ActivateGrid (Aspect_GT_Rectangular, Aspect_GDM_Lines);
- myView = aViewer->CreateView();
- myView->SetImmediateUpdate (false);
- myView->SetWindow (myOcctWindow, myOcctWindow->NativeGlContext());
- myView->ChangeRenderingParams().ToShowStats = true;
- myContext = new AIS_InteractiveContext (aViewer);
-}
-
-// ================================================================
-// Function : initDemoScene
-// Purpose :
-// ================================================================
-void GlfwOcctView::initDemoScene()
-{
- if (myContext.IsNull())
- {
- return;
- }
-
- myView->TriedronDisplay (Aspect_TOTP_LEFT_LOWER, Quantity_NOC_GOLD, 0.08, V3d_WIREFRAME);
-
- gp_Ax2 anAxis;
- anAxis.SetLocation (gp_Pnt (0.0, 0.0, 0.0));
- Handle(AIS_Shape) aBox = new AIS_Shape (BRepPrimAPI_MakeBox (anAxis, 50, 50, 50).Shape());
- myContext->Display (aBox, AIS_Shaded, 0, false);
- anAxis.SetLocation (gp_Pnt (25.0, 125.0, 0.0));
- Handle(AIS_Shape) aCone = new AIS_Shape (BRepPrimAPI_MakeCone (anAxis, 25, 0, 50).Shape());
- myContext->Display (aCone, AIS_Shaded, 0, false);
-
- TCollection_AsciiString aGlInfo;
- {
- TColStd_IndexedDataMapOfStringString aRendInfo;
- myView->DiagnosticInformation (aRendInfo, Graphic3d_DiagnosticInfo_Basic);
- for (TColStd_IndexedDataMapOfStringString::Iterator aValueIter (aRendInfo); aValueIter.More(); aValueIter.Next())
- {
- if (!aGlInfo.IsEmpty()) { aGlInfo += "\n"; }
- aGlInfo += TCollection_AsciiString(" ") + aValueIter.Key() + ": " + aValueIter.Value();
- }
- }
- Message::DefaultMessenger()->Send (TCollection_AsciiString("OpenGL info:\n") + aGlInfo, Message_Info);
-}
-
-// ================================================================
-// Function : mainloop
-// Purpose :
-// ================================================================
-void GlfwOcctView::mainloop()
-{
- while (!glfwWindowShouldClose (myOcctWindow->getGlfwWindow()))
- {
- // glfwPollEvents() for continuous rendering (immediate return if there are no new events)
- // and glfwWaitEvents() for rendering on demand (something actually happened in the viewer)
- //glfwPollEvents();
- glfwWaitEvents();
- if (!myView.IsNull())
- {
- FlushViewEvents (myContext, myView, true);
- }
- }
-}
-
-// ================================================================
-// Function : cleanup
-// Purpose :
-// ================================================================
-void GlfwOcctView::cleanup()
-{
- if (!myView.IsNull())
- {
- myView->Remove();
- }
- if (!myOcctWindow.IsNull())
- {
- myOcctWindow->Close();
- }
- glfwTerminate();
-}
-
-// ================================================================
-// Function : onResize
-// Purpose :
-// ================================================================
-void GlfwOcctView::onResize (int theWidth, int theHeight)
-{
- if (theWidth != 0
- && theHeight != 0
- && !myView.IsNull())
- {
- myView->Window()->DoResize();
- myView->MustBeResized();
- myView->Invalidate();
- myView->Redraw();
- }
-}
-
-// ================================================================
-// Function : onMouseScroll
-// Purpose :
-// ================================================================
-void GlfwOcctView::onMouseScroll (double theOffsetX, double theOffsetY)
-{
- if (!myView.IsNull())
- {
- UpdateZoom (Aspect_ScrollDelta (myOcctWindow->CursorPosition(), int(theOffsetY * 8.0)));
- }
-}
-
-// ================================================================
-// Function : onMouseButton
-// Purpose :
-// ================================================================
-void GlfwOcctView::onMouseButton (int theButton, int theAction, int theMods)
-{
- if (myView.IsNull()) { return; }
-
- const Graphic3d_Vec2i aPos = myOcctWindow->CursorPosition();
- if (theAction == GLFW_PRESS)
- {
- PressMouseButton (aPos, mouseButtonFromGlfw (theButton), keyFlagsFromGlfw (theMods), false);
- }
- else
- {
- ReleaseMouseButton (aPos, mouseButtonFromGlfw (theButton), keyFlagsFromGlfw (theMods), false);
- }
-}
-
-// ================================================================
-// Function : onMouseMove
-// Purpose :
-// ================================================================
-void GlfwOcctView::onMouseMove (int thePosX, int thePosY)
-{
- const Graphic3d_Vec2i aNewPos (thePosX, thePosY);
- if (!myView.IsNull())
- {
- UpdateMousePosition (aNewPos, PressedMouseButtons(), LastMouseFlags(), false);
- }
-}
diff --git a/samples/glfw/GlfwOcctView.h b/samples/glfw/GlfwOcctView.h
deleted file mode 100644
index 2cb292b157..0000000000
--- a/samples/glfw/GlfwOcctView.h
+++ /dev/null
@@ -1,112 +0,0 @@
-// Copyright (c) 2019 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#ifndef _GlfwOcctView_Header
-#define _GlfwOcctView_Header
-
-#include "GlfwOcctWindow.h"
-
-#include
-#include
-#include
-
-//! Sample class creating 3D Viewer within GLFW window.
-class GlfwOcctView : protected AIS_ViewController
-{
-public:
- //! Default constructor.
- GlfwOcctView();
-
- //! Destructor.
- ~GlfwOcctView();
-
- //! Main application entry point.
- void run();
-
-private:
-
- //! Create GLFW window.
- void initWindow (int theWidth, int theHeight, const char* theTitle);
-
- //! Create 3D Viewer.
- void initViewer();
-
- //! Fill 3D Viewer with a DEMO items.
- void initDemoScene();
-
- //! Application event loop.
- void mainloop();
-
- //! Clean up before .
- void cleanup();
-
-//! @name GLWF callbacks
-private:
- //! Window resize event.
- void onResize (int theWidth, int theHeight);
-
- //! Mouse scroll event.
- void onMouseScroll (double theOffsetX, double theOffsetY);
-
- //! Mouse click event.
- void onMouseButton (int theButton, int theAction, int theMods);
-
- //! Mouse move event.
- void onMouseMove (int thePosX, int thePosY);
-
-//! @name GLWF callbacks (static functions)
-private:
-
- //! GLFW callback redirecting messages into Message::DefaultMessenger().
- static void errorCallback (int theError, const char* theDescription);
-
- //! Wrapper for glfwGetWindowUserPointer() returning this class instance.
- static GlfwOcctView* toView (GLFWwindow* theWin);
-
- //! Window resize callback.
- static void onResizeCallback (GLFWwindow* theWin, int theWidth, int theHeight)
- { toView(theWin)->onResize (theWidth, theHeight); }
-
- //! Frame-buffer resize callback.
- static void onFBResizeCallback (GLFWwindow* theWin, int theWidth, int theHeight)
- { toView(theWin)->onResize (theWidth, theHeight); }
-
- //! Mouse scroll callback.
- static void onMouseScrollCallback (GLFWwindow* theWin, double theOffsetX, double theOffsetY)
- { toView(theWin)->onMouseScroll (theOffsetX, theOffsetY); }
-
- //! Mouse click callback.
- static void onMouseButtonCallback (GLFWwindow* theWin, int theButton, int theAction, int theMods)
- { toView(theWin)->onMouseButton (theButton, theAction, theMods); }
-
- //! Mouse move callback.
- static void onMouseMoveCallback (GLFWwindow* theWin, double thePosX, double thePosY)
- { toView(theWin)->onMouseMove ((int )thePosX, (int )thePosY); }
-
-private:
-
- Handle(GlfwOcctWindow) myOcctWindow;
- Handle(V3d_View) myView;
- Handle(AIS_InteractiveContext) myContext;
-
-};
-
-#endif // _GlfwOcctView_Header
diff --git a/samples/glfw/GlfwOcctWindow.cpp b/samples/glfw/GlfwOcctWindow.cpp
deleted file mode 100644
index 8b34487b88..0000000000
--- a/samples/glfw/GlfwOcctWindow.cpp
+++ /dev/null
@@ -1,161 +0,0 @@
-// Copyright (c) 2019 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#include "GlfwOcctWindow.h"
-
-#if defined (__APPLE__)
- #undef Handle // avoid name collisions in macOS headers
- #define GLFW_EXPOSE_NATIVE_COCOA
- #define GLFW_EXPOSE_NATIVE_NSGL
-#elif defined (_WIN32)
- #define GLFW_EXPOSE_NATIVE_WIN32
- #define GLFW_EXPOSE_NATIVE_WGL
-#else
- #define GLFW_EXPOSE_NATIVE_X11
- #define GLFW_EXPOSE_NATIVE_GLX
-#endif
-#include
-#include
-
-// ================================================================
-// Function : GlfwOcctWindow
-// Purpose :
-// ================================================================
-GlfwOcctWindow::GlfwOcctWindow (int theWidth, int theHeight, const TCollection_AsciiString& theTitle)
-: myGlfwWindow (glfwCreateWindow (theWidth, theHeight, theTitle.ToCString(), NULL, NULL)),
- myXLeft (0),
- myYTop (0),
- myXRight (0),
- myYBottom(0)
-{
- if (myGlfwWindow != nullptr)
- {
- int aWidth = 0, aHeight = 0;
- glfwGetWindowPos (myGlfwWindow, &myXLeft, &myYTop);
- glfwGetWindowSize(myGlfwWindow, &aWidth, &aHeight);
- myXRight = myXLeft + aWidth;
- myYBottom = myYTop + aHeight;
-
- #if !defined(_WIN32) && !defined(__APPLE__)
- myDisplay = new Aspect_DisplayConnection ((Aspect_XDisplay* )glfwGetX11Display());
- #endif
- }
-}
-
-// ================================================================
-// Function : Close
-// Purpose :
-// ================================================================
-void GlfwOcctWindow::Close()
-{
- if (myGlfwWindow != nullptr)
- {
- glfwDestroyWindow (myGlfwWindow);
- myGlfwWindow = nullptr;
- }
-}
-
-// ================================================================
-// Function : NativeHandle
-// Purpose :
-// ================================================================
-Aspect_Drawable GlfwOcctWindow::NativeHandle() const
-{
-#if defined (__APPLE__)
- return (Aspect_Drawable)glfwGetCocoaWindow (myGlfwWindow);
-#elif defined (_WIN32)
- return (Aspect_Drawable)glfwGetWin32Window (myGlfwWindow);
-#else
- return (Aspect_Drawable)glfwGetX11Window (myGlfwWindow);
-#endif
-}
-
-// ================================================================
-// Function : NativeGlContext
-// Purpose :
-// ================================================================
-Aspect_RenderingContext GlfwOcctWindow::NativeGlContext() const
-{
-#if defined (__APPLE__)
- return (NSOpenGLContext*)glfwGetNSGLContext (myGlfwWindow);
-#elif defined (_WIN32)
- return glfwGetWGLContext (myGlfwWindow);
-#else
- return glfwGetGLXContext (myGlfwWindow);
-#endif
-}
-
-// ================================================================
-// Function : IsMapped
-// Purpose :
-// ================================================================
-Standard_Boolean GlfwOcctWindow::IsMapped() const
-{
- return glfwGetWindowAttrib (myGlfwWindow, GLFW_VISIBLE) != 0;
-}
-
-// ================================================================
-// Function : Map
-// Purpose :
-// ================================================================
-void GlfwOcctWindow::Map() const
-{
- glfwShowWindow (myGlfwWindow);
-}
-
-// ================================================================
-// Function : Unmap
-// Purpose :
-// ================================================================
-void GlfwOcctWindow::Unmap() const
-{
- glfwHideWindow (myGlfwWindow);
-}
-
-// ================================================================
-// Function : DoResize
-// Purpose :
-// ================================================================
-Aspect_TypeOfResize GlfwOcctWindow::DoResize()
-{
- if (glfwGetWindowAttrib (myGlfwWindow, GLFW_VISIBLE) == 1)
- {
- int anXPos = 0, anYPos = 0, aWidth = 0, aHeight = 0;
- glfwGetWindowPos (myGlfwWindow, &anXPos, &anYPos);
- glfwGetWindowSize(myGlfwWindow, &aWidth, &aHeight);
- myXLeft = anXPos;
- myXRight = anXPos + aWidth;
- myYTop = anYPos;
- myYBottom = anYPos + aHeight;
- }
- return Aspect_TOR_UNKNOWN;
-}
-
-// ================================================================
-// Function : CursorPosition
-// Purpose :
-// ================================================================
-Graphic3d_Vec2i GlfwOcctWindow::CursorPosition() const
-{
- Graphic3d_Vec2d aPos;
- glfwGetCursorPos (myGlfwWindow, &aPos.x(), &aPos.y());
- return Graphic3d_Vec2i ((int )aPos.x(), (int )aPos.y());
-}
diff --git a/samples/glfw/GlfwOcctWindow.h b/samples/glfw/GlfwOcctWindow.h
deleted file mode 100644
index b7f1a620c0..0000000000
--- a/samples/glfw/GlfwOcctWindow.h
+++ /dev/null
@@ -1,115 +0,0 @@
-// Copyright (c) 2019 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#ifndef _GlfwOcctWindow_Header
-#define _GlfwOcctWindow_Header
-
-#include
-#include
-#include
-#include
-#include
-
-struct GLFWwindow;
-
-//! GLFWwindow wrapper implementing Aspect_Window interface.
-class GlfwOcctWindow : public Aspect_Window
-{
- DEFINE_STANDARD_RTTI_INLINE(GlfwOcctWindow, Aspect_Window)
-public:
- //! Main constructor.
- GlfwOcctWindow (int theWidth, int theHeight, const TCollection_AsciiString& theTitle);
-
- //! Close the window.
- virtual ~GlfwOcctWindow() { Close(); }
-
- //! Close the window.
- void Close();
-
- //! Return X Display connection.
- const Handle(Aspect_DisplayConnection)& GetDisplay() const { return myDisplay; }
-
- //! Return GLFW window.
- GLFWwindow* getGlfwWindow() { return myGlfwWindow; }
-
- //! Return native OpenGL context.
- Aspect_RenderingContext NativeGlContext() const;
-
- //! Return cursor position.
- Graphic3d_Vec2i CursorPosition() const;
-
-public:
-
- //! Returns native Window handle
- virtual Aspect_Drawable NativeHandle() const Standard_OVERRIDE;
-
- //! Returns parent of native Window handle.
- virtual Aspect_Drawable NativeParentHandle() const Standard_OVERRIDE { return 0; }
-
- //! Applies the resizing to the window
- virtual Aspect_TypeOfResize DoResize() Standard_OVERRIDE;
-
- //! Returns True if the window is opened and False if the window is closed.
- virtual Standard_Boolean IsMapped() const Standard_OVERRIDE;
-
- //! Apply the mapping change to the window and returns TRUE if the window is mapped at screen.
- virtual Standard_Boolean DoMapping() const Standard_OVERRIDE { return Standard_True; }
-
- //! Opens the window .
- virtual void Map() const Standard_OVERRIDE;
-
- //! Closes the window .
- virtual void Unmap() const Standard_OVERRIDE;
-
- virtual void Position (Standard_Integer& theX1, Standard_Integer& theY1,
- Standard_Integer& theX2, Standard_Integer& theY2) const Standard_OVERRIDE
- {
- theX1 = myXLeft;
- theX2 = myXRight;
- theY1 = myYTop;
- theY2 = myYBottom;
- }
-
- //! Returns The Window RATIO equal to the physical WIDTH/HEIGHT dimensions.
- virtual Standard_Real Ratio() const Standard_OVERRIDE
- {
- return Standard_Real (myXRight - myXLeft) / Standard_Real (myYBottom - myYTop);
- }
-
- //! Return window size.
- virtual void Size (Standard_Integer& theWidth, Standard_Integer& theHeight) const Standard_OVERRIDE
- {
- theWidth = myXRight - myXLeft;
- theHeight = myYBottom - myYTop;
- }
-
- virtual Aspect_FBConfig NativeFBConfig() const Standard_OVERRIDE { return NULL; }
-
-protected:
- Handle(Aspect_DisplayConnection) myDisplay;
- GLFWwindow* myGlfwWindow;
- Standard_Integer myXLeft;
- Standard_Integer myYTop;
- Standard_Integer myXRight;
- Standard_Integer myYBottom;
-};
-
-#endif // _GlfwOcctWindow_Header
diff --git a/samples/glfw/adm/cmake/FindOpenCASCADE.cmake b/samples/glfw/adm/cmake/FindOpenCASCADE.cmake
deleted file mode 100644
index 1cbf05227f..0000000000
--- a/samples/glfw/adm/cmake/FindOpenCASCADE.cmake
+++ /dev/null
@@ -1,157 +0,0 @@
-# This script finds OpenCASCADE Technology libraries.
-# The script requires:
-# OpenCASCADE_DIR - root OCCT folder or folder with CMake configuration files
-#
-# Script will define the following variables on success:
-# OpenCASCADE_FOUND - package is successfully found
-# OpenCASCADE_INCLUDE_DIR - directory with headers
-# OpenCASCADE_LIBRARY_DIR - directory with libraries for linker
-# OpenCASCADE_BINARY_DIR - directory with DLLs
-include(FindPackageHandleStandardArgs)
-
-# MY_PLATFORM variable
-math (EXPR MY_BITNESS "32 + 32*(${CMAKE_SIZEOF_VOID_P}/8)")
-if (WIN32)
- set (MY_PLATFORM "win${MY_BITNESS}")
-elseif(APPLE)
- set (MY_PLATFORM "mac")
-else()
- set (MY_PLATFORM "lin")
-endif()
-
-# MY_PLATFORM_AND_COMPILER variable
-if (MSVC)
- if (MSVC90)
- set (MY_COMPILER vc9)
- elseif (MSVC10)
- set (MY_COMPILER vc10)
- elseif (MSVC11)
- set (MY_COMPILER vc11)
- elseif (MSVC12)
- set (MY_COMPILER vc12)
- elseif (MSVC14)
- set (MY_COMPILER vc14)
- else()
- set (MY_COMPILER vc15)
- message (WARNING "Unknown msvc version. $$MY_COMPILER is used")
- endif()
-elseif (DEFINED CMAKE_COMPILER_IS_GNUCC)
- set (MY_COMPILER gcc)
-elseif (DEFINED CMAKE_COMPILER_IS_GNUCXX)
- set (MY_COMPILER gcc)
-elseif (CMAKE_CXX_COMPILER_ID MATCHES "[Cc][Ll][Aa][Nn][Gg]")
- set (MY_COMPILER clang)
-elseif (CMAKE_CXX_COMPILER_ID MATCHES "[Ii][Nn][Tt][Ee][Ll]")
- set (MY_COMPILER icc)
-else()
- set (MY_COMPILER ${CMAKE_GENERATOR})
- string (REGEX REPLACE " " "" COMPILER ${MY_COMPILER})
-endif()
-set (MY_PLATFORM_AND_COMPILER "${MY_PLATFORM}/${MY_COMPILER}")
-
-set (OpenCASCADE_DIR "" CACHE PATH "Path to Open CASCADE libraries.")
-
-# default paths
-set (OpenCASCADE_INCLUDE_DIR "${OpenCASCADE_DIR}/inc")
-set (OpenCASCADE_LIBRARY_DIR "${OpenCASCADE_DIR}/${MY_PLATFORM_AND_COMPILER}/lib")
-set (OpenCASCADE_BINARY_DIR "${OpenCASCADE_DIR}/${MY_PLATFORM_AND_COMPILER}/bin")
-
-# complete list of OCCT Toolkits (copy-paste from adm/UDLIST, since installed OCCT does not include UDLIST)
-set (OpenCASCADE_TKLIST "")
-set (OpenCASCADE_TKLIST ${OpenCASCADE_TKLIST} TKernel TKMath) # FoundationClasses
-set (OpenCASCADE_TKLIST ${OpenCASCADE_TKLIST} TKG2d TKG3d TKGeomBase TKBRep) # ModelingData
-set (OpenCASCADE_TKLIST ${OpenCASCADE_TKLIST} TKGeomAlgo TKTopAlgo TKPrim TKBO TKBool TKHLR TKFillet TKOffset TKFeat TKMesh TKXMesh TKShHealing) # ModelingAlgorithms
-set (OpenCASCADE_TKLIST ${OpenCASCADE_TKLIST} TKService TKV3d TKOpenGl TKMeshVS TKIVtk TKD3DHost) # Visualization
-set (OpenCASCADE_TKLIST ${OpenCASCADE_TKLIST} TKCDF TKLCAF TKCAF TKBinL TKXmlL TKBin TKXml TKStdL TKStd TKTObj TKBinTObj TKXmlTObj TKVCAF) # ApplicationFramework
-set (OpenCASCADE_TKLIST ${OpenCASCADE_TKLIST} TKXSBase TKXCAF TKDEIGES TKDESTEP TKDESTL TKDEVRML TKXmlXCAF TKBinXCAF TKRWMesh TKDEGLTF TKDEOBJ TKDEPLY) # DataExchange
-set (OpenCASCADE_TKLIST ${OpenCASCADE_TKLIST} TKDraw TKViewerTest) # Draw
-
-# validate location of OCCT libraries and headers
-set (OpenCASCADE_INCLUDE_DIR_FOUND)
-set (OpenCASCADE_LIBRARY_DIR_FOUND)
-set (OpenCASCADE_LIBRARY_DEBUG_DIR_FOUND)
-set (OpenCASCADE_IMPLIB_SUFFIX ${CMAKE_STATIC_LIBRARY_SUFFIX})
-set (OpenCASCADE_SHAREDLIB_RELEASE_FOUND)
-set (OpenCASCADE_SHAREDLIB_DEBUG_FOUND)
-if (EXISTS "${OpenCASCADE_INCLUDE_DIR}/Standard.hxx")
- set (OpenCASCADE_INCLUDE_DIR_FOUND ON)
-endif()
-
-if (EXISTS "${OpenCASCADE_LIBRARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}TKernel${CMAKE_STATIC_LIBRARY_SUFFIX}")
- set (OpenCASCADE_LIBRARY_DIR_FOUND ON)
-elseif (NOT WIN32 AND EXISTS "${OpenCASCADE_LIBRARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}TKernel${CMAKE_SHARED_LIBRARY_SUFFIX}")
- set (OpenCASCADE_LIBRARY_DIR_FOUND ON)
- set (OpenCASCADE_IMPLIB_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX})
-endif()
-
-if (EXISTS "${OpenCASCADE_LIBRARY_DIR}d/${CMAKE_SHARED_LIBRARY_PREFIX}TKernel${CMAKE_STATIC_LIBRARY_SUFFIX}")
- set (OpenCASCADE_LIBRARY_DEBUG_DIR_FOUND ON)
-elseif (NOT WIN32 AND EXISTS "${OpenCASCADE_LIBRARY_DIR}d/${CMAKE_SHARED_LIBRARY_PREFIX}TKernel${CMAKE_SHARED_LIBRARY_SUFFIX}")
- set (OpenCASCADE_LIBRARY_DEBUG_DIR_FOUND ON)
- set (OpenCASCADE_IMPLIB_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX})
-elseif (OpenCASCADE_LIBRARY_DIR_FOUND)
- message (STATUS "Only release OpenCASCADE libraries have been found")
-endif()
-
-if (NOT OpenCASCADE_LIBRARY_DIR_FOUND AND OpenCASCADE_LIBRARY_DEBUG_DIR_FOUND)
- set (OpenCASCADE_LIBRARY_DIR_FOUND ON)
- message (WARNING "Only debug OpenCASCADE libraries have been found")
-endif()
-
-if (WIN32)
- if (EXISTS "${OpenCASCADE_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}TKernel${CMAKE_SHARED_LIBRARY_SUFFIX}")
- set (OpenCASCADE_SHAREDLIB_RELEASE_FOUND ON)
- endif()
- if (EXISTS "${OpenCASCADE_BINARY_DIR}d/${CMAKE_SHARED_LIBRARY_PREFIX}TKernel${CMAKE_SHARED_LIBRARY_SUFFIX}")
- set (OpenCASCADE_SHAREDLIB_DEBUG_FOUND ON)
- endif()
-else()
- if (EXISTS "${OpenCASCADE_LIBRARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}TKernel${CMAKE_SHARED_LIBRARY_SUFFIX}")
- set (OpenCASCADE_SHAREDLIB_RELEASE_FOUND ON)
- endif()
- if (EXISTS "${OpenCASCADE_LIBRARY_DIR}d/${CMAKE_SHARED_LIBRARY_PREFIX}TKernel${CMAKE_SHARED_LIBRARY_SUFFIX}")
- set (OpenCASCADE_SHAREDLIB_DEBUG_FOUND ON)
- endif()
-endif()
-
-if (OpenCASCADE_INCLUDE_DIR_FOUND AND OpenCASCADE_LIBRARY_DIR_FOUND)
- set (OpenCASCADE_FOUND ON)
- set (OpenCASCADE_INSTALL_PREFIX ${OpenCASCADE_DIR})
-
- # Define OCCT toolkits so that CMake can put absolute paths to linker;
- # the library existence is not checked here, since modules can be disabled.
- foreach (aLibIter ${OpenCASCADE_TKLIST})
- add_library (${aLibIter} SHARED IMPORTED)
-
- set_property (TARGET ${aLibIter} APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
- set_target_properties (${aLibIter} PROPERTIES IMPORTED_IMPLIB_RELEASE "${OpenCASCADE_LIBRARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}${aLibIter}${OpenCASCADE_IMPLIB_SUFFIX}")
- if (OpenCASCADE_SHAREDLIB_RELEASE_FOUND)
- if (WIN32)
- set_target_properties (${aLibIter} PROPERTIES IMPORTED_LOCATION_RELEASE "${OpenCASCADE_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}${aLibIter}${CMAKE_SHARED_LIBRARY_SUFFIX}")
- else()
- set_target_properties (${aLibIter} PROPERTIES IMPORTED_LOCATION_RELEASE "${OpenCASCADE_LIBRARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}${aLibIter}${CMAKE_SHARED_LIBRARY_SUFFIX}")
- endif()
- endif()
-
- if (OpenCASCADE_LIBRARY_DEBUG_DIR_FOUND)
- set_property (TARGET ${aLibIter} APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
- set_target_properties (${aLibIter} PROPERTIES IMPORTED_IMPLIB_DEBUG "${OpenCASCADE_LIBRARY_DIR}d/${CMAKE_SHARED_LIBRARY_PREFIX}${aLibIter}${OpenCASCADE_IMPLIB_SUFFIX}")
- if (OpenCASCADE_SHAREDLIB_DEBUG_FOUND)
- if (WIN32)
- set_target_properties (${aLibIter} PROPERTIES IMPORTED_LOCATION_DEBUG "${OpenCASCADE_BINARY_DIR}d/${CMAKE_SHARED_LIBRARY_PREFIX}${aLibIter}${CMAKE_SHARED_LIBRARY_SUFFIX}")
- else()
- set_target_properties (${aLibIter} PROPERTIES IMPORTED_LOCATION_DEBUG "${OpenCASCADE_LIBRARY_DIR}d/${CMAKE_SHARED_LIBRARY_PREFIX}${aLibIter}${CMAKE_SHARED_LIBRARY_SUFFIX}")
- endif()
- endif()
- endif()
- endforeach()
-else()
- # fallback searching for CMake configs
- if (NOT "${OpenCASCADE_DIR}" STREQUAL "")
- set (anOcctDirBak "${OpenCASCADE_DIR}")
- find_package (OpenCASCADE CONFIG QUIET PATHS "${OpenCASCADE_DIR}" NO_DEFAULT_PATH)
- set (OpenCASCADE_DIR "${anOcctDirBak}" CACHE PATH "Path to Open CASCADE libraries." FORCE)
- else()
- find_package (OpenCASCADE CONFIG QUIET)
- endif()
-endif()
diff --git a/samples/glfw/main.cpp b/samples/glfw/main.cpp
deleted file mode 100644
index 9632eab57e..0000000000
--- a/samples/glfw/main.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) 2019 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#include "GlfwOcctView.h"
-
-int main (int, char**)
-{
- GlfwOcctView anApp;
- try
- {
- anApp.run();
- }
- catch (const std::runtime_error& theError)
- {
- std::cerr << theError.what() << std::endl;
- return EXIT_FAILURE;
- }
- return 0;
-}
diff --git a/samples/glfw/readme.md b/samples/glfw/readme.md
deleted file mode 100644
index bb656cd417..0000000000
--- a/samples/glfw/readme.md
+++ /dev/null
@@ -1,10 +0,0 @@
-GLFW: 3D Viewer (C++|GLFW) {#occt_samples_glfw}
-==================
-
-A sample demonstrating usage of OCCT 3D Viewer within a window created using GLFW.
-
-Use CMake to build the sample.
-
-Platforms: Windows, macOS, Linux
-
-Required: glfw
diff --git a/samples/ios/UIKitSample/ReadMe.md b/samples/ios/UIKitSample/ReadMe.md
deleted file mode 100644
index 7e4de5d60e..0000000000
--- a/samples/ios/UIKitSample/ReadMe.md
+++ /dev/null
@@ -1,21 +0,0 @@
-iOS: 3D Viewer (Objective-C++|UIKit) {#occt_samples_ios_uikit}
-==================
-
-UIKitSample consists of the Open CASCADE 3D Viewer which provides import of STEP files and toolbar with three buttons.
-The sample could be found within OCCT repository in folder `/samples/ios/UIKitSample/`.
-
-The first and second buttons serve for import hardcoded STEP files. The third button displays "About" dialog.
-
-The viewer supports zoom, pan and rotate actions. The viewer supports selection of solids as well.
-
-@figure{sample_ios_uikit.png}
-
-Installation and configuration:
- 1. Make sure you are running Mac OS version 10.12.1 or above and properly installed XCode version 8.1 or above.
- 2. Install Open CASCADE Technology (OCCT) and build static libraries for desired device or/and simulator on your workstation.
- 3. Build or download Freetype2 static library for desired device or/and simulator.
- 4. Open UIKitSample in XCode.
- 5. Select the UIKitSample project and add the OCCT static libraries and Freetype2 static library.
- 6. Select the UIKitSample and go to the "Build Settings" tab. After go to the section "Search Paths" and in the field "Header Search Paths" specify a path to the OCCT inc folder. Next in the field "Library Search Paths" specify a path/paths to the OCCT static libraries and Freetype2 static library folders.
- 7. Connect device and build sample for device or choose simulator as a target and build for simulator.
- 8. Run sample.
diff --git a/samples/ios/UIKitSample/UIKitSample.xcodeproj/project.pbxproj b/samples/ios/UIKitSample/UIKitSample.xcodeproj/project.pbxproj
deleted file mode 100644
index 78a9b18267..0000000000
--- a/samples/ios/UIKitSample/UIKitSample.xcodeproj/project.pbxproj
+++ /dev/null
@@ -1,548 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 46;
- objects = {
-
-/* Begin PBXBuildFile section */
- 0A24B9FA1EB0A7CC00A5F490 /* linkrods.step in Resources */ = {isa = PBXBuildFile; fileRef = 0A24B9F91EB0A7CC00A5F490 /* linkrods.step */; };
- 0A7DEDD61E2D1D0F00267B9B /* libfreetype.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDD41E2D1D0900267B9B /* libfreetype.a */; };
- 0A7DEDE71E2D28E300267B9B /* libTKBRep.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDDE1E2D28C500267B9B /* libTKBRep.a */; };
- 0A7DEDE81E2D28E300267B9B /* libTKernel.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDDF1E2D28C800267B9B /* libTKernel.a */; };
- 0A7DEDE91E2D28E300267B9B /* libTKG2d.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDE01E2D28CB00267B9B /* libTKG2d.a */; };
- 0A7DEDEA1E2D28E300267B9B /* libTKG3d.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDE11E2D28CE00267B9B /* libTKG3d.a */; };
- 0A7DEDEB1E2D28E300267B9B /* libTKGeomAlgo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDE21E2D28D200267B9B /* libTKGeomAlgo.a */; };
- 0A7DEDEC1E2D28E300267B9B /* libTKGeomBase.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDE31E2D28D500267B9B /* libTKGeomBase.a */; };
- 0A7DEDED1E2D28E300267B9B /* libTKMath.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDE41E2D28D800267B9B /* libTKMath.a */; };
- 0A7DEDEE1E2D28E300267B9B /* libTKShHealing.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDE51E2D28DC00267B9B /* libTKShHealing.a */; };
- 0A7DEDEF1E2D28E300267B9B /* libTKTopAlgo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDE61E2D28DF00267B9B /* libTKTopAlgo.a */; };
- 0A7DEDF21E2D297000267B9B /* libTKHLR.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDF01E2D296900267B9B /* libTKHLR.a */; };
- 0A7DEDF31E2D297000267B9B /* libTKMesh.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDF11E2D296C00267B9B /* libTKMesh.a */; };
- 0A7DEDF91E2D29FF00267B9B /* libTKCAF.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDF41E2D29EF00267B9B /* libTKCAF.a */; };
- 0A7DEDFA1E2D29FF00267B9B /* libTKCDF.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDF51E2D29F200267B9B /* libTKCDF.a */; };
- 0A7DEDFB1E2D29FF00267B9B /* libTKLCAF.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDF61E2D29F500267B9B /* libTKLCAF.a */; };
- 0A7DEDFC1E2D29FF00267B9B /* libTKV3d.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDF71E2D29F800267B9B /* libTKV3d.a */; };
- 0A7DEDFD1E2D29FF00267B9B /* libTKVCAF.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEDF81E2D29FB00267B9B /* libTKVCAF.a */; };
- 0A7DEE2B1E2D2AE000267B9B /* libTKService.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEE0B1E2D2A9D00267B9B /* libTKService.a */; };
- 0A7DEE2E1E2D2AE000267B9B /* libTKDESTEP.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEE0E1E2D2AA800267B9B /* libTKDESTEP.a */; };
- 0A7DEE351E2D2AE000267B9B /* libTKXCAF.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEE151E2D2AC000267B9B /* libTKXCAF.a */; };
- 0A7DEE3E1E2D2B8100267B9B /* libTKBO.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEE021E2D2A7F00267B9B /* libTKBO.a */; };
- 0A7DEE3F1E2D2BB000267B9B /* libTKOpenGles.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEE091E2D2A9700267B9B /* libTKOpenGles.a */; };
- 0A7DEE411E2D2C1500267B9B /* libTKXSBase.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A7DEE1D1E2D2ADC00267B9B /* libTKXSBase.a */; };
- 0AAE0DE61EAF816E00C1F65B /* screw.step in Resources */ = {isa = PBXBuildFile; fileRef = 0AAE0DE51EAF816D00C1F65B /* screw.step */; };
- 0AE286641EB0D29B00A9D719 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 0AE286631EB0D29A00A9D719 /* libz.tbd */; };
- 3405C9E01DE2F04E008BADB9 /* main.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3405C9DF1DE2F04E008BADB9 /* main.mm */; };
- 3405C9E31DE2F04E008BADB9 /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3405C9E21DE2F04E008BADB9 /* AppDelegate.mm */; };
- 3405C9EB1DE2F04E008BADB9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3405C9EA1DE2F04E008BADB9 /* Assets.xcassets */; };
- 3405C9EE1DE2F04E008BADB9 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3405C9EC1DE2F04E008BADB9 /* LaunchScreen.storyboard */; };
- 3405CA781DE303DC008BADB9 /* OcctViewer.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3405CA771DE303DC008BADB9 /* OcctViewer.mm */; };
- 3405CA7B1DE31566008BADB9 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3405CA7A1DE31566008BADB9 /* QuartzCore.framework */; };
- 3405CA7D1DE3156D008BADB9 /* OpenGLES.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3405CA7C1DE3156D008BADB9 /* OpenGLES.framework */; };
- 3405CA821DE332AB008BADB9 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3405CA811DE332AB008BADB9 /* UIKit.framework */; };
- 3405CA851DE3331D008BADB9 /* GLView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3405CA841DE3331D008BADB9 /* GLView.mm */; };
- 343FDCA61DE42F37009AEE51 /* GLViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 343FDCA51DE42F37009AEE51 /* GLViewController.mm */; };
- 34424E031DE70100008B56DA /* OcctDocument.mm in Sources */ = {isa = PBXBuildFile; fileRef = 34424E021DE70100008B56DA /* OcctDocument.mm */; };
- 34424E061DE72D2E008B56DA /* CafShapePrs.mm in Sources */ = {isa = PBXBuildFile; fileRef = 34424E051DE72D2E008B56DA /* CafShapePrs.mm */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
- 0A24B9F91EB0A7CC00A5F490 /* linkrods.step */ = {isa = PBXFileReference; lastKnownFileType = text; name = linkrods.step; path = ../occt/data/step/linkrods.step; sourceTree = ""; };
- 0A7DED6E1E2D15B800267B9B /* dev */ = {isa = PBXFileReference; lastKnownFileType = folder; name = dev; path = ..; sourceTree = ""; };
- 0A7DEDD41E2D1D0900267B9B /* libfreetype.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libfreetype.a; path = ../3rdparty/lib/libfreetype.a; sourceTree = ""; };
- 0A7DEDDE1E2D28C500267B9B /* libTKBRep.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKBRep.a; path = ../occt/lib/libTKBRep.a; sourceTree = ""; };
- 0A7DEDDF1E2D28C800267B9B /* libTKernel.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKernel.a; path = ../occt/lib/libTKernel.a; sourceTree = ""; };
- 0A7DEDE01E2D28CB00267B9B /* libTKG2d.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKG2d.a; path = ../occt/lib/libTKG2d.a; sourceTree = ""; };
- 0A7DEDE11E2D28CE00267B9B /* libTKG3d.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKG3d.a; path = ../occt/lib/libTKG3d.a; sourceTree = ""; };
- 0A7DEDE21E2D28D200267B9B /* libTKGeomAlgo.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKGeomAlgo.a; path = ../occt/lib/libTKGeomAlgo.a; sourceTree = ""; };
- 0A7DEDE31E2D28D500267B9B /* libTKGeomBase.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKGeomBase.a; path = ../occt/lib/libTKGeomBase.a; sourceTree = ""; };
- 0A7DEDE41E2D28D800267B9B /* libTKMath.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKMath.a; path = ../occt/lib/libTKMath.a; sourceTree = ""; };
- 0A7DEDE51E2D28DC00267B9B /* libTKShHealing.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKShHealing.a; path = ../occt/lib/libTKShHealing.a; sourceTree = ""; };
- 0A7DEDE61E2D28DF00267B9B /* libTKTopAlgo.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKTopAlgo.a; path = ../occt/lib/libTKTopAlgo.a; sourceTree = ""; };
- 0A7DEDF01E2D296900267B9B /* libTKHLR.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKHLR.a; path = ../occt/lib/libTKHLR.a; sourceTree = ""; };
- 0A7DEDF11E2D296C00267B9B /* libTKMesh.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKMesh.a; path = ../occt/lib/libTKMesh.a; sourceTree = ""; };
- 0A7DEDF41E2D29EF00267B9B /* libTKCAF.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKCAF.a; path = ../occt/lib/libTKCAF.a; sourceTree = ""; };
- 0A7DEDF51E2D29F200267B9B /* libTKCDF.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKCDF.a; path = ../occt/lib/libTKCDF.a; sourceTree = ""; };
- 0A7DEDF61E2D29F500267B9B /* libTKLCAF.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKLCAF.a; path = ../occt/lib/libTKLCAF.a; sourceTree = ""; };
- 0A7DEDF71E2D29F800267B9B /* libTKV3d.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKV3d.a; path = ../occt/lib/libTKV3d.a; sourceTree = ""; };
- 0A7DEDF81E2D29FB00267B9B /* libTKVCAF.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKVCAF.a; path = ../occt/lib/libTKVCAF.a; sourceTree = ""; };
- 0A7DEDFE1E2D2A7200267B9B /* libTKBin.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKBin.a; path = ../occt/lib/libTKBin.a; sourceTree = ""; };
- 0A7DEDFF1E2D2A7600267B9B /* libTKBinL.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKBinL.a; path = ../occt/lib/libTKBinL.a; sourceTree = ""; };
- 0A7DEE001E2D2A7900267B9B /* libTKBinTObj.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKBinTObj.a; path = ../occt/lib/libTKBinTObj.a; sourceTree = ""; };
- 0A7DEE011E2D2A7C00267B9B /* libTKBinXCAF.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKBinXCAF.a; path = ../occt/lib/libTKBinXCAF.a; sourceTree = ""; };
- 0A7DEE021E2D2A7F00267B9B /* libTKBO.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKBO.a; path = ../occt/lib/libTKBO.a; sourceTree = ""; };
- 0A7DEE031E2D2A8200267B9B /* libTKBool.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKBool.a; path = ../occt/lib/libTKBool.a; sourceTree = ""; };
- 0A7DEE041E2D2A8500267B9B /* libTKFeat.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKFeat.a; path = ../occt/lib/libTKFeat.a; sourceTree = ""; };
- 0A7DEE051E2D2A8900267B9B /* libTKFillet.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKFillet.a; path = ../occt/lib/libTKFillet.a; sourceTree = ""; };
- 0A7DEE061E2D2A8C00267B9B /* libTKDEIGES.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKDEIGES.a; path = ../occt/lib/libTKDEIGES.a; sourceTree = ""; };
- 0A7DEE071E2D2A8F00267B9B /* libTKMeshVS.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKMeshVS.a; path = ../occt/lib/libTKMeshVS.a; sourceTree = ""; };
- 0A7DEE081E2D2A9300267B9B /* libTKOffset.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKOffset.a; path = ../occt/lib/libTKOffset.a; sourceTree = ""; };
- 0A7DEE091E2D2A9700267B9B /* libTKOpenGles.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKOpenGles.a; path = ../occt/lib/libTKOpenGles.a; sourceTree = ""; };
- 0A7DEE0A1E2D2A9A00267B9B /* libTKPrim.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKPrim.a; path = ../occt/lib/libTKPrim.a; sourceTree = ""; };
- 0A7DEE0B1E2D2A9D00267B9B /* libTKService.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKService.a; path = ../occt/lib/libTKService.a; sourceTree = ""; };
- 0A7DEE0C1E2D2AA100267B9B /* libTKStd.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKStd.a; path = ../occt/lib/libTKStd.a; sourceTree = ""; };
- 0A7DEE0D1E2D2AA400267B9B /* libTKStdL.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKStdL.a; path = ../occt/lib/libTKStdL.a; sourceTree = ""; };
- 0A7DEE0E1E2D2AA800267B9B /* libTKDESTEP.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKDESTEP.a; path = ../occt/lib/libTKDESTEP.a; sourceTree = ""; };
- 0A7DEE121E2D2AB500267B9B /* libTKDESTL.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKDESTL.a; path = ../occt/lib/libTKDESTL.a; sourceTree = ""; };
- 0A7DEE131E2D2AB900267B9B /* libTKTObj.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKTObj.a; path = ../occt/lib/libTKTObj.a; sourceTree = ""; };
- 0A7DEE141E2D2ABC00267B9B /* libTKDEVRML.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKDEVRML.a; path = ../occt/lib/libTKDEVRML.a; sourceTree = ""; };
- 0A7DEE151E2D2AC000267B9B /* libTKXCAF.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKXCAF.a; path = ../occt/lib/libTKXCAF.a; sourceTree = ""; };
- 0A7DEE181E2D2ACA00267B9B /* libTKXMesh.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKXMesh.a; path = ../occt/lib/libTKXMesh.a; sourceTree = ""; };
- 0A7DEE191E2D2ACE00267B9B /* libTKXml.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKXml.a; path = ../occt/lib/libTKXml.a; sourceTree = ""; };
- 0A7DEE1A1E2D2AD100267B9B /* libTKXmlL.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKXmlL.a; path = ../occt/lib/libTKXmlL.a; sourceTree = ""; };
- 0A7DEE1B1E2D2AD500267B9B /* libTKXmlTObj.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKXmlTObj.a; path = ../occt/lib/libTKXmlTObj.a; sourceTree = ""; };
- 0A7DEE1C1E2D2AD900267B9B /* libTKXmlXCAF.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKXmlXCAF.a; path = ../occt/lib/libTKXmlXCAF.a; sourceTree = ""; };
- 0A7DEE1D1E2D2ADC00267B9B /* libTKXSBase.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libTKXSBase.a; path = ../occt/lib/libTKXSBase.a; sourceTree = ""; };
- 0AAE0DE51EAF816D00C1F65B /* screw.step */ = {isa = PBXFileReference; lastKnownFileType = text; name = screw.step; path = ../occt/data/step/screw.step; sourceTree = ""; };
- 0AE286631EB0D29A00A9D719 /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };
- 3405C9DB1DE2F04E008BADB9 /* UIKitSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = UIKitSample.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 3405C9DF1DE2F04E008BADB9 /* main.mm */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; path = main.mm; sourceTree = ""; };
- 3405C9E11DE2F04E008BADB9 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
- 3405C9E21DE2F04E008BADB9 /* AppDelegate.mm */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; path = AppDelegate.mm; sourceTree = ""; };
- 3405C9EA1DE2F04E008BADB9 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
- 3405C9ED1DE2F04E008BADB9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
- 3405C9EF1DE2F04E008BADB9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
- 3405CA761DE30380008BADB9 /* OcctViewer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OcctViewer.h; sourceTree = ""; };
- 3405CA771DE303DC008BADB9 /* OcctViewer.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = OcctViewer.mm; sourceTree = ""; };
- 3405CA7A1DE31566008BADB9 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
- 3405CA7C1DE3156D008BADB9 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
- 3405CA811DE332AB008BADB9 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- 3405CA831DE3331D008BADB9 /* GLView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GLView.h; sourceTree = ""; };
- 3405CA841DE3331D008BADB9 /* GLView.mm */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; fileEncoding = 4; path = GLView.mm; sourceTree = ""; };
- 343FDCA41DE42D12009AEE51 /* GLViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GLViewController.h; sourceTree = ""; };
- 343FDCA51DE42F37009AEE51 /* GLViewController.mm */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; fileEncoding = 4; path = GLViewController.mm; sourceTree = ""; };
- 34424E011DE6FF05008B56DA /* OcctDocument.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OcctDocument.h; sourceTree = ""; };
- 34424E021DE70100008B56DA /* OcctDocument.mm */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; fileEncoding = 4; path = OcctDocument.mm; sourceTree = ""; };
- 34424E041DE72C23008B56DA /* CafShapePrs.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CafShapePrs.h; sourceTree = ""; };
- 34424E051DE72D2E008B56DA /* CafShapePrs.mm */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; fileEncoding = 4; path = CafShapePrs.mm; sourceTree = ""; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
- 3405C9D81DE2F04E008BADB9 /* Frameworks */ = {
- isa = PBXFrameworksBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 0AE286641EB0D29B00A9D719 /* libz.tbd in Frameworks */,
- 0A7DEE411E2D2C1500267B9B /* libTKXSBase.a in Frameworks */,
- 0A7DEE3F1E2D2BB000267B9B /* libTKOpenGles.a in Frameworks */,
- 0A7DEE3E1E2D2B8100267B9B /* libTKBO.a in Frameworks */,
- 0A7DEE2B1E2D2AE000267B9B /* libTKService.a in Frameworks */,
- 0A7DEE2E1E2D2AE000267B9B /* libTKDESTEP.a in Frameworks */,
- 0A7DEE351E2D2AE000267B9B /* libTKXCAF.a in Frameworks */,
- 0A7DEE371E2D2AE000267B9B /* libTKXDESTEP.a in Frameworks */,
- 0A7DEDE71E2D28E300267B9B /* libTKBRep.a in Frameworks */,
- 0A7DEDF91E2D29FF00267B9B /* libTKCAF.a in Frameworks */,
- 0A7DEDFA1E2D29FF00267B9B /* libTKCDF.a in Frameworks */,
- 0A7DEDE81E2D28E300267B9B /* libTKernel.a in Frameworks */,
- 0A7DEDE91E2D28E300267B9B /* libTKG2d.a in Frameworks */,
- 0A7DEDEA1E2D28E300267B9B /* libTKG3d.a in Frameworks */,
- 0A7DEDEB1E2D28E300267B9B /* libTKGeomAlgo.a in Frameworks */,
- 0A7DEDEC1E2D28E300267B9B /* libTKGeomBase.a in Frameworks */,
- 0A7DEDF21E2D297000267B9B /* libTKHLR.a in Frameworks */,
- 0A7DEDFB1E2D29FF00267B9B /* libTKLCAF.a in Frameworks */,
- 0A7DEDED1E2D28E300267B9B /* libTKMath.a in Frameworks */,
- 0A7DEDF31E2D297000267B9B /* libTKMesh.a in Frameworks */,
- 0A7DEDEE1E2D28E300267B9B /* libTKShHealing.a in Frameworks */,
- 0A7DEDEF1E2D28E300267B9B /* libTKTopAlgo.a in Frameworks */,
- 0A7DEDFC1E2D29FF00267B9B /* libTKV3d.a in Frameworks */,
- 0A7DEDFD1E2D29FF00267B9B /* libTKVCAF.a in Frameworks */,
- 0A7DEDD61E2D1D0F00267B9B /* libfreetype.a in Frameworks */,
- 3405CA821DE332AB008BADB9 /* UIKit.framework in Frameworks */,
- 3405CA7D1DE3156D008BADB9 /* OpenGLES.framework in Frameworks */,
- 3405CA7B1DE31566008BADB9 /* QuartzCore.framework in Frameworks */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
- 3405C9D21DE2F04E008BADB9 = {
- isa = PBXGroup;
- children = (
- 0A24B9F91EB0A7CC00A5F490 /* linkrods.step */,
- 0AAE0DE51EAF816D00C1F65B /* screw.step */,
- 3405C9DD1DE2F04E008BADB9 /* UIKitSample */,
- 3405C9DC1DE2F04E008BADB9 /* Products */,
- 3405CA791DE31565008BADB9 /* Frameworks */,
- );
- sourceTree = "";
- };
- 3405C9DC1DE2F04E008BADB9 /* Products */ = {
- isa = PBXGroup;
- children = (
- 3405C9DB1DE2F04E008BADB9 /* UIKitSample.app */,
- );
- name = Products;
- sourceTree = "";
- };
- 3405C9DD1DE2F04E008BADB9 /* UIKitSample */ = {
- isa = PBXGroup;
- children = (
- 34424E051DE72D2E008B56DA /* CafShapePrs.mm */,
- 34424E041DE72C23008B56DA /* CafShapePrs.h */,
- 34424E011DE6FF05008B56DA /* OcctDocument.h */,
- 34424E021DE70100008B56DA /* OcctDocument.mm */,
- 3405CA841DE3331D008BADB9 /* GLView.mm */,
- 3405CA831DE3331D008BADB9 /* GLView.h */,
- 343FDCA51DE42F37009AEE51 /* GLViewController.mm */,
- 343FDCA41DE42D12009AEE51 /* GLViewController.h */,
- 3405CA761DE30380008BADB9 /* OcctViewer.h */,
- 3405CA771DE303DC008BADB9 /* OcctViewer.mm */,
- 3405C9E11DE2F04E008BADB9 /* AppDelegate.h */,
- 3405C9E21DE2F04E008BADB9 /* AppDelegate.mm */,
- 3405C9EA1DE2F04E008BADB9 /* Assets.xcassets */,
- 3405C9EC1DE2F04E008BADB9 /* LaunchScreen.storyboard */,
- 3405C9EF1DE2F04E008BADB9 /* Info.plist */,
- 3405C9DE1DE2F04E008BADB9 /* Supporting Files */,
- );
- path = UIKitSample;
- sourceTree = "";
- };
- 3405C9DE1DE2F04E008BADB9 /* Supporting Files */ = {
- isa = PBXGroup;
- children = (
- 3405C9DF1DE2F04E008BADB9 /* main.mm */,
- );
- name = "Supporting Files";
- sourceTree = "";
- };
- 3405CA791DE31565008BADB9 /* Frameworks */ = {
- isa = PBXGroup;
- children = (
- 0AE286631EB0D29A00A9D719 /* libz.tbd */,
- 0A7DEDFE1E2D2A7200267B9B /* libTKBin.a */,
- 0A7DEDFF1E2D2A7600267B9B /* libTKBinL.a */,
- 0A7DEE001E2D2A7900267B9B /* libTKBinTObj.a */,
- 0A7DEE011E2D2A7C00267B9B /* libTKBinXCAF.a */,
- 0A7DEE021E2D2A7F00267B9B /* libTKBO.a */,
- 0A7DEE031E2D2A8200267B9B /* libTKBool.a */,
- 0A7DEE041E2D2A8500267B9B /* libTKFeat.a */,
- 0A7DEE051E2D2A8900267B9B /* libTKFillet.a */,
- 0A7DEE061E2D2A8C00267B9B /* libTKDEIGES.a */,
- 0A7DEE071E2D2A8F00267B9B /* libTKMeshVS.a */,
- 0A7DEE081E2D2A9300267B9B /* libTKOffset.a */,
- 0A7DEE091E2D2A9700267B9B /* libTKOpenGles.a */,
- 0A7DEE0A1E2D2A9A00267B9B /* libTKPrim.a */,
- 0A7DEE0B1E2D2A9D00267B9B /* libTKService.a */,
- 0A7DEE0C1E2D2AA100267B9B /* libTKStd.a */,
- 0A7DEE0D1E2D2AA400267B9B /* libTKStdL.a */,
- 0A7DEE0E1E2D2AA800267B9B /* libTKDESTEP.a */,
- 0A7DEE121E2D2AB500267B9B /* libTKDESTL.a */,
- 0A7DEE131E2D2AB900267B9B /* libTKTObj.a */,
- 0A7DEE141E2D2ABC00267B9B /* libTKDEVRML.a */,
- 0A7DEE151E2D2AC000267B9B /* libTKXCAF.a */,
- 0A7DEE181E2D2ACA00267B9B /* libTKXMesh.a */,
- 0A7DEE191E2D2ACE00267B9B /* libTKXml.a */,
- 0A7DEE1A1E2D2AD100267B9B /* libTKXmlL.a */,
- 0A7DEE1B1E2D2AD500267B9B /* libTKXmlTObj.a */,
- 0A7DEE1C1E2D2AD900267B9B /* libTKXmlXCAF.a */,
- 0A7DEE1D1E2D2ADC00267B9B /* libTKXSBase.a */,
- 0A7DEDF41E2D29EF00267B9B /* libTKCAF.a */,
- 0A7DEDF51E2D29F200267B9B /* libTKCDF.a */,
- 0A7DEDF61E2D29F500267B9B /* libTKLCAF.a */,
- 0A7DEDF71E2D29F800267B9B /* libTKV3d.a */,
- 0A7DEDF81E2D29FB00267B9B /* libTKVCAF.a */,
- 0A7DEDF01E2D296900267B9B /* libTKHLR.a */,
- 0A7DEDF11E2D296C00267B9B /* libTKMesh.a */,
- 0A7DEDDE1E2D28C500267B9B /* libTKBRep.a */,
- 0A7DEDDF1E2D28C800267B9B /* libTKernel.a */,
- 0A7DEDE01E2D28CB00267B9B /* libTKG2d.a */,
- 0A7DEDE11E2D28CE00267B9B /* libTKG3d.a */,
- 0A7DEDE21E2D28D200267B9B /* libTKGeomAlgo.a */,
- 0A7DEDE31E2D28D500267B9B /* libTKGeomBase.a */,
- 0A7DEDE41E2D28D800267B9B /* libTKMath.a */,
- 0A7DEDE51E2D28DC00267B9B /* libTKShHealing.a */,
- 0A7DEDE61E2D28DF00267B9B /* libTKTopAlgo.a */,
- 0A7DEDD41E2D1D0900267B9B /* libfreetype.a */,
- 0A7DED6E1E2D15B800267B9B /* dev */,
- 3405CA811DE332AB008BADB9 /* UIKit.framework */,
- 3405CA7C1DE3156D008BADB9 /* OpenGLES.framework */,
- 3405CA7A1DE31566008BADB9 /* QuartzCore.framework */,
- );
- name = Frameworks;
- sourceTree = "";
- };
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
- 3405C9DA1DE2F04E008BADB9 /* UIKitSample */ = {
- isa = PBXNativeTarget;
- buildConfigurationList = 3405CA081DE2F04E008BADB9 /* Build configuration list for PBXNativeTarget "UIKitSample" */;
- buildPhases = (
- 3405C9D71DE2F04E008BADB9 /* Sources */,
- 3405C9D81DE2F04E008BADB9 /* Frameworks */,
- 3405C9D91DE2F04E008BADB9 /* Resources */,
- );
- buildRules = (
- );
- dependencies = (
- );
- name = UIKitSample;
- productName = UIKitSample;
- productReference = 3405C9DB1DE2F04E008BADB9 /* UIKitSample.app */;
- productType = "com.apple.product-type.application";
- };
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
- 3405C9D31DE2F04E008BADB9 /* Project object */ = {
- isa = PBXProject;
- attributes = {
- CLASSPREFIX = "";
- LastUpgradeCheck = 0810;
- ORGANIZATIONNAME = "OPEN CASCADE";
- TargetAttributes = {
- 3405C9DA1DE2F04E008BADB9 = {
- CreatedOnToolsVersion = 8.1;
- ProvisioningStyle = Automatic;
- };
- };
- };
- buildConfigurationList = 3405C9D61DE2F04E008BADB9 /* Build configuration list for PBXProject "UIKitSample" */;
- compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
- hasScannedForEncodings = 0;
- knownRegions = (
- en,
- Base,
- );
- mainGroup = 3405C9D21DE2F04E008BADB9;
- productRefGroup = 3405C9DC1DE2F04E008BADB9 /* Products */;
- projectDirPath = "";
- projectRoot = "";
- targets = (
- 3405C9DA1DE2F04E008BADB9 /* UIKitSample */,
- );
- };
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
- 3405C9D91DE2F04E008BADB9 /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 0A24B9FA1EB0A7CC00A5F490 /* linkrods.step in Resources */,
- 0AAE0DE61EAF816E00C1F65B /* screw.step in Resources */,
- 3405C9EE1DE2F04E008BADB9 /* LaunchScreen.storyboard in Resources */,
- 3405C9EB1DE2F04E008BADB9 /* Assets.xcassets in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
- 3405C9D71DE2F04E008BADB9 /* Sources */ = {
- isa = PBXSourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 3405C9E31DE2F04E008BADB9 /* AppDelegate.mm in Sources */,
- 3405CA851DE3331D008BADB9 /* GLView.mm in Sources */,
- 343FDCA61DE42F37009AEE51 /* GLViewController.mm in Sources */,
- 34424E031DE70100008B56DA /* OcctDocument.mm in Sources */,
- 3405CA781DE303DC008BADB9 /* OcctViewer.mm in Sources */,
- 3405C9E01DE2F04E008BADB9 /* main.mm in Sources */,
- 34424E061DE72D2E008B56DA /* CafShapePrs.mm in Sources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
- 3405C9EC1DE2F04E008BADB9 /* LaunchScreen.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- 3405C9ED1DE2F04E008BADB9 /* Base */,
- );
- name = LaunchScreen.storyboard;
- sourceTree = "";
- };
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
- 3405CA061DE2F04E008BADB9 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_SUSPICIOUS_MOVES = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = dwarf;
- ENABLE_BITCODE = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- ENABLE_TESTABILITY = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PREPROCESSOR_DEFINITIONS = (
- "DEBUG=1",
- "$(inherited)",
- );
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = "";
- IPHONEOS_DEPLOYMENT_TARGET = 10.2;
- LIBRARY_SEARCH_PATHS = "";
- MTL_ENABLE_DEBUG_INFO = YES;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- USER_HEADER_SEARCH_PATHS = "";
- USE_HEADERMAP = YES;
- VALID_ARCHS = "$(ARCHS_STANDARD)";
- };
- name = Debug;
- };
- 3405CA071DE2F04E008BADB9 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- CLANG_ANALYZER_NONNULL = YES;
- CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
- CLANG_CXX_LIBRARY = "libc++";
- CLANG_ENABLE_MODULES = YES;
- CLANG_ENABLE_OBJC_ARC = YES;
- CLANG_WARN_BOOL_CONVERSION = YES;
- CLANG_WARN_CONSTANT_CONVERSION = YES;
- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
- CLANG_WARN_EMPTY_BODY = YES;
- CLANG_WARN_ENUM_CONVERSION = YES;
- CLANG_WARN_INFINITE_RECURSION = YES;
- CLANG_WARN_INT_CONVERSION = YES;
- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
- CLANG_WARN_SUSPICIOUS_MOVES = YES;
- CLANG_WARN_UNREACHABLE_CODE = YES;
- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- COPY_PHASE_STRIP = NO;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- ENABLE_BITCODE = NO;
- ENABLE_NS_ASSERTIONS = NO;
- ENABLE_STRICT_OBJC_MSGSEND = YES;
- GCC_C_LANGUAGE_STANDARD = gnu99;
- GCC_NO_COMMON_BLOCKS = YES;
- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
- GCC_WARN_UNDECLARED_SELECTOR = YES;
- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
- GCC_WARN_UNUSED_FUNCTION = YES;
- GCC_WARN_UNUSED_VARIABLE = YES;
- HEADER_SEARCH_PATHS = "";
- IPHONEOS_DEPLOYMENT_TARGET = 10.2;
- LIBRARY_SEARCH_PATHS = "";
- MTL_ENABLE_DEBUG_INFO = NO;
- ONLY_ACTIVE_ARCH = YES;
- SDKROOT = iphoneos;
- TARGETED_DEVICE_FAMILY = "1,2";
- USER_HEADER_SEARCH_PATHS = "";
- USE_HEADERMAP = YES;
- VALIDATE_PRODUCT = YES;
- VALID_ARCHS = "$(ARCHS_STANDARD)";
- };
- name = Release;
- };
- 3405CA091DE2F04E008BADB9 /* Debug */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD)";
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_CXX_LIBRARY = "libc++";
- CODE_SIGN_IDENTITY = "iPhone Developer";
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- DEVELOPMENT_TEAM = "";
- HEADER_SEARCH_PATHS = ../occt/inc;
- INFOPLIST_FILE = UIKitSample/Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 7.0;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- ../occt/lib,
- ../3rdparty/lib,
- );
- OTHER_CFLAGS = "";
- OTHER_LDFLAGS = "";
- PRODUCT_BUNDLE_IDENTIFIER = org.opencascade.ios.sample;
- PRODUCT_NAME = "$(TARGET_NAME)";
- PROVISIONING_PROFILE_SPECIFIER = "";
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
- TARGETED_DEVICE_FAMILY = "1,2";
- VALID_ARCHS = "$(ARCHS_STANDARD)";
- };
- name = Debug;
- };
- 3405CA0A1DE2F04E008BADB9 /* Release */ = {
- isa = XCBuildConfiguration;
- buildSettings = {
- ARCHS = "$(ARCHS_STANDARD)";
- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
- CLANG_CXX_LIBRARY = "libc++";
- CODE_SIGN_IDENTITY = "iPhone Developer";
- "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
- DEVELOPMENT_TEAM = "";
- HEADER_SEARCH_PATHS = ../occt/inc;
- INFOPLIST_FILE = UIKitSample/Info.plist;
- IPHONEOS_DEPLOYMENT_TARGET = 7.0;
- LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
- LIBRARY_SEARCH_PATHS = (
- ../occt/lib,
- ../3rdparty/lib,
- );
- OTHER_CFLAGS = "";
- OTHER_LDFLAGS = "";
- PRODUCT_BUNDLE_IDENTIFIER = org.opencascade.ios.sample;
- PRODUCT_NAME = "$(TARGET_NAME)";
- PROVISIONING_PROFILE_SPECIFIER = "";
- SDKROOT = iphoneos;
- SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
- TARGETED_DEVICE_FAMILY = "1,2";
- VALID_ARCHS = "$(ARCHS_STANDARD)";
- };
- name = Release;
- };
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
- 3405C9D61DE2F04E008BADB9 /* Build configuration list for PBXProject "UIKitSample" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 3405CA061DE2F04E008BADB9 /* Debug */,
- 3405CA071DE2F04E008BADB9 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
- 3405CA081DE2F04E008BADB9 /* Build configuration list for PBXNativeTarget "UIKitSample" */ = {
- isa = XCConfigurationList;
- buildConfigurations = (
- 3405CA091DE2F04E008BADB9 /* Debug */,
- 3405CA0A1DE2F04E008BADB9 /* Release */,
- );
- defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Release;
- };
-/* End XCConfigurationList section */
- };
- rootObject = 3405C9D31DE2F04E008BADB9 /* Project object */;
-}
diff --git a/samples/ios/UIKitSample/UIKitSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/samples/ios/UIKitSample/UIKitSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata
deleted file mode 100644
index 6a3ecc7e45..0000000000
--- a/samples/ios/UIKitSample/UIKitSample.xcodeproj/project.xcworkspace/contents.xcworkspacedata
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
diff --git a/samples/ios/UIKitSample/UIKitSample/AppDelegate.h b/samples/ios/UIKitSample/UIKitSample/AppDelegate.h
deleted file mode 100644
index b63c6a2952..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/AppDelegate.h
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) 2017 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#import
-
-#import "GLView.h"
-
-@interface AppDelegate : UIResponder
-
-@property (strong, nonatomic) UIWindow *window;
-
-@end
diff --git a/samples/ios/UIKitSample/UIKitSample/AppDelegate.mm b/samples/ios/UIKitSample/UIKitSample/AppDelegate.mm
deleted file mode 100644
index 7e81296a0e..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/AppDelegate.mm
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) 2017 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#import "AppDelegate.h"
-
-@interface AppDelegate ()
-
-@end
-
-@implementation AppDelegate
-
-@synthesize window=_window;
-
-- (BOOL)application:(UIApplication *)theApplication didFinishLaunchingWithOptions:(NSDictionary *)theLaunchOptions {
- // Override point for customization after application launch.
-
- CGRect screenBounds = [[UIScreen mainScreen] bounds];
- self.window = [[UIWindow alloc] initWithFrame: screenBounds];
-
- GLViewController* aGLViewController = [[GLViewController alloc] init];
- UINavigationController *aNavController =
- [[UINavigationController alloc] initWithRootViewController: aGLViewController];
-
- self.window.rootViewController = aNavController;
- [self.window makeKeyAndVisible];
- return YES;
-}
-
-- (void)applicationWillResignActive:(UIApplication *)theApplication {
- // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
- // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
-}
-
-- (void)applicationDidEnterBackground:(UIApplication *)theApplication {
- // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
- // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
-}
-
-- (void)applicationWillEnterForeground:(UIApplication *)theApplication {
- // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
-}
-
-- (void)applicationDidBecomeActive:(UIApplication *)theApplication {
- // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
-}
-
-- (void)applicationWillTerminate:(UIApplication *)theApplication {
- // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
-}
-
-@end
diff --git a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Contents.json b/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Contents.json
deleted file mode 100644
index 536920e583..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Contents.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "images" : [
- {
- "size" : "60x60",
- "idiom" : "iphone",
- "filename" : "Icon-60@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "76x76",
- "idiom" : "ipad",
- "filename" : "Icon-76.png",
- "scale" : "1x"
- },
- {
- "size" : "76x76",
- "idiom" : "ipad",
- "filename" : "Icon-76@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "40x40",
- "idiom" : "iphone",
- "filename" : "Icon-Small-40@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "40x40",
- "idiom" : "ipad",
- "filename" : "Icon-Small-40.png",
- "scale" : "1x"
- },
- {
- "size" : "40x40",
- "idiom" : "ipad",
- "filename" : "Icon-Small-40@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "29x29",
- "idiom" : "iphone",
- "filename" : "Icon-Small@2x.png",
- "scale" : "2x"
- },
- {
- "size" : "29x29",
- "idiom" : "ipad",
- "filename" : "Icon-Small.png",
- "scale" : "1x"
- },
- {
- "size" : "29x29",
- "idiom" : "ipad",
- "filename" : "Icon-Small@2x.png",
- "scale" : "2x"
- }
- ],
- "info" : {
- "version" : 1,
- "author" : "xcode"
- }
-}
\ No newline at end of file
diff --git a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png b/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png
deleted file mode 100644
index 57121a68a4..0000000000
Binary files a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png and /dev/null differ
diff --git a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-76.png b/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-76.png
deleted file mode 100644
index 4fb3f91430..0000000000
Binary files a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-76.png and /dev/null differ
diff --git a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png b/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png
deleted file mode 100644
index 817ddecf1c..0000000000
Binary files a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png and /dev/null differ
diff --git a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png b/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png
deleted file mode 100644
index d845c8008a..0000000000
Binary files a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png and /dev/null differ
diff --git a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png b/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png
deleted file mode 100644
index 95dd562f8f..0000000000
Binary files a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png and /dev/null differ
diff --git a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-Small.png b/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-Small.png
deleted file mode 100644
index 911422e1f0..0000000000
Binary files a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-Small.png and /dev/null differ
diff --git a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png b/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png
deleted file mode 100644
index a060ff2ad6..0000000000
Binary files a/samples/ios/UIKitSample/UIKitSample/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png and /dev/null differ
diff --git a/samples/ios/UIKitSample/UIKitSample/Base.lproj/LaunchScreen.storyboard b/samples/ios/UIKitSample/UIKitSample/Base.lproj/LaunchScreen.storyboard
deleted file mode 100644
index fdf3f97d1b..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/Base.lproj/LaunchScreen.storyboard
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/ios/UIKitSample/UIKitSample/CafShapePrs.h b/samples/ios/UIKitSample/UIKitSample/CafShapePrs.h
deleted file mode 100644
index 1215533609..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/CafShapePrs.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2017 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#ifndef CafShapePrs_h
-#define CafShapePrs_h
-
-#include
-#include
-#include
-
-typedef NCollection_DataMap CafDataMapOfShapeColor;
-typedef NCollection_DataMap MapOfPrsForShapes;
-
-//! Interactive object for shape in DECAF document
-class CafShapePrs : public XCAFPrs_AISObject
-{
- DEFINE_STANDARD_RTTIEXT(CafShapePrs, XCAFPrs_AISObject)
-public:
-
- //! Default constructor.
- CafShapePrs (const TDF_Label& theLabel,
- const XCAFPrs_Style& theStyle,
- const Graphic3d_MaterialAspect& theMaterial);
-
- //! Search custom aspect for specified shape.
- Standard_Boolean FindCustomAspects (const TopoDS_Shape& theShape,
- Handle(AIS_ColoredDrawer)& theAspects) const
- {
- return myShapeColors.Find (theShape, theAspects);
- }
-
- //! Access the styles map.
- const CafDataMapOfShapeColor& ShapeColors() const { return myShapeColors; }
-
- //! Override default style.
- virtual void DefaultStyle (XCAFPrs_Style& theStyle) const Standard_OVERRIDE
- {
- theStyle = myDefStyle;
- }
-
-protected:
-
- XCAFPrs_Style myDefStyle; //!< default style
-
-};
-
-#endif // CafShapePrs_h
diff --git a/samples/ios/UIKitSample/UIKitSample/CafShapePrs.mm b/samples/ios/UIKitSample/UIKitSample/CafShapePrs.mm
deleted file mode 100644
index a23e9f02a6..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/CafShapePrs.mm
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2017 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#include "CafShapePrs.h"
-
-#import
-
-IMPLEMENT_STANDARD_RTTIEXT(CafShapePrs, XCAFPrs_AISObject)
-
-// =======================================================================
-// function : CafShapePrs
-// purpose :
-// =======================================================================
-CafShapePrs::CafShapePrs(const TDF_Label& theLabel,
- const XCAFPrs_Style& theStyle,
- const Graphic3d_MaterialAspect& theMaterial)
-: XCAFPrs_AISObject (theLabel),
- myDefStyle(theStyle)
-{
- SetMaterial(theMaterial);
-}
diff --git a/samples/ios/UIKitSample/UIKitSample/GLView.h b/samples/ios/UIKitSample/UIKitSample/GLView.h
deleted file mode 100644
index 0e90b2d02f..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/GLView.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2017 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#ifndef GLView_h
-#define GLView_h
-
-#import
-#import
-
-#include
-#include
-
-#import "GLViewController.h"
-
-//! OpenGL view
-@interface GLView : UIView {
-
-@public
- GLViewController* myController;
-
- EAGLContext* myGLContext;
-
- int myBackingWidth;
- int myBackingHeight;
- GLuint myFrameBuffer;
- GLuint myRenderBuffer;
- GLuint myDepthBuffer;
-}
-
-@end
-
-#endif // GLView_h
diff --git a/samples/ios/UIKitSample/UIKitSample/GLView.mm b/samples/ios/UIKitSample/UIKitSample/GLView.mm
deleted file mode 100644
index 3e61a002d3..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/GLView.mm
+++ /dev/null
@@ -1,170 +0,0 @@
-// Copyright (c) 2017 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#import
-
-#import "GLView.h"
-#import "GLViewController.h"
-
-@implementation GLView
-
-// =======================================================================
-// function : layerClass
-// purpose :
-// =======================================================================
-+ (Class)layerClass
-{
- return [CAEAGLLayer class];
-}
-
-// =======================================================================
-// function : setupLayer
-// purpose :
-// =======================================================================
-- (void)setupLayer
-{
- CAEAGLLayer* anEAGLLayer = (CAEAGLLayer*) self.layer;
- anEAGLLayer.opaque = YES;
- anEAGLLayer.contentsScale = [[UIScreen mainScreen] scale];
-}
-
-// =======================================================================
-// function : setupContext
-// purpose :
-// =======================================================================
-- (void)setupContext
-{
- EAGLRenderingAPI aRendApi = kEAGLRenderingAPIOpenGLES2;
- myGLContext = [[EAGLContext alloc] initWithAPI:aRendApi];
- if (!myGLContext)
- {
- NSLog(@"Failed to initialize OpenGL ES 2.0 context");
- }
-
- if (![EAGLContext setCurrentContext:myGLContext])
- {
- NSLog(@"Failed to set current OpenGL ES context");
- }
-}
-
-// =======================================================================
-// function : createBuffers
-// purpose :
-// =======================================================================
-- (void) createBuffers
-{
- glGenFramebuffers(1, &myFrameBuffer);
- glBindFramebuffer(GL_FRAMEBUFFER, myFrameBuffer);
- glGenRenderbuffers(1, &myRenderBuffer);
- glBindRenderbuffer(GL_RENDERBUFFER, myRenderBuffer);
-
- [myGLContext renderbufferStorage:GL_RENDERBUFFER fromDrawable:(CAEAGLLayer*)self.layer];
- glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, myRenderBuffer);
- glGetRenderbufferParameteriv(GL_RENDERBUFFER, GL_RENDERBUFFER_WIDTH, &myBackingWidth);
- glGetRenderbufferParameteriv(GL_RENDERBUFFER, GL_RENDERBUFFER_HEIGHT, &myBackingHeight);
-
- glGenRenderbuffers(1, &myDepthBuffer);
- glBindRenderbuffer(GL_RENDERBUFFER, myDepthBuffer);
- glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT16, myBackingWidth, myBackingHeight);
- glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, myDepthBuffer);
-}
-
-// =======================================================================
-// function : destroyBuffers
-// purpose :
-// =======================================================================
-- (void) destroyBuffers
-{
- glDeleteFramebuffers(1, &myFrameBuffer);
- myFrameBuffer = 0;
- glDeleteRenderbuffers(1, &myRenderBuffer);
- myRenderBuffer = 0;
- glDeleteRenderbuffers(1, &myDepthBuffer);
- myDepthBuffer = 0;
-}
-
-// =======================================================================
-// function : drawView
-// purpose :
-// =======================================================================
-- (void) drawView
-{
- glBindFramebuffer(GL_FRAMEBUFFER, myFrameBuffer);
-
- [myController Draw];
-
- glBindRenderbuffer(GL_RENDERBUFFER, myRenderBuffer);
- [myGLContext presentRenderbuffer:GL_RENDERBUFFER];
-}
-
-// =======================================================================
-// function : layoutSubviews
-// purpose :
-// =======================================================================
-- (void) layoutSubviews
-{
- [EAGLContext setCurrentContext:myGLContext];
-
- [self destroyBuffers];
- [self createBuffers];
- [self drawView];
-
- glBindRenderbuffer(GL_RENDERBUFFER, myRenderBuffer);
-
- glGetRenderbufferParameteriv(GL_RENDERBUFFER, GL_RENDERBUFFER_WIDTH, &myBackingWidth);
- glGetRenderbufferParameteriv(GL_RENDERBUFFER, GL_RENDERBUFFER_HEIGHT, &myBackingHeight);
-
- if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE)
- {
- NSLog(@"Failed to make complete framebuffer object %u",
- glCheckFramebufferStatus(GL_FRAMEBUFFER));
- }
-
- glViewport(0, 0, myBackingWidth, myBackingHeight);
-
- [myController Setup];
-}
-
-// =======================================================================
-// function : init
-// purpose :
-// =======================================================================
-- (id) init
-{
- self = [super init];
-
- if (self) {
- [self setupLayer];
- [self setupContext];
-
- myController = NULL;
-
- myBackingWidth = 0;
- myBackingHeight = 0;
- myFrameBuffer = 0;
- myRenderBuffer = 0;
- myDepthBuffer = 0;
- }
-
- return self;
-}
-
-@end
diff --git a/samples/ios/UIKitSample/UIKitSample/GLViewController.h b/samples/ios/UIKitSample/UIKitSample/GLViewController.h
deleted file mode 100644
index 7f8f068221..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/GLViewController.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2017 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#ifndef GLViewController_h
-#define GLViewController_h
-
-#import
-
-#import "OcctViewer.h"
-
-//! OpenGL view controller
-@interface GLViewController : UIViewController {
- OcctViewer* myOcctViewer;
- CGPoint myFirstTouch[2];
-}
-
--(void) Draw;
--(void) Setup;
-
-@end
-
-#endif // GLViewController_h
diff --git a/samples/ios/UIKitSample/UIKitSample/GLViewController.mm b/samples/ios/UIKitSample/UIKitSample/GLViewController.mm
deleted file mode 100644
index 6827f68352..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/GLViewController.mm
+++ /dev/null
@@ -1,289 +0,0 @@
-// Copyright (c) 2017 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#import
-
-#import "GLViewController.h"
-#import "GLView.h"
-
-@implementation GLViewController
-
-// =======================================================================
-// function : init
-// purpose :
-// =======================================================================
-- (id) init
-{
- self = [super init];
-
- if (self) {
- myOcctViewer = new OcctViewer();
- }
-
- return self;
-}
-
-// =======================================================================
-// function : Draw
-// purpose :
-// =======================================================================
-- (void) Draw
-{
-}
-
-// =======================================================================
-// function : Setup
-// purpose :
-// =======================================================================
-- (void) Setup {
- if (!myOcctViewer->InitViewer(self.view)) {
- NSLog(@"Failed to init viewer");
- }
- else {
- [self importScrew:nullptr];
- }
-}
-
-// =======================================================================
-// function : loadView
-// purpose :
-// =======================================================================
-- (void) loadView
-{
- GLView* aGLView = [[GLView alloc] init];
- aGLView->myController = self;
- self.view = aGLView;
-}
-
-// =======================================================================
-// function : touchesBegan
-// purpose :
-// =======================================================================
-- (void)touchesBegan:(NSSet *)theTouches withEvent:(UIEvent *)theEvent
-{
- [super touchesBegan:theTouches withEvent:theEvent];
-
- UITouch *aTouch = [theTouches anyObject];
- if (aTouch != NULL) {
- CGPoint aTouchPoint = [aTouch locationInView:self.view];
- myOcctViewer->StartRotation((int)aTouchPoint.x, (int)aTouchPoint.y);
- }
-}
-
-// =======================================================================
-// function : touchesMoved
-// purpose :
-// =======================================================================
-- (void)touchesMoved:(NSSet *)theTouches withEvent:(UIEvent *)theEvent
-{
- [super touchesMoved:theTouches withEvent:theEvent];
-
- UITouch *aTouch = [theTouches anyObject];
- if (aTouch != NULL) {
- CGPoint aTouchPoint = [aTouch locationInView:self.view];
- myOcctViewer->Rotation((int)aTouchPoint.x, (int)aTouchPoint.y);
- }
-
- return;
-}
-
-// =======================================================================
-// function : viewDidLoad
-// purpose :
-// =======================================================================
--(void)viewDidLoad
-{
- // add zoom recognizer
- UIPinchGestureRecognizer *aZoomRecognizer = [[UIPinchGestureRecognizer alloc]
- initWithTarget:self
- action:@selector(zoomHandler:)];
-
- [[self view] addGestureRecognizer:aZoomRecognizer];
-
- // add pan recognizer
- UIPanGestureRecognizer *aPanRecognizer = [[UIPanGestureRecognizer alloc]
- initWithTarget:self
- action:@selector(panHandler:)];
-
- aPanRecognizer.maximumNumberOfTouches = 2;
- aPanRecognizer.minimumNumberOfTouches = 2;
-
- [[self view] addGestureRecognizer:aPanRecognizer];
-
- UITapGestureRecognizer *aTapRecognizer = [[UITapGestureRecognizer alloc]
- initWithTarget:self
- action:@selector(tapHandler:)];
-
- [[self view] addGestureRecognizer:aTapRecognizer];
-
-
- // add import buttons
- UIBarButtonItem *importScrewBtn = [[UIBarButtonItem alloc]
- initWithTitle:@"Sample 1"
- style:UIBarButtonItemStylePlain
- target:self
- action:@selector(importScrew:)];
-
- UIBarButtonItem *importLinkrodsBtn = [[UIBarButtonItem alloc]
- initWithTitle:@"Sample 2"
- style:UIBarButtonItemStylePlain
- target:self
- action:@selector(importLinkrods:)];
-
- UIBarButtonItem *displayAboutDlgBtn = [[UIBarButtonItem alloc]
- initWithTitle:@"About"
- style:UIBarButtonItemStylePlain
- target:self
- action:@selector(displayAboutDlg:)];
-
- [self.navigationItem setLeftBarButtonItems:[NSArray arrayWithObjects:importScrewBtn, importLinkrodsBtn, nil]];
- [self.navigationItem setRightBarButtonItem: displayAboutDlgBtn];
-}
-
-// =======================================================================
-// function : zoomHandler
-// purpose :
-// =======================================================================
-- (void)zoomHandler:(UIPinchGestureRecognizer *)pinchRecognizer
-{
- if ([pinchRecognizer numberOfTouches] > 1)
- {
- UIGestureRecognizerState aState = [pinchRecognizer state];
- if (aState == UIGestureRecognizerStateBegan)
- {
- myFirstTouch[0] = [pinchRecognizer locationOfTouch:0 inView:self.view];
- myFirstTouch[1] = [pinchRecognizer locationOfTouch:1 inView:self.view];
- }
- else if (aState == UIGestureRecognizerStateChanged) {
- CGPoint aLastTouch[2] = {
- [pinchRecognizer locationOfTouch:0 inView:self.view],
- [pinchRecognizer locationOfTouch:1 inView:self.view]
- };
-
- double aPinchCenterXStart = ( myFirstTouch[0].x + myFirstTouch[1].x ) / 2.0;
- double aPinchCenterYStart = ( myFirstTouch[0].y + myFirstTouch[1].y ) / 2.0;
-
- double aStartDist = std::sqrt( ( myFirstTouch[0].x - myFirstTouch[1].x ) * ( myFirstTouch[0].x - myFirstTouch[1].x ) +
- ( myFirstTouch[0].y - myFirstTouch[1].y ) * ( myFirstTouch[0].y - myFirstTouch[1].y ) );
- double anEndDist = std::sqrt( ( aLastTouch[0].x - aLastTouch[1].x ) * ( aLastTouch[0].x - aLastTouch[1].x ) +
- ( aLastTouch[0].y - aLastTouch[1].y ) * ( aLastTouch[0].y - aLastTouch[1].y ) );
-
- double aDeltaDist = anEndDist - aStartDist;
-
- myOcctViewer->Zoom(aPinchCenterXStart, aPinchCenterYStart, aDeltaDist);
-
- myFirstTouch[0] = aLastTouch[0];
- myFirstTouch[1] = aLastTouch[1];
- }
- }
-}
-
-// =======================================================================
-// function : panHandler
-// purpose :
-// =======================================================================
-- (void)panHandler:(UIPanGestureRecognizer *)panRecognizer
-{
- if ([panRecognizer numberOfTouches] > 1)
- {
- UIGestureRecognizerState aState = [panRecognizer state];
- if (aState == UIGestureRecognizerStateBegan)
- {
- myFirstTouch[0] = [panRecognizer locationOfTouch:0 inView:self.view];
- myFirstTouch[1] = [panRecognizer locationOfTouch:1 inView:self.view];
- }
- else if (aState == UIGestureRecognizerStateChanged) {
- CGPoint aLastTouch[2] = {
- [panRecognizer locationOfTouch:0 inView:self.view],
- [panRecognizer locationOfTouch:1 inView:self.view]
- };
-
- double aPinchCenterXStart = ( myFirstTouch[0].x + myFirstTouch[1].x ) / 2.0;
- double aPinchCenterYStart = ( myFirstTouch[0].y + myFirstTouch[1].y ) / 2.0;
-
- double aPinchCenterXEnd = ( aLastTouch[0].x + aLastTouch[1].x ) / 2.0;
- double aPinchCenterYEnd = ( aLastTouch[0].y + aLastTouch[1].y ) / 2.0;
-
- double aPinchCenterXDev = aPinchCenterXEnd - aPinchCenterXStart;
- double aPinchCenterYDev = aPinchCenterYEnd - aPinchCenterYStart;
-
- myOcctViewer->Pan((int)aPinchCenterXDev, (int)-aPinchCenterYDev);
- }
- }
-}
-
-// =======================================================================
-// function : tapHandler
-// purpose :
-// =======================================================================
-- (void)tapHandler:(UITapGestureRecognizer *)tapRecognizer
-{
- CGPoint aTapPoint = [tapRecognizer locationInView:self.view];
- myOcctViewer->Select(aTapPoint.x, aTapPoint.y);
-}
-
-// =======================================================================
-// function : importScrew
-// purpose :
-// =======================================================================
-- (void)importScrew:(UIBarButtonItem *)theSender
-{
- NSString* aNsPath = [[NSBundle mainBundle] pathForResource:@"screw"
- ofType:@"step"];
- std::string aPath = std::string([aNsPath UTF8String]);
-
- myOcctViewer->ImportSTEP(aPath);
- myOcctViewer->FitAll();
-}
-
-// =======================================================================
-// function : importLinkrods
-// purpose :
-// =======================================================================
-- (void)importLinkrods:(UIBarButtonItem *)theSender
-{
- NSString* aNsPath = [[NSBundle mainBundle] pathForResource:@"linkrods"
- ofType:@"step"];
- std::string aPath = std::string([aNsPath UTF8String]);
-
- myOcctViewer->ImportSTEP(aPath);
- myOcctViewer->FitAll();
-}
-
-// =======================================================================
-// function : displayAboutDlg
-// purpose :
-// =======================================================================
-- (void)displayAboutDlg:(UIBarButtonItem *)theSender
-{
- UIAlertController* anAbout = [UIAlertController alertControllerWithTitle:@"About"
- message:@"UIKit based application for tutorial to Open CASCADE Technology.\n\n"
- @"Copyright (c) 2017 OPEN CASCADE SAS"
- preferredStyle:UIAlertControllerStyleAlert];
-
- UIAlertAction* aDefaultAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault
- handler:^(UIAlertAction * action) {}];
-
- [anAbout addAction:aDefaultAction];
- [self presentViewController:anAbout animated:YES completion:nil];
-}
-
-@end
diff --git a/samples/ios/UIKitSample/UIKitSample/Info.plist b/samples/ios/UIKitSample/UIKitSample/Info.plist
deleted file mode 100644
index 92faa7fb2e..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/Info.plist
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
- CFBundleDevelopmentRegion
- en
- CFBundleDisplayName
- OCCT Sample
- CFBundleExecutable
- $(EXECUTABLE_NAME)
- CFBundleIdentifier
- $(PRODUCT_BUNDLE_IDENTIFIER)
- CFBundleInfoDictionaryVersion
- 6.0
- CFBundleName
- $(PRODUCT_NAME)
- CFBundlePackageType
- APPL
- CFBundleShortVersionString
- 1.0
- CFBundleVersion
- 1
- LSRequiresIPhoneOS
-
- UILaunchStoryboardName
- LaunchScreen
- UIMainStoryboardFile
-
- UIRequiredDeviceCapabilities
-
- armv7
-
- UISupportedInterfaceOrientations
-
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
- UISupportedInterfaceOrientations~ipad
-
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
-
-
-
diff --git a/samples/ios/UIKitSample/UIKitSample/OcctDocument.h b/samples/ios/UIKitSample/UIKitSample/OcctDocument.h
deleted file mode 100644
index f85acf12dd..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/OcctDocument.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2017 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#ifndef OcctDocument_h
-#define OcctDocument_h
-
-#include
-#include
-
-//! The document
-class OcctDocument : public Standard_Transient
-{
- DEFINE_STANDARD_RTTIEXT(OcctDocument, Standard_Transient)
-
-public:
- Standard_EXPORT OcctDocument();
-
- Standard_EXPORT virtual ~OcctDocument();
-
- Standard_EXPORT void InitDoc();
-
- Handle(TDocStd_Document)& ChangeDocument() { return myOcafDoc; }
-
- const Handle(TDocStd_Document)& Document() const { return myOcafDoc; }
-
-private:
- Handle(XCAFApp_Application) myApp;
- Handle(TDocStd_Document) myOcafDoc;
-};
-
-#endif // OcctDocument_h
diff --git a/samples/ios/UIKitSample/UIKitSample/OcctDocument.mm b/samples/ios/UIKitSample/UIKitSample/OcctDocument.mm
deleted file mode 100644
index 6adfe78b7f..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/OcctDocument.mm
+++ /dev/null
@@ -1,86 +0,0 @@
-// Copyright (c) 2017 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#import
-
-#include "OcctDocument.h"
-
-#include
-#include
-#include
-
-#include
-
-IMPLEMENT_STANDARD_RTTIEXT(OcctDocument, Standard_Transient)
-
-// =======================================================================
-// function : OcctViewer
-// purpose :
-// =======================================================================
-OcctDocument::OcctDocument()
-{
- try
- {
- OCC_CATCH_SIGNALS
- myApp = XCAFApp_Application::GetApplication();
- }
- catch (const Standard_Failure& theFailure)
- {
- Message::SendFail (TCollection_AsciiString("Error in creating application") + theFailure.GetMessageString());
- }
-}
-
-// =======================================================================
-// function : ~OcctDocument
-// purpose :
-// =======================================================================
-OcctDocument::~OcctDocument()
-{
-}
-
-// =======================================================================
-// function : InitDoc
-// purpose :
-// =======================================================================
-void OcctDocument::InitDoc()
-{
- // close old document
- if (!myOcafDoc.IsNull())
- {
- if (myOcafDoc->HasOpenCommand())
- {
- myOcafDoc->AbortCommand();
- }
-
- myOcafDoc->Main().Root().ForgetAllAttributes(Standard_True);
- myApp->Close(myOcafDoc);
- myOcafDoc.Nullify();
- }
-
- // create a new document
- myApp->NewDocument(TCollection_ExtendedString("BinXCAF"), myOcafDoc);
-
- // set maximum number of available "undo" actions
- if (!myOcafDoc.IsNull())
- {
- myOcafDoc->SetUndoLimit(10);
- }
-}
diff --git a/samples/ios/UIKitSample/UIKitSample/OcctViewer.h b/samples/ios/UIKitSample/UIKitSample/OcctViewer.h
deleted file mode 100644
index 57962aa15b..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/OcctViewer.h
+++ /dev/null
@@ -1,104 +0,0 @@
-// Copyright (c) 2017 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#ifndef OcctViewer_H
-#define OcctViewer_H
-
-#include "OcctDocument.h"
-#include "CafShapePrs.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#import
-
-//! OCCT 3D Viewer holder.
-class OcctViewer
-{
-public:
-
- //! Empty constructor.
- Standard_EXPORT OcctViewer();
-
- //! Destructor.
- Standard_EXPORT virtual ~OcctViewer();
-
- //! Release the viewer.
- Standard_EXPORT void release();
-
-public:
-
- //! Return viewer instance.
- const Handle(V3d_Viewer)& V3dViewer() const { return myViewer; }
-
- //! Return active view.
- const Handle(V3d_View)& ActiveView() const { return myView; }
-
- //! Interactive context.
- const Handle(AIS_InteractiveContext)& AisContext() const { return myContext; }
-
- //! Invalidate active viewer.
- void Invalidate()
- {
- myView->Invalidate();
- }
-
-public:
-
- //! Perform OCCT Viewer (re)initialization.
- Standard_EXPORT bool InitViewer (UIView* theWin);
-
- Standard_EXPORT void FitAll();
-
- Standard_EXPORT void StartRotation(int theX, int theY);
- Standard_EXPORT void Rotation(int theX, int theY);
- Standard_EXPORT void Pan(int theX, int theY);
- Standard_EXPORT void Zoom(int theX, int theY, double theDelta);
- Standard_EXPORT void Select(int theX, int theY);
-
- Standard_EXPORT bool ImportSTEP(std::string theFilename);
-
-private:
- void clearSession(const Handle(XSControl_WorkSession)& theSession);
-
- void displayWithChildren (XCAFDoc_ShapeTool& theShapeTool,
- XCAFDoc_ColorTool& theColorTool,
- const TDF_Label& theLabel,
- const TopLoc_Location& theParentTrsf,
- const XCAFPrs_Style& theParentStyle,
- const TCollection_AsciiString& theParentId,
- MapOfPrsForShapes& theMapOfShapes);
- void clearContext();
-
-protected:
-
- Handle(V3d_Viewer) myViewer; //!< main viewer
- Handle(V3d_View) myView; //!< main view
- Handle(AIS_InteractiveContext) myContext; //!< interactive context containing displayed objects
- Handle(OcctDocument) myDoc;
-};
-
-#endif // OcctViewer_H
diff --git a/samples/ios/UIKitSample/UIKitSample/OcctViewer.mm b/samples/ios/UIKitSample/UIKitSample/OcctViewer.mm
deleted file mode 100644
index de4eff8c3a..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/OcctViewer.mm
+++ /dev/null
@@ -1,404 +0,0 @@
-// Copyright (c) 2017 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#include "OcctViewer.h"
-#include "OcctDocument.h"
-
-#include
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-// =======================================================================
-// function : OcctViewer
-// purpose :
-// =======================================================================
-OcctViewer::OcctViewer()
-{
- myDoc = new OcctDocument();
-}
-
-// =======================================================================
-// function : ~OcctViewer
-// purpose :
-// =======================================================================
-OcctViewer::~OcctViewer()
-{
- //
-}
-
-// =======================================================================
-// function : release
-// purpose :
-// =======================================================================
-void OcctViewer::release()
-{
- myContext.Nullify();
- if (!myView.IsNull())
- {
- myView->Remove();
- }
- myView.Nullify();
- myViewer.Nullify();
-
- myDoc.Nullify();
-}
-
-// =======================================================================
-// function : InitViewer
-// purpose :
-// =======================================================================
-bool OcctViewer::InitViewer (UIView* theWin)
-{
- EAGLContext* aRendCtx = [EAGLContext currentContext];
- if (theWin == NULL || aRendCtx == NULL)
- {
- NSLog(@"Error: No active EAGL context!");
- release();
- return false;
- }
- if (!myView.IsNull())
- {
- myView->MustBeResized();
- myView->Invalidate();
- return true;
- }
-
- Handle(Aspect_DisplayConnection) aDisplayConnection = new Aspect_DisplayConnection();
- Handle(Graphic3d_GraphicDriver) aGraphicDriver = new OpenGl_GraphicDriver (aDisplayConnection);
-
- // Create Viewer
- myViewer = new V3d_Viewer (aGraphicDriver);
- myViewer->SetDefaultLights();
- myViewer->SetLightOn();
-
- // Create AIS context
- myContext = new AIS_InteractiveContext (myViewer);
- myContext->SetDisplayMode ((int )AIS_DisplayMode::AIS_Shaded, false);
-
- myView = myViewer->CreateView();
- myView->TriedronDisplay (Aspect_TOTP_LEFT_LOWER, Quantity_NOC_WHITE, 0.20, V3d_ZBUFFER);
-
- Handle(Cocoa_Window) aCocoaWindow = new Cocoa_Window (theWin);
- myView->SetWindow (aCocoaWindow, aRendCtx);
- if (!aCocoaWindow->IsMapped())
- {
- aCocoaWindow->Map();
- }
-
- myView->Redraw();
- myView->MustBeResized();
- return true;
-}
-
-// =======================================================================
-// function : FitAll
-// purpose :
-// =======================================================================
-void OcctViewer::FitAll()
-{
- if (!myView.IsNull())
- {
- myView->FitAll();
- myView->ZFitAll();
- }
-}
-
-// =======================================================================
-// function : StartRotation
-// purpose :
-// =======================================================================
-void OcctViewer::StartRotation(int theX, int theY)
-{
- if (!myView.IsNull())
- {
- myView->StartRotation(theX, theY);
- }
-}
-
-// =======================================================================
-// function : Rotation
-// purpose :
-// =======================================================================
-void OcctViewer::Rotation(int theX, int theY)
-{
- if (!myView.IsNull())
- {
- myView->Rotation(theX, theY);
- }
-}
-
-// =======================================================================
-// function : Pan
-// purpose :
-// =======================================================================
-void OcctViewer::Pan(int theX, int theY)
-{
- if (!myView.IsNull())
- {
- myView->Pan(theX, theY, 1, Standard_False);
- }
-}
-
-// =======================================================================
-// function : Zoom
-// purpose :
-// =======================================================================
-void OcctViewer::Zoom(int theX, int theY, double theDelta)
-{
- if (!myView.IsNull())
- {
- if (theX >=0 && theY >=0)
- {
- myView->StartZoomAtPoint(theX, theY);
- myView->ZoomAtPoint(0, 0, (int) theDelta, (int) theDelta);
- }
- else
- {
- double aCoeff = Abs(theDelta) / 100.0 + 1.0;
- aCoeff = theDelta > 0.0 ? aCoeff : 1.0 / aCoeff;
- myView->SetZoom(aCoeff, Standard_True);
- }
- }
-}
-
-// =======================================================================
-// function : Select
-// purpose :
-// =======================================================================
-void OcctViewer::Select(int theX, int theY)
-{
- if (!myContext.IsNull())
- {
- myContext->ClearSelected(Standard_False);
- myContext->MoveTo(theX, theY, myView, Standard_False);
- myContext->Select(Standard_False);
- }
-}
-
-// =======================================================================
-// function : ImportSTEP
-// purpose :
-// =======================================================================
-bool OcctViewer::ImportSTEP(std::string theFilename)
-{
- // create a new document
- myDoc->InitDoc();
-
- STEPCAFControl_Reader aReader;
- Handle(XSControl_WorkSession) aSession = aReader.Reader().WS();
-
- try
- {
- if (!aReader.ReadFile (theFilename.c_str()))
- {
- clearSession (aSession);
- return false;
- }
-
- if (!aReader.Transfer (myDoc->ChangeDocument()))
- {
- clearSession (aSession);
- return false;
- }
-
- clearSession(aSession);
- }
- catch (const Standard_Failure& theFailure)
- {
- Message::SendFail (TCollection_AsciiString ("Exception raised during STEP import\n[")
- + theFailure.GetMessageString() + "]\n" + theFilename.c_str());
- return false;
- }
-
- Handle(XCAFDoc_ShapeTool) aShapeTool = XCAFDoc_DocumentTool::ShapeTool (myDoc->Document()->Main());
- Handle(XCAFDoc_ColorTool) aColorTool = XCAFDoc_DocumentTool::ColorTool (myDoc->Document()->Main());
-
- TDF_LabelSequence aLabels;
- aShapeTool->GetFreeShapes (aLabels);
-
- // perform meshing explicitly
- TopoDS_Compound aCompound;
- BRep_Builder aBuildTool;
- aBuildTool.MakeCompound (aCompound);
- for (Standard_Integer aLabIter = 1; aLabIter <= aLabels.Length(); ++aLabIter)
- {
- TopoDS_Shape aShape;
- const TDF_Label& aLabel = aLabels.Value (aLabIter);
- if (XCAFDoc_ShapeTool::GetShape (aLabel, aShape))
- {
- aBuildTool.Add (aCompound, aShape);
- }
- }
-
- Handle(Prs3d_Drawer) aDrawer = myContext->DefaultDrawer();
- Standard_Real aDeflection = StdPrs_ToolTriangulatedShape::GetDeflection (aCompound, aDrawer);
- if (!BRepTools::Triangulation (aCompound, aDeflection))
- {
- BRepMesh_IncrementalMesh anAlgo;
- anAlgo.ChangeParameters().Deflection = aDeflection;
- anAlgo.ChangeParameters().Angle = aDrawer->DeviationAngle();
- anAlgo.ChangeParameters().InParallel = Standard_True;
- anAlgo.SetShape (aCompound);
- anAlgo.Perform();
- }
-
- // clear presentations
- clearContext();
-
- // create presentations
- MapOfPrsForShapes aMapOfShapes;
- XCAFPrs_Style aDefStyle;
- aDefStyle.SetColorSurf (Quantity_NOC_GRAY65);
- aDefStyle.SetColorCurv (Quantity_NOC_GRAY65);
- for (Standard_Integer aLabIter = 1; aLabIter <= aLabels.Length(); ++aLabIter)
- {
- const TDF_Label& aLabel = aLabels.Value (aLabIter);
- displayWithChildren (*aShapeTool, *aColorTool, aLabel, TopLoc_Location(), aDefStyle, "", aMapOfShapes);
- }
-
- return true;
-}
-
-// =======================================================================
-// function : displayWithChildren
-// purpose :
-// =======================================================================
-void OcctViewer::displayWithChildren (XCAFDoc_ShapeTool& theShapeTool,
- XCAFDoc_ColorTool& theColorTool,
- const TDF_Label& theLabel,
- const TopLoc_Location& theParentTrsf,
- const XCAFPrs_Style& theParentStyle,
- const TCollection_AsciiString& theParentId,
- MapOfPrsForShapes& theMapOfShapes)
-{
- TDF_Label aRefLabel = theLabel;
- if (theShapeTool.IsReference (theLabel))
- {
- theShapeTool.GetReferredShape (theLabel, aRefLabel);
- }
-
- TCollection_AsciiString anEntry;
- TDF_Tool::Entry (theLabel, anEntry);
- if (!theParentId.IsEmpty())
- {
- anEntry = theParentId + "\n" + anEntry;
- }
- anEntry += ".";
-
- if (!theShapeTool.IsAssembly (aRefLabel))
- {
- Handle(AIS_InteractiveObject) anAis;
- if (!theMapOfShapes.Find (aRefLabel, anAis))
- {
- anAis = new CafShapePrs (aRefLabel, theParentStyle, Graphic3d_NameOfMaterial_ShinyPlastified);
- theMapOfShapes.Bind (aRefLabel, anAis);
- }
-
- Handle(TCollection_HAsciiString) anId = new TCollection_HAsciiString (anEntry);
- Handle(AIS_ConnectedInteractive) aConnected = new AIS_ConnectedInteractive();
- aConnected->Connect (anAis, theParentTrsf.Transformation());
- aConnected->SetOwner (anId);
- aConnected->SetLocalTransformation (theParentTrsf.Transformation());
- aConnected->SetHilightMode(1);
- myContext->Display (aConnected, Standard_False);
- return;
- }
-
- XCAFPrs_Style aDefStyle = theParentStyle;
- Quantity_Color aColor;
- if (theColorTool.GetColor (aRefLabel, XCAFDoc_ColorGen, aColor))
- {
- aDefStyle.SetColorCurv (aColor);
- aDefStyle.SetColorSurf (aColor);
- }
- if (theColorTool.GetColor (aRefLabel, XCAFDoc_ColorSurf, aColor))
- {
- aDefStyle.SetColorSurf (aColor);
- }
- if (theColorTool.GetColor (aRefLabel, XCAFDoc_ColorCurv, aColor))
- {
- aDefStyle.SetColorCurv (aColor);
- }
-
- for (TDF_ChildIterator childIter (aRefLabel); childIter.More(); childIter.Next())
- {
- TDF_Label aLabel = childIter.Value();
- if (!aLabel.IsNull()
- && (aLabel.HasAttribute() || aLabel.HasChild()))
- {
- TopLoc_Location aTrsf = theParentTrsf * theShapeTool.GetLocation (aLabel);
- displayWithChildren (theShapeTool, theColorTool, aLabel, aTrsf, aDefStyle, anEntry, theMapOfShapes);
- }
- }
-}
-
-// =======================================================================
-// function : clearSession
-// purpose :
-// =======================================================================
-void OcctViewer::clearSession (const Handle(XSControl_WorkSession)& theSession)
-{
- if (theSession.IsNull())
- {
- return;
- }
-
- Handle(Transfer_TransientProcess) aMapReader = theSession->TransferReader()->TransientProcess();
- if (!aMapReader.IsNull())
- {
- aMapReader->Clear();
- }
-
- Handle(XSControl_TransferReader) aTransferReader = theSession->TransferReader();
- if (!aTransferReader.IsNull())
- {
- aTransferReader->Clear(1);
- }
-}
-
-// =======================================================================
-// function : clearContext
-// purpose :
-// =======================================================================
-void OcctViewer::clearContext()
-{
- if (!myContext.IsNull())
- {
- myContext->ClearSelected(Standard_False);
- myContext->RemoveAll(Standard_False);
- }
-}
diff --git a/samples/ios/UIKitSample/UIKitSample/ViewController.h b/samples/ios/UIKitSample/UIKitSample/ViewController.h
deleted file mode 100644
index 004fc808ee..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/ViewController.h
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) 2016 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#import
-
-@interface ViewController : UIViewController
-
-@end
diff --git a/samples/ios/UIKitSample/UIKitSample/ViewController.m b/samples/ios/UIKitSample/UIKitSample/ViewController.m
deleted file mode 100644
index e019f32f05..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/ViewController.m
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2016 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#import "ViewController.h"
-
-#include "OcctViewer.h"
-
-@interface ViewController ()
-
-@end
-
-@implementation ViewController
-
-- (void)viewDidLoad {
- [super viewDidLoad];
- // Do any additional setup after loading the view, typically from a nib.
-}
-
-- (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
-}
-
-@end
diff --git a/samples/ios/UIKitSample/UIKitSample/main.mm b/samples/ios/UIKitSample/UIKitSample/main.mm
deleted file mode 100644
index 7e27d76391..0000000000
--- a/samples/ios/UIKitSample/UIKitSample/main.mm
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2017 OPEN CASCADE SAS
-//
-// This file is part of the examples of the Open CASCADE Technology software library.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-
-#import
-
-#import "AppDelegate.h"
-
-int main(int argc, char * argv[])
-{
- @autoreleasepool
- {
- return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
- }
-}
diff --git a/samples/ios/UIKitSample/images/sample_ios_uikit.png b/samples/ios/UIKitSample/images/sample_ios_uikit.png
deleted file mode 100644
index 703e8e5e4f..0000000000
Binary files a/samples/ios/UIKitSample/images/sample_ios_uikit.png and /dev/null differ
diff --git a/samples/java/jniviewer/.gitattributes b/samples/java/jniviewer/.gitattributes
deleted file mode 100644
index c275dc2521..0000000000
--- a/samples/java/jniviewer/.gitattributes
+++ /dev/null
@@ -1 +0,0 @@
-*.gradle eol=lf
diff --git a/samples/java/jniviewer/.gitignore b/samples/java/jniviewer/.gitignore
deleted file mode 100644
index 3328b0f384..0000000000
--- a/samples/java/jniviewer/.gitignore
+++ /dev/null
@@ -1,10 +0,0 @@
-/.gradle
-/.idea
-/build
-/gradle
-gradlew
-gradlew.bat
-/app/.cxx
-/app/build
-gradle.properties
-local.properties
diff --git a/samples/java/jniviewer/ReadMe.md b/samples/java/jniviewer/ReadMe.md
deleted file mode 100644
index d74dd7c4af..0000000000
--- a/samples/java/jniviewer/ReadMe.md
+++ /dev/null
@@ -1,45 +0,0 @@
-Android: 3D Viewer (Java|C++|Android SDK|JNI) {#samples_java_android_occt}
-==================
-
-This sample demonstrates simple way of using OCCT libraries in Android application written using Java.
-The sample could be found within OCCT repository in folder `/samples/java/jniviewer/`.
-
-The connection between Java and OCCT (C++) level is provided by proxy library, libTKJniSample.so, written in C++ with exported JNI methods of Java class OcctJniRenderer.
-The proxy library contains single C++ class OcctJni_Viewer encapsulating OCCT viewer and providing functionality to manipulate this viewer
-and to import OCCT shapes from several supported formats of CAD files (IGES, STEP, BREP).
-
-This sample demonstrates indirect method of wrapping C++ to Java using manually created proxy library.
-Alternative method is available, wrapping individual OCCT classes to Java equivalents so that their full API is available to Java user
-and the code can be programmed on Java level similarly to C++ one.
-See description of OCCT Java Wrapper in Advanced Samples and Tools on OCCT web site at
-https://www.opencascade.com/content/advanced-samples-and-tools
-
-@figure{samples_java_android_occt.jpg}
-
-Install Android Studio 4.0+ and install building tools (check Tools -> SDK Manager):
-- Android SDK (API level 21 or higher).
-- Android SDK build tools.
-- Android NDK r16 or higher (coming with CMake toolchain).
- Using NDK r18 or newer will require changing ANDROID_STL in project settings.
-- CMake 3.10+.
-
-Specify this folder location in Android Studio for opening project.
-You might need re-entering Android SDK explicitly in File -> Project Structure -> SDK Location settings (SDK, NDK, JDK locations).
-
-This sample expects OCCT to be already build - please refer to appropriate CMake building instructions in OCCT documentation.
-The following variables should be added into file gradle.properties (see gradle.properties.template as template):
-- `OCCT_ROOT` - path to OCCT installation folder.
-- `FREETYPE_ROOT` - path to FreeType installation folder.
-
-FreeImage is optional and does not required for this sample, however you should include all extra libraries used for OCCT building
-and load the explicitly from Java code within OcctJniActivity::loadNatives() method, including toolkits from OCCT itself in proper order:
-~~~~
- if (!loadLibVerbose ("TKernel", aLoaded, aFailed)
- || !loadLibVerbose ("TKMath", aLoaded, aFailed)
- || !loadLibVerbose ("TKG2d", aLoaded, aFailed)
-~~~~
-Note that C++ STL library is not part of Android system, and application must package this library as well as extra component ("gnustl_shared" by default - see also `ANDROID_STL`).
-
-After successful build via Build -> Rebuild Project, the application can be packaged to Android:
-- Deploy and run application on connected device or emulator directly from Android Studio using adb interface by menu items "Run" and "Debug". This would sign package with debug certificate.
-- Prepare signed end-user package using wizard Build -> Generate signed APK.
diff --git a/samples/java/jniviewer/app/build.gradle b/samples/java/jniviewer/app/build.gradle
deleted file mode 100644
index 10014ce9ac..0000000000
--- a/samples/java/jniviewer/app/build.gradle
+++ /dev/null
@@ -1,48 +0,0 @@
-apply plugin: 'com.android.application'
-
-android {
- compileSdkVersion 21
- buildToolsVersion "30.0.0"
-
- defaultConfig {
- applicationId "com.opencascade.jnisample"
- minSdkVersion 21
- targetSdkVersion 26
-
- ndk {
- abiFilters "arm64-v8a"
- }
-
- externalNativeBuild {
- cmake {
- arguments "-DOCCT_ROOT=" + OCCT_ROOT,
- "-DFREETYPE_ROOT=" + FREETYPE_ROOT,
- "-DANDROID_STL=gnustl_shared"
- }
- }
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
- }
- }
-
- sourceSets {
- main {
- manifest.srcFile 'src/main/AndroidManifest.xml'
- assets.srcDirs = [OCCT_ROOT + "/src"]
- }
- }
-
- externalNativeBuild {
- cmake {
- path "src/main/jni/CMakeLists.txt"
- }
- }
-}
-
-dependencies {
- implementation fileTree(dir: 'java/com/opencascade/jnisample', include: ['*.jar'])
-}
diff --git a/samples/java/jniviewer/app/src/main/AndroidManifest.xml b/samples/java/jniviewer/app/src/main/AndroidManifest.xml
deleted file mode 100644
index 4813d0a6d1..0000000000
--- a/samples/java/jniviewer/app/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniActivity.java b/samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniActivity.java
deleted file mode 100644
index d75708abfa..0000000000
--- a/samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniActivity.java
+++ /dev/null
@@ -1,861 +0,0 @@
-// Copyright (c) 2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-package com.opencascade.jnisample;
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.util.Arrays;
-import java.util.List;
-
-import android.app.Activity;
-import android.content.Context;
-
-import android.content.Intent;
-import android.content.res.AssetManager;
-import android.content.res.Configuration;
-import android.content.res.Resources;
-import android.graphics.Point;
-import android.graphics.drawable.Drawable;
-import android.net.Uri;
-import android.os.Bundle;
-import android.os.Environment;
-
-import android.text.Html;
-import android.text.Html.ImageGetter;
-import android.text.Spanned;
-import android.util.TypedValue;
-import android.view.Display;
-import android.view.Gravity;
-import android.view.MotionEvent;
-import android.view.View;
-import android.view.View.OnClickListener;
-import android.view.ViewGroup;
-import android.widget.ImageButton;
-import android.widget.LinearLayout;
-import android.view.ViewGroup.LayoutParams;
-import android.widget.TextView;
-import android.widget.Toast;
-
-//! Main activity
-public class OcctJniActivity extends Activity implements OnClickListener
-{
-
- //! Auxiliary method to print temporary info messages
- public static void printShortInfo (Activity theActivity,
- CharSequence theInfo)
- {
- Context aCtx = theActivity.getApplicationContext();
- Toast aToast = Toast.makeText (aCtx, theInfo, Toast.LENGTH_LONG);
- aToast.show();
- }
-
- //! Load single native library
- private static boolean loadLibVerbose (String theLibName,
- StringBuilder theLoadedInfo,
- StringBuilder theFailedInfo)
- {
- try
- {
- System.loadLibrary (theLibName);
- theLoadedInfo.append ("Info: native library \"");
- theLoadedInfo.append (theLibName);
- theLoadedInfo.append ("\" has been loaded\n");
- return true;
- }
- catch (java.lang.UnsatisfiedLinkError theError)
- {
- theFailedInfo.append ("Error: native library \"");
- theFailedInfo.append (theLibName);
- theFailedInfo.append ("\" is unavailable:\n " + theError.getMessage());
- return false;
- }
- catch (SecurityException theError)
- {
- theFailedInfo.append ("Error: native library \"");
- theFailedInfo.append (theLibName);
- theFailedInfo.append ("\" can not be loaded for security reasons:\n " + theError.getMessage());
- return false;
- }
- }
-
- public static boolean wasNativesLoadCalled = false;
- public static boolean areNativeLoaded = false;
- public static String nativeLoaded = "";
- public static String nativeFailed = "";
-
- //! Auxiliary method to load native libraries
- public boolean loadNatives()
- {
- if (wasNativesLoadCalled)
- {
- return areNativeLoaded;
- }
- wasNativesLoadCalled = true;
- StringBuilder aLoaded = new StringBuilder();
- StringBuilder aFailed = new StringBuilder();
-
- // copy OCCT resources
- String aResFolder = getFilesDir().getAbsolutePath();
- copyAssetFolder (getAssets(), "src/SHMessage", aResFolder + "/SHMessage");
- copyAssetFolder (getAssets(), "src/XSMessage", aResFolder + "/XSMessage");
-
- // C++ runtime
- loadLibVerbose ("gnustl_shared", aLoaded, aFailed);
-
- // 3rd-parties
- loadLibVerbose ("freetype", aLoaded, aFailed);
- loadLibVerbose ("freeimage", aLoaded, aFailed);
-
- if (// OCCT modeling
- !loadLibVerbose ("TKernel", aLoaded, aFailed)
- || !loadLibVerbose ("TKMath", aLoaded, aFailed)
- || !loadLibVerbose ("TKG2d", aLoaded, aFailed)
- || !loadLibVerbose ("TKG3d", aLoaded, aFailed)
- || !loadLibVerbose ("TKGeomBase", aLoaded, aFailed)
- || !loadLibVerbose ("TKBRep", aLoaded, aFailed)
- || !loadLibVerbose ("TKGeomAlgo", aLoaded, aFailed)
- || !loadLibVerbose ("TKTopAlgo", aLoaded, aFailed)
- || !loadLibVerbose ("TKShHealing", aLoaded, aFailed)
- || !loadLibVerbose ("TKMesh", aLoaded, aFailed)
- // exchange
- || !loadLibVerbose ("TKPrim", aLoaded, aFailed)
- || !loadLibVerbose ("TKBO", aLoaded, aFailed)
- || !loadLibVerbose ("TKBool", aLoaded, aFailed)
- || !loadLibVerbose ("TKFillet", aLoaded, aFailed)
- || !loadLibVerbose ("TKOffset", aLoaded, aFailed)
- || !loadLibVerbose ("TKXSBase", aLoaded, aFailed)
- || !loadLibVerbose ("TKDEIGES", aLoaded, aFailed)
- || !loadLibVerbose ("TKDESTEP", aLoaded, aFailed)
- // OCCT Visualization
- || !loadLibVerbose ("TKService", aLoaded, aFailed)
- || !loadLibVerbose ("TKHLR", aLoaded, aFailed)
- || !loadLibVerbose ("TKV3d", aLoaded, aFailed)
- || !loadLibVerbose ("TKOpenGles", aLoaded, aFailed)
- // application code
- || !loadLibVerbose ("TKJniSample", aLoaded, aFailed))
- {
- nativeLoaded = aLoaded.toString();
- nativeFailed = aFailed.toString();
- areNativeLoaded = false;
- //exitWithError (theActivity, "Broken apk?\n" + theFailedInfo);
- return false;
- }
- nativeLoaded = aLoaded.toString();
- areNativeLoaded = true;
- return true;
- }
-
- //! Create activity
- @Override protected void onCreate (Bundle theBundle)
- {
- super.onCreate (theBundle);
-
- boolean isLoaded = loadNatives();
- if (!isLoaded)
- {
- printShortInfo (this, nativeFailed);
- OcctJniLogger.postMessage (nativeLoaded + "\n" + nativeFailed);
- }
-
- setContentView (R.layout.activity_main);
-
- myOcctView = (OcctJniView )findViewById (R.id.custom_view);
- myMessageTextView = (TextView )findViewById (R.id.message_view);
- OcctJniLogger.setTextView (myMessageTextView);
-
- createViewAndButtons (Configuration.ORIENTATION_LANDSCAPE);
-
- myButtonPreferSize = defineButtonSize ((LinearLayout )findViewById (R.id.panel_menu));
- ImageButton aScrollBtn = (ImageButton )findViewById (R.id.scroll_btn);
- aScrollBtn.setY (myButtonPreferSize);
- aScrollBtn.setOnTouchListener (new View.OnTouchListener()
- {
- @Override
- public boolean onTouch (View theView, MotionEvent theEvent)
- {
- return onScrollBtnTouch (theView, theEvent);
- }
- });
-
- onConfigurationChanged (getResources().getConfiguration());
-
- Intent anIntent = getIntent();
- Uri aDataUrl = anIntent != null ? anIntent.getData() : null;
- String aDataPath = aDataUrl != null ? aDataUrl.getPath() : "";
- myOcctView.open (aDataPath);
- myLastPath = aDataPath;
-
- myContext = new android.content.ContextWrapper (this);
- myContext.getExternalFilesDir (null);
- }
-
- //! Handle scroll events
- private boolean onScrollBtnTouch (View theView,
- MotionEvent theEvent)
- {
- switch (theEvent.getAction())
- {
- case MotionEvent.ACTION_DOWN:
- {
- LinearLayout aPanelMenu = (LinearLayout )findViewById (R.id.panel_menu);
- boolean isLandscape = (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE);
- if (aPanelMenu.getVisibility() == View.VISIBLE)
- {
- aPanelMenu.setVisibility (View.GONE);
- if (!isLandscape)
- {
- ((ImageButton )theView).setImageResource (R.drawable.open_p);
- theView.setY (0);
- }
- else
- {
- ((ImageButton )theView).setImageResource (R.drawable.open_l);
- theView.setX (0);
- }
- }
- else
- {
- aPanelMenu.setVisibility (View.VISIBLE);
- if (!isLandscape)
- {
- ((ImageButton )theView).setImageResource (R.drawable.close_p);
- theView.setY (myButtonPreferSize);
- }
- else
- {
- ((ImageButton )theView).setImageResource (R.drawable.close_l);
- theView.setX (myButtonPreferSize);
- }
- }
- break;
- }
- }
- return false;
- }
-
- //! Initialize views and buttons
- private void createViewAndButtons (int theOrientation)
- {
- // open button
- ImageButton anOpenButton = (ImageButton )findViewById (R.id.open);
- anOpenButton.setOnClickListener (this);
-
- // fit all
- ImageButton aFitAllButton = (ImageButton )findViewById (R.id.fit);
- aFitAllButton.setOnClickListener (this);
- aFitAllButton.setOnTouchListener (new View.OnTouchListener()
- {
- @Override
- public boolean onTouch (View theView, MotionEvent theEvent)
- {
- return onTouchButton (theView, theEvent);
- }
- });
-
- // message
- ImageButton aMessageButton = (ImageButton )findViewById (R.id.message);
- aMessageButton.setOnClickListener (this);
-
- // info
- ImageButton anInfoButton = (ImageButton )findViewById (R.id.info);
- anInfoButton.setOnClickListener (this);
-
- // font for text view
- TextView anInfoView = (TextView )findViewById (R.id.info_view);
- anInfoView.setTextSize (TypedValue.COMPLEX_UNIT_SP, 18);
-
- // add submenu buttons
- createSubmenuBtn (R.id.view, R.id.view_group,
- Arrays.asList (R.id.proj_front, R.id.proj_top, R.id.proj_left,
- R.id.proj_back, R.id.proj_bottom, R.id.proj_right),
- Arrays.asList (R.drawable.proj_front, R.drawable.proj_top, R.drawable.proj_left,
- R.drawable.proj_back, R.drawable.proj_bottom, R.drawable.proj_right),
- 4);
- }
-
- @Override protected void onNewIntent (Intent theIntent)
- {
- super.onNewIntent (theIntent);
- setIntent (theIntent);
- }
-
- @Override protected void onDestroy()
- {
- super.onDestroy();
- OcctJniLogger.setTextView (null);
- }
-
- @Override protected void onPause()
- {
- super.onPause();
- myOcctView.onPause();
- }
-
- @Override protected void onResume()
- {
- super.onResume();
- myOcctView.onResume();
-
- Intent anIntent = getIntent();
- Uri aDataUrl = anIntent != null ? anIntent.getData() : null;
- String aDataPath = aDataUrl != null ? aDataUrl.getPath() : "";
- if (!aDataPath.equals (myLastPath))
- {
- myOcctView.open (aDataPath);
- myLastPath = aDataPath;
- }
- }
-
- //! Copy folder from assets
- private boolean copyAssetFolder (AssetManager theAssetMgr,
- String theAssetFolder,
- String theFolderPathTo)
- {
- try
- {
- String[] aFiles = theAssetMgr.list (theAssetFolder);
- File aFolder = new File (theFolderPathTo);
- aFolder.mkdirs();
- boolean isOk = true;
- for (String aFileIter : aFiles)
- {
- if (aFileIter.contains ("."))
- {
- isOk &= copyAsset (theAssetMgr,
- theAssetFolder + "/" + aFileIter,
- theFolderPathTo + "/" + aFileIter);
- }
- else
- {
- isOk &= copyAssetFolder (theAssetMgr,
- theAssetFolder + "/" + aFileIter,
- theFolderPathTo + "/" + aFileIter);
- }
- }
- return isOk;
- }
- catch (Exception theError)
- {
- theError.printStackTrace();
- return false;
- }
- }
-
- //! Copy single file from assets
- private boolean copyAsset (AssetManager theAssetMgr,
- String thePathFrom,
- String thePathTo)
- {
- try
- {
- InputStream aStreamIn = theAssetMgr.open (thePathFrom);
- File aFileTo = new File (thePathTo);
- aFileTo.createNewFile();
- OutputStream aStreamOut = new FileOutputStream (thePathTo);
- copyStreamContent (aStreamIn, aStreamOut);
- aStreamIn.close();
- aStreamIn = null;
- aStreamOut.flush();
- aStreamOut.close();
- aStreamOut = null;
- return true;
- }
- catch (Exception theError)
- {
- theError.printStackTrace();
- return false;
- }
- }
-
- //! Copy single file
- private static void copyStreamContent (InputStream theIn,
- OutputStream theOut) throws IOException
- {
- byte[] aBuffer = new byte[1024];
- int aNbReadBytes = 0;
- while ((aNbReadBytes = theIn.read (aBuffer)) != -1)
- {
- theOut.write (aBuffer, 0, aNbReadBytes);
- }
- }
-
- //! Show/hide text view
- private void switchTextView (TextView theTextView,
- ImageButton theClickedBtn,
- boolean theToSwitchOn)
- {
- if (theTextView != null
- && theTextView.getVisibility() == View.GONE
- && theToSwitchOn)
- {
- theTextView.setVisibility (View.VISIBLE);
- theClickedBtn.setBackgroundColor (getResources().getColor(R.color.pressedBtnColor));
- setTextViewPosition (theTextView);
- }
- else
- {
- theTextView.setVisibility (View.GONE);
- theClickedBtn.setBackgroundColor (getResources().getColor (R.color.btnColor));
- }
- }
-
- //! Setup text view position
- private void setTextViewPosition (TextView theTextView)
- {
- if (theTextView.getVisibility() != View.VISIBLE)
- {
- return;
- }
-
- if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE)
- {
- theTextView.setX (myButtonPreferSize);
- theTextView.setY (0);
- }
- else
- {
- theTextView.setX (0);
- theTextView.setY (myButtonPreferSize);
- }
- }
-
- @Override
- public void onClick (View theButton)
- {
- ImageButton aClickedBtn = (ImageButton )theButton;
- switch (aClickedBtn.getId())
- {
- case R.id.message:
- {
- switchTextView ((TextView )findViewById (R.id.info_view),
- (ImageButton )findViewById (R.id.info), false);
- switchTextView (myMessageTextView, aClickedBtn, true);
- return;
- }
- case R.id.info:
- {
- String aText = getString (R.string.info_html);
- aText = String.format (aText, cppOcctMajorVersion(), cppOcctMinorVersion(), cppOcctMicroVersion());
- Spanned aSpanned = Html.fromHtml (aText, new ImageGetter()
- {
- @Override
- public Drawable getDrawable (String theSource)
- {
- Resources aResources = getResources();
- int anId = aResources.getIdentifier (theSource, "drawable", getPackageName());
- Drawable aRes = aResources.getDrawable (anId);
- aRes.setBounds (0, 0, aRes.getIntrinsicWidth(), aRes.getIntrinsicHeight());
- return aRes;
- }
- }, null);
-
- TextView anInfoView = (TextView )findViewById (R.id.info_view);
- anInfoView.setText (aSpanned);
- switchTextView (myMessageTextView, (ImageButton ) findViewById (R.id.message), false);
- switchTextView (anInfoView, aClickedBtn, true);
- return;
- }
- case R.id.fit:
- {
- myOcctView.fitAll();
- return;
- }
- case R.id.proj_front:
- {
- myOcctView.setProj (OcctJniRenderer.TypeOfOrientation.Xpos);
- return;
- }
- case R.id.proj_left:
- {
- myOcctView.setProj (OcctJniRenderer.TypeOfOrientation.Yneg);
- return;
- }
- case R.id.proj_top:
- {
- myOcctView.setProj (OcctJniRenderer.TypeOfOrientation.Zpos);
- return;
- }
- case R.id.proj_back:
- {
- myOcctView.setProj (OcctJniRenderer.TypeOfOrientation.Xneg);
- return;
- }
- case R.id.proj_right:
- {
- myOcctView.setProj (OcctJniRenderer.TypeOfOrientation.Ypos);
- return;
- }
- case R.id.proj_bottom:
- {
- myOcctView.setProj (OcctJniRenderer.TypeOfOrientation.Zneg);
- return;
- }
- case R.id.open:
- {
- File aPath = Environment.getExternalStorageDirectory();
- aClickedBtn.setBackgroundColor (getResources().getColor(R.color.pressedBtnColor));
- if (myFileOpenDialog == null)
- {
- // should be requested on runtime since API level 26 (Android 8)
- askUserPermission (android.Manifest.permission.WRITE_EXTERNAL_STORAGE, null); // for accessing SD card
-
- myFileOpenDialog = new OcctJniFileDialog (this, aPath);
- myFileOpenDialog.setFileEndsWith (".brep");
- myFileOpenDialog.setFileEndsWith (".rle");
- myFileOpenDialog.setFileEndsWith (".iges");
- myFileOpenDialog.setFileEndsWith (".igs");
- myFileOpenDialog.setFileEndsWith (".step");
- myFileOpenDialog.setFileEndsWith (".stp");
- myFileOpenDialog.addFileListener (new OcctJniFileDialog.FileSelectedListener()
- {
- public void fileSelected (File theFile)
- {
- if (theFile != null && myOcctView != null)
- {
- myOcctView.open (theFile.getPath());
- }
- }
- });
- myFileOpenDialog.addDialogDismissedListener (new OcctJniFileDialog.DialogDismissedListener()
- {
- @Override
- public void dialogDismissed()
- {
- ImageButton openButton = (ImageButton )findViewById (R.id.open);
- openButton.setBackgroundColor (getResources().getColor(R.color.btnColor));
- }
- });
- }
- myFileOpenDialog.showDialog();
- return;
- }
- }
- }
-
- private void createSubmenuBtn (int theParentBtnId,
- int theParentLayoutId,
- final List theNewButtonIds,
- final List theNewButtonImageIds,
- int thePosition)
- {
- int aPosInList = 0;
- final ImageButton aParentBtn = (ImageButton )findViewById (theParentBtnId);
-
- ViewGroup.LayoutParams aParams = null;
- LinearLayout parentLayout = (LinearLayout ) findViewById (theParentLayoutId);
- for (Integer newButtonId : theNewButtonIds)
- {
- ImageButton aNewButton = (ImageButton )findViewById (newButtonId);
- if (aNewButton == null)
- {
- aNewButton = (ImageButton )new ImageButton (this);
- aNewButton.setId (newButtonId);
- aNewButton.setImageResource (theNewButtonImageIds.get (aPosInList));
- aNewButton.setLayoutParams (aParams);
- parentLayout.addView (aNewButton);
- }
-
- aNewButton.setOnClickListener (this);
- aNewButton.setVisibility (View.GONE);
-
- aNewButton.setOnTouchListener (new View.OnTouchListener()
- {
- @Override
- public boolean onTouch (View theView, MotionEvent theEvent)
- {
- return onTouchButton (theView, theEvent);
- }
- });
- ++aPosInList;
- }
-
- if (aParentBtn != null)
- {
- aParentBtn.setOnTouchListener (null);
- aParentBtn.setOnTouchListener (new View.OnTouchListener()
- {
- @Override
- public boolean onTouch (View theView, MotionEvent theEvent)
- {
- if (theEvent.getAction () == MotionEvent.ACTION_DOWN)
- {
- Boolean isVisible = false;
- for (Integer aNewButtonId : theNewButtonIds)
- {
- ImageButton anBtn = (ImageButton )findViewById (aNewButtonId);
- if (anBtn != null)
- {
- if (anBtn.getVisibility() == View.GONE)
- {
- anBtn.setVisibility (View.VISIBLE);
- isVisible = true;
- }
- else
- {
- anBtn.setVisibility (View.GONE);
- }
- }
- }
- aParentBtn.setBackgroundColor (!isVisible ? getResources().getColor(R.color.btnColor) : getResources().getColor(R.color.pressedBtnColor));
- }
- return false;
- }
- });
- }
- }
-
- //! Implements onTouch functionality
- private boolean onTouchButton (View theView,
- MotionEvent theEvent)
- {
- switch (theEvent.getAction())
- {
- case MotionEvent.ACTION_DOWN:
- ((ImageButton )theView).setBackgroundColor (getResources().getColor (R.color.pressedBtnColor));
- break;
- case MotionEvent.ACTION_UP:
- ((ImageButton )theView).setBackgroundColor (getResources().getColor (R.color.btnColor));
- break;
- }
- return false;
- }
-
- //! Handle configuration change event
- @Override
- public void onConfigurationChanged (Configuration theNewConfig)
- {
- super.onConfigurationChanged (theNewConfig);
- LinearLayout aLayoutPanelMenu = (LinearLayout )findViewById (R.id.panel_menu);
- LayoutParams aPanelMenuLayoutParams = aLayoutPanelMenu.getLayoutParams();
-
- LinearLayout aLayoutViewGroup = (LinearLayout )findViewById (R.id.view_group);
- LayoutParams aViewGroupLayoutParams = aLayoutViewGroup.getLayoutParams();
- ImageButton aScrollBtn = (ImageButton )findViewById (R.id.scroll_btn);
- LayoutParams aScrollBtnLayoutParams = aScrollBtn.getLayoutParams();
-
- myButtonPreferSize = defineButtonSize ((LinearLayout )findViewById (R.id.panel_menu));
- defineButtonSize ((LinearLayout )findViewById (R.id.view_group));
-
- switch (theNewConfig.orientation)
- {
- case Configuration.ORIENTATION_PORTRAIT:
- {
- setHorizontal (aLayoutPanelMenu, aPanelMenuLayoutParams);
- setHorizontal (aLayoutViewGroup, aViewGroupLayoutParams);
- aLayoutViewGroup.setGravity (Gravity.BOTTOM);
-
- aScrollBtnLayoutParams.height = LayoutParams.WRAP_CONTENT;
- aScrollBtnLayoutParams.width = LayoutParams.MATCH_PARENT;
- aScrollBtn.setLayoutParams (aScrollBtnLayoutParams);
- if (aLayoutPanelMenu.getVisibility() == View.VISIBLE)
- {
- aScrollBtn.setImageResource (R.drawable.close_p);
- aScrollBtn.setY (myButtonPreferSize);
- aScrollBtn.setX (0);
- }
- else
- {
- aScrollBtn.setImageResource (R.drawable.open_p);
- aScrollBtn.setY (0);
- aScrollBtn.setX (0);
- }
- break;
- }
- case Configuration.ORIENTATION_LANDSCAPE:
- {
- setVertical (aLayoutPanelMenu, aPanelMenuLayoutParams);
- setVertical (aLayoutViewGroup, aViewGroupLayoutParams);
- aLayoutViewGroup.setGravity (Gravity.RIGHT);
-
- aScrollBtnLayoutParams.height = LayoutParams.MATCH_PARENT;
- aScrollBtnLayoutParams.width = LayoutParams.WRAP_CONTENT;
- aScrollBtn.setLayoutParams (aScrollBtnLayoutParams);
- if (aLayoutPanelMenu.getVisibility() == View.VISIBLE)
- {
- aScrollBtn.setImageResource (R.drawable.close_l);
- aScrollBtn.setX (myButtonPreferSize);
- aScrollBtn.setY (0);
- }
- else
- {
- aScrollBtn.setImageResource (R.drawable.open_l);
- aScrollBtn.setY (0);
- aScrollBtn.setX (0);
- }
- break;
- }
- }
- setTextViewPosition (myMessageTextView);
- setTextViewPosition ((TextView )findViewById (R.id.info_view));
- }
-
- private void setHorizontal (LinearLayout theLayout,
- LayoutParams theLayoutParams)
- {
- theLayout.setOrientation (LinearLayout.HORIZONTAL);
- theLayoutParams.height = LayoutParams.WRAP_CONTENT;
- theLayoutParams.width = LayoutParams.MATCH_PARENT;
- theLayout.setLayoutParams (theLayoutParams);
- }
-
- private void setVertical (LinearLayout theLayout,
- LayoutParams theLayoutParams)
- {
- theLayout.setOrientation (LinearLayout.VERTICAL);
- theLayoutParams.height = LayoutParams.MATCH_PARENT;
- theLayoutParams.width = LayoutParams.WRAP_CONTENT;
- theLayout.setLayoutParams (theLayoutParams);
- }
-
- //! Define button size
- private int defineButtonSize (LinearLayout theLayout)
- {
- boolean isLandscape = getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE;
- Display aDisplay = getWindowManager().getDefaultDisplay();
- Point aDispPnt = new Point();
- aDisplay.getSize (aDispPnt);
-
- int aNbChildren = theLayout.getChildCount();
- int aHeight = aDispPnt.y / aNbChildren;
- int aWidth = aDispPnt.x / aNbChildren;
- int aResultSize = 0;
- for (int aChildIter = 0; aChildIter < aNbChildren; ++aChildIter)
- {
- View aView = theLayout.getChildAt (aChildIter);
- if (aView instanceof ImageButton)
- {
- ImageButton aButton = (ImageButton )aView;
- if (isLandscape)
- {
- aButton.setMinimumWidth (aHeight);
- }
- else
- {
- aButton.setMinimumHeight (aWidth);
- }
- }
- }
- if (isLandscape)
- {
- aResultSize = aHeight;
- }
- else
- {
- aResultSize = aWidth;
- }
- return aResultSize;
- }
-
- //! Request user permission.
- private void askUserPermission (String thePermission, String theRationale)
- {
- // Dynamically load methods introduced by API level 23.
- // On older system this permission is granted by user during application installation.
- java.lang.reflect.Method aMetPtrCheckSelfPermission, aMetPtrRequestPermissions, aMetPtrShouldShowRequestPermissionRationale;
- try
- {
- aMetPtrCheckSelfPermission = myContext.getClass().getMethod ("checkSelfPermission", String.class);
- aMetPtrRequestPermissions = getClass().getMethod ("requestPermissions", String[].class, int.class);
- aMetPtrShouldShowRequestPermissionRationale = getClass().getMethod ("shouldShowRequestPermissionRationale", String.class);
- }
- catch (SecurityException theError)
- {
- postMessage ("Unable to find permission methods:\n" + theError.getMessage(), Message_Trace);
- return;
- }
- catch (NoSuchMethodException theError)
- {
- postMessage ("Unable to find permission methods:\n" + theError.getMessage(), Message_Trace);
- return;
- }
-
- try
- {
- int isAlreadyGranted = (Integer )aMetPtrCheckSelfPermission.invoke (myContext, thePermission);
- if (isAlreadyGranted == android.content.pm.PackageManager.PERMISSION_GRANTED)
- {
- return;
- }
-
- boolean toShowInfo = theRationale != null && (Boolean )aMetPtrShouldShowRequestPermissionRationale.invoke (this, thePermission);
- if (toShowInfo)
- {
- postMessage (theRationale, Message_Info);
- }
-
- // show dialog to user
- aMetPtrRequestPermissions.invoke (this, new String[]{thePermission}, 0);
- }
- catch (IllegalArgumentException theError)
- {
- postMessage ("Internal error: Unable to call permission method:\n" + theError.getMessage(), Message_Fail);
- return;
- }
- catch (IllegalAccessException theError)
- {
- postMessage ("Internal error: Unable to call permission method:\n" + theError.getMessage(), Message_Fail);
- return;
- }
- catch (java.lang.reflect.InvocationTargetException theError)
- {
- postMessage ("Internal error: Unable to call permission method:\n" + theError.getMessage(), Message_Fail);
- return;
- }
- }
-
- //! Message gravity.
- private static final int Message_Trace = 0;
- private static final int Message_Info = 1;
- private static final int Message_Warning = 2;
- private static final int Message_Alarm = 3;
- private static final int Message_Fail = 4;
-
- //! Auxiliary method to show info message.
- public void postMessage (String theMessage, int theGravity)
- {
- if (theGravity == Message_Trace)
- {
- return;
- }
-
- final String aText = theMessage;
- final Context aCtx = this;
- this.runOnUiThread (new Runnable() { public void run() {
- android.app.AlertDialog.Builder aBuilder = new android.app.AlertDialog.Builder (aCtx);
- aBuilder.setMessage (aText).setNegativeButton ("OK", null);
- android.app.AlertDialog aDialog = aBuilder.create();
- aDialog.show();
- }});
- }
-
- //! OCCT major version
- private native long cppOcctMajorVersion();
-
- //! OCCT minor version
- private native long cppOcctMinorVersion();
-
- //! OCCT micro version
- private native long cppOcctMicroVersion();
-
- private OcctJniView myOcctView;
- private TextView myMessageTextView;
- private String myLastPath;
- private android.content.ContextWrapper myContext = null;
- private OcctJniFileDialog myFileOpenDialog;
- private int myButtonPreferSize = 65;
-
-}
diff --git a/samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniFileDialog.java b/samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniFileDialog.java
deleted file mode 100644
index e12cc1aa2b..0000000000
--- a/samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniFileDialog.java
+++ /dev/null
@@ -1,376 +0,0 @@
-// Copyright (c) 2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-package com.opencascade.jnisample;
-
-import java.io.File;
-import java.io.FilenameFilter;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import com.opencascade.jnisample.ListenerList.FireHandler;
-
-import android.app.Activity;
-import android.app.AlertDialog;
-import android.app.Dialog;
-import android.content.DialogInterface;
-import android.graphics.Color;
-import android.os.Environment;
-import android.view.View;
-import android.view.ViewGroup.LayoutParams;
-import android.widget.AdapterView;
-import android.widget.ArrayAdapter;
-import android.widget.EditText;
-import android.widget.LinearLayout;
-import android.widget.ListView;
-import android.widget.Spinner;
-
-//! Simple open file dialog
-public class OcctJniFileDialog
-{
-
- public enum DialogMode
- {
- FileOpen, FileExport, FileSave
- }
-
- private static final String PARENT_DIR = "..";
- private String[] myFileList;
- private File myCurrentPath;
- private DialogMode myDialogMode = DialogMode.FileOpen;
-
- private ListenerList myFileListenerList = new ListenerList();
- private ListenerList myDialogDismissedList = new ListenerList();
- private final Activity myActivity;
- private List myFileEndsWith;
- private EditText myFileNameInput;
- private Spinner myFileExtSpinner;
- int myCurrentExtPositionInList = 0;
-
- public interface FileSelectedListener
- {
- void fileSelected (File theFile);
- }
-
- public interface DialogDismissedListener
- {
- void dialogDismissed();
- }
-
- //! Main constructor.
- public OcctJniFileDialog (Activity theActivity,
- File thePath)
- {
- myActivity = theActivity;
- if (!thePath.exists())
- {
- thePath = Environment.getExternalStorageDirectory();
- }
- loadFileList (thePath);
- }
-
- //! Create new dialog
- public Dialog createFileDialog()
- {
- final Object[] anObjWrapper = new Object[1];
- Dialog aDialog = null;
- AlertDialog.Builder aBuilder = new AlertDialog.Builder (myActivity);
-
- aBuilder.setTitle (myCurrentPath.getPath());
- LinearLayout aTitleLayout = new LinearLayout (myActivity);
- aTitleLayout.setLayoutParams (new LinearLayout.LayoutParams (LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
- aTitleLayout.setOrientation (LinearLayout.VERTICAL);
-
- ListView list = new ListView (myActivity);
- list.setScrollingCacheEnabled(false);
- list.setBackgroundColor (Color.parseColor ("#33B5E5"));
-
- list.setAdapter (new ArrayAdapter (myActivity, android.R.layout.select_dialog_item, myFileList));
- list.setOnItemClickListener (new AdapterView.OnItemClickListener ()
- {
-
- public void onItemClick (AdapterView> arg0, View view, int pos, long id)
- {
- String fileChosen = myFileList[pos];
- File aChosenFile = getChosenFile (fileChosen);
- if (aChosenFile.isDirectory())
- {
- loadFileList (aChosenFile);
- ((Dialog )anObjWrapper[0]).cancel();
- ((Dialog )anObjWrapper[0]).dismiss();
- showDialog();
- }
- else
- {
- if (myDialogMode == DialogMode.FileOpen)
- {
- ((Dialog )anObjWrapper[0]).cancel();
- ((Dialog )anObjWrapper[0]).dismiss();
- fireFileSelectedEvent (aChosenFile);
- }
- else
- {
- myFileNameInput.setText (aChosenFile.getName());
- }
- }
- }
- });
- list.setLayoutParams (new LinearLayout.LayoutParams (LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT, 0.6f));
- aTitleLayout.addView (list);
-
- if (myDialogMode == DialogMode.FileSave
- || myDialogMode == DialogMode.FileExport)
- {
- myFileNameInput = new EditText (myActivity);
- myFileExtSpinner = new Spinner (myActivity);
- ArrayAdapter adapter = null;
- if (myDialogMode == DialogMode.FileExport)
- {
- adapter = ArrayAdapter.createFromResource (myActivity, R.array.ext_to_exp,
- android.R.layout.simple_spinner_item);
- }
- else
- {
- adapter = ArrayAdapter.createFromResource (myActivity, R.array.ext_to_save,
- android.R.layout.simple_spinner_item);
- }
- // Specify the layout to use when the list of choices appears
- adapter.setDropDownViewResource (android.R.layout.simple_spinner_dropdown_item);
- // Apply the adapter to the spinner
- myFileExtSpinner.setAdapter (adapter);
- myFileExtSpinner.setSelection (myCurrentExtPositionInList);
-
- myFileExtSpinner.setOnItemSelectedListener (new AdapterView.OnItemSelectedListener()
- {
-
- @Override
- public void onNothingSelected (AdapterView> theParentView)
- {
- // your code here
- }
-
- @Override
- public void onItemSelected (AdapterView> theParent, View theView, int thePosition, long theId)
- {
- if (myCurrentExtPositionInList != thePosition)
- {
- myCurrentExtPositionInList = thePosition;
- setFileEndsWith (Arrays.asList (myFileExtSpinner.getSelectedItem().toString()));
- loadFileList (myCurrentPath);
- ((Dialog )anObjWrapper[0]).cancel();
- ((Dialog )anObjWrapper[0]).dismiss();
- showDialog();
- }
- }
- });
-
- myFileExtSpinner.setLayoutParams (new LinearLayout.LayoutParams (LayoutParams.MATCH_PARENT,
- LayoutParams.WRAP_CONTENT, 0.2f));
- // titleLayout.addView(fileExtSpinner);
- myFileNameInput.setLayoutParams (new LinearLayout.LayoutParams (LayoutParams.MATCH_PARENT,
- LayoutParams.WRAP_CONTENT, 0.2f));
- LinearLayout aControlsView = new LinearLayout (myActivity);
-
- aControlsView.addView (myFileNameInput);
- aControlsView.addView (myFileExtSpinner);
-
- aTitleLayout.addView (aControlsView);
- aBuilder.setView (aTitleLayout);
- aBuilder.setPositiveButton ("OK", new DialogInterface.OnClickListener()
- {
- @Override
- public void onClick (DialogInterface theDialog, int theWhich)
- {
- if (theWhich >= 0)
- {
- String aFileChosen = myFileList[theWhich];
- File aChosenFile = getChosenFile (aFileChosen);
- fireFileSelectedEvent (aChosenFile);
- }
- }
- }).setNegativeButton ("Cancel", null);
- }
- else
- {
- aBuilder.setNegativeButton ("Cancel", null);
- }
-
- aBuilder.setView (aTitleLayout);
-
- aDialog = aBuilder.show();
- aDialog.setOnDismissListener (new DialogInterface.OnDismissListener()
- {
- @Override
- public void onDismiss (DialogInterface theDialog)
- {
- fireDialogDismissedEvent();
- }
- });
- anObjWrapper[0] = aDialog;
- return aDialog;
- }
-
- public void addFileListener (FileSelectedListener theListener)
- {
- myFileListenerList.add (theListener);
- }
-
- public void addDialogDismissedListener (DialogDismissedListener theListener)
- {
- myDialogDismissedList.add (theListener);
- }
-
- //! Show file dialog
- public void showDialog()
- {
- createFileDialog().show();
- }
-
- private void fireFileSelectedEvent (final File theFile)
- {
- myFileListenerList.fireEvent (new FireHandler()
- {
- public void fireEvent (FileSelectedListener theListener)
- {
- theListener.fileSelected (theFile);
- }
- });
- }
-
- private void fireDialogDismissedEvent()
- {
- myDialogDismissedList.fireEvent (new FireHandler()
- {
- public void fireEvent (DialogDismissedListener theListener)
- {
- theListener.dialogDismissed();
- }
- });
- }
-
- private void loadFileList (File thePath)
- {
- myCurrentPath = thePath;
- List aList = new ArrayList();
- if (thePath.exists())
- {
- if (thePath.getParentFile() != null)
- {
- aList.add (PARENT_DIR);
- }
- FilenameFilter aFilter = new FilenameFilter()
- {
- public boolean accept (File theDir, String theFilename)
- {
- File aSel = new File (theDir, theFilename);
- if (!aSel.canRead())
- {
- return false;
- }
- boolean isEndWith = false;
- if (myFileEndsWith != null)
- {
- for (String aFileExtIter : myFileEndsWith)
- {
- if (theFilename.toLowerCase().endsWith (aFileExtIter))
- {
- isEndWith = true;
- break;
- }
- }
- }
- return isEndWith || aSel.isDirectory();
- }
- };
- String[] aFileList1 = thePath.list (aFilter);
- if (aFileList1 != null)
- {
- for (String aFileIter : aFileList1)
- {
- aList.add (aFileIter);
- }
- }
- }
- myFileList = (String[] )aList.toArray (new String[] {});
- }
-
- private File getChosenFile (String theFileChosen)
- {
- if (theFileChosen.equals (PARENT_DIR))
- return myCurrentPath.getParentFile();
- else
- return new File (myCurrentPath, theFileChosen);
- }
-
- public void setFileEndsWith (String fileEndsWith)
- {
- if (myFileEndsWith == null)
- {
- myFileEndsWith = new ArrayList();
- }
- if (myFileEndsWith.indexOf (fileEndsWith) == -1)
- {
- myFileEndsWith.add (fileEndsWith);
- }
- }
-
- public void setFileEndsWith (List theFileEndsWith)
- {
- myFileEndsWith = theFileEndsWith;
- }
-
- public DialogMode DialogMode()
- {
- return myDialogMode;
- }
-
- public void DialogMode (DialogMode theMode)
- {
- myDialogMode = theMode;
- }
-}
-
-class ListenerList
-{
- private List myListenerList = new ArrayList();
-
- public interface FireHandler
- {
- void fireEvent (L theListener);
- }
-
- public void add (L theListener)
- {
- myListenerList.add (theListener);
- }
-
- public void fireEvent (FireHandler theFireHandler)
- {
- List aCopy = new ArrayList (myListenerList);
- for (L anIter : aCopy)
- {
- theFireHandler.fireEvent (anIter);
- }
- }
-
- public void remove (L theListener)
- {
- myListenerList.remove (theListener);
- }
-
- public List getListenerList()
- {
- return myListenerList;
- }
-}
diff --git a/samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniLogger.java b/samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniLogger.java
deleted file mode 100644
index cc8b1e4942..0000000000
--- a/samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniLogger.java
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) 2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-package com.opencascade.jnisample;
-
-import java.util.concurrent.locks.ReentrantLock;
-
-import android.util.Log;
-import android.widget.TextView;
-
-//! Auxiliary class for logging messages
-public class OcctJniLogger
-{
-
- //! Setup text view
- public static void setTextView (TextView theTextView)
- {
- if (myTextView != null)
- {
- myLog = myTextView.getText().toString();
- }
-
- myTextView = theTextView;
- if (myTextView != null)
- {
- myTextView.setText (myLog);
- myLog = "";
- }
- }
-
- //! Interface implementation
- public static void postMessage (String theText)
- {
- final String aCopy = new String (theText);
- Log.e (myTag, theText);
-
- myMutex.lock();
- final TextView aView = myTextView;
- if (aView == null)
- {
- myLog += aCopy;
- myMutex.unlock();
- return;
- }
-
- aView.post (new Runnable()
- {
- public void run()
- {
- aView.setText (aView.getText() + aCopy + "\n");
- }
- });
- myMutex.unlock();
- }
-
- private static final String myTag = "occtJniViewer";
- private static final ReentrantLock myMutex = new ReentrantLock (true);
- private static TextView myTextView = null;
- private static String myLog = "";
-
-}
diff --git a/samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniRenderer.java b/samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniRenderer.java
deleted file mode 100644
index 66e6e82a0e..0000000000
--- a/samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniRenderer.java
+++ /dev/null
@@ -1,210 +0,0 @@
-// Copyright (c) 2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-package com.opencascade.jnisample;
-
-import javax.microedition.khronos.egl.EGLConfig;
-import javax.microedition.khronos.opengles.GL10;
-
-import android.opengl.GLSurfaceView;
-
-//! Wrapper for C++ OCCT viewer.
-public class OcctJniRenderer implements GLSurfaceView.Renderer
-{
-
- //! Wrapper for V3d_TypeOfOrientation
- enum TypeOfOrientation
- {
- Xpos, // front
- Ypos, // left
- Zpos, // top
- Xneg, // back
- Yneg, // right
- Zneg // bottom
- };
-
- //! Empty constructor.
- OcctJniRenderer (GLSurfaceView theView,
- float theScreenDensity)
- {
- myView = theView; // this makes cyclic dependency, but it is OK for JVM
- if (OcctJniActivity.areNativeLoaded)
- {
- myCppViewer = cppCreate (theScreenDensity);
- }
- }
-
- //! Open file.
- public void open (String thePath)
- {
- if (myCppViewer != 0)
- {
- cppOpen (myCppViewer, thePath);
- }
- }
-
- //! Update viewer.
- public void onDrawFrame (GL10 theGl)
- {
- if (myCppViewer != 0)
- {
- if (cppRedraw (myCppViewer))
- {
- myView.requestRender(); // this method is allowed from any thread
- }
- }
- }
-
- //! (re)initialize viewer.
- public void onSurfaceChanged (GL10 theGl, int theWidth, int theHeight)
- {
- if (myCppViewer != 0)
- {
- cppResize (myCppViewer, theWidth, theHeight);
- }
- }
-
- public void onSurfaceCreated (GL10 theGl, EGLConfig theEglConfig)
- {
- if (myCppViewer != 0)
- {
- cppInit (myCppViewer);
- }
- }
-
- //! Add touch point.
- public void onAddTouchPoint (int theId, float theX, float theY)
- {
- if (myCppViewer != 0)
- {
- cppAddTouchPoint (myCppViewer, theId, theX, theY);
- }
- }
-
- //! Update touch point.
- public void onUpdateTouchPoint (int theId, float theX, float theY)
- {
- if (myCppViewer != 0)
- {
- cppUpdateTouchPoint (myCppViewer, theId, theX, theY);
- }
- }
-
- //! Remove touch point.
- public void onRemoveTouchPoint (int theId)
- {
- if (myCppViewer != 0)
- {
- cppRemoveTouchPoint (myCppViewer, theId);
- }
- }
-
- //! Select in 3D Viewer.
- public void onSelectInViewer (float theX, float theY)
- {
- if (myCppViewer != 0)
- {
- cppSelectInViewer (myCppViewer, theX, theY);
- }
- }
-
- //! Fit All
- public void fitAll()
- {
- if (myCppViewer != 0)
- {
- cppFitAll (myCppViewer);
- }
- }
-
- //! Move camera
- public void setProj (TypeOfOrientation theProj)
- {
- if (myCppViewer == 0)
- {
- return;
- }
-
- switch (theProj)
- {
- case Xpos: cppSetXposProj (myCppViewer); break;
- case Ypos: cppSetYposProj (myCppViewer); break;
- case Zpos: cppSetZposProj (myCppViewer); break;
- case Xneg: cppSetXnegProj (myCppViewer); break;
- case Yneg: cppSetYnegProj (myCppViewer); break;
- case Zneg: cppSetZnegProj (myCppViewer); break;
- }
- }
-
- //! Post message to the text view.
- public void postMessage (String theText)
- {
- OcctJniLogger.postMessage (theText);
- }
-
- //! Create instance of C++ class
- private native long cppCreate (float theDispDensity);
-
- //! Destroy instance of C++ class
- private native void cppDestroy (long theCppPtr);
-
- //! Initialize OCCT viewer (steal OpenGL ES context bound to this thread)
- private native void cppInit (long theCppPtr);
-
- //! Resize OCCT viewer
- private native void cppResize (long theCppPtr, int theWidth, int theHeight);
-
- //! Open CAD file
- private native void cppOpen (long theCppPtr, String thePath);
-
- //! Add touch point
- private native void cppAddTouchPoint (long theCppPtr, int theId, float theX, float theY);
-
- //! Update touch point
- private native void cppUpdateTouchPoint (long theCppPtr, int theId, float theX, float theY);
-
- //! Remove touch point
- private native void cppRemoveTouchPoint (long theCppPtr, int theId);
-
- //! Select in 3D Viewer.
- private native void cppSelectInViewer (long theCppPtr, float theX, float theY);
-
- //! Redraw OCCT viewer
- //! Returns TRUE if more frames are requested.
- private native boolean cppRedraw (long theCppPtr);
-
- //! Fit All
- private native void cppFitAll (long theCppPtr);
-
- //! Move camera
- private native void cppSetXposProj (long theCppPtr);
-
- //! Move camera
- private native void cppSetYposProj (long theCppPtr);
-
- //! Move camera
- private native void cppSetZposProj (long theCppPtr);
-
- //! Move camera
- private native void cppSetXnegProj (long theCppPtr);
-
- //! Move camera
- private native void cppSetYnegProj (long theCppPtr);
-
- //! Move camera
- private native void cppSetZnegProj (long theCppPtr);
-
- private GLSurfaceView myView = null; //!< back reference to the View
- private long myCppViewer = 0; //!< pointer to c++ class instance
-
-}
diff --git a/samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniView.java b/samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniView.java
deleted file mode 100644
index 51e9b5dd1a..0000000000
--- a/samples/java/jniviewer/app/src/main/java/com/opencascade/jnisample/OcctJniView.java
+++ /dev/null
@@ -1,294 +0,0 @@
-// Copyright (c) 2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-package com.opencascade.jnisample;
-
-import android.app.ActionBar.LayoutParams;
-import android.content.Context;
-import android.graphics.PointF;
-import android.opengl.GLSurfaceView;
-import android.util.AttributeSet;
-import android.util.SparseArray;
-import android.view.MotionEvent;
-import android.widget.RelativeLayout;
-
-import javax.microedition.khronos.egl.EGL10;
-import javax.microedition.khronos.egl.EGLConfig;
-import javax.microedition.khronos.egl.EGLContext;
-import javax.microedition.khronos.egl.EGLDisplay;
-
-//! OpenGL ES 2.0+ view.
-//! Performs rendering in parallel thread.
-class OcctJniView extends GLSurfaceView
-{
-
- // ! Default constructor.
- public OcctJniView (Context theContext,
- AttributeSet theAttrs)
- {
- super (theContext, theAttrs);
-
- android.util.DisplayMetrics aDispInfo = theContext.getResources().getDisplayMetrics();
- myScreenDensity = aDispInfo.density;
-
- setPreserveEGLContextOnPause (true);
- setEGLContextFactory (new ContextFactory());
- setEGLConfigChooser (new ConfigChooser());
-
- RelativeLayout.LayoutParams aLParams = new RelativeLayout.LayoutParams (LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
- aLParams.addRule (RelativeLayout.ALIGN_TOP);
-
- myRenderer = new OcctJniRenderer (this, myScreenDensity);
- setRenderer (myRenderer);
- setRenderMode (GLSurfaceView.RENDERMODE_WHEN_DIRTY); // render on request to spare battery
- }
-
- //! Open file.
- public void open (String thePath)
- {
- final String aPath = thePath;
- queueEvent (new Runnable() { public void run() { myRenderer.open (aPath); }});
- requestRender();
- }
-
- //! Create OpenGL ES 2.0+ context
- private static class ContextFactory implements GLSurfaceView.EGLContextFactory
- {
- private static int EGL_CONTEXT_CLIENT_VERSION = 0x3098;
- public EGLContext createContext (EGL10 theEgl,
- EGLDisplay theEglDisplay,
- EGLConfig theEglConfig)
- {
- if (theEglConfig == null)
- {
- return null;
- }
-
- // reset EGL errors stack
- int anError = EGL10.EGL_SUCCESS;
- while ((anError = theEgl.eglGetError()) != EGL10.EGL_SUCCESS) {}
-
- int[] anAttribs = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL10.EGL_NONE };
- EGLContext aEglContext = theEgl.eglCreateContext (theEglDisplay, theEglConfig, EGL10.EGL_NO_CONTEXT, anAttribs);
-
- while ((anError = theEgl.eglGetError()) != EGL10.EGL_SUCCESS)
- {
- OcctJniLogger.postMessage ("Error: eglCreateContext() " + String.format ("0x%x", anError));
- }
- return aEglContext;
- }
-
- public void destroyContext (EGL10 theEgl,
- EGLDisplay theEglDisplay,
- EGLContext theEglContext)
- {
- theEgl.eglDestroyContext (theEglDisplay, theEglContext);
- }
- }
-
- //! Search for RGB24 config with depth and stencil buffers
- private static class ConfigChooser implements GLSurfaceView.EGLConfigChooser
- {
- //! Reset EGL errors stack
- private void popEglErrors (EGL10 theEgl)
- {
- int anError = EGL10.EGL_SUCCESS;
- while ((anError = theEgl.eglGetError()) != EGL10.EGL_SUCCESS)
- {
- OcctJniLogger.postMessage ("EGL Error: " + String.format ("0x%x", anError));
- }
- }
-
- //! Auxiliary method to dump EGL configuration - for debugging purposes
- @SuppressWarnings("unused")
- private void printConfig (EGL10 theEgl,
- EGLDisplay theEglDisplay,
- EGLConfig theEglConfig)
- {
- int[] THE_ATTRIBS =
- {
- EGL10.EGL_BUFFER_SIZE, EGL10.EGL_ALPHA_SIZE, EGL10.EGL_BLUE_SIZE, EGL10.EGL_GREEN_SIZE, EGL10.EGL_RED_SIZE, EGL10.EGL_DEPTH_SIZE, EGL10.EGL_STENCIL_SIZE,
- EGL10.EGL_CONFIG_CAVEAT,
- EGL10.EGL_CONFIG_ID,
- EGL10.EGL_LEVEL,
- EGL10.EGL_MAX_PBUFFER_HEIGHT, EGL10.EGL_MAX_PBUFFER_PIXELS, EGL10.EGL_MAX_PBUFFER_WIDTH,
- EGL10.EGL_NATIVE_RENDERABLE, EGL10.EGL_NATIVE_VISUAL_ID, EGL10.EGL_NATIVE_VISUAL_TYPE,
- 0x3030, // EGL10.EGL_PRESERVED_RESOURCES,
- EGL10.EGL_SAMPLES, EGL10.EGL_SAMPLE_BUFFERS,
- EGL10.EGL_SURFACE_TYPE,
- EGL10.EGL_TRANSPARENT_TYPE, EGL10.EGL_TRANSPARENT_RED_VALUE, EGL10.EGL_TRANSPARENT_GREEN_VALUE, EGL10.EGL_TRANSPARENT_BLUE_VALUE,
- 0x3039, 0x303A, // EGL10.EGL_BIND_TO_TEXTURE_RGB, EGL10.EGL_BIND_TO_TEXTURE_RGBA,
- 0x303B, 0x303C, // EGL10.EGL_MIN_SWAP_INTERVAL, EGL10.EGL_MAX_SWAP_INTERVAL
- EGL10.EGL_LUMINANCE_SIZE, EGL10.EGL_ALPHA_MASK_SIZE,
- EGL10.EGL_COLOR_BUFFER_TYPE, EGL10.EGL_RENDERABLE_TYPE,
- 0x3042 // EGL10.EGL_CONFORMANT
- };
- String[] THE_NAMES =
- {
- "EGL_BUFFER_SIZE", "EGL_ALPHA_SIZE", "EGL_BLUE_SIZE", "EGL_GREEN_SIZE", "EGL_RED_SIZE", "EGL_DEPTH_SIZE", "EGL_STENCIL_SIZE",
- "EGL_CONFIG_CAVEAT",
- "EGL_CONFIG_ID",
- "EGL_LEVEL",
- "EGL_MAX_PBUFFER_HEIGHT", "EGL_MAX_PBUFFER_PIXELS", "EGL_MAX_PBUFFER_WIDTH",
- "EGL_NATIVE_RENDERABLE", "EGL_NATIVE_VISUAL_ID", "EGL_NATIVE_VISUAL_TYPE",
- "EGL_PRESERVED_RESOURCES",
- "EGL_SAMPLES", "EGL_SAMPLE_BUFFERS",
- "EGL_SURFACE_TYPE",
- "EGL_TRANSPARENT_TYPE", "EGL_TRANSPARENT_RED_VALUE", "EGL_TRANSPARENT_GREEN_VALUE", "EGL_TRANSPARENT_BLUE_VALUE",
- "EGL_BIND_TO_TEXTURE_RGB", "EGL_BIND_TO_TEXTURE_RGBA",
- "EGL_MIN_SWAP_INTERVAL", "EGL_MAX_SWAP_INTERVAL",
- "EGL_LUMINANCE_SIZE", "EGL_ALPHA_MASK_SIZE",
- "EGL_COLOR_BUFFER_TYPE", "EGL_RENDERABLE_TYPE",
- "EGL_CONFORMANT"
- };
- int[] aValue = new int[1];
- for (int anAttrIter = 0; anAttrIter < THE_ATTRIBS.length; ++anAttrIter)
- {
- int anAttr = THE_ATTRIBS[anAttrIter];
- String aName = THE_NAMES [anAttrIter];
- if (theEgl.eglGetConfigAttrib (theEglDisplay, theEglConfig, anAttr, aValue))
- {
- OcctJniLogger.postMessage (String.format (" %s: %d\n", aName, aValue[0]));
- }
- else
- {
- popEglErrors (theEgl);
- }
- }
- }
-
- //! Interface implementation
- public EGLConfig chooseConfig (EGL10 theEgl,
- EGLDisplay theEglDisplay)
- {
- int EGL_OPENGL_ES2_BIT = 4;
- int[] aCfgAttribs =
- {
- EGL10.EGL_RED_SIZE, 8,
- EGL10.EGL_GREEN_SIZE, 8,
- EGL10.EGL_BLUE_SIZE, 8,
- EGL10.EGL_ALPHA_SIZE, 0,
- EGL10.EGL_DEPTH_SIZE, 24,
- EGL10.EGL_STENCIL_SIZE, 8,
- EGL10.EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
- EGL10.EGL_NONE
- };
-
- EGLConfig aConfigs[] = new EGLConfig[1];
- int[] aNbConfigs = new int[1];
- if (!theEgl.eglChooseConfig (theEglDisplay, aCfgAttribs, aConfigs, 1, aNbConfigs)
- || aConfigs[0] == null)
- {
- aCfgAttribs[4 * 2 + 1] = 16; // try config with smaller depth buffer
- popEglErrors (theEgl);
- if (!theEgl.eglChooseConfig (theEglDisplay, aCfgAttribs, aConfigs, 1, aNbConfigs)
- || aConfigs[0] == null)
- {
- OcctJniLogger.postMessage ("Error: eglChooseConfig() has failed!");
- return null;
- }
- }
-
- //printConfig (theEgl, theEglDisplay, aConfigs[0]);
- return aConfigs[0];
- }
- }
-
- //! Callback to handle touch events
- @Override public boolean onTouchEvent (MotionEvent theEvent)
- {
- final int aMaskedAction = theEvent.getActionMasked();
- switch (aMaskedAction)
- {
- case MotionEvent.ACTION_DOWN:
- case MotionEvent.ACTION_POINTER_DOWN:
- {
- final int aPointerIndex = theEvent.getActionIndex();
- final int aPointerId = theEvent.getPointerId (aPointerIndex);
- final PointF aPnt = new PointF (theEvent.getX (aPointerIndex), theEvent.getY (aPointerIndex));
-
- if (theEvent.getPointerCount() == 1)
- {
- mySelectPoint = aPnt;
- }
- else
- {
- mySelectPoint = null;
- }
-
- queueEvent (new Runnable() { public void run() { myRenderer.onAddTouchPoint (aPointerId, aPnt.x, aPnt.y); }});
- break;
- }
- case MotionEvent.ACTION_MOVE:
- {
- for (int aNbPointers = theEvent.getPointerCount(), aPntIter = 0; aPntIter < aNbPointers; ++aPntIter)
- {
- final int aPointerId = theEvent.getPointerId (aPntIter);
- final PointF aPnt = new PointF (theEvent.getX (aPntIter), theEvent.getY (aPntIter));
- queueEvent (new Runnable() { public void run() { myRenderer.onUpdateTouchPoint (aPointerId, aPnt.x, aPnt.y); }});
- }
- if (mySelectPoint != null)
- {
- final float aTouchThreshold = 5.0f * myScreenDensity;
- final int aPointerIndex = theEvent.getActionIndex();
- final PointF aDelta = new PointF (theEvent.getX (aPointerIndex) - mySelectPoint.x, theEvent.getY (aPointerIndex) - mySelectPoint.y);
- if (Math.abs (aDelta.x) > aTouchThreshold || Math.abs (aDelta.y) > aTouchThreshold)
- {
- mySelectPoint = null;
- }
- }
- break;
- }
- case MotionEvent.ACTION_UP:
- case MotionEvent.ACTION_POINTER_UP:
- case MotionEvent.ACTION_CANCEL:
- {
- if (mySelectPoint != null)
- {
- final float aSelX = mySelectPoint.x;
- final float aSelY = mySelectPoint.y;
- queueEvent (new Runnable() { public void run() { myRenderer.onSelectInViewer (aSelX, aSelY); }});
- mySelectPoint = null;
- }
-
- final int aPointerIndex = theEvent.getActionIndex();
- final int aPointerId = theEvent.getPointerId (aPointerIndex);
- final PointF aPnt = new PointF (theEvent.getX (aPointerIndex), theEvent.getY (aPointerIndex));
- queueEvent (new Runnable() { public void run() { myRenderer.onRemoveTouchPoint (aPointerId); }});
- }
- }
- requestRender();
- return true;
- }
-
- //! Fit All
- public void fitAll()
- {
- queueEvent (new Runnable() { public void run() { myRenderer.fitAll(); }});
- requestRender();
- }
-
- //! Move camera
- public void setProj (final OcctJniRenderer.TypeOfOrientation theProj)
- {
- queueEvent (new Runnable() { public void run() { myRenderer.setProj (theProj); }});
- requestRender();
- }
-
- //! OCCT viewer
- private OcctJniRenderer myRenderer = null;
- private int mySelectId = -1;
- private PointF mySelectPoint = null;
- private float myScreenDensity = 1.0f;
-
-}
diff --git a/samples/java/jniviewer/app/src/main/jni/CMakeLists.txt b/samples/java/jniviewer/app/src/main/jni/CMakeLists.txt
deleted file mode 100644
index 4c854cfe90..0000000000
--- a/samples/java/jniviewer/app/src/main/jni/CMakeLists.txt
+++ /dev/null
@@ -1,43 +0,0 @@
-cmake_minimum_required(VERSION 3.4.1)
-
-set(HEADER_FILES OcctJni_MsgPrinter.hxx OcctJni_Viewer.hxx)
-set(SOURCE_FILES OcctJni_MsgPrinter.cxx OcctJni_Viewer.cxx)
-
-set (anOcctLibs
- TKernel TKMath TKG2d TKG3d TKGeomBase TKBRep TKGeomAlgo TKTopAlgo TKShHealing TKMesh
- # exchange
- TKPrim TKBO TKBool TKFillet TKOffset
- TKXSBase
- TKDEIGES
- TKDESTEP
- # OCCT Visualization
- TKService TKHLR TKV3d TKOpenGles
-)
-
-set(aLibDeps "")
-
-# OCCT libraries
-include_directories(${OCCT_ROOT}/inc)
-foreach(anOcctLib ${anOcctLibs})
- add_library(lib_${anOcctLib} SHARED IMPORTED)
- set_target_properties(lib_${anOcctLib} PROPERTIES IMPORTED_LOCATION ${OCCT_ROOT}/libs/${ANDROID_ABI}/lib${anOcctLib}.so)
- list(APPEND aLibDeps lib_${anOcctLib})
-endforeach()
-
-# FreeType
-add_library(lib_FreeType SHARED IMPORTED)
-set_target_properties(lib_FreeType PROPERTIES IMPORTED_LOCATION ${FREETYPE_ROOT}/libs/${ANDROID_ABI}/libfreetype.so)
-list(APPEND aLibDeps lib_FreeType)
-
-# FreeImage - uncomment, if OCCT was built with FreeImage
-#add_library(lib_FreeImage SHARED IMPORTED)
-#set_target_properties(lib_FreeImage PROPERTIES IMPORTED_LOCATION ${FREETYPE_ROOT}/libs/${ANDROID_ABI}/libfreeimage.so)
-#list(APPEND aLibDeps lib_FreeImage)
-
-# system libraries
-list(APPEND aLibDeps EGL GLESv2 log android)
-
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -frtti -fexceptions -fpermissive")
-
-add_library(TKJniSample SHARED ${SOURCE_FILES})
-target_link_libraries(TKJniSample ${aLibDeps})
diff --git a/samples/java/jniviewer/app/src/main/jni/OcctJni_MsgPrinter.cxx b/samples/java/jniviewer/app/src/main/jni/OcctJni_MsgPrinter.cxx
deleted file mode 100644
index c47d9934cb..0000000000
--- a/samples/java/jniviewer/app/src/main/jni/OcctJni_MsgPrinter.cxx
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) 2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#include "OcctJni_MsgPrinter.hxx"
-
-#include
-#include
-
-#include
-
-IMPLEMENT_STANDARD_RTTIEXT(OcctJni_MsgPrinter, Message_Printer)
-
-// =======================================================================
-// function : OcctJni_MsgPrinter
-// purpose :
-// =======================================================================
-OcctJni_MsgPrinter::OcctJni_MsgPrinter (JNIEnv* theJEnv,
- jobject theJObj)
-: myJEnv (theJEnv),
- myJObj (theJEnv->NewGlobalRef (theJObj)),
- myJMet (NULL)
-{
- jclass aJClass = theJEnv->GetObjectClass (theJObj);
- myJMet = theJEnv->GetMethodID (aJClass, "postMessage", "(Ljava/lang/String;)V");
- if (myJMet == NULL)
- {
- __android_log_write (ANDROID_LOG_FATAL, "jniSample", "Broken initialization of OcctJni_MsgPrinter!");
- }
-}
-
-// =======================================================================
-// function : ~OcctJni_MsgPrinter
-// purpose :
-// =======================================================================
-OcctJni_MsgPrinter::~OcctJni_MsgPrinter()
-{
- //myJEnv->DeleteGlobalRef (myJObj);
-}
-
-// =======================================================================
-// function : send
-// purpose :
-// =======================================================================
-void OcctJni_MsgPrinter::send (const TCollection_AsciiString& theString,
- const Message_Gravity theGravity) const
-{
- if (theGravity < myTraceLevel)
- {
- return;
- }
-
- ///__android_log_write (ANDROID_LOG_DEBUG, "OcctJni_MsgPrinter", (TCollection_AsciiString(" @@ ") + theString).ToCString());
- if (myJMet == NULL)
- {
- return;
- }
-
- jstring aJStr = myJEnv->NewStringUTF ((theString + "\n").ToCString());
- myJEnv->CallVoidMethod (myJObj, myJMet, aJStr);
- myJEnv->DeleteLocalRef (aJStr);
-}
diff --git a/samples/java/jniviewer/app/src/main/jni/OcctJni_MsgPrinter.hxx b/samples/java/jniviewer/app/src/main/jni/OcctJni_MsgPrinter.hxx
deleted file mode 100644
index 655725567b..0000000000
--- a/samples/java/jniviewer/app/src/main/jni/OcctJni_MsgPrinter.hxx
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#ifndef OcctJni_MsgPrinter_H
-#define OcctJni_MsgPrinter_H
-
-#include
-
-#include
-
-// Class providing connection between messenger interfaces in C++ and Java layers.
-class OcctJni_MsgPrinter : public Message_Printer
-{
-public:
-
- //! Default constructor
- OcctJni_MsgPrinter (JNIEnv* theJEnv,
- jobject theJObj);
-
- //! Destructor.
- ~OcctJni_MsgPrinter();
-
-protected:
-
- //! Main printing method
- virtual void send (const TCollection_AsciiString& theString,
- const Message_Gravity theGravity) const override;
-
-private:
-
- JNIEnv* myJEnv;
- jobject myJObj;
- jmethodID myJMet;
-
-public:
-
- DEFINE_STANDARD_RTTIEXT(OcctJni_MsgPrinter,Message_Printer)
-
-};
-
-DEFINE_STANDARD_HANDLE(OcctJni_MsgPrinter, Message_Printer)
-
-#endif // OcctJni_MsgPrinter_H
diff --git a/samples/java/jniviewer/app/src/main/jni/OcctJni_Viewer.cxx b/samples/java/jniviewer/app/src/main/jni/OcctJni_Viewer.cxx
deleted file mode 100644
index 14a05680ba..0000000000
--- a/samples/java/jniviewer/app/src/main/jni/OcctJni_Viewer.cxx
+++ /dev/null
@@ -1,834 +0,0 @@
-// Copyright (c) 2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#include "OcctJni_Viewer.hxx"
-#include "OcctJni_MsgPrinter.hxx"
-
-#include
-#include
-#include