Panda3D
 All Classes Functions Variables Enumerations
partBundleHandle.I
1 // Filename: partBundleHandle.I
2 // Created by: drose (01Oct07)
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: PartBundleHandle::Constructor
18 // Access: Published
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE PartBundleHandle::
22 PartBundleHandle(PartBundle *bundle) :
23  _bundle(bundle)
24 {
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: PartBundleHandle::Destructor
29 // Access: Published
30 // Description:
31 ////////////////////////////////////////////////////////////////////
32 INLINE PartBundleHandle::
33 ~PartBundleHandle() {
34 }
35 
36 ////////////////////////////////////////////////////////////////////
37 // Function: PartBundleHandle::get_bundle
38 // Access: Published
39 // Description: Returns the actual PartBundle embedded within the
40 // handle.
41 ////////////////////////////////////////////////////////////////////
44  return _bundle;
45 }
46 
47 ////////////////////////////////////////////////////////////////////
48 // Function: PartBundleHandle::set_bundle
49 // Access: Published
50 // Description: Changes the actual PartBundle embedded within the
51 // handle.
52 ////////////////////////////////////////////////////////////////////
53 INLINE void PartBundleHandle::
55  _bundle = bundle;
56 }
This is the root of a MovingPart hierarchy.
Definition: partBundle.h:49
void set_bundle(PartBundle *bundle)
Changes the actual PartBundle embedded within the handle.
PartBundle * get_bundle()
Returns the actual PartBundle embedded within the handle.