0032709: Samples, MFC - remove samples Viewer2d, Viewer3d, Ocaf, Triangulation, Animation, Convert
@ -1124,14 +1124,8 @@ if (BUILD_SAMPLES_MFC)
|
||||
add_subdirectory(samples/mfc/standard/mfcsample)
|
||||
add_subdirectory(samples/mfc/standard/01_Geometry)
|
||||
add_subdirectory(samples/mfc/standard/02_Modeling)
|
||||
add_subdirectory(samples/mfc/standard/03_Viewer2d)
|
||||
add_subdirectory(samples/mfc/standard/04_Viewer3d)
|
||||
add_subdirectory(samples/mfc/standard/05_ImportExport)
|
||||
add_subdirectory(samples/mfc/standard/06_Ocaf)
|
||||
add_subdirectory(samples/mfc/standard/07_Triangulation)
|
||||
add_subdirectory(samples/mfc/standard/08_HLR)
|
||||
add_subdirectory(samples/mfc/standard/09_Animation)
|
||||
add_subdirectory(samples/mfc/standard/10_Convert)
|
||||
add_subdirectory(samples/mfc/standard/03_ImportExport)
|
||||
add_subdirectory(samples/mfc/standard/04_HLR)
|
||||
|
||||
message (STATUS "Info: \(${CURRENT_TIME}\) MFC Sample projects added")
|
||||
endif()
|
||||
|
0
samples/mfc/standard/05_ImportExport/res/ImportExport.rc → samples/mfc/standard/03_ImportExport/res/ImportExport.rc
Executable file → Normal file
0
samples/mfc/standard/05_ImportExport/res/Toolbar.bmp → samples/mfc/standard/03_ImportExport/res/Toolbar.bmp
Executable file → Normal file
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
0
samples/mfc/standard/05_ImportExport/res/resource.h → samples/mfc/standard/03_ImportExport/res/resource.h
Executable file → Normal file
0
samples/mfc/standard/05_ImportExport/src/ColoredShapes.cpp → samples/mfc/standard/03_ImportExport/src/ColoredShapes.cpp
Executable file → Normal file
0
samples/mfc/standard/05_ImportExport/src/ColoredShapes.h → samples/mfc/standard/03_ImportExport/src/ColoredShapes.h
Executable file → Normal file
0
samples/mfc/standard/05_ImportExport/src/ImportExportApp.cpp → samples/mfc/standard/03_ImportExport/src/ImportExportApp.cpp
Executable file → Normal file
0
samples/mfc/standard/05_ImportExport/src/ImportExportApp.h → samples/mfc/standard/03_ImportExport/src/ImportExportApp.h
Executable file → Normal file
0
samples/mfc/standard/05_ImportExport/src/ImportExportDoc.cpp → samples/mfc/standard/03_ImportExport/src/ImportExportDoc.cpp
Executable file → Normal file
0
samples/mfc/standard/05_ImportExport/src/ImportExportDoc.h → samples/mfc/standard/03_ImportExport/src/ImportExportDoc.h
Executable file → Normal file
0
samples/mfc/standard/05_ImportExport/src/StdAfx.cpp → samples/mfc/standard/03_ImportExport/src/StdAfx.cpp
Executable file → Normal file
0
samples/mfc/standard/05_ImportExport/src/StdAfx.h → samples/mfc/standard/03_ImportExport/src/StdAfx.h
Executable file → Normal file
@ -1,54 +0,0 @@
|
||||
cmake_minimum_required (VERSION 2.6)
|
||||
|
||||
project (Viewer2d)
|
||||
|
||||
add_definitions (-DWINVER=0x0501 -DUNICODE -D_UNICODE)
|
||||
set (CMAKE_MFC_FLAG 2)
|
||||
|
||||
set (Viewer2d_SOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/03_Viewer2d/src)
|
||||
set (Viewer2d_HEADER_FILES ${Viewer2d_SOURCE_DIR}/Viewer2dApp.h
|
||||
${Viewer2d_SOURCE_DIR}/Viewer2dDoc.h
|
||||
${Viewer2d_SOURCE_DIR}/StdAfx.h )
|
||||
set (Viewer2d_SOURCE_FILES ${Viewer2d_SOURCE_DIR}/Viewer2dApp.cpp
|
||||
${Viewer2d_SOURCE_DIR}/Viewer2dDoc.cpp
|
||||
${Viewer2d_SOURCE_DIR}/StdAfx.cpp )
|
||||
|
||||
set (Viewer2d_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/03_Viewer2d/res)
|
||||
set (Viewer2d_RESOURCE_HEADER ${Viewer2d_RESOURCE_DIR}/resource.h)
|
||||
set (Viewer2d_RESOURCE_FILES ${Viewer2d_RESOURCE_DIR}/Toolbar.bmp
|
||||
${Viewer2d_RESOURCE_DIR}/Viewer2d.rc)
|
||||
|
||||
# groups in the VS solution
|
||||
source_group ("Source Files" FILES ${Viewer2d_SOURCE_FILES}
|
||||
${COMMON_WINMAIN_FILE})
|
||||
|
||||
source_group ("Header Files" FILES ${Viewer2d_HEADER_FILES}
|
||||
${Viewer2d_RESOURCE_HEADER})
|
||||
|
||||
source_group ("Resource Files" FILES ${Viewer2d_RESOURCE_FILES})
|
||||
|
||||
add_executable (Viewer2d WIN32 ${Viewer2d_SOURCE_FILES}
|
||||
${Viewer2d_HEADER_FILES}
|
||||
${COMMON_WINMAIN_FILE}
|
||||
${Viewer2d_RESOURCE_HEADER}
|
||||
${Viewer2d_RESOURCE_FILES})
|
||||
|
||||
set_property (TARGET Viewer2d PROPERTY FOLDER "Samples/mfc")
|
||||
|
||||
if (SINGLE_GENERATOR)
|
||||
install (TARGETS Viewer2d DESTINATION "${INSTALL_DIR_BIN}")
|
||||
else()
|
||||
install (TARGETS Viewer2d
|
||||
CONFIGURATIONS Release RelWithDebInfo
|
||||
DESTINATION "${INSTALL_DIR_BIN}")
|
||||
install (TARGETS Viewer2d
|
||||
CONFIGURATIONS Debug
|
||||
DESTINATION "${INSTALL_DIR_BIN}d")
|
||||
endif()
|
||||
|
||||
include_directories (${CMAKE_BINARY_DIR}/inc
|
||||
${MFC_STANDARD_SAMPLES_DIR}/03_Viewer2d
|
||||
${Viewer2d_SOURCE_DIR}
|
||||
${MFC_STANDARD_SAMPLES_DIR}/Common)
|
||||
|
||||
target_link_libraries (Viewer2d mfcsample)
|
@ -1,16 +0,0 @@
|
||||
Viewer2d sample demonstrates how the functionality of TKV3d package can be
|
||||
used for 2D visualization. It provides samples of 2D objects visualization,
|
||||
dynamic selection and highlighting.
|
||||
It illustrates how to:
|
||||
1) implement 2D view behavior with V3d_View class, with interactive zooming
|
||||
and panning of the 2D scene;
|
||||
2) draw 2D primitives like rectangles, lines, curves;
|
||||
3) draw different types of markers;
|
||||
4) draw text defined by its font, height, style, angle;
|
||||
5) display 2D curves of a face' edges and group them using orientation
|
||||
criterion;
|
||||
6) display zoomable images;
|
||||
6) display circular and rectangular grids .
|
||||
|
||||
Viewer2d support zooming ,panning of displayed objects and
|
||||
circular and rectangular grids.
|
@ -1,354 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{6B905DC2-4E72-4EDA-99C2-7473634690FE}</ProjectGuid>
|
||||
<RootNamespace>Viewer2d</RootNamespace>
|
||||
<Keyword>MFCProj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseOfMfc>Dynamic</UseOfMfc>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseOfMfc>Dynamic</UseOfMfc>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseOfMfc>Dynamic</UseOfMfc>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseOfMfc>Dynamic</UseOfMfc>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../../../win32\$(VCFMT)\bin\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\win32\obj\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">../../../../win64\$(VCFMT)\bin\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\win64\obj\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../../../../win32\$(VCFMT)\bind\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\win32\objd\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">../../../../win64\$(VCFMT)\bind\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\win64\objd\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MkTypLibCompatible>true</MkTypLibCompatible>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TargetEnvironment>Win32</TargetEnvironment>
|
||||
<TypeLibraryName>.\win32\obj/Viewer2d.tlb</TypeLibraryName>
|
||||
<HeaderFileName>
|
||||
</HeaderFileName>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<AdditionalIncludeDirectories>..\..\..\src\Properties;.;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
|
||||
<PrecompiledHeaderOutputFile>.\win32\obj/Viewer2d.pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\win32\obj/</AssemblerListingLocation>
|
||||
<ObjectFileName>.\win32\obj/</ObjectFileName>
|
||||
<ProgramDataBaseFileName>.\win32\obj/</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<CompileAs>Default</CompileAs>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>../../../../win32\$(VCFMT)\bin/Viewer2d.exe</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<ProgramDatabaseFile>../../../../win32\$(VCFMT)\bin/Viewer2d.pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MkTypLibCompatible>true</MkTypLibCompatible>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
<TypeLibraryName>.\win64\obj/Viewer2d.tlb</TypeLibraryName>
|
||||
<HeaderFileName>
|
||||
</HeaderFileName>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<AdditionalIncludeDirectories>..\..\..\src\Properties;.;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
|
||||
<PrecompiledHeaderOutputFile>.\win64\obj/Viewer2d.pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\win64\obj/</AssemblerListingLocation>
|
||||
<ObjectFileName>.\win64\obj/</ObjectFileName>
|
||||
<ProgramDataBaseFileName>.\win64\obj/</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<CompileAs>Default</CompileAs>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>../../../../win64\$(VCFMT)\bin/Viewer2d.exe</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<ProgramDatabaseFile>../../../../win64\$(VCFMT)\bin/Viewer2d.pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MkTypLibCompatible>true</MkTypLibCompatible>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TargetEnvironment>Win32</TargetEnvironment>
|
||||
<TypeLibraryName>.\win32\objd/Viewer2d.tlb</TypeLibraryName>
|
||||
<HeaderFileName>
|
||||
</HeaderFileName>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>..\..\..\src\Properties;.;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
|
||||
<PrecompiledHeaderOutputFile>.\win32\objd/Viewer2d.pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\win32\objd/</AssemblerListingLocation>
|
||||
<ObjectFileName>.\win32\objd/</ObjectFileName>
|
||||
<ProgramDataBaseFileName>.\win32\objd/</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>../../../../win32\$(VCFMT)\bind/Viewer2d.exe</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<ProgramDatabaseFile>../../../../win32\$(VCFMT)\bind/Viewer2d.pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MkTypLibCompatible>true</MkTypLibCompatible>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
<TypeLibraryName>.\win64\objd/Viewer2d.tlb</TypeLibraryName>
|
||||
<HeaderFileName>
|
||||
</HeaderFileName>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>..\..\..\src\Properties;.;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
|
||||
<PrecompiledHeaderOutputFile>.\win64\objd/Viewer2d.pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\win64\objd/</AssemblerListingLocation>
|
||||
<ObjectFileName>.\win64\objd/</ObjectFileName>
|
||||
<ProgramDataBaseFileName>.\win64\objd/</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>../../../../win64\$(VCFMT)\bind/Viewer2d.exe</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<ProgramDatabaseFile>../../../../win64\$(VCFMT)\bind/Viewer2d.pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\src\StdAfx.cpp">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\Viewer2dApp.cpp">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\Viewer2dDoc.cpp">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="..\..\..\res\Viewer2d.rc">
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\res\resource.h" />
|
||||
<ClInclude Include="..\..\..\src\StdAfx.h" />
|
||||
<ClInclude Include="..\..\..\src\Viewer2dApp.h" />
|
||||
<ClInclude Include="..\..\..\src\Viewer2dDoc.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\..\..\res\Toolbar.bmp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\..\mfcsample\adm\win\vc10\mfcsample.vcxproj">
|
||||
<Project>{2d6cbbe8-6965-4016-b503-0d715ae26691}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
@ -1,55 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{a5fbdc06-d5d7-4c8a-b829-e986d5c86642}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{c7319851-4cde-42ce-b4aa-8b7ddd5f0c21}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{ffedd656-2b68-4a6e-8df3-973a1a5b136e}</UniqueIdentifier>
|
||||
<Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\src\StdAfx.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\Viewer2dApp.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\Viewer2dDoc.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="..\..\..\res\Viewer2d.rc">
|
||||
<Filter>Source Files</Filter>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\res\resource.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\StdAfx.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\Viewer2dApp.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\Viewer2dDoc.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\..\..\res\Toolbar.bmp">
|
||||
<Filter>Resource Files</Filter>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
</Project>
|
Before Width: | Height: | Size: 1.3 KiB |
@ -1,420 +0,0 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
#include "..\..\Common\res\OCC_Resource.h"
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"#include ""..\\..\\..\\Common\\res\\OCC_Resource.h""\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
|
||||
"#define _AFX_NO_OLE_RESOURCES\r\n"
|
||||
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
|
||||
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
|
||||
"\r\n"
|
||||
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
|
||||
"#ifdef _WIN32\r\n"
|
||||
"LANGUAGE 9, 1\r\n"
|
||||
"#pragma code_page(1252)\r\n"
|
||||
"#endif\r\n"
|
||||
"#include ""afxres.rc"" // Standard components\r\n"
|
||||
"#endif\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Toolbar
|
||||
//
|
||||
|
||||
IDR_MAINFRAME TOOLBAR 16, 15
|
||||
BEGIN
|
||||
BUTTON ID_FILE_NEW
|
||||
SEPARATOR
|
||||
BUTTON ID_BUTTON_Test_Text
|
||||
BUTTON ID_BUTTON_Test_Markers
|
||||
BUTTON ID_BUTTON_Test_Line
|
||||
SEPARATOR
|
||||
BUTTON ID_BUTTON_Test_Face
|
||||
SEPARATOR
|
||||
BUTTON ID_BUTTON_Test_Rect
|
||||
SEPARATOR
|
||||
BUTTON ID_BUTTON_Test_Curve
|
||||
SEPARATOR
|
||||
BUTTON ID_BUTTON32793
|
||||
BUTTON ID_BUTTON_Test_MultiImages
|
||||
SEPARATOR
|
||||
BUTTON ID_BUTTON_Erase
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_DIALOG_Color DIALOG 0, 0, 281, 186
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Color Map "
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
LTEXT "Type Of The Color Map :",IDC_STATIC,20,10,87,10
|
||||
LTEXT "To be updated ...",IDC_ColorMap_STATIC_Type,110,10,69,10
|
||||
LTEXT "Size Of The Color Map :",IDC_STATIC,20,20,79,10
|
||||
CONTROL "Tab1",IDC_ColorMap_TAB,"SysTabControl32",TCS_BUTTONS,19,53,242,15
|
||||
LTEXT "To be updated ...",IDC_ColorMap_STATIC_Size,110,20,69,10
|
||||
GROUPBOX "Entries :",IDC_STATIC,10,40,264,50
|
||||
LTEXT "Color Name :",IDC_STATIC,20,75,50,10
|
||||
LTEXT "To be updated ...",IDC_ColorMap_STATIC_EntryColorName,204,75,69,10
|
||||
PUSHBUTTON "Add",IDC_ColorMap_BUTTON_AddNewEntry,110,145,55,15
|
||||
GROUPBOX "New Entry",IDC_STATIC,10,100,267,79
|
||||
PUSHBUTTON "Update Current",IDC_ColorMap_BUTTON_UpdateCurrentEntry,20,145,55,15
|
||||
LTEXT "Color Name :",IDC_ColorMap_STATIC_NewEntryColorNameStatic,20,120,55,10
|
||||
PUSHBUTTON "Edit...",IDC_ColorMap_BUTTON_NewEntry_EditColor,204,145,55,15
|
||||
LTEXT "999",IDC_ColorMap_STATIC_EntryColorRed,75,75,35,10
|
||||
LTEXT "999",IDC_ColorMap_STATIC_EntryColorGreen,120,75,35,10
|
||||
LTEXT "999",IDC_ColorMap_STATIC_EntryColorBlue,165,75,35,10
|
||||
EDITTEXT IDC_ColorMap_EDIT_NewEntryColorRed,75,120,35,12,ES_AUTOHSCROLL
|
||||
EDITTEXT IDC_ColorMap_EDIT_NewEntryColorGreen,120,120,30,12,ES_AUTOHSCROLL
|
||||
EDITTEXT IDC_ColorMap_EDIT_NewEntryColorBlue,165,120,35,12,ES_AUTOHSCROLL
|
||||
COMBOBOX IDC_ColorMap_COMBO_NewEntryColorName,204,120,70,193,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
|
||||
PUSHBUTTON "New Generic Color Map",IDC_ColorMap_BUTTON_NewGenericColorMap,179,4,95,13
|
||||
LTEXT "Not available for this type of Color map",IDC_ColorMap_STATIC_NewEntryNotavailable,70,130,160,10
|
||||
PUSHBUTTON "New Color Cube Color Map ",IDC_ColorMap_BUTTON_NewColorCubeColorMap,179,18,95,13
|
||||
PUSHBUTTON "New Color Ramp Color Map",IDC_ColorMap_BUTTON_NewColorRampColorMap,179,31,95,13
|
||||
END
|
||||
|
||||
IDD_DIALOG_Font DIALOGEX 0, 0, 287, 210
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Font Map"
|
||||
FONT 8, "MS Sans Serif", 0, 0, 0x1
|
||||
BEGIN
|
||||
LTEXT "Size Of The Font Map :",IDC_STATIC,20,10,80,10
|
||||
LTEXT "To be updated ...",IDC_FontMap_STATIC_Size,110,10,80,10
|
||||
GROUPBOX "Entries :",IDC_STATIC,10,28,270,97,0,WS_EX_TRANSPARENT
|
||||
CONTROL "Tab1",IDC_FontMap_TAB,"SysTabControl32",TCS_BUTTONS,20,40,242,15
|
||||
GROUPBOX "New Entry",IDC_STATIC,10,130,270,73
|
||||
PUSHBUTTON "Update Current",IDC_FontMap_BUTTON_UpdateCurrent,158,181,55,15
|
||||
PUSHBUTTON "Add",IDC_FontMap_BUTTON_NewEntry,221,179,55,16
|
||||
LTEXT "To be updated...",IDC_FontMap_STATIC_CurrentEntryValue,63,75,217,10
|
||||
LTEXT "Type :",IDC_STATIC,21,155,23,10
|
||||
LTEXT "Type :",IDC_STATIC,21,60,40,10
|
||||
LTEXT "To be updated ...",IDC_FontMap_STATIC_CurrentEntryType,63,60,80,10
|
||||
LTEXT "Size :",IDC_STATIC,21,174,42,10
|
||||
LTEXT "Slant :",IDC_STATIC,21,189,28,10
|
||||
EDITTEXT IDC_FontMap_EDIT_NewEntrySize,63,172,62,12,ES_AUTOHSCROLL | ES_WANTRETURN
|
||||
EDITTEXT IDC_FontMap_EDIT_NewEntrySlant,63,187,62,12,ES_AUTOHSCROLL | ES_WANTRETURN
|
||||
LTEXT "Size :",IDC_STATIC,21,90,30,10
|
||||
LTEXT "Slant :",IDC_STATIC,21,106,36,10
|
||||
LTEXT "Value :",IDC_STATIC,21,75,40,10
|
||||
LTEXT "Type :",IDC_STATIC,21,140,42,10
|
||||
COMBOBOX IDC_FontMap_COMBO_NewEntryType,63,138,113,77,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
|
||||
EDITTEXT IDC_FontMap_EDIT_NewEntryValue,63,153,209,12,ES_AUTOHSCROLL | ES_READONLY
|
||||
LTEXT "To be updated...",IDC_FontMap_STATIC_CurrentEntrySize,63,90,70,10
|
||||
LTEXT "To be updated...",IDC_FontMap_STATIC_CurrentEntrySlant,63,106,80,10
|
||||
PUSHBUTTON "Edit...",IDC_FontMap_BUTTON_NewEntry_EditFont,191,138,55,12
|
||||
END
|
||||
|
||||
IDD_DIALOG_Width DIALOG 0, 0, 281, 167
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Width Map "
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
LTEXT "Size Of The Width Map :",IDC_STATIC,15,10,80,10
|
||||
CONTROL "Tab1",IDC_WidthMap_TAB,"SysTabControl32",TCS_BUTTONS,21,40,242,15
|
||||
LTEXT "To be updated ...",IDC_WidthMap_STATIC_Size,107,10,80,10
|
||||
GROUPBOX "Entries :",IDC_STATIC,10,30,264,57
|
||||
LTEXT "Type :",IDC_STATIC,15,60,80,10
|
||||
LTEXT "Width :",IDC_STATIC,15,75,80,10
|
||||
LTEXT "Type :",IDC_STATIC,15,115,49,10
|
||||
LTEXT "Width :",IDC_STATIC,15,130,49,10
|
||||
COMBOBOX IDC_WidthMap_COMBO_NewEntryType,70,113,113,77,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
|
||||
EDITTEXT IDC_WidthMap_EDIT_NewEntryWidth,70,128,62,12,ES_AUTOHSCROLL | ES_READONLY | ES_WANTRETURN
|
||||
LTEXT "To be updated ...",IDC_WidthMap_STATIC_EntryType,107,60,80,10
|
||||
LTEXT "To be updated ...",IDC_WidthMap_STATIC_EntryWidth,107,75,80,10
|
||||
PUSHBUTTON "Add",IDC_WidthMap_BUTTON_AddNewEntry,200,130,55,15
|
||||
GROUPBOX "New Entry",IDC_STATIC,7,101,267,51
|
||||
PUSHBUTTON "Update Current",IDC_WidthMap_BUTTON_UpdateCurrentEntry,200,110,55,15
|
||||
END
|
||||
|
||||
IDD_DIALOG_NewColorCube DIALOG 0, 0, 207, 156
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "New Color Cube"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "OK",IDOK,150,10,50,13
|
||||
PUSHBUTTON "Cancel",IDCANCEL,150,30,50,14
|
||||
LTEXT "base_pixel",IDC_STATIC,20,10,50,10
|
||||
LTEXT "greenmax",IDC_STATIC,20,70,50,10
|
||||
LTEXT "greenmult",IDC_STATIC,20,90,50,10
|
||||
LTEXT "bluemax",IDC_STATIC,20,110,50,10
|
||||
LTEXT "bluemult",IDC_STATIC,20,130,50,10
|
||||
EDITTEXT IDC_NewColorCube_EDIT_bluemult,80,130,50,12,ES_AUTOHSCROLL | ES_NUMBER
|
||||
EDITTEXT IDC_NewColorCube_EDIT_bluemax,80,110,50,12,ES_AUTOHSCROLL | ES_NUMBER
|
||||
EDITTEXT IDC_NewColorCube_EDIT_grennmult,80,90,50,12,ES_AUTOHSCROLL | ES_NUMBER
|
||||
EDITTEXT IDC_NewColorCube_EDIT_greenmax,80,70,50,12,ES_AUTOHSCROLL | ES_NUMBER
|
||||
EDITTEXT IDC_NewColorCube_EDIT_base_pixel,80,10,50,12,ES_AUTOHSCROLL | ES_NUMBER
|
||||
LTEXT "redmax",IDC_STATIC,20,30,50,10
|
||||
EDITTEXT IDC_NewColorCube_EDIT_redmax,80,30,50,12,ES_AUTOHSCROLL | ES_NUMBER
|
||||
LTEXT "redmult",IDC_STATIC,20,50,50,10
|
||||
EDITTEXT IDC_NewColorCube_EDIT_redmult,80,50,50,12,ES_AUTOHSCROLL | ES_NUMBER
|
||||
END
|
||||
|
||||
IDD_DIALOG_NewColorRamp DIALOG 0, 0, 252, 121
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "New Color ramp"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "OK",IDOK,150,10,50,13
|
||||
PUSHBUTTON "Cancel",IDCANCEL,150,30,50,14
|
||||
LTEXT "base_pixel",-1,20,10,49,10
|
||||
EDITTEXT IDC_NewColorRamp_EDIT_base_pixel,80,10,40,12,ES_AUTOHSCROLL | ES_NUMBER
|
||||
LTEXT "dimension",-1,20,30,49,10
|
||||
EDITTEXT IDC_NewColorramp_EDIT_dimension,80,30,40,12,ES_AUTOHSCROLL | ES_NUMBER
|
||||
LTEXT "Color Name :",IDC_ColorMap_STATIC_NewEntryColorNameStatic,20,50,49,10
|
||||
PUSHBUTTON "Edit...",IDC_NewColorMapRamp_BUTTON_EditColor,145,70,55,10
|
||||
EDITTEXT IDC_NewColorMapRamp_EDIT_ColorRed,28,70,35,12,ES_AUTOHSCROLL
|
||||
EDITTEXT IDC_NewColorMapRamp_EDIT_ColorGreen,65,70,35,12,ES_AUTOHSCROLL
|
||||
EDITTEXT IDC_NewColorMapRamp_EDIT_ColorBlue,103,70,35,12,ES_AUTOHSCROLL
|
||||
COMBOBOX IDC_NewColorMap_COMBO_NewEntryColorName,80,50,70,193,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
|
||||
END
|
||||
|
||||
IDD_DIALOG_Type DIALOGEX 0, 0, 287, 170
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Type Map"
|
||||
FONT 8, "MS Sans Serif", 0, 0, 0x1
|
||||
BEGIN
|
||||
LTEXT "Size Of The Type Map :",-1,20,10,80,10
|
||||
LTEXT "To be updated ...",IDC_TypeMap_STATIC_Size,110,10,80,10
|
||||
GROUPBOX "Entries :",-1,10,28,270,62,0,WS_EX_TRANSPARENT
|
||||
CONTROL "Tab1",IDC_TypeMap_TAB,"SysTabControl32",TCS_BUTTONS,20,40,242,15
|
||||
GROUPBOX "New Entry",-1,10,100,270,60
|
||||
PUSHBUTTON "Update Current",IDC_FontMap_BUTTON_UpdateCurrent,160,140,55,15
|
||||
PUSHBUTTON "Add",IDC_FontMap_BUTTON_NewEntry,220,140,55,15
|
||||
LTEXT "To be updated...",IDC_TypeMap_STATIC_CurrentEntryValue,63,75,217,10
|
||||
LTEXT "Value :",-1,21,126,42,10
|
||||
LTEXT "Style :",-1,21,60,40,10
|
||||
LTEXT "To be updated ...",IDC_TypeMap_STATIC_CurrentEntryStyle,63,60,80,10
|
||||
LTEXT "Value :",-1,21,75,40,10
|
||||
LTEXT "Style :",-1,21,111,42,10
|
||||
COMBOBOX IDC_TypeMap_COMBO_NewEntryStyle,63,108,113,77,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
|
||||
EDITTEXT IDC_TypeMap_EDIT_NewEntryValue,63,124,194,12,ES_AUTOHSCROLL | ES_READONLY
|
||||
END
|
||||
|
||||
IDD_DIALOG_Mark DIALOGEX 0, 0, 287, 201
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Mark Map"
|
||||
FONT 8, "MS Sans Serif", 0, 0, 0x1
|
||||
BEGIN
|
||||
LTEXT "Size Of The Mark Map :",AFX_ID_PREVIEW_CLOSE,20,10,80,10
|
||||
LTEXT "To be updated ...",IDC_MarkMap_STATIC_Size,110,10,80,10
|
||||
GROUPBOX "Entries :",-1,10,28,270,92,0,WS_EX_TRANSPARENT
|
||||
CONTROL "Tab1",IDC_MarkMap_TAB,"SysTabControl32",TCS_BUTTONS,20,40,242,15
|
||||
LTEXT "To be updated...",IDC_MarkMap_STATIC_CurrentEntryXValue,63,75,217,9
|
||||
LTEXT "Style :",-1,21,60,40,10
|
||||
LTEXT "To be updated ...",IDC_MarkMap_STATIC_CurrentEntryStyle,63,60,80,10
|
||||
LTEXT "XValue :",-1,21,75,40,9
|
||||
LTEXT "To be updated...",IDC_MarkMap_STATIC_CurrentEntryYValue,63,90,217,10
|
||||
LTEXT "YValue :",-1,21,90,40,10
|
||||
LTEXT "To be updated...",IDC_MarkMap_STATIC_CurrentEntrySValue,63,105,217,10
|
||||
LTEXT "SValue :",-1,21,105,40,10
|
||||
LTEXT "To be updated...",IDC_MarkMap_STATIC_CurrentEntryValue,62,90,217,10
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Bitmap
|
||||
//
|
||||
|
||||
IDR_MAINFRAME BITMAP "Toolbar.bmp"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Menu
|
||||
//
|
||||
|
||||
IDR_2DTYPE MENU
|
||||
BEGIN
|
||||
POPUP "&File"
|
||||
BEGIN
|
||||
MENUITEM "&New\tCtrl+N", ID_FILE_NEW
|
||||
MENUITEM "&Close", ID_FILE_CLOSE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Export Image...", ID_FILE_EXPORT_IMAGE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "E&xit", ID_APP_EXIT
|
||||
END
|
||||
POPUP "&View"
|
||||
BEGIN
|
||||
MENUITEM "&Toolbar", ID_VIEW_TOOLBAR
|
||||
MENUITEM "&Status Bar", ID_VIEW_STATUS_BAR
|
||||
END
|
||||
POPUP "&Window"
|
||||
BEGIN
|
||||
MENUITEM "&New Window", ID_WINDOW_NEW
|
||||
MENUITEM "&Cascade", ID_WINDOW_CASCADE
|
||||
MENUITEM "&Tile", ID_WINDOW_TILE_HORZ
|
||||
MENUITEM "&Arrange Icons", ID_WINDOW_ARRANGE
|
||||
END
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&About Viewer2d...", ID_APP_ABOUT
|
||||
END
|
||||
END
|
||||
|
||||
IDR_MAINFRAME MENU
|
||||
BEGIN
|
||||
POPUP "&File"
|
||||
BEGIN
|
||||
MENUITEM "&New\tCtrl+N", ID_FILE_NEW
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "E&xit", ID_APP_EXIT
|
||||
END
|
||||
POPUP "&View"
|
||||
BEGIN
|
||||
MENUITEM "&Toolbar", ID_VIEW_TOOLBAR
|
||||
MENUITEM "&Status Bar", ID_VIEW_STATUS_BAR
|
||||
END
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&About Viewer2d...", ID_APP_ABOUT
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,0,0,1
|
||||
PRODUCTVERSION 1,0,0,1
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x1L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904B0"
|
||||
BEGIN
|
||||
VALUE "FileDescription", "SAMPLEVIEWER2D MFC Application"
|
||||
VALUE "FileVersion", "1, 0, 0, 1"
|
||||
VALUE "InternalName", "SAMPLEVIEWER2D"
|
||||
VALUE "LegalCopyright", "Copyright © 1997"
|
||||
VALUE "OriginalFilename", "VIEWER2D.EXE"
|
||||
VALUE "ProductName", "SAMPLEVIEWER2D Application"
|
||||
VALUE "ProductVersion", "1, 0, 0, 1"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// String Table
|
||||
//
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDR_MAINFRAME "Viewer2d"
|
||||
IDR_2DTYPE "\nViewer2d\nViewer2d\n\n\nViewer2d.Document\nViewer2d Document"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
ID_BUTTON_Test_Text "Test Text\nTest Text"
|
||||
ID_BUTTON_Test_Markers "Test Markers\nTest Markers"
|
||||
ID_BUTTON_Test_Line "Test Lines\nTest Lines"
|
||||
ID_BUTTON_Erase "Erase all\nErase"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
ID_BUTTONAxo "Face orientation\nFace orientation"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
ID_BUTTON_Test_Curve "Test Curves\nTest Curves"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
ID_BUTTON32793 "Test Image\nTest Image"
|
||||
ID_BUTTON_Test_MultiImages "Test multi-images\nTest multi-images"
|
||||
ID_BUTTON_Test_Rect "Test Rects\nTest Rects"
|
||||
ID_BUTTON_Test_Face "Test Face\nTest Face"
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
#define _AFX_NO_SPLITTER_RESOURCES
|
||||
#define _AFX_NO_OLE_RESOURCES
|
||||
#define _AFX_NO_TRACKER_RESOURCES
|
||||
#define _AFX_NO_PROPERTY_RESOURCES
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE 9, 1
|
||||
#pragma code_page(1252)
|
||||
#endif
|
||||
#include "afxres.rc" // Standard components
|
||||
#endif
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
@ -1,122 +0,0 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by Viewer2d.rc
|
||||
//
|
||||
#define ID_BUTTON_Test_Image 0
|
||||
#define IDR_MAINFRAME2 130
|
||||
#define IDR_2DTYPE2 131
|
||||
#define ID_FILE_EXPORT_IMAGE2 133
|
||||
#define ID_MENU_CASCADE_PROPERTIES 148
|
||||
#define IDD_DIALOG_Font 160
|
||||
#define IDD_DIALOG_Width 161
|
||||
#define IDD_DIALOG_Color 162
|
||||
#define IDD_DIALOG_NewColorCube 163
|
||||
#define IDD_DIALOG_NewColorRamp 164
|
||||
#define IDD_DIALOG_Type 165
|
||||
#define IDD_DIALOG_Mark 166
|
||||
#define ID_BUTTON_Test_Text 1043
|
||||
#define ID_BUTTON_Test_Markers 1045
|
||||
#define ID_BUTTON_Test_Line 1048
|
||||
#define ID_BUTTON_Erase 1051
|
||||
#define IDR_MAINFRAME1 1208
|
||||
#define IDC_ColorMap_STATIC_Type 1420
|
||||
#define IDC_ColorMap_STATIC_Size 1421
|
||||
#define IDC_ColorMap_TAB 1422
|
||||
#define IDC_ColorMap_STATIC_EntryColorGreen 1423
|
||||
#define IDC_ColorMap_STATIC_EntryColorRed 1424
|
||||
#define IDC_ColorMap_STATIC_EntryColorBlue 1425
|
||||
#define IDC_ColorMap_STATIC_EntryColorName 1426
|
||||
#define IDC_ColorMap_EDIT_NewEntryColorRed 1427
|
||||
#define IDC_ColorMap_EDIT_NewEntryColorGreen 1428
|
||||
#define IDC_ColorMap_EDIT_NewEntryColorBlue 1429
|
||||
#define IDC_ColorMap_COMBO_NewEntryColorName 1430
|
||||
#define IDC_ColorMap_BUTTON_NewEntry_EditColor 1431
|
||||
#define IDC_ColorMap_BUTTON_UpdateCurrentEntry 1432
|
||||
#define IDC_ColorMap_BUTTON_AddNewEntry 1433
|
||||
#define IDC_ColorMap_BUTTON_NewGenericColorMap 1434
|
||||
#define IDC_ColorMap_STATIC_NewEntryColorNameStatic 1435
|
||||
#define IDC_ColorMap_STATIC_NewEntryNotavailable 1436
|
||||
#define IDC_ColorMap_BUTTON_NewColorCubeColorMap 1437
|
||||
#define IDC_ColorMap_BUTTON_NewColorRampColorMap 1438
|
||||
#define IDC_NewColorMap_COMBO_NewEntryColorName 1439
|
||||
#define IDC_NewColorMap_BUTTON_NewColorRampColorMap 1440
|
||||
#define IDC_NewColorMapRamp_EDIT_ColorRed 1441
|
||||
#define IDC_NewColorMapRamp_EDIT_ColorGreen 1442
|
||||
#define IDC_NewColorMapRamp_EDIT_ColorBlue 1443
|
||||
#define IDC_NewColorMapRamp_BUTTON_EditColor 1444
|
||||
#define IDC_NewColorRamp_EDIT_base_pixel 1445
|
||||
#define IDC_NewColorramp_EDIT_dimension 1446
|
||||
#define IDC_NewColorCube_EDIT_bluemult 1447
|
||||
#define IDC_NewColorCube_EDIT_base_pixel 1448
|
||||
#define IDC_NewColorCube_EDIT_bluemax 1449
|
||||
#define IDC_NewColorCube_EDIT_grennmult 1450
|
||||
#define IDC_NewColorCube_EDIT_greenmax 1451
|
||||
#define IDC_NewColorCube_EDIT_redmax 1452
|
||||
#define IDC_NewColorCube_EDIT_redmult 1453
|
||||
#define IDC_WidthMap_STATIC_Size 1454
|
||||
#define IDC_WidthMap_TAB 1455
|
||||
#define IDC_WidthMap_STATIC_EntryType 1456
|
||||
#define IDC_WidthMap_STATIC_EntryWidth 1457
|
||||
#define IDC_WidthMap_COMBO_NewEntryType 1458
|
||||
#define IDC_WidthMap_EDIT_NewEntryWidth 1459
|
||||
#define IDC_WidthMap_BUTTON_AddNewEntry 1460
|
||||
#define IDC_WidthMap_BUTTON_UpdateCurrentEntry 1461
|
||||
#define IDC_FontMap_STATIC_Size 1462
|
||||
#define IDC_FontMap_TAB 1463
|
||||
#define IDC_FontMap_STATIC_CurrentEntryValue 1464
|
||||
#define IDC_FontMap_STATIC_CurrentEntryType 1465
|
||||
#define IDC_FontMap_STATIC_CurrentEntrySize 1466
|
||||
#define IDC_FontMap_STATIC_CurrentEntrySlant 1467
|
||||
#define IDC_FontMap_BUTTON_NewEntry 1468
|
||||
#define IDC_FontMap_BUTTON_UpdateCurrent 1469
|
||||
#define IDC_FontMap_COMBO_NewEntryType 1470
|
||||
#define IDC_FontMap_EDIT_NewEntryValue 1471
|
||||
#define IDC_FontMap_EDIT_NewEntrySize 1472
|
||||
#define IDC_FontMap_EDIT_NewEntrySlant 1473
|
||||
#define IDC_FontMap_BUTTON_NewEntry_EditFont 1474
|
||||
#define IDC_TypeMap_STATIC_Size 1475
|
||||
#define IDC_TypeMap_TAB 1476
|
||||
#define IDC_TypeMap_STATIC_CurrentEntryStyle 1477
|
||||
#define IDC_TypeMap_STATIC_CurrentEntryValue 1478
|
||||
#define IDC_TypeMap_COMBO_NewEntryStyle 1479
|
||||
#define IDC_TypeMap_EDIT_NewEntryValue 1480
|
||||
#define IDC_MarkMap_STATIC_Size 1481
|
||||
#define IDC_MarkMap_TAB 1482
|
||||
#define IDC_MarkMap_STATIC_CurrentEntryXValue 1483
|
||||
#define IDC_MarkMap_STATIC_CurrentEntryStyle 1484
|
||||
#define IDC_MarkMap_STATIC_CurrentEntryYValue 1485
|
||||
#define IDC_MarkMap_STATIC_CurrentEntrySValue 1486
|
||||
#define IDC_MarkMap_STATIC_CurrentEntryValue 1487
|
||||
#define ID_BUTTON32791 32791
|
||||
#define ID_BUTTON32793 32793
|
||||
#define ID_BUTTON_Test_MultiImages 32794
|
||||
#define ID_BUTTON_Test_Rect 32795
|
||||
#define ID_BUTTON_Test_Face 32796
|
||||
#define ID_BUTTON_Test_Curve 40016
|
||||
#define ID_FILE_NEW2 57601
|
||||
#define ID_FILE_OPEN2 57603
|
||||
#define ID_FILE_CLOSE2 57604
|
||||
#define ID_FILE_SAVE2 57605
|
||||
#define ID_FILE_SAVE_AS2 57606
|
||||
#define ID_WINDOW_NEW2 57652
|
||||
#define ID_WINDOW_ARRANGE2 57653
|
||||
#define ID_WINDOW_CASCADE2 57654
|
||||
#define ID_WINDOW_TILE_HORZ2 57655
|
||||
#define ID_WINDOW_TILE_VERT2 57656
|
||||
#define ID_WINDOW_SPLIT2 57657
|
||||
#define ID_APP_ABOUT2 57666
|
||||
#define ID_APP_EXIT2 57667
|
||||
#define ID_VIEW_TOOLBAR2 59394
|
||||
#define ID_VIEW_STATUS_BAR2 59395
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_3D_CONTROLS 1
|
||||
#define _APS_NEXT_RESOURCE_VALUE 179
|
||||
#define _APS_NEXT_COMMAND_VALUE 32797
|
||||
#define _APS_NEXT_CONTROL_VALUE 1100
|
||||
#define _APS_NEXT_SYMED_VALUE 170
|
||||
#endif
|
||||
#endif
|
@ -1,6 +0,0 @@
|
||||
// stdafx.cpp : source file that includes just the standard includes
|
||||
// SampleViewer2d.pch will be the pre-compiled header
|
||||
// stdafx.obj will contain the pre-compiled type information
|
||||
|
||||
#include "stdafx.h"
|
||||
|
@ -1,158 +0,0 @@
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently, but
|
||||
// are changed infrequently
|
||||
//
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
||||
|
||||
#include <afxwin.h> // MFC core and standard components
|
||||
#include <afxext.h> // MFC extensions
|
||||
#include <afxdisp.h> // MFC OLE automation classes
|
||||
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
||||
#include <afxcmn.h> // MFC support for Windows Common Controls
|
||||
#endif // _AFX_NO_AFXCMN_SUPPORT
|
||||
|
||||
#pragma warning( disable : 4244 ) // Issue warning 4244
|
||||
#include "Standard_ShortReal.hxx"
|
||||
#pragma warning( default : 4244 ) // Issue warning 4244
|
||||
|
||||
#include <Standard.hxx>
|
||||
/*
|
||||
#ifndef Version15B
|
||||
# ifndef Version15D
|
||||
# ifndef Version20
|
||||
# define Version15B
|
||||
# endif // Version20
|
||||
# endif // Version15D
|
||||
#endif // Version15B
|
||||
|
||||
#pragma message ("=============================")
|
||||
#ifdef Version15B
|
||||
# pragma message ("Set the libs for version 1.5B")
|
||||
#endif // Version15B
|
||||
|
||||
#ifdef Version15D
|
||||
# pragma message ("Set the libs for version 1.5D")
|
||||
#endif // Version15D
|
||||
|
||||
#ifdef Version20
|
||||
# pragma message ("Set the libs for version 2.0 ")
|
||||
#endif // Version20
|
||||
#pragma message ("=============================")
|
||||
|
||||
#ifdef Version15B
|
||||
# pragma comment (lib,"TKTop.lib")
|
||||
# pragma comment (lib,"TShort.lib")
|
||||
# pragma comment (lib,"TColQuantity.lib")
|
||||
#endif
|
||||
|
||||
#ifdef Version15D
|
||||
# pragma comment (lib,"TKTop.lib")
|
||||
#endif
|
||||
|
||||
#ifdef Version20
|
||||
# pragma comment (lib,"TKTop1.lib")
|
||||
# pragma comment (lib,"TKTop2.lib")
|
||||
#endif
|
||||
|
||||
#pragma message ("Set the specific libs for the application")
|
||||
# pragma comment (lib,"TKGeom.lib")
|
||||
# pragma comment (lib,"TKGlt.lib")
|
||||
# pragma comment (lib,"TKGraphic.lib")
|
||||
# pragma comment (lib,"TKPrsMgr.lib")
|
||||
# pragma comment (lib,"TKViewers.lib")
|
||||
# pragma comment (lib,"gp.lib")
|
||||
# pragma comment (lib,"TKernel.lib")
|
||||
*/
|
||||
|
||||
#include <AIS_Circle.hxx>
|
||||
#include <AIS_Line.hxx>
|
||||
#include <AIS_InteractiveContext.hxx>
|
||||
#include <AIS_InteractiveObject.hxx>
|
||||
#include <AIS_TextLabel.hxx>
|
||||
|
||||
#include <Aspect_TypeOfline.hxx>
|
||||
#include <Aspect_WidthOfline.hxx>
|
||||
#include <Aspect_Background.hxx>
|
||||
|
||||
#include <BRepPrimAPI_MakeBox.hxx>
|
||||
#include <BRep_Builder.hxx>
|
||||
#include <BRepBuilderAPI_MakeEdge.hxx>
|
||||
#include <BRepBuilderAPI_MakeWire.hxx>
|
||||
#include <BRepBuilderAPI_MakeFace.hxx>
|
||||
#include <BRepTools.hxx>
|
||||
#include <Bnd_Box2d.hxx>
|
||||
#include <BndLib_Add2dCurve.hxx>
|
||||
|
||||
#include <GCE2d_MakeSegment.hxx>
|
||||
#include <GCPnts_TangentialDeflection.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom_CartesianPoint.hxx>
|
||||
#include <Geom_Circle.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom_Line.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Geom2d_TrimmedCurve.hxx>
|
||||
#include <Geom2dAdaptor_Curve.hxx>
|
||||
#include <GeomTools_Curve2dSet.hxx>
|
||||
#include <Graphic3d_AspectText3d.hxx>
|
||||
#include <Graphic3d_Group.hxx>
|
||||
#include <Graphic3d_AspectMarker3d.hxx>
|
||||
#include <Graphic3d_StructureManager.hxx>
|
||||
#include <Graphic3d_Texture1Dsegment.hxx>
|
||||
#include <gp_Ax2d.hxx>
|
||||
#include <gp_Circ.hxx>
|
||||
#include <gp_Circ2d.hxx>
|
||||
#include <gp_Dir2d.hxx>
|
||||
#include <gp_Lin2d.hxx>
|
||||
#include <gp_Pln.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <gp_Vec2d.hxx>
|
||||
#include <HLRAlgo_Projector.hxx>
|
||||
#include <OSD_Environment.hxx>
|
||||
#include <Precision.hxx>
|
||||
#include <Prs3d_Drawer.hxx>
|
||||
#include <Prs3d_LineAspect.hxx>
|
||||
#include <Prs3d_PlaneAspect.hxx>
|
||||
#include <Prs3d_Presentation.hxx>
|
||||
#include <SelectMgr_EntityOwner.hxx>
|
||||
#include <SelectMgr_Selection.hxx>
|
||||
#include <SelectMgr_SelectableObject.hxx>
|
||||
#include <SelectMgr_SelectionManager.hxx>
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <SelectMgr_Selection.hxx>
|
||||
#include <Standard_OStream.hxx>
|
||||
#include <Standard_IStream.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <Standard_OStream.hxx>
|
||||
#include <Standard_IStream.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TColgp_Array1OfPnt2d.hxx>
|
||||
#include <TColgp_HArray1OfPnt2d.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TopoDS.hxx>
|
||||
#include <V3d_View.hxx>
|
||||
#include <V3d_Viewer.hxx>
|
||||
#include <WNT_Window.hxx>
|
||||
|
||||
#include <..\res\resource.h>
|
||||
|
||||
class ISession2D_InteractiveObject;
|
||||
|
||||
class V3d_Viewer;
|
||||
class SelectMgr_SelectableObject;
|
||||
class TCollection_AsciiString;
|
||||
class gp_Pnt2d;
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
@ -1,75 +0,0 @@
|
||||
// Viewer2dApp.cpp : Defines the class behaviors for the application.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#include "Viewer2dApp.h"
|
||||
|
||||
#include "OCC_MainFrame.h"
|
||||
#include "OCC_2dChildFrame.h"
|
||||
#include "Viewer2dDoc.h"
|
||||
#include "OCC_2dView.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CViewer2dApp construction
|
||||
|
||||
CViewer2dApp::CViewer2dApp() : OCC_App()
|
||||
{
|
||||
SampleName = "Viewer2d"; //for about dialog
|
||||
SetSamplePath (L"..\\..\\03_Viewer2d");
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// The one and only CViewer2dApp object
|
||||
|
||||
CViewer2dApp theApp;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CViewer2dApp initialization
|
||||
|
||||
BOOL CViewer2dApp::InitInstance()
|
||||
{
|
||||
// Standard initialization
|
||||
// If you are not using these features and wish to reduce the size
|
||||
// of your final executable, you should remove from the following
|
||||
// the specific initialization routines you do not need.
|
||||
|
||||
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
|
||||
|
||||
// Register the application's document templates. Document templates
|
||||
// serve as the connection between documents, frame windows and views.
|
||||
|
||||
CMultiDocTemplate* pDocTemplate;
|
||||
pDocTemplate = new CMultiDocTemplate(
|
||||
IDR_2DTYPE,
|
||||
RUNTIME_CLASS(CViewer2dDoc),
|
||||
RUNTIME_CLASS(OCC_2dChildFrame),
|
||||
RUNTIME_CLASS(OCC_2dView));
|
||||
AddDocTemplate(pDocTemplate);
|
||||
|
||||
// create main MDI Frame window
|
||||
OCC_MainFrame* pMainFrame = new OCC_MainFrame;
|
||||
if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
|
||||
return FALSE;
|
||||
m_pMainWnd = pMainFrame;
|
||||
|
||||
// Parse command line for standard shell commands, DDE, file open
|
||||
CCommandLineInfo cmdInfo;
|
||||
ParseCommandLine(cmdInfo);
|
||||
|
||||
// Dispatch commands specified on the command line
|
||||
if (!ProcessShellCommand(cmdInfo))
|
||||
return FALSE;
|
||||
|
||||
// The main window has been initialized, so show and update it.
|
||||
pMainFrame->ShowWindow(m_nCmdShow);
|
||||
pMainFrame->UpdateWindow();
|
||||
|
||||
return TRUE;
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
// Viewer2dApp.h : main header file for the VIEWER2D application
|
||||
//
|
||||
|
||||
#if !defined(AFX_VIEWER2DAPP_H__45F76B43_423D_11D7_8612_0060B0EE281E__INCLUDED_)
|
||||
#define AFX_VIEWER2DAPP_H__45F76B43_423D_11D7_8612_0060B0EE281E__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
|
||||
#include <OCC_App.h>
|
||||
|
||||
class CViewer2dApp : public OCC_App
|
||||
{
|
||||
public:
|
||||
|
||||
CViewer2dApp();
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CViewer2dApp)
|
||||
public:
|
||||
virtual BOOL InitInstance();
|
||||
//}}AFX_VIRTUAL
|
||||
};
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif //(AFX_VIEWER2DAPP_H__45F76B43_423D_11D7_8612_0060B0EE281E__INCLUDED_)
|
@ -1,405 +0,0 @@
|
||||
// Viewer2dDoc.cpp : implementation of the CViewer2dDoc class
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "Viewer2dDoc.h"
|
||||
#include "OCC_App.h"
|
||||
#include "Primitive\Sample2D_Markers.h"
|
||||
#include "Primitive\Sample2D_Face.h"
|
||||
#include "Primitive\Sample2D_Image.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CViewer2dDoc
|
||||
|
||||
IMPLEMENT_DYNCREATE(CViewer2dDoc, CDocument)
|
||||
|
||||
BEGIN_MESSAGE_MAP(CViewer2dDoc, CDocument)
|
||||
//{{AFX_MSG_MAP(CViewer2dDoc)
|
||||
ON_COMMAND(ID_BUTTON_Test_Text, OnBUTTONTestText)
|
||||
ON_COMMAND(ID_BUTTON_Test_Markers, OnBUTTONTestMarkers)
|
||||
ON_COMMAND(ID_BUTTON_Test_Line, OnBUTTONTestLine)
|
||||
ON_COMMAND(ID_BUTTON_Erase, OnBUTTONErase)
|
||||
ON_COMMAND(ID_BUTTON_Test_Face, OnBUTTONTestFace)
|
||||
ON_COMMAND(ID_BUTTON_Test_Rect, OnBUTTONTestRect)
|
||||
ON_COMMAND(ID_BUTTON_Test_Curve, OnBUTTONTestCurve)
|
||||
ON_COMMAND(ID_BUTTON32793, OnBUTTONTestImage) // test image
|
||||
ON_COMMAND(ID_BUTTON_Test_MultiImages, OnBUTTONMultipleImage)
|
||||
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CViewer2dDoc construction/destruction
|
||||
|
||||
CViewer2dDoc::CViewer2dDoc()
|
||||
{
|
||||
}
|
||||
|
||||
CViewer2dDoc::~CViewer2dDoc()
|
||||
{
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CViewer2dDoc::AssertValid() const
|
||||
{
|
||||
CDocument::AssertValid();
|
||||
}
|
||||
|
||||
void CViewer2dDoc::Dump(CDumpContext& dc) const
|
||||
{
|
||||
CDocument::Dump(dc);
|
||||
}
|
||||
#endif //_DEBUG
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CViewer2dDoc commands
|
||||
|
||||
void CViewer2dDoc::OnBUTTONErase()
|
||||
{
|
||||
myAISContext->EraseAll (Standard_True);
|
||||
}
|
||||
|
||||
void CViewer2dDoc::OnBUTTONTestText()
|
||||
{
|
||||
int aColor = Quantity_NOC_MATRABLUE;
|
||||
for (Standard_Real j = 15; j <= 20; j++)
|
||||
{
|
||||
Handle(AIS_TextLabel) aText = new AIS_TextLabel();
|
||||
aText->SetText (TCollection_AsciiString ("font 0 scale ") + (j / 20.0));
|
||||
aText->SetPosition (gp_Pnt (0.0, 15.0 * (j - 15.0), 0.0));
|
||||
aText->SetAngle (30.0 * M_PI / 180.0);
|
||||
aText->SetColor (Quantity_NameOfColor(aColor++));
|
||||
aText->SetFontAspect (Font_FA_Regular);
|
||||
aText->SetFont ("Courier");
|
||||
aText->SetHeight (j);
|
||||
aText->SetHJustification (Graphic3d_HTA_LEFT);
|
||||
aText->SetVJustification (Graphic3d_VTA_BOTTOM);
|
||||
aText->SetZoomable (Standard_False);
|
||||
myAISContext->Display(aText, Standard_False);
|
||||
}
|
||||
|
||||
for (Standard_Real j = 10; j <= 15; j++)
|
||||
{
|
||||
Handle(AIS_TextLabel) aText = new AIS_TextLabel();
|
||||
aText->SetText (TCollection_AsciiString ("font 1 scale ") + (j / 10.0));
|
||||
aText->SetPosition (gp_Pnt (80.0, 15.0 * (j - 10.0), 0.0));
|
||||
aText->SetAngle (0.0);
|
||||
aText->SetColor (Quantity_NameOfColor(aColor++));
|
||||
aText->SetFontAspect (Font_FA_BoldItalic);
|
||||
aText->SetFont ("Cambria");
|
||||
aText->SetHeight (j * 2);
|
||||
aText->SetHJustification (Graphic3d_HTA_LEFT);
|
||||
aText->SetVJustification (Graphic3d_VTA_BOTTOM);
|
||||
aText->SetZoomable (Standard_False);
|
||||
myAISContext->Display(aText, Standard_False);
|
||||
}
|
||||
|
||||
aColor = Quantity_NOC_MATRABLUE;
|
||||
for (Standard_Real j = 5; j <= 10; j++)
|
||||
{
|
||||
Handle(AIS_TextLabel) aText = new AIS_TextLabel();
|
||||
aText->SetText (TCollection_AsciiString ("font 2 scale ") + (j / 10.0));
|
||||
aText->SetPosition (gp_Pnt (140.0, 15.0 * (j - 5.0), 0.0));
|
||||
aText->SetAngle (0.0);
|
||||
aText->SetColor (Quantity_NameOfColor(aColor++));
|
||||
aText->SetFontAspect (Font_FA_Bold);
|
||||
aText->SetFont ("Arial");
|
||||
aText->SetHeight (j * 2);
|
||||
aText->SetHJustification (Graphic3d_HTA_LEFT);
|
||||
aText->SetVJustification (Graphic3d_VTA_BOTTOM);
|
||||
aText->SetZoomable (Standard_False);
|
||||
myAISContext->Display(aText, Standard_False);
|
||||
}
|
||||
for (Standard_Real j = 10; j <= 15; j++)
|
||||
{
|
||||
Handle(AIS_TextLabel) aText = new AIS_TextLabel();
|
||||
aText->SetText (TCollection_AsciiString ("font 3 scale ") + (j / 10.0));
|
||||
aText->SetPosition (gp_Pnt (200.0, 15.0 * (j - 10.0), 0.0));
|
||||
aText->SetAngle (0.0);
|
||||
aText->SetColor (Quantity_NameOfColor(aColor++));
|
||||
aText->SetFontAspect (Font_FA_Italic);
|
||||
aText->SetFont ("Georgia");
|
||||
aText->SetHeight (j * 2);
|
||||
aText->SetHJustification (Graphic3d_HTA_LEFT);
|
||||
aText->SetVJustification (Graphic3d_VTA_BOTTOM);
|
||||
aText->SetZoomable (Standard_False);
|
||||
myAISContext->Display(aText, Standard_False);
|
||||
}
|
||||
|
||||
FitAll2DViews(Standard_True); // Update Viewer
|
||||
}
|
||||
|
||||
|
||||
void CViewer2dDoc::OnBUTTONTestMarkers()
|
||||
{
|
||||
// generic Markers
|
||||
Standard_Integer aColor = 20;
|
||||
for (int i=1;i<=2;i++)
|
||||
{
|
||||
Handle (Sample2D_Markers) aMarker =
|
||||
new Sample2D_Markers(10+5,5*i,Aspect_TOM_POINT,Quantity_NOC_YELLOW,2.0);
|
||||
myAISContext->Display(aMarker, Standard_False);
|
||||
}
|
||||
for (int i=1;i<=2;i++)
|
||||
{
|
||||
Handle (Sample2D_Markers) aMarker =
|
||||
new Sample2D_Markers(10+10,5*i,Aspect_TOM_O,(Quantity_NameOfColor)(aColor++));
|
||||
myAISContext->Display(aMarker, Standard_False);
|
||||
}
|
||||
for (int i=1;i<=2;i++)
|
||||
{
|
||||
Handle (Sample2D_Markers) aMarker =
|
||||
new Sample2D_Markers(10+15,5*i,Aspect_TOM_O_PLUS,(Quantity_NameOfColor)(aColor++));
|
||||
myAISContext->Display(aMarker, Standard_False);
|
||||
}
|
||||
for (int i=1;i<=2;i++)
|
||||
{
|
||||
Handle (Sample2D_Markers) aMarker =
|
||||
new Sample2D_Markers(10+20,5*i,Aspect_TOM_RING1,(Quantity_NameOfColor)(aColor++));
|
||||
myAISContext->Display(aMarker, Standard_False);
|
||||
}
|
||||
for (int i=1;i<=2;i++)
|
||||
{
|
||||
|
||||
Handle (Sample2D_Markers) aMarker =
|
||||
new Sample2D_Markers(10+25,5*i,Aspect_TOM_STAR,(Quantity_NameOfColor)(aColor++));
|
||||
myAISContext->Display(aMarker, Standard_False);
|
||||
}
|
||||
for (int i=1;i<=2;i++)
|
||||
{
|
||||
Handle (Sample2D_Markers) aMarker =
|
||||
new Sample2D_Markers(10+30,5*i,Aspect_TOM_O_X,(Quantity_NameOfColor)(aColor++));
|
||||
myAISContext->Display(aMarker, Standard_False);
|
||||
}
|
||||
|
||||
FitAll2DViews(Standard_False); // Update Viewer
|
||||
}
|
||||
void CViewer2dDoc::OnBUTTONTestLine()
|
||||
{
|
||||
for (int i=0;i<=13;++i)
|
||||
for (int j=0;j<=5;++j)
|
||||
{
|
||||
//set of rectangles here
|
||||
TopoDS_Edge E1 = BRepBuilderAPI_MakeEdge(gp_Pnt(10*i,10*j,0.), gp_Pnt(10*i+7,10*j,0.));
|
||||
TopoDS_Edge E2 = BRepBuilderAPI_MakeEdge(gp_Pnt(10*i+7,10*j,0.), gp_Pnt(10*i+7,10*j+5,0.));
|
||||
TopoDS_Edge E3 = BRepBuilderAPI_MakeEdge(gp_Pnt(10*i+7,10*j+5,0.), gp_Pnt(10*i,10*j+5,0.));
|
||||
TopoDS_Edge E4 = BRepBuilderAPI_MakeEdge(gp_Pnt(10*i,10*j+5,0.), gp_Pnt(10*i,10*j,0.));
|
||||
TopoDS_Wire W = BRepBuilderAPI_MakeWire(E1,E2,E3,E4);
|
||||
TopoDS_Face F = BRepBuilderAPI_MakeFace(W);
|
||||
Handle(AIS_Shape) aRect = new AIS_Shape(F);
|
||||
//set attributes of boundaries
|
||||
Handle(Prs3d_Drawer) aDrawer = new Prs3d_Drawer();
|
||||
Handle(Prs3d_LineAspect) aLineAttrib =
|
||||
new Prs3d_LineAspect(Quantity_NOC_YELLOW,
|
||||
(Aspect_TypeOfLine)(Aspect_TOL_SOLID+j),1);
|
||||
aDrawer->SetFaceBoundaryAspect(aLineAttrib);
|
||||
aDrawer->SetFaceBoundaryDraw(Standard_True);
|
||||
aRect->SetAttributes(aDrawer);
|
||||
|
||||
myAISContext->SetDisplayMode (aRect, 1, Standard_False);
|
||||
myAISContext->SetColor(aRect,(Quantity_NameOfColor)(Quantity_NOC_CADETBLUE+2*i),Standard_False);
|
||||
myAISContext->SetMaterial(aRect,Graphic3d_NOM_PLASTIC,Standard_False);
|
||||
myAISContext->Display(aRect, Standard_False);
|
||||
|
||||
}
|
||||
this->FitAll2DViews(Standard_True);
|
||||
}
|
||||
|
||||
|
||||
#include <AIS_Trihedron.hxx>
|
||||
#include <Geom_Axis2Placement.hxx>
|
||||
|
||||
void CViewer2dDoc::OnBUTTONTestFace()
|
||||
{
|
||||
//erase all
|
||||
myAISContext->EraseAll (Standard_True);
|
||||
|
||||
CFileDialog dlg(TRUE,
|
||||
NULL,
|
||||
NULL,
|
||||
OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
|
||||
L"BRep Files (*.brep)|*.brep; ||",
|
||||
NULL );
|
||||
|
||||
CString initdir;
|
||||
initdir.GetEnvironmentVariable (L"CSF_OCCTDataPath");
|
||||
initdir += L"\\occ";
|
||||
|
||||
dlg.m_ofn.lpstrInitialDir = initdir;
|
||||
|
||||
if (dlg.DoModal() == IDOK)
|
||||
{
|
||||
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
|
||||
|
||||
std::filebuf aFileBuf;
|
||||
std::istream aStream (&aFileBuf);
|
||||
if (!aFileBuf.open (dlg.GetPathName(), std::ios::in))
|
||||
{
|
||||
AfxMessageBox (L"The shape must be not a null Face");
|
||||
return;
|
||||
}
|
||||
|
||||
TopoDS_Shape aFaceShape;
|
||||
BRep_Builder aBuilder;
|
||||
BRepTools::Read (aFaceShape, aStream, aBuilder);
|
||||
if(aFaceShape.IsNull() || aFaceShape.ShapeType() != TopAbs_FACE)
|
||||
{
|
||||
AfxMessageBox (L"The shape must be not a null Face");
|
||||
return;
|
||||
}
|
||||
|
||||
TopoDS_Face aFace = TopoDS::Face(aFaceShape);
|
||||
Handle(Sample2D_Face) anAISFace = new Sample2D_Face(aFaceShape);
|
||||
myAISContext->Display(anAISFace,Standard_True);
|
||||
//activate selection mode for edges selection
|
||||
myAISContext->Activate(anAISFace,2);
|
||||
|
||||
FitAll2DViews(Standard_False);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CViewer2dDoc::OnBUTTONTestRect()
|
||||
{
|
||||
//First rectangle
|
||||
TopoDS_Edge E11 = BRepBuilderAPI_MakeEdge(gp_Pnt(40.,0.,0.), gp_Pnt(82.5,25.,0.));
|
||||
TopoDS_Edge E12 = BRepBuilderAPI_MakeEdge(gp_Pnt(82.5,25.,0.), gp_Pnt(42.5,93.,0.));
|
||||
TopoDS_Edge E13 = BRepBuilderAPI_MakeEdge(gp_Pnt(42.5,93.,0.), gp_Pnt(0.,68.,0.));
|
||||
TopoDS_Edge E14 = BRepBuilderAPI_MakeEdge(gp_Pnt(0.,68.,0.), gp_Pnt(40.,0.,0.));
|
||||
TopoDS_Wire W1 = BRepBuilderAPI_MakeWire(E11,E12,E13,E14);
|
||||
Handle(AIS_Shape) aRect1 = new AIS_Shape(W1);
|
||||
myAISContext->Display (aRect1, Standard_False);
|
||||
myAISContext->SetColor (aRect1, Quantity_NOC_YELLOW, Standard_False);
|
||||
|
||||
//Second rectangle
|
||||
TopoDS_Edge E21 = BRepBuilderAPI_MakeEdge(gp_Pnt(110.,0.,0.), gp_Pnt(152.5,25.,0.));
|
||||
TopoDS_Edge E22 = BRepBuilderAPI_MakeEdge(gp_Pnt(152.5,25.,0.), gp_Pnt(112.5,93.,0.));
|
||||
TopoDS_Edge E23 = BRepBuilderAPI_MakeEdge(gp_Pnt(112.5,93.,0.), gp_Pnt(70.,68.,0.));
|
||||
TopoDS_Edge E24 = BRepBuilderAPI_MakeEdge(gp_Pnt(70.,68.,0.), gp_Pnt(110.,0.,0.));
|
||||
TopoDS_Wire W2 = BRepBuilderAPI_MakeWire(E21,E22,E23,E24);
|
||||
Handle(AIS_Shape) aRect2 = new AIS_Shape(W2);
|
||||
myAISContext->Display (aRect2, Standard_False);
|
||||
myAISContext->SetColor (aRect2, Quantity_NOC_YELLOW, Standard_False);
|
||||
myAISContext->Activate(aRect2,2);
|
||||
|
||||
FitAll2DViews(Standard_True); // Update Viewer
|
||||
}
|
||||
|
||||
void CViewer2dDoc::OnBUTTONTestCurve()
|
||||
{
|
||||
for(int i=0;i<=5;++i)
|
||||
for(int j=0;j<=5;++j)
|
||||
{
|
||||
Handle(Geom_Point) aStart = new Geom_CartesianPoint(gp_Pnt(10*i,10*j,0.));
|
||||
Handle(Geom_Point) anEnd = new Geom_CartesianPoint(gp_Pnt(10*i+5,10*j+10,0.));
|
||||
Handle(AIS_Line) aLine = new AIS_Line(aStart,anEnd);
|
||||
Handle(Prs3d_LineAspect) aLineAttrib =
|
||||
new Prs3d_LineAspect((Quantity_NameOfColor)(Quantity_NOC_CADETBLUE+2*i+2*j),
|
||||
(Aspect_TypeOfLine)((Aspect_TOL_DASH+i+j)%5),2+i+j);
|
||||
aLine->Attributes()->SetLineAspect(aLineAttrib);
|
||||
myAISContext->Display(aLine,Standard_False);
|
||||
}
|
||||
FitAll2DViews(Standard_True);
|
||||
}
|
||||
|
||||
void CViewer2dDoc::OnBUTTONTestImage()
|
||||
{
|
||||
CFileDialog anOpenImageDlg (TRUE,
|
||||
NULL,
|
||||
NULL,
|
||||
OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
|
||||
SupportedImageFormats() + L"| all files (*.*)|*.*;||",
|
||||
NULL);
|
||||
|
||||
CString anInitDir;
|
||||
anInitDir.GetEnvironmentVariable (L"CASROOT");
|
||||
anInitDir += L"\\data\\images";
|
||||
|
||||
anOpenImageDlg.m_ofn.lpstrInitialDir = anInitDir;
|
||||
if(anOpenImageDlg.DoModal() == IDOK)
|
||||
{
|
||||
SetCursor(AfxGetApp()->LoadStandardCursor (IDC_WAIT));
|
||||
CString aFilePath = anOpenImageDlg.GetPathName();
|
||||
TCollection_AsciiString aFileName ((const wchar_t* )aFilePath);
|
||||
|
||||
//erase viewer
|
||||
myAISContext->EraseAll (Standard_False);
|
||||
|
||||
Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
|
||||
anImage->SetCoord (40,50) ;
|
||||
anImage->SetScale (1.0);
|
||||
myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
|
||||
FitAll2DViews (Standard_True);
|
||||
}
|
||||
}
|
||||
|
||||
void CViewer2dDoc::OnBUTTONMultipleImage()
|
||||
{
|
||||
CFileDialog anOpenImageDlg (TRUE,
|
||||
NULL,
|
||||
NULL,
|
||||
OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
|
||||
SupportedImageFormats() + L"| all files (*.*)|*.*;||",
|
||||
NULL);
|
||||
|
||||
CString anInitDir;
|
||||
anInitDir.GetEnvironmentVariable (L"CASROOT");
|
||||
anInitDir += L"\\data\\images";
|
||||
|
||||
anOpenImageDlg.m_ofn.lpstrInitialDir = anInitDir;
|
||||
|
||||
if (anOpenImageDlg.DoModal() == IDOK)
|
||||
{
|
||||
SetCursor(AfxGetApp()->LoadStandardCursor (IDC_WAIT));
|
||||
CString aFilePath = anOpenImageDlg.GetPathName();
|
||||
TCollection_AsciiString aFileName ((const wchar_t* )aFilePath);
|
||||
|
||||
//erase viewer
|
||||
myAISContext->EraseAll (Standard_False);
|
||||
|
||||
//create images
|
||||
{ // 1
|
||||
Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
|
||||
anImage->SetCoord (40, 50);
|
||||
anImage->SetScale (0.5);
|
||||
myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
|
||||
}
|
||||
{ // 2
|
||||
Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
|
||||
anImage->SetCoord (100, 50);
|
||||
anImage->SetScale (0.9);
|
||||
myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
|
||||
}
|
||||
{ // 3
|
||||
Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
|
||||
anImage->SetCoord (40, 40);
|
||||
anImage->SetScale (0.3);
|
||||
myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
|
||||
}
|
||||
{ // 4
|
||||
Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
|
||||
anImage->SetCoord (50, 40);
|
||||
myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
|
||||
}
|
||||
{ // 5
|
||||
Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
|
||||
anImage->SetCoord (80, 45);
|
||||
anImage->SetScale (2);
|
||||
myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
|
||||
}
|
||||
{ // 6
|
||||
Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
|
||||
anImage->SetCoord (20, -20);
|
||||
myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
|
||||
}
|
||||
{ // 7
|
||||
Handle(Sample2D_Image) anImage = new Sample2D_Image (aFileName);
|
||||
anImage->SetCoord (0, 0);
|
||||
anImage->SetScale (0.5);
|
||||
myAISContext->Display (anImage, AIS_Shaded, 0, Standard_False);
|
||||
}
|
||||
FitAll2DViews (Standard_True); // Update Viewer
|
||||
}
|
||||
}
|
@ -1,42 +0,0 @@
|
||||
// Viewer2dDoc.h : interface of the CViewer2dDoc class
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <AIS_Shape.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
#include "OCC_2dDoc.h"
|
||||
|
||||
|
||||
class CViewer2dDoc : public OCC_2dDoc
|
||||
{
|
||||
protected: // create from serialization only
|
||||
CViewer2dDoc();
|
||||
DECLARE_DYNCREATE(CViewer2dDoc)
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
virtual ~CViewer2dDoc();
|
||||
#ifdef _DEBUG
|
||||
virtual void AssertValid() const;
|
||||
virtual void Dump(CDumpContext& dc) const;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
protected:
|
||||
//{{AFX_MSG(CViewer2dDoc)
|
||||
afx_msg void OnBUTTONTestText();
|
||||
afx_msg void OnBUTTONTestMarkers();
|
||||
afx_msg void OnBUTTONTestLine();
|
||||
afx_msg void OnBUTTONErase();
|
||||
afx_msg void OnBUTTONTestFace();
|
||||
afx_msg void OnBUTTONTestRect();
|
||||
afx_msg void OnBUTTONTestCurve();
|
||||
afx_msg void OnBUTTONTestImage();
|
||||
afx_msg void OnBUTTONMultipleImage();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
};
|
||||
|
0
samples/mfc/standard/08_HLR/res/AXOVIEWU.bmp → samples/mfc/standard/04_HLR/res/AXOVIEWU.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/BACKVIEWD.bmp → samples/mfc/standard/04_HLR/res/BACKVIEWD.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/BACKVIEWF.bmp → samples/mfc/standard/04_HLR/res/BACKVIEWF.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/BACKVIEWU.bmp → samples/mfc/standard/04_HLR/res/BACKVIEWU.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/BOTTOMVIEWD.bmp → samples/mfc/standard/04_HLR/res/BOTTOMVIEWD.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/BOTTOMVIEWF.bmp → samples/mfc/standard/04_HLR/res/BOTTOMVIEWF.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/BOTTOMVIEWU.bmp → samples/mfc/standard/04_HLR/res/BOTTOMVIEWU.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/ChildFrame2D.bmp → samples/mfc/standard/04_HLR/res/ChildFrame2D.bmp
Executable file → Normal file
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
0
samples/mfc/standard/08_HLR/res/ChildFrame3D.bmp → samples/mfc/standard/04_HLR/res/ChildFrame3D.bmp
Executable file → Normal file
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
0
samples/mfc/standard/08_HLR/res/FRONTVIEWD.bmp → samples/mfc/standard/04_HLR/res/FRONTVIEWD.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/FRONTVIEWF.bmp → samples/mfc/standard/04_HLR/res/FRONTVIEWF.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/FRONTVIEWU.bmp → samples/mfc/standard/04_HLR/res/FRONTVIEWU.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/HLR.rc → samples/mfc/standard/04_HLR/res/HLR.rc
Executable file → Normal file
0
samples/mfc/standard/08_HLR/res/LEFTVIEWD.bmp → samples/mfc/standard/04_HLR/res/LEFTVIEWD.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/LEFTVIEWF.bmp → samples/mfc/standard/04_HLR/res/LEFTVIEWF.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/LEFTVIEWU.bmp → samples/mfc/standard/04_HLR/res/LEFTVIEWU.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/RIGHTVIEWD.bmp → samples/mfc/standard/04_HLR/res/RIGHTVIEWD.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/RIGHTVIEWF.bmp → samples/mfc/standard/04_HLR/res/RIGHTVIEWF.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/RIGHTVIEWU.bmp → samples/mfc/standard/04_HLR/res/RIGHTVIEWU.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/ToolBarObjects.bmp → samples/mfc/standard/04_HLR/res/ToolBarObjects.bmp
Executable file → Normal file
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
0
samples/mfc/standard/08_HLR/res/Toolbar.bmp → samples/mfc/standard/04_HLR/res/Toolbar.bmp
Executable file → Normal file
Before Width: | Height: | Size: 478 B After Width: | Height: | Size: 478 B |
0
samples/mfc/standard/08_HLR/res/axoviewd.bmp → samples/mfc/standard/04_HLR/res/axoviewd.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/axoviewf.bmp → samples/mfc/standard/04_HLR/res/axoviewf.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/dummyd.bmp → samples/mfc/standard/04_HLR/res/dummyd.bmp
Executable file → Normal file
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 238 B |
0
samples/mfc/standard/08_HLR/res/dummyf.bmp → samples/mfc/standard/04_HLR/res/dummyf.bmp
Executable file → Normal file
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 238 B |
0
samples/mfc/standard/08_HLR/res/dummyu.bmp → samples/mfc/standard/04_HLR/res/dummyu.bmp
Executable file → Normal file
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 238 B |
0
samples/mfc/standard/08_HLR/res/resource.h → samples/mfc/standard/04_HLR/res/resource.h
Executable file → Normal file
0
samples/mfc/standard/08_HLR/res/topviewd.bmp → samples/mfc/standard/04_HLR/res/topviewd.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/topviewf.bmp → samples/mfc/standard/04_HLR/res/topviewf.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/res/topviewu.bmp → samples/mfc/standard/04_HLR/res/topviewu.bmp
Executable file → Normal file
Before Width: | Height: | Size: 406 B After Width: | Height: | Size: 406 B |
0
samples/mfc/standard/08_HLR/src/HLRApp.cpp → samples/mfc/standard/04_HLR/src/HLRApp.cpp
Executable file → Normal file
0
samples/mfc/standard/08_HLR/src/HLRApp.h → samples/mfc/standard/04_HLR/src/HLRApp.h
Executable file → Normal file
0
samples/mfc/standard/08_HLR/src/HLRDoc.cpp → samples/mfc/standard/04_HLR/src/HLRDoc.cpp
Executable file → Normal file
0
samples/mfc/standard/08_HLR/src/HLRDoc.h → samples/mfc/standard/04_HLR/src/HLRDoc.h
Executable file → Normal file
0
samples/mfc/standard/08_HLR/src/HLRView2D.cpp → samples/mfc/standard/04_HLR/src/HLRView2D.cpp
Executable file → Normal file
0
samples/mfc/standard/08_HLR/src/HLRView2D.h → samples/mfc/standard/04_HLR/src/HLRView2D.h
Executable file → Normal file
0
samples/mfc/standard/08_HLR/src/HLRView3D.cpp → samples/mfc/standard/04_HLR/src/HLRView3D.cpp
Executable file → Normal file
0
samples/mfc/standard/08_HLR/src/HLRView3D.h → samples/mfc/standard/04_HLR/src/HLRView3D.h
Executable file → Normal file
0
samples/mfc/standard/08_HLR/src/SelectionDialog.h → samples/mfc/standard/04_HLR/src/SelectionDialog.h
Executable file → Normal file
0
samples/mfc/standard/08_HLR/src/StdAfx.cpp → samples/mfc/standard/04_HLR/src/StdAfx.cpp
Executable file → Normal file
0
samples/mfc/standard/08_HLR/src/StdAfx.h → samples/mfc/standard/04_HLR/src/StdAfx.h
Executable file → Normal file
@ -1,77 +0,0 @@
|
||||
cmake_minimum_required (VERSION 2.6)
|
||||
|
||||
project (Viewer3d)
|
||||
|
||||
add_definitions (-DWINVER=0x0501 -DUNICODE -D_UNICODE)
|
||||
set (CMAKE_MFC_FLAG 2)
|
||||
|
||||
set (Viewer3d_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/04_Viewer3d/src)
|
||||
set (Viewer3d_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/04_Viewer3d/res)
|
||||
set (Viewer3d_HEADER_FILES ${Viewer3d_SRC_DIR}/BoxRadius.h
|
||||
${Viewer3d_SRC_DIR}/DlgIsos.h
|
||||
${Viewer3d_SRC_DIR}/ISession_Curve.h
|
||||
${Viewer3d_SRC_DIR}/ModelClippingDlg.h
|
||||
${Viewer3d_SRC_DIR}/OCCDemo_Presentation.h
|
||||
${Viewer3d_SRC_DIR}/OffsetDlg.h
|
||||
${Viewer3d_SRC_DIR}/ScaleDlg.h
|
||||
${Viewer3d_SRC_DIR}/ShadingModelDlg.h
|
||||
${Viewer3d_SRC_DIR}/StdAfx.h
|
||||
${Viewer3d_SRC_DIR}/TexturesExt_Presentation.h
|
||||
${Viewer3d_SRC_DIR}/TrihedronDlg.h
|
||||
${Viewer3d_SRC_DIR}/Viewer3dApp.h
|
||||
${Viewer3d_SRC_DIR}/Viewer3dDoc.h
|
||||
${Viewer3d_SRC_DIR}/Viewer3dView.h
|
||||
${Viewer3d_SRC_DIR}/State.h
|
||||
${Viewer3d_RESOURCE_DIR}/resource.h
|
||||
${Viewer3d_RESOURCE_DIR}/resource.hm)
|
||||
set (Viewer3d_SOURCE_FILES ${Viewer3d_SRC_DIR}/BoxRadius.cpp
|
||||
${Viewer3d_SRC_DIR}/DlgIsos.cpp
|
||||
${Viewer3d_SRC_DIR}/ISession_Curve.cpp
|
||||
${Viewer3d_SRC_DIR}/ModelClippingDlg.cpp
|
||||
${Viewer3d_SRC_DIR}/OCCDemo_Presentation.cpp
|
||||
${Viewer3d_SRC_DIR}/OffsetDlg.cpp
|
||||
${Viewer3d_SRC_DIR}/ScaleDlg.cpp
|
||||
${Viewer3d_SRC_DIR}/ShadingModelDlg.cpp
|
||||
${Viewer3d_SRC_DIR}/StdAfx.cpp
|
||||
${Viewer3d_SRC_DIR}/TexturesExt_Presentation.cpp
|
||||
${Viewer3d_SRC_DIR}/TrihedronDlg.cpp
|
||||
${Viewer3d_SRC_DIR}/Viewer3dApp.cpp
|
||||
${Viewer3d_SRC_DIR}/Viewer3dDoc.cpp
|
||||
${Viewer3d_SRC_DIR}/Viewer3dView.cpp)
|
||||
|
||||
set (Viewer3d_RESOURCE_FILES ${Viewer3d_RESOURCE_DIR}/Viewer3d.rc
|
||||
${Viewer3d_RESOURCE_DIR}/AISToolbar.bmp
|
||||
${Viewer3d_RESOURCE_DIR}/AIS_TB.bmp
|
||||
${Viewer3d_RESOURCE_DIR}/Toolbar.bmp)
|
||||
|
||||
# groups in the VS solution
|
||||
source_group ("Source Files" FILES ${Viewer3d_SOURCE_FILES}
|
||||
${COMMON_WINMAIN_FILE})
|
||||
|
||||
source_group ("Header Files" FILES ${Viewer3d_HEADER_FILES})
|
||||
|
||||
source_group ("Resource Files" FILES ${Viewer3d_RESOURCE_FILES})
|
||||
|
||||
add_executable (Viewer3d WIN32 ${Viewer3d_SOURCE_FILES}
|
||||
${Viewer3d_HEADER_FILES}
|
||||
${COMMON_WINMAIN_FILE}
|
||||
${Viewer3d_RESOURCE_FILES})
|
||||
|
||||
set_property (TARGET Viewer3d PROPERTY FOLDER "Samples/mfc")
|
||||
|
||||
if (SINGLE_GENERATOR)
|
||||
install (TARGETS Viewer3d DESTINATION "${INSTALL_DIR_BIN}")
|
||||
else()
|
||||
install (TARGETS Viewer3d
|
||||
CONFIGURATIONS Release RelWithDebInfo
|
||||
DESTINATION "${INSTALL_DIR_BIN}")
|
||||
install (TARGETS Viewer3d
|
||||
CONFIGURATIONS Debug
|
||||
DESTINATION "${INSTALL_DIR_BIN}d")
|
||||
endif()
|
||||
|
||||
include_directories (${CMAKE_BINARY_DIR}/inc
|
||||
${Viewer3d_SRC_DIR}
|
||||
${MFC_STANDARD_SAMPLES_DIR}/Common)
|
||||
|
||||
target_link_libraries (Viewer3d mfcsample)
|
@ -1,492 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{949DFBDF-9007-4C88-8925-43209C36A5D6}</ProjectGuid>
|
||||
<RootNamespace>Viewer3d</RootNamespace>
|
||||
<Keyword>MFCProj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseOfMfc>Dynamic</UseOfMfc>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseOfMfc>Dynamic</UseOfMfc>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseOfMfc>Dynamic</UseOfMfc>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseOfMfc>Dynamic</UseOfMfc>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>$(VCPlatformToolSet)</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../../../win32\$(VCFMT)\bin\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.\win32\obj\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">../../../../win64\$(VCFMT)\bin\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">.\win64\obj\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../../../../win32\$(VCFMT)\bind\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.\win32\objd\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">../../../../win64\$(VCFMT)\bind\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.\win64\objd\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MkTypLibCompatible>true</MkTypLibCompatible>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TargetEnvironment>Win32</TargetEnvironment>
|
||||
<TypeLibraryName>.\win32\obj/Viewer3d.tlb</TypeLibraryName>
|
||||
<HeaderFileName>
|
||||
</HeaderFileName>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
|
||||
<PrecompiledHeaderOutputFile>.\win32\obj/Viewer3d.pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\win32\obj/</AssemblerListingLocation>
|
||||
<ObjectFileName>.\win32\obj/</ObjectFileName>
|
||||
<ProgramDataBaseFileName>.\win32\obj/</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<CompileAs>Default</CompileAs>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>../../../../win32\$(VCFMT)\bin/Viewer3d.exe</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<ProgramDatabaseFile>../../../../win32\$(VCFMT)\bin/Viewer3d.pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MkTypLibCompatible>true</MkTypLibCompatible>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
<TypeLibraryName>.\win64\obj/Viewer3d.tlb</TypeLibraryName>
|
||||
<HeaderFileName>
|
||||
</HeaderFileName>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>NDEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
|
||||
<PrecompiledHeaderOutputFile>.\win64\obj/Viewer3d.pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\win64\obj/</AssemblerListingLocation>
|
||||
<ObjectFileName>.\win64\obj/</ObjectFileName>
|
||||
<ProgramDataBaseFileName>.\win64\obj/</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<CompileAs>Default</CompileAs>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>../../../../win64\$(VCFMT)\bin/Viewer3d.exe</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\lib;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<ProgramDatabaseFile>../../../../win64\$(VCFMT)\bin/Viewer3d.pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MkTypLibCompatible>true</MkTypLibCompatible>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TargetEnvironment>Win32</TargetEnvironment>
|
||||
<TypeLibraryName>.\win32\objd/Viewer3d.tlb</TypeLibraryName>
|
||||
<HeaderFileName>
|
||||
</HeaderFileName>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
|
||||
<PrecompiledHeaderOutputFile>.\win32\objd/Viewer3d.pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\win32\objd/</AssemblerListingLocation>
|
||||
<ObjectFileName>.\win32\objd/</ObjectFileName>
|
||||
<ProgramDataBaseFileName>.\win32\objd/</ProgramDataBaseFileName>
|
||||
<BrowseInformation>true</BrowseInformation>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>../../../../win32\$(VCFMT)\bind/Viewer3d.exe</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\win32\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<ProgramDatabaseFile>../../../../win32\$(VCFMT)\bind/Viewer3d.pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MkTypLibCompatible>true</MkTypLibCompatible>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
<TypeLibraryName>.\win64\objd/Viewer3d.tlb</TypeLibraryName>
|
||||
<HeaderFileName>
|
||||
</HeaderFileName>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<Optimization>Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories>..\..\..\;..\..\..\src;..\..\..\..\Common;$(CSF_OCCTIncludePath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>_DEBUG;_WINDOWS;WINVER=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
|
||||
<PrecompiledHeaderOutputFile>.\win64\objd/Viewer3d.pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>.\win64\objd/</AssemblerListingLocation>
|
||||
<ObjectFileName>.\win64\objd/</ObjectFileName>
|
||||
<ProgramDataBaseFileName>.\win64\objd/</ProgramDataBaseFileName>
|
||||
<BrowseInformation>true</BrowseInformation>
|
||||
<WarningLevel>Level4</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<CompileAs>Default</CompileAs>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x0409</Culture>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>TKVCAF.lib;TKBRep.lib;TKBool.lib;TKCAF.lib;TKCDF.lib;TKernel.lib;TKFeat.lib;TKFillet.lib;TKG2d.lib;TKG3d.lib;TKGeomAlgo.lib;TKGeomBase.lib;TKHLR.lib;TKMath.lib;TKOffset.lib;TKPrim.lib;TKService.lib;TKTopAlgo.lib;TKV3d.lib;TKOpenGl.lib;mfcsample.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>../../../../win64\$(VCFMT)\bind/Viewer3d.exe</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<AdditionalLibraryDirectories>..\..\..\..\win64\$(VCFMT)\libd;$(CSF_OCCTLibPath);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<ProgramDatabaseFile>../../../../win64\$(VCFMT)\bind/Viewer3d.pdb</ProgramDatabaseFile>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\src\BoxRadius.cpp" />
|
||||
<ClCompile Include="..\..\..\src\DlgIsos.cpp" />
|
||||
<ClCompile Include="..\..\..\src\ISession_Curve.cpp" />
|
||||
<ClCompile Include="..\..\..\src\ModelClippingDlg.cpp">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\OCCDemo_Presentation.cpp" />
|
||||
<ClCompile Include="..\..\..\src\OffsetDlg.cpp">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ScaleDlg.cpp">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">..\res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ShadingModelDlg.cpp">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\StdAfx.cpp">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\TexturesExt_Presentation.cpp" />
|
||||
<ClCompile Include="..\..\..\src\TrihedronDlg.cpp">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\Viewer3dApp.cpp">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\Viewer3dDoc.cpp">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\Viewer3dView.cpp">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Disabled</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">EnableFastChecks</BasicRuntimeChecks>
|
||||
<BrowseInformation Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</BrowseInformation>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="..\..\..\res\Viewer3d.rc">
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Release|x64'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Release|x64'">res;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\src\BoxRadius.h" />
|
||||
<ClInclude Include="..\..\..\src\DlgIsos.h" />
|
||||
<ClInclude Include="..\..\..\src\ISession_Curve.h" />
|
||||
<ClInclude Include="..\..\..\src\ModelClippingDlg.h" />
|
||||
<ClInclude Include="..\..\..\src\OCCDemo_Presentation.h" />
|
||||
<ClInclude Include="..\..\..\src\offsetdlg.h" />
|
||||
<ClInclude Include="..\..\..\res\resource.h" />
|
||||
<ClInclude Include="..\..\..\src\scaledlg.h" />
|
||||
<ClInclude Include="..\..\..\src\ShadingModelDlg.h" />
|
||||
<ClInclude Include="..\..\..\src\State.h" />
|
||||
<ClInclude Include="..\..\..\src\StdAfx.h" />
|
||||
<ClInclude Include="..\..\..\src\TexturesExt_Presentation.h" />
|
||||
<ClInclude Include="..\..\..\src\TrihedronDlg.h" />
|
||||
<ClInclude Include="..\..\..\src\Viewer3dApp.h" />
|
||||
<ClInclude Include="..\..\..\src\Viewer3dDoc.h" />
|
||||
<ClInclude Include="..\..\..\src\Viewer3dView.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\..\..\res\resource.hm" />
|
||||
<None Include="..\..\..\res\AIS_TB.bmp" />
|
||||
<None Include="..\..\..\res\AISToolbar.bmp" />
|
||||
<None Include="..\..\..\res\Toolbar.bmp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\..\mfcsample\adm\win\vc10\mfcsample.vcxproj">
|
||||
<Project>{2d6cbbe8-6965-4016-b503-0d715ae26691}</Project>
|
||||
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
@ -1,133 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{60965501-d2d2-46fa-bdc9-62d45562945b}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{76f67c93-789a-4fb7-a6ca-db367749f593}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{e16ddbde-8cef-4e45-9ba2-e1b79da373a5}</UniqueIdentifier>
|
||||
<Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\src\BoxRadius.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\DlgIsos.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ISession_Curve.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ModelClippingDlg.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\OCCDemo_Presentation.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\OffsetDlg.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ScaleDlg.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\ShadingModelDlg.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\StdAfx.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\TexturesExt_Presentation.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\TrihedronDlg.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\Viewer3dApp.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\Viewer3dDoc.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\src\Viewer3dView.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\..\Common\WINMAIN.CPP">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="..\..\..\res\Viewer3d.rc">
|
||||
<Filter>Source Files</Filter>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\src\BoxRadius.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\DlgIsos.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\ISession_Curve.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\ModelClippingDlg.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\OCCDemo_Presentation.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\offsetdlg.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\res\resource.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\scaledlg.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\ShadingModelDlg.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\State.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\StdAfx.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\TexturesExt_Presentation.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\TrihedronDlg.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\Viewer3dApp.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\Viewer3dDoc.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\src\Viewer3dView.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="..\..\..\res\resource.hm">
|
||||
<Filter>Header Files</Filter>
|
||||
</None>
|
||||
<None Include="..\..\..\res\AIS_TB.bmp">
|
||||
<Filter>Resource Files</Filter>
|
||||
</None>
|
||||
<None Include="..\..\..\res\AISToolbar.bmp">
|
||||
<Filter>Resource Files</Filter>
|
||||
</None>
|
||||
<None Include="..\..\..\res\Toolbar.bmp">
|
||||
<Filter>Resource Files</Filter>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
</Project>
|
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 6.8 KiB |
@ -1,563 +0,0 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
// Generated Help ID header file
|
||||
#define APSTUDIO_HIDDEN_SYMBOLS
|
||||
#include "resource.hm"
|
||||
#undef APSTUDIO_HIDDEN_SYMBOLS
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
#include "..\..\Common\res\OCC_Resource.h"
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Russian resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
|
||||
#pragma code_page(1251)
|
||||
#endif //_WIN32
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_SETOFFSETS DIALOGEX 442, 45, 187, 60
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
EXSTYLE WS_EX_TOOLWINDOW
|
||||
CAPTION "Set offsets"
|
||||
FONT 8, "MS Sans Serif", 0, 0, 0x1
|
||||
BEGIN
|
||||
CONTROL "Slider2",IDC_SLIDER_OFFSETFACTOR,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,39,14,100,15
|
||||
LTEXT "Factor:",IDC_STATIC,13,17,23,15
|
||||
LTEXT "Units:",IDC_STATIC,13,35,19,8
|
||||
CONTROL "Slider3",IDC_SLIDER_OFFSETUNITS,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,39,32,100,15
|
||||
GROUPBOX "Offset parameters",IDC_STATIC,7,6,173,47
|
||||
EDITTEXT IDC_EDIT_OFFSETFACTOR,148,14,22,14,ES_AUTOHSCROLL | ES_NUMBER
|
||||
EDITTEXT IDC_EDIT_OFFSETUNITS,148,32,22,14,ES_AUTOHSCROLL | ES_NUMBER
|
||||
END
|
||||
|
||||
IDD_TRIHEDRON DIALOG 0, 0, 138, 95
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Triedron settings"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "OK",IDOK,21,75,50,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,73,75,50,14
|
||||
COMBOBOX IDC_COMBOTRIHEDRPOS,38,8,92,60,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
|
||||
COMBOBOX IDC_COMBOTRIHEDRCOLOR,38,29,92,78,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
|
||||
EDITTEXT IDC_EDITTRIHEDRSCALE,38,51,33,12,ES_CENTER | ES_AUTOHSCROLL
|
||||
LTEXT "Color:",IDC_STATIC,8,31,20,8
|
||||
LTEXT "Position:",IDC_STATIC,8,10,28,8
|
||||
LTEXT "Scale:",IDC_STATIC,8,53,24,10
|
||||
CONTROL "Spin1",IDC_SPINTRIHEDRSCALE,"msctls_updown32",UDS_AUTOBUDDY | UDS_ARROWKEYS,70,51,11,12
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO
|
||||
BEGIN
|
||||
IDD_SETOFFSETS, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 180
|
||||
TOPMARGIN, 6
|
||||
BOTTOMMARGIN, 53
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
#endif // Russian resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_SHADINGMODEL DIALOG 0, 0, 60, 66
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "ShadingModel"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
PUSHBUTTON "GOURAUD",IDC_SHADINGMODEL_GOURAUD,7,7,46,16
|
||||
PUSHBUTTON "PHONG", IDC_SHADINGMODEL_PHONG, 7,25,46,15
|
||||
END
|
||||
|
||||
IDD_MODELCLIPPING DIALOG 0, 0, 180, 74
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION
|
||||
CAPTION "Model clipping"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "OK",IDOK,13,47,50,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,70,47,50,14
|
||||
CONTROL "Slider1",IDC_SLIDER_MODELCLIPPING_Z,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,21,6,97,15
|
||||
LTEXT "Z:",-1,12,10,8,8
|
||||
GROUPBOX "",-1,7,0,166,25
|
||||
EDITTEXT IDC_EDIT_MODELCLIPPING_Z,118,7,34,14,ES_AUTOHSCROLL | ES_NUMBER
|
||||
GROUPBOX "",-1,7,38,166,29
|
||||
CONTROL "Model clipping ON/OFF",IDC_CHECK_MODELCLIPPINGONOFF,
|
||||
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,28,91,10
|
||||
END
|
||||
|
||||
IDD_RADIUS DIALOGEX 0, 0, 151, 82
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Radius"
|
||||
FONT 8, "MS Sans Serif", 0, 0, 0x1
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "OK",IDOK,7,61,50,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,94,61,50,14
|
||||
CONTROL "Spin1",IDC_SPIN_RADIUS,"msctls_updown32",UDS_ARROWKEYS,98,43,11,14
|
||||
EDITTEXT IDC_EDIT_RADIUS,48,42,45,13,ES_AUTOHSCROLL | NOT WS_TABSTOP
|
||||
CTEXT "Radius Fillet",IDC_RadiusFillet,33,20,94,18,0,WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE | WS_EX_STATICEDGE,HIDC_RadiusFillet
|
||||
END
|
||||
|
||||
IDD_ISOS DIALOG 0, 0, 161, 66
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Isos"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "OK",IDOK,7,44,50,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,104,44,50,14
|
||||
LTEXT "U Isos Number",IDC_ISOU,31,13,48,8
|
||||
LTEXT "V Isos Number",IDC_ISOV,31,28,47,8
|
||||
EDITTEXT IDC_EDIT_ISOU,93,7,40,14,ES_AUTOHSCROLL
|
||||
EDITTEXT IDC_EDIT_ISOV,93,24,40,12,ES_AUTOHSCROLL
|
||||
END
|
||||
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"#include ""..\\..\\Common\\res\\OCC_Resource.h""\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
|
||||
"#define _AFX_NO_OLE_RESOURCES\r\n"
|
||||
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
|
||||
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
|
||||
"\r\n"
|
||||
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
|
||||
"#ifdef _WIN32\r\n"
|
||||
"LANGUAGE 9, 1\r\n"
|
||||
"#pragma code_page(1252)\r\n"
|
||||
"#endif\r\n"
|
||||
"#include ""afxres.rc"" // Standard components\r\n"
|
||||
"#endif\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Bitmap
|
||||
//
|
||||
|
||||
IDR_MAINFRAME BITMAP "..//res//Toolbar.bmp"
|
||||
IDR_TB_AIS BITMAP "..//res//AIS_TB.bmp"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Toolbar
|
||||
//
|
||||
|
||||
IDR_MAINFRAME TOOLBAR 20, 20
|
||||
BEGIN
|
||||
BUTTON ID_FILE_NEW
|
||||
SEPARATOR
|
||||
BUTTON ID_CIRCLE
|
||||
BUTTON ID_LINE
|
||||
BUTTON ID_BOX
|
||||
BUTTON ID_Cylinder
|
||||
BUTTON ID_SPHERE
|
||||
SEPARATOR
|
||||
BUTTON ID_OVERLAPPED_BOX
|
||||
BUTTON ID_OVERLAPPED_CYLINDER
|
||||
BUTTON ID_OVERLAPPED_SPHERE
|
||||
BUTTON ID_POLYGON_OFFSETS
|
||||
SEPARATOR
|
||||
BUTTON ID_ERASEALL
|
||||
SEPARATOR
|
||||
BUTTON ID_SPOT_LIGHT
|
||||
BUTTON ID_POSITIONAL_LIGHT
|
||||
BUTTON ID_DIRECTIONAL_LIGHT
|
||||
BUTTON ID_AMBIENT_LIGHT
|
||||
BUTTON ID_CLEAR_LIGHTS
|
||||
SEPARATOR
|
||||
BUTTON ID_SCALE
|
||||
SEPARATOR
|
||||
BUTTON ID_NBISOS
|
||||
BUTTON ID_SHADINGMODEL
|
||||
BUTTON ID_ANTIALIASINGONOFF
|
||||
SEPARATOR
|
||||
BUTTON ID_MODELCLIPPING
|
||||
SEPARATOR
|
||||
BUTTON ID_VERTICES
|
||||
BUTTON ID_EDGES
|
||||
BUTTON ID_FACES
|
||||
BUTTON ID_NEUTRAL
|
||||
SEPARATOR
|
||||
BUTTON ID_FILLET3D
|
||||
SEPARATOR
|
||||
BUTTON ID_TEXTURE_ON
|
||||
BUTTON ID_BUTTONStart
|
||||
BUTTON ID_BUTTONPrev
|
||||
BUTTON ID_BUTTONRepeat
|
||||
BUTTON ID_BUTTONNext
|
||||
BUTTON ID_BUTTONEnd
|
||||
SEPARATOR
|
||||
BUTTON ID_DUMP_VIEW
|
||||
SEPARATOR
|
||||
BUTTON ID_APP_ABOUT
|
||||
END
|
||||
|
||||
IDR_TB_AIS TOOLBAR 20, 20
|
||||
BEGIN
|
||||
BUTTON ID_OBJECT_WIREFRAME
|
||||
BUTTON ID_OBJECT_SHADING
|
||||
BUTTON ID_OBJECT_COLORED_MESH
|
||||
SEPARATOR
|
||||
BUTTON ID_OBJECT_COLOR
|
||||
BUTTON ID_OBJECT_MATERIAL
|
||||
BUTTON ID_OBJECT_TRANSPARENCY
|
||||
SEPARATOR
|
||||
BUTTON ID_OBJECT_ERASE
|
||||
BUTTON ID_OBJECT_DISPLAYALL
|
||||
SEPARATOR
|
||||
BUTTON ID_OBJECT_REMOVE
|
||||
BUTTON ID_OBJECT_DIM
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Menu
|
||||
//
|
||||
|
||||
IDR_MAINFRAME MENU
|
||||
BEGIN
|
||||
POPUP "&File"
|
||||
BEGIN
|
||||
MENUITEM "&New\tCtrl+N", ID_FILE_NEW
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "E&xit", ID_APP_EXIT
|
||||
END
|
||||
POPUP "&View"
|
||||
BEGIN
|
||||
MENUITEM "&Toolbar", ID_VIEW_TOOLBAR
|
||||
MENUITEM "&Status Bar", ID_VIEW_STATUS_BAR
|
||||
END
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&About Viewer3d...", ID_APP_ABOUT
|
||||
END
|
||||
END
|
||||
|
||||
IDR_3DTYPE MENU
|
||||
BEGIN
|
||||
POPUP "&File"
|
||||
BEGIN
|
||||
MENUITEM "&New\tCtrl+N", ID_FILE_NEW
|
||||
MENUITEM "&Close", ID_FILE_CLOSE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "E&xit", ID_APP_EXIT
|
||||
END
|
||||
POPUP "&View"
|
||||
BEGIN
|
||||
MENUITEM "&Toolbar", ID_VIEW_TOOLBAR
|
||||
MENUITEM "&Status Bar", ID_VIEW_STATUS_BAR
|
||||
END
|
||||
POPUP "&Options"
|
||||
BEGIN
|
||||
POPUP "&Trihedron"
|
||||
BEGIN
|
||||
MENUITEM "&Static Trihedron...", ID_OPTIONS_TRIHEDRON_STATIC_TRIHEDRON
|
||||
MENUITEM "&Dynamic Trihedron", ID_OPTIONS_TRIHEDRON_DYNAMIC_TRIHEDRON
|
||||
END
|
||||
END
|
||||
POPUP "&Window"
|
||||
BEGIN
|
||||
MENUITEM "&New Window", ID_WINDOW_NEW
|
||||
MENUITEM "&Cascade", ID_WINDOW_CASCADE
|
||||
MENUITEM "&Tile", ID_WINDOW_TILE_HORZ
|
||||
MENUITEM "&Arrange Icons", ID_WINDOW_ARRANGE
|
||||
END
|
||||
POPUP "&Help"
|
||||
BEGIN
|
||||
MENUITEM "&About Viewer3d...", ID_APP_ABOUT
|
||||
END
|
||||
END
|
||||
|
||||
IDR_Popup3D MENU
|
||||
BEGIN
|
||||
POPUP "BackGround"
|
||||
BEGIN
|
||||
MENUITEM "Background Color...", ID_Modify_ChangeBackground
|
||||
END
|
||||
POPUP "Object(s)"
|
||||
BEGIN
|
||||
MENUITEM "Erase", ID_OBJECT_ERASE
|
||||
MENUITEM "Shading", ID_OBJECT_SHADING
|
||||
MENUITEM "Wireframe", ID_OBJECT_WIREFRAME
|
||||
MENUITEM "Color...", ID_OBJECT_COLOR
|
||||
MENUITEM "Material...", ID_OBJECT_MATERIAL
|
||||
POPUP "Material"
|
||||
BEGIN
|
||||
MENUITEM "Aluminium", ID_OBJECT_MATERIAL_ALUMINIUM
|
||||
MENUITEM "Brass", ID_OBJECT_MATERIAL_BRASS
|
||||
MENUITEM "Bronze", ID_OBJECT_MATERIAL_BRONZE
|
||||
MENUITEM "Chrome", ID_OBJECT_MATERIAL_CHROME
|
||||
MENUITEM "Copper", ID_OBJECT_MATERIAL_COPPER
|
||||
MENUITEM "Gold", ID_OBJECT_MATERIAL_GOLD
|
||||
MENUITEM "Jade", ID_OBJECT_MATERIAL_JADE
|
||||
MENUITEM "Metalized", ID_OBJECT_MATERIAL_METALIZED
|
||||
MENUITEM "Neon GNC", ID_OBJECT_MATERIAL_NEON_GNC
|
||||
MENUITEM "Neon PHC", ID_OBJECT_MATERIAL_NEON_PHC
|
||||
MENUITEM "Obsidian", ID_OBJECT_MATERIAL_OBSIDIAN
|
||||
MENUITEM "Pewter", ID_OBJECT_MATERIAL_PEWTER
|
||||
MENUITEM "Plaster", ID_OBJECT_MATERIAL_PLASTER
|
||||
MENUITEM "Plastic", ID_OBJECT_MATERIAL_PLASTIC
|
||||
MENUITEM "Satin", ID_OBJECT_MATERIAL_SATIN
|
||||
MENUITEM "Shiny plastic", ID_OBJECT_MATERIAL_SHINY_PLASTIC
|
||||
MENUITEM "Silver", ID_OBJECT_MATERIAL_SILVER
|
||||
MENUITEM "Steel", ID_OBJECT_MATERIAL_STEEL
|
||||
MENUITEM "Stone", ID_OBJECT_MATERIAL_STONE
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Default", ID_OBJECT_MATERIAL_DEFAULT
|
||||
END
|
||||
MENUITEM "Transparency...", ID_OBJECT_TRANSPARENCY
|
||||
END
|
||||
POPUP "User cylinder"
|
||||
BEGIN
|
||||
MENUITEM "Change face color", ID_USERCYLINDER_CHANGEFACECOLOR
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,0,0,1
|
||||
PRODUCTVERSION 1,0,0,1
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x1L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "FileDescription", "Viewer MFC Application"
|
||||
VALUE "FileVersion", "1, 0, 0, 1"
|
||||
VALUE "InternalName", "Viewer"
|
||||
VALUE "LegalCopyright", "Copyright (C) 1997"
|
||||
VALUE "OriginalFilename", "Viewer.EXE"
|
||||
VALUE "ProductName", "SampleViewer3d Application"
|
||||
VALUE "ProductVersion", "1, 0, 0, 1"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// String Table
|
||||
//
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDR_MAINFRAME "Viewer3d"
|
||||
IDR_3DTYPE "\nViewer3d\n\n\n\n.Document\n Document"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
ID_BOX "Create and display a box\nBox"
|
||||
ID_Cylinder "Create and display a cylinder\nCylinder"
|
||||
ID_SPHERE "Create and display a sphere\nSphere"
|
||||
ID_ERASEALL "Remove all\nRemove all"
|
||||
ID_AMBIENT_LIGHT "Create an ambient light source\nAmbient light"
|
||||
ID_DIRECTIONAL_LIGHT "Create an directional light source\nDirectional light"
|
||||
ID_POSITIONAL_LIGHT "Create an positional light source\nPositional light"
|
||||
ID_SPOT_LIGHT "Create an spot light source\nSpot light"
|
||||
ID_LIGHTOFF "Delete lights\nDelete lights"
|
||||
ID_SHADINGMODEL "Define shading model\nShadingModel"
|
||||
ID_ANTIALIASINGONOFF "Antialiasing ON/OFF\nAntialiasing"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
ID_CLEAR_LIGHTS "Clear all the light sources\nClear lights"
|
||||
ID_MODELCLIPPING "ModelClipping\nModelClipping"
|
||||
ID_OVERLAPPED_BOX "Create and display two overlapped boxes\nOverlapped boxes"
|
||||
ID_BUTTON819 "Create and display two overlapped spheres\nOverlapped spheres"
|
||||
ID_OVERLAPPED_SPHERE "Create and display two overlapped spheres\nOverlapped spheres"
|
||||
ID_BUTTON821 "Create and display two overlapped boxes\nOverlapped boxes"
|
||||
ID_OVERLAPPED_CYLINDER "Create and display two overlapped cylinders\nOverlapped cylinders"
|
||||
ID_POLYGON_OFFSETS "Set/unset offsets\nSet/unset offsets"
|
||||
ID_OBJECT_COLORED_MESH "Puts cylinder in colored mesh\nColored mesh"
|
||||
ID_SCALE "Scale\nScale"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
ID_CIRCLE "Clear all the light sources\nClear lights"
|
||||
ID_LINE "Create and display a line with standard tools\nLine"
|
||||
ID_VERTICES "Set the selection mode to vertices\nVertices"
|
||||
ID_EDGES "Set the selection mode to edges\nEdges"
|
||||
ID_FACES "Set the selection modes to faces\nFaces"
|
||||
ID_NEUTRAL "Neutral point for selection\nNeutral point"
|
||||
ID_FILLET3D "Make a fillet between faces\nFillet"
|
||||
ID_NBISOS "Set global isos number\nIsos"
|
||||
ID_BUTTONStart "Press to go to the first sample\nFirst sample (Home)"
|
||||
ID_BUTTONPrev "Press to go to the previous sample\nPrevious sample (PgUp)"
|
||||
ID_BUTTONRepeat "Press to repeat the current sample\nRepeat sample (Space)"
|
||||
ID_BUTTONNext "Press to go to the next sample\nNext sample (PgDn)"
|
||||
ID_BUTTONEnd "Press to go to the last sample\nLast sample (End)"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
ID_DUMP_VIEW "Save current frame into an image file\nExport view (F12)"
|
||||
ID_TEXTURE_ON "Run texture example\nRun texture example"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
ID_OBJECT_DIMENSIONS "Add dimensions"
|
||||
ID_LOCALCONTEXT_ADDDIMENSION "Add new dimension for selected objects"
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.K.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_SCALE DIALOG 0, 0, 186, 103
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Heterogeneous Scale"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "OK",IDOK,13,78,50,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,70,78,50,14
|
||||
GROUPBOX "",IDC_STATIC,7,69,166,29
|
||||
GROUPBOX "",IDC_STATIC,7,0,166,65
|
||||
CONTROL "Slider1",IDC_SLIDER_SCALEX,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,34,6,97,15
|
||||
LTEXT "X:",IDC_STATIC,13,9,8,8
|
||||
EDITTEXT IDC_EDIT_SCALEX,131,7,34,14,ES_AUTOHSCROLL | ES_NUMBER
|
||||
CONTROL "Slider2",IDC_SLIDER_SCALEY,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,34,25,97,15
|
||||
LTEXT "Y:",IDC_STATIC,13,28,8,8
|
||||
EDITTEXT IDC_EDIT_SCALEY,131,26,34,14,ES_AUTOHSCROLL | ES_NUMBER
|
||||
CONTROL "Slider2",IDC_SLIDER_SCALEZ,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,34,45,97,15
|
||||
LTEXT "Z:",IDC_STATIC,13,48,8,8
|
||||
EDITTEXT IDC_EDIT_SCALEZ,131,46,34,14,ES_AUTOHSCROLL | ES_NUMBER
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO
|
||||
BEGIN
|
||||
IDD_SCALE, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 179
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 96
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
#endif // English (U.K.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
#define _AFX_NO_SPLITTER_RESOURCES
|
||||
#define _AFX_NO_OLE_RESOURCES
|
||||
#define _AFX_NO_TRACKER_RESOURCES
|
||||
#define _AFX_NO_PROPERTY_RESOURCES
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE 9, 1
|
||||
#pragma code_page(1252)
|
||||
#endif
|
||||
#include "afxres.rc" // Standard components
|
||||
#endif
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
@ -1,94 +0,0 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by Viewer3d.rc
|
||||
//
|
||||
#define IDD_SHADINGMODEL 131
|
||||
#define IDD_SETOFFSETS 134
|
||||
#define IDD_SCALE 139
|
||||
#define IDD_RADIUS 144
|
||||
#define IDD_TRIHEDRON 542
|
||||
#define ID_BOX 802
|
||||
#define ID_Cylinder 803
|
||||
#define ID_SPHERE 804
|
||||
#define ID_ERASEALL 805
|
||||
#define ID_AMBIENT_LIGHT 806
|
||||
#define ID_DIRECTIONAL_LIGHT 807
|
||||
#define ID_POSITIONAL_LIGHT 808
|
||||
#define ID_SPOT_LIGHT 809
|
||||
#define ID_LIGHTOFF 810
|
||||
#define ID_USERCYLINDER_CHANGEFACECOLOR 810
|
||||
#define ID_SHADINGMODEL 814
|
||||
#define ID_ANTIALIASINGONOFF 815
|
||||
#define ID_CLEAR_LIGHTS 816
|
||||
#define ID_MODELCLIPPING 817
|
||||
#define ID_OVERLAPPED_BOX 818
|
||||
#define ID_BUTTON819 819
|
||||
#define ID_OVERLAPPED_SPHERE 820
|
||||
#define ID_BUTTON821 821
|
||||
#define ID_OVERLAPPED_CYLINDER 822
|
||||
#define ID_POLYGON_OFFSETS 823
|
||||
#define ID_OBJECT_COLORED_MESH 827
|
||||
#define ID_OPTIONS_TRIHEDRON_STATIC_TRIHEDRON 829
|
||||
#define ID_OPTIONS_TRIHEDRON_DYNAMIC_TRIHEDRON 830
|
||||
#define ID_SCALE 831
|
||||
#define ID_CIRCLE 833
|
||||
#define ID_LINE 834
|
||||
#define ID_VERTICES 837
|
||||
#define ID_EDGES 838
|
||||
#define ID_FACES 839
|
||||
#define ID_NEUTRAL 840
|
||||
#define ID_FILLET3D 841
|
||||
#define ID_NBISOS 842
|
||||
#define ID_BUTTONStart 843
|
||||
#define ID_BUTTONPrev 844
|
||||
#define ID_BUTTONRepeat 845
|
||||
#define ID_BUTTONNext 846
|
||||
#define ID_BUTTONEnd 847
|
||||
#define ID_DUMP_VIEW 848
|
||||
#define ID_TEXTURE_ON 849
|
||||
#define IDC_SPIN_RADIUS 1000
|
||||
#define IDC_EDIT_RADIUS 1001
|
||||
#define IDC_SHADINGMODEL_COLOR 1002
|
||||
#define IDC_EDIT_ISOU 1002
|
||||
#define IDC_SHADINGMODEL_MULTICOLOR 1003
|
||||
#define IDC_SLIDER_MODELCLIPPING_Z 1003
|
||||
#define IDC_SHADINGMODEL_FLAT 1004
|
||||
#define IDC_ISOU 1004
|
||||
#define IDC_SHADINGMODEL_HIDDEN 1005
|
||||
#define IDC_EDIT_MODELCLIPPING_Z 1005
|
||||
#define IDC_ISOV 1005
|
||||
#define IDC_SHADINGMODEL_GOURAUD 1006
|
||||
#define IDC_EDIT_ISOV 1006
|
||||
#define IDC_SHADINGMODEL_PHONG 1007
|
||||
#define IDC_CHECK_MODELCLIPPINGONOFF 1008
|
||||
#define IDC_SLIDER_OFFSETFACTOR 1010
|
||||
#define IDC_SLIDER_OFFSETUNITS 1011
|
||||
#define IDC_EDIT_OFFSETFACTOR 1012
|
||||
#define IDC_EDIT_OFFSETUNITS 1013
|
||||
#define IDC_COMBO_OFFSETTYPE 1023
|
||||
#define IDC_SLIDER_SCALEX 1028
|
||||
#define IDC_SLIDER_SCALEY 1029
|
||||
#define IDC_EDIT_SCALEX 1030
|
||||
#define IDC_EDIT_SCALEY 1031
|
||||
#define IDC_RadiusFillet 1031
|
||||
#define IDC_SLIDER_SCALEZ 1032
|
||||
#define IDC_EDIT_SCALEZ 1033
|
||||
#define IDD_RESULTMESSAGEDLG 1500
|
||||
#define IDD_MODELCLIPPING 1501
|
||||
#define IDD_ISOS 1502
|
||||
#define IDC_EDITTRIHEDRSCALE 1686
|
||||
#define IDC_SPINTRIHEDRSCALE 1737
|
||||
#define IDC_COMBOTRIHEDRPOS 1739
|
||||
#define IDC_COMBOTRIHEDRCOLOR 1740
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_3D_CONTROLS 1
|
||||
#define _APS_NEXT_RESOURCE_VALUE 140
|
||||
#define _APS_NEXT_COMMAND_VALUE 850
|
||||
#define _APS_NEXT_CONTROL_VALUE 1032
|
||||
#define _APS_NEXT_SYMED_VALUE 104
|
||||
#endif
|
||||
#endif
|
@ -1,4 +0,0 @@
|
||||
// Microsoft Visual C++ generated Help ID include file.
|
||||
// Used by Viewer3d.rc
|
||||
//
|
||||
#define HIDC_RadiusFillet 0x808f0407 // IDD_RADIUS
|
@ -1,61 +0,0 @@
|
||||
// BoxRadius.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "Viewer3dApp.h"
|
||||
#include "BoxRadius.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
BoxRadius::BoxRadius(CWnd* pParent,
|
||||
double rad)
|
||||
: CDialog(BoxRadius::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(BoxRadius)
|
||||
m_radius = rad;
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void BoxRadius::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(BoxRadius)
|
||||
DDX_Control(pDX, IDC_SPIN_RADIUS, m_spinradius);
|
||||
DDX_Text(pDX, IDC_EDIT_RADIUS, m_radius);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(BoxRadius, CDialog)
|
||||
//{{AFX_MSG_MAP(BoxRadius)
|
||||
ON_NOTIFY(UDN_DELTAPOS, IDC_SPIN_RADIUS, OnDeltaposSpinRadius)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// BoxRadius message handlers
|
||||
|
||||
BOOL BoxRadius::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
// TODO: Add extra initialization here
|
||||
m_spinradius.SetRange(-10000,10000);
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
|
||||
void BoxRadius::OnDeltaposSpinRadius(NMHDR* pNMHDR, LRESULT* pResult)
|
||||
{
|
||||
NM_UPDOWN* pNMUpDown = (NM_UPDOWN*)pNMHDR;
|
||||
// TODO: Add your control notification handler code here
|
||||
if (pNMUpDown->iDelta == 1)
|
||||
pNMUpDown->iDelta = 1;
|
||||
else
|
||||
pNMUpDown->iDelta = -1;
|
||||
m_radius = m_radius + pNMUpDown->iDelta;
|
||||
UpdateData(FALSE);
|
||||
*pResult = 0;
|
||||
}
|
||||
|
@ -1,49 +0,0 @@
|
||||
// BoxRadius.h : header file
|
||||
//
|
||||
|
||||
#if !defined(AFX_BOXRADIUS_H__AD263FF3_54F3_11D1_8C40_00AA00D10994__INCLUDED_)
|
||||
#define AFX_BOXRADIUS_H__AD263FF3_54F3_11D1_8C40_00AA00D10994__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// BoxRadius dialog
|
||||
|
||||
class BoxRadius : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
BoxRadius(CWnd* pParent,double rad); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(BoxRadius)
|
||||
enum { IDD = IDD_RADIUS };
|
||||
CSpinButtonCtrl m_spinradius;
|
||||
double m_radius;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(BoxRadius)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(BoxRadius)
|
||||
afx_msg void OnDeltaposSpinRadius(NMHDR* pNMHDR, LRESULT* pResult);
|
||||
virtual BOOL OnInitDialog();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_BOXRADIUS_H__AD263FF3_54F3_11D1_8C40_00AA00D10994__INCLUDED_)
|
@ -1,27 +0,0 @@
|
||||
#include <stdafx.h>
|
||||
|
||||
gp_Pnt ConvertClickToPoint(Standard_Real x, Standard_Real y, Handle(V3d_View) aView)
|
||||
{
|
||||
|
||||
Standard_Real XEye,YEye,ZEye,XAt,YAt,ZAt;
|
||||
aView->Eye(XEye,YEye,ZEye);
|
||||
aView->At(XAt,YAt,ZAt);
|
||||
gp_Pnt EyePoint(XEye,YEye,ZEye);
|
||||
gp_Pnt AtPoint(XAt,YAt,ZAt);
|
||||
|
||||
gp_Vec EyeVector(EyePoint,AtPoint);
|
||||
gp_Dir EyeDir(EyeVector);
|
||||
|
||||
gp_Pln PlaneOfTheView = gp_Pln(AtPoint,EyeDir);
|
||||
Standard_Real X,Y,Z;
|
||||
aView->Convert((int)x,(int)y,X,Y,Z);
|
||||
gp_Pnt ConvertedPoint(X,Y,Z);
|
||||
gp_Pnt2d ConvertedPointOnPlane = ProjLib::Project(PlaneOfTheView,ConvertedPoint);
|
||||
|
||||
gp_Pnt ResultPoint = ElSLib::Value(ConvertedPointOnPlane.X(),
|
||||
ConvertedPointOnPlane.Y(),
|
||||
PlaneOfTheView);
|
||||
return ResultPoint;
|
||||
}
|
||||
|
||||
|
@ -1,332 +0,0 @@
|
||||
// DlgAttributes.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#include "DlgAttributes.h"
|
||||
|
||||
#include "AISDisplayModeApp.h"
|
||||
|
||||
#include <AISDialogs.h>
|
||||
#include <OCC_3dView.h>
|
||||
|
||||
#include <Graphic3d_MaterialAspect.hxx>
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// DlgAttributes dialog
|
||||
|
||||
|
||||
DlgAttributes::DlgAttributes(CWnd* pParent)
|
||||
: CDialog(DlgAttributes::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(DlgAttributes)
|
||||
// NOTE: the ClassWizard will add member initialization here
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void DlgAttributes::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(DlgAttributes)
|
||||
// NOTE: the ClassWizard will add DDX and DDV calls here
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(DlgAttributes, CDialog)
|
||||
//{{AFX_MSG_MAP(DlgAttributes)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_ALUMINIUM, OnObjectMaterialAluminium)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_BRASS, OnObjectMaterialBrass)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_BRONZE, OnObjectMaterialBronze)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_CHROME, OnObjectMaterialChrome)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_COPPER, OnObjectMaterialCopper)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_GOLD, OnObjectMaterialGold)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_JADE, OnObjectMaterialJade)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_METALIZED, OnObjectMaterialMetalized)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_NEON_GNC, OnObjectMaterialNeonGNC)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_NEON_PHC, OnObjectMaterialNeonPHC)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_OBSIDIAN, OnObjectMaterialObsidian)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_PEWTER, OnObjectMaterialPewter)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_PLASTER, OnObjectMaterialPlaster)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_PLASTIC, OnObjectMaterialPlastic)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_SATIN, OnObjectMaterialSatin)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_SHINY_PLASTIC, OnObjectMaterialShinyPlastic)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_SILVER, OnObjectMaterialSilver)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_STEEL, OnObjectMaterialSteel)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_STONE, OnObjectMaterialStone)
|
||||
ON_BN_CLICKED(ID_OBJECT_MATERIAL_DEFAULT, OnObjectMaterialDefault)
|
||||
ON_BN_CLICKED(ID_OBJECT_COLOR, OnColor)
|
||||
ON_BN_CLICKED(ID_OBJECT_SHADING, OnShading)
|
||||
ON_BN_CLICKED(ID_OBJECT_WIREFRAME, OnWireframe)
|
||||
ON_COMMAND(ID_OBJECT_TRANSPARENCY, OnTransparency)
|
||||
ON_UPDATE_COMMAND_UI(ID_OBJECT_TRANSPARENCY, OnUpdateObjectTransparency)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// DlgAttributes message handlers
|
||||
|
||||
|
||||
void DlgAttributes::OnColor()
|
||||
{
|
||||
Handle(AIS_InteractiveObject) Current ;
|
||||
Quantity_Color CSFColor ;
|
||||
COLORREF MSColor ;
|
||||
|
||||
myAISContext->InitCurrent();
|
||||
if (myAISContext->MoreCurrent()) {
|
||||
Current = myAISContext->Current() ;
|
||||
if ( Current->HasColor () ) {
|
||||
CSFColor = Current->Color () ;
|
||||
MSColor = RGB (CSFColor.Red()*255.,
|
||||
CSFColor.Green()*255.,
|
||||
CSFColor.Blue()*255.);
|
||||
}
|
||||
else {
|
||||
MSColor = RGB (255,255,255) ;
|
||||
}
|
||||
|
||||
CColorDialog dlgColor(MSColor);
|
||||
if (dlgColor.DoModal() == IDOK) {
|
||||
MSColor = dlgColor.GetColor();
|
||||
CSFColor = Quantity_Color (GetRValue(MSColor)/255.,
|
||||
GetGValue(MSColor)/255.,
|
||||
GetBValue(MSColor)/255.,Quantity_TOC_RGB);
|
||||
for (myAISContext->InitCurrent();
|
||||
myAISContext->MoreCurrent ();
|
||||
myAISContext->NextCurrent ())
|
||||
myAISContext->SetColor (myAISContext->Current(),
|
||||
CSFColor.Name());
|
||||
}
|
||||
}
|
||||
|
||||
TCollection_AsciiString Message ("\
|
||||
\n\
|
||||
for (myAISContext->InitCurrent(); myAISContext->MoreCurrent (); \n\
|
||||
myAISContext->NextCurrent ()) \n\
|
||||
myAISContext->SetColor (myAISContext->Current(), CSFColor.Name()); \n\
|
||||
\n");
|
||||
|
||||
CString text(Message.ToCString());
|
||||
(*myCResultDialog).SetTitle(CString("Setting Color"));
|
||||
(*myCResultDialog).SetText(text);
|
||||
}
|
||||
|
||||
|
||||
void DlgAttributes::OnWireframe()
|
||||
{
|
||||
for(myAISContext->InitCurrent(); myAISContext->MoreCurrent();
|
||||
myAISContext->NextCurrent())
|
||||
myAISContext->SetDisplayMode(myAISContext->Current(), 0);
|
||||
|
||||
TCollection_AsciiString Message ("\
|
||||
\n\
|
||||
for (myAISContext->InitCurrent(); myAISContext->MoreCurrent (); \n\
|
||||
myAISContext->NextCurrent ()) \n\
|
||||
myAISContext->SetDisplayMode(myAISContext->Current(), 0); \n\
|
||||
\n");
|
||||
|
||||
CString text(Message.ToCString());
|
||||
(*myCResultDialog).SetTitle(CString("Wireframe"));
|
||||
(*myCResultDialog).SetText(text);
|
||||
}
|
||||
|
||||
void DlgAttributes::Set(Handle ( AIS_InteractiveContext ) & acontext, CResultDialog& aResultDialog)
|
||||
{
|
||||
myAISContext = acontext;
|
||||
myCResultDialog=&aResultDialog;
|
||||
}
|
||||
|
||||
void DlgAttributes::OnTransparency()
|
||||
{
|
||||
/*
|
||||
for (myAISContext->InitCurrent(); myAISContext->MoreCurrent ();
|
||||
myAISContext->NextCurrent ()) {
|
||||
|
||||
|
||||
int ival = (int) ((double) myAISContext->Current()->Transparency()*10.) ;
|
||||
double rval = ((double) ival)/10.;
|
||||
CDialogTransparency Dlg(NULL, rval);
|
||||
if(Dlg.DoModal()== IDOK)
|
||||
myAISContext->SetTransparency (myAISContext->Current(),Dlg.m_transvalue);
|
||||
|
||||
}
|
||||
*/
|
||||
/*
|
||||
CDialogTransparency DialBox(myAISContext);
|
||||
DialBox.DoModal();
|
||||
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
|
||||
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
|
||||
OCC_3dView *pView = (OCC_3dView *) pChild->GetActiveView();
|
||||
pView->Redraw();
|
||||
*/
|
||||
myAISContext->InitCurrent();
|
||||
if(myAISContext->NbCurrents() > 0){
|
||||
CDialogTransparency DialBox(myAISContext, AfxGetMainWnd());
|
||||
DialBox.DoModal();
|
||||
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
|
||||
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
|
||||
OCC_3dView *pView = (OCC_3dView *) pChild->GetActiveView();
|
||||
pView->Redraw();
|
||||
}
|
||||
|
||||
TCollection_AsciiString Message ("\
|
||||
\n\
|
||||
for (myAISContext->InitCurrent(); myAISContext->MoreCurrent (); \n\
|
||||
myAISContext->NextCurrent ()) \n\
|
||||
myAISContext->SetTransparency (myAISContext->Current(),Dlg.m_transvalue); \n\
|
||||
\n");
|
||||
|
||||
CString text(Message.ToCString());
|
||||
(*myCResultDialog).SetTitle(CString("Setting Transparency"));
|
||||
(*myCResultDialog).SetText(text);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void DlgAttributes::OnObjectMaterialAluminium () { SetMaterial ( Graphic3d_NOM_ALUMINIUM ) ; }
|
||||
void DlgAttributes::OnObjectMaterialBrass () { SetMaterial ( Graphic3d_NOM_BRASS ) ; }
|
||||
void DlgAttributes::OnObjectMaterialBronze () { SetMaterial ( Graphic3d_NOM_BRONZE ) ; }
|
||||
void DlgAttributes::OnObjectMaterialChrome () { SetMaterial ( Graphic3d_NOM_CHROME ) ; }
|
||||
void DlgAttributes::OnObjectMaterialCopper () { SetMaterial ( Graphic3d_NOM_COPPER ) ; }
|
||||
void DlgAttributes::OnObjectMaterialGold () { SetMaterial ( Graphic3d_NOM_GOLD ) ; }
|
||||
void DlgAttributes::OnObjectMaterialJade () { SetMaterial ( Graphic3d_NOM_JADE ) ; }
|
||||
void DlgAttributes::OnObjectMaterialMetalized () { SetMaterial ( Graphic3d_NOM_METALIZED ) ; }
|
||||
void DlgAttributes::OnObjectMaterialNeonGNC () { SetMaterial ( Graphic3d_NOM_NEON_GNC ) ; }
|
||||
void DlgAttributes::OnObjectMaterialNeonPHC () { SetMaterial ( Graphic3d_NOM_NEON_PHC ) ; }
|
||||
void DlgAttributes::OnObjectMaterialObsidian () { SetMaterial ( Graphic3d_NOM_OBSIDIAN ) ; }
|
||||
void DlgAttributes::OnObjectMaterialPewter () { SetMaterial ( Graphic3d_NOM_PEWTER ) ; }
|
||||
void DlgAttributes::OnObjectMaterialPlaster () { SetMaterial ( Graphic3d_NOM_PLASTER ) ; }
|
||||
void DlgAttributes::OnObjectMaterialPlastic () { SetMaterial ( Graphic3d_NOM_PLASTIC ) ; }
|
||||
void DlgAttributes::OnObjectMaterialSatin () { SetMaterial ( Graphic3d_NOM_SATIN ) ; }
|
||||
void DlgAttributes::OnObjectMaterialShinyPlastic () { SetMaterial ( Graphic3d_NOM_SHINY_PLASTIC ) ; }
|
||||
void DlgAttributes::OnObjectMaterialSilver () { SetMaterial ( Graphic3d_NOM_SILVER ) ; }
|
||||
void DlgAttributes::OnObjectMaterialSteel () { SetMaterial ( Graphic3d_NOM_STEEL ) ; }
|
||||
void DlgAttributes::OnObjectMaterialStone () { SetMaterial ( Graphic3d_NOM_STONE ) ; }
|
||||
void DlgAttributes::OnObjectMaterialDefault () { SetMaterial ( Graphic3d_NOM_DEFAULT ) ; }
|
||||
|
||||
void DlgAttributes::SetMaterial(Graphic3d_NameOfMaterial Material)
|
||||
{
|
||||
for (myAISContext->InitCurrent();myAISContext->MoreCurrent ();myAISContext->NextCurrent ())
|
||||
myAISContext->SetMaterial (myAISContext->Current(),
|
||||
(Graphic3d_NameOfMaterial)(Material));
|
||||
|
||||
TCollection_AsciiString aString;
|
||||
TCollection_AsciiString Message1 ("\
|
||||
\n\
|
||||
for (myAISContext->InitCurrent(); myAISContext->MoreCurrent (); \n\
|
||||
myAISContext->NextCurrent ()) \n\
|
||||
myAISContext->SetMaterial (myAISContext->Current(), ");
|
||||
|
||||
TCollection_AsciiString Message2("); \n\
|
||||
\n");
|
||||
switch (Material){
|
||||
case 0:
|
||||
aString = "Graphic3d_NOM_BRASS";
|
||||
break;
|
||||
case 1:
|
||||
aString = "Graphic3d_NOM_BRONZE";
|
||||
break;
|
||||
case 2:
|
||||
aString = "Graphic3d_NOM_COPPER";
|
||||
break;
|
||||
case 3:
|
||||
aString = "Graphic3d_NOM_GOLD";
|
||||
break;
|
||||
case 4:
|
||||
aString = "Graphic3d_NOM_PEWTER";
|
||||
break;
|
||||
case 5:
|
||||
aString = "Graphic3d_NOM_PLASTER";
|
||||
break;
|
||||
case 6:
|
||||
aString = "Graphic3d_NOM_PLASTIC";
|
||||
break;
|
||||
case 7:
|
||||
aString = "Graphic3d_NOM_SILVER";
|
||||
break;
|
||||
case 8:
|
||||
aString = "Graphic3d_NOM_STEEL";
|
||||
break;
|
||||
case 9:
|
||||
aString = "Graphic3d_NOM_STONE";
|
||||
break;
|
||||
case 10:
|
||||
aString = "Graphic3d_NOM_SHINY_PLASTIC";
|
||||
break;
|
||||
case 11:
|
||||
aString = "Graphic3d_NOM_SATIN";
|
||||
break;
|
||||
case 12:
|
||||
aString = "Graphic3d_NOM_METALIZED";
|
||||
break;
|
||||
case 13:
|
||||
aString = "Graphic3d_NOM_NEON_GNC";
|
||||
break;
|
||||
case 14:
|
||||
aString = "Graphic3d_NOM_CHROME";
|
||||
break;
|
||||
case 15:
|
||||
aString = "Graphic3d_NOM_ALUMINIUM";
|
||||
break;
|
||||
case 16:
|
||||
aString = "Graphic3d_NOM_OBSIDIAN";
|
||||
break;
|
||||
case 17:
|
||||
aString = "Graphic3d_NOM_NEON_PHC";
|
||||
break;
|
||||
case 18:
|
||||
aString = "Graphic3d_NOM_JADE";
|
||||
break;
|
||||
case 19:
|
||||
aString = "Graphic3d_NOM_DEFAULT";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Message1 = Message1 +aString +Message2;
|
||||
//Graphic3d_MaterialAspect aAspect (Material);
|
||||
//Standard_CString aString = aAspect.MaterialName();
|
||||
|
||||
CString text(Message1.ToCString());
|
||||
(*myCResultDialog).SetTitle(CString("Setting Material"));
|
||||
(*myCResultDialog).SetText(text);
|
||||
|
||||
}
|
||||
|
||||
void DlgAttributes::OnUpdateObjectTransparency(CCmdUI* pCmdUI)
|
||||
{
|
||||
bool OneOrMoreInShading = false;
|
||||
for (myAISContext->InitCurrent();myAISContext->MoreCurrent ();myAISContext->NextCurrent ())
|
||||
if (myAISContext->IsDisplayed(myAISContext->Current(),1)) OneOrMoreInShading=true;
|
||||
pCmdUI->Enable (OneOrMoreInShading);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void DlgAttributes::OnShading()
|
||||
{
|
||||
for(myAISContext->InitCurrent(); myAISContext->MoreCurrent();
|
||||
myAISContext->NextCurrent())
|
||||
myAISContext->SetDisplayMode(myAISContext->Current(), 1);
|
||||
|
||||
|
||||
TCollection_AsciiString Message ("\
|
||||
\n\
|
||||
for (myAISContext->InitCurrent(); myAISContext->MoreCurrent (); \n\
|
||||
myAISContext->NextCurrent ()) \n\
|
||||
myAISContext->SetDisplayMode(myAISContext->Current(), 1); \n\
|
||||
\n");
|
||||
|
||||
CString text(Message.ToCString());
|
||||
(*myCResultDialog).SetTitle(CString("Shading"));
|
||||
(*myCResultDialog).SetText(text);
|
||||
}
|
@ -1,83 +0,0 @@
|
||||
// DlgAttributes.h : header file
|
||||
//
|
||||
|
||||
#if !defined(AFX_DLGATTRIBUTES_H__AF548353_9EF6_11D1_A47D_00C095ECDA78__INCLUDED_)
|
||||
#define AFX_DLGATTRIBUTES_H__AF548353_9EF6_11D1_A47D_00C095ECDA78__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include <AIS_InteractiveContext.hxx>
|
||||
#include <ResultDialog.h>
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// DlgAttributes dialog
|
||||
|
||||
class DlgAttributes : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
void Set(Handle(AIS_InteractiveContext)& acontext, CResultDialog& aResultDialog);
|
||||
DlgAttributes(CWnd* pParent=NULL);
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(DlgAttributes)
|
||||
enum { IDD = IDD_ATTRIBUTES };
|
||||
// NOTE: the ClassWizard will add data members here
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(DlgAttributes)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(DlgAttributes)
|
||||
afx_msg void OnColor();
|
||||
afx_msg void OnWireframe();
|
||||
afx_msg void OnTransparency() ;
|
||||
afx_msg void OnShading();
|
||||
afx_msg void OnObjectMaterialAluminium();
|
||||
afx_msg void OnObjectMaterialBrass();
|
||||
afx_msg void OnObjectMaterialBronze();
|
||||
afx_msg void OnObjectMaterialChrome();
|
||||
afx_msg void OnObjectMaterialCopper();
|
||||
afx_msg void OnObjectMaterialGold();
|
||||
afx_msg void OnObjectMaterialJade();
|
||||
afx_msg void OnObjectMaterialMetalized();
|
||||
afx_msg void OnObjectMaterialNeonGNC();
|
||||
afx_msg void OnObjectMaterialNeonPHC();
|
||||
afx_msg void OnObjectMaterialObsidian();
|
||||
afx_msg void OnObjectMaterialPewter();
|
||||
afx_msg void OnObjectMaterialPlastic();
|
||||
afx_msg void OnObjectMaterialPlaster();
|
||||
afx_msg void OnObjectMaterialSatin();
|
||||
afx_msg void OnObjectMaterialShinyPlastic();
|
||||
afx_msg void OnObjectMaterialSilver();
|
||||
afx_msg void OnObjectMaterialSteel();
|
||||
afx_msg void OnObjectMaterialStone();
|
||||
afx_msg void OnObjectMaterialDefault();
|
||||
|
||||
afx_msg void OnUpdateObjectTransparency(CCmdUI* pCmdUI) ;
|
||||
|
||||
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
void SetMaterial (Graphic3d_NameOfMaterial Material);
|
||||
|
||||
private:
|
||||
Handle(AIS_InteractiveContext) myAISContext;
|
||||
CResultDialog* myCResultDialog;
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_DLGATTRIBUTES_H__AF548353_9EF6_11D1_A47D_00C095ECDA78__INCLUDED_)
|
@ -1,49 +0,0 @@
|
||||
// DlgIsos.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#include "DlgIsos.h"
|
||||
|
||||
#include "Viewer3dApp.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// DlgIsos dialog
|
||||
|
||||
|
||||
DlgIsos::DlgIsos(CWnd* pParent,
|
||||
int nisou,
|
||||
int nisov)
|
||||
: CDialog(DlgIsos::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(DlgIsos)
|
||||
m_isou = nisou;
|
||||
m_isov = nisov;
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void DlgIsos::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(DlgIsos)
|
||||
DDX_Text(pDX, IDC_EDIT_ISOU, m_isou);
|
||||
DDX_Text(pDX, IDC_EDIT_ISOV, m_isov);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(DlgIsos, CDialog)
|
||||
//{{AFX_MSG_MAP(DlgIsos)
|
||||
// NOTE: the ClassWizard will add message map macros here
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// DlgIsos message handlers
|
@ -1,52 +0,0 @@
|
||||
// DlgIsos.h : header file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#if !defined(AFX_DLGISOS_H__AD159C33_9EDC_11D1_A47D_00C095ECDA78__INCLUDED_)
|
||||
#define AFX_DLGISOS_H__AD159C33_9EDC_11D1_A47D_00C095ECDA78__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// DlgIsos dialog
|
||||
|
||||
class DlgIsos : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
DlgIsos(CWnd* pParent,
|
||||
int nisou,
|
||||
int nisov); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(DlgIsos)
|
||||
enum { IDD = IDD_ISOS };
|
||||
int m_isou;
|
||||
int m_isov;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(DlgIsos)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(DlgIsos)
|
||||
// NOTE: the ClassWizard will add member functions here
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_DLGISOS_H__AD159C33_9EDC_11D1_A47D_00C095ECDA78__INCLUDED_)
|
@ -1,52 +0,0 @@
|
||||
// ISession_Curve.cpp: implementation of the ISession_Curve class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "ISession_Curve.h"
|
||||
#include <Prs3d_LineAspect.hxx>
|
||||
#include <StdPrs_Curve.hxx>
|
||||
#include <GeomAdaptor_Curve.hxx>
|
||||
#include <Prs3d_Drawer.hxx>
|
||||
#include <Prs3d_ArrowAspect.hxx>
|
||||
|
||||
IMPLEMENT_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
|
||||
|
||||
#ifdef _DEBUG
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[]=__FILE__;
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// Construction/Destruction
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
ISession_Curve::ISession_Curve(const Handle(Geom_Curve)& aCurve)
|
||||
:AIS_InteractiveObject(),myCurve(aCurve)
|
||||
{
|
||||
}
|
||||
|
||||
ISession_Curve::~ISession_Curve()
|
||||
{
|
||||
|
||||
}
|
||||
void ISession_Curve::Compute(const Handle(PrsMgr_PresentationManager)& /*aPresentationManager*/,
|
||||
const Handle(Prs3d_Presentation)& aPresentation,
|
||||
const Standard_Integer /*aMode*/)
|
||||
{
|
||||
GeomAdaptor_Curve anAdaptorCurve(myCurve);
|
||||
if (hasOwnColor)
|
||||
myDrawer->LineAspect()->SetColor (myDrawer->Color());
|
||||
myDrawer->Link()->SetDiscretisation(100);
|
||||
myDrawer->Link()->SetMaximalParameterValue(500);
|
||||
|
||||
StdPrs_Curve::Add (aPresentation, anAdaptorCurve, myDrawer);
|
||||
}
|
||||
|
||||
void ISession_Curve::ComputeSelection(const Handle(SelectMgr_Selection)& /*aSelection*/,
|
||||
const Standard_Integer /*aMode*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -1,32 +0,0 @@
|
||||
// ISession_Curve.h: interface for the ISession_Curve class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_ISESSION_CURVE_H__F981CB93_A3CC_11D1_8DA3_0800369C8A03__INCLUDED_)
|
||||
#define AFX_ISESSION_CURVE_H__F981CB93_A3CC_11D1_8DA3_0800369C8A03__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
#include <Standard_Macro.hxx>
|
||||
#include <Standard_DefineHandle.hxx>
|
||||
#include <AIS_InteractiveObject.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
class ISession_Curve;
|
||||
DEFINE_STANDARD_HANDLE(ISession_Curve,AIS_InteractiveObject)
|
||||
|
||||
class ISession_Curve : public AIS_InteractiveObject
|
||||
{
|
||||
public:
|
||||
ISession_Curve(const Handle(Geom_Curve)& aCurve);
|
||||
virtual ~ISession_Curve();
|
||||
DEFINE_STANDARD_RTTIEXT(ISession_Curve,AIS_InteractiveObject)
|
||||
private:
|
||||
|
||||
Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager)& aPresentationManager,const Handle(Prs3d_Presentation)& aPresentation,const Standard_Integer aMode = 0) ;
|
||||
void ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,const Standard_Integer aMode) ;
|
||||
|
||||
Handle(Geom_Curve) myCurve;
|
||||
};
|
||||
|
||||
#endif // !defined(AFX_ISESSION_CURVE_H__F981CB93_A3CC_11D1_8DA3_0800369C8A03__INCLUDED_)
|
@ -1,298 +0,0 @@
|
||||
// ModelClippingDlg.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "Viewer3dApp.h"
|
||||
#include "ModelClippingDlg.h"
|
||||
#include "Viewer3dDoc.h"
|
||||
#include "offsetdlg.h" // Added by ClassView
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
#define EOL "\n"
|
||||
|
||||
// =======================================================================
|
||||
// function : CModelClippingDlg
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
CModelClippingDlg::CModelClippingDlg (Handle(V3d_View) theView,
|
||||
Handle(AIS_Shape) theShape,
|
||||
Handle(Graphic3d_ClipPlane) theClippingPlane,
|
||||
CViewer3dDoc* theDoc,
|
||||
CWnd* theParent)
|
||||
: CDialog(CModelClippingDlg::IDD, theParent),
|
||||
m_ModelClipping_Z (0.0),
|
||||
myModelClipping_Z (0.0),
|
||||
m_ModelClippingONOFF (FALSE),
|
||||
myView (theView),
|
||||
myShape (theShape),
|
||||
myClippingPlane (theClippingPlane),
|
||||
myDoc (theDoc)
|
||||
{}
|
||||
|
||||
// =======================================================================
|
||||
// function : DoDataExchange
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void CModelClippingDlg::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(CModelClippingDlg)
|
||||
DDX_Control(pDX, IDC_SLIDER_MODELCLIPPING_Z, m_ModelClippingZSlidCtrl);
|
||||
DDX_Text(pDX, IDC_EDIT_MODELCLIPPING_Z, m_ModelClipping_Z);
|
||||
DDX_Check(pDX, IDC_CHECK_MODELCLIPPINGONOFF, m_ModelClippingONOFF);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CModelClippingDlg, CDialog)
|
||||
//{{AFX_MSG_MAP(CModelClippingDlg)
|
||||
ON_WM_HSCROLL()
|
||||
ON_EN_CHANGE(IDC_EDIT_MODELCLIPPING_Z, OnChangeEditModelclippingZ)
|
||||
ON_BN_CLICKED(IDC_CHECK_MODELCLIPPINGONOFF, OnCheckModelclippingonoff)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
// =======================================================================
|
||||
// function : OnHScroll
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void CModelClippingDlg::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
|
||||
{
|
||||
UpdateData(TRUE);
|
||||
|
||||
m_ModelClipping_Z = m_ModelClippingZSlidCtrl.GetPos();
|
||||
|
||||
UpdateData(FALSE);
|
||||
|
||||
// Setting the ZClipping depth at m_ZClippingDepth value
|
||||
gp_Pln aPlane (gp_Pnt (-m_ModelClipping_Z, 0.0, 0.0), gp_Dir(1.0, 0.0, 0.0));
|
||||
|
||||
myClippingPlane->SetEquation (aPlane);
|
||||
|
||||
gp_Trsf myTrsf;
|
||||
myTrsf.SetTranslation (gp_Pnt (m_ModelClipping_Z, 0.0, 0.0), gp_Pnt(myModelClipping_Z, 0.0, 0.0));
|
||||
|
||||
// transform presentation shape
|
||||
if (m_ModelClippingONOFF)
|
||||
{
|
||||
myDoc->GetAISContext()->SetLocation (myShape, TopLoc_Location (myTrsf));
|
||||
myDoc->GetAISContext()->Redisplay (myShape, Standard_True);
|
||||
myView->Update();
|
||||
}
|
||||
else
|
||||
{
|
||||
myShape->SetLocalTransformation (myTrsf);
|
||||
}
|
||||
|
||||
TCollection_AsciiString aMessage (
|
||||
EOL "gp_Pln aPlane (gp_Pnt (-m_ModelClipping_Z, 0.0, 0.0), gp_Dir(1.0, 0.0, 0.0));"
|
||||
EOL
|
||||
EOL "myClippingPlane->SetEquation (aPlane);\n" );
|
||||
|
||||
// Update The Result Message Dialog
|
||||
myDoc->UpdateResultMessageDlg ("Change clipping plane", aMessage);
|
||||
|
||||
CDialog::OnHScroll (nSBCode, nPos, pScrollBar);
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : OnInitDialog
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
BOOL CModelClippingDlg::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
const Graphic3d_ClipPlane::Equation aPlaneEquation = myClippingPlane->GetEquation();
|
||||
|
||||
// m_ModelClipping_Z = D (plane coefficient)
|
||||
m_ModelClipping_Z = aPlaneEquation[3];
|
||||
m_ModelClippingZSlidCtrl.SetRange (-750, 750, TRUE);
|
||||
m_ModelClippingZSlidCtrl.SetPos ((int)floor (m_ModelClipping_Z));
|
||||
|
||||
m_ModelClippingONOFF = myClippingPlane->IsOn();
|
||||
|
||||
if (m_ModelClippingONOFF)
|
||||
{
|
||||
// register and activate clipping plane
|
||||
Standard_Boolean toAddPlane = Standard_True;
|
||||
Handle(Graphic3d_SequenceOfHClipPlane) aPlanes = myView->ClipPlanes();
|
||||
if (!aPlanes.IsNull())
|
||||
{
|
||||
for (Graphic3d_SequenceOfHClipPlane::Iterator aPlaneIt (*aPlanes); aPlaneIt.More(); aPlaneIt.Next())
|
||||
{
|
||||
if (aPlaneIt.Value() == myClippingPlane)
|
||||
{
|
||||
toAddPlane = Standard_False;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (toAddPlane)
|
||||
{
|
||||
myView->AddClipPlane (myClippingPlane);
|
||||
}
|
||||
|
||||
myClippingPlane->SetOn (Standard_True);
|
||||
|
||||
myDoc->GetAISContext()->Display (myShape, Standard_True);
|
||||
}
|
||||
|
||||
UpdateData (FALSE);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : OnChangeEditModelclippingZ
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void CModelClippingDlg::OnChangeEditModelclippingZ()
|
||||
{
|
||||
UpdateData (TRUE);
|
||||
|
||||
m_ModelClippingZSlidCtrl.SetPos ((int)floor (m_ModelClipping_Z));
|
||||
|
||||
// Change clipping plane
|
||||
gp_Pln aPlane (gp_Pnt (-m_ModelClipping_Z, 0.0, 0.0), gp_Dir (1.0, 0.0, 0.0));
|
||||
|
||||
myClippingPlane->SetEquation (aPlane);
|
||||
|
||||
// transform presentation shape
|
||||
gp_Trsf myTrsf;
|
||||
myTrsf.SetTranslation ( gp_Pnt (m_ModelClipping_Z, 0.0, 0.0), gp_Pnt (myModelClipping_Z, 0.0, 0.0));
|
||||
|
||||
// transform presentation shape
|
||||
if (m_ModelClippingONOFF)
|
||||
{
|
||||
myDoc->GetAISContext()->SetLocation (myShape, TopLoc_Location (myTrsf));
|
||||
myDoc->GetAISContext()->Redisplay (myShape, Standard_False);
|
||||
myView->Update();
|
||||
}
|
||||
else
|
||||
{
|
||||
myShape->SetLocalTransformation (myTrsf);
|
||||
}
|
||||
|
||||
myModelClipping_Z = m_ModelClipping_Z;
|
||||
|
||||
TCollection_AsciiString aMessage (
|
||||
EOL "gp_Pln aPlane (gp_Pnt (-m_ModelClipping_Z, 0.0, 0.0), gp_Dir(1.0, 0.0, 0.0));"
|
||||
EOL
|
||||
EOL "myClippingPlane->SetEquation (aPlane);\n" );
|
||||
|
||||
// Update The Result Message Dialog
|
||||
myDoc->UpdateResultMessageDlg ("Change clipping plane", aMessage);
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : OnCheckModelclippingonoff
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void CModelClippingDlg::OnCheckModelclippingonoff()
|
||||
{
|
||||
UpdateData(TRUE);
|
||||
|
||||
if (m_ModelClippingONOFF)
|
||||
{
|
||||
// register and activate clipping plane
|
||||
Standard_Boolean toAddPlane = Standard_True;
|
||||
Handle(Graphic3d_SequenceOfHClipPlane) aPlanes = myView->ClipPlanes();
|
||||
if (!aPlanes.IsNull())
|
||||
{
|
||||
for (Graphic3d_SequenceOfHClipPlane::Iterator aPlaneIt (*aPlanes); aPlaneIt.More(); aPlaneIt.Next())
|
||||
{
|
||||
if (aPlaneIt.Value() == myClippingPlane)
|
||||
{
|
||||
toAddPlane = Standard_False;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (toAddPlane)
|
||||
{
|
||||
myView->AddClipPlane (myClippingPlane);
|
||||
}
|
||||
|
||||
myClippingPlane->SetOn (Standard_True);
|
||||
|
||||
myDoc->GetAISContext()->Display (myShape, Standard_False);
|
||||
}
|
||||
else
|
||||
{
|
||||
// deactivate clipping plane
|
||||
myClippingPlane->SetOn (Standard_False);
|
||||
|
||||
myDoc->GetAISContext()->Remove (myShape, Standard_False);
|
||||
}
|
||||
|
||||
myView->Update();
|
||||
|
||||
TCollection_AsciiString aMessage (
|
||||
EOL "if (...)"
|
||||
EOL "{"
|
||||
EOL " // register and activate clipping plane"
|
||||
EOL " if (!myView->ClipPlanes()->Contains (myClippingPlane))"
|
||||
EOL " {"
|
||||
EOL " myView->AddClipPlane (myClippingPlane);"
|
||||
EOL " }"
|
||||
EOL
|
||||
EOL " myClippingPlane->SetOn (Standard_True);"
|
||||
EOL "}"
|
||||
EOL "else"
|
||||
EOL "{"
|
||||
EOL " // deactivate clipping plane"
|
||||
EOL " myClippingPlane->SetOn (Standard_False);"
|
||||
EOL "}" );
|
||||
|
||||
myDoc->UpdateResultMessageDlg ("Switch clipping on/off", aMessage);
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : OnCancel
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void CModelClippingDlg::OnCancel()
|
||||
{
|
||||
UpdateData(TRUE);
|
||||
|
||||
if (m_ModelClippingONOFF)
|
||||
{
|
||||
// remove and deactivate clipping plane
|
||||
myView->RemoveClipPlane (myClippingPlane);
|
||||
|
||||
myClippingPlane->SetOn (Standard_False);
|
||||
}
|
||||
|
||||
m_ModelClippingONOFF=FALSE;
|
||||
|
||||
if (!myShape.IsNull())
|
||||
{
|
||||
myDoc->GetAISContext()->Remove (myShape, Standard_False);
|
||||
}
|
||||
|
||||
myView->Update();
|
||||
|
||||
CDialog::OnCancel();
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
// function : OnOK
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void CModelClippingDlg::OnOK()
|
||||
{
|
||||
if (!myShape.IsNull())
|
||||
{
|
||||
myDoc->GetAISContext()->Remove (myShape, Standard_True);
|
||||
}
|
||||
|
||||
CDialog::OnOK();
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
#if !defined(AFX_MODELCLIPPINGDLG_H__E206D99D_646E_11D3_8D0A_00AA00D10994__INCLUDED_)
|
||||
#define AFX_MODELCLIPPINGDLG_H__E206D99D_646E_11D3_8D0A_00AA00D10994__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// ModelClippingDlg.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CModelClippingDlg dialog
|
||||
#include "Viewer3dDoc.h"
|
||||
|
||||
#include <Graphic3d_ClipPlane.hxx>
|
||||
|
||||
class CModelClippingDlg : public CDialog
|
||||
{
|
||||
public:
|
||||
|
||||
//! Standard constructor.
|
||||
CModelClippingDlg (Handle(V3d_View) theView,
|
||||
Handle(AIS_Shape) theShape,
|
||||
Handle(Graphic3d_ClipPlane) theClippingPlane,
|
||||
CViewer3dDoc* theDoc,
|
||||
CWnd* theParent = NULL);
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CModelClippingDlg)
|
||||
enum { IDD = IDD_MODELCLIPPING };
|
||||
CSliderCtrl m_ModelClippingZSlidCtrl;
|
||||
double m_ModelClipping_Z;
|
||||
BOOL m_ModelClippingONOFF;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CModelClippingDlg)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CModelClippingDlg)
|
||||
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnChangeEditModelclippingZ();
|
||||
afx_msg void OnCheckModelclippingonoff();
|
||||
virtual void OnCancel();
|
||||
virtual void OnOK();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
private:
|
||||
Handle(V3d_View) myView;
|
||||
Handle(AIS_Shape) myShape;
|
||||
Handle(Graphic3d_ClipPlane) myClippingPlane;
|
||||
CViewer3dDoc* myDoc;
|
||||
double myModelClipping_Z;
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_MODELCLIPPINGDLG_H__E206D99D_646E_11D3_8D0A_00AA00D10994__INCLUDED_)
|
@ -1,329 +0,0 @@
|
||||
// OCCDemo_Presentation.cpp: implementation of the OCCDemo_Presentation class.
|
||||
// This is a base class for all presentations
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "OCCDemo_Presentation.h"
|
||||
#include "Viewer3dView.h"
|
||||
#include "ISession_Curve.h"
|
||||
|
||||
#include <AIS_InteractiveObject.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
#include <Quantity_Color.hxx>
|
||||
#include <AIS_Shape.hxx>
|
||||
#include <BRepBuilderAPI_MakeFace.hxx>
|
||||
#include <Precision.hxx>
|
||||
#include <Geom_Line.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
#include <Prs3d_Drawer.hxx>
|
||||
#include <Prs3d_ArrowAspect.hxx>
|
||||
#include <AIS_Point.hxx>
|
||||
#include <Geom_CartesianPoint.hxx>
|
||||
#include <Geom2d_OffsetCurve.hxx>
|
||||
#include <GeomAPI.hxx>
|
||||
#include <gp_Pln.hxx>
|
||||
#include <Geom_OffsetCurve.hxx>
|
||||
|
||||
#define MAX_PARAM 1000 // if a surface parameter is infinite, it is assigned
|
||||
// this value in order to display the "infinit" object in the viewer.
|
||||
|
||||
|
||||
Standard_Boolean OCCDemo_Presentation::WaitForInput (unsigned long aMilliSeconds)
|
||||
{
|
||||
//::WaitForSingleObject(::CreateEvent (NULL, FALSE, FALSE, NULL), aMilliSeconds);
|
||||
if (::MsgWaitForMultipleObjects(0, NULL, FALSE, aMilliSeconds,
|
||||
QS_KEY | QS_MOUSEBUTTON) != WAIT_TIMEOUT)
|
||||
{
|
||||
MSG msg;
|
||||
if (::PeekMessage (&msg, NULL, 0, 0, PM_NOREMOVE))
|
||||
{
|
||||
if (msg.message == WM_KEYUP)
|
||||
{
|
||||
::PeekMessage (&msg, NULL, 0, 0, PM_REMOVE);
|
||||
return WaitForInput (aMilliSeconds);
|
||||
}
|
||||
else
|
||||
return Standard_True;
|
||||
}
|
||||
}
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
//================================================================
|
||||
// Function : fixParam
|
||||
// Purpose : assigns a finite value to theParam if it's infinite
|
||||
// (equal to +- Precision::Infinite())
|
||||
//================================================================
|
||||
static Standard_Boolean fixParam(Standard_Real& theParam)
|
||||
{
|
||||
Standard_Boolean aResult = Standard_False;
|
||||
if (Precision::IsNegativeInfinite(theParam))
|
||||
{
|
||||
theParam = -MAX_PARAM;
|
||||
aResult = Standard_True;
|
||||
}
|
||||
if (Precision::IsPositiveInfinite(theParam))
|
||||
{
|
||||
theParam = MAX_PARAM;
|
||||
aResult = Standard_True;
|
||||
}
|
||||
return aResult;
|
||||
}
|
||||
|
||||
//================================================================
|
||||
// Function : DrawSurface
|
||||
// Purpose : displays a given geometric surface in 3d viewer
|
||||
// (creates a finite face and displays it)
|
||||
//================================================================
|
||||
Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawSurface
|
||||
(const Handle(Geom_Surface)& theSurface,
|
||||
const Quantity_Color& theColor,
|
||||
const Standard_Boolean toDisplay)
|
||||
{
|
||||
Standard_Real u1, u2, v1, v2;
|
||||
theSurface->Bounds(u1,u2,v1,v2);
|
||||
fixParam(u1);
|
||||
fixParam(u2);
|
||||
fixParam(v1);
|
||||
fixParam(v2);
|
||||
|
||||
Handle(AIS_Shape) aGraphicSurface =
|
||||
new AIS_Shape(BRepBuilderAPI_MakeFace (theSurface, u1, u2, v1, v2, Precision::Confusion()));
|
||||
|
||||
getAISContext()->SetMaterial(aGraphicSurface, Graphic3d_NOM_PLASTIC, toDisplay);
|
||||
getAISContext()->SetColor(aGraphicSurface, theColor, toDisplay);
|
||||
if (toDisplay) {
|
||||
if (FitMode){
|
||||
getAISContext()->Display (aGraphicSurface, Standard_False);
|
||||
CViewer3dDoc::Fit();
|
||||
}
|
||||
else
|
||||
getAISContext()->Display (aGraphicSurface, Standard_True);
|
||||
}
|
||||
|
||||
return aGraphicSurface;
|
||||
}
|
||||
|
||||
//================================================================
|
||||
// Function : DrawCurve
|
||||
// Purpose : displays a given curve 3d
|
||||
//================================================================
|
||||
Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawCurve
|
||||
(const Handle(Geom_Curve)& theCurve,
|
||||
const Quantity_Color& theColor,
|
||||
const Standard_Boolean toDisplay)
|
||||
{
|
||||
Handle(ISession_Curve) aGraphicCurve = new ISession_Curve (theCurve);
|
||||
|
||||
getAISContext()->SetColor (aGraphicCurve, theColor, toDisplay);
|
||||
aGraphicCurve->Attributes()->Link()->SetLineArrowDraw(Standard_False);
|
||||
if (toDisplay){
|
||||
if (FitMode){
|
||||
getAISContext()->Display (aGraphicCurve, Standard_False);
|
||||
CViewer3dDoc::Fit();
|
||||
}
|
||||
else
|
||||
getAISContext()->Display (aGraphicCurve, Standard_True);
|
||||
}
|
||||
|
||||
return aGraphicCurve;
|
||||
}
|
||||
|
||||
//================================================================
|
||||
// Function : DrawCurve
|
||||
// Purpose : displays a given curve 2d
|
||||
//================================================================
|
||||
Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawCurve
|
||||
(const Handle(Geom2d_Curve)& theCurve,
|
||||
const Quantity_Color& theColor,
|
||||
const Standard_Boolean toDisplay,
|
||||
const gp_Ax2& aPosition)
|
||||
{
|
||||
// create 3D curve in plane
|
||||
Handle(Geom_Curve) aCurve3d;
|
||||
if (theCurve->IsKind(STANDARD_TYPE(Geom2d_OffsetCurve)))
|
||||
{
|
||||
Handle(Geom2d_OffsetCurve) aOffCurve =
|
||||
Handle(Geom2d_OffsetCurve)::DownCast(theCurve);
|
||||
Handle(Geom_Curve) aBasCurve3d =
|
||||
GeomAPI::To3d (aOffCurve->BasisCurve(), gp_Pln(aPosition));
|
||||
Standard_Real aDist = aOffCurve->Offset();
|
||||
aCurve3d = new Geom_OffsetCurve (aBasCurve3d, aDist, aPosition.Direction());
|
||||
}
|
||||
else
|
||||
{
|
||||
aCurve3d = GeomAPI::To3d (theCurve, gp_Pln(aPosition));
|
||||
}
|
||||
return drawCurve (aCurve3d, theColor, toDisplay);
|
||||
}
|
||||
|
||||
//================================================================
|
||||
// Function : drawPoint
|
||||
// Purpose : displays a given point
|
||||
//================================================================
|
||||
Handle(AIS_Point) OCCDemo_Presentation::drawPoint
|
||||
(const gp_Pnt& aPnt,
|
||||
const Quantity_Color& theColor,
|
||||
const Standard_Boolean toDisplay)
|
||||
{
|
||||
Handle(AIS_Point) aGraphicPoint = new AIS_Point (new Geom_CartesianPoint(aPnt));
|
||||
|
||||
getAISContext()->SetColor (aGraphicPoint, theColor, toDisplay);
|
||||
if (toDisplay) {
|
||||
getAISContext()->Display (aGraphicPoint, Standard_True);
|
||||
//COCCDemoDoc::Fit();
|
||||
}
|
||||
|
||||
return aGraphicPoint;
|
||||
}
|
||||
|
||||
//================================================================
|
||||
// Function : drawVector
|
||||
// Purpose : displays a given vector in 3d viewer
|
||||
// (segment of line starting at thePnt with the arrow at the end,
|
||||
// the length of segment is the length of the vector)
|
||||
//================================================================
|
||||
Handle(AIS_InteractiveObject) OCCDemo_Presentation::drawVector
|
||||
(const gp_Pnt& thePnt,
|
||||
const gp_Vec& theVec,
|
||||
const Quantity_Color& theColor,
|
||||
const Standard_Boolean toDisplay)
|
||||
{
|
||||
Standard_Real aLength = theVec.Magnitude();
|
||||
if (aLength < Precision::Confusion())
|
||||
return Handle(AIS_InteractiveObject)();
|
||||
|
||||
Handle(Geom_Curve) aCurve = new Geom_Line (thePnt, theVec);
|
||||
aCurve = new Geom_TrimmedCurve (aCurve, 0, aLength);
|
||||
|
||||
Handle(ISession_Curve) aGraphicCurve = new ISession_Curve (aCurve);
|
||||
|
||||
getAISContext()->SetColor (aGraphicCurve, theColor, toDisplay);
|
||||
Handle(Prs3d_Drawer) aDrawer = aGraphicCurve->Attributes()->Link();
|
||||
aDrawer->SetLineArrowDraw(Standard_True);
|
||||
aDrawer->ArrowAspect()->SetLength(aLength/10);
|
||||
if (toDisplay) {
|
||||
if (FitMode){
|
||||
getAISContext()->Display (aGraphicCurve, Standard_False);
|
||||
CViewer3dDoc::Fit();
|
||||
}
|
||||
else
|
||||
getAISContext()->Display (aGraphicCurve, Standard_True);
|
||||
}
|
||||
|
||||
return aGraphicCurve;
|
||||
}
|
||||
|
||||
|
||||
Handle(AIS_Shape) OCCDemo_Presentation::drawShape
|
||||
(const TopoDS_Shape& theShape,const Quantity_Color& theColor,
|
||||
const Standard_Boolean toDisplay)
|
||||
{
|
||||
Handle(AIS_Shape) aGraphicShape = new AIS_Shape(theShape);
|
||||
|
||||
getAISContext()->SetMaterial(aGraphicShape, Graphic3d_NOM_PLASTIC, toDisplay);
|
||||
getAISContext()->SetColor (aGraphicShape, theColor, toDisplay);
|
||||
if (toDisplay){
|
||||
if (FitMode){
|
||||
getAISContext()->Display (aGraphicShape, Standard_False);
|
||||
CViewer3dDoc::Fit();
|
||||
}
|
||||
else
|
||||
getAISContext()->Display (aGraphicShape, Standard_True);
|
||||
}
|
||||
|
||||
return aGraphicShape;
|
||||
}
|
||||
|
||||
Handle(AIS_Shape) OCCDemo_Presentation::drawShape
|
||||
(const TopoDS_Shape& theShape,
|
||||
const Graphic3d_NameOfMaterial theMaterial,
|
||||
const Standard_Boolean toDisplay)
|
||||
{
|
||||
Handle(AIS_Shape) aGraphicShape = new AIS_Shape(theShape);
|
||||
|
||||
getAISContext()->SetMaterial(aGraphicShape, theMaterial, toDisplay);
|
||||
if (toDisplay) {
|
||||
if (FitMode){
|
||||
getAISContext()->Display (aGraphicShape, Standard_False);
|
||||
CViewer3dDoc::Fit();
|
||||
}
|
||||
else
|
||||
getAISContext()->Display (aGraphicShape, Standard_True);
|
||||
}
|
||||
|
||||
return aGraphicShape;
|
||||
}
|
||||
|
||||
void OCCDemo_Presentation::GetViewAt (Standard_Real& theX, Standard_Real& theY, Standard_Real& theZ)
|
||||
{
|
||||
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
|
||||
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
|
||||
CViewer3dView *pView = (CViewer3dView *) pChild->GetActiveView();
|
||||
pView->GetViewAt (theX, theY, theZ);
|
||||
}
|
||||
|
||||
void OCCDemo_Presentation::SetViewAt (const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ)
|
||||
{
|
||||
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
|
||||
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
|
||||
CViewer3dView *pView = (CViewer3dView *) pChild->GetActiveView();
|
||||
pView->SetViewAt (theX, theY, theZ);
|
||||
}
|
||||
|
||||
void OCCDemo_Presentation::GetViewEye(Standard_Real& X, Standard_Real& Y, Standard_Real& Z)
|
||||
{
|
||||
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
|
||||
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
|
||||
CViewer3dView *pView = (CViewer3dView *) pChild->GetActiveView();
|
||||
pView->GetViewEye(X,Y,Z);
|
||||
}
|
||||
|
||||
void OCCDemo_Presentation::SetViewEye(Standard_Real X, Standard_Real Y, Standard_Real Z)
|
||||
{
|
||||
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
|
||||
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
|
||||
CViewer3dView *pView = (CViewer3dView *) pChild->GetActiveView();
|
||||
pView->SetViewEye(X,Y,Z);
|
||||
}
|
||||
|
||||
Standard_Real OCCDemo_Presentation::GetViewScale()
|
||||
{
|
||||
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
|
||||
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
|
||||
CViewer3dView *pView = (CViewer3dView *) pChild->GetActiveView();
|
||||
return pView->GetViewScale();
|
||||
}
|
||||
|
||||
void OCCDemo_Presentation::SetViewScale(Standard_Real Coef)
|
||||
{
|
||||
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
|
||||
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
|
||||
CViewer3dView *pView = (CViewer3dView *) pChild->GetActiveView();
|
||||
pView->SetViewScale(Coef);
|
||||
}
|
||||
|
||||
void OCCDemo_Presentation::ResetView()
|
||||
{
|
||||
CMDIFrameWnd *pFrame = (CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
|
||||
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
|
||||
CViewer3dView *pView = (CViewer3dView *) pChild->GetActiveView();
|
||||
pView->Reset();
|
||||
}
|
||||
|
||||
Handle(AIS_InteractiveContext) OCCDemo_Presentation::getAISContext() const
|
||||
{
|
||||
return myDoc->GetAISContext();
|
||||
}
|
||||
|
||||
Handle(V3d_Viewer) OCCDemo_Presentation::getViewer() const
|
||||
{
|
||||
return myDoc->GetViewer();
|
||||
}
|
||||
|
||||
Standard_CString OCCDemo_Presentation::GetDataDir()
|
||||
{
|
||||
return myDoc->GetDataDir();
|
||||
}
|
@ -1,135 +0,0 @@
|
||||
// OCCDemo_Presentation.h: interface for the OCCDemo_Presentation class.
|
||||
// This is a base class for all presentations
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_OCCDEMO_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
|
||||
#define AFX_OCCDEMO_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
|
||||
#include "Viewer3dDoc.h"
|
||||
|
||||
#define WAIT_A_LITTLE WaitForInput(500)
|
||||
#define WAIT_A_SECOND WaitForInput(1000)
|
||||
|
||||
class CViewer3dDoc;
|
||||
#include <AIS_InteractiveObject.hxx>
|
||||
#include <AIS_Point.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Geom_Curve.hxx>
|
||||
#include <Geom2d_Curve.hxx>
|
||||
class Quantity_Color;
|
||||
|
||||
class OCCDemo_Presentation
|
||||
{
|
||||
public:
|
||||
// Construction
|
||||
OCCDemo_Presentation() : myIndex(0), myNbSamples(0), FitMode(false){}
|
||||
virtual ~OCCDemo_Presentation() {}
|
||||
|
||||
public:
|
||||
static OCCDemo_Presentation* Current;
|
||||
// this pointer must be initialized when realize a derivable class;
|
||||
// it is used by application to access to a presentation class instance
|
||||
|
||||
void SetDocument (CViewer3dDoc* theDoc) {myDoc = theDoc;}
|
||||
// document must be set by the user of this class before first use of iterations
|
||||
|
||||
public:
|
||||
// Titling
|
||||
const CString& GetName() const {return myName;}
|
||||
|
||||
public:
|
||||
// Iteration on samples
|
||||
void FirstSample() {myIndex=0;}
|
||||
void LastSample() {myIndex=myNbSamples-1;}
|
||||
Standard_Boolean AtFirstSample() const {return myIndex <= 0;}
|
||||
Standard_Boolean AtLastSample() const {return myIndex >= myNbSamples-1;}
|
||||
void NextSample() {myIndex++;}
|
||||
void PrevSample() {myIndex--;}
|
||||
virtual void DoSample() = 0;
|
||||
static void GetViewAt (Standard_Real& theX, Standard_Real& theY, Standard_Real& theZ);
|
||||
static void SetViewAt (const Standard_Real theX, const Standard_Real theY, const Standard_Real theZ);
|
||||
static void GetViewEye (Standard_Real& X, Standard_Real& Y, Standard_Real& Z);
|
||||
static void SetViewEye (Standard_Real X, Standard_Real Y, Standard_Real Z);
|
||||
static Standard_Real GetViewScale();
|
||||
static void SetViewScale(Standard_Real Coef);
|
||||
static void ResetView();
|
||||
CViewer3dDoc* getDocument() { return myDoc; }
|
||||
|
||||
|
||||
// place one-time initialization code in this function
|
||||
virtual void Init() {}
|
||||
|
||||
protected:
|
||||
// Methods to call from a derivable class
|
||||
void setName (const char* theName) {myName = CString(theName);}
|
||||
Handle(AIS_InteractiveContext) getAISContext() const;
|
||||
Handle(V3d_Viewer) getViewer() const;
|
||||
// void setResultTitle (const char* theTitle) {myDoc->GetResultDialog()->SetTitle(theTitle);}
|
||||
// void setResultText (const char* theText) {myDoc->GetResultDialog()->SetText(theText);}
|
||||
Standard_CString GetDataDir();
|
||||
|
||||
Standard_Boolean WaitForInput (unsigned long aMilliSeconds);
|
||||
// Waits for a user input or a period of time has been elapsed
|
||||
|
||||
Handle(AIS_InteractiveObject) drawSurface (const Handle(Geom_Surface)& theSurface,
|
||||
const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_LEMONCHIFFON3),
|
||||
const Standard_Boolean toDisplay = Standard_True);
|
||||
// creates a finite face based on the given geometric surface
|
||||
// and displays it in the viewer if toDisplay = Standard_True
|
||||
|
||||
Handle(AIS_InteractiveObject) drawCurve (const Handle(Geom_Curve)& theCurve,
|
||||
const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_RED),
|
||||
const Standard_Boolean toDisplay = Standard_True);
|
||||
// creates an ISession_Curve based on the given geometric curve
|
||||
// and displays it in the viewer if toDisplay = Standard_True
|
||||
|
||||
Handle(AIS_InteractiveObject) drawCurve (const Handle(Geom2d_Curve)& theCurve,
|
||||
const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_RED),
|
||||
const Standard_Boolean toDisplay = Standard_True,
|
||||
const gp_Ax2& aPosition = gp::XOY());
|
||||
// converts a given curve to 3d using aPosition and calls the previous method
|
||||
|
||||
Handle(AIS_Point) drawPoint (const gp_Pnt& thePnt,
|
||||
const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_GREEN),
|
||||
const Standard_Boolean toDisplay = Standard_True);
|
||||
// creates a presentation of the given point
|
||||
// and displays it in the viewer if toDisplay = Standard_True
|
||||
|
||||
Handle(AIS_InteractiveObject) drawVector (const gp_Pnt& thePnt,
|
||||
const gp_Vec& theVec,
|
||||
const Quantity_Color& theColor = Quantity_Color(Quantity_NOC_YELLOW),
|
||||
const Standard_Boolean toDisplay = Standard_True);
|
||||
// creates a presentation of the given vector
|
||||
// and displays it in the viewer if toDisplay = Standard_True
|
||||
|
||||
Handle(AIS_Shape) drawShape (const TopoDS_Shape& theShape,
|
||||
const Quantity_Color& theColor,
|
||||
const Standard_Boolean toDisplay = Standard_True);
|
||||
// creates a presentation of the given shape
|
||||
// with material PLASTIC and a given color
|
||||
// and displays it in the viewer if toDisplay = Standard_True
|
||||
|
||||
Handle(AIS_Shape) drawShape (const TopoDS_Shape& theShape,
|
||||
const Graphic3d_NameOfMaterial theMaterial = Graphic3d_NameOfMaterial_Brass,
|
||||
const Standard_Boolean toDisplay = Standard_True);
|
||||
// creates a presentation of the given shape with the given material
|
||||
// (color is default for a given material)
|
||||
// and displays it in the viewer if toDisplay = Standard_True
|
||||
|
||||
protected:
|
||||
// Fields to use in a derivable class
|
||||
BOOL FitMode;
|
||||
int myIndex;
|
||||
int myNbSamples;
|
||||
|
||||
private:
|
||||
CViewer3dDoc* myDoc;
|
||||
CString myName;
|
||||
|
||||
};
|
||||
|
||||
#endif // !defined(AFX_OCCDEMO_PRESENTATION_H__790EED7F_7BA2_11D5_BA4A_0060B0EE18EA__INCLUDED_)
|
@ -1,314 +0,0 @@
|
||||
// OffsetDlg.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "..\res\resource.h"
|
||||
#include "offsetdlg.h"
|
||||
#include "Viewer3dView.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
#define FactorMinValue 0
|
||||
#define FactorMaxValue 20
|
||||
|
||||
#define UnitsMinValue 0
|
||||
#define UnitsMaxValue 20
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// COffsetDlg dialog
|
||||
|
||||
|
||||
COffsetDlg::COffsetDlg(CViewer3dDoc* theDoc, CWnd* pParent /*=NULL*/)
|
||||
: CDialog(COffsetDlg::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(COffsetDlg)
|
||||
m_Factor = 1.;
|
||||
m_Units = 0.;
|
||||
//}}AFX_DATA_INIT
|
||||
myDoc = theDoc;
|
||||
}
|
||||
|
||||
|
||||
void COffsetDlg::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(COffsetDlg)
|
||||
DDX_Control(pDX, IDC_SLIDER_OFFSETUNITS, m_UnitsSlidCtrl);
|
||||
DDX_Control(pDX, IDC_SLIDER_OFFSETFACTOR, m_FactorSlidCtrl);
|
||||
DDX_Text(pDX, IDC_EDIT_OFFSETFACTOR, m_Factor);
|
||||
DDV_MinMaxDouble(pDX, m_Factor, FactorMinValue, FactorMaxValue);
|
||||
DDX_Text(pDX, IDC_EDIT_OFFSETUNITS, m_Units);
|
||||
DDV_MinMaxDouble(pDX, m_Units, UnitsMinValue, UnitsMaxValue);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(COffsetDlg, CDialog)
|
||||
//{{AFX_MSG_MAP(COffsetDlg)
|
||||
ON_WM_HSCROLL()
|
||||
ON_EN_CHANGE(IDC_EDIT_OFFSETFACTOR, OnChangeEditOffsetFactor)
|
||||
ON_EN_CHANGE(IDC_EDIT_OFFSETUNITS, OnChangeEditOffsetUnits)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// COffsetDlg message handlers
|
||||
|
||||
BOOL COffsetDlg::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
// Initializing the ComboBox
|
||||
SetOffsets(m_Factor,m_Units);
|
||||
|
||||
// Setting the m_FactorSlidCtrl position at floor(m_Factor) value (because slider position is an integer)
|
||||
m_FactorSlidCtrl.SetRange(FactorMinValue, FactorMaxValue, TRUE);
|
||||
m_FactorSlidCtrl.SetPos( (int) floor(m_Factor));
|
||||
|
||||
// Setting the m_UnitsSlidCtrl position at floor(m_Units) value (because slider position is an integer)
|
||||
m_UnitsSlidCtrl.SetRange(UnitsMinValue, UnitsMaxValue, TRUE);
|
||||
m_UnitsSlidCtrl.SetPos( (int) floor(m_Units));
|
||||
|
||||
UpdateData(FALSE);
|
||||
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
|
||||
void COffsetDlg::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
|
||||
{
|
||||
|
||||
// Setting the m_Factor value at m_FactorSlidCtrl position
|
||||
m_Factor = m_FactorSlidCtrl.GetPos();
|
||||
// Setting the m_Units value at m_UnitsSlidCtrl position
|
||||
m_Units = m_UnitsSlidCtrl.GetPos();
|
||||
|
||||
UpdateData(FALSE);
|
||||
|
||||
|
||||
SetOffsets(m_Factor,m_Units);
|
||||
|
||||
CDialog::OnHScroll(nSBCode, nPos, pScrollBar);
|
||||
}
|
||||
|
||||
void COffsetDlg::OnChangeEditOffsetFactor()
|
||||
{
|
||||
UpdateData();
|
||||
|
||||
m_FactorSlidCtrl.SetPos(int(m_Units));
|
||||
|
||||
SetOffsets(m_Factor,m_Units);
|
||||
}
|
||||
|
||||
void COffsetDlg::OnChangeEditOffsetUnits()
|
||||
{
|
||||
UpdateData();
|
||||
|
||||
m_UnitsSlidCtrl.SetPos(int(m_Units));
|
||||
|
||||
SetOffsets(m_Factor,m_Units);
|
||||
}
|
||||
|
||||
void COffsetDlg::SetOffsets(Standard_Real theFactor, Standard_Real theUnits)
|
||||
{
|
||||
Handle(AIS_InteractiveContext) aAISContext = myDoc->GetAISContext();
|
||||
|
||||
Handle(AIS_Shape) aOverlappedBox = myDoc->GetOverlappedBox();
|
||||
Handle(AIS_Shape) aOverlappedCylinder = myDoc->GetOverlappedCylinder();
|
||||
Handle(AIS_Shape) aOverlappedSphere = myDoc->GetOverlappedSphere();
|
||||
Handle(AIS_Shape) aBox = myDoc->GetBox();
|
||||
Handle(User_Cylinder) aCylinder = myDoc->GetCylinder();
|
||||
Handle(AIS_Shape) aSphere = myDoc->GetSphere();
|
||||
|
||||
|
||||
myDoc->SetDialogTitle("Set offsets");
|
||||
|
||||
TCollection_AsciiString Message;
|
||||
|
||||
Standard_Boolean OneOrMoreCurrentIsDisplayed=false;
|
||||
Standard_ShortReal aFactor = (Standard_ShortReal)theFactor;
|
||||
Standard_ShortReal aUnits = (Standard_ShortReal)theUnits;
|
||||
|
||||
for (aAISContext->InitSelected(); aAISContext->MoreSelected(); aAISContext->NextSelected())
|
||||
if (aAISContext->IsDisplayed(aAISContext->SelectedInteractive())) OneOrMoreCurrentIsDisplayed=true;
|
||||
|
||||
if(OneOrMoreCurrentIsDisplayed){
|
||||
// A small trick to avoid compiler error (C2668).
|
||||
const Handle(AIS_InteractiveObject)& anIOOverlappedBox = aOverlappedBox;
|
||||
const Handle(AIS_InteractiveObject)& anIOBox = aBox;
|
||||
if((aAISContext->IsSelected(anIOOverlappedBox) || aAISContext->IsSelected(anIOBox))
|
||||
&& aAISContext->IsDisplayed(aOverlappedBox)){
|
||||
aOverlappedBox->SetPolygonOffsets(Aspect_POM_Fill,aFactor,aUnits);
|
||||
Message = "Box2 -> SetPolygonOffsets(Aspect_POM_Fill, Factor, Units);\n";
|
||||
//myDoc -> AddTextInDialog(Message);
|
||||
}
|
||||
|
||||
// A small trick to avoid compiler error (C2668).
|
||||
const Handle(AIS_InteractiveObject)& anIOOverlappedCylinder = aOverlappedCylinder;
|
||||
const Handle(AIS_InteractiveObject)& anIOCylinder = aCylinder;
|
||||
if((aAISContext->IsSelected(anIOOverlappedCylinder) || aAISContext->IsSelected(anIOCylinder))
|
||||
&& aAISContext->IsDisplayed(aOverlappedCylinder)){
|
||||
aOverlappedCylinder->SetPolygonOffsets(Aspect_POM_Fill,aFactor,aUnits);
|
||||
Message = Message + "Cylinder2 -> SetPolygonOffsets(Aspect_POM_Fill, Factor, Units);\n";
|
||||
//myDoc -> AddTextInDialog(Message);
|
||||
}
|
||||
|
||||
// A small trick to avoid compiler error (C2668).
|
||||
const Handle(AIS_InteractiveObject)& anIOOverlappedSphere = aOverlappedSphere;
|
||||
const Handle(AIS_InteractiveObject)& anIOSphere = aSphere;
|
||||
if((aAISContext->IsSelected(anIOOverlappedSphere) || aAISContext->IsSelected(anIOSphere))
|
||||
&& aAISContext->IsDisplayed(aOverlappedSphere)){
|
||||
aOverlappedSphere->SetPolygonOffsets(Aspect_POM_Fill,aFactor,aUnits);
|
||||
Message = Message + "Sphere2 -> SetPolygonOffsets(Aspect_POM_Fill, Factor, Units);\n";
|
||||
//myDoc -> AddTextInDialog(Message);
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(aAISContext->IsDisplayed(aOverlappedBox)){
|
||||
aOverlappedBox->SetPolygonOffsets(Aspect_POM_Fill,aFactor,aUnits);
|
||||
Message = Message + "Box2 -> SetPolygonOffsets(Aspect_POM_Fill, Factor, Units);\n";
|
||||
//myDoc -> AddTextInDialog(Message);
|
||||
}
|
||||
|
||||
if(aAISContext->IsDisplayed(aOverlappedCylinder)){
|
||||
aOverlappedCylinder->SetPolygonOffsets(Aspect_POM_Fill,aFactor,aUnits);
|
||||
Message = Message + "Cylinder2 -> SetPolygonOffsets(Aspect_POM_Fill, Factor, Units);\n";
|
||||
//myDoc -> AddTextInDialog(Message);
|
||||
}
|
||||
|
||||
if(aAISContext->IsDisplayed(aOverlappedSphere)){
|
||||
aOverlappedSphere->SetPolygonOffsets(Aspect_POM_Fill,aFactor,aUnits);
|
||||
Message = Message + "Sphere2 -> SetPolygonOffsets(Aspect_POM_Fill, Factor, Units);\n";
|
||||
//myDoc -> AddTextInDialog(Message);
|
||||
}
|
||||
}
|
||||
|
||||
CString aTextInDialog = myDoc -> GetDialogText();
|
||||
if (aTextInDialog != Message.ToCString())
|
||||
myDoc -> UpdateResultMessageDlg("Set offsets", Message);
|
||||
aAISContext->UpdateCurrentViewer();
|
||||
}
|
||||
|
||||
void COffsetDlg::UpdateValues()
|
||||
{
|
||||
Standard_Integer aOffsetMode;
|
||||
Standard_ShortReal aBoxFactor = 0;
|
||||
Standard_ShortReal aCylFactor = 0;
|
||||
Standard_ShortReal aSphereFactor = 0;
|
||||
Standard_ShortReal aCylUnits = 0;
|
||||
Standard_ShortReal aSphereUnits = 0;
|
||||
Standard_ShortReal aBoxUnits = 0;
|
||||
|
||||
Handle(AIS_InteractiveContext) aAISContext = myDoc->GetAISContext();
|
||||
|
||||
Handle(AIS_Shape) aOverlappedBox = myDoc->GetOverlappedBox();
|
||||
Handle(AIS_Shape) aOverlappedCylinder = myDoc->GetOverlappedCylinder();
|
||||
Handle(AIS_Shape) aOverlappedSphere = myDoc->GetOverlappedSphere();
|
||||
Handle(AIS_Shape) aBox = myDoc->GetBox();
|
||||
Handle(User_Cylinder) aCylinder = myDoc->GetCylinder();
|
||||
Handle(AIS_Shape) aSphere = myDoc->GetSphere();
|
||||
|
||||
BOOL IsOverlappedCylinderDisplayed = aAISContext->IsDisplayed(aOverlappedCylinder);
|
||||
BOOL IsOverlappedSphereDisplayed = aAISContext->IsDisplayed(aOverlappedSphere);
|
||||
BOOL IsOverlappedBoxDisplayed = aAISContext->IsDisplayed(aOverlappedBox);
|
||||
|
||||
const Handle(AIS_InteractiveObject)& anIOOverlappedCylinder = aOverlappedCylinder;
|
||||
const Handle(AIS_InteractiveObject)& anIOOverlappedSphere = aOverlappedSphere;
|
||||
const Handle(AIS_InteractiveObject)& anIOOverlappedBox = aOverlappedBox;
|
||||
BOOL IsOverlappedCylinderCurrent = aAISContext->IsSelected(anIOOverlappedCylinder);
|
||||
BOOL IsOverlappedSphereCurrent = aAISContext->IsSelected(anIOOverlappedSphere);
|
||||
BOOL IsOverlappedBoxCurrent = aAISContext->IsSelected(anIOOverlappedBox);
|
||||
|
||||
|
||||
/*BOOL IsAnyOverlappedObjectCurrent =
|
||||
IsOverlappedCylinderCurrent || IsOverlappedSphereCurrent || IsOverlappedBoxCurrent;*/
|
||||
|
||||
const Handle(AIS_InteractiveObject)& anIOCylinder = aCylinder;
|
||||
const Handle(AIS_InteractiveObject)& anIOSphere = aSphere;
|
||||
const Handle(AIS_InteractiveObject)& anIOBox = aBox;
|
||||
BOOL IsCylinderCurrent = aAISContext->IsSelected(anIOCylinder);
|
||||
BOOL IsSphereCurrent = aAISContext->IsSelected(anIOSphere);
|
||||
BOOL IsBoxCurrent = aAISContext->IsSelected(anIOBox);
|
||||
|
||||
BOOL IsAnyObjectCurrent =
|
||||
IsOverlappedCylinderCurrent || IsOverlappedSphereCurrent || IsOverlappedBoxCurrent
|
||||
|| IsCylinderCurrent || IsSphereCurrent || IsBoxCurrent;
|
||||
|
||||
BOOL IsAnyOverlappedObjectDisplayed =
|
||||
IsOverlappedCylinderDisplayed || IsOverlappedSphereDisplayed || IsOverlappedBoxDisplayed;
|
||||
|
||||
Standard_Boolean OneOrMoreCurrentIsDisplayed=false;
|
||||
for (aAISContext->InitSelected();aAISContext->MoreSelected ();aAISContext->NextSelected ())
|
||||
if (aAISContext->IsDisplayed(aAISContext->SelectedInteractive())) OneOrMoreCurrentIsDisplayed=true;
|
||||
|
||||
if(OneOrMoreCurrentIsDisplayed){
|
||||
if(IsOverlappedBoxDisplayed && (IsBoxCurrent || IsOverlappedBoxCurrent)){
|
||||
aOverlappedBox->PolygonOffsets(aOffsetMode,aBoxFactor,aBoxUnits);
|
||||
}
|
||||
|
||||
if(IsOverlappedCylinderDisplayed && (IsCylinderCurrent || IsOverlappedCylinderCurrent)){
|
||||
aOverlappedCylinder->PolygonOffsets(aOffsetMode,aCylFactor,aCylUnits);
|
||||
}
|
||||
|
||||
if(IsOverlappedSphereDisplayed && (IsSphereCurrent || IsOverlappedSphereCurrent)){
|
||||
aOverlappedSphere->PolygonOffsets(aOffsetMode,aSphereFactor,aSphereUnits);
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
if(IsOverlappedBoxDisplayed){
|
||||
aOverlappedBox->PolygonOffsets(aOffsetMode,aBoxFactor,aBoxUnits);
|
||||
}
|
||||
|
||||
if(IsOverlappedCylinderDisplayed){
|
||||
aOverlappedCylinder->PolygonOffsets(aOffsetMode,aCylFactor,aCylUnits);
|
||||
}
|
||||
|
||||
if(IsOverlappedSphereDisplayed){
|
||||
aOverlappedSphere->PolygonOffsets(aOffsetMode,aSphereFactor,aSphereUnits);
|
||||
}
|
||||
}
|
||||
|
||||
Standard_Real Max = aBoxFactor;
|
||||
if (Max < aCylFactor) Max = aCylFactor;
|
||||
if (Max < aSphereFactor) Max = aSphereFactor;
|
||||
|
||||
m_Factor = Max;
|
||||
|
||||
Max = aBoxUnits;
|
||||
if (Max < aCylUnits) Max = aCylUnits;
|
||||
if (Max < aSphereUnits) Max = aSphereUnits;
|
||||
|
||||
m_Units = Max;
|
||||
|
||||
m_FactorSlidCtrl.SetPos( (int) floor(m_Factor));
|
||||
|
||||
|
||||
m_UnitsSlidCtrl.SetPos( (int) floor(m_Units));
|
||||
UpdateData(FALSE);
|
||||
|
||||
if( (IsOverlappedBoxCurrent || (IsBoxCurrent && IsOverlappedBoxDisplayed)) ||
|
||||
(IsOverlappedCylinderCurrent || (IsCylinderCurrent && IsOverlappedCylinderDisplayed)) ||
|
||||
(IsOverlappedSphereCurrent || (IsSphereCurrent && IsOverlappedSphereDisplayed)) ||
|
||||
(!IsAnyObjectCurrent && IsAnyOverlappedObjectDisplayed)
|
||||
)
|
||||
{
|
||||
m_FactorSlidCtrl.EnableWindow();
|
||||
m_UnitsSlidCtrl.EnableWindow();
|
||||
GetDlgItem(IDC_EDIT_OFFSETFACTOR)->EnableWindow();
|
||||
GetDlgItem(IDC_EDIT_OFFSETUNITS)->EnableWindow();
|
||||
}
|
||||
else{
|
||||
m_FactorSlidCtrl.EnableWindow(false);
|
||||
m_UnitsSlidCtrl.EnableWindow(false);
|
||||
GetDlgItem(IDC_EDIT_OFFSETFACTOR)->EnableWindow(false);
|
||||
GetDlgItem(IDC_EDIT_OFFSETUNITS)->EnableWindow(false);
|
||||
}
|
||||
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
#if !defined(AFX_OFFSETDLG_H__9E963234_B2CB_11D8_8CF3_00047571ABCA__INCLUDED_)
|
||||
#define AFX_OFFSETDLG_H__9E963234_B2CB_11D8_8CF3_00047571ABCA__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// offsetdlg.h : header file
|
||||
//
|
||||
|
||||
#include "Viewer3dDoc.h"
|
||||
|
||||
class CViewer3dDoc;
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// COffsetDlg dialog
|
||||
|
||||
class COffsetDlg : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
void UpdateValues();
|
||||
void SetOffsets(Standard_Real theFactor, Standard_Real theUnits);
|
||||
COffsetDlg( CViewer3dDoc* theDoc, CWnd* pParent = NULL);
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(COffsetDlg)
|
||||
enum { IDD = IDD_SETOFFSETS };
|
||||
CSliderCtrl m_UnitsSlidCtrl;
|
||||
CSliderCtrl m_FactorSlidCtrl;
|
||||
Standard_Real m_Factor;
|
||||
Standard_Real m_Units;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(COffsetDlg)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(COffsetDlg)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
|
||||
afx_msg void OnChangeEditOffsetFactor();
|
||||
afx_msg void OnChangeEditOffsetUnits();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
CViewer3dDoc* myDoc;
|
||||
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_OFFSETDLG_H__9E963234_B2CB_11D8_8CF3_00047571ABCA__INCLUDED_)
|
@ -1,188 +0,0 @@
|
||||
// ScaleDlg.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "ScaleDlg.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ScaleDlg dialog
|
||||
|
||||
|
||||
ScaleDlg::ScaleDlg(Handle(V3d_View) Current_V3d_View, CViewer3dView* pView, CWnd* pParent /*=NULL*/)
|
||||
: CDialog(ScaleDlg::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(ScaleDlg)
|
||||
myCurrent_V3d_View = Current_V3d_View;
|
||||
myView=pView;
|
||||
m_ScaleX = 0;
|
||||
m_ScaleY = 0;
|
||||
m_ScaleZ = 0;
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void ScaleDlg::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(ScaleDlg)
|
||||
DDX_Control(pDX, IDC_SLIDER_SCALEX, m_ScaleXSlidCtrl);
|
||||
DDX_Control(pDX, IDC_SLIDER_SCALEY, m_ScaleYSlidCtrl);
|
||||
DDX_Control(pDX, IDC_SLIDER_SCALEZ, m_ScaleZSlidCtrl);
|
||||
DDX_Text(pDX, IDC_EDIT_SCALEX, m_ScaleX);
|
||||
DDV_MinMaxInt(pDX, m_ScaleX, 1, 100);
|
||||
DDX_Text(pDX, IDC_EDIT_SCALEY, m_ScaleY);
|
||||
DDV_MinMaxInt(pDX, m_ScaleY, 1, 100);
|
||||
DDX_Text(pDX, IDC_EDIT_SCALEZ, m_ScaleZ);
|
||||
DDV_MinMaxInt(pDX, m_ScaleZ, 1, 100);
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(ScaleDlg, CDialog)
|
||||
//{{AFX_MSG_MAP(ScaleDlg)
|
||||
ON_EN_CHANGE(IDC_EDIT_SCALEX, OnChangeEditScaleX)
|
||||
ON_EN_CHANGE(IDC_EDIT_SCALEY, OnChangeEditScaleY)
|
||||
ON_EN_CHANGE(IDC_EDIT_SCALEZ, OnChangeEditScaleZ)
|
||||
ON_WM_HSCROLL()
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ScaleDlg message handlers
|
||||
BOOL ScaleDlg::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
int ScaleX = myView->scaleX;
|
||||
int ScaleY = myView->scaleY;
|
||||
int ScaleZ = myView->scaleZ;
|
||||
|
||||
m_ScaleX=ScaleX;
|
||||
m_ScaleXSlidCtrl.SetRange(0, 100, TRUE);
|
||||
m_ScaleXSlidCtrl.SetPos( ScaleX );
|
||||
|
||||
m_ScaleY=ScaleY;
|
||||
m_ScaleYSlidCtrl.SetRange(0, 100, TRUE);
|
||||
m_ScaleYSlidCtrl.SetPos( ScaleY );
|
||||
|
||||
m_ScaleZ=ScaleZ;
|
||||
m_ScaleZSlidCtrl.SetRange(0, 100, TRUE);
|
||||
m_ScaleZSlidCtrl.SetPos( ScaleZ );
|
||||
|
||||
UpdateData(FALSE);
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
|
||||
void ScaleDlg::OnChangeEditScaleX()
|
||||
{
|
||||
UpdateData(TRUE);
|
||||
|
||||
m_ScaleXSlidCtrl.SetPos( m_ScaleX );
|
||||
myView->scaleX = m_ScaleX;
|
||||
|
||||
myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ );
|
||||
myCurrent_V3d_View->Update();
|
||||
|
||||
TCollection_AsciiString Message("\
|
||||
myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ);\n\
|
||||
\n\
|
||||
myCurrent_V3d_View->Update();\n\
|
||||
");
|
||||
|
||||
// Update The Result Message Dialog
|
||||
myView->GetDocument()->UpdateResultMessageDlg("SetAxialScale",Message);
|
||||
}
|
||||
|
||||
void ScaleDlg::OnChangeEditScaleY()
|
||||
{
|
||||
UpdateData(TRUE);
|
||||
|
||||
m_ScaleYSlidCtrl.SetPos( m_ScaleY );
|
||||
myView->scaleY = m_ScaleY;
|
||||
|
||||
myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ );
|
||||
myCurrent_V3d_View->Update();
|
||||
|
||||
TCollection_AsciiString Message("\
|
||||
myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ);\n\
|
||||
\n\
|
||||
myCurrent_V3d_View->Update();\n\
|
||||
");
|
||||
|
||||
// Update The Result Message Dialog
|
||||
myView->GetDocument()->UpdateResultMessageDlg("SetAxialScale",Message);
|
||||
}
|
||||
|
||||
void ScaleDlg::OnChangeEditScaleZ()
|
||||
{
|
||||
UpdateData(TRUE);
|
||||
|
||||
m_ScaleZSlidCtrl.SetPos( m_ScaleZ );
|
||||
myView->scaleZ = m_ScaleZ;
|
||||
|
||||
myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ );
|
||||
myCurrent_V3d_View->Update();
|
||||
|
||||
TCollection_AsciiString Message("\
|
||||
myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ);\n\
|
||||
\n\
|
||||
myCurrent_V3d_View->Update();\n\
|
||||
");
|
||||
|
||||
// Update The Result Message Dialog
|
||||
myView->GetDocument()->UpdateResultMessageDlg("SetAxialScale",Message);
|
||||
}
|
||||
|
||||
void ScaleDlg::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
|
||||
{
|
||||
m_ScaleX = m_ScaleXSlidCtrl.GetPos();
|
||||
m_ScaleY = m_ScaleYSlidCtrl.GetPos();
|
||||
m_ScaleZ = m_ScaleZSlidCtrl.GetPos();
|
||||
|
||||
if(m_ScaleX<=0)
|
||||
{
|
||||
m_ScaleX=1;
|
||||
m_ScaleXSlidCtrl.SetPos( 1 );
|
||||
}
|
||||
|
||||
if(m_ScaleY<=0)
|
||||
{
|
||||
m_ScaleY=1;
|
||||
m_ScaleYSlidCtrl.SetPos( 1 );
|
||||
}
|
||||
|
||||
if(m_ScaleZ<=0)
|
||||
{
|
||||
m_ScaleZ=1;
|
||||
m_ScaleZSlidCtrl.SetPos( 1 );
|
||||
}
|
||||
|
||||
UpdateData(FALSE);
|
||||
|
||||
myView->scaleX = m_ScaleX;
|
||||
myView->scaleY = m_ScaleY;
|
||||
myView->scaleZ = m_ScaleZ;
|
||||
|
||||
myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ );
|
||||
myCurrent_V3d_View->Update();
|
||||
|
||||
TCollection_AsciiString Message("\
|
||||
myCurrent_V3d_View->SetAxialScale( m_ScaleX, m_ScaleY, m_ScaleZ);\n\
|
||||
\n\
|
||||
myCurrent_V3d_View->Update();\n\
|
||||
");
|
||||
|
||||
// Update The Result Message Dialog
|
||||
myView->GetDocument()->UpdateResultMessageDlg("SetAxialScale",Message);
|
||||
|
||||
CDialog::OnHScroll(nSBCode, nPos, pScrollBar);
|
||||
}
|
||||
|
@ -1,63 +0,0 @@
|
||||
#if !defined(AFX_ScaleDlg_H__1796AA04_63B7_4E46_B00A_D2DAC975CAF1__INCLUDED_)
|
||||
#define AFX_ScaleDlg_H__1796AA04_63B7_4E46_B00A_D2DAC975CAF1__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
// ScaleDlg.h : header file
|
||||
//
|
||||
|
||||
#include "..\res\resource.h"
|
||||
#include "Viewer3dView.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// ScaleDlg dialog
|
||||
|
||||
class ScaleDlg : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
ScaleDlg(Handle(V3d_View) Current_V3d_View, CViewer3dView* pView, CWnd* pParent = NULL);
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(ScaleDlg)
|
||||
enum { IDD = IDD_SCALE };
|
||||
CSliderCtrl m_ScaleXSlidCtrl;
|
||||
CSliderCtrl m_ScaleYSlidCtrl;
|
||||
CSliderCtrl m_ScaleZSlidCtrl;
|
||||
int m_ScaleX;
|
||||
int m_ScaleY;
|
||||
int m_ScaleZ;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(ScaleDlg)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(ScaleDlg)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnChangeEditScaleX();
|
||||
afx_msg void OnChangeEditScaleY();
|
||||
afx_msg void OnChangeEditScaleZ();
|
||||
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
private:
|
||||
|
||||
Handle(V3d_View) myCurrent_V3d_View;
|
||||
CViewer3dView* myView;
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_ScaleDlg_H__1796AA04_63B7_4E46_B00A_D2DAC975CAF1__INCLUDED_)
|