00001 // Filename: animBundleNode.I 00002 // Created by: drose (06Mar02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: AnimBundleNode::Constructor 00022 // Access: Public 00023 // Description: The AnimBundle and its node should be constructed 00024 // together. Generally, the derived classes of 00025 // AnimBundleNode will automatically create a AnimBundle 00026 // of the appropriate type, and pass it up to this 00027 // constructor. 00028 //////////////////////////////////////////////////////////////////// 00029 INLINE AnimBundleNode:: 00030 AnimBundleNode(const string &name, AnimBundle *bundle) : 00031 PandaNode(name), 00032 _bundle(bundle) 00033 { 00034 } 00035 00036 //////////////////////////////////////////////////////////////////// 00037 // Function: AnimBundleNode::Default Constructor 00038 // Access: Protected 00039 // Description: For internal use only. 00040 //////////////////////////////////////////////////////////////////// 00041 INLINE AnimBundleNode:: 00042 AnimBundleNode() : PandaNode("") { 00043 } 00044 00045 //////////////////////////////////////////////////////////////////// 00046 // Function: AnimBundleNode::Copy Constructor 00047 // Access: Protected 00048 // Description: Use make_copy() or copy_subgraph() to copy one of 00049 // these. Copying a AnimBundleNode will always force a 00050 // deep copy of the PartGroup hierarchy. 00051 //////////////////////////////////////////////////////////////////// 00052 INLINE AnimBundleNode:: 00053 AnimBundleNode(const AnimBundleNode ©) : 00054 PandaNode(copy), 00055 _bundle(copy._bundle) 00056 { 00057 } 00058 00059 //////////////////////////////////////////////////////////////////// 00060 // Function: AnimBundleNode::get_bundle 00061 // Access: Public 00062 // Description: 00063 //////////////////////////////////////////////////////////////////// 00064 INLINE AnimBundle *AnimBundleNode:: 00065 get_bundle() const { 00066 return _bundle; 00067 }