oaLayerHeader
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaLayerHeader 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaLayerHeader 当前在 oapy 中可用的 Python 接口。
详细说明
The oaLayerHeader class implements persistent objects that are created and destroyed automatically on a need basis。 The existence of an oaLayerHeader object indicates that the layer it represents is currently being used by a database object in some way in the design hierarchy。 oaLayerHeader objects provide direct access to the collections of steiners, guides and blockages that use the layer they represent and provide indirect access to the collection of shapes that use that layer by providing a collection of oaLPPHeader objects that use the same layer as the oaLayerHeader object。 The oaLayerHeader class can be observed by deriving from oaObserver
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getLayer() |
| ✅ | obj.getLayerNum() |
| ✅ | obj.getSteinerBBox(bBox) |
| ✅ | obj.getBlockageBBox(bBox) |
| ✅ | obj.getGuideBBox(bBox) |
| ✅ | obj.getSteiners() |
| ✅ | obj.getBlockages() |
| ✅ | obj.getGuides(filterFlags=oacGuideIterBeginAndEndLayers) |
| ✅ | obj.getLPPHeaders() |
| ✅ | obj.isBound() |
| ✅ | _design.oaLayerHeader.find(block, layerNum) |
方法说明
obj.getLayer()
绑定状态: 已绑定
Python 调用: obj.getLayer()
This function attempts to return the layer associated with the specified layerHeader。 If the layerHeader cannot be bound, a NULL will be returned。 This function returns the layer number associated with this layerHeader。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerHeader
obj.getLayer()
obj.getLayerNum()
绑定状态: 已绑定
Python 调用: obj.getLayerNum()
This function returns the layer number which this layerHeader represents。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerHeader
obj.getLayerNum()
obj.getSteinerBBox(bBox)
绑定状态: 已绑定
Python 调用: obj.getSteinerBBox(bBox)
This function fills out 'bBox' with the bBox which is the union of all the bBoxes of steiners on the layer represented by this layerHeader。
参数
bBox: A reference to an oaBox object to be populated。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerHeader
obj.getSteinerBBox(bBox)
obj.getBlockageBBox(bBox)
绑定状态: 已绑定
Python 调用: obj.getBlockageBBox(bBox)
This function fills out 'bBox' with the bBox which is the union of all the bBoxes of blockages on the layer represented by this layerHeader。 This bBox includes bounding boxes of layer range blockages and layer range halo blockages if the header's layerNum falls in the layer range of these blockages and the layer header is bound to the layer。
参数
bBox: A reference to an oaBox object to be populated。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerHeader
obj.getBlockageBBox(bBox)
obj.getGuideBBox(bBox)
绑定状态: 已绑定
Python 调用: obj.getGuideBBox(bBox)
This function fills out 'bBox' with the bBox which is the union of all the bBoxes of guides that either begin or end on the layer represented by this layerHeader。
参数
bBox: A reference to an oaBox object to be populated。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerHeader
obj.getGuideBBox(bBox)
obj.getSteiners()
绑定状态: 已绑定
Python 调用: obj.getSteiners()
This function returns a collection of steiners associated with the layer represented by this layerHeader。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerHeader
obj.getSteiners()
obj.getBlockages()
绑定状态: 已绑定
Python 调用: obj.getBlockages()
This function returns a collection of blockages associated with the layer represented by this layerHeader。 This collection includes layer range blockages and layer range halo blockages if the header's layerNum falls in the layer range of these blockages and the layer header is bound to the layer。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerHeader
obj.getBlockages()
obj.getGuides(filterFlags=oacGuideIterBeginAndEndLayers)
绑定状态: 已绑定
Python 调用: obj.getGuides(filterFlags=oacGuideIterBeginAndEndLayers)
This function returns a collection of guides related to this layerHeader。 Applications can customize the collection by passing the proper value for the filterFlags parameter。 The default value for this parameter is oavGuideIterBeginAndEndLayers , which results in a collection of a unique set of guides that either begin or end on the layer represented by the layerHeader。 Applications can also use oavGuideIterBeginLayer , which results in a collection of guides that begin on that layer, or they can use oavGuideIterEndLayer , which results in a collection of guides that only end on that layer。 A bit-wise OR of oavGuideIterBeginLayer and oavGuideIterEndLayer results in the same behavior as oavGuideIterBeginAndEndLayers , which is the default value。
参数
filterFlags: These flags represent the customization required by an application, as explained above。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerHeader
obj.getGuides(filterFlags=oacGuideIterBeginAndEndLayers)
obj.getLPPHeaders()
绑定状态: 已绑定
Python 调用: obj.getLPPHeaders()
This function returns a collection of oaLPPHeader objects related to this layerHeader。 An oaLPPHeader is related to the oaLayerHeader if its layer is the same as the oaLayerHeader object。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerHeader
obj.getLPPHeaders()
obj.isBound()
绑定状态: 已绑定
Python 调用: obj.isBound()
This function returns a boolean indicating whether or not this layerHeader is bound to its technology oaLayer object。
Python 示例
from oapy._oa import _design
# assume obj is a oaLayerHeader
obj.isBound()
_design.oaLayerHeader.find(block, layerNum)
绑定状态: 已绑定
Python 调用: _design.oaLayerHeader.find(block, layerNum)
This function searches the specified block looking for an layerHeader with the specified layer number。 If the layerHeader is found, it is returned, otherwise NULL is returned。
参数
block: A pointer to the oaBlock object in which to search。layerNum: The layer number which the layerHeader represents。
Python 示例
from oapy._oa import _design
_design.oaLayerHeader.find(block, layerNum)