1 //
2 //  PRCTraceEdges.h
3 //  PRICE
4 //
5 //  Created by Riccardo Mottola on Wed Jan 14 2004.
6 //  Copyright (c) 2004-2010 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 
12 // we encode the filter type in the tag of the NSMenuItem of the NSPopUpButton
13 // 1: gradient, pixel difference
14 // 2: gradient, separated pixel difference
15 // 3: gradient, Roberts
16 // 4: gradient, Prewitt
17 // 5: gradient, Sobel
18 // 6: gradient, Abdou, hx
19 // 7: Laplacian 1, 4 neighbors
20 // 8: Laplacian 2, 8 neighbors
21 // 9: Laplacian, Prewitt, method 1
22 
23 #import <AppKit/AppKit.h>
24 
25 #import "PRFilterController.h"
26 
27 @interface PRCTraceEdges : PRFilterController
28 {
29     IBOutlet NSWindow *edgeWindow;
30     IBOutlet NSButton *thresholdCheck;
31     IBOutlet NSSlider *thresholdSlider;
32     IBOutlet NSButton *zeroCrossCheck;
33     IBOutlet NSTextField *thresholdField;
34     IBOutlet NSPopUpButton *filterType;
35     BOOL thresholdOn;
36     float thresholdLevel;
37 }
38 
39 - (IBAction)thresholdToggle:(id)sender;
40 - (IBAction)changeThreshold:(id)sender;
41 - (IBAction)filterTypeToggle:(id)sender;
42 
43 @end
44