// // MPT_RimageAdaptor.h // AUCoderDemo // // Created by Andrew Salamon on 9/5/06. // Copyright (c) 2006 Machine Perception Laboratory. University of California San Diego. // All rights reserved. #import /** Objective-C wrapper for RImage's. * This class lets up pass RImages around in Objective-C code without needing to convert everything * into Objective-C++. Only those classes that need to work with the RImage itself still need to be * Objective-C++. * The RImage is owned by the adaptor and will be deleted when the adaptor is dealloced. */ @interface MPT_RimageAdaptor : NSObject { void *rimage; } + (MPT_RimageAdaptor *)adaptorWithRimage:(void *)newRimage; - (id)initWithRimage:(void *)neweRimage; - (id)initWithWidth:(float)width height:(float)height; - (void)setRimage:(void *)newRimage; - (void *)rimage; - (NSImage *)image; ///< An autoreleased NSImage created from the rimage. - (float *)array; ///< A pointer to the RImage's array. Use with care! @end