Delete old Assimp.NET code and replace by a link to assimp-net, which is now the preferred way of using assimp from .net.
parent
c90e209cf2
commit
b66e9acd72
|
@ -1,275 +0,0 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
|
||||||
# Visual Studio 2008
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Assimp_NET", "Assimp.NET\Assimp.NET.vcproj", "{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}"
|
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524} = {5691E159-2D9B-407F-971F-EA5C592DC524}
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assimp.NET_CS", "Assimp.NET_CS\Assimp.NET_CS.csproj", "{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}"
|
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E} = {A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assimp.NET_DEMO", "Assimp.NET_DEMO\Assimp.NET_DEMO.csproj", "{B2813591-1491-4C99-B6E2-67B484411AFC}"
|
|
||||||
ProjectSection(ProjectDependencies) = postProject
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524} = {5691E159-2D9B-407F-971F-EA5C592DC524}
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "assimp", "..\..\workspaces\vc9\assimp.vcproj", "{5691E159-2D9B-407F-971F-EA5C592DC524}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Debug|Mixed Platforms = Debug|Mixed Platforms
|
|
||||||
Debug|Win32 = Debug|Win32
|
|
||||||
Debug|x86 = Debug|x86
|
|
||||||
debug-dll|Any CPU = debug-dll|Any CPU
|
|
||||||
debug-dll|Mixed Platforms = debug-dll|Mixed Platforms
|
|
||||||
debug-dll|Win32 = debug-dll|Win32
|
|
||||||
debug-dll|x86 = debug-dll|x86
|
|
||||||
debug-noboost-st|Any CPU = debug-noboost-st|Any CPU
|
|
||||||
debug-noboost-st|Mixed Platforms = debug-noboost-st|Mixed Platforms
|
|
||||||
debug-noboost-st|Win32 = debug-noboost-st|Win32
|
|
||||||
debug-noboost-st|x86 = debug-noboost-st|x86
|
|
||||||
debug-st|Any CPU = debug-st|Any CPU
|
|
||||||
debug-st|Mixed Platforms = debug-st|Mixed Platforms
|
|
||||||
debug-st|Win32 = debug-st|Win32
|
|
||||||
debug-st|x86 = debug-st|x86
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
Release|Mixed Platforms = Release|Mixed Platforms
|
|
||||||
Release|Win32 = Release|Win32
|
|
||||||
Release|x86 = Release|x86
|
|
||||||
release-dll|Any CPU = release-dll|Any CPU
|
|
||||||
release-dll|Mixed Platforms = release-dll|Mixed Platforms
|
|
||||||
release-dll|Win32 = release-dll|Win32
|
|
||||||
release-dll|x86 = release-dll|x86
|
|
||||||
release-noboost-st|Any CPU = release-noboost-st|Any CPU
|
|
||||||
release-noboost-st|Mixed Platforms = release-noboost-st|Mixed Platforms
|
|
||||||
release-noboost-st|Win32 = release-noboost-st|Win32
|
|
||||||
release-noboost-st|x86 = release-noboost-st|x86
|
|
||||||
release-st|Any CPU = release-st|Any CPU
|
|
||||||
release-st|Mixed Platforms = release-st|Mixed Platforms
|
|
||||||
release-st|Win32 = release-st|Win32
|
|
||||||
release-st|x86 = release-st|x86
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|Any CPU.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|Mixed Platforms.Build.0 = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|Win32.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|Win32.Build.0 = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Debug|x86.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-dll|Any CPU.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-dll|Mixed Platforms.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-dll|Mixed Platforms.Build.0 = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-dll|Win32.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-dll|Win32.Build.0 = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-dll|x86.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-noboost-st|Any CPU.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-noboost-st|Mixed Platforms.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-noboost-st|Mixed Platforms.Build.0 = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-noboost-st|Win32.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-noboost-st|Win32.Build.0 = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-noboost-st|x86.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-st|Any CPU.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-st|Mixed Platforms.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-st|Mixed Platforms.Build.0 = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-st|Win32.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-st|Win32.Build.0 = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.debug-st|x86.ActiveCfg = Debug|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|Any CPU.ActiveCfg = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|Mixed Platforms.ActiveCfg = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|Mixed Platforms.Build.0 = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|Win32.ActiveCfg = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|Win32.Build.0 = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|x86.ActiveCfg = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.Release|x86.Build.0 = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-dll|Any CPU.ActiveCfg = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-dll|Mixed Platforms.ActiveCfg = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-dll|Mixed Platforms.Build.0 = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-dll|Win32.ActiveCfg = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-dll|Win32.Build.0 = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-dll|x86.ActiveCfg = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-noboost-st|Any CPU.ActiveCfg = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-noboost-st|Mixed Platforms.ActiveCfg = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-noboost-st|Mixed Platforms.Build.0 = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-noboost-st|Win32.ActiveCfg = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-noboost-st|Win32.Build.0 = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-noboost-st|x86.ActiveCfg = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-st|Any CPU.ActiveCfg = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-st|Mixed Platforms.ActiveCfg = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-st|Mixed Platforms.Build.0 = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-st|Win32.ActiveCfg = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-st|Win32.Build.0 = Release|Win32
|
|
||||||
{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}.release-st|x86.ActiveCfg = Release|Win32
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Win32.ActiveCfg = Debug|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|Win32.Build.0 = Debug|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|x86.ActiveCfg = Debug|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Debug|x86.Build.0 = Debug|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-dll|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-dll|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-dll|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-dll|Mixed Platforms.Build.0 = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-dll|Win32.ActiveCfg = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-dll|x86.ActiveCfg = Debug|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-dll|x86.Build.0 = Debug|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-noboost-st|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-noboost-st|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-noboost-st|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-noboost-st|Mixed Platforms.Build.0 = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-noboost-st|Win32.ActiveCfg = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-noboost-st|x86.ActiveCfg = Debug|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-noboost-st|x86.Build.0 = Debug|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-st|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-st|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-st|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-st|Mixed Platforms.Build.0 = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-st|Win32.ActiveCfg = Debug|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-st|x86.ActiveCfg = Debug|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.debug-st|x86.Build.0 = Debug|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Win32.ActiveCfg = Release|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|Win32.Build.0 = Release|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|x86.ActiveCfg = Release|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.Release|x86.Build.0 = Release|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-dll|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-dll|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-dll|Mixed Platforms.ActiveCfg = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-dll|Mixed Platforms.Build.0 = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-dll|Win32.ActiveCfg = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-dll|x86.ActiveCfg = Release|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-dll|x86.Build.0 = Release|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-noboost-st|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-noboost-st|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-noboost-st|Mixed Platforms.ActiveCfg = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-noboost-st|Mixed Platforms.Build.0 = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-noboost-st|Win32.ActiveCfg = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-noboost-st|x86.ActiveCfg = Release|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-noboost-st|x86.Build.0 = Release|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-st|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-st|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-st|Mixed Platforms.ActiveCfg = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-st|Mixed Platforms.Build.0 = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-st|Win32.ActiveCfg = Release|Any CPU
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-st|x86.ActiveCfg = Release|x86
|
|
||||||
{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}.release-st|x86.Build.0 = Release|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Win32.ActiveCfg = Debug|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|Win32.Build.0 = Debug|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|x86.ActiveCfg = Debug|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Debug|x86.Build.0 = Debug|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-dll|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-dll|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-dll|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-dll|Mixed Platforms.Build.0 = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-dll|Win32.ActiveCfg = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-dll|x86.ActiveCfg = Debug|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-dll|x86.Build.0 = Debug|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-noboost-st|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-noboost-st|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-noboost-st|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-noboost-st|Mixed Platforms.Build.0 = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-noboost-st|Win32.ActiveCfg = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-noboost-st|x86.ActiveCfg = Debug|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-noboost-st|x86.Build.0 = Debug|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-st|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-st|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-st|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-st|Mixed Platforms.Build.0 = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-st|Win32.ActiveCfg = Debug|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-st|x86.ActiveCfg = Debug|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.debug-st|x86.Build.0 = Debug|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Win32.ActiveCfg = Release|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Release|Win32.Build.0 = Release|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Release|x86.ActiveCfg = Release|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.Release|x86.Build.0 = Release|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-dll|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-dll|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-dll|Mixed Platforms.ActiveCfg = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-dll|Mixed Platforms.Build.0 = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-dll|Win32.ActiveCfg = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-dll|x86.ActiveCfg = Release|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-dll|x86.Build.0 = Release|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-noboost-st|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-noboost-st|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-noboost-st|Mixed Platforms.ActiveCfg = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-noboost-st|Mixed Platforms.Build.0 = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-noboost-st|Win32.ActiveCfg = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-noboost-st|x86.ActiveCfg = Release|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-noboost-st|x86.Build.0 = Release|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-st|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-st|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-st|Mixed Platforms.ActiveCfg = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-st|Mixed Platforms.Build.0 = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-st|Win32.ActiveCfg = Release|Any CPU
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-st|x86.ActiveCfg = Release|x86
|
|
||||||
{B2813591-1491-4C99-B6E2-67B484411AFC}.release-st|x86.Build.0 = Release|x86
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.Debug|Any CPU.ActiveCfg = debug|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.Debug|Mixed Platforms.ActiveCfg = debug|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.Debug|Mixed Platforms.Build.0 = debug|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.Debug|Win32.ActiveCfg = debug|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.Debug|Win32.Build.0 = debug|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.Debug|x86.ActiveCfg = debug|x64
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-dll|Any CPU.ActiveCfg = debug-dll|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-dll|Mixed Platforms.ActiveCfg = debug-dll|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-dll|Mixed Platforms.Build.0 = debug-dll|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-dll|Win32.ActiveCfg = debug-dll|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-dll|Win32.Build.0 = debug-dll|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-dll|x86.ActiveCfg = debug-dll|x64
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-noboost-st|Any CPU.ActiveCfg = debug-noboost-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-noboost-st|Mixed Platforms.ActiveCfg = debug-noboost-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-noboost-st|Mixed Platforms.Build.0 = debug-noboost-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-noboost-st|Win32.ActiveCfg = debug-noboost-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-noboost-st|Win32.Build.0 = debug-noboost-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-noboost-st|x86.ActiveCfg = debug-noboost-st|x64
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-st|Any CPU.ActiveCfg = debug-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-st|Mixed Platforms.ActiveCfg = debug-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-st|Mixed Platforms.Build.0 = debug-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-st|Win32.ActiveCfg = debug-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-st|Win32.Build.0 = debug-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.debug-st|x86.ActiveCfg = debug-st|x64
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.Release|Any CPU.ActiveCfg = release|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.Release|Mixed Platforms.ActiveCfg = release|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.Release|Mixed Platforms.Build.0 = release|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.Release|Win32.ActiveCfg = release|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.Release|Win32.Build.0 = release|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.Release|x86.ActiveCfg = release|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.Release|x86.Build.0 = release|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-dll|Any CPU.ActiveCfg = release-dll|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-dll|Mixed Platforms.ActiveCfg = release-dll|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-dll|Mixed Platforms.Build.0 = release-dll|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-dll|Win32.ActiveCfg = release-dll|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-dll|Win32.Build.0 = release-dll|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-dll|x86.ActiveCfg = release-dll|x64
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-noboost-st|Any CPU.ActiveCfg = release-noboost-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-noboost-st|Mixed Platforms.ActiveCfg = release-noboost-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-noboost-st|Mixed Platforms.Build.0 = release-noboost-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-noboost-st|Win32.ActiveCfg = release-noboost-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-noboost-st|Win32.Build.0 = release-noboost-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-noboost-st|x86.ActiveCfg = release-noboost-st|x64
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-st|Any CPU.ActiveCfg = release-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-st|Mixed Platforms.ActiveCfg = release-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-st|Mixed Platforms.Build.0 = release-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-st|Win32.ActiveCfg = release-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-st|Win32.Build.0 = release-st|Win32
|
|
||||||
{5691E159-2D9B-407F-971F-EA5C592DC524}.release-st|x86.ActiveCfg = release-st|x64
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
|
@ -1,237 +0,0 @@
|
||||||
<?xml version="1.0" encoding="Windows-1252"?>
|
|
||||||
<VisualStudioProject
|
|
||||||
ProjectType="Visual C++"
|
|
||||||
Version="9.00"
|
|
||||||
Name="Assimp_NET"
|
|
||||||
ProjectGUID="{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}"
|
|
||||||
RootNamespace="AssimpNET"
|
|
||||||
Keyword="ManagedCProj"
|
|
||||||
TargetFrameworkVersion="196613"
|
|
||||||
>
|
|
||||||
<Platforms>
|
|
||||||
<Platform
|
|
||||||
Name="Win32"
|
|
||||||
/>
|
|
||||||
</Platforms>
|
|
||||||
<ToolFiles>
|
|
||||||
</ToolFiles>
|
|
||||||
<Configurations>
|
|
||||||
<Configuration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
OutputDirectory="..\..\..\bin\$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
|
||||||
IntermediateDirectory="..\..\..\bin\$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
|
||||||
ConfigurationType="2"
|
|
||||||
CharacterSet="1"
|
|
||||||
ManagedExtensions="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
CommandLine=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
CommandLine=""
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG"
|
|
||||||
RuntimeLibrary="3"
|
|
||||||
EnableFunctionLevelLinking="true"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="4"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
OutputFile="$(OutDir)\Assimp.dll"
|
|
||||||
LinkIncremental="2"
|
|
||||||
AdditionalLibraryDirectories=""
|
|
||||||
EnableUAC="false"
|
|
||||||
AddModuleNamesToAssembly=""
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
AssemblyDebug="1"
|
|
||||||
SubSystem="2"
|
|
||||||
TargetMachine="1"
|
|
||||||
CLRThreadAttribute="1"
|
|
||||||
CLRUnmanagedCodeCheck="false"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
CommandLine=""
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
<Configuration
|
|
||||||
Name="Release|Win32"
|
|
||||||
OutputDirectory="..\..\..\bin\$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
|
||||||
IntermediateDirectory="..\..\..\bin\$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
|
||||||
ConfigurationType="2"
|
|
||||||
CharacterSet="1"
|
|
||||||
ManagedExtensions="1"
|
|
||||||
WholeProgramOptimization="1"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreBuildEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXMLDataGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCWebServiceProxyGeneratorTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCMIDLTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG"
|
|
||||||
RuntimeLibrary="2"
|
|
||||||
UsePrecompiledHeader="0"
|
|
||||||
WarningLevel="3"
|
|
||||||
DebugInformationFormat="3"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManagedResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCResourceCompilerTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPreLinkEventTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCLinkerTool"
|
|
||||||
AdditionalDependencies="$(NoInherit)"
|
|
||||||
OutputFile="$(OutDir)\Assimp.dll"
|
|
||||||
LinkIncremental="1"
|
|
||||||
GenerateDebugInformation="true"
|
|
||||||
TargetMachine="1"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCALinkTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCManifestTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCXDCMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCBscMakeTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCFxCopTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCAppVerifierTool"
|
|
||||||
/>
|
|
||||||
<Tool
|
|
||||||
Name="VCPostBuildEventTool"
|
|
||||||
/>
|
|
||||||
</Configuration>
|
|
||||||
</Configurations>
|
|
||||||
<References>
|
|
||||||
<AssemblyReference
|
|
||||||
RelativePath="System.dll"
|
|
||||||
AssemblyName="System, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
|
|
||||||
MinFrameworkVersion="131072"
|
|
||||||
/>
|
|
||||||
<AssemblyReference
|
|
||||||
RelativePath="System.Data.dll"
|
|
||||||
AssemblyName="System.Data, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=x86"
|
|
||||||
MinFrameworkVersion="131072"
|
|
||||||
/>
|
|
||||||
<AssemblyReference
|
|
||||||
RelativePath="System.XML.dll"
|
|
||||||
AssemblyName="System.Xml, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
|
|
||||||
MinFrameworkVersion="131072"
|
|
||||||
/>
|
|
||||||
</References>
|
|
||||||
<Files>
|
|
||||||
<Filter
|
|
||||||
Name="Quelldateien"
|
|
||||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
|
||||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
|
||||||
>
|
|
||||||
<File
|
|
||||||
RelativePath=".\AssimpSwigPort_wrap.cxx"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="Headerdateien"
|
|
||||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
|
||||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
|
||||||
>
|
|
||||||
</Filter>
|
|
||||||
<Filter
|
|
||||||
Name="Ressourcendateien"
|
|
||||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
|
||||||
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
|
||||||
>
|
|
||||||
</Filter>
|
|
||||||
<File
|
|
||||||
RelativePath=".\AssimpSwigPort.i"
|
|
||||||
>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
CommandLine="echo Invoking SWIG...
echo on
swig.exe -c++ -csharp -cpperraswarn -outdir "$(SolutionDir)\Assimp.NET_CS" "$(InputPath)"
@echo off
"
|
|
||||||
Outputs="$(InputName)_wrap.cxx"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCustomBuildTool"
|
|
||||||
CommandLine="echo Invoking SWIG...
echo on
swig.exe -c++ -csharp -cpperraswarn -outdir "$(SolutionDir)\Assimp.NET_CS" "$(InputPath)"
@echo off
"
|
|
||||||
Outputs="$(InputName)_wrap.cxx"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
</Files>
|
|
||||||
<Globals>
|
|
||||||
</Globals>
|
|
||||||
</VisualStudioProject>
|
|
|
@ -1,567 +0,0 @@
|
||||||
/*
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
Open Asset Import Library (ASSIMP)
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Copyright (c) 2006-2010, ASSIMP Development Team
|
|
||||||
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use of this software in source and binary forms,
|
|
||||||
with or without modification, are permitted provided that the following
|
|
||||||
conditions are met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above
|
|
||||||
copyright notice, this list of conditions and the
|
|
||||||
following disclaimer.
|
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above
|
|
||||||
copyright notice, this list of conditions and the
|
|
||||||
following disclaimer in the documentation and/or other
|
|
||||||
materials provided with the distribution.
|
|
||||||
|
|
||||||
* Neither the name of the ASSIMP team, nor the names of its
|
|
||||||
contributors may be used to endorse or promote products
|
|
||||||
derived from this software without specific prior
|
|
||||||
written permission of the ASSIMP Development Team.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
%module Assimp
|
|
||||||
|
|
||||||
%include "carrays.i"
|
|
||||||
%include "typemaps.i"
|
|
||||||
%{
|
|
||||||
#include "..\..\..\include\assimp\defs.h"
|
|
||||||
#include "..\..\..\include\assimp\config.h"
|
|
||||||
#include "..\..\..\include\assimp\types.h"
|
|
||||||
#include "..\..\..\include\assimp\version.h"
|
|
||||||
#include "..\..\..\include\assimp\postprocess.h"
|
|
||||||
#include "..\..\..\include\assimp\vector2.h"
|
|
||||||
#include "..\..\..\include\assimp\vector3.h"
|
|
||||||
#include "..\..\..\include\assimp\color4.h"
|
|
||||||
#include "..\..\..\include\assimp\matrix3x3.h"
|
|
||||||
#include "..\..\..\include\assimp\matrix4x4.h"
|
|
||||||
#include "..\..\..\include\assimp\camera.h"
|
|
||||||
#include "..\..\..\include\assimp\light.h"
|
|
||||||
#include "..\..\..\include\assimp\anim.h"
|
|
||||||
#include "..\..\..\include\assimp\mesh.h"
|
|
||||||
#include "..\..\..\include\assimp\cfileio.h"
|
|
||||||
#include "..\..\..\include\assimp\material.h"
|
|
||||||
#include "..\..\..\include\assimp\quaternion.h"
|
|
||||||
#include "..\..\..\include\assimp\scene.h"
|
|
||||||
#include "..\..\..\include\assimp\texture.h"
|
|
||||||
#include "..\..\..\include\assimp\Importer.hpp"
|
|
||||||
#include "..\..\..\include\assimp\IOSystem.hpp"
|
|
||||||
#include "..\..\..\include\assimp\IOStream.hpp"
|
|
||||||
#include "..\..\..\include\assimp\Logger.hpp"
|
|
||||||
#include "..\..\..\include\assimp\LogStream.hpp"
|
|
||||||
#include "..\..\..\include\assimp\NullLogger.hpp"
|
|
||||||
#include "..\..\..\include\assimp\ProgressHandler.hpp"
|
|
||||||
%}
|
|
||||||
|
|
||||||
#define C_STRUCT
|
|
||||||
#define C_ENUM
|
|
||||||
#define ASSIMP_API
|
|
||||||
#define PACK_STRUCT
|
|
||||||
#define AI_FORCE_INLINE
|
|
||||||
|
|
||||||
%rename(__add__) operator+;
|
|
||||||
%rename(__addnset__) operator+=;
|
|
||||||
%rename(__sub__) operator-;
|
|
||||||
%rename(__subnset__) operator-=;
|
|
||||||
%rename(__mul__) operator*;
|
|
||||||
%rename(__mulnset__) operator*=;
|
|
||||||
%rename(__div__) operator/;
|
|
||||||
%rename(__divnset__) operator/=;
|
|
||||||
%rename(__equal__) operator==;
|
|
||||||
%rename(__nequal__) operator!=;
|
|
||||||
%rename(__idx__) operator[];
|
|
||||||
%rename(__set__) operator=;
|
|
||||||
%rename(__greater__) operator>;
|
|
||||||
%rename(__smaller__) operator<;
|
|
||||||
|
|
||||||
|
|
||||||
%rename(opNew) operator new;
|
|
||||||
%rename(opNewArray) operator new[];
|
|
||||||
|
|
||||||
%rename(opDelete) operator delete;
|
|
||||||
%rename(opDeleteArray) operator delete[];
|
|
||||||
|
|
||||||
|
|
||||||
%include "std_string.i"
|
|
||||||
%include "std_vector.i"
|
|
||||||
|
|
||||||
|
|
||||||
// PACK_STRUCT is a no-op for SWIG – it does not matter for the generated
|
|
||||||
// bindings how the underlying C++ code manages its memory.
|
|
||||||
#define PACK_STRUCT
|
|
||||||
|
|
||||||
|
|
||||||
// Helper macros for wrapping the pointer-and-length arrays used in the
|
|
||||||
// Assimp API.
|
|
||||||
|
|
||||||
%define ASSIMP_ARRAY(CLASS, TYPE, NAME, LENGTH)
|
|
||||||
%csmethodmodifiers Get##NAME() "private";
|
|
||||||
%newobject CLASS::Get##NAME;
|
|
||||||
%extend CLASS {
|
|
||||||
std::vector<TYPE > *Get##NAME() {
|
|
||||||
std::vector<TYPE > *result = new std::vector<TYPE >;
|
|
||||||
result->reserve(LENGTH);
|
|
||||||
|
|
||||||
for (unsigned int i = 0; i < LENGTH; ++i) {
|
|
||||||
result->push_back($self->NAME[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%ignore CLASS::NAME;
|
|
||||||
%enddef
|
|
||||||
|
|
||||||
%define ASSIMP_POINTER_ARRAY(CLASS, TYPE, NAME, LENGTH)
|
|
||||||
%csmethodmodifiers Get##NAME() "private";
|
|
||||||
%newobject CLASS::Get##NAME;
|
|
||||||
%extend CLASS {
|
|
||||||
std::vector<TYPE *> *Get##NAME() {
|
|
||||||
std::vector<TYPE *> *result = new std::vector<TYPE *>;
|
|
||||||
result->reserve(LENGTH);
|
|
||||||
|
|
||||||
TYPE *currentValue = (TYPE *)$self->NAME;
|
|
||||||
TYPE *valueLimit = (TYPE *)$self->NAME + LENGTH;
|
|
||||||
while (currentValue < valueLimit) {
|
|
||||||
result->push_back(currentValue);
|
|
||||||
++currentValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%ignore CLASS::NAME;
|
|
||||||
%enddef
|
|
||||||
|
|
||||||
%define ASSIMP_POINTER_POINTER(CLASS, TYPE, NAME, LENGTH)
|
|
||||||
%csmethodmodifiers Get##NAME() "private";
|
|
||||||
%newobject CLASS::Get##NAME;
|
|
||||||
%extend CLASS {
|
|
||||||
std::vector<TYPE *> *Get##NAME() {
|
|
||||||
std::vector<TYPE *> *result = new std::vector<TYPE *>;
|
|
||||||
result->reserve(LENGTH);
|
|
||||||
|
|
||||||
TYPE **currentValue = $self->NAME;
|
|
||||||
TYPE **valueLimit = $self->NAME + LENGTH;
|
|
||||||
while (currentValue < valueLimit) {
|
|
||||||
result->push_back(*currentValue);
|
|
||||||
++currentValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%ignore CLASS::NAME;
|
|
||||||
%enddef
|
|
||||||
|
|
||||||
%define ASSIMP_POINTER_ARRAY_ARRAY(CLASS, TYPE, NAME, OUTER_LENGTH, INNER_LENGTH)
|
|
||||||
%csmethodmodifiers Get##NAME() "private";
|
|
||||||
%newobject CLASS::Get##NAME;
|
|
||||||
%extend CLASS {
|
|
||||||
std::vector< std::vector<TYPE*> > *Get##NAME() {
|
|
||||||
std::vector< std::vector<TYPE*> > *result = new std::vector< std::vector<TYPE*> >;
|
|
||||||
result->reserve(OUTER_LENGTH);
|
|
||||||
|
|
||||||
for (unsigned int i = 0; i < OUTER_LENGTH; ++i) {
|
|
||||||
std::vector<TYPE *> currentElements;
|
|
||||||
|
|
||||||
if ($self->NAME[i] != 0) {
|
|
||||||
currentElements.reserve(INNER_LENGTH);
|
|
||||||
|
|
||||||
TYPE *currentValue = $self->NAME[i];
|
|
||||||
TYPE *valueLimit = $self->NAME[i] + INNER_LENGTH;
|
|
||||||
while (currentValue < valueLimit) {
|
|
||||||
currentElements.push_back(currentValue);
|
|
||||||
++currentValue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
result->push_back(currentElements);
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%ignore CLASS::NAME;
|
|
||||||
%enddef
|
|
||||||
|
|
||||||
%define ASSIMP_GETMATERIAL(XXX, KEY, TYPE, NAME)
|
|
||||||
%csmethodmodifiers Get##NAME() "private";
|
|
||||||
%newobject aiMaterial::Get##NAME;
|
|
||||||
%extend aiMaterial {
|
|
||||||
bool Get##NAME(TYPE* INOUT) {
|
|
||||||
return aiGetMaterial##XXX($self, KEY, INOUT) == AI_SUCCESS;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%enddef
|
|
||||||
|
|
||||||
|
|
||||||
/////// aiAnimation
|
|
||||||
ASSIMP_POINTER_POINTER(aiAnimation,aiNodeAnim,mChannels,$self->mNumChannels);
|
|
||||||
ASSIMP_POINTER_POINTER(aiAnimation,aiMeshAnim,mMeshChannels,$self->mNumMeshChannels);
|
|
||||||
%typemap(cscode) aiAnimation %{
|
|
||||||
public aiNodeAnimVector mChannels { get { return GetmChannels(); } }
|
|
||||||
public aiMeshAnimVector mMeshChannels { get { return GetmMeshChannels(); } }
|
|
||||||
%}
|
|
||||||
|
|
||||||
/////// aiAnimMesh
|
|
||||||
%ignore aiAnimMesh::mVertices;
|
|
||||||
%ignore aiAnimMesh::mNormals;
|
|
||||||
%ignore aiAnimMesh::mTangents;
|
|
||||||
%ignore aiAnimMesh::mColors;
|
|
||||||
%ignore aiAnimMesh::mTextureCoords;
|
|
||||||
|
|
||||||
/////// aiBone
|
|
||||||
ASSIMP_POINTER_ARRAY(aiBone,aiVertexWeight,mWeights,$self->mNumWeights);
|
|
||||||
|
|
||||||
/////// aiCamera
|
|
||||||
// OK
|
|
||||||
|
|
||||||
/////// aiColor3D
|
|
||||||
// OK
|
|
||||||
|
|
||||||
/////// aiColor4D
|
|
||||||
// OK
|
|
||||||
|
|
||||||
/////// aiFace
|
|
||||||
ASSIMP_ARRAY(aiFace,unsigned int,mIndices,$self->mNumIndices);
|
|
||||||
%typemap(cscode) aiFace %{
|
|
||||||
public UintVector mIndices { get { return GetmIndices(); } }
|
|
||||||
%}
|
|
||||||
|
|
||||||
/////// TODO: aiFile
|
|
||||||
%ignore aiFile;
|
|
||||||
%ignore aiFile::FileSizeProc;
|
|
||||||
%ignore aiFile::FlushProc;
|
|
||||||
%ignore aiFile::ReadProc;
|
|
||||||
%ignore aiFile::SeekProc;
|
|
||||||
%ignore aiFile::TellProc;
|
|
||||||
%ignore aiFile::WriteProc;
|
|
||||||
|
|
||||||
/////// TODO: aiFileIO
|
|
||||||
%ignore aiFileIO;
|
|
||||||
%ignore aiFileIO::CloseProc;
|
|
||||||
%ignore aiFileIO::OpenPrc;
|
|
||||||
|
|
||||||
/////// aiLight
|
|
||||||
// Done
|
|
||||||
|
|
||||||
/////// aiLightSourceType
|
|
||||||
// Done
|
|
||||||
|
|
||||||
/////// TODO: aiLogStream
|
|
||||||
%ignore aiLogStream;
|
|
||||||
%ignore aiLogStream::callback;
|
|
||||||
|
|
||||||
/////// aiMaterial
|
|
||||||
%ignore aiMaterial::Get;
|
|
||||||
%ignore aiMaterial::GetTexture;
|
|
||||||
%ignore aiMaterial::mNumAllocated;
|
|
||||||
%ignore aiMaterial::mNumProperties;
|
|
||||||
%ignore aiMaterial::mProperties;
|
|
||||||
ASSIMP_GETMATERIAL(Color, AI_MATKEY_COLOR_DIFFUSE, aiColor4D, Diffuse);
|
|
||||||
ASSIMP_GETMATERIAL(Color, AI_MATKEY_COLOR_SPECULAR, aiColor4D, Specular);
|
|
||||||
ASSIMP_GETMATERIAL(Color, AI_MATKEY_COLOR_AMBIENT, aiColor4D, Ambient);
|
|
||||||
ASSIMP_GETMATERIAL(Color, AI_MATKEY_COLOR_EMISSIVE, aiColor4D, Emissive);
|
|
||||||
ASSIMP_GETMATERIAL(Float, AI_MATKEY_OPACITY, float, Opacity);
|
|
||||||
ASSIMP_GETMATERIAL(Float, AI_MATKEY_SHININESS_STRENGTH, float, ShininessStrength);
|
|
||||||
ASSIMP_GETMATERIAL(Integer, AI_MATKEY_SHADING_MODEL, int, ShadingModel);
|
|
||||||
ASSIMP_GETMATERIAL(Integer, AI_MATKEY_TEXFLAGS_DIFFUSE(0), int, TexFlagsDiffuse0);
|
|
||||||
ASSIMP_GETMATERIAL(Integer, AI_MATKEY_MAPPINGMODE_U_DIFFUSE(0),int, MappingModeUDiffuse0);
|
|
||||||
ASSIMP_GETMATERIAL(Integer, AI_MATKEY_MAPPINGMODE_V_DIFFUSE(0),int, MappingModeVDiffuse0);
|
|
||||||
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_DIFFUSE(0), aiString, TextureDiffuse0);
|
|
||||||
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_SPECULAR(0), aiString, TextureSpecular0);
|
|
||||||
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_OPACITY(0), aiString, TextureOpacity0);
|
|
||||||
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_AMBIENT(0), aiString, TextureAmbient0);
|
|
||||||
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_EMISSIVE(0), aiString, TextureEmissive0);
|
|
||||||
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_SHININESS(0), aiString, TextureShininess0);
|
|
||||||
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_LIGHTMAP(0), aiString, TextureLightmap0);
|
|
||||||
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_NORMALS(0), aiString, TextureNormals0);
|
|
||||||
ASSIMP_GETMATERIAL(String, AI_MATKEY_TEXTURE_HEIGHT(0), aiString, TextureHeight0);
|
|
||||||
ASSIMP_GETMATERIAL(String, AI_MATKEY_GLOBAL_BACKGROUND_IMAGE, aiString, GlobalBackgroundImage);
|
|
||||||
ASSIMP_GETMATERIAL(Integer, AI_MATKEY_TWOSIDED, int, TwoSided);
|
|
||||||
%typemap(cscode) aiMaterial %{
|
|
||||||
public aiColor4D Diffuse { get { var v = new aiColor4D(); return GetDiffuse(v)?v:DefaultDiffuse; } }
|
|
||||||
public aiColor4D Specular { get { var v = new aiColor4D(); return GetSpecular(v)?v:DefaultSpecular; } }
|
|
||||||
public aiColor4D Ambient { get { var v = new aiColor4D(); return GetAmbient(v)?v:DefaultAmbient; } }
|
|
||||||
public aiColor4D Emissive { get { var v = new aiColor4D(); return GetEmissive(v)?v:DefaultEmissive; } }
|
|
||||||
public float Opacity { get { float v = 0; return GetOpacity(ref v)?v:DefaultOpacity; } }
|
|
||||||
public float ShininessStrength { get { float v = 0; return GetShininessStrength(ref v)?v:DefaultShininessStrength; } }
|
|
||||||
public aiShadingMode ShadingModel { get { int v = 0; return GetShadingModel(ref v)?((aiShadingMode)v):DefaultShadingModel; } }
|
|
||||||
public aiTextureFlags TexFlagsDiffuse0 { get { int v = 0; return GetTexFlagsDiffuse0(ref v)?((aiTextureFlags)v):DefaultTexFlagsDiffuse0; } }
|
|
||||||
public aiTextureMapMode MappingModeUDiffuse0 { get { int v = 0; return GetMappingModeUDiffuse0(ref v)?((aiTextureMapMode)v):DefaultMappingModeUDiffuse0; } }
|
|
||||||
public aiTextureMapMode MappingModeVDiffuse0 { get { int v = 0; return GetMappingModeVDiffuse0(ref v)?((aiTextureMapMode)v):DefaultMappingModeVDiffuse0; } }
|
|
||||||
public string TextureDiffuse0 { get { var v = new aiString(); return GetTextureDiffuse0(v)?v.ToString():DefaultTextureDiffuse; } }
|
|
||||||
public bool TwoSided { get { int v = 0; return GetTwoSided(ref v)?(v!=0):DefaultTwoSided; } }
|
|
||||||
|
|
||||||
// These values are returned if the value material property isn't set
|
|
||||||
// Override these if you don't want to check for null
|
|
||||||
public static aiColor4D DefaultDiffuse = new aiColor4D(1.0f, 1.0f, 1.0f, 1.0f);
|
|
||||||
public static aiColor4D DefaultSpecular = new aiColor4D(1.0f, 1.0f, 1.0f, 1.0f);
|
|
||||||
public static aiColor4D DefaultAmbient = new aiColor4D(0.0f, 0.0f, 0.0f, 1.0f);
|
|
||||||
public static aiColor4D DefaultEmissive = new aiColor4D(0.0f, 0.0f, 0.0f, 1.0f);
|
|
||||||
public static float DefaultShininessStrength = 1.0f;
|
|
||||||
public static float DefaultOpacity = 1.0f;
|
|
||||||
public static aiShadingMode DefaultShadingModel = (aiShadingMode)0;
|
|
||||||
public static aiTextureFlags DefaultTexFlagsDiffuse0 = (aiTextureFlags)0;
|
|
||||||
public static aiTextureMapMode DefaultMappingModeUDiffuse0 = aiTextureMapMode.aiTextureMapMode_Wrap;
|
|
||||||
public static aiTextureMapMode DefaultMappingModeVDiffuse0 = aiTextureMapMode.aiTextureMapMode_Wrap;
|
|
||||||
public static string DefaultTextureDiffuse = null;
|
|
||||||
public static bool DefaultTwoSided = false;
|
|
||||||
%}
|
|
||||||
|
|
||||||
/////// aiMatrix3x3
|
|
||||||
%ignore aiMatrix3x3::operator!=;
|
|
||||||
%ignore aiMatrix3x3::operator*;
|
|
||||||
%ignore aiMatrix3x3::operator*=;
|
|
||||||
%ignore aiMatrix3x3::operator==;
|
|
||||||
%ignore aiMatrix3x3::operator[];
|
|
||||||
|
|
||||||
/////// aiMatrix4x4
|
|
||||||
%ignore aiMatrix4x4::operator!=;
|
|
||||||
%ignore aiMatrix4x4::operator*;
|
|
||||||
%ignore aiMatrix4x4::operator*=;
|
|
||||||
%ignore aiMatrix4x4::operator==;
|
|
||||||
%ignore aiMatrix4x4::operator[];
|
|
||||||
|
|
||||||
/////// aiMesh
|
|
||||||
ASSIMP_POINTER_POINTER(aiMesh,aiAnimMesh,mAnimMeshes,$self->mNumAnimMeshes);
|
|
||||||
ASSIMP_POINTER_ARRAY(aiMesh,aiVector3D,mBitangents,$self->mNumVertices);
|
|
||||||
ASSIMP_POINTER_POINTER(aiMesh,aiBone,mBones,$self->mNumBones);
|
|
||||||
ASSIMP_POINTER_ARRAY_ARRAY(aiMesh,aiColor4D,mColors,AI_MAX_NUMBER_OF_COLOR_SETS,$self->mNumVertices);
|
|
||||||
ASSIMP_POINTER_ARRAY(aiMesh,aiFace,mFaces,$self->mNumFaces);
|
|
||||||
ASSIMP_POINTER_ARRAY(aiMesh,aiVector3D,mNormals,$self->mNumVertices);
|
|
||||||
ASSIMP_POINTER_ARRAY(aiMesh,aiVector3D,mTangents,$self->mNumVertices);
|
|
||||||
ASSIMP_POINTER_ARRAY_ARRAY(aiMesh,aiVector3D,mTextureCoords,AI_MAX_NUMBER_OF_TEXTURECOORDS,$self->mNumVertices);
|
|
||||||
ASSIMP_ARRAY(aiMesh,unsigned int,mNumUVComponents,AI_MAX_NUMBER_OF_TEXTURECOORDS);
|
|
||||||
ASSIMP_POINTER_ARRAY(aiMesh,aiVector3D,mVertices,$self->mNumVertices);
|
|
||||||
%typemap(cstype) unsigned int mPrimitiveTypes "aiPrimitiveType";
|
|
||||||
%typemap(csin) unsigned int mPrimitiveTypes "(uint)$csinput";
|
|
||||||
%typemap(csvarout) unsigned int mPrimitiveTypes %{ get { return (aiPrimitiveType)$imcall; } %}
|
|
||||||
%typemap(cscode) aiMesh %{
|
|
||||||
public aiVector3DVector mBitangents { get { return GetmBitangents(); } }
|
|
||||||
public aiBoneVector mBones { get { return GetmBones(); } }
|
|
||||||
public aiColor4DVectorVector mColors { get { return GetmColors(); } }
|
|
||||||
public aiFaceVector mFaces { get { return GetmFaces(); } }
|
|
||||||
public aiVector3DVector mNormals { get { return GetmNormals(); } }
|
|
||||||
public aiVector3DVector mTangents { get { return GetmTangents(); } }
|
|
||||||
public aiVector3DVectorVector mTextureCoords { get { return GetmTextureCoords(); } }
|
|
||||||
public aiVector3DVector mVertices { get { return GetmVertices(); } }
|
|
||||||
%}
|
|
||||||
|
|
||||||
/////// aiMeshAnim
|
|
||||||
ASSIMP_POINTER_ARRAY(aiMeshAnim,aiMeshKey,mKeys,$self->mNumKeys);
|
|
||||||
%typemap(cscode) aiMeshAnim %{
|
|
||||||
public aiMeshKeyVector mKeys { get { return GetmKeys(); } }
|
|
||||||
%}
|
|
||||||
|
|
||||||
/////// aiMeshKey
|
|
||||||
// Done
|
|
||||||
|
|
||||||
/////// aiNode
|
|
||||||
ASSIMP_POINTER_POINTER(aiNode,aiNode,mChildren,$self->mNumChildren);
|
|
||||||
ASSIMP_ARRAY(aiNode,unsigned int,mMeshes,$self->mNumMeshes);
|
|
||||||
%typemap(cscode) aiNode %{
|
|
||||||
public aiNodeVector mChildren { get { return GetmChildren(); } }
|
|
||||||
public UintVector mMeshes { get { return GetmMeshes(); } }
|
|
||||||
%}
|
|
||||||
|
|
||||||
/////// aiNodeAnim
|
|
||||||
ASSIMP_POINTER_ARRAY(aiNodeAnim,aiVectorKey,mPositionKeys,$self->mNumPositionKeys);
|
|
||||||
ASSIMP_POINTER_ARRAY(aiNodeAnim,aiQuatKey,mRotationKeys,$self->mNumRotationKeys);
|
|
||||||
ASSIMP_POINTER_ARRAY(aiNodeAnim,aiVectorKey,mScalingKeys,$self->mNumScalingKeys);
|
|
||||||
%typemap(cscode) aiNodeAnim %{
|
|
||||||
public aiVectorKeyVector mPositionKeys { get { return GetmPositionKeys(); } }
|
|
||||||
public aiQuatKeyVector mRotationKeys { get { return GetmRotationKeys(); } }
|
|
||||||
public aiVectorKeyVector mScalingKeys { get { return GetmScalingKeys(); } }
|
|
||||||
%}
|
|
||||||
|
|
||||||
/////// aiPlane
|
|
||||||
// Done
|
|
||||||
|
|
||||||
/////// aiPostProcessSteps
|
|
||||||
%typemap(cscode) aiPostProcessSteps %{
|
|
||||||
, aiProcess_ConvertToLeftHanded = aiProcess_MakeLeftHanded|aiProcess_FlipUVs|aiProcess_FlipWindingOrder,
|
|
||||||
%}
|
|
||||||
|
|
||||||
/////// aiQuaternion
|
|
||||||
// Done
|
|
||||||
|
|
||||||
/////// aiQuatKey
|
|
||||||
// Done
|
|
||||||
|
|
||||||
/////// aiRay
|
|
||||||
// Done
|
|
||||||
|
|
||||||
/////// aiScene
|
|
||||||
ASSIMP_POINTER_POINTER(aiScene,aiAnimation,mAnimations,$self->mNumAnimations);
|
|
||||||
ASSIMP_POINTER_POINTER(aiScene,aiCamera,mCameras,$self->mNumCameras);
|
|
||||||
ASSIMP_POINTER_POINTER(aiScene,aiLight,mLights,$self->mNumLights);
|
|
||||||
ASSIMP_POINTER_POINTER(aiScene,aiMaterial,mMaterials,$self->mNumMaterials);
|
|
||||||
ASSIMP_POINTER_POINTER(aiScene,aiMesh,mMeshes,$self->mNumMeshes);
|
|
||||||
ASSIMP_POINTER_POINTER(aiScene,aiTexture,mTextures,$self->mNumTextures);
|
|
||||||
%typemap(cscode) aiScene %{
|
|
||||||
public aiAnimationVector mAnimations { get { return GetmAnimations(); } }
|
|
||||||
public aiCameraVector mCameras { get { return GetmCameras(); } }
|
|
||||||
public aiLightVector mLights { get { return GetmLights(); } }
|
|
||||||
public aiMaterialVector mMaterials { get { return GetmMaterials(); } }
|
|
||||||
public aiMeshVector mMeshes { get { return GetmMeshes(); } }
|
|
||||||
public aiTextureVector mTextures { get { return GetmTextures(); } }
|
|
||||||
%}
|
|
||||||
|
|
||||||
/////// aiString
|
|
||||||
%ignore aiString::Append;
|
|
||||||
%ignore aiString::Clear;
|
|
||||||
%ignore aiString::Set;
|
|
||||||
%rename(Data) aiString::data;
|
|
||||||
%rename(Length) aiString::length;
|
|
||||||
%typemap(cscode) aiString %{
|
|
||||||
public override string ToString() { return Data; }
|
|
||||||
%}
|
|
||||||
|
|
||||||
|
|
||||||
/////// aiTexel
|
|
||||||
// Done
|
|
||||||
|
|
||||||
/////// TODO: aiTexture
|
|
||||||
%ignore aiString::achFormatHint;
|
|
||||||
%ignore aiString::pcData;
|
|
||||||
|
|
||||||
/////// aiUVTransform
|
|
||||||
// Done
|
|
||||||
|
|
||||||
/////// aiVector2D
|
|
||||||
// Done
|
|
||||||
|
|
||||||
/////// aiVector3D
|
|
||||||
// Done
|
|
||||||
|
|
||||||
/////// aiVectorKey
|
|
||||||
// Done
|
|
||||||
|
|
||||||
/////// aiVertexWeight
|
|
||||||
// Done
|
|
||||||
|
|
||||||
/////// Assimp::*
|
|
||||||
%ignore Assimp::IOStream;
|
|
||||||
%ignore Assimp::IOSystem;
|
|
||||||
%ignore Assimp::Importer::ApplyPostProcessing;
|
|
||||||
%ignore Assimp::Importer::FindLoader;
|
|
||||||
%ignore Assimp::Importer::GetIOHandler;
|
|
||||||
%ignore Assimp::Importer::GetExtensionList(std::string&);
|
|
||||||
%ignore Assimp::Importer::GetExtensionList(aiString&);
|
|
||||||
%ignore Assimp::Importer::ReadFileFromMemory;
|
|
||||||
%ignore Assimp::Importer::RegisterLoader;
|
|
||||||
%ignore Assimp::Importer::RegisterPPStep;
|
|
||||||
%ignore Assimp::Importer::SetIOHandler;
|
|
||||||
%ignore Assimp::Importer::SetPropertyInteger;
|
|
||||||
%ignore Assimp::Importer::SetPropertyFloat;
|
|
||||||
%ignore Assimp::Importer::SetPropertyString;
|
|
||||||
%ignore Assimp::Importer::SetPropertyBool;
|
|
||||||
%ignore Assimp::Importer::UnregisterLoader;
|
|
||||||
%ignore Assimp::Importer::UnregisterPPStep;
|
|
||||||
%extend Assimp::Importer {
|
|
||||||
std::string GetExtensionList() {
|
|
||||||
std::string tmp;
|
|
||||||
$self->GetExtensionList(tmp);
|
|
||||||
return tmp;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%typemap(cstype) unsigned int pFlags "aiPostProcessSteps";
|
|
||||||
%typemap(csin) unsigned int pFlags "(uint)$csinput"
|
|
||||||
%typemap(csvarout) unsigned int pFlags %{ get { return (aiPostProcessSteps)$imcall; } %}
|
|
||||||
%ignore Assimp::Logger;
|
|
||||||
%ignore Assimp::NullLogger;
|
|
||||||
|
|
||||||
/////// Globals
|
|
||||||
%ignore ::aiImportFileEx;
|
|
||||||
%ignore ::aiImportFileEx;
|
|
||||||
%ignore ::aiGetMaterialProperty;
|
|
||||||
%ignore ::aiGetMaterialFloatArray;
|
|
||||||
%ignore ::aiGetMaterialFloat;
|
|
||||||
%ignore ::aiGetMaterialIntegerArray;
|
|
||||||
%ignore ::aiGetMaterialInteger;
|
|
||||||
%ignore ::aiGetMaterialColor;
|
|
||||||
%ignore ::aiGetMaterialString;
|
|
||||||
%ignore ::aiGetMaterialTextureCount;
|
|
||||||
%ignore ::aiGetMaterialTexture;
|
|
||||||
|
|
||||||
|
|
||||||
%include "..\..\..\include\assimp\defs.h"
|
|
||||||
%include "..\..\..\include\assimp\config.h"
|
|
||||||
%include "..\..\..\include\assimp\types.h"
|
|
||||||
%include "..\..\..\include\assimp\version.h"
|
|
||||||
%include "..\..\..\include\assimp\postprocess.h"
|
|
||||||
%include "..\..\..\include\assimp\vector2.h"
|
|
||||||
%include "..\..\..\include\assimp\vector3.h"
|
|
||||||
%include "..\..\..\include\assimp\color4.h"
|
|
||||||
%include "..\..\..\include\assimp\matrix3x3.h"
|
|
||||||
%include "..\..\..\include\assimp\matrix4x4.h"
|
|
||||||
%include "..\..\..\include\assimp\camera.h"
|
|
||||||
%include "..\..\..\include\assimp\light.h"
|
|
||||||
%include "..\..\..\include\assimp\anim.h"
|
|
||||||
%include "..\..\..\include\assimp\mesh.h"
|
|
||||||
%include "..\..\..\include\assimp\cfileio.h"
|
|
||||||
%include "..\..\..\include\assimp\material.h"
|
|
||||||
%include "..\..\..\include\assimp\quaternion.h"
|
|
||||||
%include "..\..\..\include\assimp\scene.h"
|
|
||||||
%include "..\..\..\include\assimp\texture.h"
|
|
||||||
%include "..\..\..\include\assimp\Importer.hpp"
|
|
||||||
%include "..\..\..\include\assimp\ProgressHandler.hpp"
|
|
||||||
//%include "..\..\..\include\IOSystem.h"
|
|
||||||
//%include "..\..\..\include\IOStream.h"
|
|
||||||
//%include "..\..\..\include\Logger.h"
|
|
||||||
//%include "..\..\..\include\LogStream.h"
|
|
||||||
//%include "..\..\..\include\NullLogger.h"
|
|
||||||
|
|
||||||
|
|
||||||
%template(aiColor4D) aiColor4t<float>;
|
|
||||||
|
|
||||||
%template(aiVector3D) aiVector3t<float>;
|
|
||||||
%template(aiVector2D) aiVector2t<float>;
|
|
||||||
|
|
||||||
%template(aiQuaternion) aiQuaterniont<float>;
|
|
||||||
%template(aiMatrix3x3) aiMatrix3x3t<float>;
|
|
||||||
%template(aiMatrix4x4) aiMatrix4x4t<float>;
|
|
||||||
|
|
||||||
%template(FloatVector) std::vector<float>;
|
|
||||||
%template(UintVector) std::vector<unsigned int>;
|
|
||||||
%template(aiAnimationVector) std::vector<aiAnimation *>;
|
|
||||||
%template(aiAnimMeshVector) std::vector<aiAnimMesh *>;
|
|
||||||
%template(aiBoneVector) std::vector<aiBone *>;
|
|
||||||
%template(aiCameraVector) std::vector<aiCamera *>;
|
|
||||||
%template(aiColor4DVectorVector) std::vector<std::vector<aiColor4D *> >;
|
|
||||||
%template(aiColor4DVector) std::vector<aiColor4D *>;
|
|
||||||
%template(aiFaceVector) std::vector<aiFace *>;
|
|
||||||
%template(aiLightVector) std::vector<aiLight *>;
|
|
||||||
%template(aiMaterialVector) std::vector<aiMaterial *>;
|
|
||||||
%template(aiMeshAnimVector) std::vector<aiMeshAnim *>;
|
|
||||||
%template(aiMeshKeyVector) std::vector<aiMeshKey *>;
|
|
||||||
%template(aiMeshVector) std::vector<aiMesh *>;
|
|
||||||
%template(aiNodeVector) std::vector<aiNode *>;
|
|
||||||
%template(aiNodeAnimVector) std::vector<aiNodeAnim *>;
|
|
||||||
%template(aiQuatKeyVector) std::vector<aiQuatKey *>;
|
|
||||||
%template(aiTextureVector) std::vector<aiTexture *>;
|
|
||||||
%template(aiVector3DVector) std::vector<aiVector3D *>;
|
|
||||||
%template(aiVector3DVectorVector) std::vector<std::vector<aiVector3D *> >;
|
|
||||||
%template(aiVectorKeyVector) std::vector<aiVectorKey *>;
|
|
||||||
%template(aiVertexWeightVector) std::vector<aiVertexWeight *>;
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,176 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProductVersion>9.0.21022</ProductVersion>
|
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
|
||||||
<ProjectGuid>{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}</ProjectGuid>
|
|
||||||
<OutputType>Library</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>Assimp</RootNamespace>
|
|
||||||
<AssemblyName>Assimp.Interop</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<TargetFrameworkSubset>
|
|
||||||
</TargetFrameworkSubset>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>..\..\..\bin\%24%28ProjectName%29_%24%28ConfigurationName%29_%24%28PlatformName%29\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
|
||||||
<OutputPath>bin\x86\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="Microsoft.DirectX, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Core">
|
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Xml.Linq">
|
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Data.DataSetExtensions">
|
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\Assimp.NET\Assimp.NET.vcproj">
|
|
||||||
<Project>{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}</Project>
|
|
||||||
<Name>Assimp_NET</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="aiAnimation.cs" />
|
|
||||||
<Compile Include="aiAnimationVector.cs" />
|
|
||||||
<Compile Include="aiAnimBehaviour.cs" />
|
|
||||||
<Compile Include="aiAnimMesh.cs" />
|
|
||||||
<Compile Include="aiAnimMeshVector.cs" />
|
|
||||||
<Compile Include="aiBlendMode.cs" />
|
|
||||||
<Compile Include="aiBone.cs" />
|
|
||||||
<Compile Include="aiBoneVector.cs" />
|
|
||||||
<Compile Include="aiCamera.cs" />
|
|
||||||
<Compile Include="aiCameraVector.cs" />
|
|
||||||
<Compile Include="aiColor3D.cs" />
|
|
||||||
<Compile Include="aiColor4D.cs" />
|
|
||||||
<Compile Include="aiColor4DVector.cs" />
|
|
||||||
<Compile Include="aiColor4DVectorVector.cs" />
|
|
||||||
<Compile Include="aiComponent.cs" />
|
|
||||||
<Compile Include="aiDefaultLogStream.cs" />
|
|
||||||
<Compile Include="aiFace.cs" />
|
|
||||||
<Compile Include="aiFaceVector.cs" />
|
|
||||||
<Compile Include="aiLight.cs" />
|
|
||||||
<Compile Include="aiLightSourceType.cs" />
|
|
||||||
<Compile Include="aiLightVector.cs" />
|
|
||||||
<Compile Include="aiMaterial.cs" />
|
|
||||||
<Compile Include="aiMaterialProperty.cs" />
|
|
||||||
<Compile Include="aiMaterialVector.cs" />
|
|
||||||
<Compile Include="aiMatrix3x3.cs" />
|
|
||||||
<Compile Include="aiMatrix4x4.cs" />
|
|
||||||
<Compile Include="aiMemoryInfo.cs" />
|
|
||||||
<Compile Include="aiMesh.cs" />
|
|
||||||
<Compile Include="aiMeshAnim.cs" />
|
|
||||||
<Compile Include="aiMeshAnimVector.cs" />
|
|
||||||
<Compile Include="aiMeshKey.cs" />
|
|
||||||
<Compile Include="aiMeshKeyVector.cs" />
|
|
||||||
<Compile Include="aiMeshVector.cs" />
|
|
||||||
<Compile Include="aiNode.cs" />
|
|
||||||
<Compile Include="aiNodeAnim.cs" />
|
|
||||||
<Compile Include="aiNodeAnimVector.cs" />
|
|
||||||
<Compile Include="aiNodeVector.cs" />
|
|
||||||
<Compile Include="aiOrigin.cs" />
|
|
||||||
<Compile Include="aiPlane.cs" />
|
|
||||||
<Compile Include="aiPostProcessSteps.cs" />
|
|
||||||
<Compile Include="aiPrimitiveType.cs" />
|
|
||||||
<Compile Include="aiPropertyTypeInfo.cs" />
|
|
||||||
<Compile Include="aiQuaternion.cs" />
|
|
||||||
<Compile Include="aiQuatKey.cs" />
|
|
||||||
<Compile Include="aiQuatKeyVector.cs" />
|
|
||||||
<Compile Include="aiRay.cs" />
|
|
||||||
<Compile Include="aiReturn.cs" />
|
|
||||||
<Compile Include="aiScene.cs" />
|
|
||||||
<Compile Include="aiShadingMode.cs" />
|
|
||||||
<Compile Include="aiString.cs" />
|
|
||||||
<Compile Include="aiTexel.cs" />
|
|
||||||
<Compile Include="aiTexture.cs" />
|
|
||||||
<Compile Include="aiTextureFlags.cs" />
|
|
||||||
<Compile Include="aiTextureMapMode.cs" />
|
|
||||||
<Compile Include="aiTextureMapping.cs" />
|
|
||||||
<Compile Include="aiTextureOp.cs" />
|
|
||||||
<Compile Include="aiTextureType.cs" />
|
|
||||||
<Compile Include="aiTextureVector.cs" />
|
|
||||||
<Compile Include="aiUVTransform.cs" />
|
|
||||||
<Compile Include="aiVector2D.cs" />
|
|
||||||
<Compile Include="aiVector3D.cs" />
|
|
||||||
<Compile Include="aiVector3DVector.cs" />
|
|
||||||
<Compile Include="aiVector3DVectorVector.cs" />
|
|
||||||
<Compile Include="aiVectorKey.cs" />
|
|
||||||
<Compile Include="aiVectorKeyVector.cs" />
|
|
||||||
<Compile Include="aiVertexWeight.cs" />
|
|
||||||
<Compile Include="aiVertexWeightVector.cs" />
|
|
||||||
<Compile Include="Assimp.cs" />
|
|
||||||
<Compile Include="AssimpPINVOKE.cs" />
|
|
||||||
<Compile Include="FloatVector.cs" />
|
|
||||||
<Compile Include="Importer.cs" />
|
|
||||||
<Compile Include="ProgressHandler.cs" />
|
|
||||||
<Compile Include="SWIGTYPE_p_aiImporterDesc.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="SWIGTYPE_p_Assimp__BaseImporter.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="SWIGTYPE_p_Assimp__ImporterPimpl.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="SWIGTYPE_p_float.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="SWIGTYPE_p_std__string.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="SWIGTYPE_p_void.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="UintVector.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Folder Include="Properties\" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
</Project>
|
|
|
@ -1,137 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class Assimp {
|
|
||||||
public static uint MAXLEN {
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.MAXLEN_get();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string aiGetLegalString() {
|
|
||||||
string ret = AssimpPINVOKE.aiGetLegalString();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static uint aiGetVersionMinor() {
|
|
||||||
uint ret = AssimpPINVOKE.aiGetVersionMinor();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static uint aiGetVersionMajor() {
|
|
||||||
uint ret = AssimpPINVOKE.aiGetVersionMajor();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static uint aiGetVersionRevision() {
|
|
||||||
uint ret = AssimpPINVOKE.aiGetVersionRevision();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static uint aiGetCompileFlags() {
|
|
||||||
uint ret = AssimpPINVOKE.aiGetCompileFlags();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static readonly double AI_MATH_PI = AssimpPINVOKE.AI_MATH_PI_get();
|
|
||||||
public static readonly double AI_MATH_TWO_PI = AssimpPINVOKE.AI_MATH_TWO_PI_get();
|
|
||||||
public static readonly double AI_MATH_HALF_PI = AssimpPINVOKE.AI_MATH_HALF_PI_get();
|
|
||||||
public static readonly double AI_MATH_PI_F = AssimpPINVOKE.AI_MATH_PI_F_get();
|
|
||||||
public static readonly double AI_MATH_TWO_PI_F = AssimpPINVOKE.AI_MATH_TWO_PI_F_get();
|
|
||||||
public static readonly double AI_MATH_HALF_PI_F = AssimpPINVOKE.AI_MATH_HALF_PI_F_get();
|
|
||||||
public static readonly string AI_CONFIG_GLOB_MEASURE_TIME = AssimpPINVOKE.AI_CONFIG_GLOB_MEASURE_TIME_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_SBBC_MAX_BONES = AssimpPINVOKE.AI_CONFIG_PP_SBBC_MAX_BONES_get();
|
|
||||||
public static readonly int AI_SBBC_DEFAULT_MAX_BONES = AssimpPINVOKE.AI_SBBC_DEFAULT_MAX_BONES_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_CT_MAX_SMOOTHING_ANGLE = AssimpPINVOKE.AI_CONFIG_PP_CT_MAX_SMOOTHING_ANGLE_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_CT_TEXTURE_CHANNEL_INDEX = AssimpPINVOKE.AI_CONFIG_PP_CT_TEXTURE_CHANNEL_INDEX_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_GSN_MAX_SMOOTHING_ANGLE = AssimpPINVOKE.AI_CONFIG_PP_GSN_MAX_SMOOTHING_ANGLE_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_MDL_COLORMAP = AssimpPINVOKE.AI_CONFIG_IMPORT_MDL_COLORMAP_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_RRM_EXCLUDE_LIST = AssimpPINVOKE.AI_CONFIG_PP_RRM_EXCLUDE_LIST_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_PTV_KEEP_HIERARCHY = AssimpPINVOKE.AI_CONFIG_PP_PTV_KEEP_HIERARCHY_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_PTV_NORMALIZE = AssimpPINVOKE.AI_CONFIG_PP_PTV_NORMALIZE_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_FD_REMOVE = AssimpPINVOKE.AI_CONFIG_PP_FD_REMOVE_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_OG_EXCLUDE_LIST = AssimpPINVOKE.AI_CONFIG_PP_OG_EXCLUDE_LIST_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_SLM_TRIANGLE_LIMIT = AssimpPINVOKE.AI_CONFIG_PP_SLM_TRIANGLE_LIMIT_get();
|
|
||||||
public static readonly int AI_SLM_DEFAULT_MAX_TRIANGLES = AssimpPINVOKE.AI_SLM_DEFAULT_MAX_TRIANGLES_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_SLM_VERTEX_LIMIT = AssimpPINVOKE.AI_CONFIG_PP_SLM_VERTEX_LIMIT_get();
|
|
||||||
public static readonly int AI_SLM_DEFAULT_MAX_VERTICES = AssimpPINVOKE.AI_SLM_DEFAULT_MAX_VERTICES_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_LBW_MAX_WEIGHTS = AssimpPINVOKE.AI_CONFIG_PP_LBW_MAX_WEIGHTS_get();
|
|
||||||
public static readonly int AI_LMW_MAX_WEIGHTS = AssimpPINVOKE.AI_LMW_MAX_WEIGHTS_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_DB_THRESHOLD = AssimpPINVOKE.AI_CONFIG_PP_DB_THRESHOLD_get();
|
|
||||||
public static readonly double AI_DEBONE_THRESHOLD = AssimpPINVOKE.AI_DEBONE_THRESHOLD_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_DB_ALL_OR_NONE = AssimpPINVOKE.AI_CONFIG_PP_DB_ALL_OR_NONE_get();
|
|
||||||
public static readonly int PP_ICL_PTCACHE_SIZE = AssimpPINVOKE.PP_ICL_PTCACHE_SIZE_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_ICL_PTCACHE_SIZE = AssimpPINVOKE.AI_CONFIG_PP_ICL_PTCACHE_SIZE_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_RVC_FLAGS = AssimpPINVOKE.AI_CONFIG_PP_RVC_FLAGS_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_SBP_REMOVE = AssimpPINVOKE.AI_CONFIG_PP_SBP_REMOVE_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_FID_ANIM_ACCURACY = AssimpPINVOKE.AI_CONFIG_PP_FID_ANIM_ACCURACY_get();
|
|
||||||
public static readonly int AI_UVTRAFO_SCALING = AssimpPINVOKE.AI_UVTRAFO_SCALING_get();
|
|
||||||
public static readonly int AI_UVTRAFO_ROTATION = AssimpPINVOKE.AI_UVTRAFO_ROTATION_get();
|
|
||||||
public static readonly int AI_UVTRAFO_TRANSLATION = AssimpPINVOKE.AI_UVTRAFO_TRANSLATION_get();
|
|
||||||
public static readonly int AI_UVTRAFO_ALL = AssimpPINVOKE.AI_UVTRAFO_ALL_get();
|
|
||||||
public static readonly string AI_CONFIG_PP_TUV_EVALUATE = AssimpPINVOKE.AI_CONFIG_PP_TUV_EVALUATE_get();
|
|
||||||
public static readonly string AI_CONFIG_FAVOUR_SPEED = AssimpPINVOKE.AI_CONFIG_FAVOUR_SPEED_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_GLOBAL_KEYFRAME = AssimpPINVOKE.AI_CONFIG_IMPORT_GLOBAL_KEYFRAME_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_MD3_KEYFRAME = AssimpPINVOKE.AI_CONFIG_IMPORT_MD3_KEYFRAME_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_MD2_KEYFRAME = AssimpPINVOKE.AI_CONFIG_IMPORT_MD2_KEYFRAME_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_MDL_KEYFRAME = AssimpPINVOKE.AI_CONFIG_IMPORT_MDL_KEYFRAME_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_MDC_KEYFRAME = AssimpPINVOKE.AI_CONFIG_IMPORT_MDC_KEYFRAME_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_SMD_KEYFRAME = AssimpPINVOKE.AI_CONFIG_IMPORT_SMD_KEYFRAME_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_UNREAL_KEYFRAME = AssimpPINVOKE.AI_CONFIG_IMPORT_UNREAL_KEYFRAME_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_AC_SEPARATE_BFCULL = AssimpPINVOKE.AI_CONFIG_IMPORT_AC_SEPARATE_BFCULL_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_AC_EVAL_SUBDIVISION = AssimpPINVOKE.AI_CONFIG_IMPORT_AC_EVAL_SUBDIVISION_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_UNREAL_HANDLE_FLAGS = AssimpPINVOKE.AI_CONFIG_IMPORT_UNREAL_HANDLE_FLAGS_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_TER_MAKE_UVS = AssimpPINVOKE.AI_CONFIG_IMPORT_TER_MAKE_UVS_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_ASE_RECONSTRUCT_NORMALS = AssimpPINVOKE.AI_CONFIG_IMPORT_ASE_RECONSTRUCT_NORMALS_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_MD3_HANDLE_MULTIPART = AssimpPINVOKE.AI_CONFIG_IMPORT_MD3_HANDLE_MULTIPART_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_MD3_SKIN_NAME = AssimpPINVOKE.AI_CONFIG_IMPORT_MD3_SKIN_NAME_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_MD3_SHADER_SRC = AssimpPINVOKE.AI_CONFIG_IMPORT_MD3_SHADER_SRC_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_LWO_ONE_LAYER_ONLY = AssimpPINVOKE.AI_CONFIG_IMPORT_LWO_ONE_LAYER_ONLY_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_MD5_NO_ANIM_AUTOLOAD = AssimpPINVOKE.AI_CONFIG_IMPORT_MD5_NO_ANIM_AUTOLOAD_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_LWS_ANIM_START = AssimpPINVOKE.AI_CONFIG_IMPORT_LWS_ANIM_START_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_LWS_ANIM_END = AssimpPINVOKE.AI_CONFIG_IMPORT_LWS_ANIM_END_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_IRR_ANIM_FPS = AssimpPINVOKE.AI_CONFIG_IMPORT_IRR_ANIM_FPS_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_OGRE_MATERIAL_FILE = AssimpPINVOKE.AI_CONFIG_IMPORT_OGRE_MATERIAL_FILE_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_OGRE_TEXTURETYPE_FROM_FILENAME = AssimpPINVOKE.AI_CONFIG_IMPORT_OGRE_TEXTURETYPE_FROM_FILENAME_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_IFC_SKIP_SPACE_REPRESENTATIONS = AssimpPINVOKE.AI_CONFIG_IMPORT_IFC_SKIP_SPACE_REPRESENTATIONS_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_IFC_SKIP_CURVE_REPRESENTATIONS = AssimpPINVOKE.AI_CONFIG_IMPORT_IFC_SKIP_CURVE_REPRESENTATIONS_get();
|
|
||||||
public static readonly string AI_CONFIG_IMPORT_IFC_CUSTOM_TRIANGULATION = AssimpPINVOKE.AI_CONFIG_IMPORT_IFC_CUSTOM_TRIANGULATION_get();
|
|
||||||
public static readonly int ASSIMP_CFLAGS_SHARED = AssimpPINVOKE.ASSIMP_CFLAGS_SHARED_get();
|
|
||||||
public static readonly int ASSIMP_CFLAGS_STLPORT = AssimpPINVOKE.ASSIMP_CFLAGS_STLPORT_get();
|
|
||||||
public static readonly int ASSIMP_CFLAGS_DEBUG = AssimpPINVOKE.ASSIMP_CFLAGS_DEBUG_get();
|
|
||||||
public static readonly int ASSIMP_CFLAGS_NOBOOST = AssimpPINVOKE.ASSIMP_CFLAGS_NOBOOST_get();
|
|
||||||
public static readonly int ASSIMP_CFLAGS_SINGLETHREADED = AssimpPINVOKE.ASSIMP_CFLAGS_SINGLETHREADED_get();
|
|
||||||
public static readonly int AI_MAX_FACE_INDICES = AssimpPINVOKE.AI_MAX_FACE_INDICES_get();
|
|
||||||
public static readonly int AI_MAX_BONE_WEIGHTS = AssimpPINVOKE.AI_MAX_BONE_WEIGHTS_get();
|
|
||||||
public static readonly int AI_MAX_VERTICES = AssimpPINVOKE.AI_MAX_VERTICES_get();
|
|
||||||
public static readonly int AI_MAX_FACES = AssimpPINVOKE.AI_MAX_FACES_get();
|
|
||||||
public static readonly int AI_MAX_NUMBER_OF_COLOR_SETS = AssimpPINVOKE.AI_MAX_NUMBER_OF_COLOR_SETS_get();
|
|
||||||
public static readonly int AI_MAX_NUMBER_OF_TEXTURECOORDS = AssimpPINVOKE.AI_MAX_NUMBER_OF_TEXTURECOORDS_get();
|
|
||||||
public static readonly string AI_DEFAULT_MATERIAL_NAME = AssimpPINVOKE.AI_DEFAULT_MATERIAL_NAME_get();
|
|
||||||
public static readonly string _AI_MATKEY_TEXTURE_BASE = AssimpPINVOKE._AI_MATKEY_TEXTURE_BASE_get();
|
|
||||||
public static readonly string _AI_MATKEY_UVWSRC_BASE = AssimpPINVOKE._AI_MATKEY_UVWSRC_BASE_get();
|
|
||||||
public static readonly string _AI_MATKEY_TEXOP_BASE = AssimpPINVOKE._AI_MATKEY_TEXOP_BASE_get();
|
|
||||||
public static readonly string _AI_MATKEY_MAPPING_BASE = AssimpPINVOKE._AI_MATKEY_MAPPING_BASE_get();
|
|
||||||
public static readonly string _AI_MATKEY_TEXBLEND_BASE = AssimpPINVOKE._AI_MATKEY_TEXBLEND_BASE_get();
|
|
||||||
public static readonly string _AI_MATKEY_MAPPINGMODE_U_BASE = AssimpPINVOKE._AI_MATKEY_MAPPINGMODE_U_BASE_get();
|
|
||||||
public static readonly string _AI_MATKEY_MAPPINGMODE_V_BASE = AssimpPINVOKE._AI_MATKEY_MAPPINGMODE_V_BASE_get();
|
|
||||||
public static readonly string _AI_MATKEY_TEXMAP_AXIS_BASE = AssimpPINVOKE._AI_MATKEY_TEXMAP_AXIS_BASE_get();
|
|
||||||
public static readonly string _AI_MATKEY_UVTRANSFORM_BASE = AssimpPINVOKE._AI_MATKEY_UVTRANSFORM_BASE_get();
|
|
||||||
public static readonly string _AI_MATKEY_TEXFLAGS_BASE = AssimpPINVOKE._AI_MATKEY_TEXFLAGS_BASE_get();
|
|
||||||
public static readonly int AI_SCENE_FLAGS_INCOMPLETE = AssimpPINVOKE.AI_SCENE_FLAGS_INCOMPLETE_get();
|
|
||||||
public static readonly int AI_SCENE_FLAGS_VALIDATED = AssimpPINVOKE.AI_SCENE_FLAGS_VALIDATED_get();
|
|
||||||
public static readonly int AI_SCENE_FLAGS_VALIDATION_WARNING = AssimpPINVOKE.AI_SCENE_FLAGS_VALIDATION_WARNING_get();
|
|
||||||
public static readonly int AI_SCENE_FLAGS_NON_VERBOSE_FORMAT = AssimpPINVOKE.AI_SCENE_FLAGS_NON_VERBOSE_FORMAT_get();
|
|
||||||
public static readonly int AI_SCENE_FLAGS_TERRAIN = AssimpPINVOKE.AI_SCENE_FLAGS_TERRAIN_get();
|
|
||||||
public static readonly int AI_PROPERTY_WAS_NOT_EXISTING = AssimpPINVOKE.AI_PROPERTY_WAS_NOT_EXISTING_get();
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,346 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class FloatVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<float>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal FloatVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(FloatVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~FloatVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_FloatVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public FloatVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (float element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(float[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(float[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, float[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<float> System.Collections.Generic.IEnumerable<float>.GetEnumerator() {
|
|
||||||
return new FloatVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new FloatVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public FloatVectorEnumerator GetEnumerator() {
|
|
||||||
return new FloatVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class FloatVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<float>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private FloatVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public FloatVectorEnumerator(FloatVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public float Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (float)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.FloatVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(float x) {
|
|
||||||
AssimpPINVOKE.FloatVector_Add(swigCPtr, x);
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.FloatVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.FloatVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.FloatVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public FloatVector() : this(AssimpPINVOKE.new_FloatVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public FloatVector(FloatVector other) : this(AssimpPINVOKE.new_FloatVector__SWIG_1(FloatVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public FloatVector(int capacity) : this(AssimpPINVOKE.new_FloatVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private float getitemcopy(int index) {
|
|
||||||
float ret = AssimpPINVOKE.FloatVector_getitemcopy(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private float getitem(int index) {
|
|
||||||
float ret = AssimpPINVOKE.FloatVector_getitem(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, float val) {
|
|
||||||
AssimpPINVOKE.FloatVector_setitem(swigCPtr, index, val);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(FloatVector values) {
|
|
||||||
AssimpPINVOKE.FloatVector_AddRange(swigCPtr, FloatVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public FloatVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.FloatVector_GetRange(swigCPtr, index, count);
|
|
||||||
FloatVector ret = (cPtr == IntPtr.Zero) ? null : new FloatVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, float x) {
|
|
||||||
AssimpPINVOKE.FloatVector_Insert(swigCPtr, index, x);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, FloatVector values) {
|
|
||||||
AssimpPINVOKE.FloatVector_InsertRange(swigCPtr, index, FloatVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.FloatVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.FloatVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static FloatVector Repeat(float value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.FloatVector_Repeat(value, count);
|
|
||||||
FloatVector ret = (cPtr == IntPtr.Zero) ? null : new FloatVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.FloatVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.FloatVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, FloatVector values) {
|
|
||||||
AssimpPINVOKE.FloatVector_SetRange(swigCPtr, index, FloatVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(float value) {
|
|
||||||
bool ret = AssimpPINVOKE.FloatVector_Contains(swigCPtr, value);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(float value) {
|
|
||||||
int ret = AssimpPINVOKE.FloatVector_IndexOf(swigCPtr, value);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(float value) {
|
|
||||||
int ret = AssimpPINVOKE.FloatVector_LastIndexOf(swigCPtr, value);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(float value) {
|
|
||||||
bool ret = AssimpPINVOKE.FloatVector_Remove(swigCPtr, value);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,206 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class Importer : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal Importer(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(Importer obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~Importer() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_Importer(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Importer() : this(AssimpPINVOKE.new_Importer__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public Importer(Importer other) : this(AssimpPINVOKE.new_Importer__SWIG_1(Importer.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetPropertyInteger(string szName, int iErrorReturn) {
|
|
||||||
int ret = AssimpPINVOKE.Importer_GetPropertyInteger__SWIG_0(swigCPtr, szName, iErrorReturn);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetPropertyInteger(string szName) {
|
|
||||||
int ret = AssimpPINVOKE.Importer_GetPropertyInteger__SWIG_1(swigCPtr, szName);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetPropertyBool(string szName, bool bErrorReturn) {
|
|
||||||
bool ret = AssimpPINVOKE.Importer_GetPropertyBool__SWIG_0(swigCPtr, szName, bErrorReturn);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetPropertyBool(string szName) {
|
|
||||||
bool ret = AssimpPINVOKE.Importer_GetPropertyBool__SWIG_1(swigCPtr, szName);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float GetPropertyFloat(string szName, float fErrorReturn) {
|
|
||||||
float ret = AssimpPINVOKE.Importer_GetPropertyFloat__SWIG_0(swigCPtr, szName, fErrorReturn);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float GetPropertyFloat(string szName) {
|
|
||||||
float ret = AssimpPINVOKE.Importer_GetPropertyFloat__SWIG_1(swigCPtr, szName);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public string GetPropertyString(string szName, string sErrorReturn) {
|
|
||||||
string ret = AssimpPINVOKE.Importer_GetPropertyString__SWIG_0(swigCPtr, szName, sErrorReturn);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public string GetPropertyString(string szName) {
|
|
||||||
string ret = AssimpPINVOKE.Importer_GetPropertyString__SWIG_1(swigCPtr, szName);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsDefaultIOHandler() {
|
|
||||||
bool ret = AssimpPINVOKE.Importer_IsDefaultIOHandler(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetProgressHandler(ProgressHandler pHandler) {
|
|
||||||
AssimpPINVOKE.Importer_SetProgressHandler(swigCPtr, ProgressHandler.getCPtr(pHandler));
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProgressHandler GetProgressHandler() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.Importer_GetProgressHandler(swigCPtr);
|
|
||||||
ProgressHandler ret = (cPtr == IntPtr.Zero) ? null : new ProgressHandler(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsDefaultProgressHandler() {
|
|
||||||
bool ret = AssimpPINVOKE.Importer_IsDefaultProgressHandler(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool ValidateFlags(aiPostProcessSteps pFlags) {
|
|
||||||
bool ret = AssimpPINVOKE.Importer_ValidateFlags(swigCPtr, (uint)pFlags);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiScene ReadFile(string pFile, aiPostProcessSteps pFlags) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.Importer_ReadFile__SWIG_0(swigCPtr, pFile, (uint)pFlags);
|
|
||||||
aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void FreeScene() {
|
|
||||||
AssimpPINVOKE.Importer_FreeScene(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public string GetErrorString() {
|
|
||||||
string ret = AssimpPINVOKE.Importer_GetErrorString(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiScene GetScene() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.Importer_GetScene(swigCPtr);
|
|
||||||
aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiScene GetOrphanedScene() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.Importer_GetOrphanedScene(swigCPtr);
|
|
||||||
aiScene ret = (cPtr == IntPtr.Zero) ? null : new aiScene(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsExtensionSupported(string szExtension) {
|
|
||||||
bool ret = AssimpPINVOKE.Importer_IsExtensionSupported__SWIG_0(swigCPtr, szExtension);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void GetExtensionList(aiString szOut) {
|
|
||||||
AssimpPINVOKE.Importer_GetExtensionList__SWIG_0(swigCPtr, aiString.getCPtr(szOut));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void GetExtensionList(SWIGTYPE_p_std__string szOut) {
|
|
||||||
AssimpPINVOKE.Importer_GetExtensionList__SWIG_1(swigCPtr, SWIGTYPE_p_std__string.getCPtr(szOut));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint GetImporterCount() {
|
|
||||||
uint ret = AssimpPINVOKE.Importer_GetImporterCount(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWIGTYPE_p_aiImporterDesc GetImporterInfo(uint index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.Importer_GetImporterInfo(swigCPtr, index);
|
|
||||||
SWIGTYPE_p_aiImporterDesc ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_aiImporterDesc(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWIGTYPE_p_Assimp__BaseImporter GetImporter(uint index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.Importer_GetImporter__SWIG_0(swigCPtr, index);
|
|
||||||
SWIGTYPE_p_Assimp__BaseImporter ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_Assimp__BaseImporter(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWIGTYPE_p_Assimp__BaseImporter GetImporter(string szExtension) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.Importer_GetImporter__SWIG_1(swigCPtr, szExtension);
|
|
||||||
SWIGTYPE_p_Assimp__BaseImporter ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_Assimp__BaseImporter(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint GetImporterIndex(string szExtension) {
|
|
||||||
uint ret = AssimpPINVOKE.Importer_GetImporterIndex(swigCPtr, szExtension);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void GetMemoryRequirements(aiMemoryInfo arg0) {
|
|
||||||
AssimpPINVOKE.Importer_GetMemoryRequirements(swigCPtr, aiMemoryInfo.getCPtr(arg0));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetExtraVerbose(bool bDo) {
|
|
||||||
AssimpPINVOKE.Importer_SetExtraVerbose(swigCPtr, bDo);
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWIGTYPE_p_Assimp__ImporterPimpl Pimpl() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.Importer_Pimpl__SWIG_0(swigCPtr);
|
|
||||||
SWIGTYPE_p_Assimp__ImporterPimpl ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_Assimp__ImporterPimpl(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public string GetExtensionList() {
|
|
||||||
string ret = AssimpPINVOKE.Importer_GetExtensionList__SWIG_2(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,53 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class ProgressHandler : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal ProgressHandler(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(ProgressHandler obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~ProgressHandler() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_ProgressHandler(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual bool Update(float percentage) {
|
|
||||||
bool ret = AssimpPINVOKE.ProgressHandler_Update__SWIG_0(swigCPtr, percentage);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual bool Update() {
|
|
||||||
bool ret = AssimpPINVOKE.ProgressHandler_Update__SWIG_1(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class SWIGTYPE_p_Assimp__BaseImporter {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
|
|
||||||
internal SWIGTYPE_p_Assimp__BaseImporter(IntPtr cPtr, bool futureUse) {
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected SWIGTYPE_p_Assimp__BaseImporter() {
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(SWIGTYPE_p_Assimp__BaseImporter obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class SWIGTYPE_p_Assimp__ImporterPimpl {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
|
|
||||||
internal SWIGTYPE_p_Assimp__ImporterPimpl(IntPtr cPtr, bool futureUse) {
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected SWIGTYPE_p_Assimp__ImporterPimpl() {
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(SWIGTYPE_p_Assimp__ImporterPimpl obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class SWIGTYPE_p_aiImporterDesc {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
|
|
||||||
internal SWIGTYPE_p_aiImporterDesc(IntPtr cPtr, bool futureUse) {
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected SWIGTYPE_p_aiImporterDesc() {
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(SWIGTYPE_p_aiImporterDesc obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class SWIGTYPE_p_float {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
|
|
||||||
internal SWIGTYPE_p_float(IntPtr cPtr, bool futureUse) {
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected SWIGTYPE_p_float() {
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(SWIGTYPE_p_float obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class SWIGTYPE_p_std__string {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
|
|
||||||
internal SWIGTYPE_p_std__string(IntPtr cPtr, bool futureUse) {
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected SWIGTYPE_p_std__string() {
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(SWIGTYPE_p_std__string obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class SWIGTYPE_p_void {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
|
|
||||||
internal SWIGTYPE_p_void(IntPtr cPtr, bool futureUse) {
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected SWIGTYPE_p_void() {
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(SWIGTYPE_p_void obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,346 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class UintVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<uint>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal UintVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(UintVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~UintVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_UintVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public UintVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (uint element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(uint[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(uint[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, uint[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<uint> System.Collections.Generic.IEnumerable<uint>.GetEnumerator() {
|
|
||||||
return new UintVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new UintVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public UintVectorEnumerator GetEnumerator() {
|
|
||||||
return new UintVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class UintVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<uint>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private UintVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public UintVectorEnumerator(UintVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public uint Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (uint)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.UintVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(uint x) {
|
|
||||||
AssimpPINVOKE.UintVector_Add(swigCPtr, x);
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.UintVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.UintVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.UintVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public UintVector() : this(AssimpPINVOKE.new_UintVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public UintVector(UintVector other) : this(AssimpPINVOKE.new_UintVector__SWIG_1(UintVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public UintVector(int capacity) : this(AssimpPINVOKE.new_UintVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint getitemcopy(int index) {
|
|
||||||
uint ret = AssimpPINVOKE.UintVector_getitemcopy(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint getitem(int index) {
|
|
||||||
uint ret = AssimpPINVOKE.UintVector_getitem(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, uint val) {
|
|
||||||
AssimpPINVOKE.UintVector_setitem(swigCPtr, index, val);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(UintVector values) {
|
|
||||||
AssimpPINVOKE.UintVector_AddRange(swigCPtr, UintVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public UintVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.UintVector_GetRange(swigCPtr, index, count);
|
|
||||||
UintVector ret = (cPtr == IntPtr.Zero) ? null : new UintVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, uint x) {
|
|
||||||
AssimpPINVOKE.UintVector_Insert(swigCPtr, index, x);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, UintVector values) {
|
|
||||||
AssimpPINVOKE.UintVector_InsertRange(swigCPtr, index, UintVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.UintVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.UintVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static UintVector Repeat(uint value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.UintVector_Repeat(value, count);
|
|
||||||
UintVector ret = (cPtr == IntPtr.Zero) ? null : new UintVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.UintVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.UintVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, UintVector values) {
|
|
||||||
AssimpPINVOKE.UintVector_SetRange(swigCPtr, index, UintVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(uint value) {
|
|
||||||
bool ret = AssimpPINVOKE.UintVector_Contains(swigCPtr, value);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(uint value) {
|
|
||||||
int ret = AssimpPINVOKE.UintVector_IndexOf(swigCPtr, value);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(uint value) {
|
|
||||||
int ret = AssimpPINVOKE.UintVector_LastIndexOf(swigCPtr, value);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(uint value) {
|
|
||||||
bool ret = AssimpPINVOKE.UintVector_Remove(swigCPtr, value);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiAnimBehaviour {
|
|
||||||
aiAnimBehaviour_DEFAULT = 0x0,
|
|
||||||
aiAnimBehaviour_CONSTANT = 0x1,
|
|
||||||
aiAnimBehaviour_LINEAR = 0x2,
|
|
||||||
aiAnimBehaviour_REPEAT = 0x3
|
|
||||||
}
|
|
|
@ -1,92 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiAnimMesh : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiAnimMesh(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiAnimMesh obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiAnimMesh() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiAnimMesh(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D mBitangents {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiAnimMesh_mBitangents_set(swigCPtr, aiVector3D.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiAnimMesh_mBitangents_get(swigCPtr);
|
|
||||||
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumVertices {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiAnimMesh_mNumVertices_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiAnimMesh_mNumVertices_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimMesh() : this(AssimpPINVOKE.new_aiAnimMesh(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasPositions() {
|
|
||||||
bool ret = AssimpPINVOKE.aiAnimMesh_HasPositions(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasNormals() {
|
|
||||||
bool ret = AssimpPINVOKE.aiAnimMesh_HasNormals(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasTangentsAndBitangents() {
|
|
||||||
bool ret = AssimpPINVOKE.aiAnimMesh_HasTangentsAndBitangents(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasVertexColors(uint pIndex) {
|
|
||||||
bool ret = AssimpPINVOKE.aiAnimMesh_HasVertexColors(swigCPtr, pIndex);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasTextureCoords(uint pIndex) {
|
|
||||||
bool ret = AssimpPINVOKE.aiAnimMesh_HasTextureCoords(swigCPtr, pIndex);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiAnimMeshVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiAnimMesh>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiAnimMeshVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiAnimMeshVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiAnimMeshVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiAnimMeshVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimMeshVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiAnimMesh element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimMesh this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiAnimMesh[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiAnimMesh[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiAnimMesh[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiAnimMesh> System.Collections.Generic.IEnumerable<aiAnimMesh>.GetEnumerator() {
|
|
||||||
return new aiAnimMeshVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiAnimMeshVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimMeshVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiAnimMeshVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiAnimMeshVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiAnimMesh>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiAnimMeshVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiAnimMeshVectorEnumerator(aiAnimMeshVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiAnimMesh Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiAnimMesh)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiAnimMeshVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiAnimMesh x) {
|
|
||||||
AssimpPINVOKE.aiAnimMeshVector_Add(swigCPtr, aiAnimMesh.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiAnimMeshVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiAnimMeshVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiAnimMeshVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimMeshVector() : this(AssimpPINVOKE.new_aiAnimMeshVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimMeshVector(aiAnimMeshVector other) : this(AssimpPINVOKE.new_aiAnimMeshVector__SWIG_1(aiAnimMeshVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimMeshVector(int capacity) : this(AssimpPINVOKE.new_aiAnimMeshVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiAnimMesh getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiAnimMeshVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiAnimMesh ret = (cPtr == IntPtr.Zero) ? null : new aiAnimMesh(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiAnimMesh getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiAnimMeshVector_getitem(swigCPtr, index);
|
|
||||||
aiAnimMesh ret = (cPtr == IntPtr.Zero) ? null : new aiAnimMesh(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiAnimMesh val) {
|
|
||||||
AssimpPINVOKE.aiAnimMeshVector_setitem(swigCPtr, index, aiAnimMesh.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiAnimMeshVector values) {
|
|
||||||
AssimpPINVOKE.aiAnimMeshVector_AddRange(swigCPtr, aiAnimMeshVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimMeshVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiAnimMeshVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiAnimMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiAnimMeshVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiAnimMesh x) {
|
|
||||||
AssimpPINVOKE.aiAnimMeshVector_Insert(swigCPtr, index, aiAnimMesh.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiAnimMeshVector values) {
|
|
||||||
AssimpPINVOKE.aiAnimMeshVector_InsertRange(swigCPtr, index, aiAnimMeshVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiAnimMeshVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiAnimMeshVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiAnimMeshVector Repeat(aiAnimMesh value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiAnimMeshVector_Repeat(aiAnimMesh.getCPtr(value), count);
|
|
||||||
aiAnimMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiAnimMeshVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiAnimMeshVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiAnimMeshVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiAnimMeshVector values) {
|
|
||||||
AssimpPINVOKE.aiAnimMeshVector_SetRange(swigCPtr, index, aiAnimMeshVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiAnimMesh value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiAnimMeshVector_Contains(swigCPtr, aiAnimMesh.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiAnimMesh value) {
|
|
||||||
int ret = AssimpPINVOKE.aiAnimMeshVector_IndexOf(swigCPtr, aiAnimMesh.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiAnimMesh value) {
|
|
||||||
int ret = AssimpPINVOKE.aiAnimMeshVector_LastIndexOf(swigCPtr, aiAnimMesh.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiAnimMesh value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiAnimMeshVector_Remove(swigCPtr, aiAnimMesh.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,112 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiAnimation : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiAnimation(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiAnimation obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiAnimation() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiAnimation(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeAnimVector mChannels { get { return GetmChannels(); } }
|
|
||||||
public aiMeshAnimVector mMeshChannels { get { return GetmMeshChannels(); } }
|
|
||||||
|
|
||||||
public aiString mName {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiAnimation_mName_set(swigCPtr, aiString.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiAnimation_mName_get(swigCPtr);
|
|
||||||
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public double mDuration {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiAnimation_mDuration_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
double ret = AssimpPINVOKE.aiAnimation_mDuration_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public double mTicksPerSecond {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiAnimation_mTicksPerSecond_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
double ret = AssimpPINVOKE.aiAnimation_mTicksPerSecond_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumChannels {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiAnimation_mNumChannels_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiAnimation_mNumChannels_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumMeshChannels {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiAnimation_mNumMeshChannels_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiAnimation_mNumMeshChannels_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimation() : this(AssimpPINVOKE.new_aiAnimation(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiNodeAnimVector GetmChannels() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiAnimation_GetmChannels(swigCPtr);
|
|
||||||
aiNodeAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeAnimVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiMeshAnimVector GetmMeshChannels() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiAnimation_GetmMeshChannels(swigCPtr);
|
|
||||||
aiMeshAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshAnimVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiAnimationVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiAnimation>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiAnimationVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiAnimationVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiAnimationVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiAnimationVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimationVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiAnimation element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimation this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiAnimation[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiAnimation[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiAnimation[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiAnimation> System.Collections.Generic.IEnumerable<aiAnimation>.GetEnumerator() {
|
|
||||||
return new aiAnimationVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiAnimationVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimationVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiAnimationVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiAnimationVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiAnimation>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiAnimationVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiAnimationVectorEnumerator(aiAnimationVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiAnimation Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiAnimation)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiAnimationVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiAnimation x) {
|
|
||||||
AssimpPINVOKE.aiAnimationVector_Add(swigCPtr, aiAnimation.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiAnimationVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiAnimationVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiAnimationVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimationVector() : this(AssimpPINVOKE.new_aiAnimationVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimationVector(aiAnimationVector other) : this(AssimpPINVOKE.new_aiAnimationVector__SWIG_1(aiAnimationVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimationVector(int capacity) : this(AssimpPINVOKE.new_aiAnimationVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiAnimation getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiAnimationVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiAnimation ret = (cPtr == IntPtr.Zero) ? null : new aiAnimation(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiAnimation getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiAnimationVector_getitem(swigCPtr, index);
|
|
||||||
aiAnimation ret = (cPtr == IntPtr.Zero) ? null : new aiAnimation(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiAnimation val) {
|
|
||||||
AssimpPINVOKE.aiAnimationVector_setitem(swigCPtr, index, aiAnimation.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiAnimationVector values) {
|
|
||||||
AssimpPINVOKE.aiAnimationVector_AddRange(swigCPtr, aiAnimationVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimationVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiAnimationVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiAnimationVector ret = (cPtr == IntPtr.Zero) ? null : new aiAnimationVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiAnimation x) {
|
|
||||||
AssimpPINVOKE.aiAnimationVector_Insert(swigCPtr, index, aiAnimation.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiAnimationVector values) {
|
|
||||||
AssimpPINVOKE.aiAnimationVector_InsertRange(swigCPtr, index, aiAnimationVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiAnimationVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiAnimationVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiAnimationVector Repeat(aiAnimation value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiAnimationVector_Repeat(aiAnimation.getCPtr(value), count);
|
|
||||||
aiAnimationVector ret = (cPtr == IntPtr.Zero) ? null : new aiAnimationVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiAnimationVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiAnimationVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiAnimationVector values) {
|
|
||||||
AssimpPINVOKE.aiAnimationVector_SetRange(swigCPtr, index, aiAnimationVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiAnimation value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiAnimationVector_Contains(swigCPtr, aiAnimation.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiAnimation value) {
|
|
||||||
int ret = AssimpPINVOKE.aiAnimationVector_IndexOf(swigCPtr, aiAnimation.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiAnimation value) {
|
|
||||||
int ret = AssimpPINVOKE.aiAnimationVector_LastIndexOf(swigCPtr, aiAnimation.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiAnimation value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiAnimationVector_Remove(swigCPtr, aiAnimation.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,13 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiBlendMode {
|
|
||||||
aiBlendMode_Default = 0x0,
|
|
||||||
aiBlendMode_Additive = 0x1
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiBone : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiBone(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiBone obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiBone() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiBone(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiString mName {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiBone_mName_set(swigCPtr, aiString.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiBone_mName_get(swigCPtr);
|
|
||||||
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumWeights {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiBone_mNumWeights_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiBone_mNumWeights_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix4x4 mOffsetMatrix {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiBone_mOffsetMatrix_set(swigCPtr, aiMatrix4x4.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiBone_mOffsetMatrix_get(swigCPtr);
|
|
||||||
aiMatrix4x4 ret = (cPtr == IntPtr.Zero) ? null : new aiMatrix4x4(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiBone() : this(AssimpPINVOKE.new_aiBone__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiBone(aiBone other) : this(AssimpPINVOKE.new_aiBone__SWIG_1(aiBone.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVertexWeightVector GetmWeights() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiBone_GetmWeights(swigCPtr);
|
|
||||||
aiVertexWeightVector ret = (cPtr == IntPtr.Zero) ? null : new aiVertexWeightVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiBoneVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiBone>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiBoneVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiBoneVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiBoneVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiBoneVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiBoneVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiBone element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiBone this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiBone[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiBone[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiBone[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiBone> System.Collections.Generic.IEnumerable<aiBone>.GetEnumerator() {
|
|
||||||
return new aiBoneVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiBoneVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiBoneVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiBoneVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiBoneVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiBone>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiBoneVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiBoneVectorEnumerator(aiBoneVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiBone Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiBone)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiBoneVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiBone x) {
|
|
||||||
AssimpPINVOKE.aiBoneVector_Add(swigCPtr, aiBone.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiBoneVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiBoneVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiBoneVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiBoneVector() : this(AssimpPINVOKE.new_aiBoneVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiBoneVector(aiBoneVector other) : this(AssimpPINVOKE.new_aiBoneVector__SWIG_1(aiBoneVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiBoneVector(int capacity) : this(AssimpPINVOKE.new_aiBoneVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiBone getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiBoneVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiBone ret = (cPtr == IntPtr.Zero) ? null : new aiBone(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiBone getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiBoneVector_getitem(swigCPtr, index);
|
|
||||||
aiBone ret = (cPtr == IntPtr.Zero) ? null : new aiBone(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiBone val) {
|
|
||||||
AssimpPINVOKE.aiBoneVector_setitem(swigCPtr, index, aiBone.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiBoneVector values) {
|
|
||||||
AssimpPINVOKE.aiBoneVector_AddRange(swigCPtr, aiBoneVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiBoneVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiBoneVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiBoneVector ret = (cPtr == IntPtr.Zero) ? null : new aiBoneVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiBone x) {
|
|
||||||
AssimpPINVOKE.aiBoneVector_Insert(swigCPtr, index, aiBone.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiBoneVector values) {
|
|
||||||
AssimpPINVOKE.aiBoneVector_InsertRange(swigCPtr, index, aiBoneVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiBoneVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiBoneVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiBoneVector Repeat(aiBone value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiBoneVector_Repeat(aiBone.getCPtr(value), count);
|
|
||||||
aiBoneVector ret = (cPtr == IntPtr.Zero) ? null : new aiBoneVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiBoneVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiBoneVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiBoneVector values) {
|
|
||||||
AssimpPINVOKE.aiBoneVector_SetRange(swigCPtr, index, aiBoneVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiBone value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiBoneVector_Contains(swigCPtr, aiBone.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiBone value) {
|
|
||||||
int ret = AssimpPINVOKE.aiBoneVector_IndexOf(swigCPtr, aiBone.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiBone value) {
|
|
||||||
int ret = AssimpPINVOKE.aiBoneVector_LastIndexOf(swigCPtr, aiBone.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiBone value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiBoneVector_Remove(swigCPtr, aiBone.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,135 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiCamera : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiCamera(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiCamera obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiCamera() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiCamera(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiString mName {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiCamera_mName_set(swigCPtr, aiString.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiCamera_mName_get(swigCPtr);
|
|
||||||
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D mPosition {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiCamera_mPosition_set(swigCPtr, aiVector3D.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiCamera_mPosition_get(swigCPtr);
|
|
||||||
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D mUp {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiCamera_mUp_set(swigCPtr, aiVector3D.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiCamera_mUp_get(swigCPtr);
|
|
||||||
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D mLookAt {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiCamera_mLookAt_set(swigCPtr, aiVector3D.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiCamera_mLookAt_get(swigCPtr);
|
|
||||||
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float mHorizontalFOV {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiCamera_mHorizontalFOV_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiCamera_mHorizontalFOV_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float mClipPlaneNear {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiCamera_mClipPlaneNear_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiCamera_mClipPlaneNear_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float mClipPlaneFar {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiCamera_mClipPlaneFar_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiCamera_mClipPlaneFar_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float mAspect {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiCamera_mAspect_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiCamera_mAspect_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiCamera() : this(AssimpPINVOKE.new_aiCamera(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public void GetCameraMatrix(aiMatrix4x4 arg0) {
|
|
||||||
AssimpPINVOKE.aiCamera_GetCameraMatrix(swigCPtr, aiMatrix4x4.getCPtr(arg0));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiCameraVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiCamera>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiCameraVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiCameraVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiCameraVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiCameraVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiCameraVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiCamera element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiCamera this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiCamera[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiCamera[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiCamera[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiCamera> System.Collections.Generic.IEnumerable<aiCamera>.GetEnumerator() {
|
|
||||||
return new aiCameraVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiCameraVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiCameraVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiCameraVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiCameraVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiCamera>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiCameraVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiCameraVectorEnumerator(aiCameraVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiCamera Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiCamera)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiCameraVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiCamera x) {
|
|
||||||
AssimpPINVOKE.aiCameraVector_Add(swigCPtr, aiCamera.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiCameraVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiCameraVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiCameraVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiCameraVector() : this(AssimpPINVOKE.new_aiCameraVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiCameraVector(aiCameraVector other) : this(AssimpPINVOKE.new_aiCameraVector__SWIG_1(aiCameraVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiCameraVector(int capacity) : this(AssimpPINVOKE.new_aiCameraVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiCamera getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiCameraVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiCamera ret = (cPtr == IntPtr.Zero) ? null : new aiCamera(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiCamera getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiCameraVector_getitem(swigCPtr, index);
|
|
||||||
aiCamera ret = (cPtr == IntPtr.Zero) ? null : new aiCamera(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiCamera val) {
|
|
||||||
AssimpPINVOKE.aiCameraVector_setitem(swigCPtr, index, aiCamera.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiCameraVector values) {
|
|
||||||
AssimpPINVOKE.aiCameraVector_AddRange(swigCPtr, aiCameraVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiCameraVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiCameraVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiCameraVector ret = (cPtr == IntPtr.Zero) ? null : new aiCameraVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiCamera x) {
|
|
||||||
AssimpPINVOKE.aiCameraVector_Insert(swigCPtr, index, aiCamera.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiCameraVector values) {
|
|
||||||
AssimpPINVOKE.aiCameraVector_InsertRange(swigCPtr, index, aiCameraVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiCameraVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiCameraVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiCameraVector Repeat(aiCamera value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiCameraVector_Repeat(aiCamera.getCPtr(value), count);
|
|
||||||
aiCameraVector ret = (cPtr == IntPtr.Zero) ? null : new aiCameraVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiCameraVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiCameraVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiCameraVector values) {
|
|
||||||
AssimpPINVOKE.aiCameraVector_SetRange(swigCPtr, index, aiCameraVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiCamera value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiCameraVector_Contains(swigCPtr, aiCamera.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiCamera value) {
|
|
||||||
int ret = AssimpPINVOKE.aiCameraVector_IndexOf(swigCPtr, aiCamera.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiCamera value) {
|
|
||||||
int ret = AssimpPINVOKE.aiCameraVector_LastIndexOf(swigCPtr, aiCamera.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiCamera value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiCameraVector_Remove(swigCPtr, aiCamera.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,131 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiColor3D : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiColor3D(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiColor3D obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiColor3D() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiColor3D(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor3D() : this(AssimpPINVOKE.new_aiColor3D__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor3D(float _r, float _g, float _b) : this(AssimpPINVOKE.new_aiColor3D__SWIG_1(_r, _g, _b), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor3D(float _r) : this(AssimpPINVOKE.new_aiColor3D__SWIG_2(_r), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor3D(aiColor3D o) : this(AssimpPINVOKE.new_aiColor3D__SWIG_3(aiColor3D.getCPtr(o)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __equal__(aiColor3D other) {
|
|
||||||
bool ret = AssimpPINVOKE.aiColor3D___equal__(swigCPtr, aiColor3D.getCPtr(other));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __nequal__(aiColor3D other) {
|
|
||||||
bool ret = AssimpPINVOKE.aiColor3D___nequal__(swigCPtr, aiColor3D.getCPtr(other));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor3D __add__(aiColor3D c) {
|
|
||||||
aiColor3D ret = new aiColor3D(AssimpPINVOKE.aiColor3D___add__(swigCPtr, aiColor3D.getCPtr(c)), true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor3D __sub__(aiColor3D c) {
|
|
||||||
aiColor3D ret = new aiColor3D(AssimpPINVOKE.aiColor3D___sub__(swigCPtr, aiColor3D.getCPtr(c)), true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor3D __mul__(aiColor3D c) {
|
|
||||||
aiColor3D ret = new aiColor3D(AssimpPINVOKE.aiColor3D___mul____SWIG_0(swigCPtr, aiColor3D.getCPtr(c)), true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor3D __mul__(float f) {
|
|
||||||
aiColor3D ret = new aiColor3D(AssimpPINVOKE.aiColor3D___mul____SWIG_1(swigCPtr, f), true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float __idx__(uint i) {
|
|
||||||
float ret = AssimpPINVOKE.aiColor3D___idx____SWIG_0(swigCPtr, i);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsBlack() {
|
|
||||||
bool ret = AssimpPINVOKE.aiColor3D_IsBlack(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float r {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiColor3D_r_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiColor3D_r_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float g {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiColor3D_g_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiColor3D_g_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float b {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiColor3D_b_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiColor3D_b_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,140 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiColor4D : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiColor4D(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiColor4D obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiColor4D() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiColor4D(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4D() : this(AssimpPINVOKE.new_aiColor4D__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4D(float _r, float _g, float _b, float _a) : this(AssimpPINVOKE.new_aiColor4D__SWIG_1(_r, _g, _b, _a), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4D(float _r) : this(AssimpPINVOKE.new_aiColor4D__SWIG_2(_r), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4D(aiColor4D o) : this(AssimpPINVOKE.new_aiColor4D__SWIG_3(aiColor4D.getCPtr(o)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4D __addnset__(aiColor4D o) {
|
|
||||||
aiColor4D ret = new aiColor4D(AssimpPINVOKE.aiColor4D___addnset__(swigCPtr, aiColor4D.getCPtr(o)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4D __subnset__(aiColor4D o) {
|
|
||||||
aiColor4D ret = new aiColor4D(AssimpPINVOKE.aiColor4D___subnset__(swigCPtr, aiColor4D.getCPtr(o)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4D __mulnset__(float f) {
|
|
||||||
aiColor4D ret = new aiColor4D(AssimpPINVOKE.aiColor4D___mulnset__(swigCPtr, f), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4D __divnset__(float f) {
|
|
||||||
aiColor4D ret = new aiColor4D(AssimpPINVOKE.aiColor4D___divnset__(swigCPtr, f), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __equal__(aiColor4D other) {
|
|
||||||
bool ret = AssimpPINVOKE.aiColor4D___equal__(swigCPtr, aiColor4D.getCPtr(other));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __nequal__(aiColor4D other) {
|
|
||||||
bool ret = AssimpPINVOKE.aiColor4D___nequal__(swigCPtr, aiColor4D.getCPtr(other));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float __idx__(uint i) {
|
|
||||||
float ret = AssimpPINVOKE.aiColor4D___idx____SWIG_0(swigCPtr, i);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsBlack() {
|
|
||||||
bool ret = AssimpPINVOKE.aiColor4D_IsBlack(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float r {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiColor4D_r_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiColor4D_r_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float g {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiColor4D_g_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiColor4D_g_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float b {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiColor4D_b_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiColor4D_b_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float a {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiColor4D_a_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiColor4D_a_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiColor4DVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiColor4D>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiColor4DVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiColor4DVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiColor4DVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiColor4DVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4DVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiColor4D element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4D this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiColor4D[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiColor4D[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiColor4D[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiColor4D> System.Collections.Generic.IEnumerable<aiColor4D>.GetEnumerator() {
|
|
||||||
return new aiColor4DVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiColor4DVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4DVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiColor4DVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiColor4DVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiColor4D>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiColor4DVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiColor4DVectorEnumerator(aiColor4DVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiColor4D Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiColor4D)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiColor4DVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiColor4D x) {
|
|
||||||
AssimpPINVOKE.aiColor4DVector_Add(swigCPtr, aiColor4D.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiColor4DVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiColor4DVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiColor4DVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4DVector() : this(AssimpPINVOKE.new_aiColor4DVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4DVector(aiColor4DVector other) : this(AssimpPINVOKE.new_aiColor4DVector__SWIG_1(aiColor4DVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4DVector(int capacity) : this(AssimpPINVOKE.new_aiColor4DVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiColor4D getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiColor4DVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiColor4D ret = (cPtr == IntPtr.Zero) ? null : new aiColor4D(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiColor4D getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiColor4DVector_getitem(swigCPtr, index);
|
|
||||||
aiColor4D ret = (cPtr == IntPtr.Zero) ? null : new aiColor4D(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiColor4D val) {
|
|
||||||
AssimpPINVOKE.aiColor4DVector_setitem(swigCPtr, index, aiColor4D.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiColor4DVector values) {
|
|
||||||
AssimpPINVOKE.aiColor4DVector_AddRange(swigCPtr, aiColor4DVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4DVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiColor4DVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiColor4DVector ret = (cPtr == IntPtr.Zero) ? null : new aiColor4DVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiColor4D x) {
|
|
||||||
AssimpPINVOKE.aiColor4DVector_Insert(swigCPtr, index, aiColor4D.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiColor4DVector values) {
|
|
||||||
AssimpPINVOKE.aiColor4DVector_InsertRange(swigCPtr, index, aiColor4DVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiColor4DVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiColor4DVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiColor4DVector Repeat(aiColor4D value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiColor4DVector_Repeat(aiColor4D.getCPtr(value), count);
|
|
||||||
aiColor4DVector ret = (cPtr == IntPtr.Zero) ? null : new aiColor4DVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiColor4DVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiColor4DVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiColor4DVector values) {
|
|
||||||
AssimpPINVOKE.aiColor4DVector_SetRange(swigCPtr, index, aiColor4DVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiColor4D value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiColor4DVector_Contains(swigCPtr, aiColor4D.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiColor4D value) {
|
|
||||||
int ret = AssimpPINVOKE.aiColor4DVector_IndexOf(swigCPtr, aiColor4D.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiColor4D value) {
|
|
||||||
int ret = AssimpPINVOKE.aiColor4DVector_LastIndexOf(swigCPtr, aiColor4D.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiColor4D value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiColor4DVector_Remove(swigCPtr, aiColor4D.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,327 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiColor4DVectorVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerable<aiColor4DVector>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiColor4DVectorVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiColor4DVectorVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiColor4DVectorVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiColor4DVectorVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4DVectorVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiColor4DVector element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4DVector this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiColor4DVector[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiColor4DVector[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiColor4DVector[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiColor4DVector> System.Collections.Generic.IEnumerable<aiColor4DVector>.GetEnumerator() {
|
|
||||||
return new aiColor4DVectorVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiColor4DVectorVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4DVectorVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiColor4DVectorVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiColor4DVectorVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiColor4DVector>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiColor4DVectorVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiColor4DVectorVectorEnumerator(aiColor4DVectorVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiColor4DVector Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiColor4DVector)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiColor4DVectorVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiColor4DVector x) {
|
|
||||||
AssimpPINVOKE.aiColor4DVectorVector_Add(swigCPtr, aiColor4DVector.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiColor4DVectorVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiColor4DVectorVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiColor4DVectorVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4DVectorVector() : this(AssimpPINVOKE.new_aiColor4DVectorVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4DVectorVector(aiColor4DVectorVector other) : this(AssimpPINVOKE.new_aiColor4DVectorVector__SWIG_1(aiColor4DVectorVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4DVectorVector(int capacity) : this(AssimpPINVOKE.new_aiColor4DVectorVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiColor4DVector getitemcopy(int index) {
|
|
||||||
aiColor4DVector ret = new aiColor4DVector(AssimpPINVOKE.aiColor4DVectorVector_getitemcopy(swigCPtr, index), true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiColor4DVector getitem(int index) {
|
|
||||||
aiColor4DVector ret = new aiColor4DVector(AssimpPINVOKE.aiColor4DVectorVector_getitem(swigCPtr, index), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiColor4DVector val) {
|
|
||||||
AssimpPINVOKE.aiColor4DVectorVector_setitem(swigCPtr, index, aiColor4DVector.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiColor4DVectorVector values) {
|
|
||||||
AssimpPINVOKE.aiColor4DVectorVector_AddRange(swigCPtr, aiColor4DVectorVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4DVectorVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiColor4DVectorVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiColor4DVectorVector ret = (cPtr == IntPtr.Zero) ? null : new aiColor4DVectorVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiColor4DVector x) {
|
|
||||||
AssimpPINVOKE.aiColor4DVectorVector_Insert(swigCPtr, index, aiColor4DVector.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiColor4DVectorVector values) {
|
|
||||||
AssimpPINVOKE.aiColor4DVectorVector_InsertRange(swigCPtr, index, aiColor4DVectorVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiColor4DVectorVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiColor4DVectorVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiColor4DVectorVector Repeat(aiColor4DVector value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiColor4DVectorVector_Repeat(aiColor4DVector.getCPtr(value), count);
|
|
||||||
aiColor4DVectorVector ret = (cPtr == IntPtr.Zero) ? null : new aiColor4DVectorVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiColor4DVectorVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiColor4DVectorVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiColor4DVectorVector values) {
|
|
||||||
AssimpPINVOKE.aiColor4DVectorVector_SetRange(swigCPtr, index, aiColor4DVectorVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiComponent {
|
|
||||||
aiComponent_NORMALS = 0x2,
|
|
||||||
aiComponent_TANGENTS_AND_BITANGENTS = 0x4,
|
|
||||||
aiComponent_COLORS = 0x8,
|
|
||||||
aiComponent_TEXCOORDS = 0x10,
|
|
||||||
aiComponent_BONEWEIGHTS = 0x20,
|
|
||||||
aiComponent_ANIMATIONS = 0x40,
|
|
||||||
aiComponent_TEXTURES = 0x80,
|
|
||||||
aiComponent_LIGHTS = 0x100,
|
|
||||||
aiComponent_CAMERAS = 0x200,
|
|
||||||
aiComponent_MESHES = 0x400,
|
|
||||||
aiComponent_MATERIALS = 0x800
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiDefaultLogStream {
|
|
||||||
aiDefaultLogStream_FILE = 0x1,
|
|
||||||
aiDefaultLogStream_STDOUT = 0x2,
|
|
||||||
aiDefaultLogStream_STDERR = 0x4,
|
|
||||||
aiDefaultLogStream_DEBUGGER = 0x8,
|
|
||||||
_AI_DLS_ENFORCE_ENUM_SIZE = 0x7fffffff
|
|
||||||
}
|
|
|
@ -1,86 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiFace : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiFace(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiFace obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiFace() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiFace(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public UintVector mIndices { get { return GetmIndices(); } }
|
|
||||||
|
|
||||||
public uint mNumIndices {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiFace_mNumIndices_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiFace_mNumIndices_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiFace() : this(AssimpPINVOKE.new_aiFace__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiFace(aiFace o) : this(AssimpPINVOKE.new_aiFace__SWIG_1(aiFace.getCPtr(o)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiFace __set__(aiFace o) {
|
|
||||||
aiFace ret = new aiFace(AssimpPINVOKE.aiFace___set__(swigCPtr, aiFace.getCPtr(o)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __equal__(aiFace o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiFace___equal__(swigCPtr, aiFace.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __nequal__(aiFace o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiFace___nequal__(swigCPtr, aiFace.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private UintVector GetmIndices() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiFace_GetmIndices(swigCPtr);
|
|
||||||
UintVector ret = (cPtr == IntPtr.Zero) ? null : new UintVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiFaceVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiFace>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiFaceVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiFaceVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiFaceVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiFaceVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiFaceVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiFace element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiFace this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiFace[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiFace[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiFace[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiFace> System.Collections.Generic.IEnumerable<aiFace>.GetEnumerator() {
|
|
||||||
return new aiFaceVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiFaceVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiFaceVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiFaceVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiFaceVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiFace>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiFaceVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiFaceVectorEnumerator(aiFaceVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiFace Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiFace)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiFaceVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiFace x) {
|
|
||||||
AssimpPINVOKE.aiFaceVector_Add(swigCPtr, aiFace.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiFaceVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiFaceVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiFaceVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiFaceVector() : this(AssimpPINVOKE.new_aiFaceVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiFaceVector(aiFaceVector other) : this(AssimpPINVOKE.new_aiFaceVector__SWIG_1(aiFaceVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiFaceVector(int capacity) : this(AssimpPINVOKE.new_aiFaceVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiFace getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiFaceVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiFace ret = (cPtr == IntPtr.Zero) ? null : new aiFace(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiFace getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiFaceVector_getitem(swigCPtr, index);
|
|
||||||
aiFace ret = (cPtr == IntPtr.Zero) ? null : new aiFace(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiFace val) {
|
|
||||||
AssimpPINVOKE.aiFaceVector_setitem(swigCPtr, index, aiFace.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiFaceVector values) {
|
|
||||||
AssimpPINVOKE.aiFaceVector_AddRange(swigCPtr, aiFaceVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiFaceVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiFaceVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiFaceVector ret = (cPtr == IntPtr.Zero) ? null : new aiFaceVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiFace x) {
|
|
||||||
AssimpPINVOKE.aiFaceVector_Insert(swigCPtr, index, aiFace.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiFaceVector values) {
|
|
||||||
AssimpPINVOKE.aiFaceVector_InsertRange(swigCPtr, index, aiFaceVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiFaceVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiFaceVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiFaceVector Repeat(aiFace value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiFaceVector_Repeat(aiFace.getCPtr(value), count);
|
|
||||||
aiFaceVector ret = (cPtr == IntPtr.Zero) ? null : new aiFaceVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiFaceVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiFaceVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiFaceVector values) {
|
|
||||||
AssimpPINVOKE.aiFaceVector_SetRange(swigCPtr, index, aiFaceVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiFace value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiFaceVector_Contains(swigCPtr, aiFace.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiFace value) {
|
|
||||||
int ret = AssimpPINVOKE.aiFaceVector_IndexOf(swigCPtr, aiFace.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiFace value) {
|
|
||||||
int ret = AssimpPINVOKE.aiFaceVector_LastIndexOf(swigCPtr, aiFace.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiFace value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiFaceVector_Remove(swigCPtr, aiFace.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,122 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 1.3.40
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiFile : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiFile(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiFile obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiFile() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
Assimp_NETPINVOKE.delete_aiFile(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWIGTYPE_p_f_p_aiFile_p_char_size_t_size_t__size_t ReadProc {
|
|
||||||
set {
|
|
||||||
Assimp_NETPINVOKE.aiFile_ReadProc_set(swigCPtr, SWIGTYPE_p_f_p_aiFile_p_char_size_t_size_t__size_t.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = Assimp_NETPINVOKE.aiFile_ReadProc_get(swigCPtr);
|
|
||||||
SWIGTYPE_p_f_p_aiFile_p_char_size_t_size_t__size_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_aiFile_p_char_size_t_size_t__size_t(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWIGTYPE_p_f_p_aiFile_p_q_const__char_size_t_size_t__size_t WriteProc {
|
|
||||||
set {
|
|
||||||
Assimp_NETPINVOKE.aiFile_WriteProc_set(swigCPtr, SWIGTYPE_p_f_p_aiFile_p_q_const__char_size_t_size_t__size_t.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = Assimp_NETPINVOKE.aiFile_WriteProc_get(swigCPtr);
|
|
||||||
SWIGTYPE_p_f_p_aiFile_p_q_const__char_size_t_size_t__size_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_aiFile_p_q_const__char_size_t_size_t__size_t(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWIGTYPE_p_f_p_aiFile__size_t TellProc {
|
|
||||||
set {
|
|
||||||
Assimp_NETPINVOKE.aiFile_TellProc_set(swigCPtr, SWIGTYPE_p_f_p_aiFile__size_t.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = Assimp_NETPINVOKE.aiFile_TellProc_get(swigCPtr);
|
|
||||||
SWIGTYPE_p_f_p_aiFile__size_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_aiFile__size_t(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWIGTYPE_p_f_p_aiFile__size_t FileSizeProc {
|
|
||||||
set {
|
|
||||||
Assimp_NETPINVOKE.aiFile_FileSizeProc_set(swigCPtr, SWIGTYPE_p_f_p_aiFile__size_t.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = Assimp_NETPINVOKE.aiFile_FileSizeProc_get(swigCPtr);
|
|
||||||
SWIGTYPE_p_f_p_aiFile__size_t ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_aiFile__size_t(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWIGTYPE_p_f_p_aiFile_size_t_enum_aiOrigin__aiReturn SeekProc {
|
|
||||||
set {
|
|
||||||
Assimp_NETPINVOKE.aiFile_SeekProc_set(swigCPtr, SWIGTYPE_p_f_p_aiFile_size_t_enum_aiOrigin__aiReturn.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = Assimp_NETPINVOKE.aiFile_SeekProc_get(swigCPtr);
|
|
||||||
SWIGTYPE_p_f_p_aiFile_size_t_enum_aiOrigin__aiReturn ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_aiFile_size_t_enum_aiOrigin__aiReturn(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWIGTYPE_p_f_p_aiFile__void FlushProc {
|
|
||||||
set {
|
|
||||||
Assimp_NETPINVOKE.aiFile_FlushProc_set(swigCPtr, SWIGTYPE_p_f_p_aiFile__void.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = Assimp_NETPINVOKE.aiFile_FlushProc_get(swigCPtr);
|
|
||||||
SWIGTYPE_p_f_p_aiFile__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_aiFile__void(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public string UserData {
|
|
||||||
set {
|
|
||||||
Assimp_NETPINVOKE.aiFile_UserData_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
string ret = Assimp_NETPINVOKE.aiFile_UserData_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiFile() : this(Assimp_NETPINVOKE.new_aiFile(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,78 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 1.3.40
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiFileIO : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiFileIO(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiFileIO obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiFileIO() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
Assimp_NETPINVOKE.delete_aiFileIO(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWIGTYPE_p_f_p_aiFileIO_p_q_const__char_p_q_const__char__p_aiFile OpenProc {
|
|
||||||
set {
|
|
||||||
Assimp_NETPINVOKE.aiFileIO_OpenProc_set(swigCPtr, SWIGTYPE_p_f_p_aiFileIO_p_q_const__char_p_q_const__char__p_aiFile.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = Assimp_NETPINVOKE.aiFileIO_OpenProc_get(swigCPtr);
|
|
||||||
SWIGTYPE_p_f_p_aiFileIO_p_q_const__char_p_q_const__char__p_aiFile ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_aiFileIO_p_q_const__char_p_q_const__char__p_aiFile(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWIGTYPE_p_f_p_aiFileIO_p_aiFile__void CloseProc {
|
|
||||||
set {
|
|
||||||
Assimp_NETPINVOKE.aiFileIO_CloseProc_set(swigCPtr, SWIGTYPE_p_f_p_aiFileIO_p_aiFile__void.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = Assimp_NETPINVOKE.aiFileIO_CloseProc_get(swigCPtr);
|
|
||||||
SWIGTYPE_p_f_p_aiFileIO_p_aiFile__void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_f_p_aiFileIO_p_aiFile__void(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public string UserData {
|
|
||||||
set {
|
|
||||||
Assimp_NETPINVOKE.aiFileIO_UserData_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
string ret = Assimp_NETPINVOKE.aiFileIO_UserData_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiFileIO() : this(Assimp_NETPINVOKE.new_aiFileIO(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,172 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiLight : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiLight(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiLight obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiLight() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiLight(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiString mName {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiLight_mName_set(swigCPtr, aiString.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiLight_mName_get(swigCPtr);
|
|
||||||
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiLightSourceType mType {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiLight_mType_set(swigCPtr, (int)value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
aiLightSourceType ret = (aiLightSourceType)AssimpPINVOKE.aiLight_mType_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D mPosition {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiLight_mPosition_set(swigCPtr, aiVector3D.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiLight_mPosition_get(swigCPtr);
|
|
||||||
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D mDirection {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiLight_mDirection_set(swigCPtr, aiVector3D.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiLight_mDirection_get(swigCPtr);
|
|
||||||
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float mAttenuationConstant {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiLight_mAttenuationConstant_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiLight_mAttenuationConstant_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float mAttenuationLinear {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiLight_mAttenuationLinear_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiLight_mAttenuationLinear_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float mAttenuationQuadratic {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiLight_mAttenuationQuadratic_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiLight_mAttenuationQuadratic_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor3D mColorDiffuse {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiLight_mColorDiffuse_set(swigCPtr, aiColor3D.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiLight_mColorDiffuse_get(swigCPtr);
|
|
||||||
aiColor3D ret = (cPtr == IntPtr.Zero) ? null : new aiColor3D(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor3D mColorSpecular {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiLight_mColorSpecular_set(swigCPtr, aiColor3D.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiLight_mColorSpecular_get(swigCPtr);
|
|
||||||
aiColor3D ret = (cPtr == IntPtr.Zero) ? null : new aiColor3D(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor3D mColorAmbient {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiLight_mColorAmbient_set(swigCPtr, aiColor3D.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiLight_mColorAmbient_get(swigCPtr);
|
|
||||||
aiColor3D ret = (cPtr == IntPtr.Zero) ? null : new aiColor3D(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float mAngleInnerCone {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiLight_mAngleInnerCone_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiLight_mAngleInnerCone_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float mAngleOuterCone {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiLight_mAngleOuterCone_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiLight_mAngleOuterCone_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiLight() : this(AssimpPINVOKE.new_aiLight(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiLightSourceType {
|
|
||||||
aiLightSource_UNDEFINED = 0x0,
|
|
||||||
aiLightSource_DIRECTIONAL = 0x1,
|
|
||||||
aiLightSource_POINT = 0x2,
|
|
||||||
aiLightSource_SPOT = 0x3
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiLightVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiLight>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiLightVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiLightVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiLightVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiLightVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiLightVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiLight element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiLight this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiLight[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiLight[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiLight[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiLight> System.Collections.Generic.IEnumerable<aiLight>.GetEnumerator() {
|
|
||||||
return new aiLightVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiLightVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiLightVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiLightVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiLightVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiLight>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiLightVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiLightVectorEnumerator(aiLightVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiLight Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiLight)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiLightVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiLight x) {
|
|
||||||
AssimpPINVOKE.aiLightVector_Add(swigCPtr, aiLight.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiLightVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiLightVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiLightVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiLightVector() : this(AssimpPINVOKE.new_aiLightVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiLightVector(aiLightVector other) : this(AssimpPINVOKE.new_aiLightVector__SWIG_1(aiLightVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiLightVector(int capacity) : this(AssimpPINVOKE.new_aiLightVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiLight getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiLightVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiLight ret = (cPtr == IntPtr.Zero) ? null : new aiLight(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiLight getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiLightVector_getitem(swigCPtr, index);
|
|
||||||
aiLight ret = (cPtr == IntPtr.Zero) ? null : new aiLight(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiLight val) {
|
|
||||||
AssimpPINVOKE.aiLightVector_setitem(swigCPtr, index, aiLight.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiLightVector values) {
|
|
||||||
AssimpPINVOKE.aiLightVector_AddRange(swigCPtr, aiLightVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiLightVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiLightVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiLightVector ret = (cPtr == IntPtr.Zero) ? null : new aiLightVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiLight x) {
|
|
||||||
AssimpPINVOKE.aiLightVector_Insert(swigCPtr, index, aiLight.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiLightVector values) {
|
|
||||||
AssimpPINVOKE.aiLightVector_InsertRange(swigCPtr, index, aiLightVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiLightVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiLightVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiLightVector Repeat(aiLight value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiLightVector_Repeat(aiLight.getCPtr(value), count);
|
|
||||||
aiLightVector ret = (cPtr == IntPtr.Zero) ? null : new aiLightVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiLightVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiLightVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiLightVector values) {
|
|
||||||
AssimpPINVOKE.aiLightVector_SetRange(swigCPtr, index, aiLightVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiLight value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiLightVector_Contains(swigCPtr, aiLight.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiLight value) {
|
|
||||||
int ret = AssimpPINVOKE.aiLightVector_IndexOf(swigCPtr, aiLight.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiLight value) {
|
|
||||||
int ret = AssimpPINVOKE.aiLightVector_LastIndexOf(swigCPtr, aiLight.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiLight value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiLightVector_Remove(swigCPtr, aiLight.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,227 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiMaterial : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiMaterial(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiMaterial obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiMaterial() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiMaterial(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiColor4D Diffuse { get { var v = new aiColor4D(); return GetDiffuse(v)?v:DefaultDiffuse; } }
|
|
||||||
public aiColor4D Specular { get { var v = new aiColor4D(); return GetSpecular(v)?v:DefaultSpecular; } }
|
|
||||||
public aiColor4D Ambient { get { var v = new aiColor4D(); return GetAmbient(v)?v:DefaultAmbient; } }
|
|
||||||
public aiColor4D Emissive { get { var v = new aiColor4D(); return GetEmissive(v)?v:DefaultEmissive; } }
|
|
||||||
public float Opacity { get { float v = 0; return GetOpacity(ref v)?v:DefaultOpacity; } }
|
|
||||||
public float ShininessStrength { get { float v = 0; return GetShininessStrength(ref v)?v:DefaultShininessStrength; } }
|
|
||||||
public aiShadingMode ShadingModel { get { int v = 0; return GetShadingModel(ref v)?((aiShadingMode)v):DefaultShadingModel; } }
|
|
||||||
public aiTextureFlags TexFlagsDiffuse0 { get { int v = 0; return GetTexFlagsDiffuse0(ref v)?((aiTextureFlags)v):DefaultTexFlagsDiffuse0; } }
|
|
||||||
public aiTextureMapMode MappingModeUDiffuse0 { get { int v = 0; return GetMappingModeUDiffuse0(ref v)?((aiTextureMapMode)v):DefaultMappingModeUDiffuse0; } }
|
|
||||||
public aiTextureMapMode MappingModeVDiffuse0 { get { int v = 0; return GetMappingModeVDiffuse0(ref v)?((aiTextureMapMode)v):DefaultMappingModeVDiffuse0; } }
|
|
||||||
public string TextureDiffuse0 { get { var v = new aiString(); return GetTextureDiffuse0(v)?v.ToString():DefaultTextureDiffuse; } }
|
|
||||||
public bool TwoSided { get { int v = 0; return GetTwoSided(ref v)?(v!=0):DefaultTwoSided; } }
|
|
||||||
|
|
||||||
// These values are returned if the value material property isn't set
|
|
||||||
// Override these if you don't want to check for null
|
|
||||||
public static aiColor4D DefaultDiffuse = new aiColor4D(1.0f, 1.0f, 1.0f, 1.0f);
|
|
||||||
public static aiColor4D DefaultSpecular = new aiColor4D(1.0f, 1.0f, 1.0f, 1.0f);
|
|
||||||
public static aiColor4D DefaultAmbient = new aiColor4D(0.0f, 0.0f, 0.0f, 1.0f);
|
|
||||||
public static aiColor4D DefaultEmissive = new aiColor4D(0.0f, 0.0f, 0.0f, 1.0f);
|
|
||||||
public static float DefaultShininessStrength = 1.0f;
|
|
||||||
public static float DefaultOpacity = 1.0f;
|
|
||||||
public static aiShadingMode DefaultShadingModel = (aiShadingMode)0;
|
|
||||||
public static aiTextureFlags DefaultTexFlagsDiffuse0 = (aiTextureFlags)0;
|
|
||||||
public static aiTextureMapMode DefaultMappingModeUDiffuse0 = aiTextureMapMode.aiTextureMapMode_Wrap;
|
|
||||||
public static aiTextureMapMode DefaultMappingModeVDiffuse0 = aiTextureMapMode.aiTextureMapMode_Wrap;
|
|
||||||
public static string DefaultTextureDiffuse = null;
|
|
||||||
public static bool DefaultTwoSided = false;
|
|
||||||
|
|
||||||
public aiMaterial() : this(AssimpPINVOKE.new_aiMaterial(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint GetTextureCount(aiTextureType type) {
|
|
||||||
uint ret = AssimpPINVOKE.aiMaterial_GetTextureCount(swigCPtr, (int)type);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiReturn AddBinaryProperty(SWIGTYPE_p_void pInput, uint pSizeInBytes, string pKey, uint type, uint index, aiPropertyTypeInfo pType) {
|
|
||||||
aiReturn ret = (aiReturn)AssimpPINVOKE.aiMaterial_AddBinaryProperty(swigCPtr, SWIGTYPE_p_void.getCPtr(pInput), pSizeInBytes, pKey, type, index, (int)pType);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiReturn AddProperty(aiString pInput, string pKey, uint type, uint index) {
|
|
||||||
aiReturn ret = (aiReturn)AssimpPINVOKE.aiMaterial_AddProperty__SWIG_0(swigCPtr, aiString.getCPtr(pInput), pKey, type, index);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiReturn AddProperty(aiString pInput, string pKey, uint type) {
|
|
||||||
aiReturn ret = (aiReturn)AssimpPINVOKE.aiMaterial_AddProperty__SWIG_1(swigCPtr, aiString.getCPtr(pInput), pKey, type);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiReturn AddProperty(aiString pInput, string pKey) {
|
|
||||||
aiReturn ret = (aiReturn)AssimpPINVOKE.aiMaterial_AddProperty__SWIG_2(swigCPtr, aiString.getCPtr(pInput), pKey);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiReturn RemoveProperty(string pKey, uint type, uint index) {
|
|
||||||
aiReturn ret = (aiReturn)AssimpPINVOKE.aiMaterial_RemoveProperty__SWIG_0(swigCPtr, pKey, type, index);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiReturn RemoveProperty(string pKey, uint type) {
|
|
||||||
aiReturn ret = (aiReturn)AssimpPINVOKE.aiMaterial_RemoveProperty__SWIG_1(swigCPtr, pKey, type);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiReturn RemoveProperty(string pKey) {
|
|
||||||
aiReturn ret = (aiReturn)AssimpPINVOKE.aiMaterial_RemoveProperty__SWIG_2(swigCPtr, pKey);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiMaterial_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void CopyPropertyList(aiMaterial pcDest, aiMaterial pcSrc) {
|
|
||||||
AssimpPINVOKE.aiMaterial_CopyPropertyList(aiMaterial.getCPtr(pcDest), aiMaterial.getCPtr(pcSrc));
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetDiffuse(aiColor4D INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetDiffuse(swigCPtr, aiColor4D.getCPtr(INOUT));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetSpecular(aiColor4D INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetSpecular(swigCPtr, aiColor4D.getCPtr(INOUT));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetAmbient(aiColor4D INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetAmbient(swigCPtr, aiColor4D.getCPtr(INOUT));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetEmissive(aiColor4D INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetEmissive(swigCPtr, aiColor4D.getCPtr(INOUT));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetOpacity(ref float INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetOpacity(swigCPtr, ref INOUT);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetShininessStrength(ref float INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetShininessStrength(swigCPtr, ref INOUT);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetShadingModel(ref int INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetShadingModel(swigCPtr, ref INOUT);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetTexFlagsDiffuse0(ref int INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetTexFlagsDiffuse0(swigCPtr, ref INOUT);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetMappingModeUDiffuse0(ref int INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetMappingModeUDiffuse0(swigCPtr, ref INOUT);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetMappingModeVDiffuse0(ref int INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetMappingModeVDiffuse0(swigCPtr, ref INOUT);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetTextureDiffuse0(aiString INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetTextureDiffuse0(swigCPtr, aiString.getCPtr(INOUT));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetTextureSpecular0(aiString INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetTextureSpecular0(swigCPtr, aiString.getCPtr(INOUT));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetTextureOpacity0(aiString INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetTextureOpacity0(swigCPtr, aiString.getCPtr(INOUT));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetTextureAmbient0(aiString INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetTextureAmbient0(swigCPtr, aiString.getCPtr(INOUT));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetTextureEmissive0(aiString INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetTextureEmissive0(swigCPtr, aiString.getCPtr(INOUT));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetTextureShininess0(aiString INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetTextureShininess0(swigCPtr, aiString.getCPtr(INOUT));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetTextureLightmap0(aiString INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetTextureLightmap0(swigCPtr, aiString.getCPtr(INOUT));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetTextureNormals0(aiString INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetTextureNormals0(swigCPtr, aiString.getCPtr(INOUT));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetTextureHeight0(aiString INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetTextureHeight0(swigCPtr, aiString.getCPtr(INOUT));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetGlobalBackgroundImage(aiString INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetGlobalBackgroundImage(swigCPtr, aiString.getCPtr(INOUT));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool GetTwoSided(ref int INOUT) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterial_GetTwoSided(swigCPtr, ref INOUT);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,107 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiMaterialProperty : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiMaterialProperty(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiMaterialProperty obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiMaterialProperty() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiMaterialProperty(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiString mKey {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMaterialProperty_mKey_set(swigCPtr, aiString.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMaterialProperty_mKey_get(swigCPtr);
|
|
||||||
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mSemantic {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMaterialProperty_mSemantic_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMaterialProperty_mSemantic_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mIndex {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMaterialProperty_mIndex_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMaterialProperty_mIndex_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mDataLength {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMaterialProperty_mDataLength_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMaterialProperty_mDataLength_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiPropertyTypeInfo mType {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMaterialProperty_mType_set(swigCPtr, (int)value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
aiPropertyTypeInfo ret = (aiPropertyTypeInfo)AssimpPINVOKE.aiMaterialProperty_mType_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public string mData {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMaterialProperty_mData_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
string ret = AssimpPINVOKE.aiMaterialProperty_mData_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMaterialProperty() : this(AssimpPINVOKE.new_aiMaterialProperty(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiMaterialVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiMaterial>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiMaterialVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiMaterialVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiMaterialVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiMaterialVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMaterialVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiMaterial element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMaterial this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiMaterial[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiMaterial[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiMaterial[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiMaterial> System.Collections.Generic.IEnumerable<aiMaterial>.GetEnumerator() {
|
|
||||||
return new aiMaterialVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiMaterialVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMaterialVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiMaterialVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiMaterialVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiMaterial>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiMaterialVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiMaterialVectorEnumerator(aiMaterialVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiMaterial Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiMaterial)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiMaterialVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiMaterial x) {
|
|
||||||
AssimpPINVOKE.aiMaterialVector_Add(swigCPtr, aiMaterial.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiMaterialVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiMaterialVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiMaterialVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMaterialVector() : this(AssimpPINVOKE.new_aiMaterialVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMaterialVector(aiMaterialVector other) : this(AssimpPINVOKE.new_aiMaterialVector__SWIG_1(aiMaterialVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMaterialVector(int capacity) : this(AssimpPINVOKE.new_aiMaterialVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiMaterial getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMaterialVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiMaterial ret = (cPtr == IntPtr.Zero) ? null : new aiMaterial(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiMaterial getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMaterialVector_getitem(swigCPtr, index);
|
|
||||||
aiMaterial ret = (cPtr == IntPtr.Zero) ? null : new aiMaterial(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiMaterial val) {
|
|
||||||
AssimpPINVOKE.aiMaterialVector_setitem(swigCPtr, index, aiMaterial.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiMaterialVector values) {
|
|
||||||
AssimpPINVOKE.aiMaterialVector_AddRange(swigCPtr, aiMaterialVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMaterialVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMaterialVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiMaterialVector ret = (cPtr == IntPtr.Zero) ? null : new aiMaterialVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiMaterial x) {
|
|
||||||
AssimpPINVOKE.aiMaterialVector_Insert(swigCPtr, index, aiMaterial.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiMaterialVector values) {
|
|
||||||
AssimpPINVOKE.aiMaterialVector_InsertRange(swigCPtr, index, aiMaterialVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiMaterialVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiMaterialVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiMaterialVector Repeat(aiMaterial value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMaterialVector_Repeat(aiMaterial.getCPtr(value), count);
|
|
||||||
aiMaterialVector ret = (cPtr == IntPtr.Zero) ? null : new aiMaterialVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiMaterialVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiMaterialVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiMaterialVector values) {
|
|
||||||
AssimpPINVOKE.aiMaterialVector_SetRange(swigCPtr, index, aiMaterialVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiMaterial value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterialVector_Contains(swigCPtr, aiMaterial.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiMaterial value) {
|
|
||||||
int ret = AssimpPINVOKE.aiMaterialVector_IndexOf(swigCPtr, aiMaterial.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiMaterial value) {
|
|
||||||
int ret = AssimpPINVOKE.aiMaterialVector_LastIndexOf(swigCPtr, aiMaterial.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiMaterial value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMaterialVector_Remove(swigCPtr, aiMaterial.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,212 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiMatrix3x3 : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiMatrix3x3(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiMatrix3x3 obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiMatrix3x3() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiMatrix3x3(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix3x3() : this(AssimpPINVOKE.new_aiMatrix3x3__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix3x3(float _a1, float _a2, float _a3, float _b1, float _b2, float _b3, float _c1, float _c2, float _c3) : this(AssimpPINVOKE.new_aiMatrix3x3__SWIG_1(_a1, _a2, _a3, _b1, _b2, _b3, _c1, _c2, _c3), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix3x3 __mulnset__(aiMatrix3x3 m) {
|
|
||||||
aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiMatrix3x3___mulnset__(swigCPtr, aiMatrix3x3.getCPtr(m)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix3x3 __mul__(aiMatrix3x3 m) {
|
|
||||||
aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiMatrix3x3___mul__(swigCPtr, aiMatrix3x3.getCPtr(m)), true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWIGTYPE_p_float __idx__(uint p_iIndex) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMatrix3x3___idx____SWIG_0(swigCPtr, p_iIndex);
|
|
||||||
SWIGTYPE_p_float ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __equal__(aiMatrix4x4 m) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMatrix3x3___equal__(swigCPtr, aiMatrix4x4.getCPtr(m));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __nequal__(aiMatrix4x4 m) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMatrix3x3___nequal__(swigCPtr, aiMatrix4x4.getCPtr(m));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix3x3(aiMatrix4x4 pMatrix) : this(AssimpPINVOKE.new_aiMatrix3x3__SWIG_2(aiMatrix4x4.getCPtr(pMatrix)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix3x3 Transpose() {
|
|
||||||
aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiMatrix3x3_Transpose(swigCPtr), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix3x3 Inverse() {
|
|
||||||
aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiMatrix3x3_Inverse(swigCPtr), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float Determinant() {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix3x3_Determinant(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiMatrix3x3 RotationZ(float a, aiMatrix3x3 arg1) {
|
|
||||||
aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiMatrix3x3_RotationZ(a, aiMatrix3x3.getCPtr(arg1)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiMatrix3x3 Rotation(float a, aiVector3D axis, aiMatrix3x3 arg2) {
|
|
||||||
aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiMatrix3x3_Rotation(a, aiVector3D.getCPtr(axis), aiMatrix3x3.getCPtr(arg2)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiMatrix3x3 Translation(aiVector2D v, aiMatrix3x3 arg1) {
|
|
||||||
aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiMatrix3x3_Translation(aiVector2D.getCPtr(v), aiMatrix3x3.getCPtr(arg1)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiMatrix3x3 FromToMatrix(aiVector3D from, aiVector3D to, aiMatrix3x3 arg2) {
|
|
||||||
aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiMatrix3x3_FromToMatrix(aiVector3D.getCPtr(from), aiVector3D.getCPtr(to), aiMatrix3x3.getCPtr(arg2)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float a1 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix3x3_a1_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix3x3_a1_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float a2 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix3x3_a2_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix3x3_a2_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float a3 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix3x3_a3_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix3x3_a3_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float b1 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix3x3_b1_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix3x3_b1_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float b2 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix3x3_b2_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix3x3_b2_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float b3 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix3x3_b3_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix3x3_b3_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float c1 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix3x3_c1_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix3x3_c1_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float c2 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix3x3_c2_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix3x3_c2_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float c3 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix3x3_c3_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix3x3_c3_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,326 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiMatrix4x4 : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiMatrix4x4(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiMatrix4x4 obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiMatrix4x4() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiMatrix4x4(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix4x4() : this(AssimpPINVOKE.new_aiMatrix4x4__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix4x4(float _a1, float _a2, float _a3, float _a4, float _b1, float _b2, float _b3, float _b4, float _c1, float _c2, float _c3, float _c4, float _d1, float _d2, float _d3, float _d4) : this(AssimpPINVOKE.new_aiMatrix4x4__SWIG_1(_a1, _a2, _a3, _a4, _b1, _b2, _b3, _b4, _c1, _c2, _c3, _c4, _d1, _d2, _d3, _d4), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix4x4(aiMatrix3x3 m) : this(AssimpPINVOKE.new_aiMatrix4x4__SWIG_2(aiMatrix3x3.getCPtr(m)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWIGTYPE_p_float __idx__(uint p_iIndex) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMatrix4x4___idx____SWIG_0(swigCPtr, p_iIndex);
|
|
||||||
SWIGTYPE_p_float ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __equal__(aiMatrix4x4 m) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMatrix4x4___equal__(swigCPtr, aiMatrix4x4.getCPtr(m));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __nequal__(aiMatrix4x4 m) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMatrix4x4___nequal__(swigCPtr, aiMatrix4x4.getCPtr(m));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix4x4 __mulnset__(aiMatrix4x4 m) {
|
|
||||||
aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4___mulnset__(swigCPtr, aiMatrix4x4.getCPtr(m)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix4x4 __mul__(aiMatrix4x4 m) {
|
|
||||||
aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4___mul__(swigCPtr, aiMatrix4x4.getCPtr(m)), true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix4x4 Transpose() {
|
|
||||||
aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Transpose(swigCPtr), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix4x4 Inverse() {
|
|
||||||
aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Inverse(swigCPtr), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float Determinant() {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_Determinant(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsIdentity() {
|
|
||||||
bool ret = AssimpPINVOKE.aiMatrix4x4_IsIdentity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Decompose(aiVector3D scaling, aiQuaternion rotation, aiVector3D position) {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_Decompose(swigCPtr, aiVector3D.getCPtr(scaling), aiQuaternion.getCPtr(rotation), aiVector3D.getCPtr(position));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void DecomposeNoScaling(aiQuaternion rotation, aiVector3D position) {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_DecomposeNoScaling(swigCPtr, aiQuaternion.getCPtr(rotation), aiVector3D.getCPtr(position));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix4x4 FromEulerAnglesXYZ(float x, float y, float z) {
|
|
||||||
aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_FromEulerAnglesXYZ__SWIG_0(swigCPtr, x, y, z), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix4x4 FromEulerAnglesXYZ(aiVector3D blubb) {
|
|
||||||
aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_FromEulerAnglesXYZ__SWIG_1(swigCPtr, aiVector3D.getCPtr(blubb)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiMatrix4x4 RotationX(float a, aiMatrix4x4 arg1) {
|
|
||||||
aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_RotationX(a, aiMatrix4x4.getCPtr(arg1)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiMatrix4x4 RotationY(float a, aiMatrix4x4 arg1) {
|
|
||||||
aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_RotationY(a, aiMatrix4x4.getCPtr(arg1)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiMatrix4x4 RotationZ(float a, aiMatrix4x4 arg1) {
|
|
||||||
aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_RotationZ(a, aiMatrix4x4.getCPtr(arg1)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiMatrix4x4 Rotation(float a, aiVector3D axis, aiMatrix4x4 arg2) {
|
|
||||||
aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Rotation(a, aiVector3D.getCPtr(axis), aiMatrix4x4.getCPtr(arg2)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiMatrix4x4 Translation(aiVector3D v, aiMatrix4x4 arg1) {
|
|
||||||
aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Translation(aiVector3D.getCPtr(v), aiMatrix4x4.getCPtr(arg1)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiMatrix4x4 Scaling(aiVector3D v, aiMatrix4x4 arg1) {
|
|
||||||
aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_Scaling(aiVector3D.getCPtr(v), aiMatrix4x4.getCPtr(arg1)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiMatrix4x4 FromToMatrix(aiVector3D from, aiVector3D to, aiMatrix4x4 arg2) {
|
|
||||||
aiMatrix4x4 ret = new aiMatrix4x4(AssimpPINVOKE.aiMatrix4x4_FromToMatrix(aiVector3D.getCPtr(from), aiVector3D.getCPtr(to), aiMatrix4x4.getCPtr(arg2)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float a1 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_a1_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_a1_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float a2 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_a2_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_a2_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float a3 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_a3_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_a3_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float a4 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_a4_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_a4_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float b1 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_b1_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_b1_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float b2 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_b2_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_b2_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float b3 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_b3_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_b3_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float b4 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_b4_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_b4_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float c1 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_c1_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_c1_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float c2 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_c2_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_c2_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float c3 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_c3_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_c3_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float c4 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_c4_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_c4_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float d1 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_d1_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_d1_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float d2 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_d2_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_d2_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float d3 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_d3_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_d3_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float d4 {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMatrix4x4_d4_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiMatrix4x4_d4_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,126 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiMemoryInfo : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiMemoryInfo(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiMemoryInfo obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiMemoryInfo() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiMemoryInfo(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMemoryInfo() : this(AssimpPINVOKE.new_aiMemoryInfo(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint textures {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMemoryInfo_textures_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMemoryInfo_textures_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint materials {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMemoryInfo_materials_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMemoryInfo_materials_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint meshes {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMemoryInfo_meshes_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMemoryInfo_meshes_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint nodes {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMemoryInfo_nodes_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMemoryInfo_nodes_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint animations {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMemoryInfo_animations_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMemoryInfo_animations_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint cameras {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMemoryInfo_cameras_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMemoryInfo_cameras_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint lights {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMemoryInfo_lights_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMemoryInfo_lights_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint total {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMemoryInfo_total_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMemoryInfo_total_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,227 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiMesh : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiMesh(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiMesh obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiMesh() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiMesh(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3DVector mBitangents { get { return GetmBitangents(); } }
|
|
||||||
public aiBoneVector mBones { get { return GetmBones(); } }
|
|
||||||
public aiColor4DVectorVector mColors { get { return GetmColors(); } }
|
|
||||||
public aiFaceVector mFaces { get { return GetmFaces(); } }
|
|
||||||
public aiVector3DVector mNormals { get { return GetmNormals(); } }
|
|
||||||
public aiVector3DVector mTangents { get { return GetmTangents(); } }
|
|
||||||
public aiVector3DVectorVector mTextureCoords { get { return GetmTextureCoords(); } }
|
|
||||||
public aiVector3DVector mVertices { get { return GetmVertices(); } }
|
|
||||||
|
|
||||||
public aiPrimitiveType mPrimitiveTypes {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMesh_mPrimitiveTypes_set(swigCPtr, (uint)value);
|
|
||||||
} get { return (aiPrimitiveType)AssimpPINVOKE.aiMesh_mPrimitiveTypes_get(swigCPtr); }
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumVertices {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMesh_mNumVertices_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMesh_mNumVertices_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumFaces {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMesh_mNumFaces_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMesh_mNumFaces_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumBones {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMesh_mNumBones_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMesh_mNumBones_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mMaterialIndex {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMesh_mMaterialIndex_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMesh_mMaterialIndex_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiString mName {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMesh_mName_set(swigCPtr, aiString.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMesh_mName_get(swigCPtr);
|
|
||||||
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumAnimMeshes {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMesh_mNumAnimMeshes_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMesh_mNumAnimMeshes_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMesh() : this(AssimpPINVOKE.new_aiMesh(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasPositions() {
|
|
||||||
bool ret = AssimpPINVOKE.aiMesh_HasPositions(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasFaces() {
|
|
||||||
bool ret = AssimpPINVOKE.aiMesh_HasFaces(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasNormals() {
|
|
||||||
bool ret = AssimpPINVOKE.aiMesh_HasNormals(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasTangentsAndBitangents() {
|
|
||||||
bool ret = AssimpPINVOKE.aiMesh_HasTangentsAndBitangents(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasVertexColors(uint pIndex) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMesh_HasVertexColors(swigCPtr, pIndex);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasTextureCoords(uint pIndex) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMesh_HasTextureCoords(swigCPtr, pIndex);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint GetNumUVChannels() {
|
|
||||||
uint ret = AssimpPINVOKE.aiMesh_GetNumUVChannels(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint GetNumColorChannels() {
|
|
||||||
uint ret = AssimpPINVOKE.aiMesh_GetNumColorChannels(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasBones() {
|
|
||||||
bool ret = AssimpPINVOKE.aiMesh_HasBones(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiAnimMeshVector GetmAnimMeshes() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmAnimMeshes(swigCPtr);
|
|
||||||
aiAnimMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiAnimMeshVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVector3DVector GetmBitangents() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmBitangents(swigCPtr);
|
|
||||||
aiVector3DVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiBoneVector GetmBones() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmBones(swigCPtr);
|
|
||||||
aiBoneVector ret = (cPtr == IntPtr.Zero) ? null : new aiBoneVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiColor4DVectorVector GetmColors() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmColors(swigCPtr);
|
|
||||||
aiColor4DVectorVector ret = (cPtr == IntPtr.Zero) ? null : new aiColor4DVectorVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiFaceVector GetmFaces() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmFaces(swigCPtr);
|
|
||||||
aiFaceVector ret = (cPtr == IntPtr.Zero) ? null : new aiFaceVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVector3DVector GetmNormals() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmNormals(swigCPtr);
|
|
||||||
aiVector3DVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVector3DVector GetmTangents() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmTangents(swigCPtr);
|
|
||||||
aiVector3DVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVector3DVectorVector GetmTextureCoords() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmTextureCoords(swigCPtr);
|
|
||||||
aiVector3DVectorVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVectorVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private UintVector GetmNumUVComponents() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmNumUVComponents(swigCPtr);
|
|
||||||
UintVector ret = (cPtr == IntPtr.Zero) ? null : new UintVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVector3DVector GetmVertices() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMesh_GetmVertices(swigCPtr);
|
|
||||||
aiVector3DVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,75 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiMeshAnim : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiMeshAnim(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiMeshAnim obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiMeshAnim() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiMeshAnim(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshKeyVector mKeys { get { return GetmKeys(); } }
|
|
||||||
|
|
||||||
public aiString mName {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMeshAnim_mName_set(swigCPtr, aiString.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMeshAnim_mName_get(swigCPtr);
|
|
||||||
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumKeys {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMeshAnim_mNumKeys_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMeshAnim_mNumKeys_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshAnim() : this(AssimpPINVOKE.new_aiMeshAnim(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiMeshKeyVector GetmKeys() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMeshAnim_GetmKeys(swigCPtr);
|
|
||||||
aiMeshKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshKeyVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiMeshAnimVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiMeshAnim>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiMeshAnimVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiMeshAnimVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiMeshAnimVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiMeshAnimVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshAnimVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiMeshAnim element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshAnim this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiMeshAnim[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiMeshAnim[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiMeshAnim[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiMeshAnim> System.Collections.Generic.IEnumerable<aiMeshAnim>.GetEnumerator() {
|
|
||||||
return new aiMeshAnimVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiMeshAnimVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshAnimVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiMeshAnimVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiMeshAnimVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiMeshAnim>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiMeshAnimVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiMeshAnimVectorEnumerator(aiMeshAnimVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiMeshAnim Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiMeshAnim)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiMeshAnimVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiMeshAnim x) {
|
|
||||||
AssimpPINVOKE.aiMeshAnimVector_Add(swigCPtr, aiMeshAnim.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiMeshAnimVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiMeshAnimVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiMeshAnimVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshAnimVector() : this(AssimpPINVOKE.new_aiMeshAnimVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshAnimVector(aiMeshAnimVector other) : this(AssimpPINVOKE.new_aiMeshAnimVector__SWIG_1(aiMeshAnimVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshAnimVector(int capacity) : this(AssimpPINVOKE.new_aiMeshAnimVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiMeshAnim getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMeshAnimVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiMeshAnim ret = (cPtr == IntPtr.Zero) ? null : new aiMeshAnim(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiMeshAnim getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMeshAnimVector_getitem(swigCPtr, index);
|
|
||||||
aiMeshAnim ret = (cPtr == IntPtr.Zero) ? null : new aiMeshAnim(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiMeshAnim val) {
|
|
||||||
AssimpPINVOKE.aiMeshAnimVector_setitem(swigCPtr, index, aiMeshAnim.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiMeshAnimVector values) {
|
|
||||||
AssimpPINVOKE.aiMeshAnimVector_AddRange(swigCPtr, aiMeshAnimVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshAnimVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMeshAnimVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiMeshAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshAnimVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiMeshAnim x) {
|
|
||||||
AssimpPINVOKE.aiMeshAnimVector_Insert(swigCPtr, index, aiMeshAnim.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiMeshAnimVector values) {
|
|
||||||
AssimpPINVOKE.aiMeshAnimVector_InsertRange(swigCPtr, index, aiMeshAnimVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiMeshAnimVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiMeshAnimVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiMeshAnimVector Repeat(aiMeshAnim value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMeshAnimVector_Repeat(aiMeshAnim.getCPtr(value), count);
|
|
||||||
aiMeshAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshAnimVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiMeshAnimVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiMeshAnimVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiMeshAnimVector values) {
|
|
||||||
AssimpPINVOKE.aiMeshAnimVector_SetRange(swigCPtr, index, aiMeshAnimVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiMeshAnim value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMeshAnimVector_Contains(swigCPtr, aiMeshAnim.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiMeshAnim value) {
|
|
||||||
int ret = AssimpPINVOKE.aiMeshAnimVector_IndexOf(swigCPtr, aiMeshAnim.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiMeshAnim value) {
|
|
||||||
int ret = AssimpPINVOKE.aiMeshAnimVector_LastIndexOf(swigCPtr, aiMeshAnim.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiMeshAnim value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMeshAnimVector_Remove(swigCPtr, aiMeshAnim.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,93 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiMeshKey : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiMeshKey(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiMeshKey obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiMeshKey() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiMeshKey(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public double mTime {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMeshKey_mTime_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
double ret = AssimpPINVOKE.aiMeshKey_mTime_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mValue {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiMeshKey_mValue_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiMeshKey_mValue_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshKey() : this(AssimpPINVOKE.new_aiMeshKey__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshKey(double time, uint value) : this(AssimpPINVOKE.new_aiMeshKey__SWIG_1(time, value), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __equal__(aiMeshKey o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMeshKey___equal__(swigCPtr, aiMeshKey.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __nequal__(aiMeshKey o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMeshKey___nequal__(swigCPtr, aiMeshKey.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __smaller__(aiMeshKey o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMeshKey___smaller__(swigCPtr, aiMeshKey.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __greater__(aiMeshKey o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMeshKey___greater__(swigCPtr, aiMeshKey.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiMeshKeyVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiMeshKey>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiMeshKeyVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiMeshKeyVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiMeshKeyVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiMeshKeyVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshKeyVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiMeshKey element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshKey this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiMeshKey[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiMeshKey[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiMeshKey[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiMeshKey> System.Collections.Generic.IEnumerable<aiMeshKey>.GetEnumerator() {
|
|
||||||
return new aiMeshKeyVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiMeshKeyVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshKeyVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiMeshKeyVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiMeshKeyVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiMeshKey>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiMeshKeyVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiMeshKeyVectorEnumerator(aiMeshKeyVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiMeshKey Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiMeshKey)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiMeshKeyVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiMeshKey x) {
|
|
||||||
AssimpPINVOKE.aiMeshKeyVector_Add(swigCPtr, aiMeshKey.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiMeshKeyVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiMeshKeyVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiMeshKeyVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshKeyVector() : this(AssimpPINVOKE.new_aiMeshKeyVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshKeyVector(aiMeshKeyVector other) : this(AssimpPINVOKE.new_aiMeshKeyVector__SWIG_1(aiMeshKeyVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshKeyVector(int capacity) : this(AssimpPINVOKE.new_aiMeshKeyVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiMeshKey getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMeshKeyVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiMeshKey ret = (cPtr == IntPtr.Zero) ? null : new aiMeshKey(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiMeshKey getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMeshKeyVector_getitem(swigCPtr, index);
|
|
||||||
aiMeshKey ret = (cPtr == IntPtr.Zero) ? null : new aiMeshKey(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiMeshKey val) {
|
|
||||||
AssimpPINVOKE.aiMeshKeyVector_setitem(swigCPtr, index, aiMeshKey.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiMeshKeyVector values) {
|
|
||||||
AssimpPINVOKE.aiMeshKeyVector_AddRange(swigCPtr, aiMeshKeyVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshKeyVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMeshKeyVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiMeshKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshKeyVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiMeshKey x) {
|
|
||||||
AssimpPINVOKE.aiMeshKeyVector_Insert(swigCPtr, index, aiMeshKey.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiMeshKeyVector values) {
|
|
||||||
AssimpPINVOKE.aiMeshKeyVector_InsertRange(swigCPtr, index, aiMeshKeyVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiMeshKeyVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiMeshKeyVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiMeshKeyVector Repeat(aiMeshKey value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMeshKeyVector_Repeat(aiMeshKey.getCPtr(value), count);
|
|
||||||
aiMeshKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshKeyVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiMeshKeyVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiMeshKeyVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiMeshKeyVector values) {
|
|
||||||
AssimpPINVOKE.aiMeshKeyVector_SetRange(swigCPtr, index, aiMeshKeyVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiMeshKey value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMeshKeyVector_Contains(swigCPtr, aiMeshKey.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiMeshKey value) {
|
|
||||||
int ret = AssimpPINVOKE.aiMeshKeyVector_IndexOf(swigCPtr, aiMeshKey.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiMeshKey value) {
|
|
||||||
int ret = AssimpPINVOKE.aiMeshKeyVector_LastIndexOf(swigCPtr, aiMeshKey.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiMeshKey value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMeshKeyVector_Remove(swigCPtr, aiMeshKey.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiMeshVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiMesh>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiMeshVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiMeshVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiMeshVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiMeshVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiMesh element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMesh this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiMesh[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiMesh[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiMesh[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiMesh> System.Collections.Generic.IEnumerable<aiMesh>.GetEnumerator() {
|
|
||||||
return new aiMeshVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiMeshVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiMeshVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiMeshVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiMesh>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiMeshVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiMeshVectorEnumerator(aiMeshVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiMesh Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiMesh)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiMeshVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiMesh x) {
|
|
||||||
AssimpPINVOKE.aiMeshVector_Add(swigCPtr, aiMesh.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiMeshVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiMeshVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiMeshVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshVector() : this(AssimpPINVOKE.new_aiMeshVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshVector(aiMeshVector other) : this(AssimpPINVOKE.new_aiMeshVector__SWIG_1(aiMeshVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshVector(int capacity) : this(AssimpPINVOKE.new_aiMeshVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiMesh getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMeshVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiMesh ret = (cPtr == IntPtr.Zero) ? null : new aiMesh(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiMesh getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMeshVector_getitem(swigCPtr, index);
|
|
||||||
aiMesh ret = (cPtr == IntPtr.Zero) ? null : new aiMesh(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiMesh val) {
|
|
||||||
AssimpPINVOKE.aiMeshVector_setitem(swigCPtr, index, aiMesh.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiMeshVector values) {
|
|
||||||
AssimpPINVOKE.aiMeshVector_AddRange(swigCPtr, aiMeshVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMeshVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMeshVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiMesh x) {
|
|
||||||
AssimpPINVOKE.aiMeshVector_Insert(swigCPtr, index, aiMesh.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiMeshVector values) {
|
|
||||||
AssimpPINVOKE.aiMeshVector_InsertRange(swigCPtr, index, aiMeshVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiMeshVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiMeshVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiMeshVector Repeat(aiMesh value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiMeshVector_Repeat(aiMesh.getCPtr(value), count);
|
|
||||||
aiMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiMeshVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiMeshVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiMeshVector values) {
|
|
||||||
AssimpPINVOKE.aiMeshVector_SetRange(swigCPtr, index, aiMeshVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiMesh value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMeshVector_Contains(swigCPtr, aiMesh.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiMesh value) {
|
|
||||||
int ret = AssimpPINVOKE.aiMeshVector_IndexOf(swigCPtr, aiMesh.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiMesh value) {
|
|
||||||
int ret = AssimpPINVOKE.aiMeshVector_LastIndexOf(swigCPtr, aiMesh.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiMesh value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiMeshVector_Remove(swigCPtr, aiMesh.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,131 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiNode : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiNode(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiNode obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiNode() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiNode(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeVector mChildren { get { return GetmChildren(); } }
|
|
||||||
public UintVector mMeshes { get { return GetmMeshes(); } }
|
|
||||||
|
|
||||||
public aiString mName {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiNode_mName_set(swigCPtr, aiString.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNode_mName_get(swigCPtr);
|
|
||||||
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix4x4 mTransformation {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiNode_mTransformation_set(swigCPtr, aiMatrix4x4.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNode_mTransformation_get(swigCPtr);
|
|
||||||
aiMatrix4x4 ret = (cPtr == IntPtr.Zero) ? null : new aiMatrix4x4(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNode mParent {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiNode_mParent_set(swigCPtr, aiNode.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNode_mParent_get(swigCPtr);
|
|
||||||
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumChildren {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiNode_mNumChildren_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiNode_mNumChildren_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumMeshes {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiNode_mNumMeshes_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiNode_mNumMeshes_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNode() : this(AssimpPINVOKE.new_aiNode__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNode(string name) : this(AssimpPINVOKE.new_aiNode__SWIG_1(name), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNode FindNode(aiString name) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNode_FindNode__SWIG_0(swigCPtr, aiString.getCPtr(name));
|
|
||||||
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNode FindNode(string name) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNode_FindNode__SWIG_1(swigCPtr, name);
|
|
||||||
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiNodeVector GetmChildren() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNode_GetmChildren(swigCPtr);
|
|
||||||
aiNodeVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private UintVector GetmMeshes() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNode_GetmMeshes(swigCPtr);
|
|
||||||
UintVector ret = (cPtr == IntPtr.Zero) ? null : new UintVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,129 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiNodeAnim : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiNodeAnim(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiNodeAnim obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiNodeAnim() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiNodeAnim(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVectorKeyVector mPositionKeys { get { return GetmPositionKeys(); } }
|
|
||||||
public aiQuatKeyVector mRotationKeys { get { return GetmRotationKeys(); } }
|
|
||||||
public aiVectorKeyVector mScalingKeys { get { return GetmScalingKeys(); } }
|
|
||||||
|
|
||||||
public aiString mNodeName {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiNodeAnim_mNodeName_set(swigCPtr, aiString.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNodeAnim_mNodeName_get(swigCPtr);
|
|
||||||
aiString ret = (cPtr == IntPtr.Zero) ? null : new aiString(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumPositionKeys {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiNodeAnim_mNumPositionKeys_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiNodeAnim_mNumPositionKeys_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumRotationKeys {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiNodeAnim_mNumRotationKeys_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiNodeAnim_mNumRotationKeys_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumScalingKeys {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiNodeAnim_mNumScalingKeys_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiNodeAnim_mNumScalingKeys_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimBehaviour mPreState {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiNodeAnim_mPreState_set(swigCPtr, (int)value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
aiAnimBehaviour ret = (aiAnimBehaviour)AssimpPINVOKE.aiNodeAnim_mPreState_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimBehaviour mPostState {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiNodeAnim_mPostState_set(swigCPtr, (int)value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
aiAnimBehaviour ret = (aiAnimBehaviour)AssimpPINVOKE.aiNodeAnim_mPostState_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeAnim() : this(AssimpPINVOKE.new_aiNodeAnim(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVectorKeyVector GetmPositionKeys() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNodeAnim_GetmPositionKeys(swigCPtr);
|
|
||||||
aiVectorKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiVectorKeyVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiQuatKeyVector GetmRotationKeys() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNodeAnim_GetmRotationKeys(swigCPtr);
|
|
||||||
aiQuatKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiQuatKeyVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVectorKeyVector GetmScalingKeys() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNodeAnim_GetmScalingKeys(swigCPtr);
|
|
||||||
aiVectorKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiVectorKeyVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiNodeAnimVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiNodeAnim>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiNodeAnimVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiNodeAnimVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiNodeAnimVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiNodeAnimVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeAnimVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiNodeAnim element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeAnim this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiNodeAnim[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiNodeAnim[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiNodeAnim[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiNodeAnim> System.Collections.Generic.IEnumerable<aiNodeAnim>.GetEnumerator() {
|
|
||||||
return new aiNodeAnimVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiNodeAnimVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeAnimVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiNodeAnimVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiNodeAnimVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiNodeAnim>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiNodeAnimVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiNodeAnimVectorEnumerator(aiNodeAnimVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiNodeAnim Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiNodeAnim)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiNodeAnimVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiNodeAnim x) {
|
|
||||||
AssimpPINVOKE.aiNodeAnimVector_Add(swigCPtr, aiNodeAnim.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiNodeAnimVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiNodeAnimVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiNodeAnimVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeAnimVector() : this(AssimpPINVOKE.new_aiNodeAnimVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeAnimVector(aiNodeAnimVector other) : this(AssimpPINVOKE.new_aiNodeAnimVector__SWIG_1(aiNodeAnimVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeAnimVector(int capacity) : this(AssimpPINVOKE.new_aiNodeAnimVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiNodeAnim getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNodeAnimVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiNodeAnim ret = (cPtr == IntPtr.Zero) ? null : new aiNodeAnim(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiNodeAnim getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNodeAnimVector_getitem(swigCPtr, index);
|
|
||||||
aiNodeAnim ret = (cPtr == IntPtr.Zero) ? null : new aiNodeAnim(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiNodeAnim val) {
|
|
||||||
AssimpPINVOKE.aiNodeAnimVector_setitem(swigCPtr, index, aiNodeAnim.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiNodeAnimVector values) {
|
|
||||||
AssimpPINVOKE.aiNodeAnimVector_AddRange(swigCPtr, aiNodeAnimVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeAnimVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNodeAnimVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiNodeAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeAnimVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiNodeAnim x) {
|
|
||||||
AssimpPINVOKE.aiNodeAnimVector_Insert(swigCPtr, index, aiNodeAnim.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiNodeAnimVector values) {
|
|
||||||
AssimpPINVOKE.aiNodeAnimVector_InsertRange(swigCPtr, index, aiNodeAnimVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiNodeAnimVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiNodeAnimVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiNodeAnimVector Repeat(aiNodeAnim value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNodeAnimVector_Repeat(aiNodeAnim.getCPtr(value), count);
|
|
||||||
aiNodeAnimVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeAnimVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiNodeAnimVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiNodeAnimVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiNodeAnimVector values) {
|
|
||||||
AssimpPINVOKE.aiNodeAnimVector_SetRange(swigCPtr, index, aiNodeAnimVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiNodeAnim value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiNodeAnimVector_Contains(swigCPtr, aiNodeAnim.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiNodeAnim value) {
|
|
||||||
int ret = AssimpPINVOKE.aiNodeAnimVector_IndexOf(swigCPtr, aiNodeAnim.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiNodeAnim value) {
|
|
||||||
int ret = AssimpPINVOKE.aiNodeAnimVector_LastIndexOf(swigCPtr, aiNodeAnim.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiNodeAnim value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiNodeAnimVector_Remove(swigCPtr, aiNodeAnim.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiNodeVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiNode>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiNodeVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiNodeVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiNodeVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiNodeVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiNode element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNode this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiNode[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiNode[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiNode[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiNode> System.Collections.Generic.IEnumerable<aiNode>.GetEnumerator() {
|
|
||||||
return new aiNodeVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiNodeVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiNodeVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiNodeVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiNode>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiNodeVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiNodeVectorEnumerator(aiNodeVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiNode Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiNode)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiNodeVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiNode x) {
|
|
||||||
AssimpPINVOKE.aiNodeVector_Add(swigCPtr, aiNode.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiNodeVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiNodeVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiNodeVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeVector() : this(AssimpPINVOKE.new_aiNodeVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeVector(aiNodeVector other) : this(AssimpPINVOKE.new_aiNodeVector__SWIG_1(aiNodeVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeVector(int capacity) : this(AssimpPINVOKE.new_aiNodeVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiNode getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNodeVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiNode getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNodeVector_getitem(swigCPtr, index);
|
|
||||||
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiNode val) {
|
|
||||||
AssimpPINVOKE.aiNodeVector_setitem(swigCPtr, index, aiNode.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiNodeVector values) {
|
|
||||||
AssimpPINVOKE.aiNodeVector_AddRange(swigCPtr, aiNodeVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNodeVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNodeVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiNodeVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiNode x) {
|
|
||||||
AssimpPINVOKE.aiNodeVector_Insert(swigCPtr, index, aiNode.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiNodeVector values) {
|
|
||||||
AssimpPINVOKE.aiNodeVector_InsertRange(swigCPtr, index, aiNodeVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiNodeVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiNodeVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiNodeVector Repeat(aiNode value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiNodeVector_Repeat(aiNode.getCPtr(value), count);
|
|
||||||
aiNodeVector ret = (cPtr == IntPtr.Zero) ? null : new aiNodeVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiNodeVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiNodeVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiNodeVector values) {
|
|
||||||
AssimpPINVOKE.aiNodeVector_SetRange(swigCPtr, index, aiNodeVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiNode value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiNodeVector_Contains(swigCPtr, aiNode.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiNode value) {
|
|
||||||
int ret = AssimpPINVOKE.aiNodeVector_IndexOf(swigCPtr, aiNode.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiNode value) {
|
|
||||||
int ret = AssimpPINVOKE.aiNodeVector_LastIndexOf(swigCPtr, aiNode.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiNode value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiNodeVector_Remove(swigCPtr, aiNode.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiOrigin {
|
|
||||||
aiOrigin_SET = 0x0,
|
|
||||||
aiOrigin_CUR = 0x1,
|
|
||||||
aiOrigin_END = 0x2,
|
|
||||||
_AI_ORIGIN_ENFORCE_ENUM_SIZE = 0x7fffffff
|
|
||||||
}
|
|
|
@ -1,93 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiPlane : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiPlane(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiPlane obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiPlane() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiPlane(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiPlane() : this(AssimpPINVOKE.new_aiPlane__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiPlane(float _a, float _b, float _c, float _d) : this(AssimpPINVOKE.new_aiPlane__SWIG_1(_a, _b, _c, _d), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiPlane(aiPlane o) : this(AssimpPINVOKE.new_aiPlane__SWIG_2(aiPlane.getCPtr(o)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public float a {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiPlane_a_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiPlane_a_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float b {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiPlane_b_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiPlane_b_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float c {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiPlane_c_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiPlane_c_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float d {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiPlane_d_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiPlane_d_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,39 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiPostProcessSteps {
|
|
||||||
aiProcess_CalcTangentSpace = 0x1,
|
|
||||||
aiProcess_JoinIdenticalVertices = 0x2,
|
|
||||||
aiProcess_MakeLeftHanded = 0x4,
|
|
||||||
aiProcess_Triangulate = 0x8,
|
|
||||||
aiProcess_RemoveComponent = 0x10,
|
|
||||||
aiProcess_GenNormals = 0x20,
|
|
||||||
aiProcess_GenSmoothNormals = 0x40,
|
|
||||||
aiProcess_SplitLargeMeshes = 0x80,
|
|
||||||
aiProcess_PreTransformVertices = 0x100,
|
|
||||||
aiProcess_LimitBoneWeights = 0x200,
|
|
||||||
aiProcess_ValidateDataStructure = 0x400,
|
|
||||||
aiProcess_ImproveCacheLocality = 0x800,
|
|
||||||
aiProcess_RemoveRedundantMaterials = 0x1000,
|
|
||||||
aiProcess_FixInfacingNormals = 0x2000,
|
|
||||||
aiProcess_SortByPType = 0x8000,
|
|
||||||
aiProcess_FindDegenerates = 0x10000,
|
|
||||||
aiProcess_FindInvalidData = 0x20000,
|
|
||||||
aiProcess_GenUVCoords = 0x40000,
|
|
||||||
aiProcess_TransformUVCoords = 0x80000,
|
|
||||||
aiProcess_FindInstances = 0x100000,
|
|
||||||
aiProcess_OptimizeMeshes = 0x200000,
|
|
||||||
aiProcess_OptimizeGraph = 0x400000,
|
|
||||||
aiProcess_FlipUVs = 0x800000,
|
|
||||||
aiProcess_FlipWindingOrder = 0x1000000,
|
|
||||||
aiProcess_SplitByBoneCount = 0x2000000,
|
|
||||||
aiProcess_Debone = 0x4000000
|
|
||||||
|
|
||||||
, aiProcess_ConvertToLeftHanded = aiProcess_MakeLeftHanded|aiProcess_FlipUVs|aiProcess_FlipWindingOrder,
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiPrimitiveType {
|
|
||||||
aiPrimitiveType_POINT = 0x1,
|
|
||||||
aiPrimitiveType_LINE = 0x2,
|
|
||||||
aiPrimitiveType_TRIANGLE = 0x4,
|
|
||||||
aiPrimitiveType_POLYGON = 0x8
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiPropertyTypeInfo {
|
|
||||||
aiPTI_Float = 0x1,
|
|
||||||
aiPTI_String = 0x3,
|
|
||||||
aiPTI_Integer = 0x4,
|
|
||||||
aiPTI_Buffer = 0x5
|
|
||||||
}
|
|
|
@ -1,95 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiQuatKey : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiQuatKey(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiQuatKey obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiQuatKey() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiQuatKey(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public double mTime {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiQuatKey_mTime_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
double ret = AssimpPINVOKE.aiQuatKey_mTime_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuaternion mValue {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiQuatKey_mValue_set(swigCPtr, aiQuaternion.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiQuatKey_mValue_get(swigCPtr);
|
|
||||||
aiQuaternion ret = (cPtr == IntPtr.Zero) ? null : new aiQuaternion(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuatKey() : this(AssimpPINVOKE.new_aiQuatKey__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuatKey(double time, aiQuaternion value) : this(AssimpPINVOKE.new_aiQuatKey__SWIG_1(time, aiQuaternion.getCPtr(value)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __equal__(aiQuatKey o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiQuatKey___equal__(swigCPtr, aiQuatKey.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __nequal__(aiQuatKey o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiQuatKey___nequal__(swigCPtr, aiQuatKey.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __smaller__(aiQuatKey o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiQuatKey___smaller__(swigCPtr, aiQuatKey.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __greater__(aiQuatKey o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiQuatKey___greater__(swigCPtr, aiQuatKey.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiQuatKeyVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiQuatKey>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiQuatKeyVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiQuatKeyVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiQuatKeyVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiQuatKeyVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuatKeyVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiQuatKey element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuatKey this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiQuatKey[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiQuatKey[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiQuatKey[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiQuatKey> System.Collections.Generic.IEnumerable<aiQuatKey>.GetEnumerator() {
|
|
||||||
return new aiQuatKeyVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiQuatKeyVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuatKeyVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiQuatKeyVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiQuatKeyVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiQuatKey>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiQuatKeyVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiQuatKeyVectorEnumerator(aiQuatKeyVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiQuatKey Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiQuatKey)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiQuatKeyVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiQuatKey x) {
|
|
||||||
AssimpPINVOKE.aiQuatKeyVector_Add(swigCPtr, aiQuatKey.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiQuatKeyVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiQuatKeyVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiQuatKeyVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuatKeyVector() : this(AssimpPINVOKE.new_aiQuatKeyVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuatKeyVector(aiQuatKeyVector other) : this(AssimpPINVOKE.new_aiQuatKeyVector__SWIG_1(aiQuatKeyVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuatKeyVector(int capacity) : this(AssimpPINVOKE.new_aiQuatKeyVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiQuatKey getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiQuatKeyVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiQuatKey ret = (cPtr == IntPtr.Zero) ? null : new aiQuatKey(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiQuatKey getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiQuatKeyVector_getitem(swigCPtr, index);
|
|
||||||
aiQuatKey ret = (cPtr == IntPtr.Zero) ? null : new aiQuatKey(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiQuatKey val) {
|
|
||||||
AssimpPINVOKE.aiQuatKeyVector_setitem(swigCPtr, index, aiQuatKey.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiQuatKeyVector values) {
|
|
||||||
AssimpPINVOKE.aiQuatKeyVector_AddRange(swigCPtr, aiQuatKeyVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuatKeyVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiQuatKeyVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiQuatKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiQuatKeyVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiQuatKey x) {
|
|
||||||
AssimpPINVOKE.aiQuatKeyVector_Insert(swigCPtr, index, aiQuatKey.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiQuatKeyVector values) {
|
|
||||||
AssimpPINVOKE.aiQuatKeyVector_InsertRange(swigCPtr, index, aiQuatKeyVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiQuatKeyVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiQuatKeyVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiQuatKeyVector Repeat(aiQuatKey value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiQuatKeyVector_Repeat(aiQuatKey.getCPtr(value), count);
|
|
||||||
aiQuatKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiQuatKeyVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiQuatKeyVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiQuatKeyVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiQuatKeyVector values) {
|
|
||||||
AssimpPINVOKE.aiQuatKeyVector_SetRange(swigCPtr, index, aiQuatKeyVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiQuatKey value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiQuatKeyVector_Contains(swigCPtr, aiQuatKey.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiQuatKey value) {
|
|
||||||
int ret = AssimpPINVOKE.aiQuatKeyVector_IndexOf(swigCPtr, aiQuatKey.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiQuatKey value) {
|
|
||||||
int ret = AssimpPINVOKE.aiQuatKeyVector_LastIndexOf(swigCPtr, aiQuatKey.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiQuatKey value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiQuatKeyVector_Remove(swigCPtr, aiQuatKey.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,148 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiQuaternion : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiQuaternion(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiQuaternion obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiQuaternion() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiQuaternion(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuaternion() : this(AssimpPINVOKE.new_aiQuaternion__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuaternion(float w, float x, float y, float z) : this(AssimpPINVOKE.new_aiQuaternion__SWIG_1(w, x, y, z), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuaternion(aiMatrix3x3 pRotMatrix) : this(AssimpPINVOKE.new_aiQuaternion__SWIG_2(aiMatrix3x3.getCPtr(pRotMatrix)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuaternion(float rotx, float roty, float rotz) : this(AssimpPINVOKE.new_aiQuaternion__SWIG_3(rotx, roty, rotz), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuaternion(aiVector3D axis, float angle) : this(AssimpPINVOKE.new_aiQuaternion__SWIG_4(aiVector3D.getCPtr(axis), angle), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuaternion(aiVector3D normalized) : this(AssimpPINVOKE.new_aiQuaternion__SWIG_5(aiVector3D.getCPtr(normalized)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiMatrix3x3 GetMatrix() {
|
|
||||||
aiMatrix3x3 ret = new aiMatrix3x3(AssimpPINVOKE.aiQuaternion_GetMatrix(swigCPtr), true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __equal__(aiQuaternion o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiQuaternion___equal__(swigCPtr, aiQuaternion.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __nequal__(aiQuaternion o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiQuaternion___nequal__(swigCPtr, aiQuaternion.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuaternion Normalize() {
|
|
||||||
aiQuaternion ret = new aiQuaternion(AssimpPINVOKE.aiQuaternion_Normalize(swigCPtr), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuaternion Conjugate() {
|
|
||||||
aiQuaternion ret = new aiQuaternion(AssimpPINVOKE.aiQuaternion_Conjugate(swigCPtr), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D Rotate(aiVector3D arg0) {
|
|
||||||
aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiQuaternion_Rotate(swigCPtr, aiVector3D.getCPtr(arg0)), true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiQuaternion __mul__(aiQuaternion two) {
|
|
||||||
aiQuaternion ret = new aiQuaternion(AssimpPINVOKE.aiQuaternion___mul__(swigCPtr, aiQuaternion.getCPtr(two)), true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void Interpolate(aiQuaternion pOut, aiQuaternion pStart, aiQuaternion pEnd, float pFactor) {
|
|
||||||
AssimpPINVOKE.aiQuaternion_Interpolate(aiQuaternion.getCPtr(pOut), aiQuaternion.getCPtr(pStart), aiQuaternion.getCPtr(pEnd), pFactor);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public float w {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiQuaternion_w_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiQuaternion_w_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float x {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiQuaternion_x_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiQuaternion_x_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float y {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiQuaternion_y_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiQuaternion_y_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float z {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiQuaternion_z_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiQuaternion_z_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,76 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiRay : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiRay(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiRay obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiRay() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiRay(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiRay() : this(AssimpPINVOKE.new_aiRay__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiRay(aiVector3D _pos, aiVector3D _dir) : this(AssimpPINVOKE.new_aiRay__SWIG_1(aiVector3D.getCPtr(_pos), aiVector3D.getCPtr(_dir)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiRay(aiRay o) : this(AssimpPINVOKE.new_aiRay__SWIG_2(aiRay.getCPtr(o)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D pos {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiRay_pos_set(swigCPtr, aiVector3D.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiRay_pos_get(swigCPtr);
|
|
||||||
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D dir {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiRay_dir_set(swigCPtr, aiVector3D.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiRay_dir_get(swigCPtr);
|
|
||||||
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiReturn {
|
|
||||||
aiReturn_SUCCESS = 0x0,
|
|
||||||
aiReturn_FAILURE = -0x1,
|
|
||||||
aiReturn_OUTOFMEMORY = -0x3,
|
|
||||||
_AI_ENFORCE_ENUM_SIZE = 0x7fffffff
|
|
||||||
}
|
|
|
@ -1,211 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiScene : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiScene(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiScene obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiScene() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiScene(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiAnimationVector mAnimations { get { return GetmAnimations(); } }
|
|
||||||
public aiCameraVector mCameras { get { return GetmCameras(); } }
|
|
||||||
public aiLightVector mLights { get { return GetmLights(); } }
|
|
||||||
public aiMaterialVector mMaterials { get { return GetmMaterials(); } }
|
|
||||||
public aiMeshVector mMeshes { get { return GetmMeshes(); } }
|
|
||||||
public aiTextureVector mTextures { get { return GetmTextures(); } }
|
|
||||||
|
|
||||||
public uint mFlags {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiScene_mFlags_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiScene_mFlags_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiNode mRootNode {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiScene_mRootNode_set(swigCPtr, aiNode.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiScene_mRootNode_get(swigCPtr);
|
|
||||||
aiNode ret = (cPtr == IntPtr.Zero) ? null : new aiNode(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumMeshes {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiScene_mNumMeshes_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiScene_mNumMeshes_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumMaterials {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiScene_mNumMaterials_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiScene_mNumMaterials_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumAnimations {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiScene_mNumAnimations_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiScene_mNumAnimations_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumTextures {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiScene_mNumTextures_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiScene_mNumTextures_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumLights {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiScene_mNumLights_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiScene_mNumLights_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mNumCameras {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiScene_mNumCameras_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiScene_mNumCameras_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiScene() : this(AssimpPINVOKE.new_aiScene(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasMeshes() {
|
|
||||||
bool ret = AssimpPINVOKE.aiScene_HasMeshes(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasMaterials() {
|
|
||||||
bool ret = AssimpPINVOKE.aiScene_HasMaterials(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasLights() {
|
|
||||||
bool ret = AssimpPINVOKE.aiScene_HasLights(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasTextures() {
|
|
||||||
bool ret = AssimpPINVOKE.aiScene_HasTextures(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasCameras() {
|
|
||||||
bool ret = AssimpPINVOKE.aiScene_HasCameras(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasAnimations() {
|
|
||||||
bool ret = AssimpPINVOKE.aiScene_HasAnimations(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public SWIGTYPE_p_void mPrivate {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiScene_mPrivate_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiScene_mPrivate_get(swigCPtr);
|
|
||||||
SWIGTYPE_p_void ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiAnimationVector GetmAnimations() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiScene_GetmAnimations(swigCPtr);
|
|
||||||
aiAnimationVector ret = (cPtr == IntPtr.Zero) ? null : new aiAnimationVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiCameraVector GetmCameras() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiScene_GetmCameras(swigCPtr);
|
|
||||||
aiCameraVector ret = (cPtr == IntPtr.Zero) ? null : new aiCameraVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiLightVector GetmLights() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiScene_GetmLights(swigCPtr);
|
|
||||||
aiLightVector ret = (cPtr == IntPtr.Zero) ? null : new aiLightVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiMaterialVector GetmMaterials() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiScene_GetmMaterials(swigCPtr);
|
|
||||||
aiMaterialVector ret = (cPtr == IntPtr.Zero) ? null : new aiMaterialVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiMeshVector GetmMeshes() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiScene_GetmMeshes(swigCPtr);
|
|
||||||
aiMeshVector ret = (cPtr == IntPtr.Zero) ? null : new aiMeshVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiTextureVector GetmTextures() {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiScene_GetmTextures(swigCPtr);
|
|
||||||
aiTextureVector ret = (cPtr == IntPtr.Zero) ? null : new aiTextureVector(cPtr, true);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,21 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiShadingMode {
|
|
||||||
aiShadingMode_Flat = 0x1,
|
|
||||||
aiShadingMode_Gouraud = 0x2,
|
|
||||||
aiShadingMode_Phong = 0x3,
|
|
||||||
aiShadingMode_Blinn = 0x4,
|
|
||||||
aiShadingMode_Toon = 0x5,
|
|
||||||
aiShadingMode_OrenNayar = 0x6,
|
|
||||||
aiShadingMode_Minnaert = 0x7,
|
|
||||||
aiShadingMode_CookTorrance = 0x8,
|
|
||||||
aiShadingMode_NoShading = 0x9,
|
|
||||||
aiShadingMode_Fresnel = 0xa
|
|
||||||
}
|
|
|
@ -1,98 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiString : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiString(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiString obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiString() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiString(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public override string ToString() { return Data; }
|
|
||||||
|
|
||||||
public aiString() : this(AssimpPINVOKE.new_aiString__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiString(aiString rOther) : this(AssimpPINVOKE.new_aiString__SWIG_1(aiString.getCPtr(rOther)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiString(string pString) : this(AssimpPINVOKE.new_aiString__SWIG_2(pString), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiString __set__(string sz) {
|
|
||||||
aiString ret = new aiString(AssimpPINVOKE.aiString___set____SWIG_0(swigCPtr, sz), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __equal__(aiString other) {
|
|
||||||
bool ret = AssimpPINVOKE.aiString___equal__(swigCPtr, aiString.getCPtr(other));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __nequal__(aiString other) {
|
|
||||||
bool ret = AssimpPINVOKE.aiString___nequal__(swigCPtr, aiString.getCPtr(other));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public string C_Str() {
|
|
||||||
string ret = AssimpPINVOKE.aiString_C_Str(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint Length {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiString_Length_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiString_Length_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public string Data {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiString_Data_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
string ret = AssimpPINVOKE.aiString_Data_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,98 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiTexel : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiTexel(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiTexel obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiTexel() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiTexel(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte b {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiTexel_b_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
byte ret = AssimpPINVOKE.aiTexel_b_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte g {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiTexel_g_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
byte ret = AssimpPINVOKE.aiTexel_g_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte r {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiTexel_r_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
byte ret = AssimpPINVOKE.aiTexel_r_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte a {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiTexel_a_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
byte ret = AssimpPINVOKE.aiTexel_a_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __equal__(aiTexel other) {
|
|
||||||
bool ret = AssimpPINVOKE.aiTexel___equal__(swigCPtr, aiTexel.getCPtr(other));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __nequal__(aiTexel other) {
|
|
||||||
bool ret = AssimpPINVOKE.aiTexel___nequal__(swigCPtr, aiTexel.getCPtr(other));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiTexel() : this(AssimpPINVOKE.new_aiTexel(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,92 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiTexture : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiTexture(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiTexture obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiTexture() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiTexture(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mWidth {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiTexture_mWidth_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiTexture_mWidth_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mHeight {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiTexture_mHeight_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiTexture_mHeight_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public string achFormatHint {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiTexture_achFormatHint_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
string ret = AssimpPINVOKE.aiTexture_achFormatHint_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiTexel pcData {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiTexture_pcData_set(swigCPtr, aiTexel.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiTexture_pcData_get(swigCPtr);
|
|
||||||
aiTexel ret = (cPtr == IntPtr.Zero) ? null : new aiTexel(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool CheckFormat(string s) {
|
|
||||||
bool ret = AssimpPINVOKE.aiTexture_CheckFormat(swigCPtr, s);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiTexture() : this(AssimpPINVOKE.new_aiTexture(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,14 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiTextureFlags {
|
|
||||||
aiTextureFlags_Invert = 0x1,
|
|
||||||
aiTextureFlags_UseAlpha = 0x2,
|
|
||||||
aiTextureFlags_IgnoreAlpha = 0x4
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiTextureMapMode {
|
|
||||||
aiTextureMapMode_Wrap = 0x0,
|
|
||||||
aiTextureMapMode_Clamp = 0x1,
|
|
||||||
aiTextureMapMode_Decal = 0x3,
|
|
||||||
aiTextureMapMode_Mirror = 0x2
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiTextureMapping {
|
|
||||||
aiTextureMapping_UV = 0x0,
|
|
||||||
aiTextureMapping_SPHERE = 0x1,
|
|
||||||
aiTextureMapping_CYLINDER = 0x2,
|
|
||||||
aiTextureMapping_BOX = 0x3,
|
|
||||||
aiTextureMapping_PLANE = 0x4,
|
|
||||||
aiTextureMapping_OTHER = 0x5
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiTextureOp {
|
|
||||||
aiTextureOp_Multiply = 0x0,
|
|
||||||
aiTextureOp_Add = 0x1,
|
|
||||||
aiTextureOp_Subtract = 0x2,
|
|
||||||
aiTextureOp_Divide = 0x3,
|
|
||||||
aiTextureOp_SmoothAdd = 0x4,
|
|
||||||
aiTextureOp_SignedAdd = 0x5
|
|
||||||
}
|
|
|
@ -1,24 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
public enum aiTextureType {
|
|
||||||
aiTextureType_NONE = 0x0,
|
|
||||||
aiTextureType_DIFFUSE = 0x1,
|
|
||||||
aiTextureType_SPECULAR = 0x2,
|
|
||||||
aiTextureType_AMBIENT = 0x3,
|
|
||||||
aiTextureType_EMISSIVE = 0x4,
|
|
||||||
aiTextureType_HEIGHT = 0x5,
|
|
||||||
aiTextureType_NORMALS = 0x6,
|
|
||||||
aiTextureType_SHININESS = 0x7,
|
|
||||||
aiTextureType_OPACITY = 0x8,
|
|
||||||
aiTextureType_DISPLACEMENT = 0x9,
|
|
||||||
aiTextureType_LIGHTMAP = 0xA,
|
|
||||||
aiTextureType_REFLECTION = 0xB,
|
|
||||||
aiTextureType_UNKNOWN = 0xC
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiTextureVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiTexture>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiTextureVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiTextureVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiTextureVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiTextureVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiTextureVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiTexture element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiTexture this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiTexture[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiTexture[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiTexture[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiTexture> System.Collections.Generic.IEnumerable<aiTexture>.GetEnumerator() {
|
|
||||||
return new aiTextureVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiTextureVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiTextureVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiTextureVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiTextureVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiTexture>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiTextureVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiTextureVectorEnumerator(aiTextureVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiTexture Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiTexture)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiTextureVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiTexture x) {
|
|
||||||
AssimpPINVOKE.aiTextureVector_Add(swigCPtr, aiTexture.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiTextureVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiTextureVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiTextureVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiTextureVector() : this(AssimpPINVOKE.new_aiTextureVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiTextureVector(aiTextureVector other) : this(AssimpPINVOKE.new_aiTextureVector__SWIG_1(aiTextureVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiTextureVector(int capacity) : this(AssimpPINVOKE.new_aiTextureVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiTexture getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiTextureVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiTexture ret = (cPtr == IntPtr.Zero) ? null : new aiTexture(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiTexture getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiTextureVector_getitem(swigCPtr, index);
|
|
||||||
aiTexture ret = (cPtr == IntPtr.Zero) ? null : new aiTexture(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiTexture val) {
|
|
||||||
AssimpPINVOKE.aiTextureVector_setitem(swigCPtr, index, aiTexture.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiTextureVector values) {
|
|
||||||
AssimpPINVOKE.aiTextureVector_AddRange(swigCPtr, aiTextureVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiTextureVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiTextureVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiTextureVector ret = (cPtr == IntPtr.Zero) ? null : new aiTextureVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiTexture x) {
|
|
||||||
AssimpPINVOKE.aiTextureVector_Insert(swigCPtr, index, aiTexture.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiTextureVector values) {
|
|
||||||
AssimpPINVOKE.aiTextureVector_InsertRange(swigCPtr, index, aiTextureVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiTextureVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiTextureVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiTextureVector Repeat(aiTexture value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiTextureVector_Repeat(aiTexture.getCPtr(value), count);
|
|
||||||
aiTextureVector ret = (cPtr == IntPtr.Zero) ? null : new aiTextureVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiTextureVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiTextureVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiTextureVector values) {
|
|
||||||
AssimpPINVOKE.aiTextureVector_SetRange(swigCPtr, index, aiTextureVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiTexture value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiTextureVector_Contains(swigCPtr, aiTexture.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiTexture value) {
|
|
||||||
int ret = AssimpPINVOKE.aiTextureVector_IndexOf(swigCPtr, aiTexture.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiTexture value) {
|
|
||||||
int ret = AssimpPINVOKE.aiTextureVector_LastIndexOf(swigCPtr, aiTexture.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiTexture value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiTextureVector_Remove(swigCPtr, aiTexture.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,78 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiUVTransform : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiUVTransform(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiUVTransform obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiUVTransform() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiUVTransform(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector2D mTranslation {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiUVTransform_mTranslation_set(swigCPtr, aiVector2D.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiUVTransform_mTranslation_get(swigCPtr);
|
|
||||||
aiVector2D ret = (cPtr == IntPtr.Zero) ? null : new aiVector2D(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector2D mScaling {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiUVTransform_mScaling_set(swigCPtr, aiVector2D.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiUVTransform_mScaling_get(swigCPtr);
|
|
||||||
aiVector2D ret = (cPtr == IntPtr.Zero) ? null : new aiVector2D(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float mRotation {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiUVTransform_mRotation_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiUVTransform_mRotation_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiUVTransform() : this(AssimpPINVOKE.new_aiUVTransform(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,145 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiVector2D : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiVector2D(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiVector2D obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiVector2D() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiVector2D(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector2D() : this(AssimpPINVOKE.new_aiVector2D__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector2D(float _x, float _y) : this(AssimpPINVOKE.new_aiVector2D__SWIG_1(_x, _y), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector2D(float _xyz) : this(AssimpPINVOKE.new_aiVector2D__SWIG_2(_xyz), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector2D(aiVector2D o) : this(AssimpPINVOKE.new_aiVector2D__SWIG_3(aiVector2D.getCPtr(o)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Set(float pX, float pY) {
|
|
||||||
AssimpPINVOKE.aiVector2D_Set(swigCPtr, pX, pY);
|
|
||||||
}
|
|
||||||
|
|
||||||
public float SquareLength() {
|
|
||||||
float ret = AssimpPINVOKE.aiVector2D_SquareLength(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float Length() {
|
|
||||||
float ret = AssimpPINVOKE.aiVector2D_Length(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector2D Normalize() {
|
|
||||||
aiVector2D ret = new aiVector2D(AssimpPINVOKE.aiVector2D_Normalize(swigCPtr), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector2D __addnset__(aiVector2D o) {
|
|
||||||
aiVector2D ret = new aiVector2D(AssimpPINVOKE.aiVector2D___addnset__(swigCPtr, aiVector2D.getCPtr(o)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector2D __subnset__(aiVector2D o) {
|
|
||||||
aiVector2D ret = new aiVector2D(AssimpPINVOKE.aiVector2D___subnset__(swigCPtr, aiVector2D.getCPtr(o)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector2D __mulnset__(float f) {
|
|
||||||
aiVector2D ret = new aiVector2D(AssimpPINVOKE.aiVector2D___mulnset__(swigCPtr, f), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector2D __divnset__(float f) {
|
|
||||||
aiVector2D ret = new aiVector2D(AssimpPINVOKE.aiVector2D___divnset__(swigCPtr, f), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float __idx__(uint i) {
|
|
||||||
float ret = AssimpPINVOKE.aiVector2D___idx____SWIG_0(swigCPtr, i);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __equal__(aiVector2D other) {
|
|
||||||
bool ret = AssimpPINVOKE.aiVector2D___equal__(swigCPtr, aiVector2D.getCPtr(other));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __nequal__(aiVector2D other) {
|
|
||||||
bool ret = AssimpPINVOKE.aiVector2D___nequal__(swigCPtr, aiVector2D.getCPtr(other));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector2D __set__(float f) {
|
|
||||||
aiVector2D ret = new aiVector2D(AssimpPINVOKE.aiVector2D___set__(swigCPtr, f), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector2D SymMul(aiVector2D o) {
|
|
||||||
aiVector2D ret = new aiVector2D(AssimpPINVOKE.aiVector2D_SymMul(swigCPtr, aiVector2D.getCPtr(o)), true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float x {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiVector2D_x_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiVector2D_x_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float y {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiVector2D_y_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiVector2D_y_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,162 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiVector3D : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiVector3D(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiVector3D obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiVector3D() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiVector3D(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D() : this(AssimpPINVOKE.new_aiVector3D__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D(float _x, float _y, float _z) : this(AssimpPINVOKE.new_aiVector3D__SWIG_1(_x, _y, _z), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D(float _xyz) : this(AssimpPINVOKE.new_aiVector3D__SWIG_2(_xyz), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D(aiVector3D o) : this(AssimpPINVOKE.new_aiVector3D__SWIG_3(aiVector3D.getCPtr(o)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D __addnset__(aiVector3D o) {
|
|
||||||
aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___addnset__(swigCPtr, aiVector3D.getCPtr(o)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D __subnset__(aiVector3D o) {
|
|
||||||
aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___subnset__(swigCPtr, aiVector3D.getCPtr(o)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D __mulnset__(float f) {
|
|
||||||
aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___mulnset____SWIG_0(swigCPtr, f), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D __divnset__(float f) {
|
|
||||||
aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___divnset__(swigCPtr, f), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D __mulnset__(aiMatrix3x3 mat) {
|
|
||||||
aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___mulnset____SWIG_1(swigCPtr, aiMatrix3x3.getCPtr(mat)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D __mulnset__(aiMatrix4x4 mat) {
|
|
||||||
aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D___mulnset____SWIG_2(swigCPtr, aiMatrix4x4.getCPtr(mat)), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float __idx__(uint i) {
|
|
||||||
float ret = AssimpPINVOKE.aiVector3D___idx____SWIG_0(swigCPtr, i);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __equal__(aiVector3D other) {
|
|
||||||
bool ret = AssimpPINVOKE.aiVector3D___equal__(swigCPtr, aiVector3D.getCPtr(other));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __nequal__(aiVector3D other) {
|
|
||||||
bool ret = AssimpPINVOKE.aiVector3D___nequal__(swigCPtr, aiVector3D.getCPtr(other));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Set(float pX, float pY, float pZ) {
|
|
||||||
AssimpPINVOKE.aiVector3D_Set(swigCPtr, pX, pY, pZ);
|
|
||||||
}
|
|
||||||
|
|
||||||
public float SquareLength() {
|
|
||||||
float ret = AssimpPINVOKE.aiVector3D_SquareLength(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float Length() {
|
|
||||||
float ret = AssimpPINVOKE.aiVector3D_Length(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D Normalize() {
|
|
||||||
aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D_Normalize(swigCPtr), false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D SymMul(aiVector3D o) {
|
|
||||||
aiVector3D ret = new aiVector3D(AssimpPINVOKE.aiVector3D_SymMul(swigCPtr, aiVector3D.getCPtr(o)), true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public float x {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiVector3D_x_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiVector3D_x_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float y {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiVector3D_y_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiVector3D_y_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float z {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiVector3D_z_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiVector3D_z_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiVector3DVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiVector3D>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiVector3DVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiVector3DVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiVector3DVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiVector3DVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3DVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiVector3D element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiVector3D[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiVector3D[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiVector3D[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiVector3D> System.Collections.Generic.IEnumerable<aiVector3D>.GetEnumerator() {
|
|
||||||
return new aiVector3DVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiVector3DVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3DVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiVector3DVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiVector3DVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiVector3D>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiVector3DVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiVector3DVectorEnumerator(aiVector3DVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiVector3D Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiVector3D)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiVector3DVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiVector3D x) {
|
|
||||||
AssimpPINVOKE.aiVector3DVector_Add(swigCPtr, aiVector3D.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiVector3DVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiVector3DVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiVector3DVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3DVector() : this(AssimpPINVOKE.new_aiVector3DVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3DVector(aiVector3DVector other) : this(AssimpPINVOKE.new_aiVector3DVector__SWIG_1(aiVector3DVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3DVector(int capacity) : this(AssimpPINVOKE.new_aiVector3DVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVector3D getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiVector3DVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVector3D getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiVector3DVector_getitem(swigCPtr, index);
|
|
||||||
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiVector3D val) {
|
|
||||||
AssimpPINVOKE.aiVector3DVector_setitem(swigCPtr, index, aiVector3D.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiVector3DVector values) {
|
|
||||||
AssimpPINVOKE.aiVector3DVector_AddRange(swigCPtr, aiVector3DVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3DVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiVector3DVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiVector3DVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiVector3D x) {
|
|
||||||
AssimpPINVOKE.aiVector3DVector_Insert(swigCPtr, index, aiVector3D.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiVector3DVector values) {
|
|
||||||
AssimpPINVOKE.aiVector3DVector_InsertRange(swigCPtr, index, aiVector3DVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiVector3DVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiVector3DVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiVector3DVector Repeat(aiVector3D value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiVector3DVector_Repeat(aiVector3D.getCPtr(value), count);
|
|
||||||
aiVector3DVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiVector3DVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiVector3DVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiVector3DVector values) {
|
|
||||||
AssimpPINVOKE.aiVector3DVector_SetRange(swigCPtr, index, aiVector3DVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiVector3D value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiVector3DVector_Contains(swigCPtr, aiVector3D.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiVector3D value) {
|
|
||||||
int ret = AssimpPINVOKE.aiVector3DVector_IndexOf(swigCPtr, aiVector3D.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiVector3D value) {
|
|
||||||
int ret = AssimpPINVOKE.aiVector3DVector_LastIndexOf(swigCPtr, aiVector3D.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiVector3D value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiVector3DVector_Remove(swigCPtr, aiVector3D.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,327 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiVector3DVectorVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerable<aiVector3DVector>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiVector3DVectorVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiVector3DVectorVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiVector3DVectorVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiVector3DVectorVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3DVectorVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiVector3DVector element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3DVector this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiVector3DVector[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiVector3DVector[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiVector3DVector[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiVector3DVector> System.Collections.Generic.IEnumerable<aiVector3DVector>.GetEnumerator() {
|
|
||||||
return new aiVector3DVectorVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiVector3DVectorVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3DVectorVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiVector3DVectorVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiVector3DVectorVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiVector3DVector>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiVector3DVectorVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiVector3DVectorVectorEnumerator(aiVector3DVectorVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiVector3DVector Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiVector3DVector)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiVector3DVectorVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiVector3DVector x) {
|
|
||||||
AssimpPINVOKE.aiVector3DVectorVector_Add(swigCPtr, aiVector3DVector.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiVector3DVectorVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiVector3DVectorVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiVector3DVectorVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3DVectorVector() : this(AssimpPINVOKE.new_aiVector3DVectorVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3DVectorVector(aiVector3DVectorVector other) : this(AssimpPINVOKE.new_aiVector3DVectorVector__SWIG_1(aiVector3DVectorVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3DVectorVector(int capacity) : this(AssimpPINVOKE.new_aiVector3DVectorVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVector3DVector getitemcopy(int index) {
|
|
||||||
aiVector3DVector ret = new aiVector3DVector(AssimpPINVOKE.aiVector3DVectorVector_getitemcopy(swigCPtr, index), true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVector3DVector getitem(int index) {
|
|
||||||
aiVector3DVector ret = new aiVector3DVector(AssimpPINVOKE.aiVector3DVectorVector_getitem(swigCPtr, index), false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiVector3DVector val) {
|
|
||||||
AssimpPINVOKE.aiVector3DVectorVector_setitem(swigCPtr, index, aiVector3DVector.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiVector3DVectorVector values) {
|
|
||||||
AssimpPINVOKE.aiVector3DVectorVector_AddRange(swigCPtr, aiVector3DVectorVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3DVectorVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiVector3DVectorVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiVector3DVectorVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVectorVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiVector3DVector x) {
|
|
||||||
AssimpPINVOKE.aiVector3DVectorVector_Insert(swigCPtr, index, aiVector3DVector.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiVector3DVectorVector values) {
|
|
||||||
AssimpPINVOKE.aiVector3DVectorVector_InsertRange(swigCPtr, index, aiVector3DVectorVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiVector3DVectorVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiVector3DVectorVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiVector3DVectorVector Repeat(aiVector3DVector value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiVector3DVectorVector_Repeat(aiVector3DVector.getCPtr(value), count);
|
|
||||||
aiVector3DVectorVector ret = (cPtr == IntPtr.Zero) ? null : new aiVector3DVectorVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiVector3DVectorVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiVector3DVectorVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiVector3DVectorVector values) {
|
|
||||||
AssimpPINVOKE.aiVector3DVectorVector_SetRange(swigCPtr, index, aiVector3DVectorVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,95 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiVectorKey : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiVectorKey(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiVectorKey obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiVectorKey() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiVectorKey(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public double mTime {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiVectorKey_mTime_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
double ret = AssimpPINVOKE.aiVectorKey_mTime_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVector3D mValue {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiVectorKey_mValue_set(swigCPtr, aiVector3D.getCPtr(value));
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiVectorKey_mValue_get(swigCPtr);
|
|
||||||
aiVector3D ret = (cPtr == IntPtr.Zero) ? null : new aiVector3D(cPtr, false);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVectorKey() : this(AssimpPINVOKE.new_aiVectorKey__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVectorKey(double time, aiVector3D value) : this(AssimpPINVOKE.new_aiVectorKey__SWIG_1(time, aiVector3D.getCPtr(value)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __equal__(aiVectorKey o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiVectorKey___equal__(swigCPtr, aiVectorKey.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __nequal__(aiVectorKey o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiVectorKey___nequal__(swigCPtr, aiVectorKey.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __smaller__(aiVectorKey o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiVectorKey___smaller__(swigCPtr, aiVectorKey.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool __greater__(aiVectorKey o) {
|
|
||||||
bool ret = AssimpPINVOKE.aiVectorKey___greater__(swigCPtr, aiVectorKey.getCPtr(o));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiVectorKeyVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiVectorKey>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiVectorKeyVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiVectorKeyVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiVectorKeyVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiVectorKeyVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVectorKeyVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiVectorKey element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVectorKey this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiVectorKey[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiVectorKey[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiVectorKey[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiVectorKey> System.Collections.Generic.IEnumerable<aiVectorKey>.GetEnumerator() {
|
|
||||||
return new aiVectorKeyVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiVectorKeyVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVectorKeyVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiVectorKeyVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiVectorKeyVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiVectorKey>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiVectorKeyVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiVectorKeyVectorEnumerator(aiVectorKeyVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiVectorKey Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiVectorKey)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiVectorKeyVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiVectorKey x) {
|
|
||||||
AssimpPINVOKE.aiVectorKeyVector_Add(swigCPtr, aiVectorKey.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiVectorKeyVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiVectorKeyVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiVectorKeyVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVectorKeyVector() : this(AssimpPINVOKE.new_aiVectorKeyVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVectorKeyVector(aiVectorKeyVector other) : this(AssimpPINVOKE.new_aiVectorKeyVector__SWIG_1(aiVectorKeyVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVectorKeyVector(int capacity) : this(AssimpPINVOKE.new_aiVectorKeyVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVectorKey getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiVectorKeyVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiVectorKey ret = (cPtr == IntPtr.Zero) ? null : new aiVectorKey(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVectorKey getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiVectorKeyVector_getitem(swigCPtr, index);
|
|
||||||
aiVectorKey ret = (cPtr == IntPtr.Zero) ? null : new aiVectorKey(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiVectorKey val) {
|
|
||||||
AssimpPINVOKE.aiVectorKeyVector_setitem(swigCPtr, index, aiVectorKey.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiVectorKeyVector values) {
|
|
||||||
AssimpPINVOKE.aiVectorKeyVector_AddRange(swigCPtr, aiVectorKeyVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVectorKeyVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiVectorKeyVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiVectorKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiVectorKeyVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiVectorKey x) {
|
|
||||||
AssimpPINVOKE.aiVectorKeyVector_Insert(swigCPtr, index, aiVectorKey.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiVectorKeyVector values) {
|
|
||||||
AssimpPINVOKE.aiVectorKeyVector_InsertRange(swigCPtr, index, aiVectorKeyVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiVectorKeyVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiVectorKeyVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiVectorKeyVector Repeat(aiVectorKey value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiVectorKeyVector_Repeat(aiVectorKey.getCPtr(value), count);
|
|
||||||
aiVectorKeyVector ret = (cPtr == IntPtr.Zero) ? null : new aiVectorKeyVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiVectorKeyVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiVectorKeyVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiVectorKeyVector values) {
|
|
||||||
AssimpPINVOKE.aiVectorKeyVector_SetRange(swigCPtr, index, aiVectorKeyVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiVectorKey value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiVectorKeyVector_Contains(swigCPtr, aiVectorKey.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiVectorKey value) {
|
|
||||||
int ret = AssimpPINVOKE.aiVectorKeyVector_IndexOf(swigCPtr, aiVectorKey.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiVectorKey value) {
|
|
||||||
int ret = AssimpPINVOKE.aiVectorKeyVector_LastIndexOf(swigCPtr, aiVectorKey.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiVectorKey value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiVectorKeyVector_Remove(swigCPtr, aiVectorKey.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,69 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiVertexWeight : IDisposable {
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiVertexWeight(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiVertexWeight obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiVertexWeight() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiVertexWeight(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public uint mVertexId {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiVertexWeight_mVertexId_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
uint ret = AssimpPINVOKE.aiVertexWeight_mVertexId_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float mWeight {
|
|
||||||
set {
|
|
||||||
AssimpPINVOKE.aiVertexWeight_mWeight_set(swigCPtr, value);
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
float ret = AssimpPINVOKE.aiVertexWeight_mWeight_get(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVertexWeight() : this(AssimpPINVOKE.new_aiVertexWeight__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVertexWeight(uint pID, float pWeight) : this(AssimpPINVOKE.new_aiVertexWeight__SWIG_1(pID, pWeight), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,348 +0,0 @@
|
||||||
/* ----------------------------------------------------------------------------
|
|
||||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
||||||
* Version 2.0.8
|
|
||||||
*
|
|
||||||
* Do not make changes to this file unless you know what you are doing--modify
|
|
||||||
* the SWIG interface file instead.
|
|
||||||
* ----------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
public class aiVertexWeightVector : IDisposable, System.Collections.IEnumerable
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IList<aiVertexWeight>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private HandleRef swigCPtr;
|
|
||||||
protected bool swigCMemOwn;
|
|
||||||
|
|
||||||
internal aiVertexWeightVector(IntPtr cPtr, bool cMemoryOwn) {
|
|
||||||
swigCMemOwn = cMemoryOwn;
|
|
||||||
swigCPtr = new HandleRef(this, cPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static HandleRef getCPtr(aiVertexWeightVector obj) {
|
|
||||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
|
||||||
}
|
|
||||||
|
|
||||||
~aiVertexWeightVector() {
|
|
||||||
Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose() {
|
|
||||||
lock(this) {
|
|
||||||
if (swigCPtr.Handle != IntPtr.Zero) {
|
|
||||||
if (swigCMemOwn) {
|
|
||||||
swigCMemOwn = false;
|
|
||||||
AssimpPINVOKE.delete_aiVertexWeightVector(swigCPtr);
|
|
||||||
}
|
|
||||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
|
||||||
}
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVertexWeightVector(System.Collections.ICollection c) : this() {
|
|
||||||
if (c == null)
|
|
||||||
throw new ArgumentNullException("c");
|
|
||||||
foreach (aiVertexWeight element in c) {
|
|
||||||
this.Add(element);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsFixedSize {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReadOnly {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVertexWeight this[int index] {
|
|
||||||
get {
|
|
||||||
return getitem(index);
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
setitem(index, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Capacity {
|
|
||||||
get {
|
|
||||||
return (int)capacity();
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
if (value < size())
|
|
||||||
throw new ArgumentOutOfRangeException("Capacity");
|
|
||||||
reserve((uint)value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Count {
|
|
||||||
get {
|
|
||||||
return (int)size();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsSynchronized {
|
|
||||||
get {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiVertexWeight[] array)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, 0, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(System.Array array, int arrayIndex)
|
|
||||||
#else
|
|
||||||
public void CopyTo(aiVertexWeight[] array, int arrayIndex)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
CopyTo(0, array, arrayIndex, this.Count);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if SWIG_DOTNET_1
|
|
||||||
public void CopyTo(int index, System.Array array, int arrayIndex, int count)
|
|
||||||
#else
|
|
||||||
public void CopyTo(int index, aiVertexWeight[] array, int arrayIndex, int count)
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
if (array == null)
|
|
||||||
throw new ArgumentNullException("array");
|
|
||||||
if (index < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("index", "Value is less than zero");
|
|
||||||
if (arrayIndex < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
|
|
||||||
if (count < 0)
|
|
||||||
throw new ArgumentOutOfRangeException("count", "Value is less than zero");
|
|
||||||
if (array.Rank > 1)
|
|
||||||
throw new ArgumentException("Multi dimensional array.", "array");
|
|
||||||
if (index+count > this.Count || arrayIndex+count > array.Length)
|
|
||||||
throw new ArgumentException("Number of elements to copy is too large.");
|
|
||||||
for (int i=0; i<count; i++)
|
|
||||||
array.SetValue(getitemcopy(index+i), arrayIndex+i);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
System.Collections.Generic.IEnumerator<aiVertexWeight> System.Collections.Generic.IEnumerable<aiVertexWeight>.GetEnumerator() {
|
|
||||||
return new aiVertexWeightVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() {
|
|
||||||
return new aiVertexWeightVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVertexWeightVectorEnumerator GetEnumerator() {
|
|
||||||
return new aiVertexWeightVectorEnumerator(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe enumerator
|
|
||||||
/// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
|
|
||||||
/// whenever the collection is modified. This has been done for changes in the size of the
|
|
||||||
/// collection but not when one of the elements of the collection is modified as it is a bit
|
|
||||||
/// tricky to detect unmanaged code that modifies the collection under our feet.
|
|
||||||
public sealed class aiVertexWeightVectorEnumerator : System.Collections.IEnumerator
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
, System.Collections.Generic.IEnumerator<aiVertexWeight>
|
|
||||||
#endif
|
|
||||||
{
|
|
||||||
private aiVertexWeightVector collectionRef;
|
|
||||||
private int currentIndex;
|
|
||||||
private object currentObject;
|
|
||||||
private int currentSize;
|
|
||||||
|
|
||||||
public aiVertexWeightVectorEnumerator(aiVertexWeightVector collection) {
|
|
||||||
collectionRef = collection;
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
currentSize = collectionRef.Count;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-safe iterator Current
|
|
||||||
public aiVertexWeight Current {
|
|
||||||
get {
|
|
||||||
if (currentIndex == -1)
|
|
||||||
throw new InvalidOperationException("Enumeration not started.");
|
|
||||||
if (currentIndex > currentSize - 1)
|
|
||||||
throw new InvalidOperationException("Enumeration finished.");
|
|
||||||
if (currentObject == null)
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
return (aiVertexWeight)currentObject;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Type-unsafe IEnumerator.Current
|
|
||||||
object System.Collections.IEnumerator.Current {
|
|
||||||
get {
|
|
||||||
return Current;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool MoveNext() {
|
|
||||||
int size = collectionRef.Count;
|
|
||||||
bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
|
|
||||||
if (moveOkay) {
|
|
||||||
currentIndex++;
|
|
||||||
currentObject = collectionRef[currentIndex];
|
|
||||||
} else {
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
return moveOkay;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reset() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
if (collectionRef.Count != currentSize) {
|
|
||||||
throw new InvalidOperationException("Collection modified.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#if !SWIG_DOTNET_1
|
|
||||||
public void Dispose() {
|
|
||||||
currentIndex = -1;
|
|
||||||
currentObject = null;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Clear() {
|
|
||||||
AssimpPINVOKE.aiVertexWeightVector_Clear(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Add(aiVertexWeight x) {
|
|
||||||
AssimpPINVOKE.aiVertexWeightVector_Add(swigCPtr, aiVertexWeight.getCPtr(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint size() {
|
|
||||||
uint ret = AssimpPINVOKE.aiVertexWeightVector_size(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private uint capacity() {
|
|
||||||
uint ret = AssimpPINVOKE.aiVertexWeightVector_capacity(swigCPtr);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void reserve(uint n) {
|
|
||||||
AssimpPINVOKE.aiVertexWeightVector_reserve(swigCPtr, n);
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVertexWeightVector() : this(AssimpPINVOKE.new_aiVertexWeightVector__SWIG_0(), true) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVertexWeightVector(aiVertexWeightVector other) : this(AssimpPINVOKE.new_aiVertexWeightVector__SWIG_1(aiVertexWeightVector.getCPtr(other)), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVertexWeightVector(int capacity) : this(AssimpPINVOKE.new_aiVertexWeightVector__SWIG_2(capacity), true) {
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVertexWeight getitemcopy(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiVertexWeightVector_getitemcopy(swigCPtr, index);
|
|
||||||
aiVertexWeight ret = (cPtr == IntPtr.Zero) ? null : new aiVertexWeight(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private aiVertexWeight getitem(int index) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiVertexWeightVector_getitem(swigCPtr, index);
|
|
||||||
aiVertexWeight ret = (cPtr == IntPtr.Zero) ? null : new aiVertexWeight(cPtr, false);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setitem(int index, aiVertexWeight val) {
|
|
||||||
AssimpPINVOKE.aiVertexWeightVector_setitem(swigCPtr, index, aiVertexWeight.getCPtr(val));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void AddRange(aiVertexWeightVector values) {
|
|
||||||
AssimpPINVOKE.aiVertexWeightVector_AddRange(swigCPtr, aiVertexWeightVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public aiVertexWeightVector GetRange(int index, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiVertexWeightVector_GetRange(swigCPtr, index, count);
|
|
||||||
aiVertexWeightVector ret = (cPtr == IntPtr.Zero) ? null : new aiVertexWeightVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Insert(int index, aiVertexWeight x) {
|
|
||||||
AssimpPINVOKE.aiVertexWeightVector_Insert(swigCPtr, index, aiVertexWeight.getCPtr(x));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InsertRange(int index, aiVertexWeightVector values) {
|
|
||||||
AssimpPINVOKE.aiVertexWeightVector_InsertRange(swigCPtr, index, aiVertexWeightVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveAt(int index) {
|
|
||||||
AssimpPINVOKE.aiVertexWeightVector_RemoveAt(swigCPtr, index);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void RemoveRange(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiVertexWeightVector_RemoveRange(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static aiVertexWeightVector Repeat(aiVertexWeight value, int count) {
|
|
||||||
IntPtr cPtr = AssimpPINVOKE.aiVertexWeightVector_Repeat(aiVertexWeight.getCPtr(value), count);
|
|
||||||
aiVertexWeightVector ret = (cPtr == IntPtr.Zero) ? null : new aiVertexWeightVector(cPtr, true);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse() {
|
|
||||||
AssimpPINVOKE.aiVertexWeightVector_Reverse__SWIG_0(swigCPtr);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Reverse(int index, int count) {
|
|
||||||
AssimpPINVOKE.aiVertexWeightVector_Reverse__SWIG_1(swigCPtr, index, count);
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRange(int index, aiVertexWeightVector values) {
|
|
||||||
AssimpPINVOKE.aiVertexWeightVector_SetRange(swigCPtr, index, aiVertexWeightVector.getCPtr(values));
|
|
||||||
if (AssimpPINVOKE.SWIGPendingException.Pending) throw AssimpPINVOKE.SWIGPendingException.Retrieve();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Contains(aiVertexWeight value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiVertexWeightVector_Contains(swigCPtr, aiVertexWeight.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int IndexOf(aiVertexWeight value) {
|
|
||||||
int ret = AssimpPINVOKE.aiVertexWeightVector_IndexOf(swigCPtr, aiVertexWeight.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LastIndexOf(aiVertexWeight value) {
|
|
||||||
int ret = AssimpPINVOKE.aiVertexWeightVector_LastIndexOf(swigCPtr, aiVertexWeight.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Remove(aiVertexWeight value) {
|
|
||||||
bool ret = AssimpPINVOKE.aiVertexWeightVector_Remove(swigCPtr, aiVertexWeight.getCPtr(value));
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<configuration>
|
|
||||||
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
|
|
|
@ -1,172 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup>
|
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
|
||||||
<ProductVersion>9.0.21022</ProductVersion>
|
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
|
||||||
<ProjectGuid>{B2813591-1491-4C99-B6E2-67B484411AFC}</ProjectGuid>
|
|
||||||
<OutputType>WinExe</OutputType>
|
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
||||||
<RootNamespace>Assimp.Viewer</RootNamespace>
|
|
||||||
<AssemblyName>Assimp.Viewer</AssemblyName>
|
|
||||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
|
||||||
<FileAlignment>512</FileAlignment>
|
|
||||||
<StartupObject>Assimp.Viewer.Program</StartupObject>
|
|
||||||
<PublishUrl>publish\</PublishUrl>
|
|
||||||
<Install>true</Install>
|
|
||||||
<InstallFrom>Disk</InstallFrom>
|
|
||||||
<UpdateEnabled>false</UpdateEnabled>
|
|
||||||
<UpdateMode>Foreground</UpdateMode>
|
|
||||||
<UpdateInterval>7</UpdateInterval>
|
|
||||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
|
||||||
<UpdatePeriodically>false</UpdatePeriodically>
|
|
||||||
<UpdateRequired>false</UpdateRequired>
|
|
||||||
<MapFileExtensions>true</MapFileExtensions>
|
|
||||||
<ApplicationRevision>0</ApplicationRevision>
|
|
||||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
|
||||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
|
||||||
<UseApplicationTrust>false</UseApplicationTrust>
|
|
||||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
|
||||||
<TargetFrameworkSubset>
|
|
||||||
</TargetFrameworkSubset>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<Optimize>false</Optimize>
|
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
|
||||||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
<WarningLevel>4</WarningLevel>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
|
||||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
||||||
<DebugType>full</DebugType>
|
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
|
||||||
<OutputPath>bin\x86\Release\</OutputPath>
|
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
|
||||||
<Optimize>true</Optimize>
|
|
||||||
<DebugType>pdbonly</DebugType>
|
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
|
||||||
<ErrorReport>prompt</ErrorReport>
|
|
||||||
</PropertyGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Reference Include="Microsoft.DirectX, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
|
||||||
<Reference Include="Microsoft.DirectX.Direct3D, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
|
||||||
<Reference Include="Microsoft.DirectX.Direct3DX, Version=1.0.2911.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
|
||||||
<Reference Include="Microsoft.DirectX.DirectInput, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
|
|
||||||
<Reference Include="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
|
||||||
<Reference Include="Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
|
||||||
<Reference Include="System" />
|
|
||||||
<Reference Include="System.Core">
|
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Web" />
|
|
||||||
<Reference Include="System.Web.Services" />
|
|
||||||
<Reference Include="System.Xml.Linq">
|
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Data.DataSetExtensions">
|
|
||||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
|
||||||
</Reference>
|
|
||||||
<Reference Include="System.Data" />
|
|
||||||
<Reference Include="System.Deployment" />
|
|
||||||
<Reference Include="System.Drawing" />
|
|
||||||
<Reference Include="System.Windows.Forms" />
|
|
||||||
<Reference Include="System.Xml" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Include="AssimpView.cs">
|
|
||||||
<SubType>Form</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="AssimpView.Designer.cs">
|
|
||||||
<DependentUpon>AssimpView.cs</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Camera.cs" />
|
|
||||||
<Compile Include="ExtensionMethods.cs" />
|
|
||||||
<Compile Include="Input.cs">
|
|
||||||
<SubType>Form</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Program.cs" />
|
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
<EmbeddedResource Include="AssimpView.resx">
|
|
||||||
<DependentUpon>AssimpView.cs</DependentUpon>
|
|
||||||
</EmbeddedResource>
|
|
||||||
<EmbeddedResource Include="Properties\Resources.resx">
|
|
||||||
<Generator>ResXFileCodeGenerator</Generator>
|
|
||||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</EmbeddedResource>
|
|
||||||
<Compile Include="Properties\Resources.Designer.cs">
|
|
||||||
<AutoGen>True</AutoGen>
|
|
||||||
<DependentUpon>Resources.resx</DependentUpon>
|
|
||||||
<DesignTime>True</DesignTime>
|
|
||||||
</Compile>
|
|
||||||
<None Include="app.config" />
|
|
||||||
<None Include="Properties\Settings.settings">
|
|
||||||
<Generator>SettingsSingleFileGenerator</Generator>
|
|
||||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
|
||||||
</None>
|
|
||||||
<Compile Include="Properties\Settings.Designer.cs">
|
|
||||||
<AutoGen>True</AutoGen>
|
|
||||||
<DependentUpon>Settings.settings</DependentUpon>
|
|
||||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
|
||||||
</Compile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\Assimp.NET\Assimp.NET.vcproj">
|
|
||||||
<Project>{A86A8AF2-3B4D-4381-BB01-9CA2AE88450E}</Project>
|
|
||||||
<Name>Assimp_NET</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
<ProjectReference Include="..\Assimp.NET_CS\Assimp.NET_CS.csproj">
|
|
||||||
<Project>{A0CE9ED2-A27E-40AE-95F5-FEF94BB7E131}</Project>
|
|
||||||
<Name>Assimp.NET_CS</Name>
|
|
||||||
</ProjectReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
|
|
||||||
<Visible>False</Visible>
|
|
||||||
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
|
|
||||||
<Install>false</Install>
|
|
||||||
</BootstrapperPackage>
|
|
||||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
|
|
||||||
<Visible>False</Visible>
|
|
||||||
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
|
|
||||||
<Install>false</Install>
|
|
||||||
</BootstrapperPackage>
|
|
||||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
|
|
||||||
<Visible>False</Visible>
|
|
||||||
<ProductName>.NET Framework 3.5</ProductName>
|
|
||||||
<Install>true</Install>
|
|
||||||
</BootstrapperPackage>
|
|
||||||
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
|
|
||||||
<Visible>False</Visible>
|
|
||||||
<ProductName>Windows Installer 3.1</ProductName>
|
|
||||||
<Install>true</Install>
|
|
||||||
</BootstrapperPackage>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
|
||||||
<Target Name="BeforeBuild">
|
|
||||||
</Target>
|
|
||||||
<Target Name="AfterBuild">
|
|
||||||
</Target>
|
|
||||||
-->
|
|
||||||
</Project>
|
|
|
@ -1,18 +0,0 @@
|
||||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
|
||||||
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
|
||||||
<PublishUrlHistory>publish\</PublishUrlHistory>
|
|
||||||
<InstallUrlHistory>
|
|
||||||
</InstallUrlHistory>
|
|
||||||
<SupportUrlHistory>
|
|
||||||
</SupportUrlHistory>
|
|
||||||
<UpdateUrlHistory>
|
|
||||||
</UpdateUrlHistory>
|
|
||||||
<BootstrapperUrlHistory>
|
|
||||||
</BootstrapperUrlHistory>
|
|
||||||
<FallbackCulture>de-DE</FallbackCulture>
|
|
||||||
<VerifyUploadedFiles>false</VerifyUploadedFiles>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Project>
|
|
|
@ -1,90 +0,0 @@
|
||||||
/*
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
Open Asset Import Library (ASSIMP)
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Copyright (c) 2006-2010, ASSIMP Development Team
|
|
||||||
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use of this software in source and binary forms,
|
|
||||||
with or without modification, are permitted provided that the following
|
|
||||||
conditions are met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above
|
|
||||||
copyright notice, this list of conditions and the
|
|
||||||
following disclaimer.
|
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above
|
|
||||||
copyright notice, this list of conditions and the
|
|
||||||
following disclaimer in the documentation and/or other
|
|
||||||
materials provided with the distribution.
|
|
||||||
|
|
||||||
* Neither the name of the ASSIMP team, nor the names of its
|
|
||||||
contributors may be used to endorse or promote products
|
|
||||||
derived from this software without specific prior
|
|
||||||
written permission of the ASSIMP Development Team.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
namespace Assimp.Viewer
|
|
||||||
{
|
|
||||||
partial class AssimpView
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Erforderliche Designervariable.
|
|
||||||
/// </summary>
|
|
||||||
private System.ComponentModel.IContainer components = null;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Verwendete Ressourcen bereinigen.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
|
||||||
protected override void Dispose(bool disposing)
|
|
||||||
{
|
|
||||||
if (disposing && (components != null))
|
|
||||||
{
|
|
||||||
components.Dispose();
|
|
||||||
}
|
|
||||||
base.Dispose(disposing);
|
|
||||||
}
|
|
||||||
|
|
||||||
#region Vom Windows Form-Designer generierter Code
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Erforderliche Methode für die Designerunterstützung.
|
|
||||||
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
this.SuspendLayout();
|
|
||||||
//
|
|
||||||
// Form1
|
|
||||||
//
|
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
||||||
this.ClientSize = new System.Drawing.Size(735, 380);
|
|
||||||
this.Name = "Form1";
|
|
||||||
this.Text = "Form1";
|
|
||||||
this.Load += new System.EventHandler(this.Form1_Load);
|
|
||||||
this.SizeChanged += new System.EventHandler(this.Form1_SizeChanged);
|
|
||||||
this.ResumeLayout(false);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,496 +0,0 @@
|
||||||
/*
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
Open Asset Import Library (ASSIMP)
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Copyright (c) 2006-2010, ASSIMP Development Team
|
|
||||||
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use of this software in source and binary forms,
|
|
||||||
with or without modification, are permitted provided that the following
|
|
||||||
conditions are met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above
|
|
||||||
copyright notice, this list of conditions and the
|
|
||||||
following disclaimer.
|
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above
|
|
||||||
copyright notice, this list of conditions and the
|
|
||||||
following disclaimer in the documentation and/or other
|
|
||||||
materials provided with the distribution.
|
|
||||||
|
|
||||||
* Neither the name of the ASSIMP team, nor the names of its
|
|
||||||
contributors may be used to endorse or promote products
|
|
||||||
derived from this software without specific prior
|
|
||||||
written permission of the ASSIMP Development Team.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Data;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Drawing;
|
|
||||||
using System.IO;
|
|
||||||
using System.Text;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
using Microsoft.DirectX;
|
|
||||||
using Microsoft.DirectX.Direct3D;
|
|
||||||
|
|
||||||
namespace Assimp.Viewer
|
|
||||||
{
|
|
||||||
public partial class AssimpView : Form
|
|
||||||
{
|
|
||||||
public AssimpView()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
|
|
||||||
// Window title
|
|
||||||
this.Text = "Assimp .NET Viewer";
|
|
||||||
|
|
||||||
// Ignore WM_ERASEBKGND messages to prevent flicker
|
|
||||||
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
|
|
||||||
|
|
||||||
// Listen to mouse
|
|
||||||
this.MouseDown += new MouseEventHandler(AssimpView_MouseDown);
|
|
||||||
this.MouseMove += new MouseEventHandler(AssimpView_MouseMove);
|
|
||||||
this.MouseUp += new MouseEventHandler(AssimpView_MouseUp);
|
|
||||||
this.MouseWheel += new MouseEventHandler(AssimpView_MouseWheel);
|
|
||||||
}
|
|
||||||
|
|
||||||
void AssimpView_MouseWheel(object sender, MouseEventArgs e) {
|
|
||||||
g_sCamera.vPos.Z *= 1.0f - (e.Delta / 1000.0f);
|
|
||||||
Refresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void AssimpView_MouseDown(object sender, MouseEventArgs e) {
|
|
||||||
UpdateMouseState(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void AssimpView_MouseMove(object sender, MouseEventArgs e) {
|
|
||||||
UpdateMouseState(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void AssimpView_MouseUp(object sender, MouseEventArgs e) {
|
|
||||||
UpdateMouseState(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void UpdateMouseState(MouseEventArgs e) {
|
|
||||||
g_bMousePressed = (e.Button == MouseButtons.Left);
|
|
||||||
g_bMousePressedR = (e.Button == MouseButtons.Right);
|
|
||||||
g_bMousePressedM = (e.Button == MouseButtons.Middle);
|
|
||||||
g_bMousePressedBoth = (e.Button == (MouseButtons.Left | MouseButtons.Right));
|
|
||||||
Refresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void OnPaintBackground(PaintEventArgs pevent) {
|
|
||||||
/* Do nothing to prevent flicker during resize */
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Form1_Load(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
InitializeDevice();
|
|
||||||
InitializeAssimp();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Form1_SizeChanged(object sender, EventArgs e) {
|
|
||||||
presentParams.BackBufferWidth = Width;
|
|
||||||
presentParams.BackBufferHeight = Height;
|
|
||||||
device.Reset(presentParams);
|
|
||||||
Invalidate();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void InitializeDevice()
|
|
||||||
{
|
|
||||||
// Improve Performance
|
|
||||||
// http://blogs.msdn.com/b/tmiller/archive/2003/11/14/57531.aspx
|
|
||||||
Device.IsUsingEventHandlers = false;
|
|
||||||
|
|
||||||
// For Windowed mode leave Width and Height at 0
|
|
||||||
var adapter = Manager.Adapters.Default;
|
|
||||||
presentParams = new PresentParameters();
|
|
||||||
presentParams.AutoDepthStencilFormat = DepthFormat.D16;
|
|
||||||
presentParams.EnableAutoDepthStencil = true;
|
|
||||||
presentParams.Windowed = true;
|
|
||||||
presentParams.SwapEffect = SwapEffect.Discard;
|
|
||||||
|
|
||||||
// Keep precision in floating point calculations
|
|
||||||
// http://blogs.msdn.com/b/tmiller/archive/2004/06/01/145596.aspx
|
|
||||||
var createFlags = CreateFlags.FpuPreserve;
|
|
||||||
|
|
||||||
// Pure device for performance - all device render states are now write only
|
|
||||||
var deviceType = DeviceType.Hardware;
|
|
||||||
var caps = Manager.GetDeviceCaps(adapter.Adapter, deviceType);
|
|
||||||
if (caps.DeviceCaps.SupportsPureDevice) {
|
|
||||||
createFlags |= CreateFlags.PureDevice;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Warning: some drivers lie about supporting HT&L. Use Software if you see problems.
|
|
||||||
if (caps.DeviceCaps.SupportsHardwareTransformAndLight) {
|
|
||||||
createFlags |= CreateFlags.HardwareVertexProcessing;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
createFlags |= CreateFlags.SoftwareVertexProcessing;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create Device
|
|
||||||
device = new Device(adapter.Adapter, deviceType, this, createFlags, presentParams);
|
|
||||||
|
|
||||||
// Add event handlers
|
|
||||||
device.DeviceResizing += new CancelEventHandler(device_DeviceResizing);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void device_DeviceResizing(object sender, CancelEventArgs e) {
|
|
||||||
device.Reset();
|
|
||||||
}
|
|
||||||
|
|
||||||
// default pp steps
|
|
||||||
private static aiPostProcessSteps ppsteps =
|
|
||||||
aiPostProcessSteps.aiProcess_CalcTangentSpace | // calculate tangents and bitangents if possible
|
|
||||||
aiPostProcessSteps.aiProcess_JoinIdenticalVertices | // join identical vertices/ optimize indexing
|
|
||||||
aiPostProcessSteps.aiProcess_ValidateDataStructure | // perform a full validation of the loader's output
|
|
||||||
aiPostProcessSteps.aiProcess_ImproveCacheLocality | // improve the cache locality of the output vertices
|
|
||||||
aiPostProcessSteps.aiProcess_RemoveRedundantMaterials | // remove redundant materials
|
|
||||||
aiPostProcessSteps.aiProcess_FindDegenerates | // remove degenerated polygons from the import
|
|
||||||
aiPostProcessSteps.aiProcess_FindInvalidData | // detect invalid model data, such as invalid normal vectors
|
|
||||||
aiPostProcessSteps.aiProcess_GenUVCoords | // convert spherical, cylindrical, box and planar mapping to proper UVs
|
|
||||||
aiPostProcessSteps.aiProcess_TransformUVCoords | // preprocess UV transformations (scaling, translation ...)
|
|
||||||
aiPostProcessSteps.aiProcess_FindInstances | // search for instanced meshes and remove them by references to one master
|
|
||||||
aiPostProcessSteps.aiProcess_LimitBoneWeights | // limit bone weights to 4 per vertex
|
|
||||||
aiPostProcessSteps.aiProcess_OptimizeMeshes | // join small meshes, if possible;
|
|
||||||
(aiPostProcessSteps)0;
|
|
||||||
|
|
||||||
|
|
||||||
public void InitializeAssimp() {
|
|
||||||
var flags = ( ppsteps |
|
|
||||||
aiPostProcessSteps.aiProcess_GenSmoothNormals | // generate smooth normal vectors if not existing
|
|
||||||
aiPostProcessSteps.aiProcess_SplitLargeMeshes | // split large, unrenderable meshes into submeshes
|
|
||||||
aiPostProcessSteps.aiProcess_Triangulate | // triangulate polygons with more than 3 edges
|
|
||||||
aiPostProcessSteps.aiProcess_ConvertToLeftHanded | // convert everything to D3D left handed space
|
|
||||||
aiPostProcessSteps.aiProcess_SortByPType | // make 'clean' meshes which consist of a single typ of primitives
|
|
||||||
(aiPostProcessSteps)0);
|
|
||||||
|
|
||||||
// default model
|
|
||||||
var path = "../../../../../test/models/3DS/test1.3ds";
|
|
||||||
|
|
||||||
importer = new Importer();
|
|
||||||
string[] args = Environment.GetCommandLineArgs();
|
|
||||||
if (args.Length > 1) {
|
|
||||||
path = args[1];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//var path = "man.3ds";
|
|
||||||
scene = importer.ReadFile(path, flags);
|
|
||||||
if (scene != null)
|
|
||||||
{
|
|
||||||
directory = Path.GetDirectoryName(path);
|
|
||||||
CacheMaterials(scene.mMaterials);
|
|
||||||
CacheMeshes(scene.mMeshes);
|
|
||||||
SetupCamera(scene.mCameras);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
MessageBox.Show("Failed to open file: " + path + ". Either Assimp screwed up or the path is not valid.");
|
|
||||||
Application.Exit();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void CacheMeshes(aiMeshVector meshes) {
|
|
||||||
var numMeshes = meshes.Count;
|
|
||||||
meshCache = new Mesh[numMeshes];
|
|
||||||
meshBoundsMin = new Vector3[numMeshes];
|
|
||||||
meshBoundsMax = new Vector3[numMeshes];
|
|
||||||
|
|
||||||
for (int i = 0; i < numMeshes; ++i) {
|
|
||||||
var mesh = meshes[i];
|
|
||||||
|
|
||||||
switch (mesh.mPrimitiveTypes) {
|
|
||||||
case aiPrimitiveType.aiPrimitiveType_TRIANGLE:
|
|
||||||
Vector3 min, max;
|
|
||||||
meshCache[i] = CreateMesh(mesh, out min, out max);
|
|
||||||
meshBoundsMin[i] = min;
|
|
||||||
meshBoundsMax[i] = max;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void CacheMaterials(aiMaterialVector materials) {
|
|
||||||
var numMaterials = materials.Count;
|
|
||||||
materialCache = new ExtendedMaterial[numMaterials];
|
|
||||||
textureCache = new Dictionary<string, Texture>();
|
|
||||||
|
|
||||||
for (int i = 0; i < numMaterials; ++i) {
|
|
||||||
var material = materials[i];
|
|
||||||
var dxExtendedMaterial = new ExtendedMaterial();
|
|
||||||
var dxMaterial = new Material();
|
|
||||||
dxMaterial.AmbientColor = material.Ambient.ToColorValue();
|
|
||||||
dxMaterial.DiffuseColor = material.Diffuse.ToColorValue();
|
|
||||||
dxMaterial.EmissiveColor = material.Emissive.ToColorValue();
|
|
||||||
dxMaterial.SpecularColor = material.Specular.ToColorValue();
|
|
||||||
dxMaterial.SpecularSharpness = material.ShininessStrength;
|
|
||||||
dxExtendedMaterial.Material3D = dxMaterial;
|
|
||||||
dxExtendedMaterial.TextureFilename = material.TextureDiffuse0;
|
|
||||||
|
|
||||||
materialCache[i] = dxExtendedMaterial;
|
|
||||||
|
|
||||||
var textureFilename = dxExtendedMaterial.TextureFilename;
|
|
||||||
if (!string.IsNullOrEmpty(textureFilename) && !textureCache.ContainsKey(textureFilename)) {
|
|
||||||
textureCache.Add(textureFilename, CreateTexture(textureFilename));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private Texture CreateTexture(string fileName) {
|
|
||||||
var path = Path.Combine(directory, fileName);
|
|
||||||
try {
|
|
||||||
using (var data = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read)) {
|
|
||||||
var dxTexture = Texture.FromStream(device, data, Usage.None, Pool.Managed);
|
|
||||||
textureCache[path] = dxTexture;
|
|
||||||
return dxTexture;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private Mesh CreateMesh(aiMesh aiMesh, out Vector3 min, out Vector3 max) {
|
|
||||||
var numFaces = (int) aiMesh.mNumFaces;
|
|
||||||
var numVertices = (int) aiMesh.mNumVertices;
|
|
||||||
|
|
||||||
var dxMesh = new Mesh(numFaces, numVertices, MeshFlags.Managed | MeshFlags.Use32Bit,
|
|
||||||
CustomVertex.PositionNormalTextured.Format, device);
|
|
||||||
|
|
||||||
var aiPositions = aiMesh.mVertices;
|
|
||||||
var aiNormals = aiMesh.mNormals;
|
|
||||||
var aiTextureCoordsAll = aiMesh.mTextureCoords;
|
|
||||||
var aiTextureCoords = (aiTextureCoordsAll!=null) ? aiTextureCoordsAll[0] : null;
|
|
||||||
var dxVertices = new CustomVertex.PositionNormalTextured[numVertices];
|
|
||||||
for (int i = 0; i < numVertices; ++i) {
|
|
||||||
dxVertices[i].Position = aiPositions[i].ToVector3();
|
|
||||||
if (aiNormals != null) {
|
|
||||||
dxVertices[i].Normal = aiNormals[i].ToVector3();
|
|
||||||
}
|
|
||||||
if (aiTextureCoords != null) {
|
|
||||||
var uv = aiTextureCoords[i];
|
|
||||||
dxVertices[i].Tu = uv.x;
|
|
||||||
dxVertices[i].Tv = uv.y;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
dxMesh.VertexBuffer.SetData(dxVertices, 0, LockFlags.None);
|
|
||||||
|
|
||||||
var aiFaces = aiMesh.mFaces;
|
|
||||||
var dxIndices = new uint[numFaces * 3];
|
|
||||||
for (int i = 0; i < numFaces; ++i) {
|
|
||||||
var aiFace = aiFaces[i];
|
|
||||||
var aiIndices = aiFace.mIndices;
|
|
||||||
for (int j = 0; j < 3; ++j) {
|
|
||||||
dxIndices[i * 3 + j] = aiIndices[j];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
dxMesh.IndexBuffer.SetData(dxIndices, 0, LockFlags.None);
|
|
||||||
|
|
||||||
var dxAttributes = dxMesh.LockAttributeBufferArray(LockFlags.None);
|
|
||||||
// TODO: Set face material index for attributes
|
|
||||||
dxMesh.UnlockAttributeBuffer(dxAttributes);
|
|
||||||
|
|
||||||
var adjacency = new int[numFaces * 3];
|
|
||||||
dxMesh.GenerateAdjacency(0.0f, adjacency);
|
|
||||||
dxMesh.OptimizeInPlace(MeshFlags.OptimizeAttributeSort, adjacency);
|
|
||||||
|
|
||||||
Geometry.ComputeBoundingBox(dxVertices, CustomVertex.PositionNormalTextured.StrideSize, out min, out max);
|
|
||||||
|
|
||||||
return dxMesh;
|
|
||||||
}
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
// Calculate the boundaries of a given node and all of its children
|
|
||||||
// The boundaries are in Worldspace (AABB)
|
|
||||||
// piNode Input node
|
|
||||||
// min/max Receives the min/max boundaries
|
|
||||||
// piMatrix Transformation matrix of the graph at this position
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
private void CalculateBounds(aiNode piNode, ref Vector3 min, ref Vector3 max, Matrix piMatrix) {
|
|
||||||
Debug.Assert(null != piNode);
|
|
||||||
|
|
||||||
var mTemp = piNode.mTransformation.ToMatrix();
|
|
||||||
var aiMe = mTemp * piMatrix;
|
|
||||||
|
|
||||||
var meshes = piNode.mMeshes;
|
|
||||||
var numMeshes = meshes.Count;
|
|
||||||
for (int i = 0; i < numMeshes; ++i) {
|
|
||||||
var mesh = meshes[i];
|
|
||||||
var meshMin = Vector3.TransformCoordinate(meshBoundsMin[mesh], aiMe);
|
|
||||||
var meshMax = Vector3.TransformCoordinate(meshBoundsMax[mesh], aiMe);
|
|
||||||
min.X = Math.Min(min.X, meshMin.X);
|
|
||||||
min.Y = Math.Min(min.Y, meshMin.Y);
|
|
||||||
min.Z = Math.Min(min.Z, meshMin.Z);
|
|
||||||
max.X = Math.Max(max.X, meshMax.X);
|
|
||||||
max.Y = Math.Max(max.Y, meshMax.Y);
|
|
||||||
max.Z = Math.Max(max.Z, meshMax.Z);
|
|
||||||
}
|
|
||||||
var children = piNode.mChildren;
|
|
||||||
var numChildren = children.Count;
|
|
||||||
for (int i = 0; i < numChildren; ++i) {
|
|
||||||
CalculateBounds(children[i], ref min, ref max, aiMe);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) {
|
|
||||||
HandleMouseInputLocal();
|
|
||||||
Render();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Render() {
|
|
||||||
device.Clear(ClearFlags.Target|ClearFlags.ZBuffer, Color.DarkSlateBlue, 1.0f, 0);
|
|
||||||
device.BeginScene();
|
|
||||||
|
|
||||||
SetupMatrices();
|
|
||||||
|
|
||||||
if (scene != null && scene.mRootNode != null) {
|
|
||||||
SetupLights(scene.mLights);
|
|
||||||
RenderNode(scene.mRootNode, g_mWorldRotate);
|
|
||||||
}
|
|
||||||
|
|
||||||
device.EndScene();
|
|
||||||
device.Present();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void SetupMatrices() {
|
|
||||||
var fovy = Geometry.DegreeToRadian(45.0f);
|
|
||||||
var aspect = ((float)this.Width / (float)this.Height);
|
|
||||||
device.Transform.Projection = Matrix.PerspectiveFovLH(fovy, aspect, g_zNear, g_zFar);
|
|
||||||
device.Transform.View = g_sCamera.GetMatrix();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void SetupCamera(aiCameraVector cameras) {
|
|
||||||
// Get scene bounds
|
|
||||||
var min = new Vector3(float.MaxValue, float.MaxValue, float.MaxValue);
|
|
||||||
var max = new Vector3(float.MinValue, float.MinValue, float.MinValue);
|
|
||||||
CalculateBounds(scene.mRootNode, ref min, ref max, Matrix.Identity);
|
|
||||||
|
|
||||||
// Projection Depth
|
|
||||||
var size = (max-min);
|
|
||||||
g_zFar = Math.Max(Math.Max(size.X, size.Y), size.Z) * 100;
|
|
||||||
|
|
||||||
// Starting View Position
|
|
||||||
var center = min + size * 0.5f;
|
|
||||||
var lookAt = new Vector3(0,0,1); // Unit vector not coordinate
|
|
||||||
var position = new Vector3(center.X, center.Y, center.Z-(size.Z*10));
|
|
||||||
var up = new Vector3(0, 1, 0);
|
|
||||||
if (cameras.Count > 0) {
|
|
||||||
var camera = cameras[0];
|
|
||||||
lookAt = camera.mLookAt.ToVector3();
|
|
||||||
position = camera.mPosition.ToVector3();
|
|
||||||
up = camera.mUp.ToVector3();
|
|
||||||
}
|
|
||||||
g_sCamera.vLookAt = lookAt;
|
|
||||||
g_sCamera.vPos = position;
|
|
||||||
g_sCamera.vUp = up;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void SetupLights(aiLightVector lights) {
|
|
||||||
var numLights = lights.Count;
|
|
||||||
|
|
||||||
if (numLights == 0) {
|
|
||||||
var light = device.Lights[0];
|
|
||||||
light.Type = LightType.Directional;
|
|
||||||
light.Diffuse = Color.LightGray;
|
|
||||||
light.Direction = new Vector3(-1, -1, 1);
|
|
||||||
light.Enabled = true;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
// TODO: setup lights
|
|
||||||
}
|
|
||||||
|
|
||||||
// Enables lighting
|
|
||||||
device.RenderState.Lighting = true;
|
|
||||||
device.RenderState.Ambient = Color.DarkGray;
|
|
||||||
device.RenderState.SpecularEnable = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void RenderNode(aiNode node, Matrix parentMatrix) {
|
|
||||||
var nodeMatrix = node.mTransformation.ToMatrix() * parentMatrix;
|
|
||||||
|
|
||||||
var children = node.mChildren;
|
|
||||||
var numChildren = node.mNumChildren;
|
|
||||||
for (int i = 0; i < numChildren; ++i) {
|
|
||||||
var child = children[i];
|
|
||||||
RenderNode(child, nodeMatrix);
|
|
||||||
}
|
|
||||||
|
|
||||||
device.Transform.World = nodeMatrix;
|
|
||||||
var meshes = node.mMeshes;
|
|
||||||
var numMeshes = meshes.Count;
|
|
||||||
for (int i = 0; i < numMeshes; ++i) {
|
|
||||||
var meshId = (int)meshes[i];
|
|
||||||
var mesh = scene.mMeshes[meshId];
|
|
||||||
var materialId = (int)mesh.mMaterialIndex;
|
|
||||||
|
|
||||||
var dxMaterial = materialCache[materialId];
|
|
||||||
device.Material = dxMaterial.Material3D;
|
|
||||||
|
|
||||||
Texture dxTexture = null;
|
|
||||||
if (!string.IsNullOrEmpty(dxMaterial.TextureFilename)) {
|
|
||||||
textureCache.TryGetValue(dxMaterial.TextureFilename, out dxTexture);
|
|
||||||
}
|
|
||||||
device.SetTexture(0, dxTexture);
|
|
||||||
|
|
||||||
var dxMesh = meshCache[meshId];
|
|
||||||
RenderMesh(dxMesh);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void RenderMesh(Mesh mesh) {
|
|
||||||
for (int i = 0; i < mesh.NumberAttributes; ++i) {
|
|
||||||
mesh.DrawSubset(i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private Device device;
|
|
||||||
private PresentParameters presentParams;
|
|
||||||
|
|
||||||
private Importer importer;
|
|
||||||
private string directory;
|
|
||||||
private aiScene scene;
|
|
||||||
private Mesh[] meshCache;
|
|
||||||
private ExtendedMaterial[] materialCache;
|
|
||||||
private Dictionary<string, Texture> textureCache;
|
|
||||||
private Vector3[] meshBoundsMin;
|
|
||||||
private Vector3[] meshBoundsMax;
|
|
||||||
|
|
||||||
private Camera g_sCamera = new Camera();
|
|
||||||
private float g_zNear = 0.2f;
|
|
||||||
private float g_zFar = 1000.0f;
|
|
||||||
private Matrix g_mProjection = Matrix.Identity;
|
|
||||||
private Matrix g_mWorldRotate = Matrix.Identity;
|
|
||||||
}
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
// Position of the cursor relative to the 3ds max' like control circle
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
public enum EClickPos {
|
|
||||||
// The click was inside the inner circle (x,y axis)
|
|
||||||
Circle,
|
|
||||||
// The click was inside one of tghe vertical snap-ins
|
|
||||||
CircleVert,
|
|
||||||
// The click was inside onf of the horizontal snap-ins
|
|
||||||
CircleHor,
|
|
||||||
// the cklick was outside the circle (z-axis)
|
|
||||||
Outside
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,120 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<root>
|
|
||||||
<!--
|
|
||||||
Microsoft ResX Schema
|
|
||||||
|
|
||||||
Version 2.0
|
|
||||||
|
|
||||||
The primary goals of this format is to allow a simple XML format
|
|
||||||
that is mostly human readable. The generation and parsing of the
|
|
||||||
various data types are done through the TypeConverter classes
|
|
||||||
associated with the data types.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
... ado.net/XML headers & schema ...
|
|
||||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
|
||||||
<resheader name="version">2.0</resheader>
|
|
||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
|
||||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
|
||||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
|
||||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
|
||||||
</data>
|
|
||||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
|
||||||
<comment>This is a comment</comment>
|
|
||||||
</data>
|
|
||||||
|
|
||||||
There are any number of "resheader" rows that contain simple
|
|
||||||
name/value pairs.
|
|
||||||
|
|
||||||
Each data row contains a name, and value. The row also contains a
|
|
||||||
type or mimetype. Type corresponds to a .NET class that support
|
|
||||||
text/value conversion through the TypeConverter architecture.
|
|
||||||
Classes that don't support this are serialized and stored with the
|
|
||||||
mimetype set.
|
|
||||||
|
|
||||||
The mimetype is used for serialized objects, and tells the
|
|
||||||
ResXResourceReader how to depersist the object. This is currently not
|
|
||||||
extensible. For a given mimetype the value must be set accordingly:
|
|
||||||
|
|
||||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
|
||||||
that the ResXResourceWriter will generate, however the reader can
|
|
||||||
read any of the formats listed below.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.binary.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.soap.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
|
||||||
value : The object must be serialized into a byte array
|
|
||||||
: using a System.ComponentModel.TypeConverter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
-->
|
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
|
||||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:choice maxOccurs="unbounded">
|
|
||||||
<xsd:element name="metadata">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
|
||||||
<xsd:attribute ref="xml:space" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="assembly">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:attribute name="alias" type="xsd:string" />
|
|
||||||
<xsd:attribute name="name" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="data">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
|
||||||
<xsd:attribute ref="xml:space" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="resheader">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:choice>
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:schema>
|
|
||||||
<resheader name="resmimetype">
|
|
||||||
<value>text/microsoft-resx</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="version">
|
|
||||||
<value>2.0</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="reader">
|
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="writer">
|
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
</root>
|
|
|
@ -1,100 +0,0 @@
|
||||||
/*
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
Open Asset Import Library (ASSIMP)
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Copyright (c) 2006-2010, ASSIMP Development Team
|
|
||||||
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use of this software in source and binary forms,
|
|
||||||
with or without modification, are permitted provided that the following
|
|
||||||
conditions are met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above
|
|
||||||
copyright notice, this list of conditions and the
|
|
||||||
following disclaimer.
|
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above
|
|
||||||
copyright notice, this list of conditions and the
|
|
||||||
following disclaimer in the documentation and/or other
|
|
||||||
materials provided with the distribution.
|
|
||||||
|
|
||||||
* Neither the name of the ASSIMP team, nor the names of its
|
|
||||||
contributors may be used to endorse or promote products
|
|
||||||
derived from this software without specific prior
|
|
||||||
written permission of the ASSIMP Development Team.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
using Microsoft.DirectX;
|
|
||||||
|
|
||||||
namespace Assimp.Viewer {
|
|
||||||
public class Camera {
|
|
||||||
public Camera () {
|
|
||||||
vPos = new Vector3(0.0f,0.0f,-10.0f);
|
|
||||||
vLookAt = new Vector3(0.0f, 0.0f, 1.0f);
|
|
||||||
vUp = new Vector3(0.0f,1.0f,0.0f);
|
|
||||||
vRight = new Vector3(0.0f,1.0f,0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
// position of the camera
|
|
||||||
public Vector3 vPos;
|
|
||||||
|
|
||||||
// up-vector of the camera
|
|
||||||
public Vector3 vUp;
|
|
||||||
|
|
||||||
// camera's looking point is vPos + vLookAt
|
|
||||||
public Vector3 vLookAt;
|
|
||||||
|
|
||||||
// right vector of the camera
|
|
||||||
public Vector3 vRight;
|
|
||||||
|
|
||||||
|
|
||||||
// Equation
|
|
||||||
// (vRight ^ vUp) - vLookAt == 0
|
|
||||||
// needn't apply
|
|
||||||
|
|
||||||
public Matrix GetMatrix() {
|
|
||||||
vLookAt.Normalize();
|
|
||||||
vRight = Vector3.Cross(vUp, vLookAt);
|
|
||||||
vRight.Normalize();
|
|
||||||
vUp = Vector3.Cross(vLookAt, vRight);
|
|
||||||
vUp.Normalize();
|
|
||||||
|
|
||||||
var view = Matrix.Identity;
|
|
||||||
view.M11 = vRight.X;
|
|
||||||
view.M12 = vUp.X;
|
|
||||||
view.M13 = vLookAt.X;
|
|
||||||
view.M14 = 0.0f;
|
|
||||||
|
|
||||||
view.M21 = vRight.Y;
|
|
||||||
view.M22 = vUp.Y;
|
|
||||||
view.M23 = vLookAt.Y;
|
|
||||||
view.M24 = 0.0f;
|
|
||||||
|
|
||||||
view.M31 = vRight.Z;
|
|
||||||
view.M32 = vUp.Z;
|
|
||||||
view.M33 = vLookAt.Z;
|
|
||||||
view.M34 = 0.0f;
|
|
||||||
|
|
||||||
view.M41 = -Vector3.Dot(vPos, vRight);
|
|
||||||
view.M42 = -Vector3.Dot(vPos, vUp);
|
|
||||||
view.M43 = -Vector3.Dot(vPos, vLookAt);
|
|
||||||
view.M44 = 1.0f;
|
|
||||||
|
|
||||||
return view;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,70 +0,0 @@
|
||||||
/*
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
Open Asset Import Library (ASSIMP)
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Copyright (c) 2006-2010, ASSIMP Development Team
|
|
||||||
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use of this software in source and binary forms,
|
|
||||||
with or without modification, are permitted provided that the following
|
|
||||||
conditions are met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above
|
|
||||||
copyright notice, this list of conditions and the
|
|
||||||
following disclaimer.
|
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above
|
|
||||||
copyright notice, this list of conditions and the
|
|
||||||
following disclaimer in the documentation and/or other
|
|
||||||
materials provided with the distribution.
|
|
||||||
|
|
||||||
* Neither the name of the ASSIMP team, nor the names of its
|
|
||||||
contributors may be used to endorse or promote products
|
|
||||||
derived from this software without specific prior
|
|
||||||
written permission of the ASSIMP Development Team.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using Microsoft.DirectX;
|
|
||||||
using Microsoft.DirectX.Direct3D;
|
|
||||||
|
|
||||||
namespace Assimp.Viewer {
|
|
||||||
public static class ExtensionMethods {
|
|
||||||
public static Vector3 ToVector3(this aiVector3D v) {
|
|
||||||
return new Vector3(v.x, v.y, v.z);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Matrix ToMatrix(this aiMatrix4x4 m) {
|
|
||||||
// Read and Transpose for DirectX
|
|
||||||
return new Matrix() {
|
|
||||||
M11 = m.a1, M12 = m.b1, M13 = m.c1, M14 = m.d1,
|
|
||||||
M21 = m.a2, M22 = m.b2, M23 = m.c2, M24 = m.d2,
|
|
||||||
M31 = m.a3, M32 = m.b3, M33 = m.c3, M34 = m.d3,
|
|
||||||
M41 = m.a4, M42 = m.b4, M43 = m.c4, M44 = m.d4,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
public static ColorValue ToColorValue(this aiColor4D c) {
|
|
||||||
return new ColorValue() {
|
|
||||||
Alpha = c.a, Red = c.r, Green = c.g, Blue = c.b
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,390 +0,0 @@
|
||||||
/*
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
Open Asset Import Library (ASSIMP)
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Copyright (c) 2006-2010, ASSIMP Development Team
|
|
||||||
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use of this software in source and binary forms,
|
|
||||||
with or without modification, are permitted provided that the following
|
|
||||||
conditions are met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above
|
|
||||||
copyright notice, this list of conditions and the
|
|
||||||
following disclaimer.
|
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above
|
|
||||||
copyright notice, this list of conditions and the
|
|
||||||
following disclaimer in the documentation and/or other
|
|
||||||
materials provided with the distribution.
|
|
||||||
|
|
||||||
* Neither the name of the ASSIMP team, nor the names of its
|
|
||||||
contributors may be used to endorse or promote products
|
|
||||||
derived from this software without specific prior
|
|
||||||
written permission of the ASSIMP Development Team.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
using System.Drawing;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
using Microsoft.DirectX;
|
|
||||||
using Microsoft.DirectX.Direct3D;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace Assimp.Viewer
|
|
||||||
{
|
|
||||||
partial class AssimpView {
|
|
||||||
private EClickPos g_eClick = EClickPos.Circle;
|
|
||||||
|
|
||||||
private bool g_bMousePressed;
|
|
||||||
private bool g_bMousePressedR;
|
|
||||||
private bool g_bMousePressedM;
|
|
||||||
private bool g_bMousePressedBoth;
|
|
||||||
|
|
||||||
private Point g_mousePos;
|
|
||||||
private Point g_LastmousePos;
|
|
||||||
private bool g_bInvert;
|
|
||||||
|
|
||||||
#if false
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
// Handle mouse input for the FPS input behaviour
|
|
||||||
//
|
|
||||||
// Movement in x and y axis is possible
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
private void HandleMouseInputFPS()
|
|
||||||
{
|
|
||||||
Point mousePos;
|
|
||||||
mousePos = Control.MousePosition;
|
|
||||||
mousePos = PointToClient(mousePos);
|
|
||||||
|
|
||||||
g_mousePos.X = mousePos.X;
|
|
||||||
g_mousePos.Y = mousePos.Y;
|
|
||||||
|
|
||||||
Matrix matRotation;
|
|
||||||
|
|
||||||
if (g_bMousePressed)
|
|
||||||
{
|
|
||||||
int nXDiff = (g_mousePos.X - g_LastmousePos.X);
|
|
||||||
int nYDiff = (g_mousePos.Y - g_LastmousePos.Y);
|
|
||||||
|
|
||||||
if( 0 != nYDiff)
|
|
||||||
{
|
|
||||||
D3DXMatrixRotationAxis( &matRotation, (D3DXVECTOR3*)& g_sCamera.vRight, D3DXToRadian((float)nYDiff / 6.0f));
|
|
||||||
D3DXVec3TransformCoord( (D3DXVECTOR3*)&g_sCamera.vLookAt, (D3DXVECTOR3*)& g_sCamera.vLookAt, &matRotation );
|
|
||||||
D3DXVec3TransformCoord( (D3DXVECTOR3*)&g_sCamera.vUp, (D3DXVECTOR3*)&g_sCamera.vUp, &matRotation );
|
|
||||||
}
|
|
||||||
|
|
||||||
if( 0 != nXDiff )
|
|
||||||
{
|
|
||||||
D3DXVECTOR3 v(0,1,0);
|
|
||||||
D3DXMatrixRotationAxis( &matRotation, (D3DXVECTOR3*)&g_sCamera.vUp, D3DXToRadian((float)nXDiff / 6.0f) );
|
|
||||||
D3DXVec3TransformCoord( (D3DXVECTOR3*)&g_sCamera.vLookAt, (D3DXVECTOR3*)&g_sCamera.vLookAt, &matRotation );
|
|
||||||
D3DXVec3TransformCoord( (D3DXVECTOR3*)&g_sCamera.vRight,(D3DXVECTOR3*) &g_sCamera.vRight, &matRotation );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
g_LastmousePos.X = g_mousePos.X;
|
|
||||||
g_LastmousePos.Y = g_mousePos.Y;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
// Handle mouse input for the FPS input behaviour
|
|
||||||
//
|
|
||||||
// Movement in x and y axis is possible
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
void HandleMouseInputTextureView( void )
|
|
||||||
{
|
|
||||||
POINT mousePos;
|
|
||||||
GetCursorPos( &mousePos );
|
|
||||||
ScreenToClient( GetDlgItem(g_hDlg,IDC_RT), &mousePos );
|
|
||||||
|
|
||||||
g_mousePos.X = mousePos.X;
|
|
||||||
g_mousePos.Y = mousePos.Y;
|
|
||||||
|
|
||||||
D3DXMATRIX matRotation;
|
|
||||||
|
|
||||||
if (g_bMousePressed)
|
|
||||||
{
|
|
||||||
CDisplay::Instance().SetTextureViewOffsetX((float)(g_mousePos.X - g_LastmousePos.X));
|
|
||||||
CDisplay::Instance().SetTextureViewOffsetY((float)(g_mousePos.Y - g_LastmousePos.Y));
|
|
||||||
}
|
|
||||||
|
|
||||||
g_LastmousePos.X = g_mousePos.X;
|
|
||||||
g_LastmousePos.Y = g_mousePos.Y;
|
|
||||||
}
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
// handle mouse input for the light rotation
|
|
||||||
//
|
|
||||||
// Axes: global x/y axis
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
private void HandleMouseInputLightRotate()
|
|
||||||
{
|
|
||||||
Point mousePos;
|
|
||||||
mousePos = Control.MousePosition;
|
|
||||||
mousePos = PointToClient(mousePos);
|
|
||||||
|
|
||||||
g_mousePos.X = mousePos.X;
|
|
||||||
g_mousePos.Y = mousePos.Y;
|
|
||||||
|
|
||||||
if (g_bMousePressedR)
|
|
||||||
{
|
|
||||||
int nXDiff = -(g_mousePos.X - g_LastmousePos.X);
|
|
||||||
int nYDiff = -(g_mousePos.Y - g_LastmousePos.Y);
|
|
||||||
|
|
||||||
Vector3 v = new Vector3(1.0f,0.0f,0.0f);
|
|
||||||
Matrix mTemp;
|
|
||||||
mTemp = Matrix.RotationAxis(v, Geometry.DegreeToRadian((float)nYDiff / 2.0f));
|
|
||||||
D3DXMatrixRotationAxis( (D3DXMATRIX*) &mTemp, (D3DXVECTOR3*)&v, D3DXToRadian((float)nYDiff / 2.0f));
|
|
||||||
Vector3.TransformCoordinate(
|
|
||||||
D3DXVec3TransformCoord((D3DXVECTOR3*)&g_avLightDirs[0],
|
|
||||||
(const D3DXVECTOR3*)&g_avLightDirs[0],(const D3DXMATRIX*)&mTemp);
|
|
||||||
|
|
||||||
v = aiVector3D(0.0f,1.0f,0.0f);
|
|
||||||
D3DXMatrixRotationAxis( (D3DXMATRIX*) &mTemp, (D3DXVECTOR3*)&v, D3DXToRadian((float)nXDiff / 2.0f));
|
|
||||||
D3DXVec3TransformCoord((D3DXVECTOR3*)&g_avLightDirs[0],
|
|
||||||
(const D3DXVECTOR3*)&g_avLightDirs[0],(const D3DXMATRIX*)&mTemp);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
// Handle mouse input for movements of the skybox
|
|
||||||
//
|
|
||||||
// The skybox can be moved by holding both the left and the right mouse button
|
|
||||||
// pressed. Rotation is possible in x and y direction.
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
void HandleMouseInputSkyBox( void )
|
|
||||||
{
|
|
||||||
POINT mousePos;
|
|
||||||
GetCursorPos( &mousePos );
|
|
||||||
ScreenToClient( GetDlgItem(g_hDlg,IDC_RT), &mousePos );
|
|
||||||
|
|
||||||
g_mousePos.X = mousePos.X;
|
|
||||||
g_mousePos.Y = mousePos.Y;
|
|
||||||
|
|
||||||
aiMatrix4x4 matRotation;
|
|
||||||
|
|
||||||
if (g_bMousePressedBoth )
|
|
||||||
{
|
|
||||||
int nXDiff = -(g_mousePos.X - g_LastmousePos.X);
|
|
||||||
int nYDiff = -(g_mousePos.Y - g_LastmousePos.Y);
|
|
||||||
|
|
||||||
aiMatrix4x4 matWorld;
|
|
||||||
|
|
||||||
if( 0 != nYDiff)
|
|
||||||
{
|
|
||||||
aiVector3D v = aiVector3D(1.0f,0.0f,0.0f);
|
|
||||||
D3DXMatrixRotationAxis( (D3DXMATRIX*) &matWorld, (D3DXVECTOR3*)&v, D3DXToRadian((float)nYDiff / 2.0f));
|
|
||||||
CBackgroundPainter::Instance().RotateSB(&matWorld);
|
|
||||||
}
|
|
||||||
|
|
||||||
if( 0 != nXDiff)
|
|
||||||
{
|
|
||||||
aiMatrix4x4 matWorldOld;
|
|
||||||
if( 0 != nYDiff)
|
|
||||||
{
|
|
||||||
matWorldOld = matWorld;
|
|
||||||
}
|
|
||||||
|
|
||||||
aiVector3D v = aiVector3D(0.0f,1.0f,0.0f);
|
|
||||||
D3DXMatrixRotationAxis( (D3DXMATRIX*)&matWorld, (D3DXVECTOR3*)&v, D3DXToRadian((float)nXDiff / 2.0f) );
|
|
||||||
matWorld = matWorldOld * matWorld;
|
|
||||||
CBackgroundPainter::Instance().RotateSB(&matWorld);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
void HandleMouseInputLightIntensityAndColor( void )
|
|
||||||
{
|
|
||||||
POINT mousePos;
|
|
||||||
GetCursorPos( &mousePos );
|
|
||||||
ScreenToClient( GetDlgItem(g_hDlg,IDC_RT), &mousePos );
|
|
||||||
|
|
||||||
g_mousePos.X = mousePos.X;
|
|
||||||
g_mousePos.Y = mousePos.Y;
|
|
||||||
|
|
||||||
if (g_bMousePressedM)
|
|
||||||
{
|
|
||||||
int nXDiff = -(g_mousePos.X - g_LastmousePos.X);
|
|
||||||
int nYDiff = -(g_mousePos.Y - g_LastmousePos.Y);
|
|
||||||
|
|
||||||
g_fLightIntensity -= (float)nXDiff / 400.0f;
|
|
||||||
if ((nYDiff > 2 || nYDiff < -2) && (nXDiff < 20 && nXDiff > -20))
|
|
||||||
{
|
|
||||||
if (!g_bFPSView)
|
|
||||||
{
|
|
||||||
g_sCamera.vPos.Z += nYDiff / 120.0f;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
g_sCamera.vPos += (nYDiff / 120.0f) * g_sCamera.vLookAt.Normalize();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
private void HandleMouseInputLocal()
|
|
||||||
{
|
|
||||||
Point mousePos;
|
|
||||||
mousePos = Control.MousePosition;
|
|
||||||
mousePos = PointToClient(mousePos);
|
|
||||||
|
|
||||||
g_mousePos.X = mousePos.X;
|
|
||||||
g_mousePos.Y = mousePos.Y;
|
|
||||||
|
|
||||||
if (g_bMousePressed)
|
|
||||||
{
|
|
||||||
int nXDiff = -(g_mousePos.X - g_LastmousePos.X);
|
|
||||||
int nYDiff = -(g_mousePos.Y - g_LastmousePos.Y);
|
|
||||||
|
|
||||||
Matrix matWorld;
|
|
||||||
if (g_eClick != EClickPos.Outside)
|
|
||||||
{
|
|
||||||
if( 0 != nYDiff && g_eClick != EClickPos.CircleHor)
|
|
||||||
{
|
|
||||||
Vector3 v = new Vector3(1.0f,0.0f,0.0f);
|
|
||||||
matWorld = Matrix.RotationAxis(v, Geometry.DegreeToRadian((float)nYDiff / 2.0f));
|
|
||||||
g_mWorldRotate = g_mWorldRotate * matWorld;
|
|
||||||
}
|
|
||||||
|
|
||||||
if( 0 != nXDiff && g_eClick != EClickPos.CircleVert)
|
|
||||||
{
|
|
||||||
Vector3 v = new Vector3(0.0f,1.0f,0.0f);
|
|
||||||
matWorld = Matrix.RotationAxis(v, Geometry.DegreeToRadian((float)nXDiff / 2.0f));
|
|
||||||
g_mWorldRotate = g_mWorldRotate * matWorld;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(0 != nYDiff || 0 != nXDiff)
|
|
||||||
{
|
|
||||||
var sRect = new Rectangle(Point.Empty, this.Size);
|
|
||||||
|
|
||||||
// rotate around the z-axis
|
|
||||||
int xPos = g_mousePos.X - sRect.Right/2;
|
|
||||||
int yPos = g_mousePos.Y - sRect.Bottom/2;
|
|
||||||
float fXDist = (float)xPos;
|
|
||||||
float fYDist = (float)yPos / (float)Math.Sqrt(yPos * yPos + xPos * xPos);
|
|
||||||
|
|
||||||
bool bSign1;
|
|
||||||
if (fXDist < 0.0f)bSign1 = false;
|
|
||||||
else bSign1 = true;
|
|
||||||
float fAngle = (float)Math.Asin(fYDist);
|
|
||||||
|
|
||||||
xPos = g_LastmousePos.X - sRect.Right/2;
|
|
||||||
yPos = g_LastmousePos.Y - sRect.Bottom/2;
|
|
||||||
|
|
||||||
fXDist = (float)xPos;
|
|
||||||
fYDist = (float)yPos / (float)Math.Sqrt(yPos * yPos + xPos * xPos);
|
|
||||||
|
|
||||||
bool bSign2;
|
|
||||||
if (fXDist < 0.0f)bSign2 = false;
|
|
||||||
else bSign2 = true;
|
|
||||||
float fAngle2 = (float)Math.Asin(fYDist);
|
|
||||||
fAngle -= fAngle2;
|
|
||||||
|
|
||||||
if (bSign1 != bSign2)
|
|
||||||
{
|
|
||||||
g_bInvert = !g_bInvert;
|
|
||||||
}
|
|
||||||
if (g_bInvert)fAngle *= -1.0f;
|
|
||||||
|
|
||||||
Vector3 v = new Vector3(0.0f, 0.0f, 1.0f);
|
|
||||||
matWorld = Matrix.RotationAxis(v, (float)(fAngle * 1.2));
|
|
||||||
g_mWorldRotate = g_mWorldRotate * matWorld;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
g_LastmousePos.X = g_mousePos.X;
|
|
||||||
g_LastmousePos.Y = g_mousePos.Y;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if false
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
void HandleKeyboardInputFPS( void )
|
|
||||||
{
|
|
||||||
unsigned char keys[256];
|
|
||||||
GetKeyboardState( keys );
|
|
||||||
|
|
||||||
aiVector3D tmpLook = g_sCamera.vLookAt;
|
|
||||||
aiVector3D tmpRight = g_sCamera.vRight;
|
|
||||||
|
|
||||||
aiVector3D vOldPos = g_sCamera.vPos;
|
|
||||||
|
|
||||||
// Up Arrow Key - View moves forward
|
|
||||||
if( keys[VK_UP] & 0x80 )
|
|
||||||
g_sCamera.vPos -= (tmpLook*-MOVE_SPEED)*g_fElpasedTime;
|
|
||||||
|
|
||||||
// Down Arrow Key - View moves backward
|
|
||||||
if( keys[VK_DOWN] & 0x80 )
|
|
||||||
g_sCamera.vPos += (tmpLook*-MOVE_SPEED)*g_fElpasedTime;
|
|
||||||
|
|
||||||
// Left Arrow Key - View side-steps or strafes to the left
|
|
||||||
if( keys[VK_LEFT] & 0x80 )
|
|
||||||
g_sCamera.vPos -= (tmpRight*MOVE_SPEED)*g_fElpasedTime;
|
|
||||||
|
|
||||||
// Right Arrow Key - View side-steps or strafes to the right
|
|
||||||
if( keys[VK_RIGHT] & 0x80 )
|
|
||||||
g_sCamera.vPos += (tmpRight*MOVE_SPEED)*g_fElpasedTime;
|
|
||||||
|
|
||||||
// Home Key - View elevates up
|
|
||||||
if( keys[VK_HOME] & 0x80 )
|
|
||||||
g_sCamera.vPos .Y += MOVE_SPEED*g_fElpasedTime;
|
|
||||||
|
|
||||||
// End Key - View elevates down
|
|
||||||
if( keys[VK_END] & 0x80 )
|
|
||||||
g_sCamera.vPos.Y -= MOVE_SPEED*g_fElpasedTime;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
//-------------------------------------------------------------------------------
|
|
||||||
void HandleKeyboardInputTextureView( void )
|
|
||||||
{
|
|
||||||
unsigned char keys[256];
|
|
||||||
GetKeyboardState( keys );
|
|
||||||
|
|
||||||
// Up Arrow Key
|
|
||||||
if( keys[VK_UP] & 0x80 )
|
|
||||||
CDisplay::Instance().SetTextureViewOffsetY ( g_fElpasedTime * 150.0f );
|
|
||||||
|
|
||||||
// Down Arrow Key
|
|
||||||
if( keys[VK_DOWN] & 0x80 )
|
|
||||||
CDisplay::Instance().SetTextureViewOffsetY ( -g_fElpasedTime * 150.0f );
|
|
||||||
|
|
||||||
// Left Arrow Key
|
|
||||||
if( keys[VK_LEFT] & 0x80 )
|
|
||||||
CDisplay::Instance().SetTextureViewOffsetX ( g_fElpasedTime * 150.0f );
|
|
||||||
|
|
||||||
// Right Arrow Key
|
|
||||||
if( keys[VK_RIGHT] & 0x80 )
|
|
||||||
CDisplay::Instance().SetTextureViewOffsetX ( -g_fElpasedTime * 150.0f );
|
|
||||||
}
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,62 +0,0 @@
|
||||||
/*
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
Open Asset Import Library (ASSIMP)
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Copyright (c) 2006-2010, ASSIMP Development Team
|
|
||||||
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use of this software in source and binary forms,
|
|
||||||
with or without modification, are permitted provided that the following
|
|
||||||
conditions are met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above
|
|
||||||
copyright notice, this list of conditions and the
|
|
||||||
following disclaimer.
|
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above
|
|
||||||
copyright notice, this list of conditions and the
|
|
||||||
following disclaimer in the documentation and/or other
|
|
||||||
materials provided with the distribution.
|
|
||||||
|
|
||||||
* Neither the name of the ASSIMP team, nor the names of its
|
|
||||||
contributors may be used to endorse or promote products
|
|
||||||
derived from this software without specific prior
|
|
||||||
written permission of the ASSIMP Development Team.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
---------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Windows.Forms;
|
|
||||||
using System.Reflection;
|
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
namespace Assimp.Viewer
|
|
||||||
{
|
|
||||||
static class Program
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Der Haupteinstiegspunkt für die Anwendung.
|
|
||||||
/// </summary>
|
|
||||||
[STAThread]
|
|
||||||
static void Main()
|
|
||||||
{
|
|
||||||
Application.EnableVisualStyles();
|
|
||||||
Application.SetCompatibleTextRenderingDefault(false);
|
|
||||||
Application.Run(new AssimpView());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,36 +0,0 @@
|
||||||
using System.Reflection;
|
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
|
||||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
|
||||||
// die mit einer Assembly verknüpft sind.
|
|
||||||
[assembly: AssemblyTitle("Assimp.NET_DEMO")]
|
|
||||||
[assembly: AssemblyDescription("")]
|
|
||||||
[assembly: AssemblyConfiguration("")]
|
|
||||||
[assembly: AssemblyCompany("Microsoft")]
|
|
||||||
[assembly: AssemblyProduct("Assimp.NET_DEMO")]
|
|
||||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
|
|
||||||
[assembly: AssemblyTrademark("")]
|
|
||||||
[assembly: AssemblyCulture("")]
|
|
||||||
|
|
||||||
// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
|
|
||||||
// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
|
|
||||||
// COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest.
|
|
||||||
[assembly: ComVisible(false)]
|
|
||||||
|
|
||||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
|
||||||
[assembly: Guid("bdbe5566-8c2f-4bef-9d1c-bcb9a916cf69")]
|
|
||||||
|
|
||||||
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
|
||||||
//
|
|
||||||
// Hauptversion
|
|
||||||
// Nebenversion
|
|
||||||
// Buildnummer
|
|
||||||
// Revision
|
|
||||||
//
|
|
||||||
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
|
||||||
// übernehmen, indem Sie "*" eingeben:
|
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
|
@ -1,63 +0,0 @@
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// This code was generated by a tool.
|
|
||||||
// Runtime Version:2.0.50727.4927
|
|
||||||
//
|
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
|
||||||
// the code is regenerated.
|
|
||||||
// </auto-generated>
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace Assimp.Viewer.Properties {
|
|
||||||
using System;
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
|
||||||
/// </summary>
|
|
||||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
|
||||||
// class via a tool like ResGen or Visual Studio.
|
|
||||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
|
||||||
// with the /str option, or rebuild your VS project.
|
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
||||||
internal class Resources {
|
|
||||||
|
|
||||||
private static global::System.Resources.ResourceManager resourceMan;
|
|
||||||
|
|
||||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
|
||||||
|
|
||||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
|
||||||
internal Resources() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Returns the cached ResourceManager instance used by this class.
|
|
||||||
/// </summary>
|
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
||||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
|
||||||
get {
|
|
||||||
if (object.ReferenceEquals(resourceMan, null)) {
|
|
||||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Assimp.Viewer.Properties.Resources", typeof(Resources).Assembly);
|
|
||||||
resourceMan = temp;
|
|
||||||
}
|
|
||||||
return resourceMan;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Overrides the current thread's CurrentUICulture property for all
|
|
||||||
/// resource lookups using this strongly typed resource class.
|
|
||||||
/// </summary>
|
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
||||||
internal static global::System.Globalization.CultureInfo Culture {
|
|
||||||
get {
|
|
||||||
return resourceCulture;
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
resourceCulture = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,117 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<root>
|
|
||||||
<!--
|
|
||||||
Microsoft ResX Schema
|
|
||||||
|
|
||||||
Version 2.0
|
|
||||||
|
|
||||||
The primary goals of this format is to allow a simple XML format
|
|
||||||
that is mostly human readable. The generation and parsing of the
|
|
||||||
various data types are done through the TypeConverter classes
|
|
||||||
associated with the data types.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
... ado.net/XML headers & schema ...
|
|
||||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
|
||||||
<resheader name="version">2.0</resheader>
|
|
||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
|
||||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
|
||||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
|
||||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
|
||||||
</data>
|
|
||||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
|
||||||
<comment>This is a comment</comment>
|
|
||||||
</data>
|
|
||||||
|
|
||||||
There are any number of "resheader" rows that contain simple
|
|
||||||
name/value pairs.
|
|
||||||
|
|
||||||
Each data row contains a name, and value. The row also contains a
|
|
||||||
type or mimetype. Type corresponds to a .NET class that support
|
|
||||||
text/value conversion through the TypeConverter architecture.
|
|
||||||
Classes that don't support this are serialized and stored with the
|
|
||||||
mimetype set.
|
|
||||||
|
|
||||||
The mimetype is used for serialized objects, and tells the
|
|
||||||
ResXResourceReader how to depersist the object. This is currently not
|
|
||||||
extensible. For a given mimetype the value must be set accordingly:
|
|
||||||
|
|
||||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
|
||||||
that the ResXResourceWriter will generate, however the reader can
|
|
||||||
read any of the formats listed below.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.binary.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.soap.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
|
||||||
value : The object must be serialized into a byte array
|
|
||||||
: using a System.ComponentModel.TypeConverter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
-->
|
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:choice maxOccurs="unbounded">
|
|
||||||
<xsd:element name="metadata">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="assembly">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:attribute name="alias" type="xsd:string" />
|
|
||||||
<xsd:attribute name="name" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="data">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="resheader">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:choice>
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:schema>
|
|
||||||
<resheader name="resmimetype">
|
|
||||||
<value>text/microsoft-resx</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="version">
|
|
||||||
<value>2.0</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="reader">
|
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="writer">
|
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
</root>
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue