首页 / design / oaOccShape

oaOccShape

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

概览

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

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

详细说明

The oaOccShape class is an abstract base class for all types of occurrence shapes。 An oaOccShape object represents an unique occurrence of an oaShape object in a design hierarchy。 Each type of oaShape will have a corresponding oaOccShape class。 These classes include: oaOccArc oaOccDonut oaOccDot oaOccEllipse oaOccLine oaOccPath oaOccPathSeg oaOccPolygon oaOccRect oaOccText oaOccEvalText oaOccTextDisplay oaOccPropDisplay oaOccAttrDisplay oaOccTextOverride oaOccInstPropDisplay oaOccInstAttrDisplay The oaOccShape class has a read-only interface, which means that oaOccShape objects cannot be saved persistently, cannot have properties attached to them, and cannot be assigned to groups。 oaOccShapes are dynamically generated。 Applications are responsible for notifying OpenAccess to free the resources associated with each oaOccShape object。

方法总览

状态 Python 调用
obj.getShape()
obj.getBBox(bBox)
obj.getHierPath(hierPath)
obj.getHeader()
obj.getLayerNum()
obj.getPurposeNum()
obj.getRouteStatus()
obj.hasPin()
obj.getPin()
obj.hasNet()
obj.getNet()
obj.copy(xform)
obj.copy(xform, design)
obj.release()
_design.oaOccShape.get(shape, topDesign, hierPath)

方法说明

obj.getShape()

绑定状态: 已绑定

Python 调用: obj.getShape()

This function returns the shape from which this occShape is generated。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccShape
obj.getShape()

obj.getBBox(bBox)

绑定状态: 已绑定

Python 调用: obj.getBBox(bBox)

This function fills out 'bBox' with the bBox of the specified occShape。

参数

  • bBox: The bounding box to be filled。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccShape
obj.getBBox(bBox)

obj.getHierPath(hierPath)

绑定状态: 已绑定

Python 调用: obj.getHierPath(hierPath)

This function fills out the specified 'hierPath' with the hierPath associated with this occShape。

参数

  • hierPath: The oaHierPath to be filled。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccShape
obj.getHierPath(hierPath)

obj.getHeader()

绑定状态: 已绑定

Python 调用: obj.getHeader()

This function returns the lppHeader of the shape from which this occShape is generated。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccShape
obj.getHeader()

obj.getLayerNum()

绑定状态: 已绑定

Python 调用: obj.getLayerNum()

This function returns the layer number of the shape from which this occShape is generated。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccShape
obj.getLayerNum()

obj.getPurposeNum()

绑定状态: 已绑定

Python 调用: obj.getPurposeNum()

This function returns the purpose number of the shape from which this occShape is generated。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccShape
obj.getPurposeNum()

obj.getRouteStatus()

绑定状态: 已绑定

Python 调用: obj.getRouteStatus()

This function returns the routeStatus of the shape from which this occShape is generated。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccShape
obj.getRouteStatus()

obj.hasPin()

绑定状态: 已绑定

Python 调用: obj.hasPin()

This function returns a boolean indicating whether or not the shape from which this occShape is generated。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccShape
obj.hasPin()

obj.getPin()

绑定状态: 已绑定

Python 调用: obj.getPin()

This function returns the pin implemented by the shape from which this occShape is generated。 If the shape does not implement a pin, NULL is returned。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccShape
obj.getPin()

obj.hasNet()

绑定状态: 已绑定

Python 调用: obj.hasNet()

This function returns a boolean indicating whether or not the shape from which this occShape is generated is attached to a net。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccShape
obj.hasNet()

obj.getNet()

绑定状态: 已绑定

Python 调用: obj.getNet()

This function returns the highest net to which this occShape is attached。 Note that this function will return a net if the shape is directly assigned to a net or if the shape is in a route that is assigned to a net。 It will not return a net (it will return NULL) if the shape belongs to a pin。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccShape
obj.getNet()

obj.copy(xform)

绑定状态: 已绑定

Python 调用: obj.copy(xform)

This function copies the occShape into an oaShape object in the specified design。 The new shape is moved from the location of the original by the specified transform。 The new shape is returned。 An exception is thrown if the occShape is an occTextDisplay and the shape from which the occShape is generated is not in the specified design。

参数

  • xform: The transformation used to transform the occShape。
  • design: The target design。

异常

  • oacInvalidTextDisplayCopy

Python 示例

from oapy._oa import _design

# assume obj is a oaOccShape
obj.copy(xform)

obj.copy(xform, design)

绑定状态: 已绑定

Python 调用: obj.copy(xform, design)

This function copies the occShape into an oaShape object in the design containing the occShape。 The new shape is moved from the location of the original by the specified transform。 The new shape is returned。 An exception is thrown if the occShape is an occTextDisplay and the shape from which the occShape is generated is not in the top level design。

参数

  • xform: The transformation used to transform the occShape。

异常

  • oacInvalidTextDisplayCopy

Python 示例

from oapy._oa import _design

# assume obj is a oaOccShape
obj.copy(xform, design)

obj.release()

绑定状态: 已绑定

Python 调用: obj.release()

This function decrements the refCount of this occShape。 If the refCount goes to zero, this occShape will be destroyed。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccShape
obj.release()

_design.oaOccShape.get(shape, topDesign, hierPath)

绑定状态: 已绑定

Python 调用: _design.oaOccShape.get(shape, topDesign, hierPath)

This function returns the occShape associated with the given shape in the design associated with the given hierPath and topDesign。 If the occShape does not exist, one will be generated and returned。

参数

  • shape: The shape from which the occShape is generated。
  • topDesign: Specifies the top level design of the design hierarchy associated with the given hierPath。
  • hierPath: Specifies the hierarchical path from the top level to the design containing the given shape。

异常

  • oacInvalidHierPath

Python 示例

from oapy._oa import _design

_design.oaOccShape.get(shape, topDesign, hierPath)