KFbxImageConverter
#include<kfbximageconverter.h>

Inheritance diagram for KFbxImageConverter:

Inheritance graph
[legend]

List of all members.

Detailed Description

Provides a placeholder of functions to convert from a file format to "raw" data and vice et versa.

Definition at line173of filekfbximageconverter.h.


Public Member Functions

void RegisterConverterFunction(KStringpFileExt, ImageConverterFunction pFct)
 Register a user converter function into the system.
void UnregisterConverterFunction(ImageConverterFunction pFct)
 Removes a user converter function from the system.
bool Convert(int pDirection,KString&pFileName,ImageConverterBuffer&pBuffer)
 Perform the actual conversion.

Member Function Documentation

void RegisterConverterFunction(KString pFileExt,
ImageConverterFunction pFct 
)

Register a user converter function into the system.

Parameters:
pFileExt The image file extension the registered function can handle.
pFct The function that can convert the image file.
Remarks:
If the function can handle multiple image files, each file extension has to be registered individually (the same function can be used more than once in the RegisterConverterFunction).

void UnregisterConverterFunction(ImageConverterFunction pFct ) 

Removes a user converter function from the system.

Parameters:
pFct The function to be removed from the list of converters.

bool Convert(int pDirection,
KStringpFileName,
ImageConverterBufferpBuffer 
)

Perform the actual conversion.

Parameters:
pDirection Either FileToBuffer (0) or BufferToFile (1).
pFileName The destination filename (can be changed by the ImageConverterFunction).
pBuffer The data placeholder.
Returns:
trueif the conversion is successful,falseotherwise.