Panda3D
imageInfo.h
Go to the documentation of this file.
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 imageInfo.h
10  * @author drose
11  * @date 2003-03-13
12  */
13 
14 #ifndef IMAGEINFO_H
15 #define IMAGEINFO_H
16 
17 #include "pandatoolbase.h"
18 
19 #include "programBase.h"
20 
21 /**
22  * This program reads the headers of a series of one or more images and
23  * reports their sizes to standard output.
24  */
25 class ImageInfo : public ProgramBase {
26 public:
27  ImageInfo();
28 
29  void run();
30 
31 protected:
32  virtual bool handle_args(Args &args);
33 
34 private:
35  bool is_power_2(int value) const;
36 
37  Args _filenames;
38  bool _report_power_2;
39 };
40 
41 #endif
This is intended to be the base class for most general-purpose utility programs in the PANDATOOL tree...
Definition: programBase.h:34
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This program reads the headers of a series of one or more images and reports their sizes to standard ...
Definition: imageInfo.h:25