Panda3D
 All Classes Functions Variables Enumerations
eggPoolUniquifier.h
00001 // Filename: eggPoolUniquifier.h
00002 // Created by:  drose (09Nov00)
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 EGGPOOLUNIQUIFIER_H
00016 #define EGGPOOLUNIQUIFIER_H
00017 
00018 #include "pandabase.h"
00019 
00020 #include "eggNameUniquifier.h"
00021 
00022 ////////////////////////////////////////////////////////////////////
00023 //       Class : EggPoolUniquifier
00024 // Description : This is a specialization of EggNameUniquifier to
00025 //               generate unique names for textures, materials, and
00026 //               vertex pools prior to writing out an egg file.  It's
00027 //               automatically called by EggData prior to writing out
00028 //               an egg file.
00029 ////////////////////////////////////////////////////////////////////
00030 class EXPCL_PANDAEGG EggPoolUniquifier : public EggNameUniquifier {
00031 PUBLISHED:
00032   EggPoolUniquifier();
00033 
00034   virtual string get_category(EggNode *node);
00035 
00036 public:
00037   static TypeHandle get_class_type() {
00038     return _type_handle;
00039   }
00040   static void init_type() {
00041     EggNameUniquifier::init_type();
00042     register_type(_type_handle, "EggPoolUniquifier",
00043                   EggNameUniquifier::get_class_type());
00044   }
00045   virtual TypeHandle get_type() const {
00046     return get_class_type();
00047   }
00048   virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00049 
00050 private:
00051   static TypeHandle _type_handle;
00052 
00053 };
00054 
00055 #endif
00056 
00057 
 All Classes Functions Variables Enumerations