Main Page
Namespaces
Classes
Files
File List
File Members
include
navfn
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
};
navfn::NavWin::NavWin
NavWin(int w, int h, const char *name)
Definition:
navwin.cpp:9
navfn::NavWin::goal
int goal[2]
Definition:
navwin.h:37
navfn
Definition:
navfn.h:81
navfn::NavWin::im
uchar * im
Definition:
navwin.h:34
navfn::NavWin::dec
int dec
Definition:
navwin.h:27
navfn::NavWin::maxval
float maxval
Definition:
navwin.h:29
navfn::NavWin::nh
int nh
Definition:
navwin.h:25
navfn::NavWin::pc
int * pc
Definition:
navwin.h:35
navfn::NavWin
Definition:
navwin.h:18
navfn.h
navfn::NavWin::pathlen
int pathlen
Definition:
navwin.h:40
navfn::NavWin::po
int * po
Definition:
navwin.h:35
navfn::NavWin::inc
int inc
Definition:
navwin.h:27
navfn::NavWin::poe
int poe
Definition:
navwin.h:36
navfn::NavWin::nw
int nw
Definition:
navwin.h:25
navfn::NavWin::path
int * path
Definition:
navwin.h:39
navfn::NavWin::drawPot
void drawPot(NavFn *nav)
Definition:
navwin.cpp:30
navfn::NavFn
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
navfn::NavWin::pn
int * pn
Definition:
navwin.h:35
navfn::NavWin::drawOverlay
void drawOverlay()
Definition:
navwin.cpp:192
navfn::NavWin::draw
void draw()
Definition:
navwin.cpp:285
navfn::NavWin::start
int start[2]
Definition:
navwin.h:38
w
TFSIMD_FORCE_INLINE const tfScalar & w() const
navfn::NavWin::pathbuflen
int pathbuflen
Definition:
navwin.h:41
navfn::NavWin::~NavWin
~NavWin()
Definition:
navwin.cpp:25
navfn::NavWin::pce
int pce
Definition:
navwin.h:36
navfn::NavWin::ph
int ph
Definition:
navwin.h:26
navfn::NavWin::pne
int pne
Definition:
navwin.h:36
navfn::NavWin::pw
int pw
Definition:
navwin.h:26
navfn
Author(s): Kurt Konolige, Eitan Marder-Eppstein, contradict@gmail.com
autogenerated on Thu Jan 21 2021 04:06:04