14#ifndef EGGGROUPUNIQUIFIER_H
15#define EGGGROUPUNIQUIFIER_H
33 const std::string &category,
int index);
42 static void init_type() {
43 EggNameUniquifier::init_type();
45 EggNameUniquifier::get_class_type());
48 return get_class_type();
50 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
EggGroupUniquifier(bool filter_names=true)
If filter_names is true, then the group names will be coerced into a fairly safe, standard convention...
virtual std::string get_category(EggNode *node)
Returns the category name into which the given node should be collected, or the empty string if the n...
virtual std::string filter_name(EggNode *node)
Returns the name of the given node, or at least the name it should be.
virtual std::string generate_name(EggNode *node, const std::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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...