1// 2// PRFilter.m 3// PRICE 4// 5// Created by Riccardo Mottola on 11/8/08. 6// Copyright (c) 2008-2011 Carduus. All rights reserved. 7// 8// This application is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 9// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 10 11#import "PRFilter.h" 12 13 14@implementation PRFilter 15 16/** 17 * override this method to decide wether or not the progress panel gets displayed 18 */ 19- (BOOL)displayProgress 20{ 21 return YES; 22} 23 24 25- (NSString *)actionName 26{ 27 return @"Filter"; 28} 29 30- (PRImage *)filterImage:(PRImage *)image with:(NSArray *)parameters progressPanel:(id <FilterProgress>)progressPanel 31{ 32 [NSException raise:@"PRFilter Abstract Method" format:@"filterImage: Subclasses should provide implementation"]; 33 return nil; 34} 35 36@end 37