VisLU Flow 0.1

src/FlowChannel.h

00001 #ifndef FLOWCHANNEL_H
00002 #define FLOWCHANNEL_H
00003 
00004 #include <QColor>
00005 
00006 #include "FlowGeometry.h"
00007 #include <iostream>
00009 
00012 class FlowChannel{
00013     private:
00014         QColor color1;
00015         QColor color2;
00016 
00018         float minimum;
00020         float maximum;
00021     public:
00023         float* values;
00025         FlowGeometry* geom;
00026         FlowChannel(FlowGeometry* g);
00027         ~FlowChannel();
00029         void setValue(int vtxID, float val);
00031 
00037         void copyValues(float* rawdata, int vtxSize, int offset);
00038         
00040         float getValue(vec3 pos);
00042         float getValue(int vtxID);
00044         float getValueNormPos(vec3 pos);
00046                 float getValueNormPos(float x, float y);
00047         
00049         float normalizeValue(float val);
00050         
00052         float getMin();
00054         float getMax();
00056         float getRange();
00057 
00058         void setColor(int c, const QColor& col);
00059 
00060         QColor getColor(int c);
00061 };
00062 #endif
 All Classes Functions Variables