Panda3D
eggBin.h
1 // Filename: eggBin.h
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 #ifndef EGGBIN_H
16 #define EGGBIN_H
17 
18 #include "pandabase.h"
19 
20 #include "eggGroup.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : EggBin
24 // Description : A type of group node that holds related subnodes.
25 // This is a special kind of node that will never be
26 // read in from an egg file, but can only exist in the
27 // egg scene graph if it is created via the use of an
28 // EggBinMaker.
29 ////////////////////////////////////////////////////////////////////
30 class EXPCL_PANDAEGG EggBin : public EggGroup {
31 PUBLISHED:
32  EggBin(const string &name = "");
33  EggBin(const EggGroup &copy);
34  EggBin(const EggBin &copy);
35 
36  void set_bin_number(int bin_number);
37  int get_bin_number() const;
38 
39 private:
40  int _bin_number;
41 
42 
43 public:
44  static TypeHandle get_class_type() {
45  return _type_handle;
46  }
47  static void init_type() {
48  EggGroup::init_type();
49  register_type(_type_handle, "EggBin",
50  EggGroup::get_class_type());
51  }
52  virtual TypeHandle get_type() const {
53  return get_class_type();
54  }
55  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
56 
57 private:
58  static TypeHandle _type_handle;
59 };
60 
61 #endif
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