navit  0.5.3-trunk
item Struct Reference

Represents an object on a map. More...

#include <item.h>

Data Fields

enum item_type type
 
int id_hi
 
int id_lo
 
struct mapmap
 
struct item_methodsmeth
 
void * priv_data
 

Detailed Description

Represents an object on a map.

An item holds the data for an individual item on a map, including its coordinates and various attributes. The item type specifies what the map item refers to, such as a POI, a building, a way or a boundary. There are also special item types used internally, such as the various kinds of turn instructions. Item types are internally represented as numbers.

Outside map implementations, items are generally retrieved from map rectangles, and their methods are implemented by the respective map driver. Items retrieved from a map rectangle are generally short-lived: a previously retrieved item should be considered invalid when a new item is retrieved from the same map rectangle, or after its map rectangle has been destroyed. After that, functions may segfault or return invalid data, and even the item itself may have been deallocated.

Actual behavior may differ between map implementations, but do not rely on any behavior not covered by the above interface contract. Exceptions apply, of course, for code that is limited to working with items from one particular map (typically inside a map implementation).

Field Documentation

◆ id_hi

int item::id_hi

First part of the ID of the item (item IDs have two parts).

Referenced by attr_resolve(), attr_to_text_ext(), binfile_item_dup(), binmap_search_new(), bookmarks_get_item(), country_search_new(), csv_create_item(), get_icon(), NGQPoint::getInformation(), gmap_rect_get_item(), gmap_rect_get_item_byid(), graphics_draw_itemgra(), graphics_process_selection_item(), gui_internal_cmd_position_do(), gui_internal_cmd_view_attribute_details(), gui_internal_cmd_view_attributes(), gui_internal_cmd_view_in_browser(), gui_internal_dbus_signal(), gui_internal_poi_icon(), gui_internal_populate_route_table(), gui_qml_dbus_signal(), housenumber_search_setup(), is_turn_allowed(), item_coord_get_within_range(), item_hash_hash(), item_hash_insert(), item_hash_remove(), item_id_from_ptr(), map_filter_rect_get_item(), map_filter_rect_get_item_byid(), map_new_csv(), map_rect_get_item_binfile(), map_rect_get_item_byid(), map_rect_get_item_byid_binfile(), map_rect_get_item_byid_mg(), map_rect_get_item_shapefile(), map_rect_get_item_textfile(), map_rect_new_binfile_int(), map_rect_new_csv(), map_rect_new_garmin_img(), map_rect_new_shapefile(), map_rect_new_textfile(), map_route_occluded_get_buildings(), map_search_setup(), navigation_itm_new(), navigation_map_get_item_byid(), navigation_map_item_attr_get(), navigation_update_idle(), navigation_way_get_max_delta(), navigation_way_init(), navit_cmd_map_item_set_attr(), poly_get(), popup_item_dump(), popup_show_item(), popup_traffic_distortion(), push_modified_item(), rm_get_item_byid(), route_find_nearest_street(), route_get_destination_description(), route_path_add_item_from_graph(), route_set_position_from_tracking(), search_item_hash_hash(), search_list_town_new(), street_get(), street_name_get_byid(), street_search_compare_do(), street_search_get_item(), street_search_get_item_street_name(), textfile_coord_get(), tm_add_item(), tm_get_item_byid(), tm_item_dump_to_file(), town_attr_get(), town_get(), tracking_get_attr(), tracking_map_get_item(), tracking_map_get_item_byid(), tracking_map_rect_init(), traffic_message_add_segments(), traffic_message_restore_segments(), traffic_point_match_segment_attributes(), vehicle_file_new_file(), and vehicle_wince_new().

◆ id_lo

int item::id_lo

Second part of the ID of the item.

