Panda3D
dxfToEggConverter.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file dxfToEggConverter.h
10  * @author drose
11  * @date 2004-05-04
12  */
13 
14 #ifndef DXFTOEGGCONVERTER_H
15 #define DXFTOEGGCONVERTER_H
16 
17 #include "pandatoolbase.h"
18 
20 #include "dxfFile.h"
21 
22 /**
23  * This class supervises the construction of an EggData structure from a DXF
24  * file.
25  */
27 public:
31 
33 
34  virtual std::string get_name() const;
35  virtual std::string get_extension() const;
36  virtual bool supports_compressed() const;
37 
38  virtual bool convert_file(const Filename &filename);
39 
40 protected:
41  virtual DXFLayer *new_layer(const std::string &name);
42  virtual void done_entity();
43  virtual void error();
44 
45  bool _error;
46 };
47 
48 #endif
This represents a "layer" as read from the DXF file.
Definition: dxfLayer.h:28
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual std::string get_extension() const
Returns the common extension 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:35
virtual std::string get_name() const
Returns the English name of the file type this converter supports.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:39
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.