Panda3D
|
00001 // Filename: eggBin.h 00002 // Created by: drose (21Jan99) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef EGGBIN_H 00016 #define EGGBIN_H 00017 00018 #include "pandabase.h" 00019 00020 #include "eggGroup.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Class : EggBin 00024 // Description : A type of group node that holds related subnodes. 00025 // This is a special kind of node that will never be 00026 // read in from an egg file, but can only exist in the 00027 // egg scene graph if it is created via the use of an 00028 // EggBinMaker. 00029 //////////////////////////////////////////////////////////////////// 00030 class EXPCL_PANDAEGG EggBin : public EggGroup { 00031 PUBLISHED: 00032 EggBin(const string &name = ""); 00033 EggBin(const EggGroup ©); 00034 EggBin(const EggBin ©); 00035 00036 void set_bin_number(int bin_number); 00037 int get_bin_number() const; 00038 00039 private: 00040 int _bin_number; 00041 00042 00043 public: 00044 static TypeHandle get_class_type() { 00045 return _type_handle; 00046 } 00047 static void init_type() { 00048 EggGroup::init_type(); 00049 register_type(_type_handle, "EggBin", 00050 EggGroup::get_class_type()); 00051 } 00052 virtual TypeHandle get_type() const { 00053 return get_class_type(); 00054 } 00055 virtual TypeHandle force_init_type() {init_type(); return get_class_type();} 00056 00057 private: 00058 static TypeHandle _type_handle; 00059 }; 00060 00061 #endif