跳到主要内容
版本:v10.0

M3D / M3D / Resources

Class: Resources

M3D.Resources

Memberof

M3D

Description

数据资源管理类

Author

ZYC

Copyright

All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Resources(scene): Resources

Parameters

NameType
sceneScene

Returns

Resources

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

NameType
oldURLstring
newURLstring

Returns

void

Description

URL替换


getOrCreateResource

getOrCreateResource(path, sourceType): Resource

Parameters

NameTypeDescription
pathstring资源路径
sourceTypenumber资源类型

Returns

Resource

Description

获取或创建资源


getResourceMap

getResourceMap(): Map<string, Resource>

Returns

Map<string, Resource>

Description

获取资源列表