45 #ifndef __AI_SCENE_H_INC__ 46 #define __AI_SCENE_H_INC__ 101 C_STRUCT aiNode* mParent;
104 unsigned int mNumChildren;
107 C_STRUCT aiNode** mChildren;
110 unsigned int mNumMeshes;
113 unsigned int* mMeshes;
138 aiNode(
const std::string& name)
155 if (mChildren && mNumChildren)
157 for(
unsigned int a = 0; a < mNumChildren; a++)
173 inline const aiNode* FindNode(
const aiString& name)
const 175 return FindNode(name.
data);
179 inline aiNode* FindNode(
const aiString& name)
181 return FindNode(name.
data);
187 inline const aiNode* FindNode(
const char* name)
const 189 if (!::strcmp( mName.data,name))
return this;
190 for (
unsigned int i = 0; i < mNumChildren;++i)
192 const aiNode*
const p = mChildren[i]->FindNode(name);
201 inline aiNode* FindNode(
const char* name)
203 if (!::strcmp( mName.data,name))
return this;
204 for (
unsigned int i = 0; i < mNumChildren;++i)
206 aiNode*
const p = mChildren[i]->FindNode(name);
215 #endif // __cplusplus 226 #define AI_SCENE_FLAGS_INCOMPLETE 0x1 233 #define AI_SCENE_FLAGS_VALIDATED 0x2 243 #define AI_SCENE_FLAGS_VALIDATION_WARNING 0x4 251 #define AI_SCENE_FLAGS_NON_VERBOSE_FORMAT 0x8 265 #define AI_SCENE_FLAGS_TERRAIN 0x10 295 C_STRUCT aiNode* mRootNode;
300 unsigned int mNumMeshes;
309 C_STRUCT
aiMesh** mMeshes;
314 unsigned int mNumMaterials;
323 C_STRUCT aiMaterial** mMaterials;
328 unsigned int mNumAnimations;
335 C_STRUCT aiAnimation** mAnimations;
340 unsigned int mNumTextures;
354 unsigned int mNumLights;
367 unsigned int mNumCameras;
381 ASSIMP_API aiScene();
384 ASSIMP_API ~aiScene();
388 inline bool HasMeshes()
const 389 {
return mMeshes != NULL && mNumMeshes > 0; }
393 inline bool HasMaterials()
const 394 {
return mMaterials != NULL && mNumMaterials > 0; }
397 inline bool HasLights()
const 398 {
return mLights != NULL && mNumLights > 0; }
401 inline bool HasTextures()
const 402 {
return mTextures != NULL && mNumTextures > 0; }
405 inline bool HasCameras()
const 406 {
return mCameras != NULL && mNumCameras > 0; }
409 inline bool HasAnimations()
const 410 {
return mAnimations != NULL && mNumAnimations > 0; }
412 #endif // __cplusplus 428 #endif // __AI_SCENE_H_INC__ Basic data types and primitives, such as vectors or colors.
Defines the material system of the library.
Definition: matrix4x4.h:236
A mesh represents a geometry or model with a single material.
Definition: mesh.h:467
Helper structure to describe a light source.
Definition: light.h:100
Defines the aiCamera data structure.
Helper structure to describe a virtual camera.
Definition: camera.h:98
Declares the data structures in which the imported geometry is returned by ASSIMP: aiMesh...
Defines texture helper structures for the library.
Defines the aiLight data structure.
Represents an UTF-8 string, zero byte terminated.
Definition: types.h:251
Defines the data structures in which the imported animations are returned.
Helper structure to describe an embedded texture.
Definition: texture.h:120
char data[MAXLEN]
String buffer.
Definition: types.h:366