Panda3D
eggToSomething.h
1 // Filename: eggToSomething.h
2 // Created by: drose (15Feb00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef EGGTOSOMETHING_H
16 #define EGGTOSOMETHING_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "eggConverter.h"
21 #include "distanceUnit.h"
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : EggToSomething
25 // Description : This is the general base class for a file-converter
26 // program that reads some model file format and
27 // generates an egg file.
28 ////////////////////////////////////////////////////////////////////
29 class EggToSomething : public EggConverter {
30 public:
31  EggToSomething(const string &format_name,
32  const string &preferred_extension = string(),
33  bool allow_last_param = true,
34  bool allow_stdout = true);
35 
36  void add_units_options();
37 
38 protected:
39  void apply_units_scale(EggData *data);
40  virtual void pre_process_egg_file();
41  virtual bool handle_args(Args &args);
42 
43  DistanceUnit _input_units;
44  DistanceUnit _output_units;
45 };
46 
47 #endif
48 
49 
This is the primary interface into all the egg data, and the root of the egg file structure...
Definition: eggData.h:41
This is a general base class for programs that convert between egg files and some other format...
Definition: eggConverter.h:28
EggToSomething(const string &format_name, const string &preferred_extension=string(), bool allow_last_param=true, bool allow_stdout=true)
The first parameter to the constructor should be the one-word name of the file format that is to be r...
This is the general base class for a file-converter program that reads some model file format and gen...
void add_units_options()
Adds -ui and -uo as valid options for this program.