Class: Resources
M3D.Resources
Memberof
M3D
Description
数据资源管理类
Author
ZYC
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Table of contents
Constructors
Properties
- axisXPath
- axisYPath
- axisZPath
- bmpImg
- centerPntTexture
- defaultBlackSrc
- defaultWhiteSrc
- diffuse
- diffusePath
- jpgImg
- lutPath
- nameArray
- pntTextureO2
- point1ImagePath
- pointOImagePath
- rotateImagePath1
- rotateImagePath2
- specular
- specularPath
Methods
Constructors
constructor
• new Resources(scene): Resources
Parameters
| Name | Type |
|---|---|
scene | Scene |
Returns
Description
构造函数
Properties
axisXPath
▪ Static axisXPath: string
axisYPath
▪ Static axisYPath: string
axisZPath
▪ Static axisZPath: string
bmpImg
▪ Static bmpImg: string
centerPntTexture
▪ Static centerPntTexture: string
defaultBlackSrc
▪ Static defaultBlackSrc: string
defaultWhiteSrc
▪ Static defaultWhiteSrc: string
diffuse
▪ Static diffuse: string
diffusePath
▪ Static diffusePath: string
jpgImg
▪ Static jpgImg: string
lutPath
▪ Static lutPath: string
nameArray
▪ Static nameArray: string[]
pntTextureO2
▪ Static pntTextureO2: string
point1ImagePath
▪ Static point1ImagePath: string
pointOImagePath
▪ Static pointOImagePath: string
rotateImagePath1
▪ Static rotateImagePath1: string
rotateImagePath2
▪ Static rotateImagePath2: string
specular
▪ Static specular: string
specularPath
▪ Static specularPath: string
Methods
changeSourceURL
▸ changeSourceURL(oldURL, newURL): void
Parameters
| Name | Type |
|---|---|
oldURL | string |
newURL | string |
Returns
void
Description
URL替换
getOrCreateResource
▸ getOrCreateResource(path, sourceType): Resource
Parameters
| Name | Type | Description |
|---|---|---|
path | string | 资源路径 |
sourceType | number | 资源类型 |
Returns
Description
获取或创建资源
getResourceMap
▸ getResourceMap(): Map<string, Resource>
Returns
Map<string, Resource>
Description
获取资源列表