ASEParser.h 22 KB

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