Class with the global layer setup. More...
|void||technologyLayerAdd(int layer,int type)|
|int||technologyLayerGetParameter(int layer,int parnum)|
|void||technologyLayerSetParameter(int layer,int parnum,int value)|
This class is the global setup for all layers in all opened layout windows. Next to the individual layer setup it includes several methods to adjust global layer setting as well as setting for technology properties.
Individual layers can be accessed through its member num. This member is an array in the range of 0 to 1024 of the class layer.
The layers class has only static members, so its members can accessed from C++ macros with the prefix layes::. Here an example for it:
layers::num.name="Layer Number 5";
Scripting from Python:
The class layers has some static members and accessing static class member variables from Python is a bit different:
layers.showAllLayer() layers.number(10).disable() layers.number(9).name="layer nine"
Please see also class setup for more details on accessing static classes with Python.
The class layers can not be used as type, creation of class objects make no sense as it is a complete static class.
All layers will be disabled. No more shapes will be displayed in the drawing. Also in the layers dock window no layer will be listed. Use the enable feature of the class layer to enable required layers afterwards.
The maximum layer number displayed in the layer menu and the layout dock window is set. By default 128 layers are display. By this feature the number of displayed layer controls can be increased up to 1024. A high number of visible layer controls can reduce the start up time of the LayoutEditor.
Disables all layers not used in the current design.
Enables all layers from layer 0 to the set maxmum displayedLayers. This setting will effect the layer controls in the layer dock windows as well as the layers in the layer menu and the display in the drawing window.
This ffunction will find a layer with the name layerName in the list of layers. If there are two layers with this name first layer with the lower layer number is returned. If no layer used the layerName, -1 is returned.
Returns: number of the layer with layerName. -1, if layerName is not found
Returns: the layer used for technology level i. If the level in not used -1 is returned.
Returns: the layer used for globel vias. If no global vias are used in the technology setup -1 is returned.
makes all layer invisible, so afterward no maore all will be displayed inthe drawing area. The layer will still be displayed inthe menu and layer dock window, but marked as invisible.
Hide all layers not used in the current displayed cell. So afterwards any layer not marked as invisible is used in the current displayed cell.
Hide all layers not used in the current design. In contrast to the method hideCurrentUnusedLayers this method will search all cells in the design, even if the cell is not used in the current displayed cell.
loads layer setting from filename. Returns true in case the settings were loaded. false is return, the the file format is not supported. (introduced with release 20180614)
Returns: the number of layers in the LayoutEditor is returned.
Each layer can setup separately via the class layer. The layer-class can be accessed by this array.
Use 'number' instead in the python interface.
Returns: the number of technology levels used in the current setup.
The 3D view of all layers is reset and turned off.
makes all layer visible
Set layer to a technology layer. If type is 1, the layer is a via. If type is 2 the layer is a conductor layer.
Returns: the conductor size, if layer is an conductor layer. Otherwise returns -1.
Returns: the conductor spacing, if layer is an conductor layer. Otherwise returns -1.
Returns: the parameter parnum of the technology parameter of layer
Returns: returns the type of a layer. The returned values are identical to layers::technologyLayerSetParameter
The technology information of all layers is reseted.
Sets information to the technology layer.
extract the level/order of the technology layers (via/conductors) from the current 3d settings