Referenced by attr_to_text_ext(), binfile_item_dup(), binmap_search_new(), bookmarks_get_item(), csv_create_item(), get_icon(), gmap_rect_get_item(), gmap_rect_get_item_byid(), graphics_draw_itemgra(), graphics_process_selection_item(), gui_internal_cmd_position_do(), gui_internal_cmd_view_attribute_details(), gui_internal_cmd_view_attributes(), gui_internal_cmd_view_in_browser(), gui_internal_dbus_signal(), gui_internal_poi_icon(), gui_internal_populate_route_table(), gui_qml_dbus_signal(), housenumber_search_setup(), is_turn_allowed(), item_coord_get_within_range(), item_hash_hash(), item_hash_insert(), item_hash_remove(), item_id_from_ptr(), map_filter_rect_get_item(), map_filter_rect_get_item_byid(), map_new_csv(), map_rect_get_item_binfile(), map_rect_get_item_byid(), map_rect_get_item_byid_binfile(), map_rect_get_item_byid_mg(), map_rect_get_item_textfile(), map_rect_new_binfile_int(), map_rect_new_csv(), map_rect_new_garmin_img(), map_rect_new_shapefile(), map_rect_new_textfile(), map_route_occluded_coord_get(), map_route_occluded_get_buildings(), map_route_occluded_get_item(), map_route_occluded_get_item_byid(), map_route_occluded_rect_new(), map_search_new_mg(), map_search_setup(), navigation_itm_new(), navigation_map_get_item(), navigation_map_get_item_byid(), navigation_map_item_attr_get(), navigation_update_idle(), navigation_way_get_max_delta(), navigation_way_init(), navit_cmd_map_item_set_attr(), poly_get(), popup_item_dump(), popup_show_item(), popup_traffic_distortion(), push_modified_item(), quadtree_item_free(), rm_get_item_byid(), route_find_nearest_street(), route_get_destination_description(), route_path_add_item_from_graph(), route_set_position_from_tracking(), rp_get_item(), rp_get_item_byid(), search_item_hash_hash(), search_list_town_new(), street_get(), street_name_get_byid(), street_search_compare_do(), street_search_get_item_street_name(), tm_add_item(), tm_get_item_byid(), tm_item_dump_to_file(), town_attr_get(), town_get(), tracking_get_attr(), tracking_map_get_item(), tracking_map_get_item_byid(), tracking_map_rect_init(), traffic_message_add_segments(), traffic_message_restore_segments(), traffic_point_match_segment_attributes(), vehicle_file_new_file(), vehicle_file_position_attr_get(), vehicle_wince_new(), and vehicle_wince_position_attr_get().

◆ map

struct map* item::map

The map this items belongs to.

Referenced by attr_to_text_ext(), binmap_search_new(), country_search_new(), get_icon(), Backend::get_pois(), NGQPoint::getInformation(), graphics_draw_itemgra(), graphics_process_selection_item(), gui_internal_cmd_bookmarks(), gui_internal_cmd_delete_waypoint(), gui_internal_cmd_pois(), gui_internal_cmd_pois_item_selected(), gui_internal_cmd_position_do(), gui_internal_cmd_view_attribute_details(), gui_internal_cmd_view_attributes(), gui_internal_cmd_view_in_browser(), gui_internal_compose_item_address_string(), gui_internal_dbus_signal(), gui_internal_poi_icon(), gui_internal_populate_route_table(), gui_internal_select_waypoint(), gui_qml_dbus_signal(), item_coord_get_pro(), item_coord_get_within_range(), item_hash_hash(), map_rect_get_item(), map_rect_get_item_byid(), map_search_get_item(), map_search_setup(), navigation_itm_new(), navigation_way_get_max_delta(), navigation_way_init(), NGQPoint::NGQPoint(), popup_item_dump(), popup_show_item(), popup_traffic_distortion(), request_navit_route_export_geojson(), request_navit_route_export_gpx(), rm_attr_get(), route_get_destination_description(), route_graph_add_street(), rp_attr_get(), search_house_number_coordinate(), search_list_common_new(), search_list_house_number_new(), search_list_street_new(), search_list_town_new(), NGQPoint::setNewPoint(), street_name_get_byid(), street_search_get_item_street_name(), tm_add_item(), tm_item_unref(), tracking_get_attr(), tracking_map_item_coord_get(), traffic_location_populate_route_graph(), and traffic_point_match_segment_attributes().

◆ meth

◆ priv_data

◆ type

enum item_type item::type

Type of the item.

