Player
Frontpage
Contents
User
Installation
Quick start
Supported devices
Tutorials
Utilities
Client libraries
FAQ
Help
Developer
Architecture
libplayercore
libplayerinterface
interfaces
libplayerdrivers
drivers
libplayercommon
libplayersd
libplayertcp
libplayerxdr
TODO
Online
Homepage
Download
Project
Bugs
Help
server
drivers
mixed
mricp
include
mixed/mricp/include/map.h
1
/***************************************************************************
2
* Copyright (C) 2005 by Tarek Taha *
3
* tataha@eng.uts.edu.au *
4
* *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
9
* *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
14
* *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program; if not, write to the *
17
* Free Software Foundation, Inc., *
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
19
***************************************************************************/
20
#ifndef map_HEADER
21
#define map_HEADER
22
23
#include <gdk-pixbuf/gdk-pixbuf.h>
24
#include <gtk/gtk.h>
25
#include <glib/gprintf.h>
26
27
#include <sys/stat.h>
28
class
MapInfo
29
{
30
public :
31
int
height;
32
int
width;
33
double
pixel_size;
34
};
35
typedef
struct
mapgrid
36
{
37
double
prob_occ,prob_free;
38
bool
added;
39
}
mapgrid_t
;
40
class
MAP
41
{
42
private
:
43
double
pixel_size;
44
int
negate;
45
GdkPixbuf * pixbuf;
46
public
:
47
int
size_x, size_y;
48
mapgrid
* * occ_grid;
49
char
* Mapname;
50
MapInfo
GetMapInfo();
51
void
SavePixelBufferToFile();
52
void
DrawPixel(
int
,
int
,
int
,
int
,
int
);
53
void
ClearData();
54
void
ResetProb();
55
int
SavePgm();
56
GdkPixbuf * CreateMap();
57
~
MAP
();
58
MAP
(
char
*,
double
,
double
);
59
};
60
#endif
mapgrid
Definition:
mixed/mricp/include/map.h:34
MAP
Definition:
mixed/mricp/include/map.h:39
MapInfo
Definition:
mixed/mricp/include/map.h:27
Generated on Mon Dec 30 2019 00:00:00 for Player by
1.8.16