kfbxutilities.h File Reference


Detailed Description

Definition in file kfbxutilities.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.

Defines

#define KFBX_DLL   K_DLLIMPORT

Functions

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


Function Documentation

void FBXFree_Internet_Buffer ( char *  pBuf  ) 

Free the memory allocated by FBXGet_Internet_Source_File().

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

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 use FBXFree_Internet_Buffer() to free the allocated memory.

KString KFbxCleanPath ( 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 use FBXFree_Internet_Buffer() to free the allocated memory.

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 use FBXFree_Internet_Buffer() to free the allocated memory.

KString KFbxExtractDirectory ( 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 use FBXFree_Internet_Buffer() to free the allocated memory.

KString KFbxExtractFileName ( 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 use FBXFree_Internet_Buffer() to free the allocated memory.

KString KFbxFullPath ( 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 use FBXFree_Internet_Buffer() to free the allocated memory.

KString KFbxGetRelativeFilePath ( 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 use FBXFree_Internet_Buffer() to free the allocated memory.

KArrayTemplate<KFbxNode*> RemoveBadPolygonsFromMeshes ( KFbxScene pScene  ) 

Clean bad meshes in the scene by removing bad polygons.

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