// // 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; @class MPT_Scheduler; @class MPT_SourceLoader; @class MPT_Distributed; @interface MPT_AUAppDelegate : NSObject { IBOutlet NSWindow *window; IBOutlet NSWindow *dataWindow; IBOutlet MPT_FaceView *imageView; IBOutlet NSTextField *fileNameField; IBOutlet NSTextField *frameRateField; IBOutlet NSProgressIndicator *progress; IBOutlet NSProgressIndicator *dataLoading; IBOutlet NSTextField *dataLoadingMessage; IBOutlet MPT_AutoTileView *tileView; IBOutlet MPT_DataRecorder *dataRecorder; IBOutlet MPT_SplitViewConstrainer *splitViewDelegate; IBOutlet NSView *openPanelAccessory; IBOutlet NSMenu *pluginMenu; IBOutlet NSMenuItem *showDataWindowItem; IBOutlet NSMenuItem *helpMenuItem; MPT_PluginController *pluginController; MPT_Preferences *preferences; MPT_CERT *cert; MPT_Scheduler *scheduler; BOOL videoTimer; TestController *videoController; BOOL loading; // Set to true if we need to interrupt a long process (movie or folder) BOOL interrupt; BOOL isProcessing; MPT_SourceLoader *sourceLoader; BOOL sourceLoaderFinished; BOOL scheduleIsEmpty; NSDate *batchStart; int videoBatchFrame; // 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; unsigned int frameNum; unsigned int nextFrame; NSMutableArray *resultsBuffer; MPT_Distributed *doClient; } - (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; - (IBAction)showDataWindow:(id)sender; - (IBAction)saveDataWindow:(id)sender; //- (IBAction)setDO:(id)sender; - (NSWindow *)window; - (BOOL)displayGray; - (float)videoWidth; - (void)setVideoWidth:(float)value; - (float)videoHeight; - (void)setVideoHeight:(float)value; - (BOOL)isProcessing; - (BOOL)videoTimer; - (void)setVideoTimer:(BOOL)value; - (MPT_CERT *)cert; - (MPT_FaceView *)faceView; - (void)updateViewsWith:(NSDictionary *)pluginResults; @end