Compare commits
No commits in common. "fd1eac7fda52da36205746ef348daad8aeab4ca2" and "e461b0be1d8a592423eb28525cbfa3c79eaf573e" have entirely different histories.
fd1eac7fda
...
e461b0be1d
@ -80,7 +80,6 @@ enum gds_record {
|
|||||||
STRANS = 0x1A01,
|
STRANS = 0x1A01,
|
||||||
BOX = 0x2D00,
|
BOX = 0x2D00,
|
||||||
LAYER = 0x0D02,
|
LAYER = 0x0D02,
|
||||||
DATATYPE = 0x0E02,
|
|
||||||
WIDTH = 0x0F03,
|
WIDTH = 0x0F03,
|
||||||
PATHTYPE = 0x2102,
|
PATHTYPE = 0x2102,
|
||||||
COLROW = 0x1302,
|
COLROW = 0x1302,
|
||||||
@ -868,7 +867,6 @@ int parse_gds_from_file(const char *filename, GList **library_list)
|
|||||||
case LIBNAME:
|
case LIBNAME:
|
||||||
case SNAME:
|
case SNAME:
|
||||||
case LAYER:
|
case LAYER:
|
||||||
case DATATYPE:
|
|
||||||
case STRNAME:
|
case STRNAME:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -1005,16 +1003,6 @@ int parse_gds_from_file(const char *filename, GList **library_list)
|
|||||||
}
|
}
|
||||||
GDS_INF("\t\tAdded layer %d\n", (int)current_graphics->layer);
|
GDS_INF("\t\tAdded layer %d\n", (int)current_graphics->layer);
|
||||||
break;
|
break;
|
||||||
case DATATYPE:
|
|
||||||
if (!current_graphics) {
|
|
||||||
GDS_WARN("Datatype has to be defined inside graphics object. Probably unknown object. Implement it yourself!");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
current_graphics->datatype = gds_convert_signed_int16(workbuff);
|
|
||||||
if (current_graphics->datatype < 0)
|
|
||||||
GDS_WARN("Datatype negative!");
|
|
||||||
GDS_INF("\t\tAdded datatype %d\n", (int)current_graphics->datatype);
|
|
||||||
break;
|
|
||||||
case MAG:
|
case MAG:
|
||||||
if (rec_data_length != 8) {
|
if (rec_data_length != 8) {
|
||||||
GDS_WARN("Magnification is not an 8 byte real. Results may be wrong");
|
GDS_WARN("Magnification is not an 8 byte real. Results may be wrong");
|
||||||
|
@ -101,7 +101,7 @@ struct gds_graphics {
|
|||||||
enum path_type path_render_type; /**< @brief Line cap */
|
enum path_type path_render_type; /**< @brief Line cap */
|
||||||
int width_absolute; /**< @brief Width. Not used for objects other than paths */
|
int width_absolute; /**< @brief Width. Not used for objects other than paths */
|
||||||
int16_t layer; /**< @brief Layer the graphic object is on */
|
int16_t layer; /**< @brief Layer the graphic object is on */
|
||||||
int16_t datatype; /**< @brief Data type of graphic object */
|
uint16_t datatype;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -35,17 +35,10 @@
|
|||||||
#include <gds-render/gds-utils/gds-types.h>
|
#include <gds-render/gds-utils/gds-types.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Calculate bounding box of a gds cell.
|
* @brief calculate_cell_bounding_box Calculate bounding box of gds cell
|
||||||
*
|
* @param box Resulting boundig box. Will be uüdated and not overwritten
|
||||||
* This function updates a given bounding box with the dimensions of a
|
|
||||||
* gds_cell. Please note that the handling of path miter points is not complete yet.
|
|
||||||
* If a path object is the outmost object of your cell at any edge,
|
|
||||||
* the resulting bounding box might be the wrong size. The devistion from the real size
|
|
||||||
* is guaranteed to be within the width of the path object.
|
|
||||||
*
|
|
||||||
* @param box Resulting boundig box. Will be updated and not overwritten
|
|
||||||
* @param cell Toplevel cell
|
* @param cell Toplevel cell
|
||||||
* @warning Handling of Path graphic objects not yet implemented correctly.
|
* @warning Path handling not yet implemented correctly.
|
||||||
*/
|
*/
|
||||||
void calculate_cell_bounding_box(union bounding_box *box, struct gds_cell *cell);
|
void calculate_cell_bounding_box(union bounding_box *box, struct gds_cell *cell);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user