oaHierPath
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaHierPath 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaHierPath 当前在 oapy 中可用的 Python 接口。
详细说明
The oaHierPath utility class implements functions for referring to a specific instance of a design hierarchy。 A hierarchical path is composed of an array that contains the elements of the path and the depth of the path。 Functions are implemented that allow applications to examine the contents of the path。
构造函数
_design.oaHierPath(sizeIn=10)
obj = _design.oaHierPath(sizeIn=10)
_design.oaHierPath(pathIn)
obj = _design.oaHierPath(pathIn)
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.operator=(pathIn) |
| ✅ | obj.operator==(pathIn) |
| ✅ | obj.operator!=(pathIn) |
| ✅ | obj.pushLevel(ref, row=0, col=0) |
| ✅ | obj.popLevel() |
| ✅ | obj.setSize(sizeIn) |
| ✅ | obj.setLevel(level, ref, row, col) |
| ✅ | obj.reset() |
| ✅ | obj.getDepth() |
| ✅ | obj.getLevel(index, ref, row, col) |
| ✅ | obj.getTransform(result) |
方法说明
obj.operator=(pathIn)
绑定状态: 已绑定
Python 调用: obj.operator=(pathIn)
Python 示例
from oapy._oa import _design
# assume obj is a oaHierPath
obj.operator=(pathIn)
obj.operator==(pathIn)
绑定状态: 已绑定
Python 调用: obj.operator==(pathIn)
Python 示例
from oapy._oa import _design
# assume obj is a oaHierPath
obj.operator==(pathIn)
obj.operator!=(pathIn)
绑定状态: 已绑定
Python 调用: obj.operator!=(pathIn)
Python 示例
from oapy._oa import _design
# assume obj is a oaHierPath
obj.operator!=(pathIn)
obj.pushLevel(ref, row=0, col=0)
绑定状态: 已绑定
Python 调用: obj.pushLevel(ref, row=0, col=0)
This function pushes a new level onto the top of this oaHierPath object。 The oaHierPath object is resized if necessary。
参数
ref: The reference to push onto the top of this oaHierPath object。row: The row index; the default value is zero。col: The column index; the default value is zero。
Python 示例
from oapy._oa import _design
# assume obj is a oaHierPath
obj.pushLevel(ref, row=0, col=0)
obj.popLevel()
绑定状态: 已绑定
Python 调用: obj.popLevel()
This function pops the top level off of this oaHierPath。
Python 示例
from oapy._oa import _design
# assume obj is a oaHierPath
obj.popLevel()
obj.setSize(sizeIn)
绑定状态: 已绑定
Python 调用: obj.setSize(sizeIn)
This function sets the size of this hierPath to the specified size and resets the depth to zero。 If the given size is greater than the exiting size, this function allocates new storage and removes the existing data。
参数
sizeIn: The new size。
Python 示例
from oapy._oa import _design
# assume obj is a oaHierPath
obj.setSize(sizeIn)
obj.setLevel(level, ref, row, col)
绑定状态: 已绑定
Python 调用: obj.setLevel(level, ref, row, col)
This function sets the element of the specified level。 The depth of this hierPath is incremented。 It is assumed that the element array has been allocated properly。
参数
level: The specified level of interest。ref: The reference。row: The row number。col: The column number。
Python 示例
from oapy._oa import _design
# assume obj is a oaHierPath
obj.setLevel(level, ref, row, col)
obj.reset()
绑定状态: 已绑定
Python 调用: obj.reset()
This function resets this oaHierPath object to empty。
Python 示例
from oapy._oa import _design
# assume obj is a oaHierPath
obj.reset()
obj.getDepth()
绑定状态: 已绑定
Python 调用: obj.getDepth()
This function returns the depth of this oaHierPath。
Python 示例
from oapy._oa import _design
# assume obj is a oaHierPath
obj.getDepth()
obj.getLevel(index, ref, row, col)
绑定状态: 已绑定
Python 调用: obj.getLevel(index, ref, row, col)
This function returns the specified level in this path。
参数
level: The specified level of interest。ref: The reference to return。row: The reference of the row。col: The reference of the col。
Python 示例
from oapy._oa import _design
# assume obj is a oaHierPath
obj.getLevel(index, ref, row, col)
obj.getTransform(result)
绑定状态: 已绑定
Python 调用: obj.getTransform(result)
This function returns the concatenated transform for the context of this oaHierPath object。
参数
result: The reference of the transform to return。
Python 示例
from oapy._oa import _design
# assume obj is a oaHierPath
obj.getTransform(result)