14#ifndef ATTRIBNODEREGISTRY_H
15#define ATTRIBNODEREGISTRY_H
33class EXPCL_PANDA_PGRAPH AttribNodeRegistry {
53 void output(std::ostream &out)
const;
54 void write(std::ostream &out)
const;
56 INLINE
static AttribNodeRegistry *get_global_ptr();
59 static void make_global_ptr();
64 INLINE Entry(
TypeHandle type,
const std::string &name);
65 INLINE
bool operator < (
const Entry &other)
const;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This global object records NodePaths that are referenced by scene graph attribs, such as ClipPlaneAtt...
void clear()
Removes all nodes from the registry.
int find_node(const NodePath &attrib_node) const
Returns the index number of the indicated NodePath in the registry (assuming its name hasn't changed ...
bool remove_node(const NodePath &attrib_node)
Removes the indicated NodePath from the registry.
std::string get_node_name(int n) const
Returns the name of the nth node, as recorded in the registry.
get_num_nodes
Returns the total number of nodes in the registry.
TypeHandle get_node_type(int n) const
Returns the type of the nth node, as recorded in the registry.
NodePath lookup_node(const NodePath &orig_node) const
Looks up the indicated NodePath in the registry.
get_node
Returns the nth NodePath recorded in the registry.
void add_node(const NodePath &attrib_node)
Adds the indicated NodePath to the registry.
This is a standard, non-reentrant mutex, similar to the Mutex class.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
TypeHandle is the identifier used to differentiate C++ class types.
A specialization of ordered_vector that emulates a standard STL set: one copy of each element is allo...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.