Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/egg/eggBin.h

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

Generated on Fri May 2 00:37:28 2003 for Panda by doxygen1.3