InternalNameCollection
from panda3d.core import InternalNameCollection
- class InternalNameCollection
Bases:
Inheritance diagram
- __add__(other: InternalNameCollection) InternalNameCollection
- __getitem__(index: int) InternalName
Returns the nth
InternalNamein the collection. This is the same asget_name(), but it may be a more convenient way to access it.
- __iadd__(other: InternalNameCollection) InternalNameCollection
- __init__()
- __init__(copy: InternalNameCollection)
- add_name(name: InternalName)
Adds a new
InternalNameto the collection.
- add_names_from(other: InternalNameCollection)
Adds all the
InternalNamesindicated in the other collection to this name. The other names are simply appended to the end of the names in this list; duplicates are not automatically removed.
- assign(copy: InternalNameCollection) InternalNameCollection
- clear()
Removes all
InternalNamesfrom the collection.
- get_name(index: int) InternalName
Returns the nth
InternalNamein the collection.
- get_num_names() int
Returns the number of
InternalNamesin the collection.
- has_name(name: InternalName) bool
Returns true if the indicated
InternalNameappears in this collection, false otherwise.
- output(out: ostream)
Writes a brief one-line description of the
InternalNameCollectionto the indicated output stream.
- remove_duplicate_names()
Removes any duplicate entries of the same
InternalNameson this collection. If aInternalNameappears multiple times, the first appearance is retained; subsequent appearances are removed.
- remove_name(name: InternalName) bool
Removes the indicated
InternalNamefrom the collection. Returns true if the name was removed, false if it was not a member of the collection.
- remove_names_from(other: InternalNameCollection)
Removes from this collection all of the
InternalNameslisted in the other collection.
- size() int
Returns the number of names in the collection. This is the same thing as
get_num_names().
- write(out: ostream, indent_level: int)
Writes a complete multi-line description of the
InternalNameCollectionto the indicated output stream.
