// // MPT_AUAppDelegate.h // AUCoderDemo // // Created by Andrew Salamon on 5/31/06. // Copyright 2006 Machine Perception Laboratory, University of California San Diego. All rights reserved. // #import @class MPT_FaceView; @class MPT_CERT; @class TestController; @class MPT_PluginController; @class MPT_Preferences; @class MPT_AutoTileView; @class MPT_DataRecorder; @class MPT_SplitViewConstrainer; @interface MPT_AUAppDelegate : NSObject { IBOutlet NSWindow *window; IBOutlet NSWindow *dataWindow; IBOutlet MPT_FaceView *imageView; IBOutlet NSTextField *fileNameField; IBOutlet NSTextField *leftField; IBOutlet NSTextField *rightField; IBOutlet NSTextField *frameRateField; IBOutlet NSProgressIndicator *progress; IBOutlet NSProgressIndicator *dataLoading; IBOutlet MPT_AutoTileView *tileView; IBOutlet MPT_DataRecorder *dataRecorder; IBOutlet MPT_SplitViewConstrainer *splitViewDelegate; IBOutlet NSView *openPanelAccessory; MPT_PluginController *pluginController; MPT_Preferences *preferences; BOOL videoTimer; MPT_CERT *cert; TestController *videoController; BOOL loading; BOOL captureFaces; unsigned int nextFace; NSDate *lastCapture; // Set to true if we need to interrupt a long process (movie or folder) BOOL interrupt; // Keep track of these when processing a movie NSString *moviePath; QTMovie *movie; QTTime endTime; unsigned int movieFrame; // Keep track of images in a folder while processing them NSString *folderPath; NSArray *imagesInFolder; NSEnumerator *imageFolderEnum; NSArray *sourcePaths; NSEnumerator *sourceEnum; // Arrays of file types used in the Open panel, and possibly also to filter files returned if the user chooses a folder. NSArray *rimageTypes; NSArray *movieTypes; NSArray *imageTypes; NSArray *allTypes; } - (IBAction)chooseSource:(id)sender; - (IBAction)interrupt:(id)sender; - (IBAction)startVideo:(id)sender; - (IBAction)stopVideo:(id)sender; // Not currently used by the UI - (IBAction)imageChanged:(id)sender; - (IBAction)displayAboutPanel:(id)sender; - (IBAction)showPreferences:(id)sender; - (NSWindow *)window; - (BOOL)findFaces; - (void)setFindFaces:(BOOL)value; - (BOOL)displayGray; - (BOOL)doFilters; - (void)setDoFilters:(BOOL)value; - (BOOL)linearCombo; - (void)setLinearCombo:(BOOL)value; - (BOOL)captureFaces; - (NSDate *)lastCapture; - (void)setLastCapture:(NSDate *)value; - (BOOL)multipleRotations; - (float)videoWidth; - (void)setVideoWidth:(float)value; - (float)videoHeight; - (void)setVideoHeight:(float)value; - (float)eyefinderOffset; - (void)setEyefinderOffset:(float)value; - (float)eyefinderDropoff; - (void)setEyefinderDropoff:(float)value; - (IBAction)restoreEyefinderDefaults:(id)sender; - (BOOL)isProcessing; - (MPT_CERT *)cert; @end