Forráskód Böngészése

Adding Importer Interface
marking some classes abstract


git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@454 67173fc5-114c-0410-ac8e-9d2fd5bffc1f

rave3d 16 éve
szülő
commit
33011627a0

+ 1 - 1
port/Assimp.NET/Assimp.NET/DefaultLogger.h

@@ -49,7 +49,7 @@ using namespace System;
 
 namespace AssimpNET
 {
-	public ref class DefaultLogger : Logger
+	public ref class DefaultLogger abstract : Logger 
 	{
 	public:
 		DefaultLogger(void);

+ 1 - 1
port/Assimp.NET/Assimp.NET/IOStream.h

@@ -47,7 +47,7 @@ using namespace System;
 
 namespace AssimpNET
 {
-	public ref class IOStream
+	public ref class IOStream abstract
 	{
 	public:
 		

+ 1 - 1
port/Assimp.NET/Assimp.NET/IOSystem.h

@@ -47,7 +47,7 @@ using namespace System;
 
 namespace AssimpNET
 {
-	public ref class IOSystem
+	public ref class IOSystem abstract
 	{
 	public:
 		IOSystem(void);

+ 110 - 0
port/Assimp.NET/Assimp.NET/Importer.cpp

@@ -9,11 +9,121 @@ Importer::Importer(void)
 	throw gcnew System::NotImplementedException();
 }
 
+Importer::Importer(const Importer^ other)
+{
+	throw gcnew System::NotImplementedException();
+}
+
 Importer::~Importer(void)
 {
 	throw gcnew System::NotImplementedException();
 }
 
+void Importer::FreeScene()
+{
+	throw gcnew System::NotImplementedException();
+}
+
+array<char>^ Importer::GetErrorString()
+{
+	throw gcnew System::NotImplementedException();
+}
+
+void Importer::GetExtensionsList(String^ extensions)
+{
+	throw gcnew System::NotImplementedException();
+}
+
+IOSystem^ Importer::GetIOHandler()
+{
+	throw gcnew System::NotImplementedException();
+}
+
+void Importer::GetMemoryRequrements(aiMemoryInfo^ in)
+{
+	throw gcnew System::NotImplementedException();
+}
+
+Scene^ Importer::getOrphanedScene( )
+{
+	throw gcnew System::NotImplementedException();
+}
+
+float Importer::GetPropertyFloat(array<char>^ propName)
+{
+	throw gcnew System::NotImplementedException();
+}
+
+int Importer::GetPropertyInt(array<char>^ propName)
+{
+	throw gcnew System::NotImplementedException();
+}
+
+String^ Importer::GetPrpertyString(array<char>^ propName)
+{
+	throw gcnew System::NotImplementedException();
+}
+
+Scene^ Importer::getScene()
+{
+	throw gcnew System::NotImplementedException();
+}
+
+bool Importer::IsDefaultIOHandler()
+{
+	throw gcnew System::NotImplementedException();
+}
+
+bool Importer::IsExtensionSupported(array<char>^ extension)
+{
+	throw gcnew System::NotImplementedException();
+}
+
+bool Importer::IsExtensionSupported(String^ extension)
+{
+	throw gcnew System::NotImplementedException();
+}
+
+Scene^ Importer::ReadFile(array<char>^ fileName, unsigned int flags)
+{
+	throw gcnew System::NotImplementedException();
+}
+
+Scene^ Importer::ReadFile(String^ fileName, unsigned int flags)
+{
+	throw gcnew System::NotImplementedException();
+}
+
+void Importer::SetExtraVerbose(bool verbose)
+{
+	throw gcnew System::NotImplementedException();
+}
+
+void Importer::SetIOHanlder(IOSystem^ ioHandler)
+{
+	throw gcnew System::NotImplementedException();
+}
+
+void Importer::SetPropertyFloat(array<char>^ propName, float value)
+{
+	throw gcnew System::NotImplementedException();
+}
+
+void Importer::SetPropertyInt(array<char>^ propName, int value)
+{
+	throw gcnew System::NotImplementedException();
+}
+
+void Importer::SetPrpertyString(array<char>^ propName, String^ value)
+{
+	throw gcnew System::NotImplementedException();
+}
+
+bool Importer::ValidateFlags(unsigned int flags)
+{
+	throw gcnew System::NotImplementedException();
+}
+
 
 
 }//namespace

+ 74 - 1
port/Assimp.NET/Assimp.NET/Importer.h

@@ -48,12 +48,85 @@ using namespace System;
 
 namespace AssimpNET
 {
+	public ref struct aiMemoryInfo
+	{
+		property unsigned int animations
+		{
+			unsigned int get() { throw gcnew System::NotImplementedException();}
+			void set(unsigned int value) { throw gcnew System::NotImplementedException();}
+		}
+
+		property unsigned int cameras
+		{
+			unsigned int get() { throw gcnew System::NotImplementedException();}
+			void set(unsigned int value) { throw gcnew System::NotImplementedException();}
+		}
+
+		property unsigned int lights
+		{
+			unsigned int get() { throw gcnew System::NotImplementedException();}
+			void set(unsigned int value) { throw gcnew System::NotImplementedException();}
+		}
+
+		property unsigned int materials
+		{
+			unsigned int get() { throw gcnew System::NotImplementedException();}
+			void set(unsigned int value) { throw gcnew System::NotImplementedException();}
+		}
+
+		property unsigned int meshes
+		{
+			unsigned int get() { throw gcnew System::NotImplementedException();}
+			void set(unsigned int value) { throw gcnew System::NotImplementedException();}
+		}
+
+		property unsigned int nodes
+		{
+			unsigned int get() { throw gcnew System::NotImplementedException();}
+			void set(unsigned int value) { throw gcnew System::NotImplementedException();}
+		}
+
+		property unsigned int textures
+		{
+			unsigned int get() { throw gcnew System::NotImplementedException();}
+			void set(unsigned int value) { throw gcnew System::NotImplementedException();}
+		}
+
+		property unsigned int total
+		{
+			unsigned int get() { throw gcnew System::NotImplementedException();}
+			void set(unsigned int value) { throw gcnew System::NotImplementedException();}
+		}
+	};
+	
 	public ref class Importer
 	{
 	public:
 		Importer(void);
+		Importer(const Importer^ other);
 		~Importer(void);
 
-
+		void FreeScene();
+		array<char>^ GetErrorString();
+		void GetExtensionsList(String^ extensions);
+		IOSystem^ GetIOHandler();
+		void GetMemoryRequrements(aiMemoryInfo^ in);
+		Scene^ getOrphanedScene( );
+		float GetPropertyFloat(array<char>^ propName);
+		int GetPropertyInt(array<char>^ propName);
+		String^ GetPrpertyString(array<char>^ propName);
+		Scene^ getScene();
+		bool IsDefaultIOHandler();
+		bool IsExtensionSupported(array<char>^ extension);
+		bool IsExtensionSupported(String^ extension);
+		Scene^ ReadFile(array<char>^ fileName, unsigned int flags);
+		Scene^ ReadFile(String^ fileName, unsigned int flags);
+		void SetExtraVerbose(bool verbose);
+		void SetIOHanlder(IOSystem^ ioHandler);
+		void SetPropertyFloat(array<char>^ propName, float value);
+		void SetPropertyInt(array<char>^ propName, int value);
+		void SetPrpertyString(array<char>^ propName, String^ value);
+		bool ValidateFlags(unsigned int flags);
+	
 	};
 }//namespace

+ 1 - 1
port/Assimp.NET/Assimp.NET/LogStream.h

@@ -57,7 +57,7 @@ namespace AssimpNET
 	};
 
 
-	ref class LogStream
+	public ref class LogStream abstract
 	{
 	public:		
 		virtual ~LogStream(void);

+ 1 - 1
port/Assimp.NET/Assimp.NET/Logger.h

@@ -53,7 +53,7 @@ namespace AssimpNET
 		VERBOSE,
 	};
 
-	public ref class Logger
+	public ref class Logger	abstract
 	{
 	public:
 		~Logger(void);