1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0023874: Converting OCCT MFC samples to CMake build system.

CMake meta-projects for samples were added
launch script for samples was added
unrelated changes: CSF_GraphicShr variable were removed
occt building with cmake article was updated
This commit is contained in:
ibs 2013-11-11 17:00:07 +04:00 committed by abv
parent ad211ad33b
commit 234e52be90
60 changed files with 3008 additions and 57 deletions

View File

@ -29,6 +29,10 @@ SET( CMAKE_INSTALL_PREFIX "${INSTALL_DIR}" CACHE INTERNAL "" FORCE )
set (BUILD_TOOLKITS "" CACHE STRING "Toolkits are also included in OCCT")
separate_arguments(BUILD_TOOLKITS)
IF(MSVC)
SET(BUILD_Samples OFF CACHE BOOL "OCCT samples building")
ENDIF()
include(adm/cmake/CMakeModules.txt)
if (WIN32)
@ -136,7 +140,7 @@ ENDIF()
FUNCTION(SUBDIRECTORY_NAMES MAIN_DIRECTORY RESULT)
file(GLOB SUB_ITEMS "${MAIN_DIRECTORY}/*")
foreach(ITEM ${SUB_ITEMS})
if(IS_DIRECTORY "${ITEM}")
GET_FILENAME_COMPONENT(ITEM_NAME "${ITEM}" NAME)
@ -148,36 +152,36 @@ ENDFUNCTION()
FUNCTION(FIND_PRODUCT_DIR ROOT_DIR PRODUCT_NAME RESULT)
string( TOLOWER "${PRODUCT_NAME}" lower_PRODUCT_NAME )
LIST(APPEND SEARCH_TEMPLATES "${lower_PRODUCT_NAME}.*${COMPILER}.*${COMPILER_BITNESS}")
LIST(APPEND SEARCH_TEMPLATES "${lower_PRODUCT_NAME}.*[0-9.]+.*${COMPILER}.*${COMPILER_BITNESS}")
LIST(APPEND SEARCH_TEMPLATES "${lower_PRODUCT_NAME}.*[0-9.]+.*${COMPILER_BITNESS}")
LIST(APPEND SEARCH_TEMPLATES "${lower_PRODUCT_NAME}.*[0-9.]+")
LIST(APPEND SEARCH_TEMPLATES "${lower_PRODUCT_NAME}")
SUBDIRECTORY_NAMES( "${ROOT_DIR}" SUBDIR_NAME_LIST)
FOREACH( SEARCH_TEMPLATE ${SEARCH_TEMPLATES})
IF(LOCAL_RESULT)
BREAK()
ENDIF()
FOREACH(SUBDIR_NAME ${SUBDIR_NAME_LIST})
string( TOLOWER "${SUBDIR_NAME}" lower_SUBDIR_NAME )
STRING(REGEX MATCH "${SEARCH_TEMPLATE}" DUMMY_VAR "${lower_SUBDIR_NAME}")
IF(DUMMY_VAR)
LIST(APPEND LOCAL_RESULT ${SUBDIR_NAME})
ENDIF()
ENDFOREACH()
ENDFOREACH()
IF(LOCAL_RESULT)
LIST(LENGTH "${LOCAL_RESULT}" LOC_LEN)
MATH(EXPR LAST_ELEMENT_INDEX "${LOC_LEN}-1")
LIST(GET LOCAL_RESULT ${LAST_ELEMENT_INDEX} DUMMY)
SET(${RESULT} ${DUMMY} PARENT_SCOPE)
ENDIF()
ENDIF()
ENDFUNCTION()
IF(WIN32)
@ -213,7 +217,7 @@ MACRO(THIRDPARTY_PRODUCT PRODUCT_NAME HEADER_NAME LIBRARY_NAME)
IF(NOT DEFINED 3RDPARTY_${PRODUCT_NAME}_DIR)
SET(3RDPARTY_${PRODUCT_NAME}_DIR "" CACHE PATH "Directory contains ${PRODUCT_NAME} product")
ENDIF()
IF(3RDPARTY_DIR AND ("${3RDPARTY_${PRODUCT_NAME}_DIR}" STREQUAL "" OR CHANGES_ARE_NEEDED))
FIND_PRODUCT_DIR("${3RDPARTY_DIR}" ${PRODUCT_NAME} ${PRODUCT_NAME}_DIR_NAME)
IF("${${PRODUCT_NAME}_DIR_NAME}" STREQUAL "")
@ -222,7 +226,7 @@ MACRO(THIRDPARTY_PRODUCT PRODUCT_NAME HEADER_NAME LIBRARY_NAME)
SET(3RDPARTY_${PRODUCT_NAME}_DIR "${3RDPARTY_DIR}/${${PRODUCT_NAME}_DIR_NAME}" CACHE PATH "Directory contains ${PRODUCT_NAME} product" FORCE)
ENDIF()
ENDIF()
SET(INSTALL_${PRODUCT_NAME} OFF CACHE BOOL "Is ${PRODUCT_NAME} lib copy to install directory")
IF(3RDPARTY_${PRODUCT_NAME}_DIR)
@ -230,22 +234,22 @@ MACRO(THIRDPARTY_PRODUCT PRODUCT_NAME HEADER_NAME LIBRARY_NAME)
SET(3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR "3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR-NOTFOUND" CACHE FILEPATH "Directory contains headers of the ${PRODUCT_NAME} product" FORCE)
FIND_PATH(3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR ${HEADER_NAME} PATHS "${3RDPARTY_${PRODUCT_NAME}_DIR}/include" NO_DEFAULT_PATH)
ENDIF()
IF("${3RDPARTY_${PRODUCT_NAME}_LIBRARY}" STREQUAL "" OR CHANGES_ARE_NEEDED OR "${3RDPARTY_${PRODUCT_NAME}_LIBRARY}" STREQUAL "3RDPARTY_${PRODUCT_NAME}_LIBRARY-NOTFOUND")
SET(3RDPARTY_${PRODUCT_NAME}_LIBRARY "3RDPARTY_${PRODUCT_NAME}_LIBRARY-NOTFOUND" CACHE FILEPATH "Path to library of the ${PRODUCT_NAME} product" FORCE)
FIND_LIBRARY(3RDPARTY_${PRODUCT_NAME}_LIBRARY ${LIBRARY_NAME} PATHS "${3RDPARTY_${PRODUCT_NAME}_DIR}/lib" NO_DEFAULT_PATH)
ENDIF()
IF("${3RDPARTY_${PRODUCT_NAME}_DLL}" STREQUAL "" OR CHANGES_ARE_NEEDED OR "${3RDPARTY_${PRODUCT_NAME}_DLL}" STREQUAL "3RDPARTY_${PRODUCT_NAME}_DLL-NOTFOUND")
SET(3RDPARTY_${PRODUCT_NAME}_DLL "3RDPARTY_${PRODUCT_NAME}_DLL-NOTFOUND" CACHE FILEPATH "Path to shared library of the ${PRODUCT_NAME} product" FORCE)
FIND_FILE(3RDPARTY_${PRODUCT_NAME}_DLL "${DLL_SO_PREFIX}${LIBRARY_NAME}.${DLL_SO}" PATHS "${3RDPARTY_${PRODUCT_NAME}_DIR}/${DLL_SO_FOLDER}" NO_DEFAULT_PATH)
ENDIF()
MARK_AS_ADVANCED(3RDPARTY_${PRODUCT_NAME}_DIR)
ELSE()
ENDIF()
# check default path (with additions) for header search
IF("${3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR}" STREQUAL "" OR "${3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR}" STREQUAL "3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR-NOTFOUND")
SET(3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR "3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR-NOTFOUND" CACHE FILEPATH "Directory contains headers of the ${PRODUCT_NAME} product" FORCE)
@ -276,7 +280,7 @@ MACRO(THIRDPARTY_PRODUCT PRODUCT_NAME HEADER_NAME LIBRARY_NAME)
ELSE()
LIST(APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_${PRODUCT_NAME}_LIBRARY)
ENDIF()
IF(3RDPARTY_${PRODUCT_NAME}_DLL)
#
ELSE()
@ -298,7 +302,7 @@ INCLUDE(adm/templates/tcl.cmake)
IF(INSTALL_TCL)
GET_FILENAME_COMPONENT(3RDPARTY_TCL_LIB_DIR "${3RDPARTY_TCL_LIBRARY}" PATH)
GET_FILENAME_COMPONENT(3RDPARTY_TCL_DLL_DIR "${3RDPARTY_TCL_DLL}" PATH)
IF (IS_TCL_VERSION_FOUND)
SET (TCL_VERSION ${TCL_MAJOR_VERSION}${TCL_SEP}${TCL_MINOR_VERSION})
SET (TCL_FOLDER_VERSION ${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION})
@ -324,11 +328,11 @@ ENDIF()
# GLX
IF(USE_GLX)
ADD_DEFINITIONS(-DMACOSX_USE_GLX)
IF(NOT DEFINED 3RDPARTY_GLX_DIR)
SET(3RDPARTY_GLX_DIR "" CACHE PATH "Directory contains GLX product")
ENDIF()
IF(3RDPARTY_DIR AND ("${3RDPARTY_GLX_DIR}" STREQUAL "" OR CHANGES_ARE_NEEDED))
FIND_PRODUCT_DIR("${3RDPARTY_DIR}" GLX GLX_DIR_NAME)
IF("${GLX_DIR_NAME}" STREQUAL "")
@ -337,14 +341,14 @@ IF(USE_GLX)
SET(3RDPARTY_GLX_DIR "${3RDPARTY_DIR}/${GLX_DIR_NAME}" CACHE PATH "Directory contains GLX product" FORCE)
ENDIF()
ENDIF()
IF(3RDPARTY_GLX_DIR)
SET(3RDPARTY_GLX_INCLUDE_DIR "${3RDPARTY_GLX_DIR}/include" CACHE FILEPATH "Directory contains headers of the GLX product" FORCE)
SET(3RDPARTY_GLX_LIBRARY_DIR "${3RDPARTY_GLX_DIR}/lib" CACHE FILEPATH "Directory contains library of the GLX product" FORCE)
SET(3RDPARTY_INCLUDE_DIRS "${3RDPARTY_INCLUDE_DIRS};${3RDPARTY_GLX_INCLUDE_DIR}")
SET(3RDPARTY_LIBRARY_DIRS "${3RDPARTY_LIBRARY_DIRS};${3RDPARTY_GLX_LIBRARY_DIR}")
MARK_AS_ADVANCED(3RDPARTY_GLX_DIR)
ELSE()
LIST(APPEND 3RDPARTY_NOT_INCLUDED 3RDPARTY_GLX_INCLUDE_DIR)
@ -356,14 +360,14 @@ ENDIF()
THIRDPARTY_PRODUCT("FREETYPE" "ft2build.h" "freetype${BUILD_SUFFIX}")
IF("${3RDPARTY_FREETYPE_INCLUDE_DIR}" STREQUAL "" OR "${3RDPARTY_FREETYPE_INCLUDE_DIR}" STREQUAL "3RDPARTY_${PRODUCT_NAME}_INCLUDE_DIR-NOTFOUND")
ELSEIF(EXISTS "${3RDPARTY_FREETYPE_INCLUDE_DIR}/freetype2/")
SET(3RDPARTY_INCLUDE_DIRS "${3RDPARTY_INCLUDE_DIRS};${3RDPARTY_FREETYPE_INCLUDE_DIR}/freetype2")
ENDIF()
# FREEIMAGE
IF(USE_FREEIMAGE)
ADD_DEFINITIONS(-DHAVE_FREEIMAGE)
ADD_DEFINITIONS(-DHAVE_FREEIMAGE)
THIRDPARTY_PRODUCT("FREEIMAGE" "FreeImage.h" "freeimage${BUILD_SUFFIX}")
IF(WIN32)
@ -371,9 +375,9 @@ IF(USE_FREEIMAGE)
ELSE()
SET (3RDPARTY_FREEIMAGEPLUS_DIR "${3RDPARTY_FREEIMAGE_DIR}")
ENDIF()
THIRDPARTY_PRODUCT("FREEIMAGEPLUS" "FreeImagePlus.h" "freeimageplus${BUILD_SUFFIX}")
ENDIF()
ENDIF()
@ -385,14 +389,14 @@ ENDIF()
# OPENCL
IF(USE_OPENCL)
ADD_DEFINITIONS(-DHAVE_OPENCL)
ADD_DEFINITIONS(-DHAVE_OPENCL)
SET (3RDPARTY_OPENCL_ADDITIONAL_PATH_FOR_HEADER $ENV{AMDAPPSDKROOT}/include
$ENV{INTELOCLSDKROOT}/include
$ENV{NVSDKCOMPUTE_ROOT}/OpenCL/common/inc
$ENV{ATISTREAMSDKROOT}/include)
IF(${COMPILER_BITNESS} STREQUAL 32)
SET (3RDPARTY_OPENCL_ADDITIONAL_PATH_FOR_LIB $ENV{AMDAPPSDKROOT}/lib/x86
$ENV{INTELOCLSDKROOT}/lib/x86
@ -404,11 +408,11 @@ IF(USE_OPENCL)
$ENV{NVSDKCOMPUTE_ROOT}/OpenCL/common/lib/x64
$ENV{ATISTREAMSDKROOT}/lib/x86_64)
ENDIF()
THIRDPARTY_PRODUCT("OPENCL" "CL/cl.h" "OpenCL${BUILD_SUFFIX}")
# if CL/cl.h isn't found (and 3RDPARTY_OPENCL_INCLUDE_DIR isn't defined)
# if CL/cl.h isn't found (and 3RDPARTY_OPENCL_INCLUDE_DIR isn't defined)
# then try to find OpenCL/cl.h (all other variable won't be changed)
THIRDPARTY_PRODUCT("OPENCL" "OpenCL/cl.h" "OpenCL${BUILD_SUFFIX}")
ENDIF()
@ -418,7 +422,7 @@ IF (USE_TBB)
ADD_DEFINITIONS(-DHAVE_TBB)
INCLUDE(adm/templates/tbb.cmake)
IF(INSTALL_TBB)
INSTALL(FILES "${3RDPARTY_TBB_DLL}" "${3RDPARTY_TBB_MALLOC_DLL}" DESTINATION "${INSTALL_DIR}/${DLL_SO_FOLDER}")
@ -467,6 +471,9 @@ ELSE()
install(FILES "${CMAKE_SOURCE_DIR}/adm/templates/draw.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR}" PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_WRITE GROUP_EXECUTE
WORLD_READ WORLD_WRITE WORLD_EXECUTE)
IF (BUILD_Samples)
install(FILES "${CMAKE_SOURCE_DIR}/adm/templates/sample.bat" DESTINATION "${INSTALL_DIR}")
ENDIF()
configure_file("${CMAKE_SOURCE_DIR}/adm/templates/env.${SCRIPT_EXT}.in" env.${SCRIPT_EXT} @ONLY)
install(FILES "${OCCT_BINARY_DIR}/env.${SCRIPT_EXT}" DESTINATION "${INSTALL_DIR}" )
@ -480,3 +487,23 @@ IF(MSVC AND "${BUILD_CONFIGURATION}" STREQUAL "Debug")
ENDIF()
include(adm/cmake/CMakeToolKitsDeps.txt)
IF (BUILD_Samples)
SET (CMAKE_MFC_FLAG 2)
SET (OCCT_ROOT ${CMAKE_SOURCE_DIR})
SET (MFC_STANDARD_SAMPLES_DIR ${OCCT_ROOT}/samples/mfc/standard)
SET (COMMON_WINMAIN_FILE ${MFC_STANDARD_SAMPLES_DIR}/Common/Winmain.cpp)
subdirs(samples/mfc/standard/mfcsample)
subdirs(samples/mfc/standard/01_Geometry)
subdirs(samples/mfc/standard/02_Modeling)
subdirs(samples/mfc/standard/03_Viewer2d)
subdirs(samples/mfc/standard/04_Viewer3d)
subdirs(samples/mfc/standard/05_ImportExport)
subdirs(samples/mfc/standard/06_Ocaf)
subdirs(samples/mfc/standard/07_Triangulation)
subdirs(samples/mfc/standard/08_HLR)
subdirs(samples/mfc/standard/09_Animation)
subdirs(samples/mfc/standard/10_Convert)
ENDIF()

View File

@ -32,7 +32,6 @@ set "CSF_PluginDefaults=@RESOURCE_DIR_PREFIX@\StdResource"
set "CSF_XCAFDefaults=@RESOURCE_DIR_PREFIX@\StdResource"
set "CSF_TObjDefaults=@RESOURCE_DIR_PREFIX@\StdResource"
set "CSF_StandardLiteDefaults=@RESOURCE_DIR_PREFIX@\StdResource"
set "CSF_GraphicShr=TKOpenGl.dll"
set "CSF_UnitsLexicon=@RESOURCE_DIR_PREFIX@\UnitsAPI\Lexi_Expr.dat"
set "CSF_UnitsDefinition=@RESOURCE_DIR_PREFIX@\UnitsAPI\Units.dat"
set "CSF_IGESDefaults=@RESOURCE_DIR_PREFIX@\XSTEPResource"

View File

@ -73,11 +73,6 @@ export CSF_PluginDefaults="${aScriptPath}/res/StdResource"
export CSF_XCAFDefaults="${aScriptPath}/res/StdResource"
export CSF_TObjDefaults="${aScriptPath}/res/StdResource"
export CSF_StandardLiteDefaults="${aScriptPath}/res/StdResource"
if [ "$WOKSTATION" == "mac" ]; then
export CSF_GraphicShr="libTKOpenGl.dylib"
else
export CSF_GraphicShr="libTKOpenGl.so"
fi
export CSF_UnitsLexicon="${aScriptPath}/res/UnitsAPI/Lexi_Expr.dat"
export CSF_UnitsDefinition="${aScriptPath}/res/UnitsAPI/Units.dat"
export CSF_IGESDefaults="${aScriptPath}/res/XSTEPResource"

28
adm/templates/sample.bat Normal file
View File

@ -0,0 +1,28 @@
@echo off
if ["%1"] == [""] (
echo Launch selected sample as follows:
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
exit /B
)
if not exist "%~dp0/bin/%1.exe" (
echo Executable %~dp0/bin/%4.exe not found.
echo Probably you didn't compile the application.
exit /B
)
call "%~dp0/env.bat"
"%~dp0/bin/%1.exe"

View File

