the fair gds editor MacroClassLayer

Layer Class Reference

Layer display setup class. More...

See also: List of Classes


Detailed Description

This class is the setup for the display of one layer. Each layer can accessed via the class layers.

   1 layers::num[5].name="Layer Number 5";

The class layer can not be used as type.

In scripting languages not able to handle array of classes the indivitual layers cann be accessed with the number method:

   1 layers.number(9).name="layer nine"

See also: MacroClassLayers

Member Function Documentation

int layer::blue()

Returns: the blue part of the layer color. (introduced with version 20140104)

void layer::disable()

The layer will be disabled and not be displayed in the menus/toolbars.

void layer::enable()

The layer will be enabled and be displayed in the menus/toolbars.

int layer::get3dLevel()

Returns: the level of the layer in the 3d view (introduced with version 20141101)

int layer::get3dThickness()

Returns: the thickness of the layer in the 3d view (introduced with version 20141101)

int layer::getStyle()

The style/filling of a layer can read via this method. Returns: style see above for details on available styles

int layer::green()

Returns: the green part of the layer color. (introduced with version 20140104)

bool layer::isConductor()

Returns: true, if the layer is a conductor. (introduced with version 20150128)

bool layer::isEnabled()

Returns: true, if the layer is enabled.

bool layer::isVia()

Returns: true, if the layer is a via. (introduced with version 20150128)

int layer::mapToDatatype

If the option "gds map layer" or "oasis map layer" is active, the layer is mapped to this datatype. If datatype is <0, all load datatypes are mapped and saved with datatype 0

int layer::mapToLayer

If the option "gds map layer" or "oasis map layer" is active, the layer is mapped to this value.

string layer::name

The name of a layer is hold here.

void layer::set3dView(int level,int thickness)

The height level and the thickness of the layer ist set. The values are used for the 3dView and some calulations like the ExtractionCapacitance.

int layer::red()

Returns: the red part of the layer color. (introduced with version 20140104)

void layer::setColor(int red, int green, int blue)

The color of a layer can modified via method.

Parameter:

red

the red component

green

the green component

blue

the blue component

void layer::setStyle(int style)

The style/filling of a layer can modified via this method. 40 diffent fillstyles are supported:

fillstyles.png

row one has the style number 0 to 9 (from left to right), row two the number 10 to 19 and so on.

string layer::shortkey

shortkey for this layer used in the layer-shortkey functions.

bool layer::visible

The visibility of a layer can modified via this value.

See also


CategoryMacroClass


MacroClassLayer (last edited 2017-03-23 11:17:27 by JurgenThies)