|
|
|
A base class for all things which can have a name.
More...
#include "namable.h"
List of all members.
Public Member Functions |
|
| Namable (const string &initial_name="") |
|
| Namable (const Namable ©) |
| void | clear_name () |
| | Resets the Namable's name to empty.
|
|
const string & | get_name () const |
| bool | has_name () const |
| | Returns true if the Namable has a nonempty name set, false if the name is empty.
|
|
Namable & | operator= (const Namable &other) |
| void | output (ostream &out) const |
| | Outputs the Namable.
|
|
void | set_name (const string &name) |
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
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.
Definition at line 29 of file namable.h.
Member Function Documentation
| void Namable::clear_name |
( |
| ) |
[inline] |
Resets the Namable's name to empty.
Reimplemented in AsyncTask.
Definition at line 64 of file namable.I.
| bool Namable::has_name |
( |
| ) |
const [inline] |
Returns true if the Namable has a nonempty name set, false if the name is empty.
Definition at line 75 of file namable.I.
Referenced by XFileNode::add_child(), EggComponentData::add_name(), Texture::do_read_dds_file(), Texture::do_read_one(), Character::fillin(), EggGroupUniquifier::get_category(), EggXfmSAnim::optimize(), NodePathComponent::output(), AsyncTask::output(), EggNamedObject::output(), EggSAnimData::write(), EggPrimitive::write_body(), ParametricCurveCollection::write_egg(), ParametricCurve::write_egg(), EggNamedObject::write_header(), XFileDataNodeTemplate::write_text(), and XFileDataDef::write_text().
| void Namable::output |
( |
ostream & |
out | ) |
const [inline] |
Outputs the Namable.
This function simply writes the name to the output stream; most Namable derivatives will probably redefine this.
Reimplemented in BulletBodyNode, BulletRigidBodyNode, AnimBundle, AnimChannelFixed< SwitchType >, AnimChannelMatrixFixed, AnimControl, AnimGroup, PartBundle, CollisionNode, CollisionTraverser, ButtonNode, EggNamedObject, AsyncTask, AsyncTaskChain, AsyncTaskManager, AdaptiveLru, Material, SimpleLru, HermiteCurve, RopeNode, SheetNode, Fog, GeomNode, LensNode, Loader, OccluderNode, PandaNode, PlaneNode, PolylightNode, PortalNode, CallbackNode, FadeLODNode, LODNode, ForceNode, Thread, MouseRecorder, SpeedTreeNode, STBasicTerrain, STTerrain, STTree, TextNode, MouseWatcherRegion, WebcamVideo, and MayaShader.
Definition at line 97 of file namable.I.
The documentation for this class was generated from the following files:
| | |