navit  0.5.3-trunk
poly.c File Reference
#include <string.h>
#include "debug.h"
#include "mg.h"

Functions

static void poly_coord_rewind (void *priv_data)
 
static int poly_coord_get (void *priv_data, struct coord *c, int count)
 
static void poly_attr_rewind (void *priv_data)
 
static int poly_attr_get (void *priv_data, enum attr_type attr_type, struct attr *attr)
 
static void poly_get_data (struct poly_priv *poly, unsigned char **p)
 
int poly_get (struct map_rect_priv *mr, struct poly_priv *poly, struct item *item)
 
int poly_get_byid (struct map_rect_priv *mr, struct poly_priv *poly, int id_hi, int id_lo, struct item *item)
 

Variables

static struct item_methods poly_meth
 

Function Documentation

◆ poly_attr_get()

static int poly_attr_get ( void *  priv_data,
enum attr_type  attr_type,
struct attr attr 
)
static

◆ poly_attr_rewind()

static void poly_attr_rewind ( void *  priv_data)
static

References poly_priv::aidx.

◆ poly_coord_get()

static int poly_coord_get ( void *  priv_data,
struct coord c,
int  count 
)
static

◆ poly_coord_rewind()

static void poly_coord_rewind ( void *  priv_data)
static

Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

References poly_priv::p, and poly_priv::subpoly_start.

◆ poly_get()

◆ poly_get_byid()

int poly_get_byid ( struct map_rect_priv mr,
struct poly_priv poly,
int  id_hi,
int  id_lo,
struct item item 
)

◆ poly_get_data()

static void poly_get_data ( struct poly_priv poly,
unsigned char **  p 
)
static

Variable Documentation

◆ poly_meth

struct item_methods poly_meth
static
Initial value:
= {
}
static void poly_attr_rewind(void *priv_data)
Definition: poly.c:46
static int poly_coord_get(void *priv_data, struct coord *c, int count)
Definition: poly.c:31
static int poly_attr_get(void *priv_data, enum attr_type attr_type, struct attr *attr)
Definition: poly.c:52
static void poly_coord_rewind(void *priv_data)
Definition: poly.c:24

Referenced by poly_get().