panda3d.core.Namable

class Namable

Bases: MemoryBase

A base class for all things which can have a name. The name is either empty or nonempty, but it is never NULL.

Inheritance diagram

Inheritance diagram of Namable

__init__(param0: Namable) → None
__init__(initial_name: str) → None
setName(name: str) → None
clearName() → None

Resets the Namable’s name to empty.

hasName() → bool

Returns true if the Namable has a nonempty name set, false if the name is empty.

getName() → str
output(out: ostream) → None

Outputs the Namable. This function simply writes the name to the output stream; most Namable derivatives will probably redefine this.

static getClassType() → TypeHandle
Return type

TypeHandle

property name

Getter Setter

Return type

string