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

panda/src/egg/eggPoolUniquifier.h

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

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