@ -82,11 +82,16 @@ Note: In cmake-gui there is "grouped" option, which groups variables with a comm
* BUILD_TYPE - defines build configuration of the future project (Release by default)
* BUILD_<MODULE> - allows including the toolkit set of the specified module to the future project or excluding it from the project.
* BUILD_TOOLKITS - allows including specific OCCT toolkits (list of items separated by a space or a semicolon) to the common set of the future project.
* BUILD_SAMPLES - allows including MFC samples (for visual studio only) to the common set of the future project.
In install folder there will be samples.bat script to execute specific sample.
List of samples is being shown by sample.bat without arguments.
###The variables with USE_ prefix (3rd-party libraries):
Check USE_\<PRODUCT\> variable (USE_FREEIMAGE, USE_GL2PS, USE_TBB and USE_OPENCL)
if you want to use this 3rd-party product in the future project.
if you want to use this 3rd-party product.
### 3rd-party configuration
### 3rd-party configuration (The variables with 3RDPARTY_ prefix)
If you have 3rd-party libraries in a non-default location
(e.g., on Windows, binaries downloaded from "http://www.opencascade.org/getocc/download/3rdparty/"),
@ -95,7 +100,7 @@ At the next configuration 3rd-party product paths stored in 3RDPARTY_\<PRODUCT\>
will be searched for in 3RDPARTY_DIR directory. If the structure of 3RDPARTY_DIR directory
is the same as adopted in the OCCT, the directory will contain product dir, lib and header files.
Press "Configure" ("c" key for ccmake)
**Press "Configure" ("c" key for ccmake)**
Important: The names of searched libraries and header files are hardcoded.
The result of the 3rdparty product search will be recorded in the corresponding variables:
@ -107,16 +112,16 @@ The result of the 3rdparty product search will be recorded in the corresponding
The search process is as follows:
1 level:. 3RDPARTY_DIR
2 level: 3RDPARTY_\<PRODUCT\>_DIR\
3 level: 3RDPARTY_\<PRODUCT\>_LIBRARY
3 level: 3RDPARTY_\<PRODUCT\>_INCLUDE
3 level: 3RDPARTY_\<PRODUCT\>_DLL
- 1 level:. 3RDPARTY_DIR
- 2 level: 3RDPARTY_\<PRODUCT\>_DIR\
- 3 level: 3RDPARTY_\<PRODUCT\>_LIBRARY
- 3 level: 3RDPARTY_\<PRODUCT\>_INCLUDE
- 3 level: 3RDPARTY_\<PRODUCT\>_DLL
If a variable of any level is not defined (empty or \<variable name\>-NOTFOUND)
and the upper level variable is defined, the content of the non-defined variable
will be searched for at the next configuration step. If search process in level 3
does not find the required files, it searches in default places also.
does not find the required files, it searches in default places also.
*Note*: Freetype search process tries to find ft2build.h file in 3RDPARTY_FREETYPE INCLUDE dir
and after that adds "3RDPARTY_FREETYPE_INCLUDE /freetype2" path to common includes if it exists.
@ -133,11 +138,11 @@ and the result will be recorded to empty variables (non-empty variables will not
For example, (Linux case) 3RDPARTY_FREETYPE_DIR variable
/PRODUCTS/maintenance/Mandriva2010/freetype-2.3.7
/PRODUCTS/maintenance/Mandriva2010/freetype-2.3.7
can be changed to
/PRODUCTS/maintenance/Mandriva2010/freetype-2.4.10
/PRODUCTS/maintenance/Mandriva2010/freetype-2.4.10
and the related variables: 3RDPARTY_FREETYPE_DLL, 3RDPARTY_FREETYPE_INCLUDE_DIR and 3RDPARTY_FREETYPE_LIBRARY will be cleared.
@ -146,11 +151,12 @@ and the related variables: 3RDPARTY_FREETYPE_DLL, 3RDPARTY_FREETYPE_INCLUDE_DIR
During configuration process the cleaned variables will be filled with new found values.
### Install path configuration
###The variables with INSTALL_ prefix:
Define in INSTALL_DIR variable the path to the installed OCCT files (libraries, executables and headers).
Define in INSTALL_DIR variable the path where will be placed built OCCT files (libraries, executables and headers).
If INSTALL_\<PRODUCT\> variable is checked - 3rd-party products will be copied to the install directory.
At the end of the configuration process "configuring done" message will be shown and the generation process can be started.
#### At the end of the configuration process "configuring done" message will be shown and the generation process can be started.
## OCCT Generation

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT Approx)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/Approx_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/Approx_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
TKBO.lib
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,118 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT occtdemo)
project (${PROJECT} CXX)
set( OCC_CASROOT "" CACHE PATH "OpenCascade Root")
set( OCC_LIB_PATH "" CACHE PATH "OpenCascade LIB PATH")
set( OCCTDEMO_DIR ${OCC_CASROOT}/samples/mfc/occtdemo)
if (DEFINED MSVC70)
SET(COMPILER vc7)
elseif (DEFINED MSVC80)
SET(COMPILER vc8)
elseif (DEFINED MSVC90)
SET(COMPILER vc9)
elseif (DEFINED MSVC10)
SET(COMPILER vc10)
elseif (DEFINED MSVC11)
SET(COMPILER vc11)
else()
SET(COMPILER ${CMAKE_GENERATOR})
endif()
if ( CMAKE_GENERATOR MATCHES "Win64" )
set ( BITNESS "64" )
else()
set ( BITNESS "32" )
endif()
set ( OCC_SAMPLES_OUTPUT_PATH
${CMAKE_BINARY_DIR}/win${BITNESS}/${COMPILER}
CACHE PATH "MFC Samples libraries path" )
# add OCC headers
include_directories ( ${OCC_CASROOT}/inc )
# add OCC libraries
link_directories( ${OCC_LIB_PATH} )
set(CMAKE_MFC_FLAG 2)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_WIN32_WINNT=0x0501")
add_definitions(-D_WIN32_WINNT=0x0501)
add_definitions(-DCSFDB)
add_definitions(/DWNT -wd4996)
add_definitions(-D_AFXDLL)
add_definitions(-D_AFXEXT)
# Common part
set (COMMON_SRC_DIR ${OCCTDEMO_DIR}/Common)
set (COMMON_WNT_DIR ${COMMON_SRC_DIR}/WNT)
set (COMMON_ISESSION_DIR ${COMMON_SRC_DIR}/ISession)
set (COMMON_SRCFILES ${COMMON_SRC_DIR}/OCCDemo_Presentation.cpp
${COMMON_ISESSION_DIR}/ISession_Curve.cpp
${COMMON_WNT_DIR}/MainFrm.cpp
${COMMON_WNT_DIR}/OCCDemo.cpp
${COMMON_WNT_DIR}/OCCDemoDoc.cpp
${COMMON_WNT_DIR}/OCCDemoView.cpp
${COMMON_WNT_DIR}/ResultDialog.cpp
${COMMON_WNT_DIR}/StdAfx.cpp )
set (COMMON_HEADERS ${COMMON_SRC_DIR}/OCCDemo_Presentation.h
${COMMON_ISESSION_DIR}/ISession_Curve.h
${COMMON_WNT_DIR}/MainFrm.h
${COMMON_WNT_DIR}/OCCDemo.h
${COMMON_WNT_DIR}/OCCDemoDoc.h
${COMMON_WNT_DIR}/OCCDemoView.h
${COMMON_WNT_DIR}/ResultDialog.h
${COMMON_WNT_DIR}/StdAfx.h
${COMMON_WNT_DIR}/resource.h )
set (COMMON_RESFILES ${COMMON_WNT_DIR}/OCCDemo.rc
${COMMON_WNT_DIR}/res/occ_logo.bmp
${COMMON_WNT_DIR}/res/OCCDemo.ico
${COMMON_WNT_DIR}/res/OCCDemo.rc2
${COMMON_WNT_DIR}/res/toolbar.bmp
${COMMON_WNT_DIR}/res/toolbar1.bmp )
# include common headers
include_directories ( ${COMMON_SRC_DIR} )
include_directories ( ${COMMON_ISESSION_DIR} )
include_directories ( ${COMMON_WNT_DIR} )
set ( PROJECTS Approx
Chamfers
Convert
DCA
Extrema
GeomConstraints
Glue
GProps
HLR
Interpol
Intersections
LProps
Offset2d
PointOnCurve
Primitives
Projection
Simplify
SplitShape
Sweep
Tesselate
TexturesExt
ThruSections
Transform
Validate )
foreach (Project ${PROJECTS})
add_subdirectory(${Project} ${CMAKE_BINARY_DIR}/${Project})
endforeach ()

View File

@ -0,0 +1,79 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT Chamfers)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/Chamfers_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/Chamfers_Presentation.h)
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
TKBO.lib
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib )
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT Convert)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/Convert_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/Convert_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT DCA)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT Extrema)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib )
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT GProps)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT GeomConstraints)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT Glue)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
TKBO.lib
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,82 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT HLR)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKMesh.lib
TKV2d.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT Interpol)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT Intersections)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT LProps)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT Offset2d)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT PointOnCurve)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT Primitives)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT Projection)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,78 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT Simplify)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
TKSHHealing.lib
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKMesh.lib
TKV3d.lib
TKBRep.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT SplitShape)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
TKBO.lib
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT Sweep)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT Tesselate)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKMesh.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,79 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT TexturesExt)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT ThruSections)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,80 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT Transform)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,79 @@
cmake_minimum_required (VERSION 2.6)
set (PROJECT Validate)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/${PROJECT}_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )

View File

