ASEParser.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674
  1. /*
  2. Open Asset Import Library (ASSIMP)
  3. ----------------------------------------------------------------------
  4. Copyright (c) 2006-2008, ASSIMP Development Team
  5. All rights reserved.
  6. Redistribution and use of this software in source and binary forms,
  7. with or without modification, are permitted provided that the
  8. following conditions are met:
  9. * Redistributions of source code must retain the above
  10. copyright notice, this list of conditions and the
  11. following disclaimer.
  12. * Redistributions in binary form must reproduce the above
  13. copyright notice, this list of conditions and the
  14. following disclaimer in the documentation and/or other
  15. materials provided with the distribution.
  16. * Neither the name of the ASSIMP team, nor the names of its
  17. contributors may be used to endorse or promote products
  18. derived from this software without specific prior
  19. written permission of the ASSIMP Development Team.
  20. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  23. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. ----------------------------------------------------------------------
  32. */
  33. /** @file Defines the helper data structures for importing ASE files */
  34. #ifndef AI_ASEFILEHELPER_H_INC
  35. #define AI_ASEFILEHELPER_H_INC
  36. // STL/CRT headers
  37. #include <string>
  38. #include <vector>
  39. #include <list>
  40. // public ASSIMP headers
  41. #include "../include/aiTypes.h"
  42. #include "../include/aiMesh.h"
  43. #include "../include/aiAnim.h"
  44. // for some helper routines like IsSpace()
  45. #include "ParsingUtils.h"
  46. #include "qnan.h"
  47. // ASE is quite similar to 3ds. We can reuse some structures
  48. #include "3DSLoader.h"
  49. namespace Assimp {
  50. namespace ASE {
  51. using namespace D3DS;
  52. // ---------------------------------------------------------------------------
  53. /** Helper structure representing an ASE material */
  54. struct Material : public D3DS::Material
  55. {
  56. //! Default constructor
  57. Material() : pcInstance(NULL), bNeed (false)
  58. {}
  59. //! Contains all sub materials of this material
  60. std::vector<Material> avSubMaterials;
  61. //! MaterialHelper object
  62. MaterialHelper* pcInstance;
  63. //! Can we remove this material?
  64. bool bNeed;
  65. };
  66. // ---------------------------------------------------------------------------
  67. /** Helper structure to represent an ASE file face */
  68. struct Face : public FaceWithSmoothingGroup
  69. {
  70. //! Default constructor. Initializes everything with 0
  71. Face()
  72. {
  73. mColorIndices[0] = mColorIndices[1] = mColorIndices[2] = 0;
  74. for (unsigned int i = 0; i < AI_MAX_NUMBER_OF_TEXTURECOORDS;++i)
  75. {
  76. amUVIndices[i][0] = amUVIndices[i][1] = amUVIndices[i][2] = 0;
  77. }
  78. iMaterial = DEFAULT_MATINDEX;
  79. iFace = 0;
  80. }
  81. //! special value to indicate that no material index has
  82. //! been assigned to a face. The default material index
  83. //! will replace this value later.
  84. static const unsigned int DEFAULT_MATINDEX = 0xFFFFFFFF;
  85. //! Indices into each list of texture coordinates
  86. unsigned int amUVIndices[AI_MAX_NUMBER_OF_TEXTURECOORDS][3];
  87. //! Index into the list of vertex colors
  88. unsigned int mColorIndices[3];
  89. //! (Sub)Material index to be assigned to this face
  90. unsigned int iMaterial;
  91. //! Index of the face. It is not specified whether it is
  92. //! a requirement of the file format that all faces are
  93. //! written in sequential order, so we have to expect this case
  94. unsigned int iFace;
  95. };
  96. // ---------------------------------------------------------------------------
  97. /** Helper structure to represent an ASE file bone */
  98. struct Bone
  99. {
  100. //! Constructor
  101. Bone()
  102. {
  103. static int iCnt = 0;
  104. // Generate a default name for the bone
  105. char szTemp[128];
  106. ::sprintf(szTemp,"UNNAMED_%i",iCnt++);
  107. mName = szTemp;
  108. }
  109. //! Construction from an existing name
  110. Bone( const std::string& name)
  111. : mName (name)
  112. {}
  113. //! Name of the bone
  114. std::string mName;
  115. };
  116. // ---------------------------------------------------------------------------
  117. /** Helper structure to represent an ASE file bone vertex */
  118. struct BoneVertex
  119. {
  120. //! Bone and corresponding vertex weight.
  121. //! -1 for unrequired bones ....
  122. std::vector<std::pair<int,float> > mBoneWeights;
  123. //! Position of the bone vertex.
  124. //! MUST be identical to the vertex position
  125. //aiVector3D mPosition;
  126. };
  127. // ---------------------------------------------------------------------------
  128. /** Helper structure to represent an ASE file animation */
  129. struct Animation
  130. {
  131. enum Type
  132. {
  133. TRACK = 0x0,
  134. BEZIER = 0x1,
  135. TCB = 0x2
  136. } mRotationType, mScalingType, mPositionType;
  137. Animation()
  138. : mRotationType (TRACK)
  139. , mScalingType (TRACK)
  140. , mPositionType (TRACK)
  141. {}
  142. /** ONLY ONE OF THESE SETS IS USED
  143. *
  144. * Bezier and TCB channels are converted to a normal
  145. * trac later.
  146. */
  147. //! List of track rotation keyframes
  148. std::vector< aiQuatKey > akeyRotations;
  149. //! List of track position keyframes
  150. std::vector< aiVectorKey > akeyPositions;
  151. //! List of track scaling keyframes
  152. std::vector< aiVectorKey > akeyScaling;
  153. };
  154. // ---------------------------------------------------------------------------
  155. /** Helper structure to represent the inheritance information of an ASE node */
  156. struct InheritanceInfo
  157. {
  158. //! Default constructor
  159. InheritanceInfo()
  160. {
  161. // set the inheritance flag for all axes by default to true
  162. for (unsigned int i = 0; i < 3;++i)
  163. abInheritPosition[i] = abInheritRotation[i] = abInheritScaling[i] = true;
  164. }
  165. //! Inherit the parent's position?, axis order is x,y,z
  166. bool abInheritPosition[3];
  167. //! Inherit the parent's rotation?, axis order is x,y,z
  168. bool abInheritRotation[3];
  169. //! Inherit the parent's scaling?, axis order is x,y,z
  170. bool abInheritScaling[3];
  171. };
  172. // ---------------------------------------------------------------------------
  173. /** Represents an ASE file node. Base class for mesh, light and cameras */
  174. struct BaseNode
  175. {
  176. enum Type {Light, Camera, Mesh, Dummy} mType;
  177. //! Constructor. Creates a default name for the node
  178. BaseNode(Type _mType)
  179. : mType (_mType)
  180. , mProcessed (false)
  181. {
  182. // generate a default name for the node
  183. static int iCnt = 0;
  184. char szTemp[128]; // should be sufficiently large
  185. ::sprintf(szTemp,"UNNAMED_%i",iCnt++);
  186. mName = szTemp;
  187. // Set mTargetPosition to qnan
  188. const float qnan = std::numeric_limits<float>::quiet_NaN();
  189. mTargetPosition.x = qnan;
  190. }
  191. //! Name of the mesh
  192. std::string mName;
  193. //! Name of the parent of the node
  194. //! "" if there is no parent ...
  195. std::string mParent;
  196. //! Transformation matrix of the node
  197. aiMatrix4x4 mTransform;
  198. //! Target position (target lights and cameras)
  199. aiVector3D mTargetPosition;
  200. //! Specifies which axes transformations a node inherits
  201. //! from its parent ...
  202. InheritanceInfo inherit;
  203. //! Animation channels for the node
  204. Animation mAnim;
  205. //! Needed for lights and cameras: target animation channel
  206. //! Should contain position keys only.
  207. Animation mTargetAnim;
  208. bool mProcessed;
  209. };
  210. // ---------------------------------------------------------------------------
  211. /** Helper structure to represent an ASE file mesh */
  212. struct Mesh : public MeshWithSmoothingGroups<ASE::Face>, public BaseNode
  213. {
  214. //! Constructor.
  215. Mesh()
  216. : BaseNode (BaseNode::Mesh)
  217. , bSkip (false)
  218. {
  219. // use 2 texture vertex components by default
  220. for (unsigned int c = 0; c < AI_MAX_NUMBER_OF_TEXTURECOORDS;++c)
  221. this->mNumUVComponents[c] = 2;
  222. // setup the default material index by default
  223. iMaterialIndex = Face::DEFAULT_MATINDEX;
  224. }
  225. //! List of all texture coordinate sets
  226. std::vector<aiVector3D> amTexCoords[AI_MAX_NUMBER_OF_TEXTURECOORDS];
  227. //! List of all vertex color sets.
  228. std::vector<aiColor4D> mVertexColors;
  229. //! List of all bone vertices
  230. std::vector<BoneVertex> mBoneVertices;
  231. //! List of all bones
  232. std::vector<Bone> mBones;
  233. //! Material index of the mesh
  234. unsigned int iMaterialIndex;
  235. //! Number of vertex components for each UVW set
  236. unsigned int mNumUVComponents[AI_MAX_NUMBER_OF_TEXTURECOORDS];
  237. //! used internally
  238. bool bSkip;
  239. };
  240. // ---------------------------------------------------------------------------
  241. /** Helper structure to represent an ASE light source */
  242. struct Light : public BaseNode
  243. {
  244. enum LightType
  245. {
  246. OMNI,
  247. TARGET,
  248. FREE,
  249. DIRECTIONAL
  250. };
  251. //! Constructor.
  252. Light()
  253. : BaseNode (BaseNode::Light)
  254. , mLightType (OMNI)
  255. , mColor (1.f,1.f,1.f)
  256. , mIntensity (1.f) // light is white by default
  257. , mAngle (45.f)
  258. , mFalloff (0.f)
  259. {
  260. }
  261. LightType mLightType;
  262. aiColor3D mColor;
  263. float mIntensity;
  264. float mAngle; // in degrees
  265. float mFalloff;
  266. };
  267. // ---------------------------------------------------------------------------
  268. /** Helper structure to represent an ASE camera */
  269. struct Camera : public BaseNode
  270. {
  271. enum CameraType
  272. {
  273. FREE,
  274. TARGET
  275. };
  276. //! Constructor
  277. Camera()
  278. : BaseNode (BaseNode::Camera)
  279. , mFOV (0.75f) // in radians
  280. , mNear (0.1f)
  281. , mFar (1000.f) // could be zero
  282. , mCameraType (FREE)
  283. {
  284. }
  285. float mFOV, mNear, mFar;
  286. CameraType mCameraType;
  287. };
  288. // ---------------------------------------------------------------------------
  289. /** Helper structure to represent an ASE helper object (dummy) */
  290. struct Dummy : public BaseNode
  291. {
  292. //! Constructor
  293. Dummy()
  294. : BaseNode (BaseNode::Dummy)
  295. {
  296. }
  297. };
  298. // Parameters to Parser::Parse()
  299. #define AI_ASE_NEW_FILE_FORMAT 200
  300. #define AI_ASE_OLD_FILE_FORMAT 110
  301. // Internally we're a little bit more tolerant
  302. #define AI_ASE_IS_NEW_FILE_FORMAT() (iFileFormat >= 200)
  303. #define AI_ASE_IS_OLD_FILE_FORMAT() (iFileFormat < 200)
  304. // -------------------------------------------------------------------------------
  305. /** \brief Class to parse ASE files
  306. */
  307. class Parser
  308. {
  309. private:
  310. Parser() {}
  311. public:
  312. // -------------------------------------------------------------------
  313. //! Construct a parser from a given input file which is
  314. //! guaranted to be terminated with zero.
  315. //! @param szFile Input file
  316. //! @param fileFormatDefault Assumed file format version. If the
  317. //! file format is specified in the file the new value replaces
  318. //! the default value.
  319. Parser (const char* szFile, unsigned int fileFormatDefault);
  320. // -------------------------------------------------------------------
  321. //! Parses the file into the parsers internal representation
  322. void Parse();
  323. private:
  324. // -------------------------------------------------------------------
  325. //! Parse the *SCENE block in a file
  326. void ParseLV1SceneBlock();
  327. // -------------------------------------------------------------------
  328. //! Parse the *MESH_SOFTSKINVERTS block in a file
  329. void ParseLV1SoftSkinBlock();
  330. // -------------------------------------------------------------------
  331. //! Parse the *MATERIAL_LIST block in a file
  332. void ParseLV1MaterialListBlock();
  333. // -------------------------------------------------------------------
  334. //! Parse a *<xxx>OBJECT block in a file
  335. //! \param mesh Node to be filled
  336. void ParseLV1ObjectBlock(BaseNode& mesh);
  337. // -------------------------------------------------------------------
  338. //! Parse a *MATERIAL blocks in a material list
  339. //! \param mat Material structure to be filled
  340. void ParseLV2MaterialBlock(Material& mat);
  341. // -------------------------------------------------------------------
  342. //! Parse a *NODE_TM block in a file
  343. //! \param mesh Node (!) object to be filled
  344. void ParseLV2NodeTransformBlock(BaseNode& mesh);
  345. // -------------------------------------------------------------------
  346. //! Parse a *TM_ANIMATION block in a file
  347. //! \param mesh Mesh object to be filled
  348. void ParseLV2AnimationBlock(BaseNode& mesh);
  349. void ParseLV3PosAnimationBlock(ASE::Animation& anim);
  350. void ParseLV3ScaleAnimationBlock(ASE::Animation& anim);
  351. void ParseLV3RotAnimationBlock(ASE::Animation& anim);
  352. // -------------------------------------------------------------------
  353. //! Parse a *MESH block in a file
  354. //! \param mesh Mesh object to be filled
  355. void ParseLV2MeshBlock(Mesh& mesh);
  356. // -------------------------------------------------------------------
  357. //! Parse a *LIGHT_SETTINGS block in a file
  358. //! \param light Light object to be filled
  359. void ParseLV2LightSettingsBlock(Light& light);
  360. // -------------------------------------------------------------------
  361. //! Parse a *CAMERA_SETTINGS block in a file
  362. //! \param cam Camera object to be filled
  363. void ParseLV2CameraSettingsBlock(Camera& cam);
  364. // -------------------------------------------------------------------
  365. //! Parse the *MAP_XXXXXX blocks in a material
  366. //! \param map Texture structure to be filled
  367. void ParseLV3MapBlock(Texture& map);
  368. // -------------------------------------------------------------------
  369. //! Parse a *MESH_VERTEX_LIST block in a file
  370. //! \param iNumVertices Value of *MESH_NUMVERTEX, if present.
  371. //! Otherwise zero. This is used to check the consistency of the file.
  372. //! A warning is sent to the logger if the validations fails.
  373. //! \param mesh Mesh object to be filled
  374. void ParseLV3MeshVertexListBlock(
  375. unsigned int iNumVertices,Mesh& mesh);
  376. // -------------------------------------------------------------------
  377. //! Parse a *MESH_FACE_LIST block in a file
  378. //! \param iNumFaces Value of *MESH_NUMFACES, if present.
  379. //! Otherwise zero. This is used to check the consistency of the file.
  380. //! A warning is sent to the logger if the validations fails.
  381. //! \param mesh Mesh object to be filled
  382. void ParseLV3MeshFaceListBlock(
  383. unsigned int iNumFaces,Mesh& mesh);
  384. // -------------------------------------------------------------------
  385. //! Parse a *MESH_TVERT_LIST block in a file
  386. //! \param iNumVertices Value of *MESH_NUMTVERTEX, if present.
  387. //! Otherwise zero. This is used to check the consistency of the file.
  388. //! A warning is sent to the logger if the validations fails.
  389. //! \param mesh Mesh object to be filled
  390. //! \param iChannel Output UVW channel
  391. void ParseLV3MeshTListBlock(
  392. unsigned int iNumVertices,Mesh& mesh, unsigned int iChannel = 0);
  393. // -------------------------------------------------------------------
  394. //! Parse a *MESH_TFACELIST block in a file
  395. //! \param iNumFaces Value of *MESH_NUMTVFACES, if present.
  396. //! Otherwise zero. This is used to check the consistency of the file.
  397. //! A warning is sent to the logger if the validations fails.
  398. //! \param mesh Mesh object to be filled
  399. //! \param iChannel Output UVW channel
  400. void ParseLV3MeshTFaceListBlock(
  401. unsigned int iNumFaces,Mesh& mesh, unsigned int iChannel = 0);
  402. // -------------------------------------------------------------------
  403. //! Parse an additional mapping channel
  404. //! (specified via *MESH_MAPPINGCHANNEL)
  405. //! \param iChannel Channel index to be filled
  406. //! \param mesh Mesh object to be filled
  407. void ParseLV3MappingChannel(
  408. unsigned int iChannel, Mesh& mesh);
  409. // -------------------------------------------------------------------
  410. //! Parse a *MESH_CVERTLIST block in a file
  411. //! \param iNumVertices Value of *MESH_NUMCVERTEX, if present.
  412. //! Otherwise zero. This is used to check the consistency of the file.
  413. //! A warning is sent to the logger if the validations fails.
  414. //! \param mesh Mesh object to be filled
  415. void ParseLV3MeshCListBlock(
  416. unsigned int iNumVertices, Mesh& mesh);
  417. // -------------------------------------------------------------------
  418. //! Parse a *MESH_CFACELIST block in a file
  419. //! \param iNumFaces Value of *MESH_NUMCVFACES, if present.
  420. //! Otherwise zero. This is used to check the consistency of the file.
  421. //! A warning is sent to the logger if the validations fails.
  422. //! \param mesh Mesh object to be filled
  423. void ParseLV3MeshCFaceListBlock(
  424. unsigned int iNumFaces, Mesh& mesh);
  425. // -------------------------------------------------------------------
  426. //! Parse a *MESH_NORMALS block in a file
  427. //! \param mesh Mesh object to be filled
  428. void ParseLV3MeshNormalListBlock(Mesh& mesh);
  429. // -------------------------------------------------------------------
  430. //! Parse a *MESH_WEIGHTSblock in a file
  431. //! \param mesh Mesh object to be filled
  432. void ParseLV3MeshWeightsBlock(Mesh& mesh);
  433. // -------------------------------------------------------------------
  434. //! Parse the bone list of a file
  435. //! \param mesh Mesh object to be filled
  436. //! \param iNumBones Number of bones in the mesh
  437. void ParseLV4MeshBones(unsigned int iNumBones,Mesh& mesh);
  438. // -------------------------------------------------------------------
  439. //! Parse the bone vertices list of a file
  440. //! \param mesh Mesh object to be filled
  441. //! \param iNumVertices Number of vertices to be parsed
  442. void ParseLV4MeshBonesVertices(unsigned int iNumVertices,Mesh& mesh);
  443. // -------------------------------------------------------------------
  444. //! Parse a *MESH_FACE block in a file
  445. //! \param out receive the face data
  446. void ParseLV4MeshFace(ASE::Face& out);
  447. // -------------------------------------------------------------------
  448. //! Parse a *MESH_VERT block in a file
  449. //! (also works for MESH_TVERT, MESH_CFACE, MESH_VERTCOL ...)
  450. //! \param apOut Output buffer (3 floats)
  451. //! \param rIndexOut Output index
  452. void ParseLV4MeshFloatTriple(float* apOut, unsigned int& rIndexOut);
  453. // -------------------------------------------------------------------
  454. //! Parse a *MESH_VERT block in a file
  455. //! (also works for MESH_TVERT, MESH_CFACE, MESH_VERTCOL ...)
  456. //! \param apOut Output buffer (3 floats)
  457. void ParseLV4MeshFloatTriple(float* apOut);
  458. // -------------------------------------------------------------------
  459. //! Parse a *MESH_TFACE block in a file
  460. //! (also works for MESH_CFACE)
  461. //! \param apOut Output buffer (3 ints)
  462. //! \param rIndexOut Output index
  463. void ParseLV4MeshLongTriple(unsigned int* apOut, unsigned int& rIndexOut);
  464. // -------------------------------------------------------------------
  465. //! Parse a *MESH_TFACE block in a file
  466. //! (also works for MESH_CFACE)
  467. //! \param apOut Output buffer (3 ints)
  468. void ParseLV4MeshLongTriple(unsigned int* apOut);
  469. // -------------------------------------------------------------------
  470. //! Parse a single float element
  471. //! \param fOut Output float
  472. void ParseLV4MeshFloat(float& fOut);
  473. // -------------------------------------------------------------------
  474. //! Parse a single int element
  475. //! \param iOut Output integer
  476. void ParseLV4MeshLong(unsigned int& iOut);
  477. // -------------------------------------------------------------------
  478. //! Skip everything to the next: '*' or '\0'
  479. bool SkipToNextToken();
  480. // -------------------------------------------------------------------
  481. //! Skip the current section until the token after the closing }.
  482. //! This function handles embedded subsections correctly
  483. bool SkipSection();
  484. // -------------------------------------------------------------------
  485. //! Output a warning to the logger
  486. //! \param szWarn Warn message
  487. void LogWarning(const char* szWarn);
  488. // -------------------------------------------------------------------
  489. //! Output a message to the logger
  490. //! \param szWarn Message
  491. void LogInfo(const char* szWarn);
  492. // -------------------------------------------------------------------
  493. //! Output an error to the logger
  494. //! \param szWarn Error message
  495. void LogError(const char* szWarn);
  496. // -------------------------------------------------------------------
  497. //! Parse a string, enclosed in double quotation marks
  498. //! \param out Output string
  499. //! \param szName Name of the enclosing element -> used in error
  500. //! messages.
  501. //! \return false if an error occured
  502. bool ParseString(std::string& out,const char* szName);
  503. public:
  504. //! Pointer to current data
  505. const char* filePtr;
  506. //! background color to be passed to the viewer
  507. //! QNAN if none was found
  508. aiColor3D m_clrBackground;
  509. //! Base ambient color to be passed to all materials
  510. //! QNAN if none was found
  511. aiColor3D m_clrAmbient;
  512. //! List of all materials found in the file
  513. std::vector<Material> m_vMaterials;
  514. //! List of all meshes found in the file
  515. std::vector<Mesh> m_vMeshes;
  516. //! List of all dummies found in the file
  517. std::vector<Dummy> m_vDummies;
  518. //! List of all lights found in the file
  519. std::vector<Light> m_vLights;
  520. //! List of all cameras found in the file
  521. std::vector<Camera> m_vCameras;
  522. //! Current line in the file
  523. unsigned int iLineNumber;
  524. //! First frame
  525. unsigned int iFirstFrame;
  526. //! Last frame
  527. unsigned int iLastFrame;
  528. //! Frame speed - frames per second
  529. unsigned int iFrameSpeed;
  530. //! Ticks per frame
  531. unsigned int iTicksPerFrame;
  532. //! true if the last character read was an end-line character
  533. bool bLastWasEndLine;
  534. //! File format version
  535. unsigned int iFileFormat;
  536. };
  537. } // Namespace ASE
  538. } // Namespace ASSIMP
  539. #endif // !! include guard