15 #ifndef EGGGROUPUNIQUIFIER_H 16 #define EGGGROUPUNIQUIFIER_H 18 #include "pandabase.h" 20 #include "eggNameUniquifier.h" 33 virtual string get_category(
EggNode *node);
36 const string &category,
int index);
45 static void init_type() {
46 EggNameUniquifier::init_type();
47 register_type(_type_handle,
"EggGroupUniquifier",
48 EggNameUniquifier::get_class_type());
51 return get_class_type();
53 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This is a specialization of EggNameUniquifier to generate unique names for EggGroup nodes...
This is a handy class for guaranteeing unique node names in an egg hierarchy.
virtual string filter_name(EggNode *node)
Returns the name of the given node, or at least the name it should be.
virtual string generate_name(EggNode *node, const string &category, int index)
Generates a new name for the given node when its existing name clashes with some other node...
A base class for things that may be directly added into the egg hierarchy.
TypeHandle is the identifier used to differentiate C++ class types.