SkinnedModelAnimationInfo.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. #region File Description
  2. //-----------------------------------------------------------------------------
  3. // SkinnedModelAnimationInfo.cs
  4. //
  5. // Microsoft XNA Community Game Platform
  6. // Copyright (C) Microsoft Corporation. All rights reserved.
  7. //-----------------------------------------------------------------------------
  8. #endregion
  9. #region Using Statements
  10. using System;
  11. using System.Collections.Generic;
  12. using Microsoft.Xna.Framework;
  13. #endregion
  14. namespace MovipaLibrary
  15. {
  16. /// <summary>
  17. /// This class manages animation information of a skin model.
  18. /// Camera position and direction as well as model data are managed
  19. /// in this class. SkinnedModelInfo is defined in a list format
  20. /// so that multiple models can be managed.
  21. ///
  22. /// スキンモデルのアニメーション情報を持ちます。
  23. /// モデルデータの他に、カメラの位置や方向の情報を持ちます。
  24. /// 複数のモデルを管理できるようにSkinnedModelInfoはリスト形式で定義されています。
  25. /// </summary>
  26. public class SkinnedModelAnimationInfo : AnimationInfo
  27. {
  28. #region Fields
  29. private List<SkinnedModelInfo> skinnedModelInfoCollection =
  30. new List<SkinnedModelInfo>();
  31. private Vector3 cameraUpVector;
  32. private Vector3 cameraPosition;
  33. private Vector3 cameraLookAt;
  34. #endregion
  35. #region Properties
  36. /// <summary>
  37. /// Obtains or sets the list of the skin model information.
  38. ///
  39. /// スキンモデル情報のリストを取得または設定します。
  40. /// </summary>
  41. public List<SkinnedModelInfo> SkinnedModelInfoCollection
  42. {
  43. get { return skinnedModelInfoCollection; }
  44. }
  45. /// <summary>
  46. /// Obtains or sets the camera coordinate system.
  47. ///
  48. /// カメラの座標系を取得または設定します。
  49. /// </summary>
  50. public Vector3 CameraUpVector
  51. {
  52. get { return cameraUpVector; }
  53. set { cameraUpVector = value; }
  54. }
  55. /// <summary>
  56. /// Obtains or sets the camera position.
  57. ///
  58. /// カメラの位置を取得または設定します。
  59. /// </summary>
  60. public Vector3 CameraPosition
  61. {
  62. get { return cameraPosition; }
  63. set { cameraPosition = value; }
  64. }
  65. /// <summary>
  66. /// Obtains or sets the camera viewpoint.
  67. ///
  68. /// カメラの視点を取得または設定します。
  69. /// </summary>
  70. public Vector3 CameraLookAt
  71. {
  72. get { return cameraLookAt; }
  73. set { cameraLookAt = value; }
  74. }
  75. #endregion
  76. }
  77. }