00001 // Filename: dxfPoints.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 DXFPOINTS_H 00016 #define DXFPOINTS_H 00017 00018 #include "pandatoolbase.h" 00019 #include "programBase.h" 00020 #include "withOutputFile.h" 00021 00022 #include "dxfFile.h" 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Class : DXFPoints 00026 // Description : A simple program to read a dxf file and list the 00027 // points contained within it to a text file. 00028 //////////////////////////////////////////////////////////////////// 00029 class DXFPoints : public ProgramBase, public WithOutputFile, public DXFFile { 00030 public: 00031 DXFPoints(); 00032 00033 void run(); 00034 00035 virtual void done_entity(); 00036 00037 protected: 00038 virtual bool handle_args(Args &args); 00039 00040 Filename _input_filename; 00041 }; 00042 00043 #endif 00044