Panda3D
 All Classes Functions Variables Enumerations
eggBin.cxx
1 // Filename: eggBin.cxx
2 // Created by: drose (21Jan99)
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 #include "eggBin.h"
16 
17 
18 TypeHandle EggBin::_type_handle;
19 
20 
21 ////////////////////////////////////////////////////////////////////
22 // Function: EggBin::Constructor
23 // Access: Public
24 // Description:
25 ////////////////////////////////////////////////////////////////////
26 EggBin::
27 EggBin(const string &name) : EggGroup(name) {
28  _bin_number = 0;
29 }
30 
31 
32 ////////////////////////////////////////////////////////////////////
33 // Function: EggBin::EggGroup copy constructor
34 // Access: Public
35 // Description:
36 ////////////////////////////////////////////////////////////////////
37 EggBin::
38 EggBin(const EggGroup &copy) : EggGroup(copy) {
39  _bin_number = 0;
40 }
41 
42 
43 ////////////////////////////////////////////////////////////////////
44 // Function: EggBin::Copy constructor
45 // Access: Public
46 // Description:
47 ////////////////////////////////////////////////////////////////////
48 EggBin::
49 EggBin(const EggBin &copy) : EggGroup(copy), _bin_number(copy._bin_number) {
50 }
51 
52 
53 
54 ////////////////////////////////////////////////////////////////////
55 // Function: EggBin::set_bin_number
56 // Access: Public
57 // Description:
58 ////////////////////////////////////////////////////////////////////
59 void EggBin::
60 set_bin_number(int bin_number) {
61  _bin_number = bin_number;
62 }
63 
64 ////////////////////////////////////////////////////////////////////
65 // Function: EggBin::get_bin_number
66 // Access: Public
67 // Description:
68 ////////////////////////////////////////////////////////////////////
69 int EggBin::
70 get_bin_number() const {
71  return _bin_number;
72 }
The main glue of the egg hierarchy, this corresponds to the <Group>, <Instance>, and <Joint> type nod...
Definition: eggGroup.h:36
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85
A type of group node that holds related subnodes.
Definition: eggBin.h:30