oaLayerBlockage
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaLayerBlockage 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaLayerBlockage 当前在 oapy 中可用的 Python 接口。
详细说明
A layer blockage is a type of blockage representing an area on a given layer。 The shape of a blockage is described using an oaPointArray 。 Coincident and collinear points are illegal in the point array for a layer blockage。 For more information on coincident and collinear points, see oaPointArray::compress() oaLayerBlockages may have an effective width。 This is the value that is used by routing tools to determine the minimum spacing constraint for other geometry placed near the blockage。 Typically, if a blockage has no effective width ( hasEffectiveWidth() is false), the blockage should be treated as "real geometry" by tools, and its width is the width of the blockage plus any other adjacent geometry。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getLayerNum() |
| ✅ | obj.getLayerHeader() |
| ✅ | obj.getEffectiveWidth() |
| ✅ | obj.hasEffectiveWidth() |
| ✅ | obj.getSpacing() |
| ✅ | obj.hasSpacing() |
| ✅ | obj.allowPGNet() |
| ✅ | obj.setLayerNum(layerNum) |
| ✅ | obj.setPoints(points) |
| ✅ | obj.setEffectiveWidth(width) |
| ✅ | obj.unsetEffectiveWidth() |
| ✅ | obj.setSpacing(spacing) |
| ✅ | obj.unsetSpacing() |
| ✅ | obj.setAllowPGNet(allowPGNet) |
| ✅ | obj.transform(scale, angle) |
| ✅ | _design.oaLayerBlockage.create(block, type, layer, points, owner=NULL) |
方法说明
obj.getLayerNum()
绑定状态: 已绑定
Python 调用: obj.getLayerNum()
This function returns the layer number associated with this blockage。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerBlockage
obj.getLayerNum()
obj.getLayerHeader()
绑定状态: 已绑定
Python 调用: obj.getLayerHeader()
This function returns the layerHeader for the layer of this blockage。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerBlockage
obj.getLayerHeader()
obj.getEffectiveWidth()
绑定状态: 已绑定
Python 调用: obj.getEffectiveWidth()
This function returns the effective width of with this blockage。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerBlockage
obj.getEffectiveWidth()
obj.hasEffectiveWidth()
绑定状态: 已绑定
Python 调用: obj.hasEffectiveWidth()
This function returns a boolean indicating whether or not an effective width has been set for this blockage。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerBlockage
obj.hasEffectiveWidth()
obj.getSpacing()
绑定状态: 已绑定
Python 调用: obj.getSpacing()
This function returns the spacing attribute on this blockage。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerBlockage
obj.getSpacing()
obj.hasSpacing()
绑定状态: 已绑定
Python 调用: obj.hasSpacing()
This function returns a boolean indicating whether or not the effective spacing attribute is set for this blockage。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerBlockage
obj.hasSpacing()
obj.allowPGNet()
绑定状态: 已绑定
Python 调用: obj.allowPGNet()
This function returns a boolean indicating whether shapes for power and ground nets are allowed within this blockage area。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerBlockage
obj.allowPGNet()
obj.setLayerNum(layerNum)
绑定状态: 已绑定
Python 调用: obj.setLayerNum(layerNum)
This function moves this blockage to the specified layer。 The new layer is created if it does not exist。 The old layer is deleted if it becomes empty。 A layer may not be set on placement blockages。
参数
layerNum: The layer number。
异常
oacInvalidLayerForLayerBlockage。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerBlockage
obj.setLayerNum(layerNum)
obj.setPoints(points)
绑定状态: 已绑定
Python 调用: obj.setPoints(points)
This function updates the shape of the blockages to the shape specified by the pointArray。
参数
points: The pointArray describing the new shape of the blockage。
异常
oacBlockageHasExtraPoints。oacBlockageTooFewPoints。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerBlockage
obj.setPoints(points)
obj.setEffectiveWidth(width)
绑定状态: 已绑定
Python 调用: obj.setEffectiveWidth(width)
This function sets the effective width of this blockage。 The effective width value allows you to specify what width should be used when looking up the minimum spacing value in the technology database。 Usage is as follows: no Width: Use the actual blockage size to look up min spacing。 Width > 0: Use the given width to look up minimum spacing。 Width = 0: No spacing required。 By default, blockage effective width is used to set spacing。 oaLayerBlockage::setSpacing also can be used to set spacing。 Note, however, that the spacing and effective width attributes are mutually exclusive。 An attempt to set the effective width attribute on a blockage without first unsetting an existing spacing attribute throws an oacBlockageSpacingWidthExclusive exception。
参数
width: effective width value。
异常
oacBlockageSpacingWidthExclusive。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerBlockage
obj.setEffectiveWidth(width)
obj.unsetEffectiveWidth()
绑定状态: 已绑定
Python 调用: obj.unsetEffectiveWidth()
This function removes the effective width value for this blockage。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerBlockage
obj.unsetEffectiveWidth()
obj.setSpacing(spacing)
绑定状态: 已绑定
Python 调用: obj.setSpacing(spacing)
This function sets the spacing attribute for this blockage。 The spacing and effective width attributes are mutually exclusive。 By default, the spacing attribute is unset, which means the blockage effective width is used to set spacing。 An attempt to set the spacing attribute on a blockage, without first unsetting an existing effective width attribute, throws an oacBlockageSpacingWidthExclusive exception。
参数
spacing: The spacing value for this blockage。
异常
oacBlockageSpacingWidthExclusive。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerBlockage
obj.setSpacing(spacing)
obj.unsetSpacing()
绑定状态: 已绑定
Python 调用: obj.unsetSpacing()
This function unsets the spacing attribute for this blockage。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerBlockage
obj.unsetSpacing()
obj.setAllowPGNet(allowPGNet)
绑定状态: 已绑定
Python 调用: obj.setAllowPGNet(allowPGNet)
This function sets the allowPGNet attribute for this blockage。 When set, shapes for the signal types oacPowerSigType and oacGroundSigType are allowed within the blockage area。
参数
allowPGNet:
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerBlockage
obj.setAllowPGNet(allowPGNet)
obj.transform(scale, angle)
绑定状态: 已绑定
Python 调用: obj.transform(scale, angle)
This function transforms this blockage by the specified scale factor and rotation angle。 If this blockage is a leader in a group, every object in the group is moved with the specified transform。
参数
scale: The scale for the transformation。angle: The angle of the transformation。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerBlockage
obj.transform(scale, angle)
_design.oaLayerBlockage.create(block, type, layer, points, owner=NULL)
绑定状态: 已绑定
Python 调用: _design.oaLayerBlockage.create(block, type, layer, points, owner=NULL)
This is the constructor for a layer blockage。
参数
block: The block in which to create the area blockage。type: The type of blockage to create。 Note: an oaLayerBlockage should not have a blockageType of oacPlacementBlockageType。layer: The layer on which to create the blockage。points: The pointArray describing the shape of the blockage。owner: The optional cluster or boundary owner of the blockage。
异常
oacInvalidLayerForLayerBlockage。oacInvalidTypeForLayerBlockage。oacBlockageHasExtraPoints。oacBlockageTooFewPoints。oacInvalidBlockageOwner。
Python 示例
from oapy._oa import _design
_design.oaLayerBlockage.create(block, type, layer, points, owner=NULL)