GDS-Render v1.2.1
|
Data Structures | |
struct | _CairoRenderer |
struct | cairo_layer |
The cairo_layer struct Each rendered layer is represented by this struct. More... | |
Macros | |
#define | GDS_RENDER_TYPE_CAIRO_RENDERER (cairo_renderer_get_type()) |
#define | MAX_LAYERS (5000) |
Maximum layer count the output renderer can process. Typically GDS only specifies up to 255 layers. More... | |
Functions | |
CairoRenderer * | cairo_renderer_new_svg () |
Create new CairoRenderer for SVG output. More... | |
CairoRenderer * | cairo_renderer_new_pdf () |
Create new CairoRenderer for PDF output. More... | |
static void | revert_inherited_transform (struct cairo_layer *layers) |
Revert the last transformation on all layers. More... | |
static void | apply_inherited_transform_to_all_layers (struct cairo_layer *layers, const struct gds_point *origin, double magnification, gboolean flipping, double rotation, double scale) |
Applies transformation to all layers. More... | |
static void | render_cell (struct gds_cell *cell, struct cairo_layer *layers, double scale) |
render_cell Render a cell with its sub-cells More... | |
static int | read_line_from_fd (int fd, char *buff, size_t buff_size) |
Read a line from a file descriptor. More... | |
static int | cairo_renderer_render_cell_to_vector_file (GdsOutputRenderer *renderer, struct gds_cell *cell, GList *layer_infos, const char *pdf_file, const char *svg_file, double scale) |
Render cell to a PDF file specified by pdf_file . More... | |
static void | cairo_renderer_init (CairoRenderer *self) |
static int | cairo_renderer_render_output (GdsOutputRenderer *renderer, struct gds_cell *cell, double scale) |
static void | cairo_renderer_class_init (CairoRendererClass *klass) |
#define GDS_RENDER_TYPE_CAIRO_RENDERER (cairo_renderer_get_type()) |
Definition at line 39 of file cairo-renderer.h.
#define MAX_LAYERS (5000) |
Maximum layer count the output renderer can process. Typically GDS only specifies up to 255 layers.
Definition at line 41 of file cairo-renderer.h.
|
static |
Applies transformation to all layers.
layers | Array of layers |
origin | Origin translation |
magnification | Scaling |
flipping | Mirror image on x-axis before rotating |
rotation | Rotation in degrees |
scale | Scale the image down by. Only used for sclaing origin coordinates. Not applied to layer. |
Definition at line 81 of file cairo-renderer.c.
|
static |
|
static |
Definition at line 442 of file cairo-renderer.c.
CairoRenderer * cairo_renderer_new_pdf | ( | ) |
Create new CairoRenderer for PDF output.
Definition at line 491 of file cairo-renderer.c.
CairoRenderer * cairo_renderer_new_svg | ( | ) |
Create new CairoRenderer for SVG output.
Definition at line 501 of file cairo-renderer.c.
|
static |
Render cell
to a PDF file specified by pdf_file
.
renderer | The current renderer this function is running from |
cell | Toplevel cell to Cairo Renderer |
layer_infos | List of layer information. Specifies color and layer stacking |
pdf_file | PDF output file. Set to NULL if no PDF file has to be generated |
svg_file | SVG output file. Set to NULL if no SVG file has to be generated |
scale | Scale the output image down by scale |
Definition at line 233 of file cairo-renderer.c.
|
static |
Definition at line 448 of file cairo-renderer.c.
|
static |
Read a line from a file descriptor.
In case of a broken pipe / closed writing end, it will terminate
fd | File descriptor to read from |
buff | Buffer to write data in |
buff_size | Buffer size |
Definition at line 203 of file cairo-renderer.c.
|
static |
render_cell Render a cell with its sub-cells
cell | Cell to render |
layers | Cell will be rendered into these layers |
scale | sclae image down by this factor |
Definition at line 111 of file cairo-renderer.c.
|
static |
Revert the last transformation on all layers.
layers | Pointer to cairo_layer structures |
Definition at line 61 of file cairo-renderer.c.