📄 map.h
字号:
/*map axisRemembers image size, windowing, frame selection and orientationUses axis definition*//* constants *//* best fit tic spacing to pixels */#define MAP_INTERP 4096#define MAP_TIC 100/* mapping index of data to and from image */typedef unsigned int* Vec;/* Map object */typedef struct { Axis axis; /* current data axis */ string name; /* name of map axis */ int size; /* pixels long */ int first; /* minimum data axis sample */ int last; /* maximum data axis sample; can be less than first */ float dtic; /* tic spacing in axis value */ float tic0; /* mimimum tic value */ float tic2; /* maximum tic value */ int ntic; /* number of tics */ string format; /*printf format of tic label */ int frame1; /* animation start */ int frame2; /* animation end */ int dframe; /* animation incrment */ int frame; /* current animation frame */ int imap; /* current map position */ int prev; /* previous animation frame */ int save; /* save frame */ Vec map; /* data sample for each display sample */ Vec inv; /* display sample for data sample */ Vec interp; /* 16 bit interption for smooth mapping */ } *Map, Map_;/* typed returns */extern Map MapInit (/*axis,name*/);extern Axis MapAxis (/*map*/);extern char* MapName (/*map*/);extern Vec MapVec (/*map*/);extern Vec MapInterp (/*map*/);extern float MapValue (/*map,index*/);extern float MapDtic (/*map*/);extern float MapTic0 (/*map*/);extern float MapTic2 (/*map*/);extern char* MapFormat (/*map*/);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -