Skip to content
On this page

mxcad API 文档 / 3d / MdGeMaterialAspect

Class: MdGeMaterialAspect

3d.MdGeMaterialAspect

表示材质

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MdGeMaterialAspect(p?)

Parameters

NameType
p?object | MxNameOfMaterial

Overrides

Mx3dBaseObject.constructor

Properties

imp

Protected imp: any = 0

Inherited from

Mx3dBaseObject.imp

Methods

Alpha

Alpha(): number

Returns

number


AmbientColor

AmbientColor(): MdGeColor

Returns

MdGeColor


Color

Color(): MdGeColor

Returns

MdGeColor


DiffuseColor

DiffuseColor(): MdGeColor

Returns

MdGeColor


EmissiveColor

EmissiveColor(): MdGeColor

Returns

MdGeColor


IncreaseShine

IncreaseShine(theDelta): void

Parameters

NameType
theDeltanumber

Returns

void


IsDifferent

IsDifferent(theOther): boolean

Parameters

NameType
theOtherMdGeMaterialAspect

Returns

boolean


IsEqual

IsEqual(theOther): boolean

Parameters

NameType
theOtherMdGeMaterialAspect

Returns

boolean


MaterialFromName

MaterialFromName(theName): MxNameOfMaterial

Parameters

NameType
theNamestring

Returns

MxNameOfMaterial


MaterialName

MaterialName(): string

Returns

string


MaterialType

MaterialType(): MxTypeOfMaterial

Returns

MxTypeOfMaterial


Name

Name(): MxNameOfMaterial

Returns

MxNameOfMaterial


NumberOfMaterials

NumberOfMaterials(): number

Returns

number


ReflectionMode

ReflectionMode(theType): boolean

Parameters

NameType
theTypeMxTypeOfReflection

Returns

boolean


RefractionIndex

RefractionIndex(): number

Returns

number


RequestedName

RequestedName(): MxNameOfMaterial

Returns

MxNameOfMaterial


Reset

Reset(): void

Returns

void


SetAlpha

SetAlpha(theValue): void

Parameters

NameType
theValuenumber

Returns

void


SetAmbientColor

SetAmbientColor(theColor): void

Parameters

NameType
theColorMdGeColor

Returns

void


SetColor

SetColor(theColor): void

Parameters

NameType
theColorMdGeColor

Returns

void


SetDiffuseColor

SetDiffuseColor(theColor): void

Parameters

NameType
theColorMdGeColor

Returns

void


SetEmissiveColor

SetEmissiveColor(theColor): void

Parameters

NameType
theColorMdGeColor

Returns

void


SetMaterialName

SetMaterialName(theName): void

Parameters

NameType
theNamestring

Returns

void


SetMaterialType

SetMaterialType(theType): void

Parameters

NameType
theTypeMxTypeOfMaterial

Returns

void


SetRefractionIndex

SetRefractionIndex(theValue): void

Parameters

NameType
theValuenumber

Returns

void


SetShininess

SetShininess(theValue): void

Parameters

NameType
theValuenumber

Returns

void


SetSpecularColor

SetSpecularColor(theColor): void

Parameters

NameType
theColorMdGeColor

Returns

void


SetTransparency

SetTransparency(theValue): void

Parameters

NameType
theValuenumber

Returns

void


Shininess

Shininess(): number

Returns

number


SpecularColor

SpecularColor(): MdGeColor

Returns

MdGeColor


Transparency

Transparency(): number

Returns

number


getImp

getImp(): any

Returns

any

Inherited from

Mx3dBaseObject.getImp


initTempObject

Protected initTempObject(imp): void

Parameters

NameType
impany

Returns

void

Inherited from

Mx3dBaseObject.initTempObject