dxfToEggConverter.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. #ifndef DXFTOEGGCONVERTER_H
  14. #define DXFTOEGGCONVERTER_H
  15. #include "pandatoolbase.h"
  16. #include "somethingToEggConverter.h"
  17. #include "dxfFile.h"
  18. /**
  19. * This class supervises the construction of an EggData structure from a DXF
  20. * file.
  21. */
  22. class DXFToEggConverter : public SomethingToEggConverter, public DXFFile {
  23. public:
  24. DXFToEggConverter();
  25. DXFToEggConverter(const DXFToEggConverter &copy);
  26. ~DXFToEggConverter();
  27. virtual SomethingToEggConverter *make_copy();
  28. virtual std::string get_name() const;
  29. virtual std::string get_extension() const;
  30. virtual bool supports_compressed() const;
  31. virtual bool convert_file(const Filename &filename);
  32. protected:
  33. virtual DXFLayer *new_layer(const std::string &name);
  34. virtual void done_entity();
  35. virtual void error();
  36. bool _error;
  37. };
  38. #endif