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

A base class for all things which can have a name. More...

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

Public Member Functions

 __init__ (const Namable)
 
 __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...
 
 output (Ostream out)
 Outputs the Namable. More...
 
 setName (str name)
 

Static Public Member Functions

static TypeHandle getClassType ()
 

Public Attributes

const String name
 

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)

◆ __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.

◆ 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)

Member Data Documentation

◆ name

const String name