rayoptics.elem.layout module
Interactive 2D lens picture
The Lens Layout capability provides a 2D display of the optical model represented by shapes. Shapes contain dict attributes to manage the graphical rendering and editing actions associated with their parent objects. These attributes must include:
handles: named graphic handles for different aspects of the parent object
actions: functions for press, drag, and release actions
- class OpticalElement(opt_model, e)[source]
Bases:
object
mediator class for rendering and editing optical elements
- class RayBundle(opt_model, fld, fld_label, wvl, start_offset, ray_table_callback=None, **kwargs)[source]
Bases:
object
class for ray bundle from a single field point
- class RayFanBundle(opt_model, ray_fan, start_offset, label='ray fan')[source]
Bases:
object
class for a RayFan from a single field point
- class SingleRay(opt_model, ray, start_offset, label='single ray')[source]
Bases:
object
class for a Ray from a single field point
- class ParaxialRay(opt_model, ray, color, seq_start=1, label='paraxial')[source]
Bases:
object
class for paraxial ray rendering/editing
- class LensLayout(opt_model, is_dark=True, **kwargs)[source]
Bases:
object
manager for live layout graphics entities