Panda3D
Classes | Public Member Functions | Static Public Member Functions | Protected Attributes

EggFilenameNode Class Reference

This is an egg node that contains a filename. More...

#include "eggFilenameNode.h"

Inheritance diagram for EggFilenameNode:
EggNode EggNamedObject EggObject Namable TypedReferenceCount MemoryBase TypedObject ReferenceCount MemoryBase MemoryBase EggExternalReference EggTexture

List of all members.

Classes

class  IndirectOrderByBasename

Public Member Functions

 EggFilenameNode (const string &node_name, const Filename &filename)
 EggFilenameNode (const EggFilenameNode &copy)
virtual TypeHandle force_init_type ()
virtual string get_default_extension () const
 Returns the default extension for this filename type.
const Filenameget_filename () const
 Returns a nonmodifiable reference to the filename.
const Filenameget_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
EggFilenameNodeoperator= (const EggFilenameNode &copy)
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

Detailed Description

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.


Member Function Documentation

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]
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().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations