![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Include dependency graph for map_locations.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | dt_map_location_data_t |
| struct | dt_location_draw_t |
| struct | dt_map_location_t |
Typedefs | |
| typedef enum dt_map_locations_type_t | dt_map_locations_type_t |
| typedef enum dt_map_locations_action_t | dt_map_locations_action_t |
| typedef struct dt_map_location_data_t | dt_map_location_data_t |
| typedef struct dt_location_draw_t | dt_location_draw_t |
| typedef struct dt_map_location_t | dt_map_location_t |
| typedef struct dt_location_draw_t dt_location_draw_t |
| typedef struct dt_map_location_data_t dt_map_location_data_t |
| typedef struct dt_map_location_t dt_map_location_t |
| typedef enum dt_map_locations_action_t dt_map_locations_action_t |
| typedef enum dt_map_locations_type_t dt_map_locations_type_t |
| Enumerator | |
|---|---|
| MAP_LOCATION_ACTION_REMOVE | |
| MAP_LOCATION_ACTION_UPDATE_OTHERS | |
| MAP_LOCATION_ACTION_MAX | |
Definition at line 38 of file map_locations.h.
| Enumerator | |
|---|---|
| MAP_LOCATION_SHAPE_ELLIPSE | |
| MAP_LOCATION_SHAPE_RECTANGLE | |
| MAP_LOCATION_SHAPE_POLYGONS | |
| MAP_LOCATION_SHAPE_MAX | |
Definition at line 30 of file map_locations.h.
| GList * dt_map_location_convert_polygons | ( | void * | polygons, |
| dt_map_box_t * | bbox, | ||
| int * | nb_pts | ||
| ) |
Definition at line 627 of file common/map_locations.c.
References bbox, dt_geo_map_display_point_t::lat, dt_map_box_t::lat1, dt_map_box_t::lat2, dt_geo_map_display_point_t::lon, dt_map_box_t::lon1, dt_map_box_t::lon2, and p.
Referenced by _view_map_add_location().
| const char * dt_map_location_data_tag_root | ( | ) |
Definition at line 603 of file common/map_locations.c.
References location_tag.
Referenced by dt_collection_get_property_values(), and get_query_string().
| void dt_map_location_delete | ( | const guint | locid | ) |
Definition at line 45 of file common/map_locations.c.
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_free, dt_tag_get_name(), dt_tag_remove(), location_tag_prefix, name, and TRUE.
Referenced by _pop_menu_delete_location().
| GList * dt_map_location_find_locations | ( | const int32_t | imgid | ) |
Definition at line 395 of file common/map_locations.c.
References _is_point_in_polygon(), darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_geo_map_display_point_t::lat, dt_geo_map_display_point_t::lon, MAP_LOCATION_SHAPE_ELLIPSE, MAP_LOCATION_SHAPE_POLYGONS, and MAP_LOCATION_SHAPE_RECTANGLE.
Referenced by _view_map_geotag_changed().
| void dt_map_location_free_polygons | ( | dt_location_draw_t * | ld | ) |
Definition at line 239 of file common/map_locations.c.
References dt_location_draw_t::data, dt_free, MAP_LOCATION_SHAPE_POLYGONS, dt_map_location_data_t::plg_pts, dt_map_location_data_t::polygons, and dt_map_location_data_t::shape.
Referenced by _view_map_delete_other_location(), and cleanup().
| void dt_map_location_free_result | ( | GList ** | result | ) |
Definition at line 292 of file common/map_locations.c.
References _free_result_item().
Referenced by _locations_tree_update(), _name_editing_done(), and _view_map_geotag_changed().
| dt_map_location_data_t * dt_map_location_get_data | ( | const guint | locid | ) |
Definition at line 331 of file common/map_locations.c.
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_BIND_TEXT, DT_DEBUG_SQLITE3_PREPARE_V2, g, and location_tag_prefix.
Referenced by _show_location().
| int dt_map_location_get_images_count | ( | const guint | locid | ) |
Definition at line 93 of file common/map_locations.c.
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, and DT_DEBUG_SQLITE3_PREPARE_V2.
Referenced by _name_editing_done().
| GList * dt_map_location_get_locations_by_path | ( | const gchar * | path, |
| const gboolean | remove_root | ||
| ) |
Definition at line 112 of file common/map_locations.c.
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_TEXT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_free, IS_NULL_PTR, location_tag, location_tag_prefix, name, and t.
Referenced by _locations_tree_update(), _name_editing_done(), and _view_map_geotag_changed().
| GList * dt_map_location_get_locations_on_map | ( | const dt_map_box_t *const | bbox | ) |
Definition at line 169 of file common/map_locations.c.
References bbox, darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_DOUBLE, DT_DEBUG_SQLITE3_PREPARE_V2, dt_map_box_t::lat1, dt_map_box_t::lat2, dt_map_box_t::lon1, dt_map_box_t::lon2, and t.
Referenced by _view_map_draw_other_locations().
| void dt_map_location_get_polygons | ( | dt_location_draw_t * | ld | ) |
Definition at line 211 of file common/map_locations.c.
References darktable, dt_location_draw_t::data, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, i, dt_location_draw_t::id, MAP_LOCATION_SHAPE_POLYGONS, p, dt_map_location_data_t::plg_pts, dt_map_location_data_t::polygons, and dt_map_location_data_t::shape.
Referenced by _view_map_draw_location(), and _view_map_draw_other_locations().
| gboolean dt_map_location_included | ( | const float | lon, |
| const float | lat, | ||
| dt_map_location_data_t * | g | ||
| ) |
Definition at line 609 of file common/map_locations.c.
References FALSE, g, lat, lon, MAP_LOCATION_SHAPE_ELLIPSE, MAP_LOCATION_SHAPE_RECTANGLE, and TRUE.
Referenced by _view_map_button_press_callback(), and _view_map_scroll_event().
| gboolean dt_map_location_name_exists | ( | const char *const | name | ) |
Definition at line 84 of file common/map_locations.c.
References dt_free, dt_tag_exists(), location_tag_prefix, and name.
Referenced by _new_button_clicked().
| guint dt_map_location_new | ( | const char *const | name | ) |
Definition at line 35 of file common/map_locations.c.
References dt_free, dt_tag_new(), location_tag_prefix, and name.
Referenced by _name_editing_done().
| void dt_map_location_rename | ( | const guint | locid, |
| const char *const | name | ||
| ) |
Definition at line 67 of file common/map_locations.c.
References dt_free, dt_tag_get_name(), dt_tag_rename(), IS_NULL_PTR, location_tag_prefix, and name.
Referenced by _name_editing_done().
| void dt_map_location_set_data | ( | const guint | locid, |
| const dt_map_location_data_t * | g | ||
| ) |
Definition at line 363 of file common/map_locations.c.
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_BLOB, DT_DEBUG_SQLITE3_BIND_DOUBLE, DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, g, and MAP_LOCATION_SHAPE_POLYGONS.
Referenced by _view_map_update_location_geotag().
| GList * dt_map_location_sort | ( | GList * | tags | ) |
Definition at line 310 of file common/map_locations.c.
References _sort_by_path().
| gboolean dt_map_location_update_images | ( | dt_location_draw_t * | ld | ) |
Definition at line 567 of file common/map_locations.c.
References _map_location_find_images(), dt_tag_attach(), dt_tag_detach(), dt_tag_get_images(), FALSE, dt_location_draw_t::id, and TRUE.
Referenced by _view_map_update_location_geotag().
| void dt_map_location_update_locations | ( | const int32_t | imgid, |
| const GList * | tags | ||
| ) |
Definition at line 521 of file common/map_locations.c.
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_tag_attach(), dt_tag_detach(), and FALSE.
Referenced by _view_map_geotag_changed().