Panda3D
dxfToEggConverter.h
1 // Filename: DXFToEggConverter.h
2 // Created by: drose (04May04)
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 DXFTOEGGCONVERTER_H
16 #define DXFTOEGGCONVERTER_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "somethingToEggConverter.h"
21 #include "dxfFile.h"
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : DXFToEggConverter
25 // Description : This class supervises the construction of an EggData
26 // structure from a DXF file.
27 ////////////////////////////////////////////////////////////////////
29 public:
33 
35 
36  virtual string get_name() const;
37  virtual string get_extension() const;
38  virtual bool supports_compressed() const;
39 
40  virtual bool convert_file(const Filename &filename);
41 
42 protected:
43  virtual DXFLayer *new_layer(const string &name);
44  virtual void done_entity();
45  virtual void error();
46 
47  bool _error;
48 };
49 
50 #endif
51 
52 
This represents a "layer" as read from the DXF file.
Definition: dxfLayer.h:31
virtual string get_name() const
Returns the English name of the file type this converter supports.
virtual bool supports_compressed() const
Returns true if this file type can transparently load compressed files (with a .pz extension)...
A generic DXF-reading class.
Definition: dxfFile.h:39
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44
virtual string get_extension() const
Returns the common extension of the file type this converter supports.
virtual bool convert_file(const Filename &filename)
Handles the reading of the input file and converting it to egg.
virtual SomethingToEggConverter * make_copy()
Allocates and returns a new copy of the converter.
This is a base class for a family of converter classes that manage a conversion from some file type t...
This class supervises the construction of an EggData structure from a DXF file.