14 #ifndef EGGGROUPUNIQUIFIER_H 15 #define EGGGROUPUNIQUIFIER_H 30 virtual std::string get_category(
EggNode *node);
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();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a specialization of EggNameUniquifier to generate unique names for EggGroup nodes.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a handy class for guaranteeing unique node names in an egg hierarchy.
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.