A HPGL interpreter. More...
#include <hpgsreader.h>
A HPGL interpreter.
This structure holds all the states used during the interpretation of a HPGL stream. Users of the library usually don't have to cope with details of this structure.
Are PU and PD coordinates absoulte, because a PA statement is in effect?
the text state for the alternate font.
do we use the alternate font?
The anchor point for fill patterns.
A byte counter for various purposes.
Referenced by hpgs_read(), hpgs_reader_do_PCL(), and hpgs_reader_do_PJL().
how many clipsaves have been issued?
Referenced by hpgs_read().
The bounding box of the HPGL content of the current page.
Referenced by hpgs_new_reader().
text attributes set through special commands.
The fill type currently in effect.
Number of the current linetype.
The number of the current page. -1...single page mode.
Referenced by hpgs_new_reader(), hpgs_read(), and hpgs_reader_imbue().
Number of the current pen.
Referenced by hpgs_reader_get_current_pen().
The current pen position in PostScript pt (1/72 inch), if have_current_point
is true.
Referenced by hpgs_reader_do_PCL().
the text state for the standard font.
The difference of P2-P1 as set by the IP command.
The current output device.
Referenced by hpgs_destroy_reader(), hpgs_new_reader(), hpgs_read(), hpgs_reader_imbue(), and hpgs_reader_stamp().
Did we reach the end of a HPGL command?
Referenced by hpgs_read(), hpgs_reader_do_PCL(), hpgs_reader_do_PJL(), hpgs_reader_read_double(), hpgs_reader_read_int(), and hpgs_reader_read_new_string().
The first point in a path, if polygon_open
is true.
A callback for rendering additional frame assets before frame advance/showpage.
Referenced by hpgs_new_reader(), and hpgs_reader_set_frame_asset_func().
hpgs_reader_asset_func_t hpgs_reader_st::frame_asset_func |
A callback for rendering additional frame asset before frame advance/showpage.
Referenced by hpgs_new_reader(), and hpgs_reader_set_frame_asset_func().
double hpgs_reader_st::frame_x |
The frame advance vector in PostScript pt (1/72 inch).
double hpgs_reader_st::ft10_level |
The current color level for fill type 10.
double hpgs_reader_st::ft3_angle |
The current pattern angle of fill type 3.
double hpgs_reader_st::ft3_spacing |
The current pattern spacing of fill type 3.
double hpgs_reader_st::ft4_angle |
The current pattern angle of fill type 4.
double hpgs_reader_st::ft4_spacing |
The current pattern spacing of fill type 4.
Do we have a current pen position, aka current_point is a valid position.
The current input stream.
Referenced by hpgs_destroy_reader(), hpgs_new_reader(), hpgs_read(), hpgs_reader_attach(), hpgs_reader_do_PCL(), hpgs_reader_do_PJL(), hpgs_reader_imbue(), hpgs_reader_read_double(), hpgs_reader_read_int(), hpgs_reader_read_new_string(), and hpgs_reader_read_pcl_int().
hpgs_bool hpgs_reader_st::interrupted |
Did someone call hpgs_reader_interrupt
?
Referenced by hpgs_new_reader(), hpgs_read(), hpgs_reader_do_PCL(), and hpgs_reader_interrupt().
label terminator settings
The last byte extracted from the stream?
Referenced by hpgs_read(), hpgs_reader_do_PCL(), hpgs_reader_do_PJL(), hpgs_reader_read_double(), hpgs_reader_read_int(), hpgs_reader_read_new_string(), and hpgs_reader_read_pcl_int().
int hpgs_reader_st::linetype_nsegs[17] |
linetype settings. (-8,...8) stored from 0...16
double hpgs_reader_st::lw_factor |
The linewidth scaling factor.
Referenced by hpgs_new_reader(), and hpgs_reader_set_lw_factor().
The maximal RGB values.
The maximal x/y coordinates of all points in an open path.
The minimal RGB values.
The minimal x/y coordinates of all points in an open path.
pen settings
HPGL frame point P1 in PostScript pt (1/72 inch).
HPGL frame point P2 in PostScript pt (1/72 inch).
double hpgs_reader_st::page_angle |
The rotation angle of the HPGL content on the page.
Referenced by hpgs_new_reader(), hpgs_reader_set_dynamic_page(), and hpgs_reader_set_fixed_page().
A callback for rendering additional page assets before showpage.
Referenced by hpgs_new_reader(), and hpgs_reader_set_page_asset_func().
hpgs_reader_asset_func_t hpgs_reader_st::page_asset_func |
A callback for rendering additional page assets before showpage.
Referenced by hpgs_new_reader(), and hpgs_reader_set_page_asset_func().
The currently active page bounding box.
Referenced by hpgs_new_reader(), hpgs_read(), hpgs_reader_set_dynamic_page(), and hpgs_reader_set_fixed_page().
double hpgs_reader_st::page_border |
The border of the HPGL border on the page.
Referenced by hpgs_new_reader(), hpgs_reader_set_dynamic_page(), and hpgs_reader_set_fixed_page().
double hpgs_reader_st::page_height |
The page height or the maximal page height in points.
Referenced by hpgs_new_reader(), hpgs_reader_set_dynamic_page(), and hpgs_reader_set_fixed_page().
transformation matrix for the transformation of PostScript (world) coordinates usually given in points (1/72 inch) to user defined page-coorindates.
Referenced by hpgs_new_reader(), and hpgs_reader_do_PCL().
0...untransformed, 1...fixed page, 2...dynamic page
Referenced by hpgs_new_reader(), hpgs_reader_set_dynamic_page(), and hpgs_reader_set_fixed_page().
double hpgs_reader_st::page_scale |
sqrt(|det(page_matrix)|)
Referenced by hpgs_new_reader().
double hpgs_reader_st::page_width |
The page width or the maximal page width in points.
Referenced by hpgs_new_reader(), hpgs_reader_set_dynamic_page(), and hpgs_reader_set_fixed_page().
hpgs_bool hpgs_reader_st::pattern_transparency |
ROP3 pattern transparency.
The array of PCL bitmap fonts sorted by font ID.
Referenced by hpgs_destroy_reader(), and hpgs_new_reader().
The allocated size of the bitmap font array.
Referenced by hpgs_new_reader().
The allocated size of the palette stack.
Referenced by hpgs_destroy_reader(), and hpgs_new_reader().
The current PCL bitmap font use for font operations.
Referenced by hpgs_new_reader().
The ID of the current PCL bitmap font to use for font operations.
The PCL character code of the next character to be assembled or -1, if not set.
The currently set PCL forground color. Set to black, if no foreground color is set.
double hpgs_reader_st::pcl_hmi |
PCL horizontal motion index in pt.
The number of of the current PCL palette on the stack.
Referenced by hpgs_destroy_reader(), and hpgs_new_reader().
The image currently filled by pcl.
Referenced by hpgs_destroy_reader(), hpgs_new_reader(), and hpgs_reader_do_PCL().
The allocated size of the palette stack.
Referenced by hpgs_new_reader().
The PCL palette stack of palettes for 256 colors.
Referenced by hpgs_destroy_reader(), and hpgs_new_reader().
The current PCL pattern. Default value 0.
PCL point position in pt.
Referenced by hpgs_reader_do_PCL().
The primary PCL bitmap font being assembled.
Referenced by hpgs_new_reader(), and hpgs_reader_do_PCL().
The PCL raster compression in effect.
unsigned char* hpgs_reader_st::pcl_raster_data[8] |
The buffer for the data of the current raster. One pointer per plane.
Referenced by hpgs_destroy_reader(), and hpgs_new_reader().
The size of the raster data buffer.
The PCL raster image destination height.
The PCL raster image destination width.
The number of the raster line currently transferred.
The PCL ratser mode. -1 no raster graphics, 0 horizontal graphics, 3 vertical graphics
The current PCL raster plane for transfer data by plane.
The number of planes of the raster data currently being transferred.
The PCL raster presentation mode.
The PCL raster image resolution.
Referenced by hpgs_reader_do_PJL().
The PCL raster image source height.
The PCL raster image source width.
The PCL raster y offset in effect.
double hpgs_reader_st::pcl_scale |
The factor from PCL units to PostScript pt (1/72 inch).
Referenced by hpgs_reader_do_PJL().
double hpgs_reader_st::pcl_vmi |
PCL vertical motion index in pt.
Is the pen down?
Are pen widths specified relative?
The current plotsize device.
Referenced by hpgs_destroy_reader(), hpgs_new_reader(), hpgs_read(), and hpgs_reader_imbue().
The number of PCL images dumped so far.
Referenced by hpgs_new_reader(), and hpgs_reader_set_png_dump().
The base filename for dumped PCL images.
Referenced by hpgs_destroy_reader(), hpgs_new_reader(), and hpgs_reader_set_png_dump().
the polygon buffer used in polygon mode.
Referenced by hpgs_destroy_reader(), and hpgs_new_reader().
Are we in polygon mode?
Is a polygon currently open?
ROP3 operation in effect.
The current rotation angle (90/180/270/360).
The current effective coordinate scaling of a SC command.
hpgs_bool hpgs_reader_st::src_transparency |
ROP3 source transparency.
The concatenation of page_matrix and world_matrix.
double hpgs_reader_st::total_scale |
sqrt(|det(page_matrix)|)
The verbosity level in effect.
Referenced by hpgs_new_reader(), hpgs_read(), and hpgs_reader_do_PJL().
transformation matrix for the transformation of HPGL to PostScript (world) coordinates usually given in points (1/72 inch).
double hpgs_reader_st::world_scale |
sqrt(|det(world_matrix)|)
double hpgs_reader_st::x_size |
The paper size in PostScript pt (1/72 inch).