Skip to content

Class: View3D

Hierarchy

  • CEventListener

    View3D

Constructors

Properties

Accessors

Methods

Constructors

constructor

new View3D(x?, y?, width?, height?): View3D

Parameters

NameTypeDefault value
xnumber0
ynumber0
widthnumber0
heightnumber0

Returns

View3D

Overrides

CEventListener.constructor

Defined in

src/core/View3D.ts:21

Properties

pickFire

pickFire: PickFire

Defined in

src/core/View3D.ts:17


guiPick

guiPick: GUIPick

Defined in

src/core/View3D.ts:18


canvasList

Readonly canvasList: GUICanvas[]

Defined in

src/core/View3D.ts:19


id

id: number = 0

Record a id. When registering a listening event, the value will increase automatically

Inherited from

CEventListener.id

Defined in

src/event/CEventListener.ts:16


current

current: any

Returns current event dispatcher

Inherited from

CEventListener.current

Defined in

src/event/CEventListener.ts:22


type

type: string | number = null

{string} event type

Inherited from

CEventListener.type

Defined in

src/event/CEventListener.ts:32


thisObject

thisObject: any = null

{any} the object is registerd

Inherited from

CEventListener.thisObject

Defined in

src/event/CEventListener.ts:32


handler

handler: Function = null

{Function} The callback function that handles events.

Inherited from

CEventListener.handler

Defined in

src/event/CEventListener.ts:32


param

param: any = null

{any} Parameters bound when registering events

Inherited from

CEventListener.param

Defined in

src/event/CEventListener.ts:32


priority

priority: number = 0

{number} The priority of callback function execution, with a larger set value having priority to call

Inherited from

CEventListener.priority

Defined in

src/event/CEventListener.ts:32

Accessors

enable

get enable(): boolean

Returns

boolean

Defined in

src/core/View3D.ts:27

set enable(value): void

Parameters

NameType
valueboolean

Returns

void

Defined in

src/core/View3D.ts:31


enablePick

get enablePick(): boolean

Returns

boolean

Defined in

src/core/View3D.ts:35

set enablePick(value): void

Parameters

NameType
valueboolean

Returns

void

Defined in

src/core/View3D.ts:39


scene

get scene(): Scene3D

Returns

Scene3D

Defined in

src/core/View3D.ts:47

set scene(value): void

Parameters

NameType
valueScene3D

Returns

void

Defined in

src/core/View3D.ts:51


camera

get camera(): Camera3D

Returns

Camera3D

Defined in

src/core/View3D.ts:64

set camera(value): void

Parameters

NameType
valueCamera3D

Returns

void

Defined in

src/core/View3D.ts:68


viewPort

get viewPort(): Vector4

Returns

Vector4

Defined in

src/core/View3D.ts:72

set viewPort(value): void

Parameters

NameType
valueVector4

Returns

void

Defined in

src/core/View3D.ts:76

Methods

enableUICanvas

enableUICanvas(index?): GUICanvas

Parameters

NameTypeDefault value
indexnumber0

Returns

GUICanvas

Defined in

src/core/View3D.ts:80


disableUICanvas

disableUICanvas(index?): void

Parameters

NameTypeDefault value
indexnumber0

Returns

void

Defined in

src/core/View3D.ts:100


equalCurrentListener

equalCurrentListener(type, handler, thisObject, param): boolean

Compare whether two events are the same

Parameters

NameTypeDescription
typestring | number{string} event type
handlerFunction{Function} The callback function that handles events.
thisObjectany{any} the object is registerd
paramany{any} Parameters bound when registering events

Returns

boolean

Returns a boolean

Inherited from

CEventListener.equalCurrentListener

Defined in

src/event/CEventListener.ts:43


dispose

dispose(): void

release all registered event.

Returns

void

Inherited from

CEventListener.dispose

Defined in

src/event/CEventListener.ts:55