![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/collection.h"
#include "common/darktable.h"
#include "common/debug.h"
#include "common/gpx.h"
#include "common/geo.h"
#include "common/image_cache.h"
#include "common/mipmap_cache.h"
#include "common/undo.h"
#include "control/conf.h"
#include "control/control.h"
#include "dtgtk/thumbtable.h"
#include "gui/drag_and_drop.h"
#include "gui/draw.h"
#include "libs/lib.h"
#include "views/view.h"
#include "views/view_api.h"
#include <gdk/gdkkeysyms.h>
#include <osm-gps-map.h>
Data Structures | |
struct | dt_geo_position_t |
struct | dt_map_image_t |
struct | dt_map_t |
Macros | |
#define | UNCLASSIFIED -1 |
#define | NOISE -2 |
#define | CORE_POINT 1 |
#define | NOT_CORE_POINT 0 |
#define | LOG2(x) ((int)floor(log2(abs(x)))) |
#define | TILESIZE 256 |
#define | R 6371 |
Typedefs | |
typedef struct dt_geo_position_t | dt_geo_position_t |
typedef struct dt_map_image_t | dt_map_image_t |
typedef struct dt_map_t | dt_map_t |
typedef enum dt_map_thumb_t | dt_map_thumb_t |
Enumerations | |
enum | dt_map_thumb_t { DT_MAP_THUMB_THUMB = 0 , DT_MAP_THUMB_COUNT , DT_MAP_THUMB_NONE } |
Functions | |
static void | _view_map_center_on_location (const dt_view_t *view, gdouble lon, gdouble lat, gdouble zoom) |
static void | _view_map_center_on_bbox (const dt_view_t *view, gdouble lon1, gdouble lat1, gdouble lon2, gdouble lat2) |
static void | _view_map_show_osd (const dt_view_t *view) |
static void | _view_map_set_map_source (const dt_view_t *view, OsmGpsMapSource_t map_source) |
static void | _view_map_set_map_source_g_object (const dt_view_t *view, OsmGpsMapSource_t map_source) |
static void | _view_map_check_preference_changed (gpointer instance, gpointer user_data) |
static GObject * | _view_map_add_marker (const dt_view_t *view, dt_geo_map_display_t type, GList *points) |
static gboolean | _view_map_remove_marker (const dt_view_t *view, dt_geo_map_display_t type, GObject *marker) |
static void | _view_map_add_location (const dt_view_t *view, dt_map_location_data_t *g, const guint locid) |
static void | _view_map_location_action (const dt_view_t *view, const int action) |
static void | _view_map_drag_set_icon (const dt_view_t *self, GdkDragContext *context, const int32_t imgid, const int count) |
static void | _view_map_collection_changed (gpointer instance, dt_collection_change_t query_change, dt_collection_properties_t changed_property, gpointer imgs, int next, gpointer user_data) |
static void | _view_map_selection_changed (gpointer instance, gpointer user_data) |
static void | _view_map_geotag_changed (gpointer instance, GList *imgs, const int locid, gpointer user_data) |
static void | _view_map_update_location_geotag (dt_view_t *self) |
static void | _view_map_filmstrip_activate_callback (gpointer instance, int32_t imgid, gpointer user_data) |
static void | _drag_and_drop_received (GtkWidget *widget, GdkDragContext *context, gint x, gint y, GtkSelectionData *selection_data, guint target_type, guint time, gpointer data) |
static void | _view_map_dnd_get_callback (GtkWidget *widget, GdkDragContext *context, GtkSelectionData *selection_data, guint target_type, guint time, dt_view_t *self) |
static void | _view_map_changed_callback (OsmGpsMap *map, dt_view_t *self) |
static gboolean | _view_map_scroll_event (GtkWidget *w, GdkEventScroll *event, dt_view_t *self) |
static gboolean | _view_map_button_press_callback (GtkWidget *w, GdkEventButton *e, dt_view_t *self) |
static gboolean | _view_map_button_release_callback (GtkWidget *w, GdkEventButton *e, dt_view_t *self) |
static gboolean | _view_map_motion_notify_callback (GtkWidget *w, GdkEventMotion *e, dt_view_t *self) |
static gboolean | _view_map_drag_motion_callback (GtkWidget *widget, GdkDragContext *dc, gint x, gint y, guint time, dt_view_t *self) |
static gboolean | _view_map_dnd_failed_callback (GtkWidget *widget, GdkDragContext *drag_context, GtkDragResult result, dt_view_t *self) |
static void | _dbscan (dt_geo_position_t *points, unsigned int num_points, double epsilon, unsigned int minpts) |
static gboolean | _view_map_prefs_changed (dt_map_t *lib) |
static void | _view_map_build_main_query (dt_map_t *lib) |
static gboolean | _view_map_center_on_image_list (dt_view_t *self, const char *table) |
static void | _view_map_center_on_image (dt_view_t *self, const int32_t imgid) |
static OsmGpsMapPolygon * | _view_map_add_polygon_location (dt_map_t *lib, dt_location_draw_t *ld) |
static gboolean | _view_map_remove_polygon (const dt_view_t *view, OsmGpsMapPolygon *polygon) |
static OsmGpsMapImage * | _view_map_draw_location (dt_map_t *lib, dt_location_draw_t *ld, const gboolean main) |
static void | _view_map_remove_location (dt_map_t *lib, dt_location_draw_t *ld) |
const char * | name (const dt_view_t *self) |
uint32_t | view (const dt_view_t *self) |
static float | deg2rad (float deg) |
static int | latlon2zoom (int pix_height, int pix_width, float lat1, float lat2, float lon1, float lon2) |
static void | osm_gps_map_zoom_fit_bbox (OsmGpsMap *map, float latitude1, float latitude2, float longitude1, float longitude2) |
static void | _toast_log_lat_lon (const float lat, const float lon) |
static GdkPixbuf * | _view_map_images_count (const int nb_images, const gboolean same_loc, double *count_width, double *count_height) |
static GdkPixbuf * | _init_image_pin () |
static GdkPixbuf * | _init_place_pin () |
static GdkPixbuf * | _draw_ellipse (const float dlongitude, const float dlatitude, const gboolean main) |
static GdkPixbuf * | _draw_rectangle (const float dlongitude, const float dlatitude, const gboolean main) |
void | expose (dt_view_t *self, cairo_t *cri, int32_t width, int32_t height, int32_t pointerx, int32_t pointery) |
static void | _view_changed (gpointer instance, dt_view_t *old_view, dt_view_t *new_view, dt_view_t *self) |
void | init (dt_view_t *self) |
void | cleanup (dt_view_t *self) |
void | configure (dt_view_t *self, int wd, int ht) |
int | try_enter (dt_view_t *self) |
static void | _view_map_signal_change_raise (gpointer user_data) |
static gboolean | _view_map_signal_change_delayed (gpointer user_data) |
static void | _view_map_signal_change_wait (dt_view_t *self, const int time_out) |
static gboolean | _view_map_redraw (gpointer user_data) |
static void | _view_map_angles (dt_map_t *lib, const gint pixels, const float lat, const float lon, float *dlat_min, float *dlon_min) |
static void | _view_map_thumb_angles (dt_map_t *lib, const float lat, const float lon, float *dlat_min, float *dlon_min) |
static float | _view_map_angles_to_pixels (const dt_map_t *lib, const float lat0, const float lon0, const float angle) |
static double | _view_map_get_angles_ratio (const dt_map_t *lib, const float lat0, const float lon0) |
static GdkPixbuf * | _draw_location (dt_map_t *lib, int *width, int *height, dt_map_location_data_t *data, const gboolean main) |
dt_location_draw_t * | _others_location_draw (dt_map_t *lib, const int locid) |
GList * | _others_location (GList *others, const int locid) |
static void | _view_map_delete_other_location (dt_map_t *lib, GList *other) |
static void | _view_map_draw_main_location (dt_map_t *lib, dt_location_draw_t *ld) |
static void | _view_map_draw_other_locations (dt_map_t *lib, dt_map_box_t *bbox) |
static GdkPixbuf * | _draw_image (const int32_t imgid, int *width, int *height, const int group_count, const gboolean group_same_loc, const uint32_t frame, const gboolean blocking, const int thumbnail, dt_view_t *self) |
static gboolean | _view_map_draw_image (dt_map_image_t *entry, const gboolean blocking, const int thumbnail, dt_view_t *self) |
static gboolean | _view_map_draw_images (gpointer user_data) |
static void | _view_map_get_bounding_box (dt_map_t *lib, dt_map_box_t *bbox) |
static void | _view_map_changed_callback_delayed (gpointer user_data) |
static gboolean | _view_map_changed_callback_wait (gpointer user_data) |
static dt_map_image_t * | _view_map_get_entry_at_pos (dt_view_t *self, const double x, const double y) |
static GList * | _view_map_get_imgs_at_pos (dt_view_t *self, const float x, const float y, int *offset_x, int *offset_y, const gboolean first_on) |
gint | _find_image_in_images (gconstpointer a, gconstpointer b) |
static gboolean | _display_next_image (dt_view_t *self, dt_map_image_t *entry, const gboolean next) |
static gboolean | _zoom_and_center (const gint x, const gint y, const int direction, dt_view_t *self) |
static gboolean | _view_map_display_selected (gpointer user_data) |
void | enter (dt_view_t *self) |
void | leave (dt_view_t *self) |
static OsmGpsMapImage * | _view_map_add_pin (const dt_view_t *view, GList *points) |
static gboolean | _view_map_remove_pin (const dt_view_t *view, OsmGpsMapImage *pin) |
static void | _track_add_point (OsmGpsMapTrack *track, OsmGpsMapPoint *point, OsmGpsMapPoint *prev_point) |
static OsmGpsMapTrack * | _view_map_add_track (const dt_view_t *view, GList *points) |
static gboolean | _view_map_remove_track (const dt_view_t *view, OsmGpsMapTrack *track) |
static OsmGpsMapImage * | _view_map_draw_single_image (const dt_view_t *view, GList *points) |
Variables | |
static const int | thumb_size = 128 |
static const int | thumb_border = 2 |
static const int | image_pin_size = 13 |
static const int | place_pin_size = 72 |
static const int | cross_size = 16 |
static const int | max_size = 1024 |
static const uint32_t | thumb_frame_color = 0x000000aa |
static const uint32_t | thumb_frame_sel_color = 0xffffffee |
static const uint32_t | thumb_frame_gpx_color = 0xff000099 |
static const uint32_t | pin_outer_color = 0x0000aaaa |
static const uint32_t | pin_inner_color = 0xffffffee |
static const uint32_t | pin_line_color = 0x000000ff |
static int | first_times = 3 |
#define CORE_POINT 1 |
#define LOG2 | ( | x | ) | ((int)floor(log2(abs(x)))) |
#define NOISE -2 |
#define NOT_CORE_POINT 0 |
#define R 6371 |
#define TILESIZE 256 |
#define UNCLASSIFIED -1 |
typedef struct dt_geo_position_t dt_geo_position_t |
typedef struct dt_map_image_t dt_map_image_t |
typedef enum dt_map_thumb_t dt_map_thumb_t |
enum dt_map_thumb_t |
|
static |
Referenced by _view_map_changed_callback_delayed().
|
static |
References _view_map_draw_image(), dt_view_t::data, dt_control_set_mouse_over_id(), DT_MAP_THUMB_THUMB, FALSE, dt_map_image_t::group, dt_map_image_t::group_count, dt_map_image_t::image, dt_map_image_t::imgid, dt_map_t::map, dt_map_t::nb_points, dt_map_t::points, and TRUE.
Referenced by _view_map_motion_notify_callback(), and _view_map_scroll_event().
|
static |
References _view_map_collection_changed(), _view_map_draw_main_location(), _view_map_get_angles_ratio(), _view_map_signal_change_wait(), _view_map_update_location_geotag(), darktable, dt_location_draw_t::data, dt_view_t::data, dt_map_location_data_t::delta2, DND_TARGET_IMGID, dt_control_signal_block_by_func(), dt_control_signal_unblock_by_func(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_image_set_locations(), DT_SIGNAL_GEOTAG_CHANGED, FALSE, dt_map_location_data_t::lat, lat, dt_map_t::loc, dt_map_location_data_t::lon, lon, dt_map_t::main, dt_map_t::map, dt_map_location_data_t::ratio, darktable_t::signals, dt_map_t::start_drag_offset_x, dt_map_t::start_drag_offset_y, and TRUE.
Referenced by init().
|
static |
References cross_size, dt_draw_cairo_to_gdk_pixbuf(), DT_GUI_COLOR_MAP_LOC_SHAPE_DEF, DT_GUI_COLOR_MAP_LOC_SHAPE_HIGH, DT_GUI_COLOR_MAP_LOC_SHAPE_LOW, dt_gui_gtk_set_source_rgb(), DT_PIXEL_APPLY_DPI, FALSE, M_PI, main(), max_size, size, and TRUE.
Referenced by _draw_location().
|
static |
References _view_map_images_count(), dt_mipmap_buffer_t::buf, darktable, dt_view_t::data, DT_MAP_THUMB_COUNT, DT_MAP_THUMB_THUMB, DT_MIPMAP_BLOCKING, dt_mipmap_cache_get, dt_mipmap_cache_get_matching_size(), dt_mipmap_cache_release, DT_PIXEL_APPLY_DPI, height, dt_mipmap_buffer_t::height, dt_map_t::image_pin, image_pin_size, darktable_t::mipmap_cache, thumb_border, thumb_size, TRUE, width, and dt_mipmap_buffer_t::width.
Referenced by _view_map_drag_set_icon(), _view_map_draw_image(), and _view_map_draw_single_image().
|
static |
References _draw_ellipse(), _draw_rectangle(), _view_map_angles_to_pixels(), dt_map_location_data_t::delta1, dt_map_location_data_t::delta2, draw(), height, dt_map_location_data_t::lat, dt_map_location_data_t::lon, main(), MAP_LOCATION_SHAPE_ELLIPSE, MAP_LOCATION_SHAPE_RECTANGLE, dt_map_location_data_t::ratio, dt_map_location_data_t::shape, and width.
Referenced by _view_map_draw_location(), and _view_map_motion_notify_callback().
|
static |
gint _find_image_in_images | ( | gconstpointer | a, |
gconstpointer | b | ||
) |
References dt_map_image_t::imgid.
|
static |
References dt_draw_cairo_to_gdk_pixbuf(), DT_PIXEL_APPLY_DPI, dtgtk_cairo_paint_map_pin(), image_pin_size, size, thumb_border, thumb_frame_color, thumb_size, and TRUE.
Referenced by init().
|
static |
References dt_draw_cairo_to_gdk_pixbuf(), DT_PIXEL_APPLY_DPI, M_PI, pin_inner_color, pin_line_color, pin_outer_color, place_pin_size, size, and TRUE.
Referenced by init().
GList * _others_location | ( | GList * | others, |
const int | locid | ||
) |
References dt_location_draw_t::data, and dt_location_draw_t::id.
Referenced by _view_map_draw_other_locations(), and _view_map_location_action().
dt_location_draw_t * _others_location_draw | ( | dt_map_t * | lib, |
const int | locid | ||
) |
References dt_location_draw_t::data, dt_location_draw_t::id, dt_map_t::loc, and dt_map_t::others.
Referenced by _view_map_draw_location(), and _view_map_draw_main_location().
|
static |
References dt_toast_log(), dt_util_latitude_str(), dt_util_longitude_str(), lat, and lon.
Referenced by _view_map_drag_motion_callback(), _view_map_motion_notify_callback(), and _view_map_scroll_event().
|
static |
References double(), dt_gpx_geodesic_distance(), dt_gpx_geodesic_intermediate_point(), DT_MINIMUM_ANGULAR_DELTA_FOR_GEODESIC, DT_MINIMUM_DISTANCE_FOR_GEODESIC, f(), FALSE, lat, lon, and TRUE.
Referenced by _view_map_add_track().
|
static |
References _view_map_location_action(), and MAP_LOCATION_ACTION_REMOVE.
Referenced by cleanup(), gui_cleanup(), gui_init(), and init().
|
static |
References _view_map_center_on_bbox(), _view_map_draw_main_location(), _view_map_get_angles_ratio(), _view_map_thumb_angles(), _view_map_update_location_geotag(), bbox, dt_map_t::bbox, dt_location_draw_t::data, dt_map_location_data_t::delta1, dt_map_location_data_t::delta2, dt_map_location_convert_polygons(), dt_location_draw_t::id, dt_map_location_data_t::lat, lat, dt_map_box_t::lat1, dt_map_box_t::lat2, dt_map_location_data_t::lon, lon, dt_map_box_t::lon1, dt_map_box_t::lon2, dt_map_t::map, MAP_LOCATION_SHAPE_POLYGONS, dt_map_location_data_t::plg_pts, dt_map_location_data_t::polygons, dt_map_location_data_t::ratio, dt_map_location_data_t::shape, and view().
Referenced by enter().
|
static |
References _view_map_add_pin(), _view_map_add_track(), _view_map_draw_single_image(), MAP_DISPLAY_POINT, MAP_DISPLAY_POLYGON, MAP_DISPLAY_THUMB, MAP_DISPLAY_TRACK, type, and view().
Referenced by enter().
|
static |
References dt_map_t::map, dt_map_t::place_pin, and view().
Referenced by _view_map_add_marker().
|
static |
Referenced by _view_map_draw_location().
|
static |
References _track_add_point(), FALSE, dt_map_t::map, TRUE, and view().
Referenced by _view_map_add_marker().
|
static |
References lat, lon, and dt_map_t::map.
Referenced by _view_map_thumb_angles().
|
static |
References dt_map_t::map.
Referenced by _draw_location().
Referenced by _view_map_changed_callback_delayed(), and init().
|
static |
References _view_map_center_on_location(), _view_map_collection_changed(), _view_map_geotag_changed(), _view_map_get_imgs_at_pos(), darktable, dt_location_draw_t::data, dt_view_t::data, dt_map_t::drag, dt_conf_get_bool(), dt_control_set_mouse_over_id(), dt_control_signal_block_by_func(), dt_control_signal_unblock_by_func(), dt_ctl_switch_mode_to(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_map_location_included(), dt_modifier_is(), DT_SIGNAL_GEOTAG_CHANGED, FALSE, dt_location_draw_t::id, lat, dt_map_t::loc, lon, dt_map_t::main, dt_map_t::map, MAP_LOCATION_SHAPE_POLYGONS, MIN, dt_map_t::others, dt_map_t::selected_images, dt_map_location_data_t::shape, darktable_t::signals, dt_map_t::start_drag, dt_map_t::start_drag_offset_x, dt_map_t::start_drag_offset_y, dt_map_t::start_drag_x, dt_map_t::start_drag_y, and TRUE.
Referenced by init().
|
static |
References dt_view_t::data, dt_map_t::drag, FALSE, dt_map_t::loc, dt_map_t::start_drag, dt_map_t::start_drag_offset_x, and dt_map_t::start_drag_offset_y.
Referenced by init().
|
static |
References dt_map_t::map, osm_gps_map_zoom_fit_bbox(), and view().
Referenced by _view_map_add_location(), _view_map_center_on_image_list(), and enter().
|
static |
|
static |
References lat, lon, dt_map_t::map, and view().
Referenced by _view_map_button_press_callback(), _view_map_center_on_image(), and enter().
References _view_map_changed_callback_wait(), dt_view_t::data, first_times, and dt_map_t::time_out.
Referenced by init().
|
static |
References _dbscan(), _view_map_build_main_query(), _view_map_draw_images(), _view_map_draw_main_location(), _view_map_draw_other_locations(), _view_map_get_bounding_box(), _view_map_prefs_changed(), dt_map_t::bbox, dt_view_t::data, dt_act_on_get_images(), dt_conf_get_int(), dt_conf_set_float(), dt_conf_set_int(), DT_DEBUG_SQLITE3_BIND_DOUBLE, DT_DEBUG_SQLITE3_CLEAR_BINDINGS, DT_DEBUG_SQLITE3_RESET, dt_get_times(), DT_MAP_THUMB_NONE, dt_show_times(), FALSE, dt_map_image_t::group, dt_map_image_t::group_count, dt_map_image_t::group_same_loc, dt_map_image_t::image, dt_map_t::images, dt_map_image_t::imgid, lat, dt_map_box_t::lat1, dt_map_box_t::lat2, dt_map_image_t::latitude, dt_map_t::loc, lon, dt_map_box_t::lon1, dt_map_box_t::lon2, dt_map_image_t::longitude, M_PI, dt_map_t::main, dt_map_t::main_query, dt_map_t::map, dt_map_t::nb_points, NOISE, dt_map_t::points, R, dt_map_image_t::selected_in_group, thumb_size, dt_map_t::thumbnail, dt_map_t::timeout_event_source, TRUE, and UNCLASSIFIED.
Referenced by _view_map_changed_callback_wait().
|
static |
References _view_map_changed_callback_delayed(), dt_view_t::data, FALSE, dt_map_t::time_out, and TRUE.
Referenced by _view_map_changed_callback().
|
static |
References _view_map_prefs_changed(), dt_map_t::map, and view().
|
static |
References _view_map_center_on_image_list(), darktable, dt_view_t::data, dt_conf_get_bool(), dt_location_draw_t::id, dt_map_t::loc, dt_map_t::main, dt_map_t::map, dt_view_manager_t::proxy, dt_view_manager_t::view, and darktable_t::view_manager.
Referenced by _drag_and_drop_received(), _view_map_button_press_callback(), _view_map_signal_change_raise(), cleanup(), and init().
References _view_map_remove_location(), dt_location_draw_t::data, dt_map_location_free_polygons(), dt_map_t::loc, and dt_map_t::others.
Referenced by _view_map_location_action().
|
static |
References _view_map_center_on_image_list(), dt_view_t::data, dt_conf_get_float(), dt_conf_get_int(), FALSE, lat, lon, and dt_map_t::map.
Referenced by enter().
|
static |
Referenced by init().
|
static |
References _BYTE, _DWORD, dt_view_t::data, DND_TARGET_IMGID, DND_TARGET_URI, dt_image_full_path(), dt_location_draw_t::id, dt_map_t::loc, dt_map_t::main, PATH_MAX, dt_map_t::selected_images, and TRUE.
Referenced by init().
|
static |
References _toast_log_lat_lon(), dt_view_t::data, FALSE, lat, lon, and dt_map_t::map.
Referenced by init().
|
static |
References _draw_image(), dt_view_t::data, dt_gui_add_class(), DT_PIXEL_APPLY_DPI, height, image_pin_size, dt_map_t::start_drag_offset_x, dt_map_t::start_drag_offset_y, thumb_border, thumb_frame_sel_color, dt_map_t::thumbnail, and TRUE.
Referenced by _view_map_motion_notify_callback(), and enter().
|
static |
References _draw_image(), dt_view_t::data, FALSE, dt_map_image_t::group_count, dt_map_image_t::group_same_loc, dt_map_image_t::height, dt_map_image_t::image, dt_map_image_t::imgid, dt_map_image_t::latitude, dt_map_image_t::longitude, dt_map_t::map, dt_map_image_t::selected_in_group, thumb_frame_color, thumb_frame_sel_color, dt_map_image_t::thumbnail, TRUE, and dt_map_image_t::width.
Referenced by _display_next_image(), _view_map_draw_images(), and _view_map_motion_notify_callback().
|
static |
|
static |
References _draw_location(), _others_location_draw(), _view_map_add_polygon_location(), dt_location_draw_t::data, draw(), dt_map_location_get_polygons(), dt_location_draw_t::id, dt_map_location_data_t::lat, dt_map_t::loc, dt_map_location_data_t::lon, main(), dt_map_t::main, dt_map_t::map, 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_main_location(), and _view_map_draw_other_locations().
|
static |
References _others_location_draw(), _view_map_draw_location(), _view_map_remove_location(), dt_conf_get_bool(), FALSE, dt_location_draw_t::id, dt_map_t::loc, dt_location_draw_t::location, dt_map_t::main, dt_map_t::others, and TRUE.
Referenced by _drag_and_drop_received(), _view_map_add_location(), _view_map_changed_callback_delayed(), and _view_map_scroll_event().
|
static |
References _others_location(), _view_map_draw_location(), _view_map_remove_location(), bbox, dt_location_draw_t::data, dt_conf_get_bool(), dt_map_location_get_locations_on_map(), dt_map_location_get_polygons(), FALSE, dt_location_draw_t::id, dt_map_t::loc, dt_location_draw_t::location, dt_map_t::main, MAP_LOCATION_SHAPE_POLYGONS, dt_map_t::others, dt_map_location_data_t::plg_pts, dt_map_location_data_t::polygons, and dt_map_location_data_t::shape.
Referenced by _view_map_changed_callback_delayed(), and _view_map_location_action().
|
static |
References _draw_image(), DT_MAP_THUMB_THUMB, dt_map_t::map, thumb_frame_gpx_color, TRUE, and view().
Referenced by _view_map_add_marker().
|
static |
References _view_map_center_on_image().
|
static |
References darktable, dt_view_t::data, dt_map_t::map, dt_view_manager_t::proxy, dt_view_manager_t::view, and darktable_t::view_manager.
Referenced by _view_map_button_press_callback(), _view_map_signal_change_raise(), cleanup(), and init().
|
static |
References dt_map_t::map.
Referenced by _drag_and_drop_received(), and _view_map_add_location().
|
static |
References bbox, dt_map_box_t::lat1, dt_map_box_t::lat2, dt_map_box_t::lon1, dt_map_box_t::lon2, and dt_map_t::map.
Referenced by _view_map_changed_callback_delayed().
|
static |
References dt_view_t::data, DT_PIXEL_APPLY_DPI, dt_map_image_t::height, dt_map_image_t::image, image_pin_size, dt_map_t::images, dt_map_t::map, and width.
Referenced by _view_map_motion_notify_callback(), and _view_map_scroll_event().
|
static |
References dt_view_t::data, DT_PIXEL_APPLY_DPI, dt_map_image_t::group, dt_map_image_t::group_count, dt_map_image_t::height, dt_map_image_t::image, image_pin_size, dt_map_t::images, dt_map_image_t::imgid, dt_map_t::map, dt_map_t::nb_points, dt_map_t::points, UNKNOWN_IMAGE, and width.
Referenced by _view_map_button_press_callback().
|
static |
References darktable, dt_gui_gtk_t::dpi_factor, dt_draw_cairo_to_gdk_pixbuf(), DT_GUI_COLOR_MAP_COUNT_BG, DT_GUI_COLOR_MAP_COUNT_DIFF_LOC, DT_GUI_COLOR_MAP_COUNT_SAME_LOC, dt_gui_gtk_set_source_rgb(), DT_PIXEL_APPLY_DPI, darktable_t::gui, image_pin_size, size, thumb_border, thumb_size, and TRUE.
Referenced by _draw_image().
References _others_location(), _view_map_delete_other_location(), _view_map_draw_other_locations(), _view_map_remove_location(), dt_map_t::bbox, dt_location_draw_t::id, dt_map_t::loc, dt_map_t::main, MAP_LOCATION_ACTION_REMOVE, dt_map_t::others, and view().
Referenced by _view_changed(), and enter().
|
static |
References _display_next_image(), _draw_location(), _toast_log_lat_lon(), _view_map_drag_set_icon(), _view_map_draw_image(), _view_map_draw_images(), _view_map_get_entry_at_pos(), dt_location_draw_t::data, dt_view_t::data, dt_map_t::drag, dt_control_set_mouse_over_id(), DT_MAP_THUMB_COUNT, DT_MAP_THUMB_THUMB, DT_PIXEL_APPLY_DPI, FALSE, dt_map_image_t::group_count, height, dt_location_draw_t::id, dt_map_image_t::image, dt_map_t::images, dt_map_image_t::imgid, dt_map_t::last_hovered_entry, lat, dt_map_t::loc, dt_location_draw_t::location, lon, dt_map_t::main, dt_map_t::map, n_targets_all, n_targets_internal, dt_map_t::selected_images, dt_map_t::start_drag, dt_map_t::start_drag_x, dt_map_t::start_drag_y, target_list_all, target_list_internal, dt_map_t::thumbnail, TRUE, and width.
Referenced by init().
|
static |
Referenced by _view_map_changed_callback_delayed(), and _view_map_check_preference_changed().
|
static |
References dt_view_t::data, FALSE, and dt_map_t::map.
Referenced by enter().
|
static |
References dt_location_draw_t::data, dt_location_draw_t::location, dt_map_t::map, MAP_LOCATION_SHAPE_POLYGONS, and dt_map_location_data_t::shape.
Referenced by _view_map_delete_other_location(), _view_map_draw_main_location(), _view_map_draw_other_locations(), _view_map_location_action(), and cleanup().
|
static |
References _view_map_remove_pin(), _view_map_remove_polygon(), _view_map_remove_track(), FALSE, dt_map_t::map, MAP_DISPLAY_NONE, MAP_DISPLAY_POINT, MAP_DISPLAY_POLYGON, MAP_DISPLAY_THUMB, MAP_DISPLAY_TRACK, type, and view().
Referenced by enter().
|
static |
References dt_map_t::map, and view().
Referenced by _view_map_remove_marker().
|
static |
Referenced by _view_map_remove_marker().
|
static |
References dt_map_t::map, and view().
Referenced by _view_map_remove_marker().
|
static |
References _display_next_image(), _toast_log_lat_lon(), _view_map_draw_main_location(), _view_map_get_entry_at_pos(), _view_map_signal_change_wait(), _view_map_update_location_geotag(), _zoom_and_center(), dt_location_draw_t::data, dt_view_t::data, dt_map_location_data_t::delta1, dt_map_location_data_t::delta2, dt_map_location_included(), dt_modifier_is(), FALSE, dt_location_draw_t::id, lat, dt_map_t::loc, lon, dt_map_t::main, dt_map_t::map, and TRUE.
Referenced by init().
|
static |
|
static |
References _view_map_set_map_source_g_object(), dt_conf_set_string(), dt_map_t::map_source, and view().
Referenced by enter().
|
static |
References dt_map_t::map, and view().
Referenced by _view_map_set_map_source(), enter(), and leave().
References dt_conf_get_bool(), dt_map_t::map, dt_map_t::osd, and view().
Referenced by enter().
|
static |
References _view_map_signal_change_raise(), dt_view_t::data, FALSE, dt_map_t::loc, dt_map_t::time_out, and TRUE.
Referenced by _view_map_signal_change_wait().
|
static |
References _view_map_collection_changed(), _view_map_geotag_changed(), darktable, dt_control_signal_block_by_func(), dt_control_signal_unblock_by_func(), DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_SIGNAL_GEOTAG_CHANGED, and darktable_t::signals.
Referenced by _view_map_signal_change_delayed(), and _view_map_signal_change_wait().
References _view_map_signal_change_delayed(), _view_map_signal_change_raise(), dt_view_t::data, dt_map_t::loc, and dt_map_t::time_out.
Referenced by _drag_and_drop_received(), and _view_map_scroll_event().
|
static |
References _view_map_angles(), lat, lon, dt_map_t::thumb_lat_angle, dt_map_t::thumb_lon_angle, and thumb_size.
Referenced by _view_map_add_location().
References darktable, dt_location_draw_t::data, dt_view_t::data, DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_map_location_set_data(), dt_map_location_update_images(), DT_SIGNAL_TAG_CHANGED, dt_location_draw_t::id, dt_map_t::loc, dt_map_t::main, and darktable_t::signals.
Referenced by _drag_and_drop_received(), _view_map_add_location(), and _view_map_scroll_event().
|
static |
References dt_view_t::data, FALSE, dt_map_t::map, and TRUE.
Referenced by _view_map_scroll_event().
References _view_changed(), _view_map_check_preference_changed(), _view_map_collection_changed(), _view_map_geotag_changed(), _view_map_remove_location(), _view_map_selection_changed(), darktable, dt_location_draw_t::data, dt_view_t::data, DT_DEBUG_CONTROL_SIGNAL_DISCONNECT, dt_map_location_free_polygons(), darktable_t::gui, dt_location_draw_t::id, dt_map_t::image_pin, dt_map_t::images, dt_map_t::loc, dt_map_t::main, dt_map_t::main_query, dt_map_t::map, dt_map_t::osd, dt_map_t::others, dt_map_t::place_pin, dt_map_t::points, and darktable_t::signals.
|
static |
References M_PI.
Referenced by osm_gps_map_zoom_fit_bbox().
References _view_map_add_location(), _view_map_add_marker(), _view_map_center_on_bbox(), _view_map_center_on_location(), _view_map_display_selected(), _view_map_drag_set_icon(), _view_map_filmstrip_activate_callback(), _view_map_location_action(), _view_map_redraw(), _view_map_remove_marker(), _view_map_set_map_source(), _view_map_set_map_source_g_object(), _view_map_show_osd(), darktable, dt_view_t::data, dt_map_t::drag, DT_DEBUG_CONTROL_SIGNAL_CONNECT, DT_SIGNAL_VIEWMANAGER_THUMBTABLE_ACTIVATE, dt_map_t::entering, FALSE, dt_map_t::loc, dt_map_t::map, dt_map_t::map_source, dt_view_manager_t::proxy, dt_map_t::selected_images, darktable_t::signals, dt_map_t::start_drag, dt_map_t::start_drag_offset_x, dt_map_t::start_drag_offset_y, TRUE, dt_view_manager_t::view, and darktable_t::view_manager.
void expose | ( | dt_view_t * | self, |
cairo_t * | cri, | ||
int32_t | width, | ||
int32_t | height, | ||
int32_t | pointerx, | ||
int32_t | pointery | ||
) |
References dt_view_t::data, dt_map_t::entering, and FALSE.
References _drag_and_drop_received(), _init_image_pin(), _init_place_pin(), _view_changed(), _view_map_build_main_query(), _view_map_button_press_callback(), _view_map_button_release_callback(), _view_map_changed_callback(), _view_map_check_preference_changed(), _view_map_collection_changed(), _view_map_dnd_failed_callback(), _view_map_dnd_get_callback(), _view_map_drag_motion_callback(), _view_map_geotag_changed(), _view_map_motion_notify_callback(), _view_map_scroll_event(), _view_map_selection_changed(), darktable, dt_view_t::data, dt_map_t::drop_filmstrip_activated, dt_conf_get_bool(), dt_conf_get_string_const(), dt_conf_set_string(), DT_DEBUG_CONTROL_SIGNAL_CONNECT, dt_lua_gtk_wrap, dt_lua_module_entry_get_type(), dt_lua_type_register_type(), DT_SIGNAL_COLLECTION_CHANGED, DT_SIGNAL_GEOTAG_CHANGED, DT_SIGNAL_PREFERENCES_CHANGE, DT_SIGNAL_SELECTION_CHANGED, DT_SIGNAL_VIEWMANAGER_VIEW_CHANGED, FALSE, darktable_t::gui, dt_location_draw_t::id, dt_map_t::image_pin, dt_map_t::last_hovered_entry, dt_map_t::loc, dt_location_draw_t::location, darktable_t::lua_state, dt_map_t::main, dt_map_t::main_query, dt_map_t::map, dt_map_t::map_source, dt_view_t::module_name, n_targets_internal, dt_map_t::osd, dt_map_t::others, dt_map_t::place_pin, dt_view_manager_t::proxy, darktable_t::signals, target_list_internal, dt_map_t::thumb_lat_angle, dt_map_t::thumb_lon_angle, dt_map_t::time_out, dt_map_t::timeout_event_source, TRUE, dt_view_manager_t::view, and darktable_t::view_manager.
|
static |
References LOG2, M_PI, MIN, and TILESIZE.
Referenced by osm_gps_map_zoom_fit_bbox().
References _view_map_filmstrip_activate_callback(), _view_map_set_map_source_g_object(), darktable, dt_view_t::data, dt_map_t::drop_filmstrip_activated, DT_DEBUG_CONTROL_SIGNAL_DISCONNECT, dt_ui_center_base(), FALSE, darktable_t::gui, dt_map_t::map, dt_view_manager_t::proxy, dt_map_t::selected_images, darktable_t::signals, dt_gui_gtk_t::ui, dt_view_manager_t::view, and darktable_t::view_manager.
const char * name | ( | const dt_view_t * | self | ) |
|
static |
References deg2rad(), and latlon2zoom().
Referenced by _view_map_center_on_bbox().
int try_enter | ( | dt_view_t * | self | ) |
uint32_t view | ( | const dt_view_t * | self | ) |
References DT_VIEW_MAP.
Referenced by _view_map_add_location(), _view_map_add_marker(), _view_map_add_pin(), _view_map_add_track(), _view_map_center_on_bbox(), _view_map_center_on_location(), _view_map_check_preference_changed(), _view_map_draw_single_image(), _view_map_location_action(), _view_map_remove_marker(), _view_map_remove_pin(), _view_map_remove_track(), _view_map_set_map_source(), _view_map_set_map_source_g_object(), and _view_map_show_osd().
|
static |
Referenced by _draw_ellipse(), and _draw_rectangle().
|
static |
Referenced by _view_map_changed_callback().
|
static |
|
static |
Referenced by _draw_ellipse(), _draw_rectangle(), and modify_roi_in().
|
static |
Referenced by _init_place_pin().
|
static |
Referenced by _init_place_pin().
|
static |
Referenced by _init_place_pin().
|
static |
Referenced by _init_place_pin().
|
static |
Referenced by _draw_image(), _init_image_pin(), _view_map_drag_set_icon(), and _view_map_images_count().
|
static |
Referenced by _init_image_pin(), and _view_map_draw_image().
|
static |
Referenced by _view_map_draw_single_image().
|
static |
Referenced by _view_map_drag_set_icon(), and _view_map_draw_image().
|
static |