![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "iop/drawlayer/coordinates.h"
Include dependency graph for coordinates.c:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| static gboolean | _virtual_piece_layer_geometry (dt_iop_module_t *self, int *layer_width, int *layer_height) |
| gboolean | dt_drawlayer_widget_points_to_layer_coords (dt_iop_module_t *self, float *pts, const int count) |
| gboolean | dt_drawlayer_layer_points_to_widget_coords (dt_iop_module_t *self, float *pts, const int count) |
| gboolean | dt_drawlayer_widget_to_layer_coords (dt_iop_module_t *self, const double wx, const double wy, float *lx, float *ly) |
| gboolean | dt_drawlayer_layer_to_widget_coords (dt_iop_module_t *self, const float x, const float y, float *wx, float *wy) |
| gboolean | dt_drawlayer_layer_bounds_to_widget_bounds (dt_iop_module_t *self, const float x0, const float y0, const float x1, const float y1, float *left, float *top, float *right, float *bottom) |
| float | dt_drawlayer_widget_brush_radius (dt_iop_module_t *self, const dt_drawlayer_brush_dab_t *dab, const float fallback) |
| float | dt_drawlayer_current_live_padding (dt_iop_module_t *self) |
| gboolean | dt_drawlayer_compute_view_patch (dt_iop_module_t *self, const float padding, drawlayer_view_patch_info_t *view) |
|
static |
| gboolean dt_drawlayer_compute_view_patch | ( | dt_iop_module_t * | self, |
| const float | padding, | ||
| drawlayer_view_patch_info_t * | view | ||
| ) |
References _virtual_piece_layer_geometry(), dt_develop_t::border_size, dt_iop_module_t::dev, dt_dev_get_overlay_scale(), dt_drawlayer_widget_points_to_layer_coords(), FALSE, i, IS_NULL_PTR, MAX, MIN, dt_develop_t::orig_height, dt_develop_t::orig_width, dt_develop_t::preview_height, dt_develop_t::preview_width, dt_develop_t::roi, and view().
Referenced by _ensure_widget_cache().
| float dt_drawlayer_current_live_padding | ( | dt_iop_module_t * | self | ) |
References _conf_brush_shape(), _conf_hardness(), _conf_size(), and dt_drawlayer_brush_dab_t::radius.
Referenced by _fill_runtime_inputs().
| gboolean dt_drawlayer_layer_bounds_to_widget_bounds | ( | dt_iop_module_t * | self, |
| const float | x0, | ||
| const float | y0, | ||
| const float | x1, | ||
| const float | y1, | ||
| float * | left, | ||
| float * | top, | ||
| float * | right, | ||
| float * | bottom | ||
| ) |
References dt_drawlayer_layer_points_to_widget_coords(), FALSE, i, IS_NULL_PTR, top, and TRUE.
Referenced by _ensure_widget_cache().
| gboolean dt_drawlayer_layer_points_to_widget_coords | ( | dt_iop_module_t * | self, |
| float * | pts, | ||
| const int | count | ||
| ) |
References darktable, darktable_t::develop, dt_dev_coordinates_image_abs_to_image_norm(), dt_dev_coordinates_image_norm_to_preview_abs(), dt_dev_coordinates_image_norm_to_widget(), dt_dev_coordinates_preview_abs_to_image_norm(), dt_dev_distort_transform_plus(), DT_DEV_TRANSFORM_DIR_FORW_EXCL, FALSE, dt_iop_module_t::iop_order, IS_NULL_PTR, TRUE, and dt_develop_t::virtual_pipe.
Referenced by dt_drawlayer_layer_bounds_to_widget_bounds(), dt_drawlayer_layer_to_widget_coords(), and dt_drawlayer_widget_brush_radius().
| gboolean dt_drawlayer_layer_to_widget_coords | ( | dt_iop_module_t * | self, |
| const float | x, | ||
| const float | y, | ||
| float * | wx, | ||
| float * | wy | ||
| ) |
References dt_drawlayer_layer_points_to_widget_coords(), FALSE, IS_NULL_PTR, TRUE, and x.
Referenced by _paint_layer_to_widget_cb().
| float dt_drawlayer_widget_brush_radius | ( | dt_iop_module_t * | self, |
| const dt_drawlayer_brush_dab_t * | dab, | ||
| const float | fallback | ||
| ) |
| gboolean dt_drawlayer_widget_points_to_layer_coords | ( | dt_iop_module_t * | self, |
| float * | pts, | ||
| const int | count | ||
| ) |
References dt_iop_module_t::dev, dt_dev_coordinates_image_norm_to_image_abs(), dt_dev_coordinates_image_norm_to_preview_abs(), dt_dev_coordinates_preview_abs_to_image_norm(), dt_dev_coordinates_widget_to_image_norm(), dt_dev_distort_backtransform_plus(), DT_DEV_TRANSFORM_DIR_FORW_EXCL, FALSE, dt_iop_module_t::iop_order, IS_NULL_PTR, TRUE, and dt_develop_t::virtual_pipe.
Referenced by dt_drawlayer_compute_view_patch(), and dt_drawlayer_widget_to_layer_coords().
| gboolean dt_drawlayer_widget_to_layer_coords | ( | dt_iop_module_t * | self, |
| const double | wx, | ||
| const double | wy, | ||
| float * | lx, | ||
| float * | ly | ||
| ) |
References dt_drawlayer_widget_points_to_layer_coords(), FALSE, IS_NULL_PTR, and TRUE.
Referenced by _fill_input_layer_coords(), dt_drawlayer_build_worker_input_dab(), and gui_post_expose().