partBundle.I 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. // Filename: partBundle.I
  2. // Created by: drose (22Feb99)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. ////////////////////////////////////////////////////////////////////
  19. // Function: PartBundle::get_blend_type
  20. // Access: Published
  21. // Description: Returns the way the character responds to multiple
  22. // animations being bound simultaneously.
  23. ////////////////////////////////////////////////////////////////////
  24. INLINE PartBundle::BlendType PartBundle::
  25. get_blend_type() const {
  26. return _blend_type;
  27. }
  28. ////////////////////////////////////////////////////////////////////
  29. // Function: PartBundle::get_node
  30. // Access: Published
  31. // Description: Returns the PartBundleNode associated with this
  32. // PartBundle.
  33. ////////////////////////////////////////////////////////////////////
  34. INLINE PartBundleNode *PartBundle::
  35. get_node() const {
  36. return _node;
  37. }
  38. ////////////////////////////////////////////////////////////////////
  39. // Function: PartBundle::get_qpnode
  40. // Access: Published
  41. // Description: Returns the PartBundleNode associated with this
  42. // PartBundle.
  43. ////////////////////////////////////////////////////////////////////
  44. INLINE qpPartBundleNode *PartBundle::
  45. get_qpnode() const {
  46. return _qpnode;
  47. }
  48. ////////////////////////////////////////////////////////////////////
  49. // Function: PartBundle::control_begin
  50. // Access: Public
  51. // Description: Returns an iterator that can be used to traverse the
  52. // entire set of AnimControls currently in effect.
  53. ////////////////////////////////////////////////////////////////////
  54. INLINE PartBundle::control_iterator PartBundle::
  55. control_begin() const {
  56. return _blend.begin();
  57. }
  58. ////////////////////////////////////////////////////////////////////
  59. // Function: PartBundle::control_end
  60. // Access: Public
  61. // Description: Returns an iterator that can be used to traverse the
  62. // entire set of AnimControls currently in effect.
  63. ////////////////////////////////////////////////////////////////////
  64. INLINE PartBundle::control_iterator PartBundle::
  65. control_end() const {
  66. return _blend.end();
  67. }
  68. ////////////////////////////////////////////////////////////////////
  69. // Function: PartBundle::control_size
  70. // Access: Public
  71. // Description: Returns the number of entries between control_begin()
  72. // and control_end(): the number of AnimControls
  73. // currently in effect.
  74. ////////////////////////////////////////////////////////////////////
  75. INLINE PartBundle::control_size_type PartBundle::
  76. control_size() const {
  77. return _blend.size();
  78. }
  79. ////////////////////////////////////////////////////////////////////
  80. // Function: PartBundle::get_blend_map
  81. // Access: Public
  82. // Description: Returns the entire mapping of AnimControls to blend
  83. // effect.
  84. ////////////////////////////////////////////////////////////////////
  85. INLINE const PartBundle::ChannelBlend &PartBundle::
  86. get_blend_map() const {
  87. return _blend;
  88. }