Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
map_locations.c File Reference
Include dependency graph for metadata/map_locations.c:

Go to the source code of this file.

Functions

guint dt_map_location_new (const char *const name)
void dt_map_location_delete (const guint locid)
void dt_map_location_rename (const guint locid, const char *const name)
gboolean dt_map_location_name_exists (const char *const name)
int dt_map_location_get_images_count (const guint locid)
GList * dt_map_location_get_locations_by_path (const gchar *path, const gboolean remove_root)
GList * dt_map_location_get_locations_on_map (const dt_map_box_t *const bbox)
void dt_map_location_get_polygons (dt_location_draw_t *ld)
void dt_map_location_free_polygons (dt_location_draw_t *ld)
static gboolean _is_point_in_polygon (const dt_geo_map_display_point_t *pt, const gint plg_pts, const dt_geo_map_display_point_t *plp)
static void _free_result_item (dt_map_location_t *t, gpointer unused)
void dt_map_location_free_result (GList **result)
static gint _sort_by_path (gconstpointer a, gconstpointer b)
GList * dt_map_location_sort (GList *tags)
dt_map_location_data_t * dt_map_location_get_data (const guint locid)
void dt_map_location_set_data (const guint locid, const dt_map_location_data_t *g)
GList * dt_map_location_find_locations (const int32_t imgid)
GList * _map_location_find_images (dt_location_draw_t *ld)
void dt_map_location_update_locations (const int32_t imgid, const GList *tags)
gboolean dt_map_location_update_images (dt_location_draw_t *ld)
const char * dt_map_location_data_tag_root ()
gboolean dt_map_location_included (const float lon, const float lat, dt_map_location_data_t *g)
GList * dt_map_location_convert_polygons (void *polygons, dt_map_box_t *bbox, int *nb_pts)

Variables

const char * location_tag = "darktable|locations"
const char * location_tag_prefix = "darktable|locations|"

Function Documentation

◆ _free_result_item()

void _free_result_item ( dt_map_location_t * t,
gpointer unused )
static

Definition at line 213 of file metadata/map_locations.c.

References dt_free, and t.

Referenced by dt_map_location_free_result(), and dt_tag_free_result().

◆ _is_point_in_polygon()

gboolean _is_point_in_polygon ( const dt_geo_map_display_point_t * pt,
const gint plg_pts,
const dt_geo_map_display_point_t * plp )
static

◆ _map_location_find_images()

◆ _sort_by_path()

gint _sort_by_path ( gconstpointer a,
gconstpointer b )
static

Definition at line 229 of file metadata/map_locations.c.

References dt_map_location_t::tag.

Referenced by dt_map_location_sort().

◆ dt_map_location_convert_polygons()

GList * dt_map_location_convert_polygons ( void * polygons,
dt_map_box_t * bbox,
int * nb_pts )

◆ dt_map_location_data_tag_root()

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().

◆ dt_map_location_delete()

void dt_map_location_delete ( const guint locid)

◆ dt_map_location_find_locations()

◆ dt_map_location_free_polygons()

◆ dt_map_location_free_result()

void dt_map_location_free_result ( GList ** result)

◆ dt_map_location_get_data()

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().

◆ dt_map_location_get_images_count()

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().

◆ dt_map_location_get_locations_by_path()

GList * dt_map_location_get_locations_by_path ( const gchar * path,
const gboolean remove_root )

◆ dt_map_location_get_locations_on_map()

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().

◆ dt_map_location_get_polygons()

◆ dt_map_location_included()

gboolean dt_map_location_included ( const float lon,
const float lat,
dt_map_location_data_t * g )

◆ dt_map_location_name_exists()

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().

◆ dt_map_location_new()

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().

◆ dt_map_location_rename()

void dt_map_location_rename ( const guint locid,
const char *const name )

◆ dt_map_location_set_data()

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().

◆ dt_map_location_sort()

GList * dt_map_location_sort ( GList * tags)

Definition at line 238 of file metadata/map_locations.c.

References _sort_by_path().

◆ dt_map_location_update_images()

gboolean dt_map_location_update_images ( dt_location_draw_t * ld)

◆ dt_map_location_update_locations()

void dt_map_location_update_locations ( const int32_t imgid,
const GList * tags )

Variable Documentation

◆ location_tag

const char* location_tag = "darktable|locations"

◆ location_tag_prefix