addNode void AttribNodeRegistry::add_node(NodePath const &attrib_node); Description: Adds the indicated NodePath to the registry. The name and type of the node are noted at the time of this call; if the name changes later, it will not update the registry index. The NodePath must reference some kind of an attribute node, such as a LightNode or a PlaneNode. When bam files that reference an attribute node of the same type and the same name are loaded, they will quietly be redirected to reference this NodePath. If there is already a node matching the indicated name and type, it will be replaced. |
clear void AttribNodeRegistry::clear(void); Description: Removes all nodes from the registry. |
findNode int AttribNodeRegistry::find_node(NodePath const &attrib_node) const; Description: Returns the index number of the indicated NodePath in the registry (assuming its name hasn't changed since it was recorded in the registry), or -1 if the NodePath cannot be found (for instance, because its name has changed). Description: Returns the index number of the node with the indicated type and name in the registry, or -1 if there is no such node in the registry. |
getGlobalPtr static AttribNodeRegistry *AttribNodeRegistry::get_global_ptr(void); Filename: attribNodeRegistry.I Created by: drose (07Jul07) PANDA 3D SOFTWARE Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved All use of this software is subject to the terms of the Panda 3d Software license. You should have received a copy of this license along with this source code; you will also find a current copy of the license at http://etc.cmu.edu/panda3d/docs/license/ . To contact the maintainers of this program write to panda3d-general@lists.sourceforge.net . Description: |
getNode NodePath AttribNodeRegistry::get_node(int n) const; Description: Returns the nth NodePath recorded in the registry. |
getNodeName string AttribNodeRegistry::get_node_name(int n) const; Description: Returns the name of the nth node, as recorded in the registry. This will be the node name as it was at the time the node was recorded; if the node has changed names since then, this will still return the original name. |
getNodeType TypeHandle AttribNodeRegistry::get_node_type(int n) const; Description: Returns the type of the nth node, as recorded in the registry. |
getNumNodes int AttribNodeRegistry::get_num_nodes(void) const; Description: Returns the total number of nodes in the registry. |
lookupNode NodePath AttribNodeRegistry::lookup_node(NodePath const &orig_node) const; Description: Looks up the indicated NodePath in the registry. If there is a node already in the registry with the matching name and type, returns that NodePath instead; otherwise, returns the original NodePath. |
output void AttribNodeRegistry::output(ostream &out) const; Description: |
removeNode bool AttribNodeRegistry::remove_node(NodePath const &attrib_node); Description: Removes the indicated NodePath from the registry. The name of the node must not have changed since the matching call to add_node(), or it will not be successfully removed. Returns true if the NodePath is found and removed, false if it is not found (for instance, because the name has changed). Description: Removes the nth node from the registry. |
write void AttribNodeRegistry::write(ostream &out) const; Description: |