fibomat.raster_styles.rasterstyle module#
Provide the RasterStyle class.
- class fibomat.raster_styles.rasterstyle.RasterStyle[source]#
Bases:
ABCBase class to define a raster style.
All raster styles have the required parameters as attributes (e.g. pitch, …). Further, all raster styles must implement a rasterize method which applies the raster style to a shape.
- clone() RasterStyle[source]#
Deep copy the raster style.
- Returns:
RasterStyle
- abstract property dimension: int#
Returns the required dimensionality a shape must have to apply this raster style Returns:
- abstract rasterize(dim_shape: DimShape, mill: Mill, out_length_unit: Unit, out_time_unit: Unit) RasterizedPattern[source]#
Rasterize the given shape.
The number of repeats and dwell_time defined in the mill object must be applied! The points and dwell times in the returned RasterizedPoints object must be scaled according to out_length_unit and out_time_unit.
- Args:
dim_shape (DimObjLike[Shape, LengthUnit]): shpae with length unit to be rasterized. mill (Mill): mill out_length_unit (LengthUnit): length unit of returned RasterizedPoints out_time_unit (TimeUnit): time unit of returned RasterizedPoints
- Returns:
RasterizedPoints