Panda3D
imageInfo.h
1 // Filename: imageInfo.h
2 // Created by: drose (13Mar03)
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 IMAGEINFO_H
16 #define IMAGEINFO_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "programBase.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : ImageInfo
24 // Description : This program reads the headers of a series of one or
25 // more images and reports their sizes to standard
26 // output.
27 ////////////////////////////////////////////////////////////////////
28 class ImageInfo : public ProgramBase {
29 public:
30  ImageInfo();
31 
32  void run();
33 
34 protected:
35  virtual bool handle_args(Args &args);
36 
37 private:
38  bool is_power_2(int value) const;
39 
40  Args _filenames;
41  bool _report_power_2;
42 };
43 
44 #endif
45 
This is intended to be the base class for most general-purpose utility programs in the PANDATOOL tree...
Definition: programBase.h:37
This program reads the headers of a series of one or more images and reports their sizes to standard ...
Definition: imageInfo.h:28