vrshoot

view libs/assimp/FBXImportSettings.h @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
line source
1 /*
2 Open Asset Import Library (assimp)
3 ----------------------------------------------------------------------
5 Copyright (c) 2006-2012, assimp team
6 All rights reserved.
8 Redistribution and use of this software in source and binary forms,
9 with or without modification, are permitted provided that the
10 following conditions are met:
12 * Redistributions of source code must retain the above
13 copyright notice, this list of conditions and the
14 following disclaimer.
16 * Redistributions in binary form must reproduce the above
17 copyright notice, this list of conditions and the
18 following disclaimer in the documentation and/or other
19 materials provided with the distribution.
21 * Neither the name of the assimp team, nor the names of its
22 contributors may be used to endorse or promote products
23 derived from this software without specific prior
24 written permission of the assimp team.
26 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
30 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
31 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
32 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 ----------------------------------------------------------------------
39 */
41 /** @file FBXImportSettings.h
42 * @brief FBX importer runtime configuration
43 */
44 #ifndef INCLUDED_AI_FBX_IMPORTSETTINGS_H
45 #define INCLUDED_AI_FBX_IMPORTSETTINGS_H
47 namespace Assimp {
48 namespace FBX {
50 /** FBX import settings, parts of which are publicly accessible via their corresponding AI_CONFIG constants */
51 struct ImportSettings
52 {
53 ImportSettings()
54 : strictMode(true)
55 , readAllLayers(true)
56 , readAllMaterials()
57 , readMaterials(true)
58 , readCameras(true)
59 , readLights(true)
60 , readAnimations(true)
61 , readWeights(true)
62 , preservePivots(true)
63 , optimizeEmptyAnimationCurves(true)
64 {}
67 /** enable strict mode:
68 * - only accept fbx 2012, 2013 files
69 * - on the slightest error, give up.
70 *
71 * Basically, strict mode means that the fbx file will actually
72 * be validated. Strict mode is off by default. */
73 bool strictMode;
75 /** specifies whether all geometry layers are read and scanned for
76 * usable data channels. The FBX spec indicates that many readers
77 * will only read the first channel and that this is in some way
78 * the recommended way- in reality, however, it happens a lot that
79 * vertex data is spread among multiple layers. The default
80 * value for this option is true.*/
81 bool readAllLayers;
83 /** specifies whether all materials are read, or only those that
84 * are referenced by at least one mesh. Reading all materials
85 * may make FBX reading a lot slower since all objects
86 * need to be processed .
87 * This bit is ignored unless readMaterials=true*/
88 bool readAllMaterials;
91 /** import materials (true) or skip them and assign a default
92 * material. The default value is true.*/
93 bool readMaterials;
95 /** import cameras? Default value is true.*/
96 bool readCameras;
98 /** import light sources? Default value is true.*/
99 bool readLights;
101 /** import animations (i.e. animation curves, the node
102 * skeleton is always imported). Default value is true. */
103 bool readAnimations;
105 /** read bones (vertex weights and deform info).
106 * Default value is true. */
107 bool readWeights;
109 /** preserve transformation pivots and offsets. Since these can
110 * not directly be represented in assimp, additional dummy
111 * nodes will be generated. Note that settings this to false
112 * can make animation import a lot slower. The default value
113 * is true.
114 *
115 * The naming scheme for the generated nodes is:
116 * <OriginalName>_$AssimpFbx$_<TransformName>
117 *
118 * where <TransformName> is one of
119 * RotationPivot
120 * RotationOffset
121 * PreRotation
122 * PostRotation
123 * ScalingPivot
124 * ScalingOffset
125 * Translation
126 * Scaling
127 * Rotation
128 **/
129 bool preservePivots;
131 /** do not import animation curves that specify a constant
132 * values matching the corresponding node transformation.
133 * The default value is true. */
134 bool optimizeEmptyAnimationCurves;
135 };
138 } // !FBX
139 } // !Assimp
141 #endif