Panda3D
|
00001 // Filename: DXFToEggConverter.h 00002 // Created by: drose (04May04) 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 DXFTOEGGCONVERTER_H 00016 #define DXFTOEGGCONVERTER_H 00017 00018 #include "pandatoolbase.h" 00019 00020 #include "somethingToEggConverter.h" 00021 #include "dxfFile.h" 00022 00023 //////////////////////////////////////////////////////////////////// 00024 // Class : DXFToEggConverter 00025 // Description : This class supervises the construction of an EggData 00026 // structure from a DXF file. 00027 //////////////////////////////////////////////////////////////////// 00028 class DXFToEggConverter : public SomethingToEggConverter, public DXFFile { 00029 public: 00030 DXFToEggConverter(); 00031 DXFToEggConverter(const DXFToEggConverter ©); 00032 ~DXFToEggConverter(); 00033 00034 virtual SomethingToEggConverter *make_copy(); 00035 00036 virtual string get_name() const; 00037 virtual string get_extension() const; 00038 virtual bool supports_compressed() const; 00039 00040 virtual bool convert_file(const Filename &filename); 00041 00042 protected: 00043 virtual DXFLayer *new_layer(const string &name); 00044 virtual void done_entity(); 00045 virtual void error(); 00046 00047 bool _error; 00048 }; 00049 00050 #endif 00051 00052