// // 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; @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; 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