Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
coordinates.h File Reference

Shared coordinate transforms and geometry computations for drawlayer. More...

+ Include dependency graph for coordinates.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  drawlayer_view_patch_t
 
struct  drawlayer_view_patch_info_t
 
struct  dt_drawlayer_process_patch_geometry_t
 

Typedefs

typedef struct drawlayer_view_patch_t drawlayer_view_patch_t
 
typedef struct drawlayer_view_patch_info_t drawlayer_view_patch_info_t
 
typedef struct dt_drawlayer_process_patch_geometry_t dt_drawlayer_process_patch_geometry_t
 

Functions

gboolean dt_drawlayer_widget_points_to_layer_coords (dt_iop_module_t *self, float *pts, int count)
 
gboolean dt_drawlayer_layer_points_to_widget_coords (dt_iop_module_t *self, float *pts, int count)
 
gboolean dt_drawlayer_widget_to_layer_coords (dt_iop_module_t *self, double wx, double wy, float *lx, float *ly)
 
gboolean dt_drawlayer_layer_to_widget_coords (dt_iop_module_t *self, float x, float y, float *wx, float *wy)
 
gboolean dt_drawlayer_layer_bounds_to_widget_bounds (dt_iop_module_t *self, float x0, float y0, float x1, 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, float fallback)
 
float dt_drawlayer_current_live_padding (dt_iop_module_t *self)
 
gboolean dt_drawlayer_compute_view_patch (dt_iop_module_t *self, float padding, drawlayer_view_patch_info_t *view)
 
gboolean dt_drawlayer_compute_process_patch_geometry (const dt_dev_pixelpipe_iop_t *piece, const dt_iop_roi_t *roi_in, const dt_iop_roi_t *roi_out, int base_width, int base_height, float brush_radius, dt_drawlayer_process_patch_geometry_t *geometry)
 

Detailed Description

Shared coordinate transforms and geometry computations for drawlayer.

Typedef Documentation

◆ drawlayer_view_patch_info_t

◆ drawlayer_view_patch_t

◆ dt_drawlayer_process_patch_geometry_t

Function Documentation

◆ dt_drawlayer_compute_process_patch_geometry()

◆ dt_drawlayer_compute_view_patch()

◆ dt_drawlayer_current_live_padding()

float dt_drawlayer_current_live_padding ( dt_iop_module_t self)

◆ dt_drawlayer_layer_bounds_to_widget_bounds()

gboolean dt_drawlayer_layer_bounds_to_widget_bounds ( dt_iop_module_t self,
float  x0,
float  y0,
float  x1,
float  y1,
float *  left,
float *  top,
float *  right,
float *  bottom 
)

◆ dt_drawlayer_layer_points_to_widget_coords()

◆ dt_drawlayer_layer_to_widget_coords()

gboolean dt_drawlayer_layer_to_widget_coords ( dt_iop_module_t self,
float  x,
float  y,
float *  wx,
float *  wy 
)

◆ dt_drawlayer_widget_brush_radius()

◆ dt_drawlayer_widget_points_to_layer_coords()

◆ dt_drawlayer_widget_to_layer_coords()

gboolean dt_drawlayer_widget_to_layer_coords ( dt_iop_module_t self,
double  wx,
double  wy,
float *  lx,
float *  ly 
)