Panda3D
|
00001 // Filename: eggToDXF.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 EGGTODXF_H 00016 #define EGGTODXF_H 00017 00018 #include "pandatoolbase.h" 00019 00020 #include "eggToSomething.h" 00021 #include "eggToDXFLayer.h" 00022 00023 class EggGroupNode; 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Class : EggToDXF 00027 // Description : A program to read an egg file and write a DXF file. 00028 //////////////////////////////////////////////////////////////////// 00029 class EggToDXF : public EggToSomething { 00030 public: 00031 EggToDXF(); 00032 00033 void run(); 00034 00035 bool _use_polyline; 00036 00037 private: 00038 void get_layers(EggGroupNode *group); 00039 void write_tables(ostream &out); 00040 void write_entities(ostream &out); 00041 00042 EggToDXFLayers _layers; 00043 }; 00044 00045 #endif 00046