// // 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_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; unsigned int decimalPlaces; NSString *doubleFormat; MPT_PluginController *pluginController; NSMutableArray *resultsArray; NSArray *resultsToRemove; } - (id)init; - (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; - (void)saveDataModalToWindow:(NSWindow *)window; - (BOOL)viewHasData; - (void)recordDataPoint:(NSDictionary *)pluginResults; - (void)startRecording; - (void)stopRecording; /// The number of decimal places to use for floating point output. - (void)setDecimalPlaces:(unsigned int)value; - (unsigned int)decimalPlaces; @end