Panda3D

Loading...
Searching...
No Matches
imageFilter.cxx
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 imageFilter.cxx
10 * @author drose
11 * @date 2000-06-19
12 */
13
14#include "imageFilter.h"
15
16/**
17 *
18 */
19ImageFilter::
20ImageFilter(bool allow_last_param) :
21 ImageWriter(allow_last_param)
22{
23 clear_runlines();
24 if (_allow_last_param) {
25 add_runline("[opts] inputimage outputimage");
26 }
27 add_runline("[opts] -o outputimage inputimage");
28}
29
30/**
31 * Does something with the additional arguments on the command line (after all
32 * the -options have been parsed). Returns true if the arguments are good,
33 * false otherwise.
34 */
35 bool ImageFilter::
36handle_args(ProgramBase::Args &args) {
37 if (!check_last_arg(args, 1)) {
38 return false;
39 }
40
41 return ImageReader::handle_args(args);
42}
ImageWriter
This is the base class for a program that generates an image file output, but doesn't read any for in...
Definition imageWriter.h:27
imageFilter.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.