animBundleNode.I 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // Filename: animBundleNode.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: AnimBundleNode::Constructor
  20. // Access: Public
  21. // Description:
  22. ////////////////////////////////////////////////////////////////////
  23. INLINE AnimBundleNode::
  24. AnimBundleNode(AnimBundle *bundle) :
  25. NamedNode(bundle->get_name()),
  26. _bundle(bundle)
  27. {
  28. }
  29. ////////////////////////////////////////////////////////////////////
  30. // Function: AnimBundleNode::Constructor
  31. // Access: Protected
  32. // Description:
  33. ////////////////////////////////////////////////////////////////////
  34. INLINE AnimBundleNode::
  35. AnimBundleNode(void)
  36. {
  37. }
  38. ////////////////////////////////////////////////////////////////////
  39. // Function: AnimBundleNode::Copy Constructor
  40. // Access: Public
  41. // Description:
  42. ////////////////////////////////////////////////////////////////////
  43. INLINE AnimBundleNode::
  44. AnimBundleNode(const AnimBundleNode &copy) :
  45. NamedNode(copy),
  46. _bundle(copy._bundle)
  47. {
  48. }
  49. ////////////////////////////////////////////////////////////////////
  50. // Function: AnimBundleNode::Copy Assignment Operator
  51. // Access: Public
  52. // Description:
  53. ////////////////////////////////////////////////////////////////////
  54. INLINE void AnimBundleNode::
  55. operator = (const AnimBundleNode &copy) {
  56. NamedNode::operator = (copy);
  57. _bundle = copy._bundle;
  58. }
  59. ////////////////////////////////////////////////////////////////////
  60. // Function: AnimBundleNode::get_bundle
  61. // Access: Public
  62. // Description:
  63. ////////////////////////////////////////////////////////////////////
  64. INLINE AnimBundle *AnimBundleNode::
  65. get_bundle() const {
  66. return _bundle;
  67. }