Panda3D
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ImageFilter Class Reference

This is the base class for a program that reads an image file, operates on it, and writes another image file out. More...

#include "imageFilter.h"

Inheritance diagram for ImageFilter:
ImageReader ImageWriter ImageBase ImageBase WithOutputFile ProgramBase ProgramBase ImageFixHiddenColor ImageResize ImageTrans

Public Member Functions

 ImageFilter (bool allow_last_param)
 
- Public Member Functions inherited from ProgramBase
 ProgramBase (const std::string &name=std::string())
 
std::string get_exec_command () const
 Returns the command that invoked this program, as a shell-friendly string, suitable for pasting into the comments of output files.
 
virtual void parse_command_line (int argc, char **argv)
 Dispatches on each of the options on the command line, and passes the remaining parameters to handle_args().
 
void show_description ()
 Writes the program description to stderr.
 
void show_options ()
 Describes each of the available options to stderr.
 
void show_text (const std::string &prefix, int indent_width, std::string text)
 Formats the indicated text and its prefix for output to stderr with the known _terminal_width.
 
void show_text (const std::string &text)
 Formats the indicated text to stderr with the known _terminal_width.
 
void show_usage ()
 Writes the usage line(s) to stderr.
 
void write_man_page (std::ostream &out)
 Generates a man page in nroff syntax based on the description and options.
 
- Public Member Functions inherited from ImageWriter
 ImageWriter (bool allow_last_param)
 Image-writing type programs *must* specify their output file using -o.
 
void write_image ()
 Writes the generated to the user's specified output filename.
 
void write_image (const PNMImage &image)
 Writes the generated to the user's specified output filename.
 
- Public Member Functions inherited from WithOutputFile
 WithOutputFile (bool allow_last_param, bool allow_stdout, bool binary_output)
 
void close_output ()
 Closes the output stream previously opened by get_output().
 
std::ostream & get_output ()
 Returns an output stream that corresponds to the user's intended egg file output–either stdout, or the named output file.
 
Filename get_output_filename () const
 If has_output_filename() returns true, this is the filename that the user specified.
 
bool has_output_filename () const
 Returns true if the user specified an output filename, false otherwise (e.g.
 

Additional Inherited Members

- Public Types inherited from ProgramBase
typedef pdeque< std::string > Args
 
- Public Attributes inherited from ProgramBase
Args _program_args
 
Filename _program_name
 

Detailed Description

This is the base class for a program that reads an image file, operates on it, and writes another image file out.

Definition at line 26 of file imageFilter.h.

Constructor & Destructor Documentation

◆ ImageFilter()

ImageFilter::ImageFilter ( bool allow_last_param)

Definition at line 19 of file imageFilter.cxx.


The documentation for this class was generated from the following files: