Surface¶
- class kgpy.optics.surface.Surface(name=<factory>, plot_kwargs=<factory>, transform=<factory>, is_stop=False, is_stop_test=False, is_active=True, is_visible=True, sag=None, material=None, aperture=None, aperture_mechanical=None, rulings=None, baffle_loft_ids=<factory>)¶
Bases:
WritableMixin,Broadcastable,Transformable,Plottable,Named,ABC,Generic[SagT,MaterialT,ApertureT,ApertureMechT,RulingsT]Interface for representing an optical surface.
- __init__(name=<factory>, plot_kwargs=<factory>, transform=<factory>, is_stop=False, is_stop_test=False, is_active=True, is_visible=True, sag=None, material=None, aperture=None, aperture_mechanical=None, rulings=None, baffle_loft_ids=<factory>)¶
- Parameters
- Return type
None
Attributes
Aperture of this surface
Mechanical aperture of this surface
Flag to disable the surface
Flag to disable plotting this surface
Material type for this surface
Ruling profile of this surface
Sag profile of this surface
Methods
__init__([name, plot_kwargs, transform, ...])copy()- rtype
typing.TypeVar(CopyableT, bound= Copyable)
- rtype
typing.TypeVar(CopyableT, bound= Copyable)
histogram(rays, nbins[, weights])plot(ax[, components, component_z, ...])propagate_rays(rays[, intercept_error])- rtype
ray_intercept(rays[, intercept_error])- rtype
write_to_dxf(file_writer, unit[, ...])- rtype
Inheritance Diagram
- copy()¶
- Return type
typing.TypeVar(CopyableT, bound= Copyable)- Parameters
self (CopyableT) –
- copy_shallow()¶
- Return type
typing.TypeVar(CopyableT, bound= Copyable)- Parameters
self (CopyableT) –
- histogram(rays, nbins, weights=None)¶
- plot(ax, components=('x', 'y'), component_z=None, plot_kwargs=None, transform_extra=None, to_global=False, plot_annotations=True, annotation_text_y=1.05)¶
- propagate_rays(rays, intercept_error=<Quantity 0.1 nm>)¶
- Return type
- Parameters
- ray_intercept(rays, intercept_error=<Quantity 0.1 nm>)¶
- Return type
- Parameters
- write_to_dxf(file_writer, unit, transform_extra=None)¶
- Return type
- Parameters
self (SurfaceT) –
file_writer (R12FastStreamWriter) –
unit (Unit) –
transform_extra (Optional[TransformList]) –
-
aperture:
typing.Optional[typing.TypeVar(ApertureT, bound=kgpy.optics.surface.aperture.Aperture)] = None¶ Aperture of this surface
-
aperture_mechanical:
typing.Optional[typing.TypeVar(ApertureMechT, bound=kgpy.optics.surface.aperture.Aperture)] = None¶ Mechanical aperture of this surface
-
baffle_loft_ids:
typing.List[int]¶
- property broadcasted¶
-
material:
typing.Optional[typing.TypeVar(MaterialT, bound=kgpy.optics.surface.material.Material)] = None¶ Material type for this surface
- name: Name¶
-
plot_kwargs:
typing.Optional[typing.Dict[str,typing.Any]]¶
-
rulings:
typing.Optional[typing.TypeVar(RulingsT, bound=kgpy.optics.surface.rulings.Rulings)] = None¶ Ruling profile of this surface
-
sag:
typing.Optional[typing.TypeVar(SagT, bound=kgpy.optics.surface.sag.Sag)] = None¶ Sag profile of this surface
- property shape¶
- property tol_iter: Iterator[Transformable]¶
- transform: TransformList¶