Update license to GNU GPL version 3.
[Ale.git] / d2 / filter / filter.h
blobdfb68a22bd90895c2b92f91fc1bfcf51efd7c72f
1 // Copyright 2004 David Hilvert <dhilvert@auricle.dyndns.org>,
2 // <dhilvert@ugcs.caltech.edu>
4 /* This file is part of the Anti-Lamenessing Engine.
6 The Anti-Lamenessing Engine is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 The Anti-Lamenessing Engine is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with the Anti-Lamenessing Engine; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __filterclass_h__
22 #define __filterclass_h__
25 * A superclass for all filtering classes.
28 class filter {
29 public:
32 * Size of filter support, in number of half-cycles to each side of the
33 * filter center.
35 virtual ale_real support() const = 0;
38 * Response of filter at point p
40 virtual ale_real response(point p) const = 0;
42 virtual int equals(const filter *f) const = 0;
44 virtual ~filter(){
47 #endif