// // MPT_SimpleRemoteInput.h // MPT_SimpleRemoteInput // // Created by Andrew Salamon on 1/26/09. // Copyright 2009 Machine Perception Laboratory, University of California San Diego.. All rights reserved. // #import #import #import #import @interface MPT_SimpleRemoteInput : MPT_PluginBase < MPT_PluginProtocolResults > { IBOutlet NSView *prefView; unsigned short port; BOOL isRunning; NSFileHandle *portHandle; NSFileHandle *remoteFileHandle; NSMutableData *mdata; int state; int dataIndex; int imageIndex; int numBytes; MPT_RimageAdaptor *adaptor; id scheduler; unsigned int frame; // for debugging int packets; } - (IBAction)start:(id)sender; - (IBAction)stop:(id)sender; - (BOOL)isRunning; - (void)setIsRunning:(BOOL)value; - (unsigned short)port; - (void)setPort:(unsigned short)value; - (void)setScheduler:(id)_sched; @end