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

pandatool/src/eggbase/eggBase.h

Go to the documentation of this file.
00001 // Filename: eggBase.h
00002 // Created by:  drose (14Feb00)
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 EGGBASE_H
00020 #define EGGBASE_H
00021 
00022 #include "pandatoolbase.h"
00023 
00024 #include "programBase.h"
00025 #include "coordinateSystem.h"
00026 #include "eggData.h"
00027 
00028 class EggReader;
00029 class EggWriter;
00030 class EggNode;
00031 class PathReplace;
00032 
00033 ////////////////////////////////////////////////////////////////////
00034 //       Class : EggBase
00035 // Description : This specialization of ProgramBase is intended for
00036 //               programs that read and/or write a single egg file.
00037 //               (See EggMultiBase for programs that operate on
00038 //               multiple egg files at once.)
00039 //
00040 //               This is just a base class; see EggReader, EggWriter,
00041 //               or EggFilter according to your particular I/O needs.
00042 ////////////////////////////////////////////////////////////////////
00043 class EggBase : public ProgramBase {
00044 public:
00045   EggBase();
00046 
00047   virtual EggReader *as_reader();
00048   virtual EggWriter *as_writer();
00049 
00050   static void convert_paths(EggNode *node, PathReplace *path_replace,
00051                             const DSearchPath &additional_path);
00052 
00053 protected:
00054   virtual bool post_command_line();
00055   void append_command_comment(EggData &_data);
00056   static void append_command_comment(EggData &_data, const string &comment);
00057 
00058 protected:
00059   bool _got_coordinate_system;
00060   CoordinateSystem _coordinate_system;
00061   EggData _data;
00062 };
00063 
00064 #endif
00065 
00066 

Generated on Fri May 2 03:18:34 2003 for Panda-Tool by doxygen1.3