@ -0,0 +1,83 @@
cmake_minimum_required (VERSION 2.6)
project (Geometry)
add_definitions(-DWINVER=0x0500)
set (Geometry_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/01_Geometry/src)
set (Geometry_HEADER_FILES ${Geometry_SRC_DIR}/ChildFrm.h
${Geometry_SRC_DIR}/ChildFrm2d.h
${Geometry_SRC_DIR}/GeoAlgo_Sol.hxx
${Geometry_SRC_DIR}/GeometryApp.h
${Geometry_SRC_DIR}/GeometryDoc.h
${Geometry_SRC_DIR}/GeometryView.h
${Geometry_SRC_DIR}/GeometryView2D.h
${Geometry_SRC_DIR}/GeomSources.h
${Geometry_SRC_DIR}/MainFrm.h
${Geometry_SRC_DIR}/StdAfx.h )
set (Geometry_SOURCE_FILES ${Geometry_SRC_DIR}/ChildFrm.cpp
${Geometry_SRC_DIR}/ChildFrm2d.cpp
${Geometry_SRC_DIR}/GeoAlgo_Sol.cxx
${Geometry_SRC_DIR}/GeometryApp.cpp
${Geometry_SRC_DIR}/GeometryDoc.cpp
${Geometry_SRC_DIR}/GeometryView.cpp
${Geometry_SRC_DIR}/GeometryView2D.cpp
${Geometry_SRC_DIR}/GeomSources.cpp
${Geometry_SRC_DIR}/MainFrm.cpp
${Geometry_SRC_DIR}/StdAfx.cpp )
set (Geometry_ISESSION2D_DIR ${Geometry_SRC_DIR}/ISession2D)
set (Geometry_ISESSION2D_HEADER_FILES ${Geometry_ISESSION2D_DIR}/ISession_Curve.h
${Geometry_ISESSION2D_DIR}/ISession_Direction.h
${Geometry_ISESSION2D_DIR}/ISession_Point.h
${Geometry_ISESSION2D_DIR}/ISession_Surface.h
${Geometry_ISESSION2D_DIR}/ISession_Text.h
${Geometry_ISESSION2D_DIR}/ISession2D_Curve.h
${Geometry_ISESSION2D_DIR}/ISession2D_SensitiveCurve.h)
set (Geometry_ISESSION2D_SOURCE_FILES ${Geometry_ISESSION2D_DIR}/ISession_Curve.cpp
${Geometry_ISESSION2D_DIR}/ISession_Direction.cpp
${Geometry_ISESSION2D_DIR}/ISession_Point.cpp
${Geometry_ISESSION2D_DIR}/ISession_Surface.cpp
${Geometry_ISESSION2D_DIR}/ISession_Text.cpp
${Geometry_ISESSION2D_DIR}/ISession2D_Curve.cpp
${Geometry_ISESSION2D_DIR}/ISession2D_SensitiveCurve.cpp)
set (Geometry_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/01_Geometry/res)
set (Geometry_RESOURCE_HEADER ${Geometry_RESOURCE_DIR}/resource.h)
set (Geometry_RESOURCE_FILES ${Geometry_RESOURCE_DIR}/Geometry.rc
${Geometry_RESOURCE_DIR}/Toolbar1.bmp
${Geometry_RESOURCE_DIR}/Toolbar2.bmp)
# groups in the VS solution
source_group ("Source Files" FILES ${Geometry_SOURCE_FILES}
${COMMON_WINMAIN_FILE})
source_group ("Source Files\\ISession2d" FILES ${Geometry_ISESSION2D_SOURCE_FILES})
source_group ("Header Files" FILES ${Geometry_HEADER_FILES}
${Geometry_ISESSION2D_HEADER_FILES}
${Geometry_RESOURCE_HEADER})
source_group ("Resource Files" FILES ${Geometry_RESOURCE_FILES})
add_executable (Geometry WIN32 ${Geometry_SOURCE_FILES}
${Geometry_HEADER_FILES}
${COMMON_WINMAIN_FILE}
${Geometry_ISESSION2D_SOURCE_FILES}
${Geometry_ISESSION2D_HEADER_FILES}
${Geometry_RESOURCE_FILES}
${Geometry_RESOURCE_HEADER})
set_property(TARGET Geometry PROPERTY FOLDER Samples)
install (TARGETS Geometry RUNTIME DESTINATION "${INSTALL_DIR}/bin"
ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
LIBRARY DESTINATION "${INSTALL_DIR}/lib")
include_directories (${OCCT_ROOT}/inc
${MFC_STANDARD_SAMPLES_DIR}/Common
${Geometry_SRC_DIR}
${Geometry_ISESSION2D_DIR}
${Geometry_RESOURCE_DIR})
target_link_libraries (Geometry mfcsample)

View File

@ -2,6 +2,11 @@
#include <ISession2D_Curve.h>
#include "..\\GeometryApp.h"
#include <Graphic3d_ArrayOfPolylines.hxx>
#include <Geom2d_BezierCurve.hxx>
#include <Geom2dLProp_CLProps2d.hxx>
#include <TColStd_Array1OfReal.hxx>
#include <Geom2d_BSplineCurve.hxx>
IMPLEMENT_STANDARD_HANDLE(ISession2D_Curve,AIS_InteractiveObject)
IMPLEMENT_STANDARD_RTTIEXT(ISession2D_Curve,AIS_InteractiveObject)

View File

@ -3,6 +3,8 @@
#include "stdafx.h"
#include <ISession2D_SensitiveCurve.h>
#include <GCPnts_TangentialDeflection.hxx>
#include <SelectBasics_BasicTool.hxx>
IMPLEMENT_STANDARD_HANDLE(ISession2D_SensitiveCurve,Select3D_SensitiveEntity)
IMPLEMENT_STANDARD_RTTIEXT(ISession2D_SensitiveCurve,Select3D_SensitiveEntity)

View File

@ -5,6 +5,7 @@
#include "stdafx.h"
#include "..\\GeometryApp.h"
#include "ISession_Curve.h"
#include <StdPrs_PoleCurve.hxx>
IMPLEMENT_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
IMPLEMENT_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)

View File

@ -5,6 +5,8 @@
#include "stdafx.h"
#include "..\\GeometryApp.h"
#include "ISession_Direction.h"
#include <Prs3d_ArrowAspect.hxx>
#include <DsgPrs_LengthPresentation.hxx>
#ifdef _DEBUG
#undef THIS_FILE

View File

@ -5,6 +5,7 @@
#include "stdafx.h"
#include "..\\GeometryApp.h"
#include "ISession_Point.h"
#include <StdPrs_Point.hxx>
#ifdef _DEBUG
#undef THIS_FILE

View File

@ -5,6 +5,10 @@
#include "stdafx.h"
#include "..\\GeometryApp.h"
#include "ISession_Surface.h"
#include <GeomAdaptor_HSurface.hxx>
#include <StdPrs_ShadedSurface.hxx>
#include <StdPrs_WFPoleSurface.hxx>
#include <StdPrs_WFSurface.hxx>
#ifdef _DEBUG
#undef THIS_FILE

View File

@ -0,0 +1,50 @@
cmake_minimum_required (VERSION 2.6)
project (Modeling)
add_definitions(-DWINVER=0x0500)
set (Modeling_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/02_Modeling/src)
set (Modeling_HEADER_FILES ${Modeling_SRC_DIR}/ISession_Direction.h
${Modeling_SRC_DIR}/ModelingApp.h
${Modeling_SRC_DIR}/ModelingDoc.h
${Modeling_SRC_DIR}/StdAfx.h
${Modeling_SRC_DIR}/State.h )
set (Modeling_SOURCE_FILES ${Modeling_SRC_DIR}/ISession_Direction.cpp
${Modeling_SRC_DIR}/ModelingApp.cpp
${Modeling_SRC_DIR}/ModelingDoc.cpp
${Modeling_SRC_DIR}/StdAfx.cpp )
set (Modeling_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/02_Modeling/res)
set (Modeling_RESOURCE_HEADER ${Modeling_RESOURCE_DIR}/resource.h)
set (Modeling_RESOURCE_FILES ${Modeling_RESOURCE_DIR}/fram2.bmp
${Modeling_RESOURCE_DIR}/Toolbar.bmp
${Modeling_RESOURCE_DIR}/Modeling.rc)
# groups in the VS solution
source_group ("Source Files" FILES ${Modeling_SOURCE_FILES}
${COMMON_WINMAIN_FILE})
source_group ("Header Files" FILES ${Modeling_HEADER_FILES}
${Modeling_RESOURCE_HEADER})
source_group ("Resource Files" FILES ${Modeling_RESOURCE_FILES})
add_executable ( Modeling WIN32 ${Modeling_SOURCE_FILES}
${Modeling_HEADER_FILES}
${COMMON_WINMAIN_FILE}
${Modeling_RESOURCE_HEADER}
${Modeling_RESOURCE_FILES})
set_property (TARGET Modeling PROPERTY FOLDER Samples)
install (TARGETS Modeling RUNTIME DESTINATION "${INSTALL_DIR}/bin"
ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
LIBRARY DESTINATION "${INSTALL_DIR}/lib")
include_directories (${OCCT_ROOT}/inc
${MFC_STANDARD_SAMPLES_DIR}/Common
${MFC_STANDARD_SAMPLES_DIR}/02_Modeling
${Modeling_SRC_DIR})
target_link_libraries (Modeling mfcsample TKSTEP209 TKSTEPAttr TKSTEPBase TKBO)

View File

@ -16,6 +16,10 @@
#include <AIS_ListIteratorOfListOfInteractive.hxx>
#include <TColStd_Array2OfReal.hxx>
#include <OCC_MainFrame.h>
#include <BRepPrimAPI_MakeCylinder.hxx>
#include <TopExp_Explorer.hxx>
#include <Geom_Plane.hxx>
#include <BRepTools.hxx>
Handle(AIS_Shape) AIS1;
TopoDS_Face F1,F2;

View File

