FlowVis 1.0
|
00001 #ifndef FLOWCHANNEL_H 00002 #define FLOWCHANNEL_H 00003 00004 #include "FlowGeometry.h" 00005 #include <iostream> 00007 00010 class FlowChannel{ 00011 private: 00013 FlowGeometry* geom; 00015 float* values; 00017 float minimum; 00019 float maximum; 00020 public: 00021 FlowChannel(FlowGeometry* g); 00022 ~FlowChannel(); 00024 void setValue(int vtxID, float val); 00026 00032 void copyValues(float* rawdata, int vtxSize, int offset); 00033 00035 float getValue(vec3 pos); 00037 float getValue(int vtxID); 00039 float getValueNormPos(vec3 pos); 00041 float getValueNormPos(float x, float y); 00042 00044 float normalizeValue(float val); 00045 00047 float getMin(); 00049 float getMax(); 00051 float getRange(); 00052 }; 00053 #endif