#ifndef BIMAP #define BIMAP #define M_WID 400.0// the map width class biMap { public: biMap(); void drawRG(); void drawSpect(); void drawCircleField(); void drawCircle(float x,float s,float y, float v); void setTargetPos(float x, float y); void drawTarget(float x, float y); void getMapValues(float x, float y, float &m1, float &m2); int readKey(float x, float y, float &m1); void drawKeyRG(); void drawKeyWoven(); void mkMaps(); void mkDataMap(float **t); void clear(); void gabor(float **t, int cx, int cy, float r, float size,float contrast,float rat); private: float **field1; float **field2; float ** kernel; float MRand(); float *xpts, *ypts; int ksize; int rows, cols; bool texture; float tx,ty; float keyCell, keyXoffset,keyYoffset; void hsvToRgb(float h,float s,float v, float &r,float &g, float &b); int xs,ys; }; #endif