Skip to content

Class: DrawPolyhedron

绘制立方体

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new DrawPolyhedron(viewer, options?): DrawPolyhedron

Parameters

NameType
viewerViewer
options?DrawPolyhedronOptions

Returns

DrawPolyhedron

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:84

Properties

viewer

viewer: Viewer

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:70


_pickPrimitive

_pickPrimitive: null

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:71


_originPrimitive

_originPrimitive: any

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:72


editMovingEvent

editMovingEvent: Event<(...args: any[]) => void>

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:73


drawEndEvent

drawEndEvent: Event<(...args: any[]) => void>

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:74


editEndEvent

editEndEvent: Event<(...args: any[]) => void>

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:75


_cubeLayer

_cubeLayer: any

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:76


_outlineLayer

_outlineLayer: any

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:77


_handler

_handler: ScreenSpaceEventHandler

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:78


_editPointLayer

_editPointLayer: any

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:79


polyhedronStyle

polyhedronStyle: any

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:80


pointStyle

pointStyle: any

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:81


showOutline

showOutline: any

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:82


_attributeData

_attributeData: any[]

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:83

Accessors

defaultStyle

get defaultStyle(): DefaultStyle

Returns

DefaultStyle

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:574

Methods

draw

draw(): void

绘制立方体

Returns

void

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:114


drawByPositions

drawByPositions(positions): void

通过传入点集合创建可编辑立方体

Parameters

NameType
positionsCartesian3[]

Returns

void

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:185


destroy

destroy(): void

销毁所有图层

Returns

void

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:272


exitEdit

exitEdit(isSave?): void

取消编辑 当调用取消编辑并保存的方法时,返回的是编辑结束后的 primitive

Parameters

NameType
isSave?boolean

Returns

void

Memberof

DrawPolyhedron

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:287


_removeEditPoint

_removeEditPoint(): void

Returns

void

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:348


clear

clear(): void

清除结果

Returns

void

Memberof

DrawSphere

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:357


edit

edit(): void

编辑立方体, 右键可随时退出并保存编辑

Returns

void

Defined in

src/interaction/DrawEditableCube/DrawPolyhedron.ts:369