oaOrient
模块: oapy._oa._base
导入: from oapy._oa import _base
概览
oaOrient 在 oapy 中可用,可通过 _base 模块访问。
本页汇总 oaOrient 当前在 oapy 中可用的 Python 接口。
详细说明
The oaOrient is an enum wrapper class that describes the various possible combinations of rotation and mirroring about the X or Y axes。 The Using Transforms section in the Programmers Guide has an illustration of each orientation。 See Enum Wrappers in the Programmers Guide for a discussion of enum wrappers。 enum oaOrientEnum The oaOrient enumerator。 Mirror about the Y axis means mirror horizontally。 Mirror about the X axis means mirror vertically。 Enumeration values: oacR0 "R0" Represents no change in orientation oacR90 "R90" Represents a 90 degree rotation oacR180 "R180" Represents a 180 degree rotation oacR270 "R270" Represents a 270 degree rotation oacMY "MY" Represents mirroring about the Y axis oacMYR90 "MYR90" Represents mirroring about the Y axis then a 90 degree rotation oacMX "MX" Represents mirroring about the X axis oacMXR90 "MXR90" Represents mirroring about the X axis then a 90 degree rotation。
构造函数
_base.oaOrient(valueIn=oacR0)
obj = _base.oaOrient(valueIn=oacR0)
_base.oaOrient(name)
obj = _base.oaOrient(name)
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.concat(orient) |
| ✅ | obj.getRelativeOrient(orient) |
| ✅ | obj.getName() |
方法说明
obj.concat(orient)
绑定状态: 已绑定
Python 调用: obj.concat(orient)
This function concatenates this orientation with the specified orientation and returns the result。
参数
orient: The orientation with which to concatenate this orientation。
Python 示例
from oapy._oa import _base
# assume obj is a oaOrient
obj.concat(orient)
obj.getRelativeOrient(orient)
绑定状态: 已绑定
Python 调用: obj.getRelativeOrient(orient)
This function returns the relative orientation required to transform this orientation to the specified target orientation 'orient'。
参数
orient: The target orientation。
Python 示例
from oapy._oa import _base
# assume obj is a oaOrient
obj.getRelativeOrient(orient)
obj.getName()
绑定状态: 已绑定
Python 调用: obj.getName()
This function returns the name string associated with the encapsulated oaOrientEnum object。
Python 示例
from oapy._oa import _base
# assume obj is a oaOrient
obj.getName()