Provides the interface for the material.
The objects of this class should not be created directly.
Constructor for a new Material.
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.
new sap.ui.vk.Material()
Name | Type | Default Value | Description |
---|---|---|---|
ambientColour | sap.ui.core.CSSColor | rgba(0, 0, 0, 1) | Ambient colour (optional) - red, green, blue, and alpha Visibility: public |
diffuseColour | sap.ui.core.CSSColor | rgba(0, 0, 0, 1) | Diffuse colour (optional) - red, green, blue, and alpha Visibility: public |
emissiveColour | sap.ui.core.CSSColor | rgba(0, 0, 0, 1) | Emissive colour (optional) - red, green, blue, and alpha Visibility: public |
glossiness | float | 0 | Glossiness (optional) Visibility: public |
id | string | Material id Visibility: public |
|
lineColour | sap.ui.core.CSSColor | rgba(0, 0, 0, 1) | Line colour (optional) - red, green, blue, and alpha Visibility: public |
lineWidth | float | 0 | Line width (optional) Visibility: public |
name | string | Material name Visibility: public |
|
opacity | float | 1 | Opacity (optional) Visibility: public |
specularColour | sap.ui.core.CSSColor | rgba(0, 0, 0, 1) | Specular colour (optional) - red, green, blue, and alpha Visibility: public |
textureAmbientOcclusion | sap.ui.vk.Texture | Ambient occlusion texture (optional) Visibility: public |
|
textureBump | sap.ui.vk.Texture | Bump texture (optional) Visibility: public |
|
textureDiffuse | sap.ui.vk.Texture | Diffuse texture (optional) Visibility: public |
|
textureEmissive | sap.ui.vk.Texture | Emissive texture (optional) Visibility: public |
|
textureOpacity | sap.ui.vk.Texture | Opacity texture (optional) Visibility: public |
|
textureReflection | sap.ui.vk.Texture | Reflection texture (optional) Visibility: public |
Method | Description |
---|---|
sap.ui.vk.Material.extend |
Creates a new subclass of class sap.ui.vk.Material with name
|
getAmbientColour |
Gets current value of property ambientColour. Ambient colour (optional) - red, green, blue, and alpha Default value is |
getDiffuseColour |
Gets current value of property diffuseColour. Diffuse colour (optional) - red, green, blue, and alpha Default value is |
getEmissiveColour |
Gets current value of property emissiveColour. Emissive colour (optional) - red, green, blue, and alpha Default value is |
getGlossiness |
Gets current value of property glossiness. Glossiness (optional) Default value is |
getId |
Gets current value of property id. Material id |
getLineColour |
Gets current value of property lineColour. Line colour (optional) - red, green, blue, and alpha Default value is |
getLineWidth |
Gets current value of property lineWidth. Line width (optional) Default value is |
getMaterialRef | |
sap.ui.vk.Material.getMetadata |
Returns a metadata object for class sap.ui.vk.Material. |
getName |
Gets current value of property name. Material name |
getOpacity |
Gets current value of property opacity. Opacity (optional) Default value is |
getSpecularColour |
Gets current value of property specularColour. Specular colour (optional) - red, green, blue, and alpha Default value is |
getTextureAmbientOcclusion |
Gets current value of property textureAmbientOcclusion. Ambient occlusion texture (optional) |
getTextureBump |
Gets current value of property textureBump. Bump texture (optional) |
getTextureDiffuse |
Gets current value of property textureDiffuse. Diffuse texture (optional) |
getTextureEmissive |
Gets current value of property textureEmissive. Emissive texture (optional) |
getTextureOpacity |
Gets current value of property textureOpacity. Opacity texture (optional) |
getTextureReflection |
Gets current value of property textureReflection. Reflection texture (optional) |
setAmbientColour |
Sets a new value for property ambientColour. Ambient colour (optional) - red, green, blue, and alpha When called with a value of Default value is |
setDiffuseColour |
Sets a new value for property diffuseColour. Diffuse colour (optional) - red, green, blue, and alpha When called with a value of Default value is |
setEmissiveColour |
Sets a new value for property emissiveColour. Emissive colour (optional) - red, green, blue, and alpha When called with a value of Default value is |
setGlossiness |
Sets a new value for property glossiness. Glossiness (optional) When called with a value of Default value is |
setId |
Sets a new value for property id. Material id When called with a value of |
setLineColour |
Sets a new value for property lineColour. Line colour (optional) - red, green, blue, and alpha When called with a value of Default value is |
setLineWidth |
Sets a new value for property lineWidth. Line width (optional) When called with a value of Default value is |
setName |
Sets a new value for property name. Material name When called with a value of |
setOpacity |
Sets a new value for property opacity. Opacity (optional) When called with a value of Default value is |
setSpecularColour |
Sets a new value for property specularColour. Specular colour (optional) - red, green, blue, and alpha When called with a value of Default value is |
setTextureAmbientOcclusion |
Sets a new value for property textureAmbientOcclusion. Ambient occlusion texture (optional) When called with a value of |
setTextureBump |
Sets a new value for property textureBump. Bump texture (optional) When called with a value of |
setTextureDiffuse |
Sets a new value for property textureDiffuse. Diffuse texture (optional) When called with a value of |
setTextureEmissive |
Sets a new value for property textureEmissive. Emissive texture (optional) When called with a value of |
setTextureOpacity |
Sets a new value for property textureOpacity. Opacity texture (optional) When called with a value of |
setTextureReflection |
Sets a new value for property textureReflection. Reflection texture (optional) When called with a value of |
Creates a new subclass of class sap.ui.vk.Material with name sClassName
and enriches it with the information contained in oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.base.ManagedObject.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |
Gets current value of property ambientColour.
Ambient colour (optional) - red, green, blue, and alpha
Default value is "rgba(0, 0, 0, 1)"
.
Gets current value of property diffuseColour.
Diffuse colour (optional) - red, green, blue, and alpha
Default value is "rgba(0, 0, 0, 1)"
.
Gets current value of property emissiveColour.
Emissive colour (optional) - red, green, blue, and alpha
Default value is "rgba(0, 0, 0, 1)"
.
Gets current value of property lineColour.
Line colour (optional) - red, green, blue, and alpha
Default value is "rgba(0, 0, 0, 1)"
.
Gets current value of property specularColour.
Specular colour (optional) - red, green, blue, and alpha
Default value is "rgba(0, 0, 0, 1)"
.
Gets current value of property textureAmbientOcclusion.
Ambient occlusion texture (optional)
Sets a new value for property ambientColour.
Ambient colour (optional) - red, green, blue, and alpha
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is "rgba(0, 0, 0, 1)"
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sAmbientColour | sap.ui.core.CSSColor | "rgba(0, 0, 0, 1)" |
New value for property |
Sets a new value for property diffuseColour.
Diffuse colour (optional) - red, green, blue, and alpha
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is "rgba(0, 0, 0, 1)"
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sDiffuseColour | sap.ui.core.CSSColor | "rgba(0, 0, 0, 1)" |
New value for property |
Sets a new value for property emissiveColour.
Emissive colour (optional) - red, green, blue, and alpha
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is "rgba(0, 0, 0, 1)"
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sEmissiveColour | sap.ui.core.CSSColor | "rgba(0, 0, 0, 1)" |
New value for property |
Sets a new value for property glossiness.
Glossiness (optional)
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 0.0
.
Param | Type | DefaultValue | Description |
---|---|---|---|
fGlossiness | float | 0.0 |
New value for property |
Sets a new value for property id.
Material id
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sId | string |
New value for property |
Sets a new value for property lineColour.
Line colour (optional) - red, green, blue, and alpha
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is "rgba(0, 0, 0, 1)"
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sLineColour | sap.ui.core.CSSColor | "rgba(0, 0, 0, 1)" |
New value for property |
Sets a new value for property lineWidth.
Line width (optional)
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 0.0
.
Param | Type | DefaultValue | Description |
---|---|---|---|
fLineWidth | float | 0.0 |
New value for property |
Sets a new value for property name.
Material name
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sName | string |
New value for property |
Sets a new value for property opacity.
Opacity (optional)
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 1.0
.
Param | Type | DefaultValue | Description |
---|---|---|---|
fOpacity | float | 1.0 |
New value for property |
Sets a new value for property specularColour.
Specular colour (optional) - red, green, blue, and alpha
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is "rgba(0, 0, 0, 1)"
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sSpecularColour | sap.ui.core.CSSColor | "rgba(0, 0, 0, 1)" |
New value for property |
Sets a new value for property textureAmbientOcclusion.
Ambient occlusion texture (optional)
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sTextureAmbientOcclusion | sap.ui.vk.Texture |
New value for property |
Sets a new value for property textureBump.
Bump texture (optional)
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sTextureBump | sap.ui.vk.Texture |
New value for property |
Sets a new value for property textureDiffuse.
Diffuse texture (optional)
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sTextureDiffuse | sap.ui.vk.Texture |
New value for property |
Sets a new value for property textureEmissive.
Emissive texture (optional)
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sTextureEmissive | sap.ui.vk.Texture |
New value for property |
Sets a new value for property textureOpacity.
Opacity texture (optional)
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sTextureOpacity | sap.ui.vk.Texture |
New value for property |
Sets a new value for property textureReflection.
Reflection texture (optional)
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sTextureReflection | sap.ui.vk.Texture |
New value for property |