|
JunkBox_Lib++ (for Windows) 1.10.1
|
#include <FBXDataTool.h>

Public Member Functions | |
| FBXData (void) | |
| virtual | ~FBXData (void) |
| void | init (void) |
| void | free (void) |
| void | setUnity (bool b) |
| void | setUE (bool b) |
| void | setEngine (int) |
| void | setAffineTrans (AffineTrans< double > a) |
| void | delAffineTrans (void) |
| Vector< double > | execAffineTrans (void) |
| void | addShell (MeshObjectData *meshdata, bool collider, SkinJointData *joints_data=NULL, tList *joints_template=NULL) |
| void | closeSolid (void) |
| void | outputFile (const char *fn, const char *out_dirn, const char *tex_dirn, const char *bin_dirn) |
| void | output_fbx (FILE *fp) |
Public Attributes | |
| Buffer | fbx_name |
| bool | phantom_out |
| bool | no_offset |
| bool | forUnity |
| bool | forUE |
| int | engine |
| bool | has_joints |
| tList * | joints_list |
| AffineTrans< double > * | affineTrans |
| AffineTrans< double > | skeleton |
Definition at line 27 of file FBXDataTool.h.
|
inline |
Definition at line 30 of file FBXDataTool.h.
References FBXData::init().

|
virtual |
Definition at line 16 of file FBXDataTool.cpp.
References DEBUG_MODE, FBXData::free(), and PRINT_MESG.

| void addShell | ( | MeshObjectData * | meshdata, |
| bool | collider, | ||
| SkinJointData * | joints_data = NULL, | ||
| tList * | joints_template = NULL ) |
Definition at line 87 of file FBXDataTool.cpp.
References MeshObjectData::affineTrans, del_tList(), MeshFacetNode::execAffineTransUVMap(), MeshObjectData::facet, MeshFacetNode::generatePlanarUVMap(), AffineTrans< T >::getScale(), FBXData::has_joints, FBXData::joints_list, MaterialParam::mapping, MATERIAL_MAPPING_PLANAR, MeshFacetNode::material_param, MeshFacetNode::next, MeshFacetNode::num_texcrd, MeshFacetNode::num_vertex, FBXData::phantom_out, PRINT_MESG, and MeshFacetNode::texcrd_value.

|
inline |
Definition at line 61 of file FBXDataTool.h.
|
inline |
Definition at line 57 of file FBXDataTool.h.
References jbxl::freeAffineTrans().
Referenced by FBXData::free(), and FBXData::setAffineTrans().


| Vector< double > execAffineTrans | ( | void | ) |
Vector<double> FBXData::execAffineTrans(void)
FBXデータの 原点縮退変換を行う. no_offset が trueの場合,データの中心を原点に戻し,実際の位置をオフセットで返す.
Definition at line 152 of file FBXDataTool.cpp.
References FBXData::affineTrans, AffineTrans< T >::getShift(), and FBXData::no_offset.

| void free | ( | void | ) |
Definition at line 41 of file FBXDataTool.cpp.
References FBXData::affineTrans, del_tList(), FBXData::delAffineTrans(), FBXData::fbx_name, AffineTrans< T >::free(), free_Buffer(), FBXData::joints_list, and FBXData::skeleton.
Referenced by jbxl::freeFBXData(), FBXData::outputFile(), and FBXData::~FBXData().


| void init | ( | void | ) |
Definition at line 23 of file FBXDataTool.cpp.
References FBXData::affineTrans, FBXData::engine, FBXData::fbx_name, FBXData::forUE, FBXData::forUnity, FBXData::has_joints, AffineTrans< T >::init(), init_Buffer(), JBXL_3D_ENGINE_UE, FBXData::joints_list, FBXData::no_offset, FBXData::phantom_out, and FBXData::skeleton.
Referenced by FBXData::FBXData().


| void output_fbx | ( | FILE * | fp | ) |
Definition at line 162 of file FBXDataTool.cpp.
| void outputFile | ( | const char * | fn, |
| const char * | out_dirn, | ||
| const char * | tex_dirn, | ||
| const char * | bin_dirn ) |
Definition at line 67 of file FBXDataTool.cpp.
References Buffer::buf, canonical_filename_Buffer(), FBXData::free(), free_Buffer(), get_file_name(), make_Buffer_bystr, pack_head_tail_char(), TRUE, and UNUSED.

|
inline |
Definition at line 56 of file FBXDataTool.h.
References FBXData::affineTrans, FBXData::delAffineTrans(), and AffineTrans< T >::dup().

| void setEngine | ( | int | e | ) |
Definition at line 53 of file FBXDataTool.cpp.
References FBXData::engine, JBXL_3D_ENGINE_UE, JBXL_3D_ENGINE_UNITY, FBXData::setUE(), and FBXData::setUnity().

|
inline |
Definition at line 53 of file FBXDataTool.h.
Referenced by FBXData::setEngine().

|
inline |
Definition at line 52 of file FBXDataTool.h.
Referenced by FBXData::setEngine().

| AffineTrans<double>* affineTrans |
Definition at line 45 of file FBXDataTool.h.
Referenced by FBXData::execAffineTrans(), FBXData::free(), FBXData::init(), and FBXData::setAffineTrans().
| int engine |
Definition at line 40 of file FBXDataTool.h.
Referenced by FBXData::init(), and FBXData::setEngine().
| Buffer fbx_name |
Definition at line 34 of file FBXDataTool.h.
Referenced by FBXData::free(), and FBXData::init().
| bool forUE |
Definition at line 39 of file FBXDataTool.h.
Referenced by FBXData::init().
| bool forUnity |
Definition at line 38 of file FBXDataTool.h.
Referenced by FBXData::init().
| bool has_joints |
Definition at line 42 of file FBXDataTool.h.
Referenced by FBXData::addShell(), and FBXData::init().
| tList* joints_list |
Definition at line 43 of file FBXDataTool.h.
Referenced by FBXData::addShell(), FBXData::free(), and FBXData::init().
| bool no_offset |
Definition at line 36 of file FBXDataTool.h.
Referenced by FBXData::execAffineTrans(), and FBXData::init().
| bool phantom_out |
Definition at line 35 of file FBXDataTool.h.
Referenced by FBXData::addShell(), and FBXData::init().
| AffineTrans<double> skeleton |
Definition at line 46 of file FBXDataTool.h.
Referenced by FBXData::free(), and FBXData::init().