![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "system/macros.h"#include "system/openmp.h"#include "common/logging.h"#include "common/times.h"#include "caches/pixelpipe_cache_alloc.h"#include "common/conf.h"#include "develop/imageop.h"#include "develop/masks.h"#include "develop/masks_gui.h"#include "develop/masks/masks_functions.h"#include "develop/masks/masks_touched.h"#include "math/openmp_maths.h"#include "widgets/accelerators.h"
Include dependency graph for circle.c:Go to the source code of this file.
Macros | |
| #define | FADING_MIN 0.0005f |
| #define | FADING_MAX 1.0f |
| #define | BORDER_MIN 0.00005f |
| #define | BORDER_MAX 0.5f |
Variables | |
| const dt_masks_functions_t | dt_masks_functions_circle |
|
static |
Definition at line 254 of file circle.c.
References _init_fading(), dt_masks_node_circle_t::border, CLAMPF, dt_masks_apply_increment(), dt_masks_gui_form_create(), FADING_MAX, FADING_MIN, IS_NULL_PTR, L, and dt_masks_form_t::points.
Referenced by _circle_events_mouse_scrolled(), and _circle_set_interaction_value().
|
static |
Definition at line 271 of file circle.c.
References _init_size(), dt_masks_apply_increment(), dt_masks_gui_form_create(), IS_NULL_PTR, L, dt_masks_form_gui_t::node_hovered, and dt_masks_form_t::points.
Referenced by _circle_events_mouse_scrolled(), and _circle_set_interaction_value().
|
static |
Circle-specific inside/border hit testing adapter.
Definition at line 110 of file circle.c.
References _circle_get_distance(), dist(), and L.
Referenced by _find_closest_handle().
|
static |
Definition at line 1062 of file circle.c.
References dt_masks_duplicate_points().
|
static |
Definition at line 343 of file circle.c.
References _circle_init_new(), dt_masks_form_gui_t::creation, dt_masks_form_gui_t::creation_module, dt_masks_form_gui_t::delta, dt_masks_form_gui_t::dev, DT_MASKS_CLONE, DT_MASKS_EDIT_FULL, dt_masks_gui_form_save_creation(), dt_masks_set_source_pos_initial_state(), dt_modifier_is(), DT_PRIMARY_MASK, dt_masks_form_gui_t::edit_mode, dt_masks_form_gui_t::form_selected, dt_masks_form_gui_t::handle_hovered, IS_NULL_PTR, L, dt_masks_form_t::points, dt_masks_form_gui_t::points, dt_masks_form_gui_t::pos, dt_masks_form_gui_t::source_selected, state, and dt_masks_form_t::type.
|
static |
Definition at line 398 of file circle.c.
References dt_masks_form_gui_t::form_dragging, and dt_masks_form_gui_t::source_dragging.
|
static |
|
static |
Definition at line 427 of file circle.c.
References dt_masks_node_circle_t::center, dt_masks_form_gui_t::creation, dt_masks_form_gui_t::dev, dt_masks_gui_delta_to_raw_norm(), dt_masks_gui_form_create(), dt_masks_form_gui_t::form_dragging, IS_NULL_PTR, L, dt_masks_form_t::points, dt_masks_form_t::source, and dt_masks_form_gui_t::source_dragging.
|
static |
Definition at line 301 of file circle.c.
References _change_fading(), _change_size(), _init_fading(), _init_opacity(), _init_size(), dt_masks_form_gui_t::creation, dt_masks_form_gui_t::dev, dt_masks_form_change_opacity(), DT_MASKS_INCREMENT_OFFSET, DT_MASKS_INCREMENT_SCALE, DT_MASKS_INTERACTION_FADING, DT_MASKS_INTERACTION_OPACITY, DT_MASKS_INTERACTION_SIZE, dt_masks_form_gui_t::form_selected, and L.
|
static |
Definition at line 567 of file circle.c.
References _circle_get_creation_preview(), dt_develop_t::border, dt_masks_form_gui_t::border_selected, dt_masks_form_gui_t::creation, dt_masks_form_gui_t::dev, dt_masks_functions_t::draw_shape, dt_draw_shape_lines(), DT_MASKS_DASH_STICK, dt_masks_draw_preview_shape(), dt_masks_draw_source(), dt_masks_draw_source_preview(), dt_masks_form_is_clone(), dt_masks_functions_circle, dt_masks_get_visible_form(), DT_MASKS_NO_DASH, dt_masks_preview_buffers_cleanup(), FALSE, dt_masks_form_gui_t::form_dragging, dt_masks_form_gui_t::form_selected, dt_masks_form_gui_t::group_selected, IS_NULL_PTR, L, dt_masks_gui_center_point_t::main, dt_masks_form_gui_t::points, dt_masks_form_gui_t::pos, preview, selected, dt_masks_gui_center_point_t::source, and TRUE.
|
static |
Definition at line 698 of file circle.c.
References _points_to_transform(), dt_dev_pixelpipe_t::dev, dt_dev_distort_transform_plus(), DT_DEV_TRANSFORM_DIR_BACK_INCL, dt_masks_points_bounding_box(), DT_MASKS_RASTER_EMPTY, DT_MASKS_RASTER_ERROR, DT_MASKS_RASTER_OK, dt_pixelpipe_cache_free_align, height, dt_dev_pixelpipe_t::iheight, IS_NULL_PTR, dt_dev_pixelpipe_t::iwidth, L, pipe, and width.
Referenced by _circle_get_mask().
|
static |
Definition at line 149 of file circle.c.
References _circle_get_creation_values(), _circle_get_points(), dt_develop_t::border, dt_masks_form_gui_t::dev, dt_masks_form_is_clone(), dt_masks_gui_cursor_to_raw_norm(), dt_masks_preview_add_clone_source(), dt_masks_preview_buffers_cleanup(), L, and preview.
Referenced by _circle_events_post_expose().
|
static |
Definition at line 124 of file circle.c.
References dt_conf_get_float(), dt_masks_form_uses_spot_defaults(), and L.
Referenced by _circle_get_creation_preview(), and _circle_init_new().
|
static |
Definition at line 56 of file circle.c.
References dist(), dt_masks_gui_points_reach(), dt_masks_point_in_form_exact(), IS_NULL_PTR, L, dt_masks_form_gui_t::points, dt_masks_form_gui_points_t::source, and x.
Referenced by _circle_distance_cb().
|
static |
Definition at line 215 of file circle.c.
References dt_masks_node_circle_t::center, FALSE, IS_NULL_PTR, L, M_PI_F, dt_masks_form_t::points, and TRUE.
|
static |
Definition at line 198 of file circle.c.
References DT_MASKS_INTERACTION_FADING, DT_MASKS_INTERACTION_SIZE, IS_NULL_PTR, L, dt_masks_form_t::points, and dt_masks_node_circle_t::radius.
Referenced by _circle_set_interaction_value().
|
static |
Definition at line 733 of file circle.c.
References __OMP_PARALLEL_FOR__, __OMP_PARALLEL_FOR_SIMD__, __OMP_SIMD__, _circle_get_area(), CLIP, DT_DEBUG_MASKS, DT_DEBUG_PERF, dt_dev_distort_backtransform_plus(), DT_DEV_TRANSFORM_DIR_BACK_INCL, dt_get_debug_flags(), dt_get_num_openmp_threads(), dt_get_wtime(), DT_MASKS_RASTER_ERROR, DT_MASKS_RASTER_OK, dt_pixelpipe_cache_alloc_align_float_cache, dt_pixelpipe_cache_free_align, dt_print(), f, height, i, dt_dev_pixelpipe_t::iheight, IS_NULL_PTR, dt_dev_pixelpipe_t::iwidth, L, l2, MIN, p, piece, pipe, and width.
|
static |
Definition at line 837 of file circle.c.
References __OMP_PARALLEL_FOR__, DT_DEBUG_MASKS, DT_DEBUG_PERF, dt_dev_distort_transform_plus(), DT_DEV_TRANSFORM_DIR_BACK_INCL, dt_get_debug_flags(), dt_get_num_openmp_threads(), dt_get_wtime(), DT_MASKS_RASTER_EMPTY, DT_MASKS_RASTER_ERROR, DT_MASKS_RASTER_OK, dt_masks_roundup(), dt_masks_sample_grid_backtransform(), dt_masks_sample_grid_interpolate(), dt_masks_touched_none(), dt_masks_touched_set(), dt_pixelpipe_cache_alloc_align_float_cache, dt_pixelpipe_cache_free_align, dt_print(), f, gh(), height, dt_iop_roi_t::height, i, dt_dev_pixelpipe_t::iheight, IS_NULL_PTR, iscale, dt_dev_pixelpipe_t::iwidth, L, l2, M_PI, MAX, MIN, n, dt_masks_form_t::name, pipe, dt_masks_form_t::points, dt_iop_roi_t::scale, width, dt_iop_roi_t::width, x, dt_iop_roi_t::x, dt_masks_sample_grid_t::x0, and dt_iop_roi_t::y.
|
static |
Definition at line 541 of file circle.c.
References _points_to_transform(), dt_dev_coordinates_raw_abs_to_image_abs(), dt_dev_geometry_snapshot(), dt_pixelpipe_cache_free_align, geometry, IS_NULL_PTR, L, and x.
Referenced by _circle_get_creation_preview().
|
static |
Definition at line 622 of file circle.c.
References _circle_get_points_source(), dt_masks_node_circle_t::center, DT_MASKS_RASTER_EMPTY, DT_MASKS_RASTER_ERROR, dt_masks_raster_from_status(), DT_MASKS_RASTER_OK, dt_masks_form_t::functions, dt_masks_functions_t::get_points, IS_NULL_PTR, L, dt_masks_form_t::points, dt_masks_form_t::source, and x.
|
static |
Definition at line 523 of file circle.c.
References _points_to_transform(), dt_dev_geometry_snapshot(), dt_masks_points_shift_to_source(), geometry, IS_NULL_PTR, L, and x.
Referenced by _circle_get_points_border().
|
static |
Definition at line 661 of file circle.c.
References _points_to_transform(), dt_dev_pixelpipe_t::dev, dt_dev_distort_transform_plus(), DT_DEV_TRANSFORM_DIR_BACK_INCL, dt_masks_points_bounding_box(), DT_MASKS_RASTER_EMPTY, DT_MASKS_RASTER_ERROR, DT_MASKS_RASTER_OK, dt_pixelpipe_cache_free_align, height, dt_dev_pixelpipe_t::iheight, IS_NULL_PTR, dt_dev_pixelpipe_t::iwidth, L, pipe, dt_masks_form_t::points, dt_masks_form_t::source, and width.
|
static |
Definition at line 133 of file circle.c.
References _circle_get_creation_values(), dt_masks_form_gui_t::dev, dt_masks_form_is_clone(), dt_masks_gui_cursor_to_raw_norm(), dt_masks_reset_source(), dt_masks_set_source_pos_initial_value(), and L.
Referenced by _circle_events_button_pressed().
|
static |
Definition at line 1068 of file circle.c.
References dt_conf_get_float(), dt_dev_coordinates_raw_norm_to_raw_abs(), MIN, and x.
|
static |
Definition at line 1027 of file circle.c.
References dt_conf_get_and_sanitize_float(), DT_MASKS_CLONE, DT_MASKS_NON_CLONE, and type.
Definition at line 1041 of file circle.c.
References L, and dt_masks_form_t::name.
|
static |
Definition at line 1046 of file circle.c.
References dt_masks_form_gui_t::border_selected, dt_masks_form_gui_t::creation, dt_masks_form_is_clone(), dt_masks_form_gui_t::form_selected, L, and dt_masks_form_gui_t::source_selected.
|
static |
Definition at line 231 of file circle.c.
References _change_fading(), _change_size(), _circle_get_interaction_value(), DT_MASKS_INTERACTION_FADING, DT_MASKS_INTERACTION_SIZE, dt_masks_form_gui_t::group_selected, IS_NULL_PTR, L, and value.
|
static |
Definition at line 118 of file circle.c.
References _circle_distance_cb(), dt_masks_find_closest_handle_common(), and L.
|
static |
Definition at line 176 of file circle.c.
References dt_masks_get_set_conf_value_with_toast(), FADING_MAX, FADING_MIN, and L.
Referenced by _change_fading(), and _circle_events_mouse_scrolled().
|
static |
Definition at line 191 of file circle.c.
References dt_masks_get_set_conf_value_with_toast(), and L.
Referenced by _circle_events_mouse_scrolled().
|
static |
Definition at line 183 of file circle.c.
References dt_masks_get_set_conf_value_with_toast(), FADING_MAX, FADING_MIN, and L.
Referenced by _change_size(), and _circle_events_mouse_scrolled().
|
static |
Definition at line 492 of file circle.c.
References __OMP_PARALLEL_FOR_SIMD__, dt_dev_coordinates_raw_norm_to_raw_abs(), dt_pixelpipe_cache_alloc_align_float_cache, i, IS_NULL_PTR, L, M_PI, MIN, r, and x.
Referenced by _circle_get_area(), _circle_get_points(), _circle_get_points_source(), and _circle_get_source_area().
| const dt_masks_functions_t dt_masks_functions_circle |
the shape-specific function tables
Definition at line 1078 of file circle.c.
Referenced by _circle_events_post_expose(), dt_masks_create(), and main().