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

Frame / SView / Actions / CreatePropertyAction

Class: CreatePropertyAction

SView.Actions.CreatePropertyAction

Memberof

SView.Actions

Description

创建属性Action

Export

Hierarchy

  • Action

    CreatePropertyAction

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new CreatePropertyAction(): CreatePropertyAction

Returns

CreatePropertyAction

Memberof

CreatePropertyAction

Overrides

M3D.Actions.Action.constructor

Properties

id

id: number

Inherited from

M3D.Actions.Action.id


count

Static count: number

Inherited from

M3D.Actions.Action.count

Methods

addProperty

addProperty(key, value, str): string

Parameters

NameTypeDescription
keystring属性的key
valuestring属性值
strstring属性字符串

Returns

string

Description

添加属性

Memberof

CreatePropertyAction


execute

execute(): ActionState

Returns

ActionState

Description

执行Action

Inherited from

M3D.Actions.Action.execute


getEvents

getEvents(): M3DEvent[]

Returns

M3DEvent[]

Description

获得事件列表

Inherited from

M3D.Actions.Action.getEvents


getGeometryProperty

getGeometryProperty(shape, type): string

Parameters

NameTypeDescription
shapeShapeShape对象
typeShapeType类型,可为M3D.Shapes.ShapeType.FACE、M3D.Shapes.ShapeType.SECTION_PLANE、M3D.Shapes.ShapeType.EDGE、M3D.Shapes.ShapeType.SECTION_EDGE、M3D.Shapes.ShapeType.POINT

Returns

string

Description

获取几何属性

Memberof

CreatePropertyAction


getId

getId(): number

Returns

number

Description

获取id

Inherited from

M3D.Actions.Action.getId


getLineProperty

getLineProperty(edge, propertyStr): any

Parameters

NameTypeDescription
edgeEdge
propertyStrany可不传

Returns

any

Description

获取线属性

Memberof

CreatePropertyAction


getModelProperty

getModelProperty(shape): string

Parameters

NameTypeDescription
shapeShape模型对象

Returns

string

Description

获取模型属性

Memberof

CreatePropertyAction


getProperty

getProperty(shape): string

Parameters

NameType
shapeShape

Returns

string

Description

获取属性

Memberof

CreatePropertyAction


getScene

getScene(): Scene

Returns

Scene

Description

获取场景对象

Memberof

CreatePropertyAction


registerEvent

registerEvent(event): void

Parameters

NameTypeDescription
eventM3DEventM3D事件

Returns

void

Description

注册事件

Inherited from

M3D.Actions.Action.registerEvent


removeEvent

removeEvent(): void

Returns

void

Description

删除事件

Inherited from

M3D.Actions.Action.removeEvent


setId

setId(v): void

Parameters

NameTypeDescription
vnumberShapeId

Returns

void

Description

设置id

Inherited from

M3D.Actions.Action.setId


setScene

setScene(scene): void

Parameters

NameType
sceneScene

Returns

void

Description

设置场景对象

Memberof

CreatePropertyAction