// // MPT_DataRecorder.h // AUCoderDemo // // Created by Andrew Salamon on 11/8/06. // Copyright 2006 Machine Perception Laboratory, University of California San Diego. All rights reserved. // #import @class MPT_CERT; @class MPT_PluginController; @class MPT_FaceView; /*** RImage file type. * This is one possible value for the patchFormat member. * Other possibile values are the same as the NSBitmapImageFileType enum in NSBitmapImageRep.h */ extern const int MPT_RImageFileType; @interface MPT_DataRecorder : NSObject { IBOutlet NSWindow *dataWindow; IBOutlet NSTextView *dataTextView; IBOutlet NSButton *recordButton; IBOutlet MPT_FaceView *imageView; BOOL recording; NSMutableArray *recordedData; BOOL recordTabbedData; ///< Only output tab delimited numeric data (except the first line or two, which will contain field names). NSDictionary *dataViewAttributes; NSString *dataPath; NSFileHandle *dataFileHandle; BOOL savingPatches; NSString *patchDirectory; int patchFormat; NSString *formatExtension; MPT_CERT *cert; MPT_PluginController *pluginController; } - (id)initWithCERT:(MPT_CERT *)_cert; - (IBAction)saveDataWindow:(id)sender; - (IBAction)clearDataWindow:(id)sender; - (IBAction)toggleRecording:(id)sender; - (IBAction)chooseDataFile:(id)sender; - (BOOL)recordTabbedData; - (void)setRecordTabbedData:(BOOL)value; - (NSString *)dataPath; - (void)setDataPath:(NSString *)value; - (NSString *)dataPathFilename; - (BOOL)viewHasData; - (void)recordDataPoint; - (void)startRecording; - (void)stopRecording; - (MPT_CERT *)cert; - (void)setCert:(MPT_CERT *)value; @end @interface MPT_DataRecorder( MPTFacePatches ) - (BOOL)savingPatches; - (void)setSavingPatches:(BOOL)value; - (NSString *)patchDirectory; - (void)setPatchDirectory:(NSString *)value; - (IBAction)choosePatchDirectory:(id)sender; - (void)savePatch; - (int)patchFormat; - (void)setPatchFormat:(int)value; @end