@ -0,0 +1,46 @@
cmake_minimum_required (VERSION 2.6)
project (Viewer2d)
add_definitions (-DWINVER=0x0500)
set (Viewer2d_SOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/03_Viewer2d/src)
set (Viewer2d_HEADER_FILES ${Viewer2d_SOURCE_DIR}/Viewer2dApp.h
${Viewer2d_SOURCE_DIR}/Viewer2dDoc.h
${Viewer2d_SOURCE_DIR}/StdAfx.h )
set (Viewer2d_SOURCE_FILES ${Viewer2d_SOURCE_DIR}/Viewer2dApp.cpp
${Viewer2d_SOURCE_DIR}/Viewer2dDoc.cpp
${Viewer2d_SOURCE_DIR}/StdAfx.cpp )
set (Viewer2d_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/03_Viewer2d/res)
set (Viewer2d_RESOURCE_HEADER ${Viewer2d_RESOURCE_DIR}/resource.h)
set (Viewer2d_RESOURCE_FILES ${Viewer2d_RESOURCE_DIR}/Toolbar.bmp
${Viewer2d_RESOURCE_DIR}/Viewer2d.rc)
# groups in the VS solution
source_group ("Source Files" FILES ${Viewer2d_SOURCE_FILES}
${COMMON_WINMAIN_FILE})
source_group ("Header Files" FILES ${Viewer2d_HEADER_FILES}
${Viewer2d_RESOURCE_HEADER})
source_group ("Resource Files" FILES ${Viewer2d_RESOURCE_FILES})
add_executable (Viewer2d WIN32 ${Viewer2d_SOURCE_FILES}
${Viewer2d_HEADER_FILES}
${COMMON_WINMAIN_FILE}
${Viewer2d_RESOURCE_HEADER}
${Viewer2d_RESOURCE_FILES})
set_property (TARGET Viewer2d PROPERTY FOLDER Samples)
install (TARGETS Viewer2d RUNTIME DESTINATION "${INSTALL_DIR}/bin"
ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
LIBRARY DESTINATION "${INSTALL_DIR}/lib")
include_directories (${OCCT_ROOT}/inc
${MFC_STANDARD_SAMPLES_DIR}/Common
${MFC_STANDARD_SAMPLES_DIR}/03_Viewer2d
${Viewer2d_SOURCE_DIR})
target_link_libraries (Viewer2d mfcsample)

View File

@ -0,0 +1,73 @@
cmake_minimum_required (VERSION 2.6)
project (Viewer3d)
add_definitions (-DWINVER=0x0500)
set (Viewer3d_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/04_Viewer3d/src)
set (Viewer3d_HEADER_FILES ${Viewer3d_SRC_DIR}/BoxRadius.h
${Viewer3d_SRC_DIR}/DlgIsos.h
${Viewer3d_SRC_DIR}/ISession_Curve.h
${Viewer3d_SRC_DIR}/ModelClippingDlg.h
${Viewer3d_SRC_DIR}/OCCDemo_Presentation.h
${Viewer3d_SRC_DIR}/OffsetDlg.h
${Viewer3d_SRC_DIR}/ScaleDlg.h
${Viewer3d_SRC_DIR}/ShadingModelDlg.h
${Viewer3d_SRC_DIR}/StdAfx.h
${Viewer3d_SRC_DIR}/TexturesExt_Presentation.h
${Viewer3d_SRC_DIR}/TrihedronDlg.h
${Viewer3d_SRC_DIR}/Viewer3dApp.h
${Viewer3d_SRC_DIR}/Viewer3dDoc.h
${Viewer3d_SRC_DIR}/Viewer3dView.h
${Viewer3d_SRC_DIR}/ZClippingDlg.h
${Viewer3d_SRC_DIR}/ZCueingDlg.h
${Viewer3d_SRC_DIR}/State.h
${Viewer3d_SRC_DIR}/resource.h
${Viewer3d_SRC_DIR}/resource.hm)
set (Viewer3d_SOURCE_FILES ${Viewer3d_SRC_DIR}/BoxRadius.cpp
${Viewer3d_SRC_DIR}/DlgIsos.cpp
${Viewer3d_SRC_DIR}/ISession_Curve.cpp
${Viewer3d_SRC_DIR}/ModelClippingDlg.cpp
${Viewer3d_SRC_DIR}/OCCDemo_Presentation.cpp
${Viewer3d_SRC_DIR}/OffsetDlg.cpp
${Viewer3d_SRC_DIR}/ScaleDlg.cpp
${Viewer3d_SRC_DIR}/ShadingModelDlg.cpp
${Viewer3d_SRC_DIR}/StdAfx.cpp
${Viewer3d_SRC_DIR}/TexturesExt_Presentation.cpp
${Viewer3d_SRC_DIR}/TrihedronDlg.cpp
${Viewer3d_SRC_DIR}/Viewer3dApp.cpp
${Viewer3d_SRC_DIR}/Viewer3dDoc.cpp
${Viewer3d_SRC_DIR}/Viewer3dView.cpp
${Viewer3d_SRC_DIR}/ZClippingDlg.cpp
${Viewer3d_SRC_DIR}/ZCueingDlg.cpp)
set (Viewer3d_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/04_Viewer3d/res)
set (Viewer3d_RESOURCE_FILES ${Viewer3d_SRC_DIR}/Viewer3d.rc
${Viewer3d_SRC_DIR}/AISToolbar.bmp
${Viewer3d_RESOURCE_DIR}/AIS_TB.bmp
${Viewer3d_RESOURCE_DIR}/Toolbar.bmp)
# groups in the VS solution
source_group ("Source Files" FILES ${Viewer3d_SOURCE_FILES}
${COMMON_WINMAIN_FILE})
source_group ("Header Files" FILES ${Viewer3d_HEADER_FILES})
source_group ("Resource Files" FILES ${Viewer3d_RESOURCE_FILES})
add_executable (Viewer3d WIN32 ${Viewer3d_SOURCE_FILES}
${Viewer3d_HEADER_FILES}
${COMMON_WINMAIN_FILE}
${Viewer3d_RESOURCE_FILES})
set_property (TARGET Viewer3d PROPERTY FOLDER Samples)
install (TARGETS Viewer3d RUNTIME DESTINATION "${INSTALL_DIR}/bin"
ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
LIBRARY DESTINATION "${INSTALL_DIR}/lib")
include_directories (${OCCT_ROOT}/inc
${MFC_STANDARD_SAMPLES_DIR}/Common
${Viewer3d_SRC_DIR})
target_link_libraries (Viewer3d mfcsample)

View File

@ -0,0 +1,50 @@
cmake_minimum_required (VERSION 2.6)
project (ImportExport)
add_definitions (-DWINVER=0x0500)
set (ImportExport_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/05_ImportExport/src)
set (ImportExport_HEADER_FILES ${ImportExport_SRC_DIR}/ColoredShapes.h
${ImportExport_SRC_DIR}/FSD_Archive.hxx
${ImportExport_SRC_DIR}/ImportExportApp.h
${ImportExport_SRC_DIR}/ImportExportDoc.h
${ImportExport_SRC_DIR}/StdAfx.h )
set (ImportExport_SOURCE_FILES ${ImportExport_SRC_DIR}/ColoredShapes.cpp
${ImportExport_SRC_DIR}/FSD_Archive.cxx
${ImportExport_SRC_DIR}/ImportExportApp.cpp
${ImportExport_SRC_DIR}/ImportExportDoc.cpp
${ImportExport_SRC_DIR}/StdAfx.cpp)
set (ImportExport_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/05_ImportExport/res)
set (ImportExport_RESOURCE_HEADER ${ImportExport_RESOURCE_DIR}/resource.h)
set (ImportExport_RESOURCE_FILES ${ImportExport_RESOURCE_DIR}/Toolbar.bmp
${ImportExport_RESOURCE_DIR}/ImportExport.rc)
# groups in the VS solution
source_group ("Source Files" FILES ${ImportExport_SOURCE_FILES}
${COMMON_WINMAIN_FILE})
source_group ("Header Files" FILES ${ImportExport_HEADER_FILES}
${ImportExport_RESOURCE_HEADER})
source_group ("Resource Files" FILES ${ImportExport_RESOURCE_FILES})
add_executable (ImportExport WIN32 ${ImportExport_SOURCE_FILES}
${ImportExport_HEADER_FILES}
${COMMON_WINMAIN_FILE}
${ImportExport_RESOURCE_HEADER}
${ImportExport_RESOURCE_FILES})
set_property (TARGET ImportExport PROPERTY FOLDER Samples)
install (TARGETS ImportExport RUNTIME DESTINATION "${INSTALL_DIR}/bin"
ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
LIBRARY DESTINATION "${INSTALL_DIR}/lib")
include_directories (${OCCT_ROOT}/inc
${MFC_STANDARD_SAMPLES_DIR}/Common
${MFC_STANDARD_SAMPLES_DIR}/05_ImportExport
${ImportExport_SRC_DIR})
target_link_libraries (ImportExport mfcsample)

View File

@ -9,7 +9,7 @@
#include "OCC_3dChildFrame.h"
#include "ImportExportDoc.h"
#include <OCC_3dView.h>
#include <res\resource.h>
#include <res/resource.h>
BEGIN_MESSAGE_MAP(CImportExportApp, OCC_App)
//{{AFX_MSG_MAP(CSerializeApp)

View File

