Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/egg/eggFilenameNode.h

Go to the documentation of this file.
00001 // Filename: eggFilenameNode.h
00002 // Created by:  drose (11Feb99)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef EGGFILENAMENODE_H
00020 #define EGGFILENAMENODE_H
00021 
00022 #include <pandabase.h>
00023 
00024 #include "eggNode.h"
00025 #include <filename.h>
00026 
00027 ////////////////////////////////////////////////////////////////////
00028 //       Class : EggFilenameNode
00029 // Description : This is an egg node that contains a filename.  It
00030 //               references a physical file relative to the directory
00031 //               the egg file was loaded in.  It is a base class for
00032 //               EggTexture and EggExternalReference.
00033 ////////////////////////////////////////////////////////////////////
00034 class EXPCL_PANDAEGG EggFilenameNode : public EggNode {
00035 public:
00036   INLINE EggFilenameNode();
00037   INLINE EggFilenameNode(const string &node_name, const Filename &filename);
00038   INLINE EggFilenameNode(const EggFilenameNode &copy);
00039   INLINE EggFilenameNode &operator = (const EggFilenameNode &copy);
00040 
00041   virtual string get_default_extension() const;
00042 
00043   INLINE const Filename &get_filename() const;
00044   INLINE void set_filename(const Filename &filename);
00045 
00046   INLINE const Filename &get_fullpath() const;
00047   INLINE void set_fullpath(const Filename &fullpath);
00048 
00049 private:
00050   Filename _filename;
00051   Filename _fullpath;
00052 
00053 public:
00054   static TypeHandle get_class_type() {
00055     return _type_handle;
00056   }
00057   static void init_type() {
00058     EggNode::init_type();
00059     register_type(_type_handle, "EggFilenameNode",
00060                   EggNode::get_class_type());
00061   }
00062   virtual TypeHandle get_type() const {
00063     return get_class_type();
00064   }
00065   virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00066 
00067 private:
00068   static TypeHandle _type_handle;
00069 };
00070 
00071 #include "eggFilenameNode.I"
00072 
00073 #endif

Generated on Fri May 2 00:37:35 2003 for Panda by doxygen1.3