首页 / design / oaDot

oaDot

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

概览

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

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

详细说明

The oaDot class implements an oaDot shape。 An oaDot shape represents a dot at a location point that can have a non-zero width and height。

方法总览

状态 Python 调用
obj.getLocation(point)
obj.getWidth()
obj.getHeight()
obj.setLocation(location)
obj.setWidth(width)
obj.setHeight(height)
_design.oaDot.create(block, layerNum, purposeNum, location, width=0, height=0)

方法说明

obj.getLocation(point)

绑定状态: 已绑定

Python 调用: obj.getLocation(point)

This function fills out location with the location point of this dot。

Python 示例

from oapy._oa import _design

# assume obj is a oaDot
obj.getLocation(point)

obj.getWidth()

绑定状态: 已绑定

Python 调用: obj.getWidth()

This function returns the width of this dot。

Python 示例

from oapy._oa import _design

# assume obj is a oaDot
obj.getWidth()

obj.getHeight()

绑定状态: 已绑定

Python 调用: obj.getHeight()

This function returns the height of this dot。

Python 示例

from oapy._oa import _design

# assume obj is a oaDot
obj.getHeight()

obj.setLocation(location)

绑定状态: 已绑定

Python 调用: obj.setLocation(location)

This function sets the location of this dot to the specified value。

Python 示例

from oapy._oa import _design

# assume obj is a oaDot
obj.setLocation(location)

obj.setWidth(width)

绑定状态: 已绑定

Python 调用: obj.setWidth(width)

This function sets the width of this dot to the specified value。

Python 示例

from oapy._oa import _design

# assume obj is a oaDot
obj.setWidth(width)

obj.setHeight(height)

绑定状态: 已绑定

Python 调用: obj.setHeight(height)

This function sets the height of this dot to the specified value。

Python 示例

from oapy._oa import _design

# assume obj is a oaDot
obj.setHeight(height)

_design.oaDot.create(block, layerNum, purposeNum, location, width=0, height=0)

绑定状态: 已绑定

Python 调用: _design.oaDot.create(block, layerNum, purposeNum, location, width=0, height=0)

This function creates a dot in the specified block, with the specified layer number, purpose number, location, and optional width and height。

Python 示例

from oapy._oa import _design

_design.oaDot.create(block, layerNum, purposeNum, location, width=0, height=0)