![]() |
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"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(), and dt_tag_free_result().
|
static |
Definition at line 179 of file metadata/map_locations.c.
References FALSE, i, dt_geo_map_display_point_t::lat, lat, dt_geo_map_display_point_t::lon, 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_draw_t::data, dt_location_repository_find_images_for_location(), g_free(), dt_location_candidate_t::id, dt_location_draw_t::id, dt_location_candidate_t::lat, dt_location_candidate_t::lon, 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 dt_map_location_update_images().
|
static |
Definition at line 229 of file metadata/map_locations.c.
References dt_map_location_t::tag.
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, IS_NULL_PTR, 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, memcpy(), 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().
| void dt_map_location_delete | ( | const guint | locid | ) |
Definition at line 47 of file metadata/map_locations.c.
References dt_free, dt_location_repository_delete(), 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 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, g_free(), dt_location_candidate_t::id, dt_location_candidate_t::lat, dt_location_candidate_t::lon, MAP_LOCATION_SHAPE_POLYGONS, dt_location_candidate_t::shape, 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_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 220 of file metadata/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 259 of file metadata/map_locations.c.
References dt_location_repository_get_data(), 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().
Referenced by _name_editing_done().
| GList * dt_map_location_get_locations_by_path | ( | const gchar * | path, |
| const gboolean | remove_root ) |
Definition at line 98 of file metadata/map_locations.c.
References dt_tag_count_t::count, dt_free, dt_tag_count_free(), dt_tag_repository_get_by_path_with_counts(), dt_tag_count_t::id, IS_NULL_PTR, location_tag, location_tag_prefix, dt_tag_count_t::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 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_draw_t::data, dt_location_repository_get_polygon(), 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 400 of file metadata/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 80 of file metadata/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 37 of file metadata/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 63 of file metadata/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 266 of file metadata/map_locations.c.
References dt_location_repository_set_data(), and g.
Referenced by _view_map_update_location_geotag().
| GList * dt_map_location_sort | ( | GList * | tags | ) |
Definition at line 238 of file metadata/map_locations.c.
References _sort_by_path().
| 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, dt_location_draw_t::id, res, 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 329 of file metadata/map_locations.c.
References dt_location_repository_get_image_locations(), dt_tag_attach(), dt_tag_detach(), and FALSE.
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().
| const char* location_tag_prefix = "darktable|locations|" |
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().