Panda3D
pfmBba.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 pfmBba.h
10  * @author drose
11  * @date 2011-03-02
12  */
13 
14 #ifndef PFMBBA_H
15 #define PFMBBA_H
16 
17 #include "pandatoolbase.h"
18 #include "programBase.h"
19 #include "filename.h"
20 #include "pvector.h"
21 #include "nodePath.h"
22 #include "luse.h"
23 
24 class PfmFile;
25 
26 /**
27  * Generates a bounding-box description of a pfm file.
28  */
29 class PfmBba : public ProgramBase {
30 public:
31  PfmBba();
32 
33  void run();
34  bool process_pfm(const Filename &input_filename, PfmFile &file);
35 
36 protected:
37  virtual bool handle_args(Args &args);
38 
39 private:
41  Filenames _input_filenames;
42 
43  bool _got_zero_special;
44  bool _got_output_filename;
45  Filename _output_filename;
46 };
47 
48 #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.
Generates a bounding-box description of a pfm file.
Definition: pfmBba.h:29
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:39
Defines a pfm file, a 2-d table of floating-point numbers, either 3-component or 1-component,...
Definition: pfmFile.h:31
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool process_pfm(const Filename &input_filename, PfmFile &file)
Handles a single pfm file.
Definition: pfmBba.cxx:62