Panda3D
animBundleNode.I
1 // Filename: animBundleNode.I
2 // Created by: drose (06Mar02)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: AnimBundleNode::Constructor
18 // Access: Public
19 // Description: The AnimBundle and its node should be constructed
20 // together. Generally, the derived classes of
21 // AnimBundleNode will automatically create a AnimBundle
22 // of the appropriate type, and pass it up to this
23 // constructor.
24 ////////////////////////////////////////////////////////////////////
25 INLINE AnimBundleNode::
26 AnimBundleNode(const string &name, AnimBundle *bundle) :
27  PandaNode(name),
28  _bundle(bundle)
29 {
30 }
31 
32 ////////////////////////////////////////////////////////////////////
33 // Function: AnimBundleNode::Default Constructor
34 // Access: Protected
35 // Description: For internal use only.
36 ////////////////////////////////////////////////////////////////////
37 INLINE AnimBundleNode::
38 AnimBundleNode() : PandaNode("") {
39 }
40 
41 ////////////////////////////////////////////////////////////////////
42 // Function: AnimBundleNode::Copy Constructor
43 // Access: Protected
44 // Description: Use make_copy() or copy_subgraph() to copy one of
45 // these.
46 ////////////////////////////////////////////////////////////////////
47 INLINE AnimBundleNode::
48 AnimBundleNode(const AnimBundleNode &copy) :
49  PandaNode(copy),
50  _bundle(copy._bundle)
51 {
52 }
53 
54 ////////////////////////////////////////////////////////////////////
55 // Function: AnimBundleNode::get_bundle
56 // Access: Public
57 // Description:
58 ////////////////////////////////////////////////////////////////////
59 INLINE AnimBundle *AnimBundleNode::
60 get_bundle() const {
61  return _bundle;
62 }
A basic node of the scene graph or data graph.
Definition: pandaNode.h:72
This is the root of an AnimChannel hierarchy.
Definition: animBundle.h:31
This is a node that contains a pointer to an AnimBundle.