HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FBX_Translator Class Reference

#include <FBX_Translator.h>

Public Member Functions

 FBX_Translator ()
 Constructor. More...
 
virtual ~FBX_Translator ()
 Destructor. More...
 
const FBX_ErrorManagergetErrorManager (void) const
 
bool importScene (const char *fileURI, bool is_merging, FBX_ImportOptions *options=NULL, FBX_ObjectTypeFilter *filter=NULL, const char *password=NULL, OP_Network **parent_net=NULL)
 

Static Public Member Functions

static void init (void)
 
static void uninit (void)
 
static int importGeo (GU_Detail *gdp, const char *fileURI, const char *fbx_node_name, bool convert_surfaces)
 
static int importAllGeos (GU_Detail *gdp, const char *fileURI, bool convert_surfaces)
 
static int importGeoInFbxNode (GU_Detail *gdp, FBX_IntTranslator *translator, void *current_fbx_node_as_void)
 
static void addCustomAttributesFromNode (void *current_fbx_node_as_void, GU_Detail *gdp)
 
static int ensureFileLoaded (GU_Detail *gdp, const char *fileURI, const char *fbx_node_name, bool convert_surfaces, FBX_LoadCallbacks *pcallbacks)
 
static int exportGeo (const GU_Detail *gdp, const char *fileURI)
 
static bool isSupported (void)
 

Detailed Description

Definition at line 92 of file FBX_Translator.h.

Constructor & Destructor Documentation

FBX_Translator::FBX_Translator ( )

Constructor.

virtual FBX_Translator::~FBX_Translator ( )
virtual

Destructor.

Member Function Documentation

static void FBX_Translator::addCustomAttributesFromNode ( void current_fbx_node_as_void,
GU_Detail gdp 
)
static

Adds the custom attributes found on the fbx node as primitive attributes

Parameters
current_fbx_node_as_voidThe fbx node we want to import the geometry Due to header non-sense, the FBXNode* is casted to a void*
gdpThe GU_Detail that will hold the geometry
static int FBX_Translator::ensureFileLoaded ( GU_Detail gdp,
const char *  fileURI,
const char *  fbx_node_name,
bool  convert_surfaces,
FBX_LoadCallbacks pcallbacks 
)
static
static int FBX_Translator::exportGeo ( const GU_Detail gdp,
const char *  fileURI 
)
static
const FBX_ErrorManager* FBX_Translator::getErrorManager ( void  ) const
static int FBX_Translator::importAllGeos ( GU_Detail gdp,
const char *  fileURI,
bool  convert_surfaces 
)
static

Imports all geometry found in the FBX file to a File SOP

Parameters
gdpThe GU_Detail that will hold the geometry
fileURIA path to the FBX file to import. Please note that network (UNC) paths are currently not supported.
convert_surfacesWether or not sirfaces should be converted too
static int FBX_Translator::importGeo ( GU_Detail gdp,
const char *  fileURI,
const char *  fbx_node_name,
bool  convert_surfaces 
)
static

Imports a single FBX geometry node to a File SOP

Parameters
gdpThe GU_Detail that will hold the geometry
fileURIA path to the FBX file to import. Please note that network (UNC) paths are currently not supported.
fbx_node_nameName of the FBX node to be imported
convert_surfacesWether or not sirfaces should be converted too
static int FBX_Translator::importGeoInFbxNode ( GU_Detail gdp,
FBX_IntTranslator *  translator,
void current_fbx_node_as_void 
)
static

Appends geometry found in a FBX Node to a detail

Parameters
gdpThe GU_Detail that will hold the geometry
translatorThe FBX Translator to be used for the import
current_fbx_node_as_voidThe fbx node we want to import the geometry Due to header non-sense, the FBXNode* is casted to a void*
bool FBX_Translator::importScene ( const char *  fileURI,
bool  is_merging,
FBX_ImportOptions options = NULL,
FBX_ObjectTypeFilter filter = NULL,
const char *  password = NULL,
OP_Network **  parent_net = NULL 
)

Imports the Filmbox scene into the current Houdini session or into a new scene.

Parameters
fileURIA path to the FBX file to import. Please note that network (UNC) paths are currently not supported.
is_mergingIf true, the file will be merged with the current scene, if false, a new scene will be created and the file will be imported there.
optionsVarious options that determine how a file is to be imported. See FBX_ImportOptions for more details. If not set, the defaults for every option will be used.
filterObject type filter settings which determine what types of objects (cameras, geometry, lights, etc.) are to be imported. If not set, the defaults are used, which import everything.
passwordA password to use if the FBX file is password-protected. Currently not used.
static void FBX_Translator::init ( void  )
static

Initializes the Filmbox translator's environment. It should be called once at startup.

static bool FBX_Translator::isSupported ( void  )
inlinestatic

Definition at line 175 of file FBX_Translator.h.

static void FBX_Translator::uninit ( void  )
static

Uninitializes the Filmbox translator's environment. It should be called once at termination.


The documentation for this class was generated from the following file: