00001 #import <Cocoa/Cocoa.h>
00002
00003 #import "FlowGeometry.h"
00004
00010 @interface FlowChannel : NSObject {
00011
00012 FlowGeometry* flowGeometryPointer;
00013
00014 NSString* name;
00015
00016 float minimum;
00017 float maximum;
00018
00019 int numTimesteps;
00020 int selectedTimestep;
00021
00022 NSMutableArray* timesteps;
00023
00024 NSArray* histogram;
00025
00026 float originalMinimum;
00027 float originalMaximum;
00028
00029 }
00030
00031 + (FlowChannel*) createWithFlowGeometry:(FlowGeometry*)flowGeometry;
00032 - (id) initWithFlowGeometry:(FlowGeometry*)flowGeometry;
00033
00034 - (void) normalize;
00035 - (void) normalize: (float) maximumValue;
00036
00037 - (void) addTimestep:(float*)rawdata numChannels:(int)numChannels offset:(int)offset;
00038
00039 - (float) getMinimum;
00040 - (float) getMaximum;
00041 - (float) getRange;
00042
00043 @property int selectedTimestep;
00044
00045 - (int) getTimesteps;
00046
00047 - (float*) getData: (int) index;
00048
00049 - (float) getDataAtIndex: (int)index;
00050 - (float) getInterpolatedDataOfIndices: (int*)index WithWeights: (float*)weight;
00051
00052 @property (retain) NSString* name;
00053
00054 @property (readonly) NSArray* histogram;
00055 - (void) createHistogram;
00056
00057 @property (readonly) float originalMinimum;
00058 @property (readonly) float originalMaximum;
00059
00060
00061 @end