00001 /****************************************************************************** 00002 LEGAL: 00003 This framework and all source code supplied with it, except where specified, 00004 are Copyright Stephen Brandon and the University of Glasgow, 1999. You are free 00005 to use the source code for any purpose, including commercial applications, as 00006 long as you reproduce this notice on all such software. 00007 00008 Software production is complex and we cannot warrant that the Software will be 00009 error free. Further, we will not be liable to you if the Software is not fit 00010 for the purpose for which you acquired it, or of satisfactory quality. 00011 00012 WE SPECIFICALLY EXCLUDE TO THE FULLEST EXTENT PERMITTED BY THE COURTS ALL 00013 WARRANTIES IMPLIED BY LAW INCLUDING (BUT NOT LIMITED TO) IMPLIED WARRANTIES 00014 OF QUALITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF THIRD 00015 PARTIES RIGHTS. 00016 00017 If a court finds that we are liable for death or personal injury caused by our 00018 negligence our liability shall be unlimited. 00019 00020 WE SHALL HAVE NO LIABILITY TO YOU FOR LOSS OF PROFITS, LOSS OF CONTRACTS, 00021 LOSS OF DATA, LOSS OF GOODWILL, OR WORK STOPPAGE, WHICH MAY ARISE FROM YOUR 00022 POSSESSION OR USE OF THE SOFTWARE OR ASSOCIATED DOCUMENTATION. WE SHALL HAVE 00023 NO LIABILITY IN RESPECT OF ANY USE OF THE SOFTWARE OR THE ASSOCIATED 00024 DOCUMENTATION WHERE SUCH USE IS NOT IN COMPLIANCE WITH THE TERMS AND CONDITIONS 00025 OF THIS AGREEMENT. 00026 00027 ******************************************************************************/ 00028 00029 #ifndef __SNDDISPLAYDATA_H__ 00030 #define __SNDDISPLAYDATA_H__ 00031 00032 #import <AppKit/AppKit.h> 00033 00041 @interface SndDisplayData:NSObject 00042 { 00044 int pixelCount; 00046 int startPixel; 00048 float *maxArray; 00050 float *minArray; 00051 } 00054 - (int) pixelCount; 00057 - (int)startPixel; 00060 - (int) endPixel; 00063 - (float*) pixelDataMax; 00066 - (float*) pixelDataMin; 00067 00070 - setPixelDataMax:(float *)data min:(float *)data2 count:(int)count start:(int)start; 00073 - setPixelDataMax:(float *)data count:(int)count start:(int)start; 00076 - setPixelDataMin:(float *)data count:(int)count start:(int)start; 00077 00080 - addPixelDataMax:(float *)data min:(float *)data2 count:(int)count from:(int)from; 00083 - addPixelDataMax:(float *)data count:(int)count from:(int)from; 00086 - addPixelDataMin:(float *)data count:(int)count from:(int)from; 00087 00090 - addDataFrom:(SndDisplayData *)anObject; 00093 - (BOOL)truncateToLastPixel:(int)pixel; 00096 - (BOOL)truncateToFirstPixel:(int)pixel; 00097 @end 00098 00099 #endif