class sap.ui.vk.Texture

Control sample: sap.ui.vk.Texture
Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/vk/Texture
Application Component: CA-UI5-VTK

Provides the interface for the texture.


Constructor

Constructor for a new texture

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.Texture()

Properties

Name Type Default Value Description
filterMode int 0

filter mode - Bilinear = 0, NearestNeighbor = 1

Visibility: public
id string

texture ID (optional)

Visibility: public
uvHorizontalOffset float 0

Horizontal offset of uv coordinates

Visibility: public
uvHorizontalScale float 0

Horizontal scale of uv coordinates

Visibility: public
uvHorizontalTilingEnabled boolean true

Is the uv horizontal tiling enabled

Visibility: public
uvRotationAngle float 0

Rotation angle of uv coordinates

Visibility: public
uvVerticalOffset float 0

VerticalOffset offset of uv coordinates

Visibility: public
uvVerticalScale float 0

Vertical scale of uv coordinates

Visibility: public
uvVerticalTilingEnabled boolean true

Is the uv vertical tiling enabled

Visibility: public

Methods Overview

Method Description
sap.ui.vk.Texture.extend

Creates a new subclass of class sap.ui.vk.Texture 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.

getFilterMode

Gets current value of property filterMode.

filter mode - Bilinear = 0, NearestNeighbor = 1

Default value is 0.

getId

Gets current value of property id.

texture ID (optional)

sap.ui.vk.Texture.getMetadata

Returns a metadata object for class sap.ui.vk.Texture.

getTextRef
getUvHorizontalOffset

Gets current value of property uvHorizontalOffset.

Horizontal offset of uv coordinates

Default value is 0.0.

getUvHorizontalScale

Gets current value of property uvHorizontalScale.

Horizontal scale of uv coordinates

Default value is 0.0.

getUvHorizontalTilingEnabled

Gets current value of property uvHorizontalTilingEnabled.

Is the uv horizontal tiling enabled

Default value is true.

getUvRotationAngle

Gets current value of property uvRotationAngle.

Rotation angle of uv coordinates

Default value is 0.0.

getUvVerticalOffset

Gets current value of property uvVerticalOffset.

VerticalOffset offset of uv coordinates

Default value is 0.0.

getUvVerticalScale

Gets current value of property uvVerticalScale.

Vertical scale of uv coordinates

Default value is 0.0.

getUvVerticalTilingEnabled

Gets current value of property uvVerticalTilingEnabled.

Is the uv vertical tiling enabled

Default value is true.

load

Load texture image.

setFilterMode

Sets a new value for property filterMode.

filter mode - Bilinear = 0, NearestNeighbor = 1

When called with a value of null or undefined, the default value of the property will be restored.

Default value is 0.

setId

Sets a new value for property id.

texture ID (optional)

When called with a value of null or undefined, the default value of the property will be restored.

setUvHorizontalOffset

Sets a new value for property uvHorizontalOffset.

Horizontal offset of uv coordinates

When called with a value of null or undefined, the default value of the property will be restored.

Default value is 0.0.

setUvHorizontalScale

Sets a new value for property uvHorizontalScale.

Horizontal scale of uv coordinates

When called with a value of null or undefined, the default value of the property will be restored.

Default value is 0.0.

setUvHorizontalTilingEnabled

Sets a new value for property uvHorizontalTilingEnabled.

Is the uv horizontal tiling enabled

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

setUvRotationAngle

Sets a new value for property uvRotationAngle.

Rotation angle of uv coordinates

When called with a value of null or undefined, the default value of the property will be restored.

Default value is 0.0.

setUvVerticalOffset

Sets a new value for property uvVerticalOffset.

VerticalOffset offset of uv coordinates

When called with a value of null or undefined, the default value of the property will be restored.

Default value is 0.0.

setUvVerticalScale

Sets a new value for property uvVerticalScale.

Vertical scale of uv coordinates

When called with a value of null or undefined, the default value of the property will be restored.

Default value is 0.0.

setUvVerticalTilingEnabled

Sets a new value for property uvVerticalTilingEnabled.

Is the uv vertical tiling enabled

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

sap.ui.vk.Texture.extend

Creates a new subclass of class sap.ui.vk.Texture 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

getFilterMode

Gets current value of property filterMode.

filter mode - Bilinear = 0, NearestNeighbor = 1

Default value is 0.

getId

Gets current value of property id.

texture ID (optional)

sap.ui.vk.Texture.getMetadata

Returns a metadata object for class sap.ui.vk.Texture.

getTextRef

getUvHorizontalOffset

Gets current value of property uvHorizontalOffset.

Horizontal offset of uv coordinates

Default value is 0.0.

getUvHorizontalScale

Gets current value of property uvHorizontalScale.

Horizontal scale of uv coordinates

Default value is 0.0.

getUvHorizontalTilingEnabled

Gets current value of property uvHorizontalTilingEnabled.

Is the uv horizontal tiling enabled

Default value is true.

getUvRotationAngle

Gets current value of property uvRotationAngle.

Rotation angle of uv coordinates

Default value is 0.0.

getUvVerticalOffset

Gets current value of property uvVerticalOffset.

VerticalOffset offset of uv coordinates

Default value is 0.0.

getUvVerticalScale

Gets current value of property uvVerticalScale.

Vertical scale of uv coordinates

Default value is 0.0.

getUvVerticalTilingEnabled

Gets current value of property uvVerticalTilingEnabled.

Is the uv vertical tiling enabled

Default value is true.

load

Load texture image.

Param Type DefaultValue Description
imageUrl string

resource url for image.

setFilterMode

Sets a new value for property filterMode.

filter mode - Bilinear = 0, NearestNeighbor = 1

When called with a value of null or undefined, the default value of the property will be restored.

Default value is 0.

Param Type DefaultValue Description
iFilterMode int 0

New value for property filterMode

setId

Sets a new value for property id.

texture ID (optional)

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 id

setUvHorizontalOffset

Sets a new value for property uvHorizontalOffset.

Horizontal offset of uv coordinates

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
fUvHorizontalOffset float 0.0

New value for property uvHorizontalOffset

setUvHorizontalScale

Sets a new value for property uvHorizontalScale.

Horizontal scale of uv coordinates

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
fUvHorizontalScale float 0.0

New value for property uvHorizontalScale

setUvHorizontalTilingEnabled

Sets a new value for property uvHorizontalTilingEnabled.

Is the uv horizontal tiling enabled

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

Param Type DefaultValue Description
bUvHorizontalTilingEnabled boolean true

New value for property uvHorizontalTilingEnabled

setUvRotationAngle

Sets a new value for property uvRotationAngle.

Rotation angle of uv coordinates

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
fUvRotationAngle float 0.0

New value for property uvRotationAngle

setUvVerticalOffset

Sets a new value for property uvVerticalOffset.

VerticalOffset offset of uv coordinates

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
fUvVerticalOffset float 0.0

New value for property uvVerticalOffset

setUvVerticalScale

Sets a new value for property uvVerticalScale.

Vertical scale of uv coordinates

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
fUvVerticalScale float 0.0

New value for property uvVerticalScale

setUvVerticalTilingEnabled

Sets a new value for property uvVerticalTilingEnabled.

Is the uv vertical tiling enabled

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

Param Type DefaultValue Description
bUvVerticalTilingEnabled boolean true

New value for property uvVerticalTilingEnabled