oaRefHeader
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaRefHeader 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaRefHeader 当前在 oapy 中可用的 Python 接口。
详细说明
The oaRefHeader class is an abstract base class that encapsulates information about a particular design master referenced in another design and all of the instances or vias that use it。 The oaRefHeader class is the base of oaInstHeader and oaViaHeader 。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getMaster() |
| ✅ | obj.getMasterBBox(bBox) |
| ✅ | obj.getBBox(bBox) |
| ✅ | obj.getSuperHeader() |
| ✅ | obj.isBound() |
| ✅ | obj.isSuperHeader() |
| ✅ | obj.isSubHeader() |
方法说明
obj.getMaster()
绑定状态: 已绑定
Python 调用: obj.getMaster()
This function attempts to return the master associated with the specified refHeader。 If the master is not bound, OpenAccess will attempt to bind the master。 If the refHeader cannot be bound, NULL will be returned。 Note, binding will not be attempted if the database containing the refHeader is currently being purged。
Python 示例
from oapy._oa import _design
# assume obj is a oaRefHeader
obj.getMaster()
obj.getMasterBBox(bBox)
绑定状态: 已绑定
Python 调用: obj.getMasterBBox(bBox)
This function fills out 'bBox' with the bBox of this refHeader's master。 Note that if the master's bBox is inverted (because the master is empty), it will be set to zero。
参数
bBox: The calculated bBox of the master。
Python 示例
from oapy._oa import _design
# assume obj is a oaRefHeader
obj.getMasterBBox(bBox)
obj.getBBox(bBox)
绑定状态: 已绑定
Python 调用: obj.getBBox(bBox)
This function fills out 'bBox' with the bBox of this instHeader。
参数
bBox: The calculated bBox。
Python 示例
from oapy._oa import _design
# assume obj is a oaRefHeader
obj.getBBox(bBox)
obj.getSuperHeader()
绑定状态: 已绑定
Python 调用: obj.getSuperHeader()
This function returns the superHeader of this refHeader or NULL if it is not a subHeader。
Python 示例
from oapy._oa import _design
# assume obj is a oaRefHeader
obj.getSuperHeader()
obj.isBound()
绑定状态: 已绑定
Python 调用: obj.isBound()
This function returns a boolean indicating whether or not this refHeader is bound。
Python 示例
from oapy._oa import _design
# assume obj is a oaRefHeader
obj.isBound()
obj.isSuperHeader()
绑定状态: 已绑定
Python 调用: obj.isSuperHeader()
This function returns a boolean indicating whether or not this refHeader is a superHeader。
Python 示例
from oapy._oa import _design
# assume obj is a oaRefHeader
obj.isSuperHeader()
obj.isSubHeader()
绑定状态: 已绑定
Python 调用: obj.isSubHeader()
This function returns a boolean indicating whether or not this refHeader is a subHeader。
Python 示例
from oapy._oa import _design
# assume obj is a oaRefHeader
obj.isSubHeader()