10 : Fl_Double_Window(w,h,name)
66 for (
int i=0; i<height-
dec+1; i+=
dec)
68 float *pp = pot + i*width;
69 uchar *ii =
im + 3*i/dec *
nw;
70 for (
int j=0; j<width-dec+1; j+=
dec, pp+=
dec)
73 v = (int)((*pp/
maxval) * 255.0);
82 for (
int i=0; i<height-dec+1; i+=
dec)
85 uchar *ii =
im + 3*i/dec *
nw;
86 for (
int j=0; j<width-dec+1; j+=
dec, pp+=
dec, ii+=3)
118 for (
int i=0; i<height; i++)
120 float *pp = pot + i*width;
121 uchar *ii =
im + 3*i*inc *
nw;
122 for (
int j=0; j<width; j++, pp++)
128 v = (int)((*pp/
maxval) * 255.0);
129 for (
int k=0; k<
inc; k++)
131 uchar *iii = ii + 3*j*inc + 3*k*
nw;
132 for (
int kk=0; kk<
inc; kk++)
145 fl_draw_image(
im, 0,0,
nw,
nh);
198 for (
int i=0; i<
pce; i++)
206 for (
int i=0; i<
pne; i++)
214 for (
int i=0; i<
poe; i++)
225 for (
int i=0; i<
pce; i++)
229 fl_rect(x*
inc,y*inc,inc,inc);
233 for (
int i=0; i<
pne; i++)
237 fl_rect(x*
inc,y*inc,inc,inc);
241 for (
int i=0; i<
poe; i++)
245 fl_rect(x*
inc,y*inc,inc,inc);
254 fl_rectf(x/
dec-2,y/
dec-2,5,5);
256 fl_rectf(x*
inc-2,y*
inc-2,5,5);
263 fl_rectf(x/
dec-2,y/
dec-2,5,5);
265 fl_rectf(x*
inc-2,y*
inc-2,5,5);
288 fl_draw_image(
im, 0,0,
nw,
nh);
NavWin(int w, int h, const char *name)
TFSIMD_FORCE_INLINE const tfScalar & y() const
Navigation function class. Holds buffers for costmap, navfn map. Maps are pixel-based. Origin is upper left, x is right, y is down.
TFSIMD_FORCE_INLINE const tfScalar & x() const