Panda3D

eggToSomething.h

00001 // Filename: eggToSomething.h
00002 // Created by:  drose (15Feb00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef EGGTOSOMETHING_H
00016 #define EGGTOSOMETHING_H
00017 
00018 #include "pandatoolbase.h"
00019 
00020 #include "eggConverter.h"
00021 #include "distanceUnit.h"
00022 
00023 ////////////////////////////////////////////////////////////////////
00024 //       Class : EggToSomething
00025 // Description : This is the general base class for a file-converter
00026 //               program that reads some model file format and
00027 //               generates an egg file.
00028 ////////////////////////////////////////////////////////////////////
00029 class EggToSomething : public EggConverter {
00030 public:
00031   EggToSomething(const string &format_name,
00032                  const string &preferred_extension = string(),
00033                  bool allow_last_param = true,
00034                  bool allow_stdout = true);
00035 
00036   void add_units_options();
00037 
00038 protected:
00039   void apply_units_scale(EggData *data);
00040   virtual void pre_process_egg_file();
00041   virtual bool handle_args(Args &args);
00042 
00043   DistanceUnit _input_units;
00044   DistanceUnit _output_units;
00045 };
00046 
00047 #endif
00048 
00049 
 All Classes Functions Variables Enumerations