12 #ifndef __FBX_Translator_h__
13 #define __FBX_Translator_h__
21 class FBX_IntTranslator;
30 virtual int onFbxFileLoaded(
GU_Detail *gdp, FBX_IntTranslator *ptranslator) = 0;
38 FBX_IntTranslator *ptranslator)
override;
46 myTargetHdNode = NULL;
49 myResampleAnimation =
false;
50 myResampleInterval = 1.0;
54 FBX_IntTranslator *ptranslator)
override;
62 myHdParmName = parm_name;
68 myFbxPropertyName =
pname;
69 myFbxComponent = icomp;
73 { myFbxTakeName =
pname; }
75 { myResampleAnimation =
value; }
77 { myResampleInterval = freq; }
88 bool myResampleAnimation;
89 double myResampleInterval;
109 static void uninit();
127 bool importScene(
const char *fileURI,
bool is_merging,
130 const char* password = NULL,
141 const char* fbx_node_name,
142 bool convert_surfaces);
149 static int importAllGeos(
GU_Detail *gdp,
151 bool convert_surfaces,
161 static int importGeoInFbxNode(
GU_Detail *gdp,
162 FBX_IntTranslator *translator,
163 void* current_fbx_node_as_void);
169 static void addCustomAttributesFromNode(
void* current_fbx_node_as_void,
GU_Detail *gdp );
171 static int ensureFileLoaded(
GU_Detail *gdp,
173 const char* fbx_node_name,
174 bool convert_surfaces,
177 static int exportGeo(
const GU_Detail *gdp,
178 const char *fileURI);
184 static void installCommands();
205 static void init(
void) { }
209 static void uninit(
void) { }
228 bool importScene(
const char *fileURI,
bool is_merging,
231 const char* password = NULL,
237 const char* fbx_node_name,
238 bool convert_surfaces)
241 static int importAllGeos(
GU_Detail *gdp,
243 bool convert_surfaces)
246 static int ensureFileLoaded(
GU_Detail *gdp,
const char *fileURI,
247 const char* fbx_node_name,
bool convert_surfaces,
250 static int exportGeo(
const GU_Detail *gdp,
254 static bool isSupported(
void)
257 static void installCommands() { }
262 #endif // __FBX_Translator_h__
void setTargetParm(const char *parm_name, int idx)
void setResampleInterval(double freq)
GLsizei const GLchar *const * string
GLsizei const GLfloat * value
void setFbxProperty(const char *pname, int icomp)
void setResampleAnimation(bool value)
static bool isSupported()
void setHdNode(OP_Node *node)
~FBX_CookGeoCallback() override
void setFbxTakeName(const char *pname)
~FBX_LoadAnimCallback() override
virtual ~FBX_LoadCallbacks()
virtual int onFbxFileLoaded(GU_Detail *gdp, FBX_IntTranslator *ptranslator)=0
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter