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

pandatool/src/eggbase/eggMultiBase.h

Go to the documentation of this file.
00001 // Filename: eggMultiBase.h
00002 // Created by:  drose (02Nov00)
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 EGGMULTIBASE_H
00020 #define EGGMULTIBASE_H
00021 
00022 #include <pandatoolbase.h>
00023 
00024 #include <programBase.h>
00025 #include <coordinateSystem.h>
00026 #include <eggData.h>
00027 #include <pointerTo.h>
00028 
00029 class Filename;
00030 
00031 ////////////////////////////////////////////////////////////////////
00032 //       Class : EggMultiBase
00033 // Description : This specialization of ProgramBase is intended for
00034 //               programs that read and/or write multiple egg files.
00035 //
00036 //               See also EggMultiFilter, for a class that also knows
00037 //               how to read a bunch of egg files in and write them
00038 //               out again.
00039 ////////////////////////////////////////////////////////////////////
00040 class EggMultiBase : public ProgramBase {
00041 public:
00042   EggMultiBase();
00043 
00044 protected:
00045   void append_command_comment(EggData &_data);
00046   static void append_command_comment(EggData &_data, const string &comment);
00047 
00048   virtual PT(EggData) read_egg(const Filename &filename);
00049 
00050 protected:
00051   bool _got_coordinate_system;
00052   CoordinateSystem _coordinate_system;
00053 
00054   typedef pvector<PT(EggData)> Eggs;
00055   Eggs _eggs;
00056 
00057   bool _force_complete;
00058 };
00059 
00060 #endif
00061 
00062 

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