mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
35
samples/qt/Tutorial/Run.bat
Executable file
35
samples/qt/Tutorial/Run.bat
Executable file
@@ -0,0 +1,35 @@
|
||||
@ECHO OFF
|
||||
|
||||
call "%~dp0env.bat"
|
||||
|
||||
IF NOT EXIST win32\obj goto QTSET
|
||||
|
||||
IF NOT EXIST "%QTDIR%" goto QTSET
|
||||
|
||||
goto QT
|
||||
|
||||
:QTSET
|
||||
|
||||
SET QTDIR=%ROOT%\3rdparty\win32\qt
|
||||
SET PATH=%QTDIR%;%PATH%
|
||||
|
||||
:QT
|
||||
|
||||
if not exist "%BIN_DIR%\Tutorial.exe" goto ERR_EXE
|
||||
|
||||
echo %QTDIR%
|
||||
echo Starting IESample .....
|
||||
start /D "%BIN_DIR%" Tutorial.exe
|
||||
|
||||
|
||||
|
||||
GOTO END
|
||||
|
||||
:ERR_EXE
|
||||
ECHO Executable %BIN_DIR%\Tutorial.exe not found."
|
||||
ECHO Probably you didn't compile the application.
|
||||
pause
|
||||
GOTO END
|
||||
|
||||
:END
|
||||
|
22
samples/qt/Tutorial/Run_MSVC.bat
Executable file
22
samples/qt/Tutorial/Run_MSVC.bat
Executable file
@@ -0,0 +1,22 @@
|
||||
@echo off
|
||||
rem Launch MS VC with environment prepared for building OCCT qt tutorial
|
||||
|
||||
rem Set build environment
|
||||
|
||||
call %~dp0env.bat
|
||||
|
||||
call %~dp0..\..\..\ros\env_build.bat vc8 win32
|
||||
|
||||
rem Define path to project file
|
||||
set PRJFILE=%~dp0Tutorial.sln
|
||||
|
||||
rem Launch Visual Studio - either professional (devenv) or Express, as available
|
||||
if exist %DevEnvDir%\devenv.exe (
|
||||
start %DevEnvDir%\devenv.exe %PRJFILE% /useenv
|
||||
) else if exist %DevEnvDir%\VCExpress.exe (
|
||||
start %DevEnvDir%\VCExpress.exe %PRJFILE% /useenv
|
||||
) else (
|
||||
echo Error: Could not find MS Visual Studio ^(%VCVER%^)
|
||||
echo Check relevant environment variable ^(e.g. VS80COMNTOOLS for vc8^)
|
||||
)
|
||||
|
64
samples/qt/Tutorial/Tutorial.pro
Executable file
64
samples/qt/Tutorial/Tutorial.pro
Executable file
@@ -0,0 +1,64 @@
|
||||
TEMPLATE = app
|
||||
CONFIG += debug_and_release qt
|
||||
|
||||
TARGET = Tutorial
|
||||
|
||||
HEADERS = src/*.h
|
||||
SOURCES = src/*.cxx
|
||||
|
||||
INCLUDEPATH = $(CASROOT) $(CASROOT)/inc $(CASROOT)/src/WOKTclLib $(QTDIR)/include/QtCore \
|
||||
$(QTDIR)/include/QtGui $(QTDIR)/include
|
||||
|
||||
TS_FILES += ./src/Common-icon.ts \
|
||||
./src/Common-string.ts \
|
||||
./src/Tutorial-icon.ts \
|
||||
./src/Tutorial-string.ts
|
||||
|
||||
DEFINES = CSFDB
|
||||
|
||||
unix {
|
||||
CONFIG(debug, debug|release) {
|
||||
DESTDIR = ./Linux/bind
|
||||
OBJECTS_DIR = ./Linux/objd
|
||||
MOC_DIR = ./Linux/srcd
|
||||
} else {
|
||||
DESTDIR = ./Linux/bin
|
||||
OBJECTS_DIR = ./Linux/obj
|
||||
MOC_DIR = ./Linux/src
|
||||
}
|
||||
INCLUDEPATH += $$QMAKE_INCDIR_X11 $$QMAKE_INCDIR_OPENGL $$QMAKE_INCDIR_THREAD
|
||||
DEFINES += LIN LININTEL OCC_CONVERT_SIGNALS HAVE_CONFIG_H HAVE_WOK_CONFIG_H
|
||||
LIBS = -L$(CASROOT)/Linux/lib -L$$QMAKE_LIBDIR_X11 $$QMAKE_LIBS_X11 -L$$QMAKE_LIBDIR_OPENGL $$QMAKE_LIBS_OPENGL $$QMAKE_LIBS_THREAD
|
||||
}
|
||||
|
||||
win32 {
|
||||
CONFIG(debug, debug|release) {
|
||||
DEFINES += _DEBUG
|
||||
DESTDIR = ./win32/bind
|
||||
OBJECTS_DIR = ./win32/objd
|
||||
MOC_DIR = ./win32/srcd
|
||||
LIBS = -L$(CASROOT)/win32/libd
|
||||
} else {
|
||||
DEFINES += NDEBUG
|
||||
DESTDIR = ./win32/bin
|
||||
OBJECTS_DIR = ./win32/obj
|
||||
MOC_DIR = ./win32/src
|
||||
LIBS = -L$(CASROOT)/win32/lib
|
||||
}
|
||||
DEFINES +=WNT WIN32 NO_COMMONSAMPLE_EXPORTS NO_IESAMPLE_EXPORTS
|
||||
}
|
||||
|
||||
LIBS += -lTKernel -lPTKernel -lTKMath -lTKService -lTKV3d -lTKV2d \
|
||||
-lTKBRep -lTKIGES -lTKSTL -lTKVRML -lTKSTEP -lTKSTEPAttr -lTKSTEP209 \
|
||||
-lTKSTEPBase -lTKShapeSchema -lTKGeomBase -lTKGeomAlgo -lTKG3d -lTKG2d \
|
||||
-lTKXSBase -lTKPShape -lTKShHealing -lTKHLR -lTKTopAlgo -lTKMesh -lTKPrim \
|
||||
-lTKCDF -lTKBool -lTKBO -lTKFillet -lTKOffset \
|
||||
-L$(QTDIR)/lib -lQtCore -lQtGui
|
||||
|
||||
lrelease.name = LRELASE ${QMAKE_FILE_IN}
|
||||
lrelease.commands = $(QTDIR)/bin/lrelease ${QMAKE_FILE_IN} -qm ./res/${QMAKE_FILE_BASE}.qm
|
||||
lrelease.output = ./res/${QMAKE_FILE_BASE}.qm
|
||||
lrelease.input = TS_FILES
|
||||
lrelease.clean = ./res/${QMAKE_FILE_BASE}.qm
|
||||
lrelease.CONFIG += no_link target_predeps
|
||||
QMAKE_EXTRA_COMPILERS += lrelease
|
20
samples/qt/Tutorial/Tutorial.sln
Executable file
20
samples/qt/Tutorial/Tutorial.sln
Executable file
@@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Tutorial", "Tutorial.vcproj", "{59DEDC8A-A5ED-31E8-8F2B-8D996E3A41D6}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Win32 = Debug|Win32
|
||||
Release|Win32 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{59DEDC8A-A5ED-31E8-8F2B-8D996E3A41D6}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||
{59DEDC8A-A5ED-31E8-8F2B-8D996E3A41D6}.Debug|Win32.Build.0 = Debug|Win32
|
||||
{59DEDC8A-A5ED-31E8-8F2B-8D996E3A41D6}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{59DEDC8A-A5ED-31E8-8F2B-8D996E3A41D6}.Release|Win32.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
541
samples/qt/Tutorial/Tutorial.vcproj
Executable file
541
samples/qt/Tutorial/Tutorial.vcproj
Executable file
@@ -0,0 +1,541 @@
|
||||
<?xml version="1.0" encoding = "Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8,00"
|
||||
Name="Tutorial"
|
||||
ProjectGUID="{59DEDC8A-A5ED-31E8-8F2B-8D996E3A41D6}"
|
||||
Keyword="Qt4VSv1.0">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="."
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
ConfigurationType="1"
|
||||
IntermediateDirectory="win32\obj\"
|
||||
UseOfMfc="0">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories=""..\..\..\QT\qt462-vc8\include\QtCore","..\..\..\QT\qt462-vc8\include\QtGui","..\..\..\QT\qt462-vc8\include","$(CASROOT)","$(CASROOT)\inc","$(CASROOT)\src\WOKTclLib","$(QTDIR)\include\QtCore","$(QTDIR)\include\QtGui","$(QTDIR)\include","..\..\..\QT\qt462-vc8\include\ActiveQt","win32\src",..\..\..\QT\qt462-vc8\mkspecs\default"
|
||||
AdditionalOptions="-Zm200 -w34100 -w34189 -w34100 -w34189"
|
||||
AssemblerListingLocation="win32\obj\"
|
||||
BufferSecurityCheck="false"
|
||||
DebugInformationFormat="0"
|
||||
ExceptionHandling="1"
|
||||
GeneratePreprocessedFile="0"
|
||||
ObjectFile="win32\obj\"
|
||||
Optimization ="2"
|
||||
PreprocessorDefinitions="QT_NO_DEBUG,NDEBUG,_WINDOWS,CSFDB,NDEBUG,WNT,WIN32,NO_COMMONSAMPLE_EXPORTS,NO_IESAMPLE_EXPORTS,QT_DLL,QT_NO_DEBUG,QT_GUI_LIB,QT_CORE_LIB,QT_THREAD_SUPPORT,NDEBUG"
|
||||
ProgramDataBaseFileName=".\"
|
||||
RuntimeLibrary="2"
|
||||
RuntimeTypeInfo="true"
|
||||
SuppressStartupBanner="true"
|
||||
TreatWChar_tAsBuiltInType="false"
|
||||
WarningLevel="3"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="w:\QT\qt462-vc8\lib\qtmain.lib TKernel.lib PTKernel.lib TKMath.lib TKService.lib TKV3d.lib TKV2d.lib TKBRep.lib TKIGES.lib TKSTL.lib TKVRML.lib TKSTEP.lib TKSTEPAttr.lib TKSTEP209.lib TKSTEPBase.lib TKShapeSchema.lib TKGeomBase.lib TKGeomAlgo.lib TKG3d.lib TKG2d.lib TKXSBase.lib TKPShape.lib TKShHealing.lib TKHLR.lib TKTopAlgo.lib TKMesh.lib TKPrim.lib TKCDF.lib TKBool.lib TKBO.lib TKFillet.lib TKOffset.lib w:\QT\qt462-vc8\lib\QtCore4.lib w:\QT\qt462-vc8\lib\QtGui4.lib w:\QT\qt462-vc8\lib\QtGui4.lib w:\QT\qt462-vc8\lib\QtCore4.lib"
|
||||
AdditionalLibraryDirectories="w:\QT\qt462-vc8\lib,$(CASROOT)/win32/vc8/lib,$(QTDIR)/lib"
|
||||
AdditionalOptions=""/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'""
|
||||
GenerateDebugInformation="false"
|
||||
IgnoreImportLibrary="true"
|
||||
LinkIncremental="1"
|
||||
LinkTimeCodeGeneration="0"
|
||||
OutputFile="win32\bin\Tutorial.exe"
|
||||
ProgramDatabaseFile=""
|
||||
SubSystem="2"
|
||||
SuppressStartupBanner="true"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
DefaultCharType="0"
|
||||
EnableErrorChecks="1"
|
||||
WarningLevel="0"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="QT_NO_DEBUG,NDEBUG,_WINDOWS,CSFDB,NDEBUG,WNT,WIN32,NO_COMMONSAMPLE_EXPORTS,NO_IESAMPLE_EXPORTS,QT_DLL,QT_NO_DEBUG,QT_GUI_LIB,QT_CORE_LIB,QT_THREAD_SUPPORT"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="."
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
ConfigurationType="1"
|
||||
IntermediateDirectory="win32\objd\"
|
||||
UseOfMfc="0">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories=""..\..\..\QT\qt462-vc8\include\QtCore","..\..\..\QT\qt462-vc8\include\QtGui","..\..\..\QT\qt462-vc8\include","$(CASROOT)","$(CASROOT)\inc","$(CASROOT)\src\WOKTclLib","$(QTDIR)\include\QtCore","$(QTDIR)\include\QtGui","$(QTDIR)\include","..\..\..\QT\qt462-vc8\include\ActiveQt","win32\srcd",..\..\..\QT\qt462-vc8\mkspecs\default"
|
||||
AdditionalOptions="-Zm200 -w34100 -w34189 -w34100 -w34189"
|
||||
AssemblerListingLocation="win32\objd\"
|
||||
BufferSecurityCheck="false"
|
||||
DebugInformationFormat="3"
|
||||
ExceptionHandling="1"
|
||||
GeneratePreprocessedFile="0"
|
||||
ObjectFile="win32\objd\"
|
||||
Optimization ="4"
|
||||
PreprocessorDefinitions="_WINDOWS,CSFDB,_DEBUG,WNT,WIN32,NO_COMMONSAMPLE_EXPORTS,NO_IESAMPLE_EXPORTS,QT_DLL,QT_GUI_LIB,QT_CORE_LIB,QT_THREAD_SUPPORT"
|
||||
ProgramDataBaseFileName=".\"
|
||||
RuntimeLibrary="3"
|
||||
RuntimeTypeInfo="true"
|
||||
SuppressStartupBanner="true"
|
||||
TreatWChar_tAsBuiltInType="false"
|
||||
WarningLevel="3"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="w:\QT\qt462-vc8\lib\qtmaind.lib TKernel.lib PTKernel.lib TKMath.lib TKService.lib TKV3d.lib TKV2d.lib TKBRep.lib TKIGES.lib TKSTL.lib TKVRML.lib TKSTEP.lib TKSTEPAttr.lib TKSTEP209.lib TKSTEPBase.lib TKShapeSchema.lib TKGeomBase.lib TKGeomAlgo.lib TKG3d.lib TKG2d.lib TKXSBase.lib TKPShape.lib TKShHealing.lib TKHLR.lib TKTopAlgo.lib TKMesh.lib TKPrim.lib TKCDF.lib TKBool.lib TKBO.lib TKFillet.lib TKOffset.lib w:\QT\qt462-vc8\lib\QtCore4.lib w:\QT\qt462-vc8\lib\QtGui4.lib w:\QT\qt462-vc8\lib\QtGuid4.lib w:\QT\qt462-vc8\lib\QtCored4.lib"
|
||||
AdditionalLibraryDirectories="w:\QT\qt462-vc8\lib,$(CASROOT)/win32/vc8/libd,$(QTDIR)/lib"
|
||||
AdditionalOptions=""/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'""
|
||||
GenerateDebugInformation="true"
|
||||
IgnoreImportLibrary="true"
|
||||
LinkTimeCodeGeneration="0"
|
||||
OutputFile="win32\bind\Tutorial.exe"
|
||||
ProgramDatabaseFile=""
|
||||
SubSystem="2"
|
||||
SuppressStartupBanner="true"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
DefaultCharType="0"
|
||||
EnableErrorChecks="1"
|
||||
WarningLevel="0"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="_WINDOWS,CSFDB,_DEBUG,WNT,WIN32,NO_COMMONSAMPLE_EXPORTS,NO_IESAMPLE_EXPORTS,QT_DLL,QT_GUI_LIB,QT_CORE_LIB,QT_THREAD_SUPPORT,_DEBUG"/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
|
||||
<File
|
||||
RelativePath="src\ApplicationCommon.cxx"/>
|
||||
<File
|
||||
RelativePath="src\ApplicationTut.cxx"/>
|
||||
<File
|
||||
RelativePath="src\DocumentCommon.cxx"/>
|
||||
<File
|
||||
RelativePath="src\DocumentTut.cxx"/>
|
||||
<File
|
||||
RelativePath="src\MDIWindow.cxx"/>
|
||||
<File
|
||||
RelativePath="src\Main.cxx"/>
|
||||
<File
|
||||
RelativePath="src\MakeBottle.cxx"/>
|
||||
<File
|
||||
RelativePath="src\Material.cxx"/>
|
||||
<File
|
||||
RelativePath="src\Transparency.cxx"/>
|
||||
<File
|
||||
RelativePath="src\View.cxx"/>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
|
||||
<File
|
||||
RelativePath="src\ApplicationCommon.h">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\ApplicationCommon.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -DNDEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\src" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\ApplicationCommon.h -o win32\src\moc_ApplicationCommon.cpp"
|
||||
Description="MOC src\ApplicationCommon.h"
|
||||
Outputs="win32\src\moc_ApplicationCommon.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\ApplicationCommon.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -D_DEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\srcd" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\ApplicationCommon.h -o win32\srcd\moc_ApplicationCommon.cpp"
|
||||
Description="MOC src\ApplicationCommon.h"
|
||||
Outputs="win32\srcd\moc_ApplicationCommon.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="src\ApplicationTut.h">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\ApplicationTut.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -DNDEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\src" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\ApplicationTut.h -o win32\src\moc_ApplicationTut.cpp"
|
||||
Description="MOC src\ApplicationTut.h"
|
||||
Outputs="win32\src\moc_ApplicationTut.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\ApplicationTut.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -D_DEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\srcd" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\ApplicationTut.h -o win32\srcd\moc_ApplicationTut.cpp"
|
||||
Description="MOC src\ApplicationTut.h"
|
||||
Outputs="win32\srcd\moc_ApplicationTut.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="src\CommonSample.h"/>
|
||||
<File
|
||||
RelativePath="src\DocumentCommon.h">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\DocumentCommon.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -DNDEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\src" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\DocumentCommon.h -o win32\src\moc_DocumentCommon.cpp"
|
||||
Description="MOC src\DocumentCommon.h"
|
||||
Outputs="win32\src\moc_DocumentCommon.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\DocumentCommon.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -D_DEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\srcd" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\DocumentCommon.h -o win32\srcd\moc_DocumentCommon.cpp"
|
||||
Description="MOC src\DocumentCommon.h"
|
||||
Outputs="win32\srcd\moc_DocumentCommon.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="src\DocumentTut.h">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\DocumentTut.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -DNDEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\src" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\DocumentTut.h -o win32\src\moc_DocumentTut.cpp"
|
||||
Description="MOC src\DocumentTut.h"
|
||||
Outputs="win32\src\moc_DocumentTut.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\DocumentTut.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -D_DEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\srcd" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\DocumentTut.h -o win32\srcd\moc_DocumentTut.cpp"
|
||||
Description="MOC src\DocumentTut.h"
|
||||
Outputs="win32\srcd\moc_DocumentTut.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="src\MDIWindow.h">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\MDIWindow.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -DNDEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\src" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\MDIWindow.h -o win32\src\moc_MDIWindow.cpp"
|
||||
Description="MOC src\MDIWindow.h"
|
||||
Outputs="win32\src\moc_MDIWindow.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\MDIWindow.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -D_DEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\srcd" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\MDIWindow.h -o win32\srcd\moc_MDIWindow.cpp"
|
||||
Description="MOC src\MDIWindow.h"
|
||||
Outputs="win32\srcd\moc_MDIWindow.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="src\Material.h">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\Material.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -DNDEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\src" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\Material.h -o win32\src\moc_Material.cpp"
|
||||
Description="MOC src\Material.h"
|
||||
Outputs="win32\src\moc_Material.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\Material.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -D_DEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\srcd" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\Material.h -o win32\srcd\moc_Material.cpp"
|
||||
Description="MOC src\Material.h"
|
||||
Outputs="win32\srcd\moc_Material.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="src\Transparency.h">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\Transparency.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -DNDEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\src" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\Transparency.h -o win32\src\moc_Transparency.cpp"
|
||||
Description="MOC src\Transparency.h"
|
||||
Outputs="win32\src\moc_Transparency.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\Transparency.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -D_DEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\srcd" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\Transparency.h -o win32\srcd\moc_Transparency.cpp"
|
||||
Description="MOC src\Transparency.h"
|
||||
Outputs="win32\srcd\moc_Transparency.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="src\View.h">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\View.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -DNDEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\src" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\View.h -o win32\src\moc_View.cpp"
|
||||
Description="MOC src\View.h"
|
||||
Outputs="win32\src\moc_View.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="W:\QT\qt462-vc8\bin\moc.exe;src\View.h"
|
||||
CommandLine="W:\QT\qt462-vc8\bin\moc.exe -DCSFDB -D_DEBUG -DWNT -DWIN32 -DNO_COMMONSAMPLE_EXPORTS -DNO_IESAMPLE_EXPORTS -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\QT\qt462-vc8\include\QtCore" -I"..\..\..\QT\qt462-vc8\include\QtGui" -I"..\..\..\QT\qt462-vc8\include" -I"$(CASROOT)" -I"$(CASROOT)\inc" -I"$(CASROOT)\src\WOKTclLib" -I"$(QTDIR)\include\QtCore" -I"$(QTDIR)\include\QtGui" -I"$(QTDIR)\include" -I"..\..\..\QT\qt462-vc8\include\ActiveQt" -I"win32\srcd" -I..\..\..\QT\qt462-vc8\mkspecs\default -D_MSC_VER=1400 -DWIN32 src\View.h -o win32\srcd\moc_View.cpp"
|
||||
Description="MOC src\View.h"
|
||||
Outputs="win32\srcd\moc_View.cpp"
|
||||
Path="w:\QT\qt462-vc8\bin"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Generated Files"
|
||||
Filter="cpp;c;cxx;moc;h;def;odl;idl;res;"
|
||||
UniqueIdentifier="{71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11}">
|
||||
<File
|
||||
RelativePath="win32\src\moc_ApplicationCommon.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="win32\srcd\moc_ApplicationCommon.cpp">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="win32\src\moc_ApplicationTut.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="win32\srcd\moc_ApplicationTut.cpp">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="win32\src\moc_DocumentCommon.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="win32\srcd\moc_DocumentCommon.cpp">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="win32\src\moc_DocumentTut.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="win32\srcd\moc_DocumentTut.cpp">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="win32\src\moc_MDIWindow.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="win32\srcd\moc_MDIWindow.cpp">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="win32\src\moc_Material.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="win32\srcd\moc_Material.cpp">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="win32\src\moc_Transparency.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="win32\srcd\moc_Transparency.cpp">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="win32\src\moc_View.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="win32\srcd\moc_View.cpp">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="true"/>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="LRELASE"
|
||||
UniqueIdentifier="{E0D8C965-CC5F-43d7-AD63-FAEF0BBC0F85}-lrelease"
|
||||
ParseFiles="false">
|
||||
<File
|
||||
RelativePath="src\Common-icon.ts">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="$(QTDIR)/bin/lrelease;src\Common-icon.ts"
|
||||
CommandLine="$(QTDIR)/bin/lrelease src\Common-icon.ts -qm ./res/Common-icon.qm"
|
||||
Description="LRELASE src\Common-icon.ts"
|
||||
Outputs="res\Common-icon.qm"
|
||||
Path="w:\OCCT\start\windows\win-xp\qt462-vc8-32\bin"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="$(QTDIR)/bin/lrelease;src\Common-icon.ts"
|
||||
CommandLine="$(QTDIR)/bin/lrelease src\Common-icon.ts -qm ./res/Common-icon.qm"
|
||||
Description="LRELASE src\Common-icon.ts"
|
||||
Outputs="res\Common-icon.qm"
|
||||
Path="w:\OCCT\start\windows\win-xp\qt462-vc8-32\bin"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="src\Common-string.ts">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="$(QTDIR)/bin/lrelease;src\Common-string.ts"
|
||||
CommandLine="$(QTDIR)/bin/lrelease src\Common-string.ts -qm ./res/Common-string.qm"
|
||||
Description="LRELASE src\Common-string.ts"
|
||||
Outputs="res\Common-string.qm"
|
||||
Path="w:\OCCT\start\windows\win-xp\qt462-vc8-32\bin"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="$(QTDIR)/bin/lrelease;src\Common-string.ts"
|
||||
CommandLine="$(QTDIR)/bin/lrelease src\Common-string.ts -qm ./res/Common-string.qm"
|
||||
Description="LRELASE src\Common-string.ts"
|
||||
Outputs="res\Common-string.qm"
|
||||
Path="w:\OCCT\start\windows\win-xp\qt462-vc8-32\bin"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="src\Tutorial-icon.ts">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="$(QTDIR)/bin/lrelease;src\Tutorial-icon.ts"
|
||||
CommandLine="$(QTDIR)/bin/lrelease src\Tutorial-icon.ts -qm ./res/Tutorial-icon.qm"
|
||||
Description="LRELASE src\Tutorial-icon.ts"
|
||||
Outputs="res\Tutorial-icon.qm"
|
||||
Path="w:\OCCT\start\windows\win-xp\qt462-vc8-32\bin"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="$(QTDIR)/bin/lrelease;src\Tutorial-icon.ts"
|
||||
CommandLine="$(QTDIR)/bin/lrelease src\Tutorial-icon.ts -qm ./res/Tutorial-icon.qm"
|
||||
Description="LRELASE src\Tutorial-icon.ts"
|
||||
Outputs="res\Tutorial-icon.qm"
|
||||
Path="w:\OCCT\start\windows\win-xp\qt462-vc8-32\bin"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="src\Tutorial-string.ts">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="$(QTDIR)/bin/lrelease;src\Tutorial-string.ts"
|
||||
CommandLine="$(QTDIR)/bin/lrelease src\Tutorial-string.ts -qm ./res/Tutorial-string.qm"
|
||||
Description="LRELASE src\Tutorial-string.ts"
|
||||
Outputs="res\Tutorial-string.qm"
|
||||
Path="w:\OCCT\start\windows\win-xp\qt462-vc8-32\bin"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
AdditionalDependencies="$(QTDIR)/bin/lrelease;src\Tutorial-string.ts"
|
||||
CommandLine="$(QTDIR)/bin/lrelease src\Tutorial-string.ts -qm ./res/Tutorial-string.qm"
|
||||
Description="LRELASE src\Tutorial-string.ts"
|
||||
Outputs="res\Tutorial-string.qm"
|
||||
Path="w:\OCCT\start\windows\win-xp\qt462-vc8-32\bin"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
33
samples/qt/Tutorial/env.bat
Executable file
33
samples/qt/Tutorial/env.bat
Executable file
@@ -0,0 +1,33 @@
|
||||
@ECHO OFF
|
||||
|
||||
call "%~dp0..\..\..\ros\env.bat"
|
||||
|
||||
IF NOT DEFINED CASROOT GOTO ERR_CASROOT
|
||||
|
||||
IF NOT EXIST "%CASROOT%\win32\vc8\bin\TKernel.dll" GOTO ERR_CASCADE
|
||||
|
||||
SET CASLIBS=%CASROOT%\win32\vc8\bin
|
||||
|
||||
SET ROOT=%CASROOT%\..
|
||||
|
||||
set RES_DIR=%~dp0res
|
||||
set BIN_DIR=%~dp0win32\bin
|
||||
|
||||
SET CSF_ResourcesDefaults=%RES_DIR%
|
||||
SET CSF_TuturialResourcesDefaults=%RES_DIR%
|
||||
|
||||
SET PATH=%CASLIBS%;%QTDIR%\bin;%PATH%
|
||||
|
||||
GOTO END
|
||||
|
||||
:ERR_CASROOT
|
||||
ECHO Environment variable "CASROOT" has not been defined. Abort.
|
||||
pause
|
||||
exit /B
|
||||
|
||||
:ERR_CASCADE
|
||||
ECHO Environment variable "CASROOT" defined incorrectly. Abort.
|
||||
pause
|
||||
exit /B
|
||||
|
||||
:END
|
BIN
samples/qt/Tutorial/res/Bottle.png
Executable file
BIN
samples/qt/Tutorial/res/Bottle.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 284 B |
BIN
samples/qt/Tutorial/res/SampleImportExport.png
Executable file
BIN
samples/qt/Tutorial/res/SampleImportExport.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 342 B |
64
samples/qt/Tutorial/run.sh
Executable file
64
samples/qt/Tutorial/run.sh
Executable file
@@ -0,0 +1,64 @@
|
||||
#!/bin/sh
|
||||
|
||||
host=`uname -s`
|
||||
|
||||
PROG_DIR=`dirname $0`
|
||||
ROOT_DIR=`(cd $PROG_DIR; pwd)`
|
||||
|
||||
if test ! -d "$host/obj"; then
|
||||
QTDIR="$CASROOT/../3rdparty/$host/qt"
|
||||
QT_LD_PATH="$CASROOT/../3rdparty/$host/qt"
|
||||
CASCADE_LD_PATH="$CASROOT/$host/lib"
|
||||
LD_LIBRARY_PATH="${CASCADE_LD_PATH}:${QT_LD_PATH}:${LD_LIBRARY_PATH}"
|
||||
fi
|
||||
STATION=$host
|
||||
|
||||
if test "${CASROOT+set}" != "set"; then
|
||||
echo "Environment variable \"CASROOT\" not defined."
|
||||
CASROOT="$CASCADE_ROOT"
|
||||
if test -n "$CASROOT"; then
|
||||
echo "Try to use CASROOT=$CASROOT"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if test ! -d "$CASROOT"; then
|
||||
echo "CasCade root directory \"$CASROOT\" not found."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test "${QTDIR+set}" != "set"; then
|
||||
echo "Environment variable \"QTDIR\" not defined."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
occ_opengl_lib=libTKOpenGl.so
|
||||
|
||||
RES_DIR="${ROOT_DIR}/res"
|
||||
BIN_DIR="${ROOT_DIR}/${STATION}/bin"
|
||||
|
||||
CSF_GraphicShr="${CASROOT}/${STATION}/lib/${occ_opengl_lib}"
|
||||
CSF_UnitsLexicon="${CASROOT}/src/UnitsAPI/Lexi_Expr.dat"
|
||||
CSF_UnitsDefinition="${CASROOT}/src/UnitsAPI/Units.dat"
|
||||
CSF_MDTVFontDirectory="${CASROOT}/src/FontMFT"
|
||||
CSF_MDTVTexturesDirectory="${CASROOT}/src/Textures"
|
||||
|
||||
CSF_ResourcesDefaults="${RES_DIR}"
|
||||
CSF_TuturialResourcesDefaults="${RES_DIR}"
|
||||
|
||||
PATH="${BIN_DIR}:${PATH}"
|
||||
|
||||
export CSF_GraphicShr CSF_UnitsLexicon CSF_UnitsDefinition
|
||||
export CSF_MDTVFontDirectory CSF_MDTVTexturesDirectory
|
||||
export CSF_TuturialResourcesDefaults CSF_ResourcesDefaults
|
||||
export PATH LD_LIBRARY_PATH
|
||||
|
||||
if test ! -r "${BIN_DIR}/Tutorial"; then
|
||||
echo "Executable \"${BIN_DIR}/Tutorial\" not found."
|
||||
echo "Probably you don't compile the application. Execute \"make\"."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
${BIN_DIR}/Tutorial
|
||||
|
64
samples/qt/Tutorial/src/ApplicationTut.cxx
Executable file
64
samples/qt/Tutorial/src/ApplicationTut.cxx
Executable file
@@ -0,0 +1,64 @@
|
||||
#include "ApplicationTut.h"
|
||||
#include "DocumentTut.h"
|
||||
|
||||
#include <QFileDialog>
|
||||
#include <QStatusBar>
|
||||
|
||||
ApplicationTut::ApplicationTut()
|
||||
: ApplicationCommonWindow( )
|
||||
{
|
||||
createMakeBottleOperation();
|
||||
}
|
||||
|
||||
ApplicationTut::~ApplicationTut()
|
||||
{
|
||||
}
|
||||
|
||||
void ApplicationTut::createMakeBottleOperation(){
|
||||
QPixmap MakeBottleIcon;
|
||||
QString dir = getTutResourceDir() + QString( "/" );
|
||||
MakeBottleIcon = QPixmap( dir+QObject::tr( "ICON_MAKE_BOTTLE" ) );
|
||||
|
||||
QAction * MakeBottleAction = new QAction( MakeBottleIcon, QObject::tr("TBR_MAKEBOT"), this );
|
||||
MakeBottleAction->setToolTip( QObject::tr( "TBR_MAKEBOT" ) );
|
||||
MakeBottleAction->setStatusTip( QObject::tr("TBR_MAKEBOT") );
|
||||
MakeBottleAction->setShortcut( QObject::tr( "CTRL+M" ) );
|
||||
connect( MakeBottleAction, SIGNAL( activated() ) , this, SLOT( onMakeBottleAction() ) );
|
||||
|
||||
myMakeBottleBar = addToolBar( tr( "Make Bottle" ) );
|
||||
insertToolBar( getCasCadeBar(), myMakeBottleBar );
|
||||
myMakeBottleBar->addAction( MakeBottleAction );
|
||||
myMakeBottleBar->hide();
|
||||
}
|
||||
|
||||
void ApplicationTut::updateFileActions()
|
||||
{
|
||||
if ( getWorkspace()->windowList().isEmpty() )
|
||||
{
|
||||
if ( !isDocument() )
|
||||
{
|
||||
myMakeBottleBar->show();
|
||||
}
|
||||
else
|
||||
{
|
||||
myMakeBottleBar->hide();
|
||||
}
|
||||
}
|
||||
ApplicationCommonWindow::updateFileActions();
|
||||
}
|
||||
|
||||
void ApplicationTut::onMakeBottleAction()
|
||||
{
|
||||
QWorkspace* ws = ApplicationCommonWindow::getWorkspace();
|
||||
DocumentTut* doc = (DocumentTut*)((MDIWindow*)ws->activeWindow())->getDocument();
|
||||
statusBar()->showMessage( QObject::tr("INF_MAKE_BOTTLE"), 5000 );
|
||||
doc->onMakeBottle();
|
||||
statusBar()->showMessage(QObject::tr("INF_DONE"));
|
||||
}
|
||||
|
||||
QString ApplicationTut::getTutResourceDir()
|
||||
{
|
||||
static QString resDir( ::getenv( "CSF_TuturialResourcesDefaults" ) );
|
||||
return resDir;
|
||||
}
|
||||
|
30
samples/qt/Tutorial/src/ApplicationTut.h
Executable file
30
samples/qt/Tutorial/src/ApplicationTut.h
Executable file
@@ -0,0 +1,30 @@
|
||||
#ifndef APPLICATIONTUT_H
|
||||
#define APPLICATIONTUT_H
|
||||
|
||||
#include "DocumentTut.h"
|
||||
#include "ApplicationCommon.h"
|
||||
|
||||
class ApplicationTut: public ApplicationCommonWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
ApplicationTut();
|
||||
~ApplicationTut();
|
||||
|
||||
static QString getTutResourceDir();
|
||||
virtual void updateFileActions();
|
||||
|
||||
public slots:
|
||||
|
||||
void onMakeBottleAction();
|
||||
|
||||
private:
|
||||
void createMakeBottleOperation();
|
||||
|
||||
private:
|
||||
QToolBar* myMakeBottleBar;
|
||||
};
|
||||
|
||||
#endif
|
36
samples/qt/Tutorial/src/DocumentTut.cxx
Executable file
36
samples/qt/Tutorial/src/DocumentTut.cxx
Executable file
@@ -0,0 +1,36 @@
|
||||
#include "DocumentTut.h"
|
||||
|
||||
#include <QFileDialog>
|
||||
#include <QMessageBox>
|
||||
#include <QApplication>
|
||||
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <AIS_Shape.hxx>
|
||||
|
||||
TopoDS_Shape
|
||||
MakeBottle(const Standard_Real myWidth , const Standard_Real myHeight , const Standard_Real myThickness);
|
||||
|
||||
DocumentTut::DocumentTut( const int theIndex, ApplicationCommonWindow* app )
|
||||
: DocumentCommon( theIndex, app )
|
||||
{
|
||||
}
|
||||
|
||||
DocumentTut::~DocumentTut()
|
||||
{
|
||||
}
|
||||
|
||||
void DocumentTut::onMakeBottle()
|
||||
{
|
||||
QApplication::setOverrideCursor( Qt::WaitCursor );
|
||||
TopoDS_Shape aBottle=MakeBottle(50,70,30);
|
||||
Handle(AIS_Shape) AISBottle=new AIS_Shape(aBottle);
|
||||
getContext()->SetMaterial(AISBottle,Graphic3d_NOM_GOLD);
|
||||
getContext()->SetDisplayMode(AISBottle,1,Standard_False);
|
||||
getContext()->Display(AISBottle, Standard_False);
|
||||
getContext()->SetCurrentObject(AISBottle,Standard_False);
|
||||
emit selectionChanged();
|
||||
fitAll();
|
||||
QApplication::restoreOverrideCursor();
|
||||
}
|
||||
|
||||
|
24
samples/qt/Tutorial/src/DocumentTut.h
Executable file
24
samples/qt/Tutorial/src/DocumentTut.h
Executable file
@@ -0,0 +1,24 @@
|
||||
#ifndef DOCUMENTTUT_H
|
||||
#define DOCUMENTTUT_H
|
||||
|
||||
#include "DocumentCommon.h"
|
||||
#include <Geom_BSplineSurface.hxx>
|
||||
|
||||
class SurfConstruction;
|
||||
class ApplicationCommon;
|
||||
|
||||
class DocumentTut : public DocumentCommon
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DocumentTut( const int, ApplicationCommonWindow* );
|
||||
~DocumentTut();
|
||||
|
||||
void onMakeBottle();
|
||||
|
||||
private:
|
||||
SurfConstruction* mySurfConstructor;
|
||||
};
|
||||
|
||||
#endif
|
43
samples/qt/Tutorial/src/Main.cxx
Executable file
43
samples/qt/Tutorial/src/Main.cxx
Executable file
@@ -0,0 +1,43 @@
|
||||
#include "ApplicationTut.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QTranslator>
|
||||
|
||||
int main ( int argc, char* argv[] )
|
||||
{
|
||||
QApplication a( argc, argv );
|
||||
|
||||
QString resDir = ApplicationCommonWindow::getResourceDir();
|
||||
QString resTutDir = ApplicationTut::getTutResourceDir();
|
||||
|
||||
QTranslator strTrans( 0 );
|
||||
Standard_Boolean isOK = strTrans.load( "Common-string", resDir );
|
||||
if( isOK )
|
||||
a.installTranslator( &strTrans );
|
||||
|
||||
QTranslator iconTrans( 0 );
|
||||
isOK = iconTrans.load( "Common-icon", resDir );
|
||||
if( isOK )
|
||||
a.installTranslator( &iconTrans );
|
||||
|
||||
QTranslator strTutTrans( 0 );
|
||||
isOK = strTutTrans.load( "Tutorial-string", resTutDir );
|
||||
if( isOK )
|
||||
a.installTranslator( &strTutTrans );
|
||||
|
||||
QTranslator iconTutTrans( 0 );
|
||||
isOK = iconTutTrans.load( "Tutorial-icon", resTutDir );
|
||||
if( isOK )
|
||||
a.installTranslator( &iconTutTrans );
|
||||
|
||||
QObject::connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
|
||||
|
||||
ApplicationTut* mw = new ApplicationTut();
|
||||
mw->setWindowTitle( QObject::tr( "TIT_SAMPLE" ) );
|
||||
QString aResName( resDir + QString( "/" ) + QObject::tr( "ICON_SAMPLE" ) );
|
||||
mw->setWindowIcon( QPixmap( aResName ) );
|
||||
|
||||
mw->show();
|
||||
|
||||
return a.exec();
|
||||
}
|
217
samples/qt/Tutorial/src/MakeBottle.cxx
Executable file
217
samples/qt/Tutorial/src/MakeBottle.cxx
Executable file
@@ -0,0 +1,217 @@
|
||||
#include <BRep_Tool.hxx>
|
||||
|
||||
#include <BRepAlgoAPI_Fuse.hxx>
|
||||
|
||||
#include <BRepBuilderAPI_MakeEdge.hxx>
|
||||
#include <BRepBuilderAPI_MakeFace.hxx>
|
||||
#include <BRepBuilderAPI_MakeWire.hxx>
|
||||
#include <BRepBuilderAPI_Transform.hxx>
|
||||
|
||||
#include <BRepFilletAPI_MakeFillet.hxx>
|
||||
|
||||
#include <BRepLib.hxx>
|
||||
|
||||
#include <BRepOffsetAPI_MakeThickSolid.hxx>
|
||||
#include <BRepOffsetAPI_ThruSections.hxx>
|
||||
|
||||
#include <BRepPrimAPI_MakeCylinder.hxx>
|
||||
#include <BRepPrimAPI_MakePrism.hxx>
|
||||
|
||||
#include <GC_MakeArcOfCircle.hxx>
|
||||
#include <GC_MakeSegment.hxx>
|
||||
|
||||
#include <GCE2d_MakeSegment.hxx>
|
||||
|
||||
#include <gp.hxx>
|
||||
#include <gp_Ax1.hxx>
|
||||
#include <gp_Ax2.hxx>
|
||||
#include <gp_Ax2d.hxx>
|
||||
#include <gp_Dir.hxx>
|
||||
#include <gp_Dir2d.hxx>
|
||||
#include <gp_Pnt.hxx>
|
||||
#include <gp_Pnt2d.hxx>
|
||||
#include <gp_Trsf.hxx>
|
||||
#include <gp_Vec.hxx>
|
||||
|
||||
#include <Geom_CylindricalSurface.hxx>
|
||||
#include <Geom_Plane.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
#include <Geom_TrimmedCurve.hxx>
|
||||
|
||||
#include <Geom2d_Ellipse.hxx>
|
||||
#include <Geom2d_TrimmedCurve.hxx>
|
||||
|
||||
#include <TopExp_Explorer.hxx>
|
||||
|
||||
#include <TopoDS.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
#include <TopoDS_Wire.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TopoDS_Compound.hxx>
|
||||
|
||||
#include <TopTools_ListOfShape.hxx>
|
||||
|
||||
|
||||
TopoDS_Shape
|
||||
MakeBottle(const Standard_Real myWidth , const Standard_Real myHeight ,
|
||||
const Standard_Real myThickness)
|
||||
{
|
||||
//Profile : Define Support Points
|
||||
gp_Pnt aPnt1(-myWidth / 2. , 0 , 0);
|
||||
gp_Pnt aPnt2(-myWidth / 2. , -myThickness / 4. , 0);
|
||||
gp_Pnt aPnt3(0 , -myThickness / 2. , 0);
|
||||
gp_Pnt aPnt4(myWidth / 2. , -myThickness / 4. , 0);
|
||||
gp_Pnt aPnt5(myWidth / 2. , 0 , 0);
|
||||
|
||||
//Profile : Define the Geometry
|
||||
Handle(Geom_TrimmedCurve) aArcOfCircle = GC_MakeArcOfCircle(aPnt2,aPnt3 ,aPnt4);
|
||||
Handle(Geom_TrimmedCurve) aSegment1 = GC_MakeSegment(aPnt1 , aPnt2);
|
||||
Handle(Geom_TrimmedCurve) aSegment2 = GC_MakeSegment(aPnt4 , aPnt5);
|
||||
|
||||
//Profile : Define the Topology
|
||||
TopoDS_Edge aEdge1 = BRepBuilderAPI_MakeEdge(aSegment1);
|
||||
TopoDS_Edge aEdge2 = BRepBuilderAPI_MakeEdge(aArcOfCircle);
|
||||
TopoDS_Edge aEdge3 = BRepBuilderAPI_MakeEdge(aSegment2);
|
||||
TopoDS_Wire aWire = BRepBuilderAPI_MakeWire(aEdge1 , aEdge2 , aEdge3);
|
||||
|
||||
//Complete Profile
|
||||
gp_Ax1 xAxis = gp::OX();
|
||||
gp_Trsf aTrsf;
|
||||
|
||||
aTrsf.SetMirror(xAxis);
|
||||
|
||||
BRepBuilderAPI_Transform aBRepTrsf(aWire , aTrsf);
|
||||
TopoDS_Shape aMirroredShape = aBRepTrsf.Shape();
|
||||
TopoDS_Wire aMirroredWire = TopoDS::Wire(aMirroredShape);
|
||||
|
||||
BRepBuilderAPI_MakeWire mkWire;
|
||||
|
||||
mkWire.Add(aWire);
|
||||
mkWire.Add(aMirroredWire);
|
||||
|
||||
TopoDS_Wire myWireProfile = mkWire.Wire();
|
||||
|
||||
//Body : Prism the Profile
|
||||
TopoDS_Face myFaceProfile = BRepBuilderAPI_MakeFace(myWireProfile);
|
||||
gp_Vec aPrismVec(0 , 0 , myHeight);
|
||||
|
||||
TopoDS_Shape myBody = BRepPrimAPI_MakePrism(myFaceProfile , aPrismVec);
|
||||
|
||||
//Body : Apply Fillets
|
||||
BRepFilletAPI_MakeFillet mkFillet(myBody);
|
||||
TopExp_Explorer aEdgeExplorer(myBody , TopAbs_EDGE);
|
||||
|
||||
while(aEdgeExplorer.More()){
|
||||
|
||||
TopoDS_Edge aEdge = TopoDS::Edge(aEdgeExplorer.Current());
|
||||
|
||||
//Add edge to fillet algorithm
|
||||
mkFillet.Add(myThickness / 12. , aEdge);
|
||||
|
||||
aEdgeExplorer.Next();
|
||||
}
|
||||
|
||||
myBody = mkFillet.Shape();
|
||||
|
||||
//Body : Add the Neck
|
||||
gp_Pnt neckLocation(0 , 0 , myHeight);
|
||||
gp_Dir neckNormal = gp::DZ();
|
||||
gp_Ax2 neckAx2(neckLocation , neckNormal);
|
||||
|
||||
Standard_Real myNeckRadius = myThickness / 4.;
|
||||
Standard_Real myNeckHeight = myHeight / 10;
|
||||
|
||||
BRepPrimAPI_MakeCylinder MKCylinder(neckAx2 , myNeckRadius , myNeckHeight);
|
||||
TopoDS_Shape myNeck = MKCylinder.Shape();
|
||||
|
||||
myBody = BRepAlgoAPI_Fuse(myBody , myNeck);
|
||||
|
||||
//Body : Create a Hollowed Solid
|
||||
TopoDS_Face faceToRemove;
|
||||
Standard_Real zMax = -1;
|
||||
|
||||
for(TopExp_Explorer aFaceExplorer(myBody , TopAbs_FACE) ; aFaceExplorer.More() ; aFaceExplorer.Next()){
|
||||
|
||||
TopoDS_Face aFace = TopoDS::Face(aFaceExplorer.Current());
|
||||
|
||||
//Check if <aFace> is the top face of the bottle's neck
|
||||
Handle(Geom_Surface) aSurface = BRep_Tool::Surface(aFace);
|
||||
|
||||
if(aSurface->DynamicType() == STANDARD_TYPE(Geom_Plane)){
|
||||
|
||||
Handle(Geom_Plane) aPlane = Handle(Geom_Plane)::DownCast(aSurface);
|
||||
|
||||
gp_Pnt aPnt = aPlane->Location();
|
||||
Standard_Real aZ = aPnt.Z();
|
||||
|
||||
if(aZ > zMax){
|
||||
|
||||
zMax = aZ;
|
||||
faceToRemove = aFace;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TopTools_ListOfShape facesToRemove;
|
||||
|
||||
facesToRemove.Append(faceToRemove);
|
||||
|
||||
myBody = BRepOffsetAPI_MakeThickSolid(myBody , facesToRemove , -myThickness / 50 , 1.e-3);
|
||||
|
||||
|
||||
//return myBody;
|
||||
//Threading : Create Surfaces
|
||||
Handle(Geom_CylindricalSurface) aCyl1 = new Geom_CylindricalSurface(neckAx2 , myNeckRadius * 0.99);
|
||||
Handle(Geom_CylindricalSurface) aCyl2 = new Geom_CylindricalSurface(neckAx2 , myNeckRadius * 1.05);
|
||||
|
||||
//Threading : Define 2D Curves
|
||||
gp_Pnt2d aPnt(2. * PI , myNeckHeight / 2.);
|
||||
gp_Dir2d aDir(2. * PI , myNeckHeight / 4.);
|
||||
gp_Ax2d aAx2d(aPnt , aDir);
|
||||
|
||||
Standard_Real aMajor = 2. * PI;
|
||||
Standard_Real aMinor = myNeckHeight / 10;
|
||||
|
||||
Handle(Geom2d_Ellipse) anEllipse1 = new Geom2d_Ellipse(aAx2d , aMajor , aMinor);
|
||||
Handle(Geom2d_Ellipse) anEllipse2 = new Geom2d_Ellipse(aAx2d , aMajor , aMinor / 4);
|
||||
|
||||
Handle(Geom2d_TrimmedCurve) aArc1 = new Geom2d_TrimmedCurve(anEllipse1 , 0 , PI);
|
||||
Handle(Geom2d_TrimmedCurve) aArc2 = new Geom2d_TrimmedCurve(anEllipse2 , 0 , PI);
|
||||
|
||||
gp_Pnt2d anEllipsePnt1 = anEllipse1->Value(0);
|
||||
gp_Pnt2d anEllipsePnt2 = anEllipse1->Value(PI);
|
||||
|
||||
Handle(Geom2d_TrimmedCurve) aSegment = GCE2d_MakeSegment(anEllipsePnt1 , anEllipsePnt2);
|
||||
|
||||
//Threading : Build Edges and Wires
|
||||
TopoDS_Edge aEdge1OnSurf1 = BRepBuilderAPI_MakeEdge(aArc1 , aCyl1);
|
||||
TopoDS_Edge aEdge2OnSurf1 = BRepBuilderAPI_MakeEdge(aSegment , aCyl1);
|
||||
TopoDS_Edge aEdge1OnSurf2 = BRepBuilderAPI_MakeEdge(aArc2 , aCyl2);
|
||||
TopoDS_Edge aEdge2OnSurf2 = BRepBuilderAPI_MakeEdge(aSegment , aCyl2);
|
||||
|
||||
TopoDS_Wire threadingWire1 = BRepBuilderAPI_MakeWire(aEdge1OnSurf1 , aEdge2OnSurf1);
|
||||
TopoDS_Wire threadingWire2 = BRepBuilderAPI_MakeWire(aEdge1OnSurf2 , aEdge2OnSurf2);
|
||||
|
||||
BRepLib::BuildCurves3d(threadingWire1);
|
||||
BRepLib::BuildCurves3d(threadingWire2);
|
||||
|
||||
//Create Threading
|
||||
BRepOffsetAPI_ThruSections aTool(Standard_True);
|
||||
|
||||
aTool.AddWire(threadingWire1);
|
||||
aTool.AddWire(threadingWire2);
|
||||
aTool.CheckCompatibility(Standard_False);
|
||||
|
||||
TopoDS_Shape myThreading = aTool.Shape();
|
||||
|
||||
//Building the resulting compound
|
||||
TopoDS_Compound aRes;
|
||||
BRep_Builder aBuilder;
|
||||
aBuilder.MakeCompound (aRes);
|
||||
|
||||
aBuilder.Add (aRes, myBody);
|
||||
aBuilder.Add (aRes, myThreading);
|
||||
|
||||
return aRes;
|
||||
}
|
10
samples/qt/Tutorial/src/Tutorial-icon.ts
Executable file
10
samples/qt/Tutorial/src/Tutorial-icon.ts
Executable file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS><TS version="1.1" language="ru_RU">
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<source>ICON_MAKE_BOTTLE</source>
|
||||
<translation>Bottle.png</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
26
samples/qt/Tutorial/src/Tutorial-string.ts
Executable file
26
samples/qt/Tutorial/src/Tutorial-string.ts
Executable file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS><TS version="1.1" language="ru_RU">
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<source>TIT_SAMPLE</source>
|
||||
<translation>Tutorial</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INF_MAKE_BOTTLE</source>
|
||||
<translation>Making bottle .........</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>TBR_MAKEBOT</source>
|
||||
<translation>MakeBottle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>INF_DONE</source>
|
||||
<translation>Done</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>TIT_ABOUT</source>
|
||||
<translation>Tutorial</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Reference in New Issue
Block a user