Panda3D
|
This is a fairly low-level base class--any egg object that has a name. More...
#include "eggNamedObject.h"
Public Member Functions | |
EggNamedObject (const string &name="") | |
EggNamedObject (const EggNamedObject ©) | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
EggNamedObject & | operator= (const EggNamedObject ©) |
void | output (ostream &out) const |
Outputs the Namable. | |
void | write_header (ostream &out, int indent_level, const char *egg_keyword) const |
Writes the first line of the egg object, e.g. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. |
This is a fairly low-level base class--any egg object that has a name.
Definition at line 29 of file eggNamedObject.h.
static void EggNamedObject::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from EggObject.
Reimplemented in EggGroup, EggTexture, EggGroupNode, EggVertexPool, EggNode, EggXfmSAnim, EggMaterial, EggData, EggVertexUV, EggXfmAnimData, EggAnimData, EggTable, EggFilenameNode, EggComment, EggVertexAux, EggAnimPreload, EggCoordinateSystem, EggBin, EggSAnimData, and EggExternalReference.
Definition at line 45 of file eggNamedObject.h.
References EggObject::init_type().
Referenced by EggVertexAux::init_type(), EggVertexUV::init_type(), and EggNode::init_type().
void EggNamedObject::output | ( | ostream & | out | ) | const |
Outputs the Namable.
This function simply writes the name to the output stream; most Namable derivatives will probably redefine this.
Reimplemented from Namable.
Definition at line 28 of file eggNamedObject.cxx.
References Namable::has_name().
void EggNamedObject::write_header | ( | ostream & | out, |
int | indent_level, | ||
const char * | egg_keyword | ||
) | const |
Writes the first line of the egg object, e.g.
"<Group> group_name {" or some such. It automatically enquotes the name if it contains any special characters. egg_keyword is the keyword that begins the line, e.g. "<Group>".
Definition at line 45 of file eggNamedObject.cxx.
References Namable::has_name().
Referenced by EggExternalReference::write(), EggMaterial::write(), EggLine::write(), EggTriangleFan::write(), EggTriangleStrip::write(), EggSAnimData::write(), EggTexture::write(), EggAnimPreload::write(), EggPoint::write(), EggComment::write(), EggTable::write(), EggNurbsCurve::write(), EggXfmAnimData::write(), EggXfmSAnim::write(), EggNurbsSurface::write(), EggVertexPool::write(), and EggGroup::write().