HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GLTF_ImportOptions.h
Go to the documentation of this file.
1 #ifndef __GLTF_ImportOptions_h__
2 #define __GLTF_ImportOptions_h__
3 
4 #include "GLTFZ_API.h"
5 #include "GLTF_Types.h"
6 
7 #include <GA/GA_Names.h>
8 #include <UT/UT_Set.h>
9 #include <UT/UT_StringHolder.h>
10 #include <UT/UT_StringSet.h>
11 
12 using namespace UT::Literal;
13 
15 {
16  enum class ImportSpace
17  {
18  World,
19  Object
20  };
21 
23  {
24  PackedPrimitive,
25  FlattenedGeometry
26  };
27 
28  bool myPromotePointAttribs = false;
29  bool myAddMeshNameAttrib = false;
30  bool myImportApplicationSpecificAttribs = true;
31  ImportSpace myImportSpace = ImportSpace::World;
33  myNodeGeometryImportMethod
34  = NodeGeometryImportMethod::PackedPrimitive;
36  bool myImportNames = true;
37  bool myImportExtras = true;
38 
39  bool myImportAnimations = true;
40  bool myUseAnimationFilter = false;
42 
43  bool myImportAnimationNames = true;
44  bool myImportMeshNames = true;
45  bool myImportNodeNames = true;
46  bool myImportSceneNames = true;
47  bool myImportMaterialNames = true;
48 
49  UT_StringHolder myAnimationNameAttrib = "gltf_animation_name"_sh;
50  UT_StringHolder myMeshNameAttrib = "gltf_mesh_name"_sh;
51  UT_StringHolder myNodeNameAttrib = "gltf_node_name"_sh;
52  UT_StringHolder mySceneNameAttrib = "gltf_scene_name"_sh;
53  UT_StringHolder myMaterialNameAttrib = "gltf_material_name"_sh;
54 
55  bool myIgnoreSpecifiedUnsupportedRequiredExtensions = false;
57 
58  UT_StringHolder myMaterialNodePath = "";
59  UT_StringHolder myMaterialTypeOverride = "";
60 };
61 
62 #endif // __GLTF_ImportOptions_h__
UT_Set< GLTF_Index > myAnimationFilter
GA_API const UT_StringHolder path
UT_StringSet myUnsupportedRequiredExtensionsToIgnore
#define GLTFZ_API
Definition: GLTFZ_API.h:37