Skip to content

mxcad_3d API 文档 / Mx3dAspectArrow

Class: Mx3dAspectArrow ​

Mx3dAspectArrow 类用于定义箭头的显示属性。 该类提供了设置箭头角度、长度、颜色和缩放特性的方法。

Hierarchy ​

Table of contents ​

Constructors ​

Methods ​

Constructors ​

constructor ​

• new Mx3dAspectArrow()

构造一个箭头显示属性对象。

Overrides ​

Mx3dAspectObject.constructor

• new Mx3dAspectArrow(anAngle, aLength)

构造一个具有指定角度和长度的箭头显示属性对象。

Parameters ​

NameTypeDescription
anAnglenumber箭头的角度。
aLengthnumber箭头的长度。

Overrides ​

Mx3dAspectObject.constructor

Methods ​

Angle ​

▸ Angle(): number

获取箭头的当前角度。

Returns ​

number

当前箭头的角度。


IsZoomable ​

▸ IsZoomable(): boolean

检查箭头是否可缩放。

Returns ​

boolean

如果箭头是可缩放的,则返回 true;否则返回 false。


Length ​

▸ Length(): number

获取箭头的当前长度。

Returns ​

number

当前箭头的长度。


SetAngle ​

▸ SetAngle(anAngle): void

设置箭头的角度。

Parameters ​

NameTypeDescription
anAnglenumber要设置的箭头角度。

Returns ​

void


SetColor ​

▸ SetColor(theColor): void

设置箭头的颜色。

Parameters ​

NameTypeDescription
theColorMx3dGeColor要设置的箭头颜色。

Returns ​

void


SetLength ​

▸ SetLength(theLength): void

设置箭头的长度。

Parameters ​

NameTypeDescription
theLengthnumber要设置的箭头长度。

Returns ​

void


SetZoomable ​

▸ SetZoomable(theIsZoomable): void

设置箭头是否可缩放。

Parameters ​

NameTypeDescription
theIsZoomableboolean如果为 true,箭头是可缩放的;否则为 false。

Returns ​

void