2018-07-19 17:49:33 +02:00
|
|
|
/*
|
|
|
|
* GDSII-Converter
|
|
|
|
* Copyright (C) 2018 Mario Hüttel <mario.huettel@gmx.net>
|
|
|
|
*
|
|
|
|
* This file is part of GDSII-Converter.
|
|
|
|
*
|
|
|
|
* GDSII-Converter is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* GDSII-Converter is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with GDSII-Converter. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2018-07-24 14:42:28 +02:00
|
|
|
/**
|
|
|
|
* @file cairo-output.h
|
|
|
|
* @brief Header File for Cairo output renderer
|
|
|
|
* @author Mario Hüttel <mario.huettel@gmx.net>
|
|
|
|
*/
|
2018-07-19 17:49:33 +02:00
|
|
|
#ifndef __CAIRO_OUTPUT_H__
|
|
|
|
#define __CAIRO_OUTPUT_H__
|
|
|
|
|
|
|
|
#include "../layer-selector.h"
|
|
|
|
#include "../gds-parser/gds-types.h"
|
|
|
|
|
2018-07-24 14:42:28 +02:00
|
|
|
/** @addtogroup Cairo-Renderer
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define MAX_LAYERS (300) /**< \brief Maximum layer count the output renderer can process. Typically GDS only specifies up to 255 layers.*/
|
2018-07-19 18:45:37 +02:00
|
|
|
|
2018-07-24 14:42:28 +02:00
|
|
|
/**
|
|
|
|
* @brief Render \p cell to a PDF file specified by \p pdf_file
|
2018-12-10 19:23:54 +01:00
|
|
|
* @param cell Toplevel cell to @ref Cairo-Renderer
|
2018-07-24 14:42:28 +02:00
|
|
|
* @param layer_infos List of layer information. Specifies color and layer stacking
|
2018-07-30 12:35:30 +02:00
|
|
|
* @param pdf_file PDF output file. Set to NULL if no PDF file has to be generated
|
|
|
|
* @param svg_file SVG output file. Set to NULL if no SVG file has to be generated
|
2018-07-24 14:42:28 +02:00
|
|
|
* @param scale Scale the output image down by \p scale
|
|
|
|
*/
|
2018-07-30 12:35:30 +02:00
|
|
|
void cairo_render_cell_to_vector_file(struct gds_cell *cell, GList *layer_infos, char *pdf_file, char *svg_file, double scale);
|
2018-07-19 17:49:33 +02:00
|
|
|
|
2018-07-24 14:42:28 +02:00
|
|
|
/** @} */
|
|
|
|
|
2018-07-19 17:49:33 +02:00
|
|
|
#endif /* __CAIRO_OUTPUT_H__ */
|