from panda3d.core import InternalNameCollection
class InternalNameCollection

Inheritance diagram

Inheritance diagram of InternalNameCollection

__init__() → None
__init__(copy: InternalNameCollection) → None
addName(name: InternalName) → None

Adds a new InternalName to the collection.

addNamesFrom(other: InternalNameCollection) → None

Adds all the InternalNames indicated 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
Return type


clear() → None

Removes all InternalNames from the collection.

getName(index: int) → InternalName

Returns the nth InternalName in the collection.

Return type


getNames() → list
getNumNames() → int

Returns the number of InternalNames in the collection.

hasName(name: InternalName) → bool

Returns true if the indicated InternalName appears in this collection, false otherwise.

output(out: ostream) → None

Writes a brief one-line description of the InternalNameCollection to the indicated output stream.

removeDuplicateNames() → None

Removes any duplicate entries of the same InternalNames on this collection. If a InternalName appears multiple times, the first appearance is retained; subsequent appearances are removed.

removeName(name: InternalName) → bool

Removes the indicated InternalName from the collection. Returns true if the name was removed, false if it was not a member of the collection.

removeNamesFrom(other: InternalNameCollection) → None

Removes from this collection all of the InternalNames listed in the other collection.

size() → int

Returns the number of names in the collection. This is the same thing as getNumNames().

write(out: ostream, indent_level: int) → None

Writes a complete multi-line description of the InternalNameCollection to the indicated output stream.