rayoptics.gui.util module

utility functions for gui functions

class GUIHandle(poly, bbox)

Bases: tuple

bbox

bounding box for poly

poly

poly entity for underlying graphics system (e.g. mpl)

transform_ray_seg(poly, r, tfrm)[source]
bbox_from_poly(poly)[source]
scale_bounds(bbox, oversize_factor)[source]
transform_poly(tfrm, poly)[source]
inv_transform_poly(tfrm, poly)[source]
fit_data_range(x_data, margin=0.05, range_trunc=0.25, **kwargs)[source]
calc_render_color_for_material(matl)[source]

get element color based on V-number of glass