-
Notifications
You must be signed in to change notification settings - Fork 0
/
SCFilter.h
48 lines (32 loc) · 1.06 KB
/
SCFilter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// SCFilter.h
// CoreImageShop
//
// Created by Simon CORSIN on 16/05/14.
//
//
#import <Foundation/Foundation.h>
#if TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE
#import <CoreImage/CoreImage.h>
#else
#import <QuartzCore/QuartzCore.h>
#endif
@class SCFilter;
@protocol SCFilterDelegate <NSObject>
- (void)filter:(SCFilter *)filter didChangeParameter:(NSString *)parameterKey;
- (void)filterDidResetToDefaults:(SCFilter *)filter;
@end
@interface SCFilter : NSObject<NSCoding>
@property (weak, nonatomic) id<SCFilterDelegate> delegate;
@property (readonly, nonatomic) NSString *name;
@property (readonly, nonatomic) NSString *displayName;
@property (readonly, nonatomic) CIFilter *coreImageFilter;
@property (assign, nonatomic) BOOL enabled;
+ (SCFilter *)filterWithCIFilter:(CIFilter *)filterDescription;
+ (SCFilter *)filterWithName:(NSString *)name;
- (id)initWithCIFilter:(CIFilter *)filter;
- (id)initWithName:(NSString *)name;
- (id)parameterValueForKey:(NSString *)key;
- (void)setParameterValue:(id)value forKey:(NSString *)key;
- (void)resetToDefaults;
@end