kfbxutilities.h

Detailed Description

Definition in filekfbxutilities.h.

#include<kaydaradef.h>
#include<kaydara.h>
#include<kfbxplugins/kfbxscene.h>
#include<fbxfilesdk_nsbegin.h>
#include<fbxfilesdk_nsend.h>

Include dependency graph for kfbxutilities.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Functions

Scene cleaning
KFBX_DLL KArrayTemplate
<KFbxNode*> 
RemoveBadPolygonsFromMeshes(KFbxScene*pScene)
 Clean bad meshes in the scene by removing bad polygons.
File utilities
KFBX_DLL char * FBXGet_Internet_Source_File(const char *url)
 Get the content of a file from an hyperlink.
KFBX_DLL void FBXFree_Internet_Buffer(char *pBuf)
 Free the memory allocated byFBXGet_Internet_Source_File().
KFBX_DLLKString KFbxFullPath(const char *pRelativePath)
 Get the content of a file from an hyperlink.
KFBX_DLLKString KFbxExtractDirectory(const char *pFilePath)
 Get the content of a file from an hyperlink.
KFBX_DLLKString KFbxExtractFileName(const char *pFilePath, bool pWithExtension=true)
 Get the content of a file from an hyperlink.
KFBX_DLLKString KFbxCleanPath(const char *pPath)
 Get the content of a file from an hyperlink.
KFBX_DLLKString KFbxGetRelativeFilePath(const char *pRootPath, const char *pNewFilePath)
 Get the content of a file from an hyperlink.
KFBX_DLL bool KFbxEnsureDirectoryExistance(const char *pPath)
 Get the content of a file from an hyperlink.
KFBX_DLLKString KFbxGetApplicationDirectory()
 Get the content of a file from an hyperlink.
KFBX_DLL size_t KGetProcessVirtualMemoryAvailSize()
 Get the content of a file from an hyperlink.

Function Documentation

KFBX_DLL void FBXFree_Internet_Buffer(char * pBuf ) 

Free the memory allocated byFBXGet_Internet_Source_File().

Parameters:
pBuf Pointer previously returned by a call toFBXGet_Internet_Source_File().

KFBX_DLL char* FBXGet_Internet_Source_File(const char * url ) 

Get the content of a file from an hyperlink.

Parameters:
url The hyperlink to the file. The URL must start with<http://>ex:http://www.autodesk.com.
Returns:
An allocated<char *buffer>containing the source text. You must useFBXFree_Internet_Buffer()to free the allocated memory.

KFBX_DLLKStringKFbxCleanPath(const char * pPath ) 

Get the content of a file from an hyperlink.

Parameters:
url The hyperlink to the file. The URL must start with<http://>ex:http://www.autodesk.com.
Returns:
An allocated<char *buffer>containing the source text. You must useFBXFree_Internet_Buffer()to free the allocated memory.

KFBX_DLL bool KFbxEnsureDirectoryExistance(const char * pPath ) 

Get the content of a file from an hyperlink.

Parameters:
url The hyperlink to the file. The URL must start with<http://>ex:http://www.autodesk.com.
Returns:
An allocated<char *buffer>containing the source text. You must useFBXFree_Internet_Buffer()to free the allocated memory.

KFBX_DLLKStringKFbxExtractDirectory(const char * pFilePath ) 

Get the content of a file from an hyperlink.

Parameters:
url The hyperlink to the file. The URL must start with<http://>ex:http://www.autodesk.com.
Returns:
An allocated<char *buffer>containing the source text. You must useFBXFree_Internet_Buffer()to free the allocated memory.

KFBX_DLLKStringKFbxExtractFileName(const char * pFilePath,
bool pWithExtension=true 
)

Get the content of a file from an hyperlink.

Parameters:
url The hyperlink to the file. The URL must start with<http://>ex:http://www.autodesk.com.
Returns:
An allocated<char *buffer>containing the source text. You must useFBXFree_Internet_Buffer()to free the allocated memory.

KFBX_DLLKStringKFbxFullPath(const char * pRelativePath ) 

Get the content of a file from an hyperlink.

Parameters:
url The hyperlink to the file. The URL must start with<http://>ex:http://www.autodesk.com.
Returns:
An allocated<char *buffer>containing the source text. You must useFBXFree_Internet_Buffer()to free the allocated memory.

KFBX_DLLKStringKFbxGetApplicationDirectory( ) 

Get the content of a file from an hyperlink.

Parameters:
url The hyperlink to the file. The URL must start with<http://>ex:http://www.autodesk.com.
Returns:
An allocated<char *buffer>containing the source text. You must useFBXFree_Internet_Buffer()to free the allocated memory.

KFBX_DLLKStringKFbxGetRelativeFilePath(const char * pRootPath,
const char * pNewFilePath 
)

Get the content of a file from an hyperlink.

Parameters:
url The hyperlink to the file. The URL must start with<http://>ex:http://www.autodesk.com.
Returns:
An allocated<char *buffer>containing the source text. You must useFBXFree_Internet_Buffer()to free the allocated memory.

KFBX_DLL size_t KGetProcessVirtualMemoryAvailSize( ) 

Get the content of a file from an hyperlink.

Parameters:
url The hyperlink to the file. The URL must start with<http://>ex:http://www.autodesk.com.
Returns:
An allocated<char *buffer>containing the source text. You must useFBXFree_Internet_Buffer()to free the allocated memory.

KFBX_DLL KArrayTemplate<KFbxNode*>RemoveBadPolygonsFromMeshes(KFbxScenepScene ) 

Clean bad meshes in the scene by removing bad polygons.

Parameters:
pScene Pointer to the scene object.
Returns:
Array of nodes containing modified meshes.