ColladaHelper.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. /** Helper structures for the Collada loader */
  2. /*
  3. Open Asset Import Library (assimp)
  4. ----------------------------------------------------------------------
  5. Copyright (c) 2006-2019, assimp team
  6. All rights reserved.
  7. Redistribution and use of this software in source and binary forms,
  8. with or without modification, are permitted provided that the
  9. following conditions are met:
  10. * Redistributions of source code must retain the above
  11. copyright notice, this list of conditions and the
  12. following disclaimer.
  13. * Redistributions in binary form must reproduce the above
  14. copyright notice, this list of conditions and the
  15. following disclaimer in the documentation and/or other
  16. materials provided with the distribution.
  17. * Neither the name of the assimp team, nor the names of its
  18. contributors may be used to endorse or promote products
  19. derived from this software without specific prior
  20. written permission of the assimp team.
  21. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  24. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  25. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  26. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  27. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  28. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  29. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  30. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  31. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32. ----------------------------------------------------------------------
  33. */
  34. #ifndef AI_COLLADAHELPER_H_INC
  35. #define AI_COLLADAHELPER_H_INC
  36. #include <map>
  37. #include <vector>
  38. #include <stdint.h>
  39. #include <assimp/light.h>
  40. #include <assimp/mesh.h>
  41. #include <assimp/material.h>
  42. struct aiMaterial;
  43. namespace Assimp {
  44. namespace Collada {
  45. /** Collada file versions which evolved during the years ... */
  46. enum FormatVersion
  47. {
  48. FV_1_5_n,
  49. FV_1_4_n,
  50. FV_1_3_n
  51. };
  52. /** Transformation types that can be applied to a node */
  53. enum TransformType
  54. {
  55. TF_LOOKAT,
  56. TF_ROTATE,
  57. TF_TRANSLATE,
  58. TF_SCALE,
  59. TF_SKEW,
  60. TF_MATRIX
  61. };
  62. /** Different types of input data to a vertex or face */
  63. enum InputType
  64. {
  65. IT_Invalid,
  66. IT_Vertex, // special type for per-index data referring to the <vertices> element carrying the per-vertex data.
  67. IT_Position,
  68. IT_Normal,
  69. IT_Texcoord,
  70. IT_Color,
  71. IT_Tangent,
  72. IT_Bitangent
  73. };
  74. /** Supported controller types */
  75. enum ControllerType
  76. {
  77. Skin,
  78. Morph
  79. };
  80. /** Supported morph methods */
  81. enum MorphMethod
  82. {
  83. Normalized,
  84. Relative
  85. };
  86. /** Common metadata keys as <Collada, Assimp> */
  87. typedef std::pair<std::string, std::string> MetaKeyPair;
  88. typedef std::vector<MetaKeyPair> MetaKeyPairVector;
  89. // Collada as lower_case (native)
  90. const MetaKeyPairVector &GetColladaAssimpMetaKeys();
  91. // Collada as CamelCase (used by Assimp for consistency)
  92. const MetaKeyPairVector &GetColladaAssimpMetaKeysCamelCase();
  93. /** Convert underscore_separated to CamelCase "authoring_tool" becomes "AuthoringTool" */
  94. void ToCamelCase(std::string &text);
  95. /** Contains all data for one of the different transformation types */
  96. struct Transform
  97. {
  98. std::string mID; ///< SID of the transform step, by which anim channels address their target node
  99. TransformType mType;
  100. ai_real f[16]; ///< Interpretation of data depends on the type of the transformation
  101. };
  102. /** A collada camera. */
  103. struct Camera
  104. {
  105. Camera()
  106. : mOrtho (false)
  107. , mHorFov (10e10f)
  108. , mVerFov (10e10f)
  109. , mAspect (10e10f)
  110. , mZNear (0.1f)
  111. , mZFar (1000.f)
  112. {}
  113. // Name of camera
  114. std::string mName;
  115. // True if it is an orthografic camera
  116. bool mOrtho;
  117. //! Horizontal field of view in degrees
  118. ai_real mHorFov;
  119. //! Vertical field of view in degrees
  120. ai_real mVerFov;
  121. //! Screen aspect
  122. ai_real mAspect;
  123. //! Near& far z
  124. ai_real mZNear, mZFar;
  125. };
  126. #define ASSIMP_COLLADA_LIGHT_ANGLE_NOT_SET 1e9f
  127. /** A collada light source. */
  128. struct Light
  129. {
  130. Light()
  131. : mType (aiLightSource_UNDEFINED)
  132. , mAttConstant (1.f)
  133. , mAttLinear (0.f)
  134. , mAttQuadratic (0.f)
  135. , mFalloffAngle (180.f)
  136. , mFalloffExponent (0.f)
  137. , mPenumbraAngle (ASSIMP_COLLADA_LIGHT_ANGLE_NOT_SET)
  138. , mOuterAngle (ASSIMP_COLLADA_LIGHT_ANGLE_NOT_SET)
  139. , mIntensity (1.f)
  140. {}
  141. //! Type of the light source aiLightSourceType + ambient
  142. unsigned int mType;
  143. //! Color of the light
  144. aiColor3D mColor;
  145. //! Light attenuation
  146. ai_real mAttConstant,mAttLinear,mAttQuadratic;
  147. //! Spot light falloff
  148. ai_real mFalloffAngle;
  149. ai_real mFalloffExponent;
  150. // -----------------------------------------------------
  151. // FCOLLADA extension from here
  152. //! ... related stuff from maja and max extensions
  153. ai_real mPenumbraAngle;
  154. ai_real mOuterAngle;
  155. //! Common light intensity
  156. ai_real mIntensity;
  157. };
  158. /** Short vertex index description */
  159. struct InputSemanticMapEntry
  160. {
  161. InputSemanticMapEntry()
  162. : mSet(0)
  163. , mType(IT_Invalid)
  164. {}
  165. //! Index of set, optional
  166. unsigned int mSet;
  167. //! Type of referenced vertex input
  168. InputType mType;
  169. };
  170. /** Table to map from effect to vertex input semantics */
  171. struct SemanticMappingTable
  172. {
  173. //! Name of material
  174. std::string mMatName;
  175. //! List of semantic map commands, grouped by effect semantic name
  176. std::map<std::string, InputSemanticMapEntry> mMap;
  177. //! For std::find
  178. bool operator == (const std::string& s) const {
  179. return s == mMatName;
  180. }
  181. };
  182. /** A reference to a mesh inside a node, including materials assigned to the various subgroups.
  183. * The ID refers to either a mesh or a controller which specifies the mesh
  184. */
  185. struct MeshInstance
  186. {
  187. ///< ID of the mesh or controller to be instanced
  188. std::string mMeshOrController;
  189. ///< Map of materials by the subgroup ID they're applied to
  190. std::map<std::string, SemanticMappingTable> mMaterials;
  191. };
  192. /** A reference to a camera inside a node*/
  193. struct CameraInstance
  194. {
  195. ///< ID of the camera
  196. std::string mCamera;
  197. };
  198. /** A reference to a light inside a node*/
  199. struct LightInstance
  200. {
  201. ///< ID of the camera
  202. std::string mLight;
  203. };
  204. /** A reference to a node inside a node*/
  205. struct NodeInstance
  206. {
  207. ///< ID of the node
  208. std::string mNode;
  209. };
  210. /** A node in a scene hierarchy */
  211. struct Node
  212. {
  213. std::string mName;
  214. std::string mID;
  215. std::string mSID;
  216. Node* mParent;
  217. std::vector<Node*> mChildren;
  218. /** Operations in order to calculate the resulting transformation to parent. */
  219. std::vector<Transform> mTransforms;
  220. /** Meshes at this node */
  221. std::vector<MeshInstance> mMeshes;
  222. /** Lights at this node */
  223. std::vector<LightInstance> mLights;
  224. /** Cameras at this node */
  225. std::vector<CameraInstance> mCameras;
  226. /** Node instances at this node */
  227. std::vector<NodeInstance> mNodeInstances;
  228. /** Root-nodes: Name of primary camera, if any */
  229. std::string mPrimaryCamera;
  230. //! Constructor. Begin with a zero parent
  231. Node()
  232. : mParent( nullptr ){
  233. // empty
  234. }
  235. //! Destructor: delete all children subsequently
  236. ~Node() {
  237. for( std::vector<Node*>::iterator it = mChildren.begin(); it != mChildren.end(); ++it)
  238. delete *it;
  239. }
  240. };
  241. /** Data source array: either floats or strings */
  242. struct Data
  243. {
  244. bool mIsStringArray;
  245. std::vector<ai_real> mValues;
  246. std::vector<std::string> mStrings;
  247. };
  248. /** Accessor to a data array */
  249. struct Accessor
  250. {
  251. size_t mCount; // in number of objects
  252. size_t mSize; // size of an object, in elements (floats or strings, mostly 1)
  253. size_t mOffset; // in number of values
  254. size_t mStride; // Stride in number of values
  255. std::vector<std::string> mParams; // names of the data streams in the accessors. Empty string tells to ignore.
  256. size_t mSubOffset[4]; // Suboffset inside the object for the common 4 elements. For a vector, that's XYZ, for a color RGBA and so on.
  257. // For example, SubOffset[0] denotes which of the values inside the object is the vector X component.
  258. std::string mSource; // URL of the source array
  259. mutable const Data* mData; // Pointer to the source array, if resolved. NULL else
  260. Accessor()
  261. {
  262. mCount = 0; mSize = 0; mOffset = 0; mStride = 0; mData = NULL;
  263. mSubOffset[0] = mSubOffset[1] = mSubOffset[2] = mSubOffset[3] = 0;
  264. }
  265. };
  266. /** A single face in a mesh */
  267. struct Face
  268. {
  269. std::vector<size_t> mIndices;
  270. };
  271. /** An input channel for mesh data, referring to a single accessor */
  272. struct InputChannel
  273. {
  274. InputType mType; // Type of the data
  275. size_t mIndex; // Optional index, if multiple sets of the same data type are given
  276. size_t mOffset; // Index offset in the indices array of per-face indices. Don't ask, can't explain that any better.
  277. std::string mAccessor; // ID of the accessor where to read the actual values from.
  278. mutable const Accessor* mResolved; // Pointer to the accessor, if resolved. NULL else
  279. InputChannel() { mType = IT_Invalid; mIndex = 0; mOffset = 0; mResolved = NULL; }
  280. };
  281. /** Subset of a mesh with a certain material */
  282. struct SubMesh
  283. {
  284. std::string mMaterial; ///< subgroup identifier
  285. size_t mNumFaces; ///< number of faces in this submesh
  286. };
  287. /** Contains data for a single mesh */
  288. struct Mesh
  289. {
  290. Mesh()
  291. {
  292. for (unsigned int i = 0; i < AI_MAX_NUMBER_OF_TEXTURECOORDS;++i)
  293. mNumUVComponents[i] = 2;
  294. }
  295. std::string mName;
  296. // just to check if there's some sophisticated addressing involved...
  297. // which we don't support, and therefore should warn about.
  298. std::string mVertexID;
  299. // Vertex data addressed by vertex indices
  300. std::vector<InputChannel> mPerVertexData;
  301. // actual mesh data, assembled on encounter of a <p> element. Verbose format, not indexed
  302. std::vector<aiVector3D> mPositions;
  303. std::vector<aiVector3D> mNormals;
  304. std::vector<aiVector3D> mTangents;
  305. std::vector<aiVector3D> mBitangents;
  306. std::vector<aiVector3D> mTexCoords[AI_MAX_NUMBER_OF_TEXTURECOORDS];
  307. std::vector<aiColor4D> mColors[AI_MAX_NUMBER_OF_COLOR_SETS];
  308. unsigned int mNumUVComponents[AI_MAX_NUMBER_OF_TEXTURECOORDS];
  309. // Faces. Stored are only the number of vertices for each face.
  310. // 1 == point, 2 == line, 3 == triangle, 4+ == poly
  311. std::vector<size_t> mFaceSize;
  312. // Position indices for all faces in the sequence given in mFaceSize -
  313. // necessary for bone weight assignment
  314. std::vector<size_t> mFacePosIndices;
  315. // Submeshes in this mesh, each with a given material
  316. std::vector<SubMesh> mSubMeshes;
  317. };
  318. /** Which type of primitives the ReadPrimitives() function is going to read */
  319. enum PrimitiveType
  320. {
  321. Prim_Invalid,
  322. Prim_Lines,
  323. Prim_LineStrip,
  324. Prim_Triangles,
  325. Prim_TriStrips,
  326. Prim_TriFans,
  327. Prim_Polylist,
  328. Prim_Polygon
  329. };
  330. /** A skeleton controller to deform a mesh with the use of joints */
  331. struct Controller
  332. {
  333. // controller type
  334. ControllerType mType;
  335. // Morphing method if type is Morph
  336. MorphMethod mMethod;
  337. // the URL of the mesh deformed by the controller.
  338. std::string mMeshId;
  339. // accessor URL of the joint names
  340. std::string mJointNameSource;
  341. ///< The bind shape matrix, as array of floats. I'm not sure what this matrix actually describes, but it can't be ignored in all cases
  342. ai_real mBindShapeMatrix[16];
  343. // accessor URL of the joint inverse bind matrices
  344. std::string mJointOffsetMatrixSource;
  345. // input channel: joint names.
  346. InputChannel mWeightInputJoints;
  347. // input channel: joint weights
  348. InputChannel mWeightInputWeights;
  349. // Number of weights per vertex.
  350. std::vector<size_t> mWeightCounts;
  351. // JointIndex-WeightIndex pairs for all vertices
  352. std::vector< std::pair<size_t, size_t> > mWeights;
  353. std::string mMorphTarget;
  354. std::string mMorphWeight;
  355. };
  356. /** A collada material. Pretty much the only member is a reference to an effect. */
  357. struct Material
  358. {
  359. std::string mName;
  360. std::string mEffect;
  361. };
  362. /** Type of the effect param */
  363. enum ParamType
  364. {
  365. Param_Sampler,
  366. Param_Surface
  367. };
  368. /** A param for an effect. Might be of several types, but they all just refer to each other, so I summarize them */
  369. struct EffectParam
  370. {
  371. ParamType mType;
  372. std::string mReference; // to which other thing the param is referring to.
  373. };
  374. /** Shading type supported by the standard effect spec of Collada */
  375. enum ShadeType
  376. {
  377. Shade_Invalid,
  378. Shade_Constant,
  379. Shade_Lambert,
  380. Shade_Phong,
  381. Shade_Blinn
  382. };
  383. /** Represents a texture sampler in collada */
  384. struct Sampler
  385. {
  386. Sampler()
  387. : mWrapU (true)
  388. , mWrapV (true)
  389. , mMirrorU ()
  390. , mMirrorV ()
  391. , mOp (aiTextureOp_Multiply)
  392. , mUVId (UINT_MAX)
  393. , mWeighting (1.f)
  394. , mMixWithPrevious (1.f)
  395. {}
  396. /** Name of image reference
  397. */
  398. std::string mName;
  399. /** Wrap U?
  400. */
  401. bool mWrapU;
  402. /** Wrap V?
  403. */
  404. bool mWrapV;
  405. /** Mirror U?
  406. */
  407. bool mMirrorU;
  408. /** Mirror V?
  409. */
  410. bool mMirrorV;
  411. /** Blend mode
  412. */
  413. aiTextureOp mOp;
  414. /** UV transformation
  415. */
  416. aiUVTransform mTransform;
  417. /** Name of source UV channel
  418. */
  419. std::string mUVChannel;
  420. /** Resolved UV channel index or UINT_MAX if not known
  421. */
  422. unsigned int mUVId;
  423. // OKINO/MAX3D extensions from here
  424. // -------------------------------------------------------
  425. /** Weighting factor
  426. */
  427. ai_real mWeighting;
  428. /** Mixing factor from OKINO
  429. */
  430. ai_real mMixWithPrevious;
  431. };
  432. /** A collada effect. Can contain about anything according to the Collada spec,
  433. but we limit our version to a reasonable subset. */
  434. struct Effect
  435. {
  436. // Shading mode
  437. ShadeType mShadeType;
  438. // Colors
  439. aiColor4D mEmissive, mAmbient, mDiffuse, mSpecular,
  440. mTransparent, mReflective;
  441. // Textures
  442. Sampler mTexEmissive, mTexAmbient, mTexDiffuse, mTexSpecular,
  443. mTexTransparent, mTexBump, mTexReflective;
  444. // Scalar factory
  445. ai_real mShininess, mRefractIndex, mReflectivity;
  446. ai_real mTransparency;
  447. bool mHasTransparency;
  448. bool mRGBTransparency;
  449. bool mInvertTransparency;
  450. // local params referring to each other by their SID
  451. typedef std::map<std::string, Collada::EffectParam> ParamLibrary;
  452. ParamLibrary mParams;
  453. // MAX3D extensions
  454. // ---------------------------------------------------------
  455. // Double-sided?
  456. bool mDoubleSided, mWireframe, mFaceted;
  457. Effect()
  458. : mShadeType (Shade_Phong)
  459. , mEmissive ( 0, 0, 0, 1)
  460. , mAmbient ( 0.1f, 0.1f, 0.1f, 1)
  461. , mDiffuse ( 0.6f, 0.6f, 0.6f, 1)
  462. , mSpecular ( 0.4f, 0.4f, 0.4f, 1)
  463. , mTransparent ( 0, 0, 0, 1)
  464. , mShininess (10.0f)
  465. , mRefractIndex (1.f)
  466. , mReflectivity (0.f)
  467. , mTransparency (1.f)
  468. , mHasTransparency (false)
  469. , mRGBTransparency(false)
  470. , mInvertTransparency(false)
  471. , mDoubleSided (false)
  472. , mWireframe (false)
  473. , mFaceted (false)
  474. {
  475. }
  476. };
  477. /** An image, meaning texture */
  478. struct Image
  479. {
  480. std::string mFileName;
  481. /** Embedded image data */
  482. std::vector<uint8_t> mImageData;
  483. /** File format hint of embedded image data */
  484. std::string mEmbeddedFormat;
  485. };
  486. /** An animation channel. */
  487. struct AnimationChannel
  488. {
  489. /** URL of the data to animate. Could be about anything, but we support only the
  490. * "NodeID/TransformID.SubElement" notation
  491. */
  492. std::string mTarget;
  493. /** Source URL of the time values. Collada calls them "input". Meh. */
  494. std::string mSourceTimes;
  495. /** Source URL of the value values. Collada calls them "output". */
  496. std::string mSourceValues;
  497. /** Source URL of the IN_TANGENT semantic values. */
  498. std::string mInTanValues;
  499. /** Source URL of the OUT_TANGENT semantic values. */
  500. std::string mOutTanValues;
  501. /** Source URL of the INTERPOLATION semantic values. */
  502. std::string mInterpolationValues;
  503. };
  504. /** An animation. Container for 0-x animation channels or 0-x animations */
  505. struct Animation
  506. {
  507. /** Anim name */
  508. std::string mName;
  509. /** the animation channels, if any */
  510. std::vector<AnimationChannel> mChannels;
  511. /** the sub-animations, if any */
  512. std::vector<Animation*> mSubAnims;
  513. /** Destructor */
  514. ~Animation()
  515. {
  516. for( std::vector<Animation*>::iterator it = mSubAnims.begin(); it != mSubAnims.end(); ++it)
  517. delete *it;
  518. }
  519. /** Collect all channels in the animation hierarchy into a single channel list. */
  520. void CollectChannelsRecursively(std::vector<AnimationChannel> &channels)
  521. {
  522. channels.insert(channels.end(), mChannels.begin(), mChannels.end());
  523. for (std::vector<Animation*>::iterator it = mSubAnims.begin(); it != mSubAnims.end(); ++it)
  524. {
  525. Animation *pAnim = (*it);
  526. pAnim->CollectChannelsRecursively(channels);
  527. }
  528. }
  529. /** Combine all single-channel animations' channel into the same (parent) animation channel list. */
  530. void CombineSingleChannelAnimations()
  531. {
  532. CombineSingleChannelAnimationsRecursively(this);
  533. }
  534. void CombineSingleChannelAnimationsRecursively(Animation *pParent)
  535. {
  536. std::set<std::string> childrenTargets;
  537. bool childrenAnimationsHaveDifferentChannels = true;
  538. for (std::vector<Animation*>::iterator it = pParent->mSubAnims.begin(); it != pParent->mSubAnims.end();)
  539. {
  540. Animation *anim = *it;
  541. CombineSingleChannelAnimationsRecursively(anim);
  542. if (childrenAnimationsHaveDifferentChannels && anim->mChannels.size() == 1 &&
  543. childrenTargets.find(anim->mChannels[0].mTarget) == childrenTargets.end()) {
  544. childrenTargets.insert(anim->mChannels[0].mTarget);
  545. } else {
  546. childrenAnimationsHaveDifferentChannels = false;
  547. }
  548. ++it;
  549. }
  550. // We only want to combine animations if they have different channels
  551. if (childrenAnimationsHaveDifferentChannels)
  552. {
  553. for (std::vector<Animation*>::iterator it = pParent->mSubAnims.begin(); it != pParent->mSubAnims.end();)
  554. {
  555. Animation *anim = *it;
  556. pParent->mChannels.push_back(anim->mChannels[0]);
  557. it = pParent->mSubAnims.erase(it);
  558. delete anim;
  559. continue;
  560. }
  561. }
  562. }
  563. };
  564. /** Description of a collada animation channel which has been determined to affect the current node */
  565. struct ChannelEntry
  566. {
  567. const Collada::AnimationChannel* mChannel; ///> the source channel
  568. std::string mTargetId;
  569. std::string mTransformId; // the ID of the transformation step of the node which is influenced
  570. size_t mTransformIndex; // Index into the node's transform chain to apply the channel to
  571. size_t mSubElement; // starting index inside the transform data
  572. // resolved data references
  573. const Collada::Accessor* mTimeAccessor; ///> Collada accessor to the time values
  574. const Collada::Data* mTimeData; ///> Source data array for the time values
  575. const Collada::Accessor* mValueAccessor; ///> Collada accessor to the key value values
  576. const Collada::Data* mValueData; ///> Source datat array for the key value values
  577. ChannelEntry()
  578. : mChannel()
  579. , mTransformIndex()
  580. , mSubElement()
  581. , mTimeAccessor()
  582. , mTimeData()
  583. , mValueAccessor()
  584. , mValueData()
  585. {}
  586. };
  587. } // end of namespace Collada
  588. } // end of namespace Assimp
  589. #endif // AI_COLLADAHELPER_H_INC