navwin.h
Go to the documentation of this file.
1 //
2 // drawing fns for nav fn
3 //
4 
5 #include <sys/time.h>
6 #include <stdio.h>
7 #include <stdlib.h>
8 
9 #include <FL/Fl.H>
10 #include <FL/Fl_Double_Window.H>
11 #include <FL/Fl_Group.H>
12 #include <FL/Fl_Window.H>
13 #include <FL/fl_draw.H>
14 
15 #include "navfn.h"
16 
17 namespace navfn {
18  class NavWin
19  : public Fl_Double_Window
20  {
21  public:
22  NavWin(int w, int h, const char *name);
23  ~NavWin();
24 
25  int nw,nh; // width and height of image
26  int pw,ph; // width and height of pot field
27  int dec, inc; // decimation or expansion for display
28 
29  float maxval; // max potential value
30  void drawPot(NavFn *nav); // draw everything...
31 
32  void drawOverlay();
33 
34  uchar *im; // image for drawing
35  int *pc, *pn, *po; // priority buffers
36  int pce, pne, poe; // buffer sizes
37  int goal[2];
38  int start[2];
39  int *path; // path buffer, cell indices
40  int pathlen; // how many we have
41  int pathbuflen; // how big the path buffer is
42 
43  void draw(); // draw the image
44  };
45 };
NavWin(int w, int h, const char *name)
Definition: navwin.cpp:9
int goal[2]
Definition: navwin.h:37
Definition: navfn.h:81
uchar * im
Definition: navwin.h:34
float maxval
Definition: navwin.h:29
int * pc
Definition: navwin.h:35
int pathlen
Definition: navwin.h:40
int * po
Definition: navwin.h:35
int * path
Definition: navwin.h:39
void drawPot(NavFn *nav)
Definition: navwin.cpp:30
Navigation function class. Holds buffers for costmap, navfn map. Maps are pixel-based. Origin is upper left, x is right, y is down.
Definition: navfn.h:106
int * pn
Definition: navwin.h:35
void drawOverlay()
Definition: navwin.cpp:192
void draw()
Definition: navwin.cpp:285
int start[2]
Definition: navwin.h:38
TFSIMD_FORCE_INLINE const tfScalar & w() const
int pathbuflen
Definition: navwin.h:41


navfn
Author(s): Kurt Konolige, Eitan Marder-Eppstein, contradict@gmail.com
autogenerated on Thu Jan 21 2021 04:06:04