![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
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 |
GList * dt_map_location_convert_polygons | ( | void * | polygons, |
dt_map_box_t * | bbox, | ||
int * | nb_pts | ||
) |
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, and dt_map_box_t::lon2.
Referenced by _view_map_add_location().
const char * dt_map_location_data_tag_root | ( | ) |
References location_tag.
Referenced by get_query_string(), and tree_view().
void dt_map_location_delete | ( | const guint | locid | ) |
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, 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 | ) |
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 | ) |
void dt_map_location_free_result | ( | GList ** | result | ) |
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 | ) |
References darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_BIND_TEXT, DT_DEBUG_SQLITE3_PREPARE_V2, and location_tag_prefix.
Referenced by _show_location().
int dt_map_location_get_images_count | ( | const guint | locid | ) |
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 | ||
) |
References dt_map_location_t::count, darktable, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_TEXT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_map_location_t::id, location_tag, location_tag_prefix, name, and dt_map_location_t::tag.
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 | ) |
References bbox, darktable, dt_location_draw_t::data, darktable_t::db, dt_map_location_data_t::delta1, dt_map_location_data_t::delta2, dt_database_get(), DT_DEBUG_SQLITE3_BIND_DOUBLE, DT_DEBUG_SQLITE3_PREPARE_V2, dt_location_draw_t::id, dt_map_location_data_t::lat, dt_map_box_t::lat1, dt_map_box_t::lat2, dt_map_location_data_t::lon, dt_map_box_t::lon1, dt_map_box_t::lon2, dt_map_location_data_t::ratio, and dt_map_location_data_t::shape.
Referenced by _view_map_draw_other_locations().
void dt_map_location_get_polygons | ( | dt_location_draw_t * | ld | ) |
References darktable, dt_location_draw_t::data, darktable_t::db, dt_database_get(), DT_DEBUG_SQLITE3_BIND_INT, DT_DEBUG_SQLITE3_PREPARE_V2, dt_location_draw_t::id, 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_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 | ||
) |
References FALSE, 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 | ) |
References dt_tag_exists(), location_tag_prefix, and name.
Referenced by _new_button_clicked().
guint dt_map_location_new | ( | const char *const | name | ) |
References 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 | ||
) |
References dt_tag_get_name(), dt_tag_rename(), 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 | ||
) |
GList * dt_map_location_sort | ( | GList * | tags | ) |
References _sort_by_path().
gboolean dt_map_location_update_images | ( | dt_location_draw_t * | ld | ) |
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 | ||
) |
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().