跳到主要内容
版本:v10.0

M3D / M3D / Shapes / LineFeature

Class: LineFeature

M3D.Shapes.LineFeature

Memberof

M3D.Shapes

Description

Line属性类

Author

YW

Date

2022-1-20

Version

1.0

Copyright

All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new LineFeature(): LineFeature

Returns

LineFeature

Description

构造函数

Overrides

GeometryFeature.constructor

Properties

id

id: number

Inherited from

GeometryFeature.id


count

Static count: number

Inherited from

GeometryFeature.count

Methods

clone

clone(): LineFeature

Returns

LineFeature

Description

线属性克隆

Overrides

GeometryFeature.clone


getDirection

getDirection(): Vector3

Returns

Vector3

直线方向向量

Description

获取直线方向向量


getEndPoint

getEndPoint(): Vector3

Returns

Vector3

边界线终点

Description

获取边界线终点


getEvents

getEvents(): M3DEvent[]

Returns

M3DEvent[]

Description

获得事件列表

Inherited from

GeometryFeature.getEvents


getFeatureType

getFeatureType(): GeoFeatureEnum

Returns

GeoFeatureEnum

Description

获取特征类型

Inherited from

GeometryFeature.getFeatureType


getId

getId(): number

Returns

number

Description

获取id

Inherited from

GeometryFeature.getId


getLength

getLength(): number

Returns

number

边界线长度

Description

获取边界线长度


getMid

getMid(): Vector3

Returns

Vector3

直线中点

Description

获取直线中点


getOwnerId

getOwnerId(): number

Returns

number

Description

获取所属对象ID

Inherited from

GeometryFeature.getOwnerId


getStartPoint

getStartPoint(): Vector3

Returns

Vector3

边界线起始点

Description

获取边界线起始点


registerEvent

registerEvent(event): void

Parameters

NameTypeDescription
eventM3DEventM3D事件

Returns

void

Description

注册事件

Inherited from

GeometryFeature.registerEvent


removeEvent

removeEvent(): void

Returns

void

Description

删除事件

Inherited from

GeometryFeature.removeEvent


setDirection

setDirection(direction): void

Parameters

NameType
directionVector3

Returns

void

Description

设置直线方向向量


setEndPoint

setEndPoint(point): void

Parameters

NameTypeDescription
pointVector3边界线终点

Returns

void

Description

设置边界线终点


setFeatureType

setFeatureType(geoFeatureType): void

Parameters

NameTypeDescription
geoFeatureTypeGeoFeatureEnum特征类型

Returns

void

Description

设置特征类型

Inherited from

GeometryFeature.setFeatureType


setId

setId(v): void

Parameters

NameTypeDescription
vnumberShapeId

Returns

void

Description

设置id

Inherited from

GeometryFeature.setId


setLength

setLength(length): void

Parameters

NameTypeDescription
lengthnumber边界线长度

Returns

void

Description

设置边界线长度


setMid

setMid(mid): void

Parameters

NameTypeDescription
midVector3中点

Returns

void

Description

设置直线中点


setOwnerId

setOwnerId(ownerId): void

Parameters

NameTypeDescription
ownerIdnumber所属对象ID

Returns

void

Description

设置所属对象ID

Inherited from

GeometryFeature.setOwnerId


setStartPoint

setStartPoint(point): void

Parameters

NameTypeDescription
pointVector3边界线起始点

Returns

void

Description

设置边界线起始点