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

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

List of all members.

Public Member Functions

 __init__ (Namable const copy)
 __init__ (string initial_name)
 __init__ ()
 clearName ()
 Resets the Namable's name to empty.
string getName ()
bool hasName ()
 Returns true if the Namable has a nonempty name set, false if the name is empty.
Namable operator= (Namable const other)
 output (ostream out)
 Outputs the Namable.
 setName (string 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__ ( Namable const  copy)
clearName ( )

Resets the Namable's name to empty.

Reimplemented in AsyncTask.

static TypeHandle getClassType ( ) [static]

Reimplemented in PGWaitBar, PGScrollFrame, PGSliderBar, PGVirtualFrame, PGMouseWatcherBackground, PGEntry, PGTop, PGButton, PGItem, AudioLoadRequest, Transform2SG, Trackball, MouseWatcher, MouseWatcherRegion, MouseSubregion, DriveInterface, MouseInterfaceNode, ButtonThrower, StaticTextFont, DynamicTextFont, DynamicTextPage, TextFont, SheetNode, RopeNode, NurbsCurve, HermiteCurve, PiecewiseCurve, CubicCurveseg, ParametricCurve, VideoTexture, TextureReloadRequest, Material, AnimateVerticesRequest, PythonTask, AsyncTaskSequence, AsyncTaskPause, AsyncTaskManager, AsyncTaskChain, PythonThread, MainThread, ExternalThread, Thread, AsyncTaskBase, VirtualMouse, TrackerNode, MouseAndKeyboard, DialNode, ButtonNode, AnalogNode, CollisionVisualizer, CollisionTraverser, CollisionNode, CharacterJointBundle, Character, CharacterSlider, CharacterJoint, PartBundleNode, MovingPartACScalarSwitchType, MovingPartScalar, MovingPartACMatrixSwitchType, MovingPartMatrix, MovingPartBase, PartBundle, BindAnimRequest, AnimChannelScalarTable, AnimChannelScalarDynamic, AnimChannelMatrixXfmTable, AnimChannelMatrixDynamic, AnimChannelScalar, AnimChannelMatrix, AnimChannelBase, AnimControl, PartGroup, AnimBundleNode, AnimBundle, AnimGroup, RigidBodyCombiner, SceneGraphAnalyzerMeter, Texture, MovieTexture, TextNode, FrameRateMeter, UserDataAudio, MicrophoneAudio, InkblotVideo, FfmpegVideo, MovieVideo, FfmpegAudio, MovieAudio, PortalNode, PolylightNode, OccluderNode, ModelSaveRequest, ModelRoot, ModelNode, ModelLoadRequest, AsyncTask, ModelFlattenRequest, Loader, Fog, GeomNode, PlaneNode, LensNode, UvScrollNode, SwitchNode, Spotlight, SequenceNode, SelectiveChildNode, PointLight, FadeLODNode, LODNode, DirectionalLight, Camera, LightLensNode, CallbackNode, AmbientLight, PandaNode, LightNode, DataNode, and MouseRecorder.

string getName ( )

Reimplemented in DynamicTextFont.

bool hasName ( )

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

Namable operator= ( Namable const  other)
output ( ostream  out)

Outputs the Namable.

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

Reimplemented in MouseWatcherRegion, Material, SimpleLru, AdaptiveLru, AsyncTaskManager, AsyncTaskChain, Thread, CollisionTraverser, PartBundle, AnimControl, AnimGroup, TextNode, AsyncTask, Loader, LightLensNode, PandaNode, and LightNode.

setName ( string  name)

Reimplemented in PGItem, and AsyncTask.