gerbv  2.10.1-dev~93f1b5
gerbv_user_transformation_t Struct Reference

#include <gerbv.h>

Data Fields

gdouble translateX
 
gdouble translateY
 
gdouble scaleX
 
gdouble scaleY
 
gdouble rotation
 
gboolean mirrorAroundX
 
gboolean mirrorAroundY
 
gboolean inverted
 

Detailed Description

Stores image transformation information, used to modify the rendered position/scale/etc of an image.

Examples
example2.c.

Definition at line 598 of file gerbv.h.

Field Documentation

◆ inverted

gboolean gerbv_user_transformation_t::inverted

TRUE if the image should be rendered "inverted" (light is dark and vice versa)

Definition at line 606 of file gerbv.h.

◆ mirrorAroundX

gboolean gerbv_user_transformation_t::mirrorAroundX

TRUE if the layer is mirrored around the X axis (vertical flip)

Definition at line 604 of file gerbv.h.

Referenced by gerbv_transform_coord().

◆ mirrorAroundY

gboolean gerbv_user_transformation_t::mirrorAroundY

TRUE if the layer is mirrored around the Y axis (vertical flip)

Definition at line 605 of file gerbv.h.

Referenced by gerbv_transform_coord().

◆ rotation

gdouble gerbv_user_transformation_t::rotation

the rotation of the layer around the origin (in radians)

Definition at line 603 of file gerbv.h.

Referenced by gerbv_export_rs274x_file_from_image(), and gerbv_transform_coord().

◆ scaleX

gdouble gerbv_user_transformation_t::scaleX

the X scale factor (1.0 is default)

Definition at line 601 of file gerbv.h.

Referenced by gerbv_transform_coord().

◆ scaleY

gdouble gerbv_user_transformation_t::scaleY

the Y scale factor (1.0 is default)

Definition at line 602 of file gerbv.h.

Referenced by gerbv_transform_coord().

◆ translateX

gdouble gerbv_user_transformation_t::translateX

the X translation (in inches)

Examples
example3.c.

Definition at line 599 of file gerbv.h.

Referenced by gerbv_transform_coord().

◆ translateY

gdouble gerbv_user_transformation_t::translateY

the Y translation (in inches)

Examples
example3.c.

Definition at line 600 of file gerbv.h.

Referenced by gerbv_transform_coord().


The documentation for this struct was generated from the following file: