LayerInfo

A single layer definition with metadata.

Combines the GDS layer identity (number, datatype) with display properties (color, fill, opacity) and a human-readable description.

Use info.layer to get the underlying Layer for rosette APIs:

layers = load_layer_map()
cell.add_polygon(poly, layers.silicon.layer)

Attributes

attributenamestr

Semantic name (e.g., "silicon", "metal").

attributelayerLayer

The underlying Layer(number, datatype).

attributecolorstr

Hex color string (e.g., "#ff69b4").

attributefillstr

Fill pattern: "solid", "hatched", "crosshatched", or "dotted".

attributeopacityfloat

Fill opacity from 0.0 to 1.0.

attributedescriptionstr

Human-readable description.

attributenumberint

GDS layer number (shortcut for layer.number).

attributedatatypeint

GDS datatype (shortcut for layer.datatype).

Methods

func__init__(name, layer, color='#808080', fill='solid', opacity=0.7, description='') -> None

Create a new LayerInfo.

paramnamestr

Semantic name for the layer.

paramlayerLayer

The GDS layer identity.

paramcolorstr
= '#808080'

Hex color string.

paramfillstr
= 'solid'

Fill pattern.

paramopacityfloat
= 0.7

Fill opacity.

paramdescriptionstr
= ''

Human-readable description.

Returns

None

On this page