00001 // Filename: eggConverter.cxx 00002 // Created by: drose (15Feb00) 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 #include "eggConverter.h" 00020 00021 //////////////////////////////////////////////////////////////////// 00022 // Function: EggConverter::Constructor 00023 // Access: Public 00024 // Description: The first parameter to the constructor should be the 00025 // one-word name of the alien file format that is to be 00026 // read or written, for instance "OpenFlight" or 00027 // "Alias". It's just used in printing error messages 00028 // and such. The second parameter is the preferred 00029 // extension of files of this form, if any, with a 00030 // leading dot. 00031 //////////////////////////////////////////////////////////////////// 00032 EggConverter:: 00033 EggConverter(const string &format_name, 00034 const string &preferred_extension, 00035 bool allow_last_param, 00036 bool allow_stdout) : 00037 EggFilter(allow_last_param, allow_stdout), 00038 _format_name(format_name) 00039 { 00040 // Indicate the extension name we expect the user to supply for 00041 // output files. 00042 _preferred_extension = preferred_extension; 00043 }