Class: View3D
Hierarchy
CEventListener
↳
View3D
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new View3D(x?
, y?
, width?
, height?
): View3D
Parameters
Name | Type | Default value |
---|---|---|
x | number | 0 |
y | number | 0 |
width | number | 0 |
height | number | 0 |
Returns
Overrides
CEventListener.constructor
Defined in
Properties
pickFire
• pickFire: PickFire
Defined in
guiPick
• guiPick: GUIPick
Defined in
canvasList
• Readonly
canvasList: GUICanvas
[]
Defined in
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
• set
enable(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Defined in
enablePick
• get
enablePick(): boolean
Returns
boolean
Defined in
• set
enablePick(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Defined in
scene
• get
scene(): Scene3D
Returns
Defined in
• set
scene(value
): void
Parameters
Name | Type |
---|---|
value | Scene3D |
Returns
void
Defined in
camera
• get
camera(): Camera3D
Returns
Defined in
• set
camera(value
): void
Parameters
Name | Type |
---|---|
value | Camera3D |
Returns
void
Defined in
viewPort
• get
viewPort(): Vector4
Returns
Vector4
Defined in
• set
viewPort(value
): void
Parameters
Name | Type |
---|---|
value | Vector4 |
Returns
void
Defined in
Methods
enableUICanvas
▸ enableUICanvas(index?
): GUICanvas
Parameters
Name | Type | Default value |
---|---|---|
index | number | 0 |
Returns
Defined in
disableUICanvas
▸ disableUICanvas(index?
): void
Parameters
Name | Type | Default value |
---|---|---|
index | number | 0 |
Returns
void
Defined in
equalCurrentListener
▸ equalCurrentListener(type
, handler
, thisObject
, param
): boolean
Compare whether two events are the same
Parameters
Name | Type | Description |
---|---|---|
type | string | number | {string} event type |
handler | Function | {Function} The callback function that handles events. |
thisObject | any | {any} the object is registerd |
param | any | {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