Panda3D
Public Member Functions | Static Public Member Functions | List of all members
Namable Class Reference

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

Inheritance diagram for Namable:
MemoryBase AdaptiveLru AnimControl AnimGroup AsyncTaskBase AsyncTaskChain AsyncTaskManager CardMaker CollisionTraverser FisheyeMaker FreetypeFont HeightfieldTesselator LineSegs Loader Material MouseWatcherRegion MovieAudio MovieVideo PandaNode PartGroup SimpleLru TextFont Texture Thread EggNamedObject

Public Member Functions

 __init__ (const Namable copy)
 
 __init__ (str initial_name)
 
 clearName ()
 Resets the Namable's name to empty. More...
 
str getName ()
 
bool hasName ()
 Returns true if the Namable has a nonempty name set, false if the name is empty. More...
 
Namable operator= (const Namable other)
 
 output (Ostream out)
 Outputs the Namable. This function simply writes the name to the output stream; most Namable derivatives will probably redefine this. More...
 
 setName (str name)
 

Static Public Member Functions

static TypeHandle getClassType ()
 

Detailed Description

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

Member Function Documentation

◆ __init__() [1/2]

__init__ ( const Namable  copy)

◆ __init__() [2/2]

__init__ ( str  initial_name)

◆ clearName()

clearName ( )

Resets the Namable's name to empty.

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ getName()

str getName ( )

◆ hasName()

bool hasName ( )

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

◆ operator=()

Namable operator= ( const Namable  other)

◆ output()

output ( Ostream  out)

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

◆ setName()

setName ( str  name)