@ -0,0 +1,66 @@
cmake_minimum_required (VERSION 2.6)
project (Ocaf)
add_definitions (-DWINVER=0x0500)
set (Ocaf_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf/src)
set (Ocaf_HEADER_FILES ${Ocaf_SRC_DIR}/NewBoxDlg.h
${Ocaf_SRC_DIR}/NewCylDlg.h
${Ocaf_SRC_DIR}/OcafApp.h
${Ocaf_SRC_DIR}/OcafDoc.h
${Ocaf_SRC_DIR}/OcafMainFrm.h
${Ocaf_SRC_DIR}/Handle_TOcaf_Application.hxx
${Ocaf_SRC_DIR}/TOcaf_Commands.hxx
${Ocaf_SRC_DIR}/Handle_TOcafFunction_BoxDriver.hxx
${Ocaf_SRC_DIR}/Handle_TOcafFunction_CutDriver.hxx
${Ocaf_SRC_DIR}/Handle_TOcafFunction_CylDriver.hxx
${Ocaf_SRC_DIR}/StdAfx.h )
set (Ocaf_SOURCE_FILES ${Ocaf_SRC_DIR}/NewBoxDlg.cpp
${Ocaf_SRC_DIR}/NewCylDlg.cpp
${Ocaf_SRC_DIR}/OcafApp.cpp
${Ocaf_SRC_DIR}/OcafDoc.cpp
${Ocaf_SRC_DIR}/OcafMainFrm.cpp
${Ocaf_SRC_DIR}/TOcaf_Application.cxx
${Ocaf_SRC_DIR}/TOcaf_Commands.cxx
${Ocaf_SRC_DIR}/TOcafFunction_BoxDriver.cxx
${Ocaf_SRC_DIR}/TOcafFunction_CutDriver.cxx
${Ocaf_SRC_DIR}/TOcafFunction_CylDriver.cxx
${Ocaf_SRC_DIR}/StdAfx.cpp )
set (Ocaf_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf/res)
set (Ocaf_RESOURCE_HEADER ${Ocaf_RESOURCE_DIR}/resource.h)
set (Ocaf_RESOURCE_FILES ${Ocaf_RESOURCE_DIR}/ActionsTB.bmp
${Ocaf_RESOURCE_DIR}/AIS_TB.bmp
${Ocaf_RESOURCE_DIR}/Toolbar.bmp
${Ocaf_RESOURCE_DIR}/UndoRedoTB.bmp
${Ocaf_RESOURCE_DIR}/Ocaf.rc)
# groups in the VS solution
source_group ("Source Files" FILES ${Ocaf_SOURCE_FILES}
${COMMON_WINMAIN_FILE})
source_group ("Header Files" FILES ${Ocaf_HEADER_FILES}
${Ocaf_RESOURCE_HEADER})
source_group ("Resource Files" FILES ${Ocaf_RESOURCE_FILES})
add_executable (Ocaf WIN32 ${Ocaf_SOURCE_FILES}
${Ocaf_HEADER_FILES}
${COMMON_WINMAIN_FILE}
${Ocaf_RESOURCE_HEADER}
${Ocaf_RESOURCE_FILES} )
set_property (TARGET Ocaf PROPERTY FOLDER Samples)
install (TARGETS Ocaf RUNTIME DESTINATION "${INSTALL_DIR}/bin"
ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
LIBRARY DESTINATION "${INSTALL_DIR}/lib")
include_directories (${OCCT_ROOT}/inc
${MFC_STANDARD_SAMPLES_DIR}/Common
${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf
${Ocaf_SRC_DIR})
target_link_libraries (Ocaf mfcsample TKLCAF TKBO)

View File

@ -6,6 +6,11 @@
#include <stdafx.h>
#include <TOcafFunction_BoxDriver.hxx>
#include "Standard_GUID.hxx"
#include "TFunction_Logbook.hxx"
#include "TDataStd_Real.hxx"
#include "BRepPrimAPI_MakeBox.hxx"
#include "TNaming_Builder.hxx"
//=======================================================================
//function : GetID

View File

@ -13,6 +13,9 @@
#include <BRepAlgoAPI_Cut.hxx>
#include <TCollection_AsciiString.hxx>
#include <TDF_Tool.hxx>
#include "Standard_GUID.hxx"
#include "TFunction_Logbook.hxx"
#include "TDF_Reference.hxx"
//=======================================================================
//function : GetID

View File

@ -8,6 +8,10 @@
#include <TOcafFunction_CylDriver.hxx>
#include <TCollection_AsciiString.hxx>
#include <TDF_Tool.hxx>
#include "Standard_GUID.hxx"
#include "TFunction_Logbook.hxx"
#include "TDataStd_Real.hxx"
#include "TNaming_Builder.hxx"
//=======================================================================

View File

@ -10,6 +10,10 @@
#include <TPrsStd_AISPresentation.hxx>
#include <TPrsStd_AISViewer.hxx>
#include <TNaming_NamedShape.hxx>
#include "TFunction_DriverTable.hxx"
#include "TOcafFunction_BoxDriver.hxx"
#include "TOcafFunction_CylDriver.hxx"
#include "TOcafFunction_CutDriver.hxx"
//=======================================================================
//function : TOcaf_Application

View File

@ -25,6 +25,13 @@
#include <Geom_SphericalSurface.hxx>
#include <AIS_InteractiveContext.hxx>
#include <TPrsStd_AISViewer.hxx>
#include "TDataStd_Name.hxx"
#include "TFunction_Function.hxx"
#include "TOcafFunction_BoxDriver.hxx"
#include "TFunction_DriverTable.hxx"
#include "TOcafFunction_CylDriver.hxx"
#include "TDF_Reference.hxx"
#include "TOcafFunction_CutDriver.hxx"
//=======================================================================
//function : TOcaf_Commands

View File

@ -38,6 +38,7 @@ class TOcaf_Object;
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif
#include "TFunction_Logbook.hxx"
class TOcaf_Commands {

View File

@ -0,0 +1,52 @@
cmake_minimum_required (VERSION 2.6)
project (Triangulation)
add_definitions (-DWINVER=0x0500)
set (Triangulation_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/07_Triangulation/src)
set (Triangulation_HEADER_FILES ${Triangulation_SRC_DIR}/ISession_Curve.h
${Triangulation_SRC_DIR}/OCCDemo_Presentation.h
${Triangulation_SRC_DIR}/Tesselate_Presentation.h
${Triangulation_SRC_DIR}/TriangulationApp.h
${Triangulation_SRC_DIR}/TriangulationDoc.h
${Triangulation_SRC_DIR}/StdAfx.h )
set (Triangulation_SOURCE_FILES ${Triangulation_SRC_DIR}/ISession_Curve.cpp
${Triangulation_SRC_DIR}/OCCDemo_Presentation.cpp
${Triangulation_SRC_DIR}/Tesselate_Presentation.cpp
${Triangulation_SRC_DIR}/TriangulationApp.cpp
${Triangulation_SRC_DIR}/TriangulationDoc.cpp
${Triangulation_SRC_DIR}/StdAfx.cpp)
set (Triangulation_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/07_Triangulation/res)
set (Triangulation_RESOURCE_HEADER ${Triangulation_RESOURCE_DIR}/resource.h)
set (Triangulation_RESOURCE_FILES ${Triangulation_RESOURCE_DIR}/Toolbar.bmp
${Triangulation_RESOURCE_DIR}/Triangulation.rc)
# groups in the VS solution
source_group ("Source Files" FILES ${Triangulation_SOURCE_FILES}
${COMMON_WINMAIN_FILE})
source_group ("Header Files" FILES ${Triangulation_HEADER_FILES}
${Triangulation_RESOURCE_HEADER})
source_group ("Resource Files" FILES ${Triangulation_RESOURCE_FILES})
add_executable (Triangulation WIN32 ${Triangulation_SOURCE_FILES}
${Triangulation_HEADER_FILES}
${COMMON_WINMAIN_FILE}
${Triangulation_RESOURCE_HEADER}
${Triangulation_RESOURCE_FILES})
set_property (TARGET Triangulation PROPERTY FOLDER Samples)
install (TARGETS Triangulation RUNTIME DESTINATION "${INSTALL_DIR}/bin"
ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
LIBRARY DESTINATION "${INSTALL_DIR}/lib")
include_directories (${OCCT_ROOT}/inc
${MFC_STANDARD_SAMPLES_DIR}/Common
${MFC_STANDARD_SAMPLES_DIR}/07_Triangulation
${Triangulation_SRC_DIR})
target_link_libraries (Triangulation mfcsample TKSTEP209 TKSTEPAttr TKBO)

View File

@ -0,0 +1,74 @@
cmake_minimum_required (VERSION 2.6)
project (HLR)
add_definitions(-DWINVER=0x0500)
set (HLR_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/08_HLR/src)
set (HLR_HEADER_FILES ${HLR_SRC_DIR}/HLRApp.h
${HLR_SRC_DIR}/HLRDoc.h
${HLR_SRC_DIR}/HLRView2D.h
${HLR_SRC_DIR}/SelectionDialog.h
${HLR_SRC_DIR}/StdAfx.h )
set (HLR_SOURCE_FILES ${HLR_SRC_DIR}/HLRApp.cpp
${HLR_SRC_DIR}/HLRDoc.cpp
${HLR_SRC_DIR}/HLRView2D.cpp
${HLR_SRC_DIR}/SelectionDialog.cpp
${HLR_SRC_DIR}/StdAfx.cpp )
set (HLR_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/08_HLR/res)
set (HLR_RESOURCE_HEADER ${HLR_RESOURCE_DIR}/resource.h)
set (HLR_RESOURCE_FILES ${HLR_RESOURCE_DIR}/axoviewd.bmp
${HLR_RESOURCE_DIR}/axoviewf.bmp
${HLR_RESOURCE_DIR}/AXOVIEWU.bmp
${HLR_RESOURCE_DIR}/BACKVIEWD.bmp
${HLR_RESOURCE_DIR}/BACKVIEWF.bmp
${HLR_RESOURCE_DIR}/BACKVIEWU.bmp
${HLR_RESOURCE_DIR}/BOTTOMVIEWD.bmp
${HLR_RESOURCE_DIR}/BOTTOMVIEWF.bmp
${HLR_RESOURCE_DIR}/BOTTOMVIEWU.bmp
${HLR_RESOURCE_DIR}/ChildFrame2D.bmp
${HLR_RESOURCE_DIR}/ChildFrame3D.bmp
${HLR_RESOURCE_DIR}/FRONTVIEWD.bmp
${HLR_RESOURCE_DIR}/FRONTVIEWF.bmp
${HLR_RESOURCE_DIR}/FRONTVIEWU.bmp
${HLR_RESOURCE_DIR}/LEFTVIEWD.bmp
${HLR_RESOURCE_DIR}/LEFTVIEWF.bmp
${HLR_RESOURCE_DIR}/LEFTVIEWU.bmp
${HLR_RESOURCE_DIR}/RIGHTVIEWD.bmp
${HLR_RESOURCE_DIR}/RIGHTVIEWF.bmp
${HLR_RESOURCE_DIR}/RIGHTVIEWU.bmp
${HLR_RESOURCE_DIR}/Toolbar.bmp
${HLR_RESOURCE_DIR}/ToolBarObjects.bmp
${HLR_RESOURCE_DIR}/topviewd.bmp
${HLR_RESOURCE_DIR}/topviewf.bmp
${HLR_RESOURCE_DIR}/topviewu.bmp
${HLR_RESOURCE_DIR}/HLR.rc)
# groups in the VS solution
source_group ("Source Files" FILES ${HLR_SOURCE_FILES}
${COMMON_WINMAIN_FILE})
source_group ("Header Files" FILES ${HLR_HEADER_FILES}
${HLR_RESOURCE_HEADER})
source_group ("Resource Files" FILES ${HLR_RESOURCE_FILES})
add_executable (HLR WIN32 ${HLR_SOURCE_FILES}
${HLR_HEADER_FILES}
${COMMON_WINMAIN_FILE}
${HLR_RESOURCE_HEADER}
${HLR_RESOURCE_FILES} )
set_property (TARGET HLR PROPERTY FOLDER Samples)
install (TARGETS HLR RUNTIME DESTINATION "${INSTALL_DIR}/bin"
ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
LIBRARY DESTINATION "${INSTALL_DIR}/lib")
include_directories (${OCCT_ROOT}/inc
${MFC_STANDARD_SAMPLES_DIR}/Common
${HLR_RESOURCE_DIR}
${HLR_SRC_DIR})
target_link_libraries (HLR mfcsample)

View File

@ -81,7 +81,7 @@ protected:
DECLARE_MESSAGE_MAP()
private :
void UpdateProjector();
void ShowHideButton(Standard_Boolean EnableButton=Standard_True;);
void ShowHideButton(Standard_Boolean EnableButton=Standard_True);
void Apply();
CHLRDoc* myDoc;

View File

@ -0,0 +1,57 @@
cmake_minimum_required (VERSION 2.6)
project (Animation)
add_definitions (-DWINVER=0x0500)
set (Animation_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/09_Animation/src)
set (Animation_HEADER_FILES ${Animation_SRC_DIR}/AnimationApp.h
${Animation_SRC_DIR}/AnimationDoc.h
${Animation_SRC_DIR}/AnimationView3D.h
${Animation_SRC_DIR}/Fonc.hxx
${Animation_SRC_DIR}/Sensitivity.h
${Animation_SRC_DIR}/ShadingDialog.h
${Animation_SRC_DIR}/ThreadDialog.h
${Animation_SRC_DIR}/Tune.h
${Animation_SRC_DIR}/StdAfx.h )
set (Animation_SOURCE_FILES ${Animation_SRC_DIR}/AnimationApp.cpp
${Animation_SRC_DIR}/AnimationDoc.cpp
${Animation_SRC_DIR}/AnimationView3D.cpp
${Animation_SRC_DIR}/Fonc.cxx
${Animation_SRC_DIR}/Sensitivity.cpp
${Animation_SRC_DIR}/ShadingDialog.cpp
${Animation_SRC_DIR}/ThreadDialog.cpp
${Animation_SRC_DIR}/Tune.cpp
${Animation_SRC_DIR}/StdAfx.cpp )
set (Animation_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/09_Animation/res)
set (Animation_RESOURCE_HEADER ${Animation_RESOURCE_DIR}/resource.h)
set (Animation_RESOURCE_FILES ${Animation_RESOURCE_DIR}/child2.bmp
${Animation_RESOURCE_DIR}/Toolbar.bmp
${Animation_RESOURCE_DIR}/Animation.rc)
# groups in the VS solution
source_group ("Source Files" FILES ${Animation_SOURCE_FILES}
${COMMON_WINMAIN_FILE})
source_group ("Header Files" FILES ${Animation_HEADER_FILES})
source_group ("Resource Files" FILES ${Animation_RESOURCE_FILES})
add_executable (Animation WIN32 ${Animation_SOURCE_FILES}
${Animation_HEADER_FILES}
${COMMON_WINMAIN_FILE}
${Animation_RESOURCE_FILES})
set_property (TARGET Animation PROPERTY FOLDER Samples)
install (TARGETS Animation RUNTIME DESTINATION "${INSTALL_DIR}/bin"
ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
LIBRARY DESTINATION "${INSTALL_DIR}/lib")
include_directories (${OCCT_ROOT}/inc
${MFC_STANDARD_SAMPLES_DIR}/Common
${Animation_RESOURCE_DIR}
${Animation_SRC_DIR})
target_link_libraries (Animation mfcsample TKBO)

View File

@ -0,0 +1,75 @@
cmake_minimum_required (VERSION 2.6)
project (Convert)
add_definitions (-DWINVER=0x0500)
set (Convert_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/10_Convert/src)
set (Convert_HEADER_FILES ${Convert_SRC_DIR}/Convert_Presentation.h
${Convert_SRC_DIR}/OCCDemo_Presentation.h)
set (Convert_SOURCE_FILES ${Convert_SRC_DIR}/Convert_Presentation.cpp
${Convert_SRC_DIR}/OCCDemo_Presentation.cpp )
set (ISESSION_SUBDIR ${Convert_SRC_DIR}/ISession)
set (ISESSION_HEADER_FILES ${ISESSION_SUBDIR}/ISession_Curve.h)
set (ISESSION_SOURCE_FILES ${ISESSION_SUBDIR}/ISession_Curve.cpp)
set (WNT_SUBDIR ${Convert_SRC_DIR}/WNT)
set (WNT_HEADER_FILES ${WNT_SUBDIR}/resource.h
${WNT_SUBDIR}/MainFrm.h
${WNT_SUBDIR}/OCCDemo.h
${WNT_SUBDIR}/OCCDemoDoc.h
${WNT_SUBDIR}/OCCDemoView.h
${WNT_SUBDIR}/ResultDialog.h
${WNT_SUBDIR}/StdAfx.h)
set (WNT_SOURCE_FILES ${WNT_SUBDIR}/MainFrm.cpp
${WNT_SUBDIR}/OCCDemo.cpp
${WNT_SUBDIR}/OCCDemoDoc.cpp
${WNT_SUBDIR}/OCCDemoView.cpp
${WNT_SUBDIR}/ResultDialog.cpp
${WNT_SUBDIR}/StdAfx.cpp)
set (WNT_RESOURCE_DIR ${WNT_SUBDIR}/res)
set (WNT_RESOURCE_FILES ${WNT_RESOURCE_DIR}/OCCDemo.ico
${WNT_RESOURCE_DIR}/occlogo.bmp
${WNT_RESOURCE_DIR}/toolbar.bmp
${WNT_RESOURCE_DIR}/toolbar1.bmp
${WNT_RESOURCE_DIR}/logopen.bmp
${WNT_RESOURCE_DIR}/OCCDemo.rc2
${WNT_SUBDIR}/OCCDemo.rc)
# groups in the VS solution
source_group ("Source Files" FILES ${Convert_SOURCE_FILES}
${COMMON_WINMAIN_FILE})
source_group ("Source Files\\ISession" FILES ${ISESSION_SOURCE_FILES})
source_group ("Source Files\\WNT" FILES ${WNT_SOURCE_FILES})
source_group ("Header Files" FILES ${Convert_HEADER_FILES} )
source_group ("Header Files\\ISession" FILES ${ISESSION_HEADER_FILES} )
source_group ("Header Files\\WNT" FILES ${WNT_HEADER_FILES})
source_group ("Resource Files" FILES ${WNT_RESOURCE_FILES})
add_executable (Convert WIN32 ${Convert_SOURCE_FILES}
${Convert_HEADER_FILES}
${ISESSION_SOURCE_FILES}
${ISESSION_HEADER_FILES}
${WNT_SOURCE_FILES}
${WNT_HEADER_FILES}
${COMMON_WINMAIN_FILE}
${WNT_RESOURCE_FILES} )
set_property (TARGET Convert PROPERTY FOLDER Samples)
install (TARGETS Convert RUNTIME DESTINATION "${INSTALL_DIR}/bin"
ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
LIBRARY DESTINATION "${INSTALL_DIR}/lib")
include_directories (${OCCT_ROOT}/inc
${MFC_STANDARD_SAMPLES_DIR}/Common
${Convert_SRC_DIR}
${ISESSION_SUBDIR}
${WNT_SUBDIR})
target_link_libraries (Convert mfcsample)

View File

@ -42,6 +42,10 @@ OCC_2dDoc::OCC_2dDoc() : OCC_BaseDoc()
AfxInitRichEdit();
}
OCC_2dDoc::~OCC_2dDoc()
{
}
void OCC_2dDoc::FitAll2DViews(Standard_Boolean theUpdateViewer)
{
if (theUpdateViewer)

View File

@ -20,6 +20,7 @@ class AFX_EXT_CLASS OCC_2dDoc : public OCC_BaseDoc
public:
OCC_2dDoc();
~OCC_2dDoc();
// Operations
public:

View File

@ -68,6 +68,10 @@ OCC_3dBaseDoc::OCC_3dBaseDoc()
myDimensionDlg.Create(CDimensionDlg::IDD, NULL);
}
OCC_3dBaseDoc::~OCC_3dBaseDoc()
{
}
//-----------------------------------------------------------------------------------------
//
//-----------------------------------------------------------------------------------------

View File

@ -21,6 +21,7 @@ protected:
public:
OCC_3dBaseDoc();
~OCC_3dBaseDoc();
void SetMaterial(Graphic3d_NameOfMaterial Material);

View File

@ -0,0 +1,182 @@
cmake_minimum_required (VERSION 2.6)
project (mfcsample)
add_definitions(-DWINVER=0x0500 -D_AFXEXT)
# mfcsample
set (mfcsample_SOURCE_FILES ${MFC_STANDARD_SAMPLES_DIR}/mfcsample/src/mfcsample.cpp
${MFC_STANDARD_SAMPLES_DIR}/mfcsample/src/StdAfx.cpp )
SET (MFC_STANDARD_COMMON_SAMPLES_DIR "${MFC_STANDARD_SAMPLES_DIR}/Common")
set (COMMON_SOURCE_FILES ${MFC_STANDARD_COMMON_SAMPLES_DIR}/AISDialogs.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_2dDoc.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_2dChildFrame.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_2dView.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_3dBaseDoc.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_App.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_3dDoc.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_3dChildFrame.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_3dView.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_BaseDoc.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_BaseChildFrame.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_BaseView.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_MainFrame.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/ResultDialog.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/User_Cylinder.cxx
${MFC_STANDARD_COMMON_SAMPLES_DIR}/ColoredMeshDlg.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/DimensionDlg.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/LengthParamsEdgePage.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/LengthParamsVerticesPage.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/RadiusParamsPage.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/LengthParamsEdgesPage.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/LengthParamsVerticesPage.cpp
${MFC_STANDARD_COMMON_SAMPLES_DIR}/AngleParamsVerticesPage.cpp)
# Common ImportExport
set (COMMON_IE_DIR ${MFC_STANDARD_COMMON_SAMPLES_DIR}/ImportExport)
set (COMMON_IE_HEADER_FILES ${COMMON_IE_DIR}/ImportExport.h
${COMMON_IE_DIR}/SaveCSFDBDlg.h
${COMMON_IE_DIR}/SaveSTEPDlg.h )
set (COMMON_IE_SOURCE_FILES ${COMMON_IE_DIR}/ImportExport.cpp
${COMMON_IE_DIR}/SaveCSFDBDlg.cpp
${COMMON_IE_DIR}/SaveSTEPDlg.cpp )
# Common ISession2D
set (COMMON_ISESSION2D_DIR ${MFC_STANDARD_COMMON_SAMPLES_DIR}/ISession2D)
set (COMMON_ISESSION2D_HEADER_FILES ${COMMON_ISESSION2D_DIR}/ISession2D_Shape.h )
set (COMMON_ISESSION2D_SOURCE_FILES ${COMMON_ISESSION2D_DIR}/ISession2D_Shape.cpp )
# Common Primitive
set (COMMON_PRIMITIVE_DIR ${MFC_STANDARD_COMMON_SAMPLES_DIR}/Primitive)
set (COMMON_PRIMITIVE_HEADER_FILES ${COMMON_PRIMITIVE_DIR}/Sample2D_Face.h
${COMMON_PRIMITIVE_DIR}/Sample2D_Image.h
${COMMON_PRIMITIVE_DIR}/Sample2D_Markers.h
${COMMON_PRIMITIVE_DIR}/Sample2D_Text.h )
set (COMMON_PRIMITIVE_SOURCE_FILES ${COMMON_PRIMITIVE_DIR}/Sample2D_Face.cpp
${COMMON_PRIMITIVE_DIR}/Sample2D_Image.cpp
${COMMON_PRIMITIVE_DIR}/Sample2D_Markers.cpp
${COMMON_PRIMITIVE_DIR}/Sample2D_Text.cpp )
# Common Resource2D
set (COMMON_RESOURCE2D_DIR ${MFC_STANDARD_COMMON_SAMPLES_DIR}/Resource2D)
set (COMMON_RESOURCE2D_HEADER_FILES ${COMMON_RESOURCE2D_DIR}/CircularGrid.h
${COMMON_RESOURCE2D_DIR}/RectangularGrid.h )
set (COMMON_RESOURCE2D_SOURCE_FILES ${COMMON_RESOURCE2D_DIR}/CircularGrid.cpp
${COMMON_RESOURCE2D_DIR}/RectangularGrid.cpp )
# Common headers
set (COMMON_HEADER_FILES ${MFC_STANDARD_COMMON_SAMPLES_DIR}/AISDialogs.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_2dDoc.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_2dChildFrame.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_2dView.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_3dBaseDoc.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_App.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_3dDoc.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_3dChildFrame.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_3dView.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_BaseDoc.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_BaseChildFrame.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_BaseView.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/OCC_MainFrame.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/ResultDialog.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/User_Cylinder.hxx
${MFC_STANDARD_COMMON_SAMPLES_DIR}/ColoredMeshDlg.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/DimensionDlg.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/LengthParamsEdgePage.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/LengthParamsVerticesPage.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/RadiusParamsPage.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/LengthParamsEdgesPage.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/LengthParamsVerticesPage.h
${MFC_STANDARD_COMMON_SAMPLES_DIR}/AngleParamsVerticesPage.h)
# Common resources
set (COMMON_RESOURCE_DIR ${MFC_STANDARD_COMMON_SAMPLES_DIR}/res)
set (COMMON_RESOURCE_FILES ${COMMON_RESOURCE_DIR}/2dChildFrameTB.bmp
${COMMON_RESOURCE_DIR}/2dType.ico
${COMMON_RESOURCE_DIR}/3dChildFrameTB.bmp
${COMMON_RESOURCE_DIR}/3dType.ico
${COMMON_RESOURCE_DIR}/AIS_TB.bmp
${COMMON_RESOURCE_DIR}/coloredm.bmp
${COMMON_RESOURCE_DIR}/MainFrame.ico
${COMMON_RESOURCE_DIR}/occ_logo.bmp
${COMMON_RESOURCE_DIR}/OCC_Resource.rc)
# groups in the VS solution
source_group ( "Header Files" FILES ${COMMON_HEADER_FILES}
${COMMON_IE_HEADER_FILES}
${COMMON_PRIMITIVE_HEADER_FILES}
${COMMON_RESOURCE2D_HEADER_FILES}
${COMMON_ISESSION2D_HEADER_FILES})
source_group ("Source Files" FILES ${mfcsample_SOURCE_FILES}
${COMMON_SOURCE_FILES}
${COMMON_IE_SOURCE_FILES}
${COMMON_PRIMITIVE_SOURCE_FILES}
${COMMON_RESOURCE2D_SOURCE_FILES}
${COMMON_ISESSION2D_SOURCE_FILES})
source_group ( "Resource Files" FILES ${COMMON_RESOURCE_FILES})
# mfcsample library
add_library ( mfcsample SHARED ${mfcsample_SOURCE_FILES}
${COMMON_HEADER_FILES}
${COMMON_SOURCE_FILES}
${COMMON_IE_HEADER_FILES}
${COMMON_IE_SOURCE_FILES}
${COMMON_PRIMITIVE_HEADER_FILES}
${COMMON_PRIMITIVE_SOURCE_FILES}
${COMMON_RESOURCE2D_HEADER_FILES}
${COMMON_RESOURCE2D_SOURCE_FILES}
${COMMON_ISESSION2D_HEADER_FILES}
${COMMON_ISESSION2D_SOURCE_FILES}
${COMMON_RESOURCE_FILES})
set_property (TARGET mfcsample PROPERTY FOLDER Samples)
install (TARGETS mfcsample RUNTIME DESTINATION "${INSTALL_DIR}/bin"
ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
LIBRARY DESTINATION "${INSTALL_DIR}/lib")
include_directories( ${OCCT_ROOT}/inc
${MFC_STANDARD_COMMON_SAMPLES_DIR}
${COMMON_IE_DIR}
${COMMON_ISESSION2D_DIR}
${COMMON_PRIMITIVE_DIR}
${COMMON_RESOURCE2D_DIR})
# OCCT libraries for using
set (mfcsample_USED_LIBS TKVRML
TKSTL
TKBRep
TKIGES
TKShHealing
TKSTEP
TKXSBase
TKShapeSchema
FWOSPlugin
PTKernel
TKBool
TKCAF
TKCDF
TKernel
TKFeat
TKFillet
TKG2d
TKG3d
TKGeomAlgo
TKGeomBase
TKHLR
TKMath
TKOffset
TKOpenGl
TKPCAF
TKPrim
TKPShape
TKService
TKTopAlgo
TKMesh
TKV3d)
target_link_libraries (mfcsample ${mfcsample_USED_LIBS})