Adding Importer Interface

marking some classes abstract


git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@454 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
rave3d 2009-07-30 18:22:24 +00:00
parent 01fa65a759
commit 33011627a0
7 changed files with 189 additions and 6 deletions

View File

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

View File

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

View File

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

View File

@ -9,11 +9,121 @@ Importer::Importer(void)
throw gcnew System::NotImplementedException(); throw gcnew System::NotImplementedException();
} }
Importer::Importer(const Importer^ other)
{
throw gcnew System::NotImplementedException();
}
Importer::~Importer(void) Importer::~Importer(void)
{ {
throw gcnew System::NotImplementedException(); 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 }//namespace

View File

@ -48,12 +48,85 @@ using namespace System;
namespace AssimpNET 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 ref class Importer
{ {
public: public:
Importer(void); Importer(void);
Importer(const Importer^ other);
~Importer(void); ~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 }//namespace

View File

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

View File

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