Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
dtcairo.c File Reference
#include "chart/dtcairo.h"
#include "chart/common.h"
+ Include dependency graph for dtcairo.c:

Functions

void draw_no_image (cairo_t *cr, GtkWidget *widget)
 
void draw_line (cairo_t *cr, point_t start, point_t end)
 
void draw_cross (cairo_t *cr, point_t center)
 
void draw_box (cairo_t *cr, box_t box, const float *homography)
 
void clear_background (cairo_t *cr)
 
void center_image (cairo_t *cr, image_t *image)
 
void draw_image (cairo_t *cr, image_t *image)
 
void draw_boundingbox (cairo_t *cr, point_t *bb)
 
void draw_f_boxes (cairo_t *cr, const float *homography, chart_t *chart)
 
static void _draw_boxes (cairo_t *cr, const float *homography, GHashTable *table)
 
void draw_d_boxes (cairo_t *cr, const float *homography, chart_t *chart)
 
void draw_color_boxes_outline (cairo_t *cr, const float *homography, chart_t *chart)
 
void draw_color_boxes_inside (cairo_t *cr, const float *homography, chart_t *chart, float shrink, float line_width, gboolean colored)
 
void stroke_boxes (cairo_t *cr, float line_width)
 
void set_offset_and_scale (image_t *image, float width, float height)
 
cairo_surface_t * cairo_surface_create_from_xyz_data (const float *const image, const int width, const int height)
 

Variables

static cairo_user_data_key_t source_data_buffer_key
 

Function Documentation

◆ _draw_boxes()

static void _draw_boxes ( cairo_t *  cr,
const float *  homography,
GHashTable *  table 
)
static

References draw_box(), homography(), and key.

Referenced by draw_color_boxes_outline(), and draw_d_boxes().

◆ cairo_surface_create_from_xyz_data()

cairo_surface_t * cairo_surface_create_from_xyz_data ( const float *const  image,
const int  width,
const int  height 
)

◆ center_image()

void center_image ( cairo_t *  cr,
image_t image 
)

◆ clear_background()

void clear_background ( cairo_t *  cr)

Referenced by draw_image_callback().

◆ draw_boundingbox()

void draw_boundingbox ( cairo_t *  cr,
point_t bb 
)

References draw_line().

Referenced by draw_image_callback().

◆ draw_box()

void draw_box ( cairo_t *  cr,
box_t  box,
const float *  homography 
)

◆ draw_color_boxes_inside()

void draw_color_boxes_inside ( cairo_t *  cr,
const float *  homography,
chart_t chart,
float  shrink,
float  line_width,
gboolean  colored 
)

◆ draw_color_boxes_outline()

void draw_color_boxes_outline ( cairo_t *  cr,
const float *  homography,
chart_t chart 
)

◆ draw_cross()

void draw_cross ( cairo_t *  cr,
point_t  center 
)

References point_t::x, and point_t::y.

Referenced by draw_f_boxes().

◆ draw_d_boxes()

void draw_d_boxes ( cairo_t *  cr,
const float *  homography,
chart_t chart 
)

◆ draw_f_boxes()

void draw_f_boxes ( cairo_t *  cr,
const float *  homography,
chart_t chart 
)

◆ draw_image()

void draw_image ( cairo_t *  cr,
image_t image 
)

References image_t::image.

Referenced by draw_image_callback().

◆ draw_line()

void draw_line ( cairo_t *  cr,
point_t  start,
point_t  end 
)

References point_t::x, and point_t::y.

Referenced by draw_boundingbox().

◆ draw_no_image()

void draw_no_image ( cairo_t *  cr,
GtkWidget *  widget 
)

References height, and width.

Referenced by draw_image_callback().

◆ set_offset_and_scale()

void set_offset_and_scale ( image_t image,
float  width,
float  height 
)

◆ stroke_boxes()

void stroke_boxes ( cairo_t *  cr,
float  line_width 
)

Referenced by draw_image_callback().

Variable Documentation

◆ source_data_buffer_key

cairo_user_data_key_t source_data_buffer_key
static