![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "metadata/geo.h"#include "metadata/map_locations.h"#include "system/macros.h"#include "system/mem_alloc.h"#include "database/location_repository.h"#include "database/tag_repository.h"#include "metadata/tags.h"
Include dependency graph for metadata/map_locations.c:Go to the source code of this file.
Variables | |
| const char * | location_tag = "darktable|locations" |
| const char * | location_tag_prefix = "darktable|locations|" |
|
static |
Definition at line 213 of file metadata/map_locations.c.
Referenced by dt_map_location_free_result().
|
static |
Definition at line 179 of file metadata/map_locations.c.
References FALSE, i, L, lat, dt_geo_map_display_point_t::lat, and p.
Referenced by _map_location_find_images(), and dt_map_location_find_locations().
| GList * _map_location_find_images | ( | dt_location_draw_t * | ld | ) |
Definition at line 306 of file metadata/map_locations.c.
References _is_point_in_polygon(), dt_location_repository_find_images_for_location(), L, dt_geo_map_display_point_t::lon, and MAP_LOCATION_SHAPE_POLYGONS.
Referenced by dt_map_location_update_images().
|
static |
Definition at line 229 of file metadata/map_locations.c.
References L.
Referenced by dt_map_location_sort().
| GList * dt_map_location_convert_polygons | ( | void * | polygons, |
| dt_map_box_t * | bbox, | ||
| int * | nb_pts | ||
| ) |
Definition at line 418 of file metadata/map_locations.c.
References bbox, L, dt_map_box_t::lat1, dt_map_box_t::lat2, 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 394 of file metadata/map_locations.c.
References location_tag.
Referenced by dt_collection_query_get_property_values(), and get_query_string().
Definition at line 47 of file metadata/map_locations.c.
References dt_free, dt_location_repository_delete(), dt_tag_get_name(), dt_tag_remove(), L, location_tag_prefix, name, and TRUE.
Referenced by _pop_menu_delete_location().
Definition at line 273 of file metadata/map_locations.c.
References _is_point_in_polygon(), dt_free, dt_location_repository_find_locations_for_image(), dt_location_repository_get_polygon(), FALSE, L, dt_geo_map_display_point_t::lon, MAP_LOCATION_SHAPE_POLYGONS, and TRUE.
Referenced by _view_map_geotag_changed().
| void dt_map_location_free_polygons | ( | dt_location_draw_t * | ld | ) |
Definition at line 167 of file metadata/map_locations.c.
References dt_free, L, and MAP_LOCATION_SHAPE_POLYGONS.
Referenced by _view_map_delete_other_location(), and cleanup().
Definition at line 220 of file metadata/map_locations.c.
References _free_result_item(), and L.
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 259 of file metadata/map_locations.c.
References dt_location_repository_get_data(), L, and location_tag_prefix.
Referenced by _show_location().
| int dt_map_location_get_images_count | ( | const guint | locid | ) |
Definition at line 89 of file metadata/map_locations.c.
References dt_tag_repository_count_attachments(), and L.
Referenced by _name_editing_done().
Definition at line 98 of file metadata/map_locations.c.
References dt_free, dt_tag_count_free(), dt_tag_repository_get_by_path_with_counts(), IS_NULL_PTR, L, location_tag, location_tag_prefix, 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 143 of file metadata/map_locations.c.
References bbox, and dt_location_repository_get_in_bbox().
Referenced by _view_map_draw_other_locations().
| void dt_map_location_get_polygons | ( | dt_location_draw_t * | ld | ) |
Definition at line 148 of file metadata/map_locations.c.
References dt_location_repository_get_polygon(), i, L, MAP_LOCATION_SHAPE_POLYGONS, and p.
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 400 of file metadata/map_locations.c.
References FALSE, g, L, lat, lon, MAP_LOCATION_SHAPE_ELLIPSE, MAP_LOCATION_SHAPE_RECTANGLE, and TRUE.
Referenced by _view_map_button_press_callback(), and _view_map_scroll_event().
Definition at line 80 of file metadata/map_locations.c.
References dt_free, dt_tag_exists(), L, location_tag_prefix, and name.
Referenced by _new_button_clicked().
Definition at line 37 of file metadata/map_locations.c.
References dt_free, dt_tag_new(), L, location_tag_prefix, and name.
Referenced by _name_editing_done().
Definition at line 63 of file metadata/map_locations.c.
References dt_free, dt_tag_get_name(), dt_tag_rename(), IS_NULL_PTR, L, 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 266 of file metadata/map_locations.c.
References dt_location_repository_set_data(), g, and L.
Referenced by _view_map_update_location_geotag().
Definition at line 238 of file metadata/map_locations.c.
References _sort_by_path(), and L.
| gboolean dt_map_location_update_images | ( | dt_location_draw_t * | ld | ) |
Definition at line 358 of file metadata/map_locations.c.
References _map_location_find_images(), dt_tag_attach(), dt_tag_detach(), dt_tag_get_images(), FALSE, L, and TRUE.
Referenced by _view_map_update_location_geotag().
Definition at line 329 of file metadata/map_locations.c.
References dt_location_repository_get_image_locations(), dt_tag_attach(), dt_tag_detach(), FALSE, and L.
Referenced by _view_map_geotag_changed().
| const char* location_tag = "darktable|locations" |
Definition at line 33 of file metadata/map_locations.c.
Referenced by dt_map_location_data_tag_root(), and dt_map_location_get_locations_by_path().
Definition at line 34 of file metadata/map_locations.c.
Referenced by dt_map_location_delete(), dt_map_location_get_data(), dt_map_location_get_locations_by_path(), dt_map_location_name_exists(), dt_map_location_new(), and dt_map_location_rename().