FlowChannel.h

Go to the documentation of this file.
00001 #ifndef FLOWCHANNEL_H
00002 #define FLOWCHANNEL_H
00003 
00004 #include "FlowGeometry.h"
00005 #include <iostream>
00006 #define histogramm_resolution 256
00007 
00008 
00011 class FlowChannel{
00012 private:   
00014         float* values;
00016         int* histogramm;
00018         float minimum;
00020         float maximum;
00021 public:
00023         FlowGeometry* geom; 
00024         FlowChannel(FlowGeometry* g);
00025         ~FlowChannel();
00027         void setValue(int vtxID, float val);
00029 
00035         void copyValues(float* rawdata, int vtxSize, int offset);
00036         
00038         float getValue(vec3 pos);
00040         float getValue(int vtxID);
00042         float getValueNormPos(vec3 pos);
00044         float getValueNormPos(float x, float y);
00045         
00047         float normalizeValue(float val);
00048         
00050         float getMin();
00052         float getMax();
00054         float getRange();
00056         int* getHistogramm();
00057 };
00058 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines