ASEParser.h 22 KB

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