Class: Object3DModel
Core-API.Object3DModel
Implements
IModel
<Object3D
>
Properties
assetType
• assetType: "model"
Implementation of
Defined in
webgi/src/core/threejs/Object3DModel.ts:16
Accessors
visible
• get
visible(): boolean
Returns
boolean
Implementation of
Defined in
webgi/src/core/threejs/Object3DModel.ts:18
• set
visible(visible
): void
Parameters
Name | Type |
---|---|
visible | boolean |
Returns
void
Implementation of
Defined in
webgi/src/core/threejs/Object3DModel.ts:21
uuid
• get
uuid(): string
Returns
string
Implementation of
Defined in
webgi/src/core/threejs/Object3DModel.ts:24
modelObject
• get
modelObject(): Object3D
<Event
, string
> & IModel
<Object3D
<Event
, string
>>
Internal three.js Object3D instance (like Mesh, Group, etc)
Returns
Object3D
<Event
, string
> & IModel
<Object3D
<Event
, string
>>
Implementation of
Defined in
webgi/src/core/threejs/Object3DModel.ts:27
name
• get
name(): string
Returns
string
Implementation of
Defined in
webgi/src/core/threejs/Object3DModel.ts:31
• set
name(name
): void
Parameters
Name | Type |
---|---|
name | string |
Returns
void
Implementation of
Defined in
webgi/src/core/threejs/Object3DModel.ts:34
license
• get
license(): string
Returns
string
Defined in
webgi/src/core/threejs/Object3DModel.ts:95
• set
license(license
): void
Parameters
Name | Type |
---|---|
license | string |
Returns
void
Defined in
webgi/src/core/threejs/Object3DModel.ts:99
material
• get
material(): undefined
| IMaterial
<any
> | IMaterial
<any
>[]
Use setMaterial
to change the material
Get one or more materials applied to an object
Returns
undefined
| IMaterial
<any
> | IMaterial
<any
>[]
Implementation of
Defined in
webgi/src/core/threejs/Object3DModel.ts:147
geometry
• get
geometry(): any
Returns
any
Implementation of
Defined in
webgi/src/core/threejs/Object3DModel.ts:150
userData
• get
userData(): any
Returns
any
Implementation of
Defined in
webgi/src/core/threejs/Object3DModel.ts:162
• set
userData(userData
): void
Parameters
Name | Type |
---|---|
userData | any |
Returns
void
Implementation of
Defined in
webgi/src/core/threejs/Object3DModel.ts:166
uiConfig
• get
uiConfig(): UiObjectConfig
<any
, string
>
Returns
UiObjectConfig
<any
, string
>
Implementation of
Defined in
webgi/src/core/threejs/Object3DModel.ts:181
Constructors
constructor
• new Object3DModel(modelObject
, __namedParameters?
)
Parameters
Name | Type |
---|---|
modelObject | Object3D <Event , string > & IModel <any > |
__namedParameters | Object3DModelOptions |
Defined in
webgi/src/core/threejs/Object3DModel.ts:40
Methods
addEventListener
▸ addEventListener(type
, listener
): void
Parameters
Name | Type |
---|---|
type | string |
listener | (event : IEvent <string >) => void |
Returns
void
Implementation of
IModel.addEventListener
Defined in
webgi/src/core/threejs/Object3DModel.ts:103
dispatchEvent
▸ dispatchEvent(event
): void
Parameters
Name | Type |
---|---|
event | IEvent <string > |
Returns
void
Implementation of
IModel.dispatchEvent
Defined in
webgi/src/core/threejs/Object3DModel.ts:107
hasEventListener
▸ hasEventListener(type
, listener
): boolean
Parameters
Name | Type |
---|---|
type | string |
listener | (event : IEvent <string >) => void |
Returns
boolean
Implementation of
IModel.hasEventListener
Defined in
webgi/src/core/threejs/Object3DModel.ts:111
removeEventListener
▸ removeEventListener(type
, listener
): void
Parameters
Name | Type |
---|---|
type | string |
listener | (event : IEvent <string >) => void |
Returns
void
Implementation of
IModel.removeEventListener
Defined in
webgi/src/core/threejs/Object3DModel.ts:115
traverse
▸ traverse(callback
): void
Parameters
Name | Type |
---|---|
callback | (object : Object3D <Event , string >) => void |
Returns
void
Defined in
webgi/src/core/threejs/Object3DModel.ts:119
dispose
▸ dispose(): void
Returns
void
Implementation of
IModel.dispose
Defined in
webgi/src/core/threejs/Object3DModel.ts:123
setDirty
▸ setDirty(e?
): void
Parameters
Name | Type |
---|---|
e? | AnyOptions |
Returns
void
Implementation of
Defined in
webgi/src/core/threejs/Object3DModel.ts:135
setMaterial
▸ setMaterial(material?
): IMaterial
<any
>[]
Parameters
Name | Type |
---|---|
material? | IMaterial <any > | IMaterial <any >[] |
Returns
IMaterial
<any
>[]
Implementation of
Defined in
webgi/src/core/threejs/Object3DModel.ts:140
setGeometry
▸ setGeometry(geometry?
, force?
): undefined
| BufferGeometry
<NormalBufferAttributes
, Event
, string
>
returns the old geometry.
Parameters
Name | Type | Default value |
---|---|---|
geometry? | BufferGeometry <NormalBufferAttributes , Event , string > | undefined |
force | boolean | false |
Returns
undefined
| BufferGeometry
<NormalBufferAttributes
, Event
, string
>
Implementation of
Defined in
webgi/src/core/threejs/Object3DModel.ts:154
updateBounds
▸ updateBounds(): void
Not implemented
Returns
void
Defined in
webgi/src/core/threejs/Object3DModel.ts:173
clone
▸ clone(): Object3DModel