Referenced by NGQPoint::_coordName(), attr_to_text_ext(), binfile_attr_get(), binmap_get_estimated_town_size(), binmap_search_get_item(), bookmarks_load_hash(), bookmarks_store_bookmarks_to_file(), country_search_new(), csv_create_item(), do_draw(), Backend::filter_pois(), garmin_obj2item(), garmin_pg2item(), garmin_pl2item(), garmin_poi2item(), garmin_srch2item(), get_icon(), Backend::get_pois(), NGQProxyBookmarks::getBookmarks(), NGQPoint::getPOI(), gmap_rect_get_item(), gmap_rect_get_item_byid(), graphics_displayitem_within_dist(), graphics_draw_itemgra(), graphics_process_selection_item(), graphics_remove_selection(), gui_gtk_bookmarks_update(), gui_gtk_destinations_update(), gui_internal_cmd2_route_height_profile(), gui_internal_cmd_bookmarks(), gui_internal_cmd_delete_waypoint(), gui_internal_cmd_formerdests(), gui_internal_cmd_load_bookmarks_as_waypoints(), gui_internal_cmd_pois(), gui_internal_cmd_pois_item(), gui_internal_cmd_pois_item_selected(), gui_internal_cmd_position_do(), gui_internal_cmd_replace_bookmarks_from_waypoints(), gui_internal_cmd_view_attributes(), gui_internal_cmd_view_on_map(), gui_internal_poi_icon(), gui_internal_select_waypoint(), housenumber_search_setup(), is_motorway_like(), is_ramp(), is_same_way(), is_turn_allowed(), item_dump_attr(), maneuver_required2(), map_binfile_open(), map_filter_rect_get_item(), map_filter_rect_get_item_byid(), map_new_csv(), map_rect_get_item_binfile(), map_rect_get_item_garmin_img(), map_rect_get_item_shapefile(), map_rect_get_item_textfile(), map_route_occluded_get_buildings(), map_route_occluded_get_item(), map_search_setup(), model_poi(), navigation_call_callbacks(), navigation_get_attr(), navigation_item_destination(), navigation_itm_new(), navigation_itm_ways_update(), navigation_map_get_item(), navigation_map_item_attr_get(), navigation_way_get_max_delta(), navigation_way_init(), navit_add_former_destinations_from_file(), navit_speak(), navit_window_roadbook_update(), navit_zoom_to_route(), osd_nav_next_turn_draw(), osd_speed_cam_draw(), osd_speed_warner_draw(), osd_text_draw(), osm_add_node(), osm_add_way(), pedestrian_draw_arrows(), phase1_map(), poly_get(), popup_show_item(), read_former_destination_map_as_list(), request_navit_route_export_gpx(), rm_attr_get(), rm_get_item(), rm_rect_new(), route_check_roundabout(), route_find_nearest_street(), route_get_destination_description(), route_get_traffic_distortion(), route_graph_add_street(), route_graph_add_turn_restriction(), route_graph_build_idle(), route_graph_compute_shortest_path(), route_graph_process_restriction_point(), route_graph_process_restriction_segment(), route_graph_remove_traffic_distortion(), route_graph_set_traffic_distortion(), route_seg_speed(), route_value_seg(), rp_attr_get(), rp_get_item(), rp_rect_new(), search_house_number_coordinate(), NGQProxyBookmarks::setPoint(), setup_pos(), show_maneuver(), show_next_maneuvers(), street_get(), street_get_data(), street_name_get_byid(), street_search_get_item_street_name(), tm_find_item(), tm_item_dump_to_file(), tm_rect_create_item(), tm_type_set(), town_attr_get(), town_get(), tracking_doupdate_lines(), tracking_map_get_item(), tracking_map_rect_new(), tracking_value(), traffic_get_item_speed(), traffic_location_get_matching_points(), traffic_location_match_attributes(), traffic_location_populate_route_graph(), traffic_message_restore_segments(), traffic_route_get_seg_cost(), traffic_route_prepend(), vehicle_demo_timer(), vehicle_file_new_file(), and vehicle_wince_new().


The documentation for this struct was generated from the following file: