mxcad API 文档 / 3d / MdGeMaterialAspect
Class: MdGeMaterialAspect
3d.MdGeMaterialAspect
表示材质
Hierarchy
↳
MdGeMaterialAspect
Table of contents
Constructors
Properties
Methods
- Alpha
- AmbientColor
- Color
- DiffuseColor
- EmissiveColor
- IncreaseShine
- IsDifferent
- IsEqual
- MaterialFromName
- MaterialName
- MaterialType
- Name
- NumberOfMaterials
- ReflectionMode
- RefractionIndex
- RequestedName
- Reset
- SetAlpha
- SetAmbientColor
- SetColor
- SetDiffuseColor
- SetEmissiveColor
- SetMaterialName
- SetMaterialType
- SetRefractionIndex
- SetShininess
- SetSpecularColor
- SetTransparency
- Shininess
- SpecularColor
- Transparency
- getImp
- initTempObject
Constructors
constructor
• new MdGeMaterialAspect(p?
)
Parameters
Name | Type |
---|---|
p? | object | MxNameOfMaterial |
Overrides
Properties
imp
• Protected
imp: any
= 0
Inherited from
Methods
Alpha
▸ Alpha(): number
Returns
number
AmbientColor
▸ AmbientColor(): MdGeColor
Returns
Color
▸ Color(): MdGeColor
Returns
DiffuseColor
▸ DiffuseColor(): MdGeColor
Returns
EmissiveColor
▸ EmissiveColor(): MdGeColor
Returns
IncreaseShine
▸ IncreaseShine(theDelta
): void
Parameters
Name | Type |
---|---|
theDelta | number |
Returns
void
IsDifferent
▸ IsDifferent(theOther
): boolean
Parameters
Name | Type |
---|---|
theOther | MdGeMaterialAspect |
Returns
boolean
IsEqual
▸ IsEqual(theOther
): boolean
Parameters
Name | Type |
---|---|
theOther | MdGeMaterialAspect |
Returns
boolean
MaterialFromName
▸ MaterialFromName(theName
): MxNameOfMaterial
Parameters
Name | Type |
---|---|
theName | string |
Returns
MaterialName
▸ MaterialName(): string
Returns
string
MaterialType
▸ MaterialType(): MxTypeOfMaterial
Returns
Name
▸ Name(): MxNameOfMaterial
Returns
NumberOfMaterials
▸ NumberOfMaterials(): number
Returns
number
ReflectionMode
▸ ReflectionMode(theType
): boolean
Parameters
Name | Type |
---|---|
theType | MxTypeOfReflection |
Returns
boolean
RefractionIndex
▸ RefractionIndex(): number
Returns
number
RequestedName
▸ RequestedName(): MxNameOfMaterial
Returns
Reset
▸ Reset(): void
Returns
void
SetAlpha
▸ SetAlpha(theValue
): void
Parameters
Name | Type |
---|---|
theValue | number |
Returns
void
SetAmbientColor
▸ SetAmbientColor(theColor
): void
Parameters
Name | Type |
---|---|
theColor | MdGeColor |
Returns
void
SetColor
▸ SetColor(theColor
): void
Parameters
Name | Type |
---|---|
theColor | MdGeColor |
Returns
void
SetDiffuseColor
▸ SetDiffuseColor(theColor
): void
Parameters
Name | Type |
---|---|
theColor | MdGeColor |
Returns
void
SetEmissiveColor
▸ SetEmissiveColor(theColor
): void
Parameters
Name | Type |
---|---|
theColor | MdGeColor |
Returns
void
SetMaterialName
▸ SetMaterialName(theName
): void
Parameters
Name | Type |
---|---|
theName | string |
Returns
void
SetMaterialType
▸ SetMaterialType(theType
): void
Parameters
Name | Type |
---|---|
theType | MxTypeOfMaterial |
Returns
void
SetRefractionIndex
▸ SetRefractionIndex(theValue
): void
Parameters
Name | Type |
---|---|
theValue | number |
Returns
void
SetShininess
▸ SetShininess(theValue
): void
Parameters
Name | Type |
---|---|
theValue | number |
Returns
void
SetSpecularColor
▸ SetSpecularColor(theColor
): void
Parameters
Name | Type |
---|---|
theColor | MdGeColor |
Returns
void
SetTransparency
▸ SetTransparency(theValue
): void
Parameters
Name | Type |
---|---|
theValue | number |
Returns
void
Shininess
▸ Shininess(): number
Returns
number
SpecularColor
▸ SpecularColor(): MdGeColor
Returns
Transparency
▸ Transparency(): number
Returns
number
getImp
▸ getImp(): any
Returns
any
Inherited from
initTempObject
▸ Protected
initTempObject(imp
): void
Parameters
Name | Type |
---|---|
imp | any |
Returns
void