首页 / design / oaSteiner

oaSteiner

模块: oapy._oa._design 导入: from oapy._oa import _design

概览

oaSteineroapy 中可用,可通过 _design 模块访问。

本页汇总 oaSteiner 当前在 oapy 中可用的 Python 接口。

详细说明

The oaSteiner class is used to represent a logical object that facilitates the branching of a wire。 oaSteiner objects are figures which can be associated with a layer and can have net connectivity。 oaSteiner objects also qualify as objects that can connect to an oaRoute object either at its begin or end and allow clients to access the collection of routes fanning out or fanning in from/to it。 The oaSteiner class can be observed by deriving from oaObserver

方法总览

状态 Python 调用
obj.getLayerHeader()
obj.getLayerNum()
obj.setBBox(bBox)
obj.setLayerNum(layer)
obj.getConnRoutes()
_design.oaSteiner.create(block, bBox, layer=oacAnyLayerNum)

方法说明

obj.getLayerHeader()

绑定状态: 已绑定

Python 调用: obj.getLayerHeader()

This function returns a pointer to the oaLayerHeader object that represents the layer associated with the steiner object。 A NULL value is returned if the steiner is not associated with any layer。

Python 示例

from oapy._oa import _design

# assume obj is a oaSteiner
obj.getLayerHeader()

obj.getLayerNum()

绑定状态: 已绑定

Python 调用: obj.getLayerNum()

This function returns the layer number of the layer that may be associated with this steiner。 An oacAnyLayerNum value is returned if the steiner is not associated with any layer。

Python 示例

from oapy._oa import _design

# assume obj is a oaSteiner
obj.getLayerNum()

obj.setBBox(bBox)

绑定状态: 已绑定

Python 调用: obj.setBBox(bBox)

This function updates the bBox of the steiner object to be the specified 'bBox'。

参数

  • bBox: The new bBox for the steiner。

Python 示例

from oapy._oa import _design

# assume obj is a oaSteiner
obj.setBBox(bBox)

obj.setLayerNum(layer)

绑定状态: 已绑定

Python 调用: obj.setLayerNum(layer)

This function updates the layer of the steiner object to be the specified 'layer'。 The steiner object will also get associated to the corresponding oaLayerHeader object if the specified 'layer' value is not oacAnyLayerNum。 The steiner also gets disassociated from any earlier oaLayerHeader object it may have been related to, if any, before the new layer assignment is made。

参数

  • layer: The layer number for the layer to be associated with the steiner。

Python 示例

from oapy._oa import _design

# assume obj is a oaSteiner
obj.setLayerNum(layer)

obj.getConnRoutes()

绑定状态: 已绑定

Python 调用: obj.getConnRoutes()

This function returns a collection of routes connected to this steiner。 Each route in the collection has this steiner as its connection object, either at its begin or its end。

Python 示例

from oapy._oa import _design

# assume obj is a oaSteiner
obj.getConnRoutes()

_design.oaSteiner.create(block, bBox, layer=oacAnyLayerNum)

绑定状态: 已绑定

Python 调用: _design.oaSteiner.create(block, bBox, layer=oacAnyLayerNum)

This function creates an oaSteiner object in the specified 'block' with the specified 'bBox' and having the specified 'layer'。 The layer specification is optional and a steiner may not have any associated layer。

参数

  • block: The block in which this oaSteiner object is created。
  • bBox: The bBox to be used for this steiner object。
  • layer: The layer this steiner needs to be associated with, if any。

返回

  • A pointer to the oaSteiner object created。

Python 示例

from oapy._oa import _design

_design.oaSteiner.create(block, bBox, layer=oacAnyLayerNum)