Panda3D
|
This is an egg node that contains a filename. More...
#include "eggFilenameNode.h"
Classes | |
class | IndirectOrderByBasename |
Public Member Functions | |
EggFilenameNode (const string &node_name, const Filename &filename) | |
EggFilenameNode (const EggFilenameNode ©) | |
virtual TypeHandle | force_init_type () |
virtual string | get_default_extension () const |
Returns the default extension for this filename type. | |
const Filename & | get_filename () const |
Returns a nonmodifiable reference to the filename. | |
const Filename & | get_fullpath () const |
Returns the full pathname to the file, if it is known; otherwise, returns the same thing as get_filename(). | |
virtual TypeHandle | get_type () const |
EggFilenameNode & | operator= (const EggFilenameNode ©) |
void | set_filename (const Filename &filename) |
void | set_fullpath (const Filename &fullpath) |
Records the full pathname to the file, for the benefit of get_fullpath(). | |
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. | |
Protected Attributes | |
Filename | _filename |
Filename | _fullpath |
This is an egg node that contains a filename.
It references a physical file relative to the directory the egg file was loaded in. It is a base class for EggTexture and EggExternalReference.
Definition at line 30 of file eggFilenameNode.h.
string EggFilenameNode::get_default_extension | ( | ) | const [virtual] |
Returns the default extension for this filename type.
Reimplemented in EggExternalReference.
Definition at line 25 of file eggFilenameNode.cxx.
Referenced by EggGroupNode::resolve_filenames().
const Filename & EggFilenameNode::get_filename | ( | ) | const [inline] |
Returns a nonmodifiable reference to the filename.
Definition at line 70 of file eggFilenameNode.I.
Referenced by EggBase::convert_paths(), EggTextureCollection::find_filename(), EggGroupNode::force_filenames(), TextureReference::from_egg(), EggGroupNode::has_absolute_pathnames(), EggTexture::is_equivalent_to(), EggGroupNode::resolve_filenames(), XFileMaterial::set_from_egg(), EggTexture::sorts_less_than(), TextureReference::update_egg(), EggTexture::write(), and EggExternalReference::write().
const Filename & EggFilenameNode::get_fullpath | ( | ) | const [inline] |
Returns the full pathname to the file, if it is known; otherwise, returns the same thing as get_filename().
This function simply returns whatever was set by the last call to set_fullpath(). This string is not written to the egg file; its main purpose is to record the full path to a filename (for instance, a texture filename) if it is known, for egg structures that are generated in-memory and then immediately converted to a scene graph.
Definition at line 101 of file eggFilenameNode.I.
static void EggFilenameNode::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 EggNode.
Reimplemented in EggExternalReference, and EggTexture.
Definition at line 61 of file eggFilenameNode.h.
References EggNode::init_type().
Referenced by EggTexture::init_type(), and EggExternalReference::init_type().
void EggFilenameNode::set_fullpath | ( | const Filename & | fullpath | ) | [inline] |
Records the full pathname to the file, for the benefit of get_fullpath().
Definition at line 112 of file eggFilenameNode.I.
Referenced by EggBase::convert_paths().