Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
map_locations.h File Reference
#include "common/geo.h"
#include <glib.h>
#include <sqlite3.h>
#include <stdint.h>
+ 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
 

Enumerations

enum  dt_map_locations_type_t {
  MAP_LOCATION_SHAPE_ELLIPSE ,
  MAP_LOCATION_SHAPE_RECTANGLE ,
  MAP_LOCATION_SHAPE_POLYGONS ,
  MAP_LOCATION_SHAPE_MAX
}
 
enum  dt_map_locations_action_t {
  MAP_LOCATION_ACTION_REMOVE ,
  MAP_LOCATION_ACTION_UPDATE_OTHERS ,
  MAP_LOCATION_ACTION_MAX
}
 

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_free_result (GList **result)
 
GList * dt_map_location_sort (GList *tags)
 
dt_map_location_data_tdt_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)
 
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)
 
void dt_map_location_get_polygons (dt_location_draw_t *ld)
 
void dt_map_location_free_polygons (dt_location_draw_t *ld)
 

Typedef Documentation

◆ dt_location_draw_t

◆ dt_map_location_data_t

◆ dt_map_location_t

◆ dt_map_locations_action_t

◆ dt_map_locations_type_t

Enumeration Type Documentation

◆ dt_map_locations_action_t

Enumerator
MAP_LOCATION_ACTION_REMOVE 
MAP_LOCATION_ACTION_UPDATE_OTHERS 
MAP_LOCATION_ACTION_MAX 

◆ dt_map_locations_type_t

Enumerator
MAP_LOCATION_SHAPE_ELLIPSE 
MAP_LOCATION_SHAPE_RECTANGLE 
MAP_LOCATION_SHAPE_POLYGONS 
MAP_LOCATION_SHAPE_MAX 

Function Documentation

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

References location_tag.

Referenced by get_query_string(), and tree_view().

◆ dt_map_location_delete()

◆ 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_get_images_count()

int dt_map_location_get_images_count ( const guint  locid)

◆ dt_map_location_get_locations_by_path()

◆ dt_map_location_get_locations_on_map()

◆ 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)

◆ dt_map_location_new()

guint dt_map_location_new ( const char *const  name)

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

◆ dt_map_location_sort()

GList * dt_map_location_sort ( GList *  tags)

References _sort_by_path().

◆ dt_map_location_update_images()

◆ dt_map_location_update_locations()

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