Panda3D
 All Classes Functions Variables Enumerations
dxfPoints.h
1 // Filename: dxfPoints.h
2 // Created by: drose (04May04)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef DXFPOINTS_H
16 #define DXFPOINTS_H
17 
18 #include "pandatoolbase.h"
19 #include "programBase.h"
20 #include "withOutputFile.h"
21 
22 #include "dxfFile.h"
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : DXFPoints
26 // Description : A simple program to read a dxf file and list the
27 // points contained within it to a text file.
28 ////////////////////////////////////////////////////////////////////
29 class DXFPoints : public ProgramBase, public WithOutputFile, public DXFFile {
30 public:
31  DXFPoints();
32 
33  void run();
34 
35  virtual void done_entity();
36 
37 protected:
38  virtual bool handle_args(Args &args);
39 
40  Filename _input_filename;
41 };
42 
43 #endif
44 
This is intended to be the base class for most general-purpose utility programs in the PANDATOOL tree...
Definition: programBase.h:37
virtual void done_entity()
This is inherited from DXFFile, and gets called as each entity (face, line, whatever) has finished pr...
Definition: dxfPoints.cxx:63
A simple program to read a dxf file and list the points contained within it to a text file...
Definition: dxfPoints.h:29
A generic DXF-reading class.
Definition: dxfFile.h:39
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44
This is the bare functionality (intended to be inherited from along with ProgramBase or some derivati...