Panda3D
 All Classes Functions Variables Enumerations
imageWriter.h
1 // Filename: imageWriter.h
2 // Created by: drose (19Jun00)
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 IMAGEWRITER_H
16 #define IMAGEWRITER_H
17 
18 #include "pandatoolbase.h"
19 #include "imageBase.h"
20 #include "withOutputFile.h"
21 
22 #include "filename.h"
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : ImageWriter
26 // Description : This is the base class for a program that generates
27 // an image file output, but doesn't read any for input.
28 ////////////////////////////////////////////////////////////////////
29 class ImageWriter : virtual public ImageBase, public WithOutputFile {
30 public:
31  ImageWriter(bool allow_last_param);
32 
33  INLINE void write_image();
34  void write_image(const PNMImage &image);
35 
36 protected:
37  virtual bool handle_args(Args &args);
38 };
39 
40 #include "imageWriter.I"
41 
42 #endif
43 
44 
The name of this class derives from the fact that we originally implemented it as a layer on top of t...
Definition: pnmImage.h:68
This specialization of ProgramBase is intended for programs that read and/or write a single image fil...
Definition: imageBase.h:34
This is the bare functionality (intended to be inherited from along with ProgramBase or some derivati...
This is the base class for a program that generates an image file output, but doesn't read any for in...
Definition: imageWriter.h:29
ImageWriter(bool allow_last_param)
Image-writing type programs *must* specify their output file using -o.
Definition: imageWriter.cxx:24
void write_image()
Writes the generated to the user's specified output filename.
Definition: imageWriter.I:23