Texture

Inheritance: java.lang.Object, com.aspose.threed.A3DObject, com.aspose.threed.TextureBase

public class Texture extends TextureBase

This class defines the texture from an external file.

Constructors

ConstructorDescription
Texture()Initializes a new instance of the Texture class.
Texture(String name)Initializes a new instance of the Texture class.

Methods

MethodDescription
equals(Object arg0)
findProperty(String propertyName)Finds the property.
getAlpha()Gets the default alpha value of the texture This is valid when the getAlphaSource is AlphaSource.PIXEL_ALPHA Default value is 1.0, valid value range is between 0 and 1
getAlphaSource()Gets whether the texture defines the alpha channel.
getClass()
getContent()Gets the binary content of the texture.
getEnableMipMap()Gets if the mipmap is enabled for this texture
getFileName()Gets the associated texture file.
getMagFilter()Gets the filter for magnification.
getMinFilter()Gets the filter for minification.
getMipFilter()Gets the filter for mip-level sampling.
getName()Gets the name.
getProperties()Gets the collection of all properties.
getProperty(String property)Get the value of specified property
getUVRotation()Gets the rotation of the texture
getUVScale()Gets the UV scale.
getUVTranslation()Gets the UV translation.
getWrapModeU()Gets the texture wrap modes in U.
getWrapModeV()Gets the texture wrap modes in V.
getWrapModeW()Gets the texture wrap modes in W.
hashCode()
notify()
notifyAll()
removeProperty(Property property)Removes a dynamic property.
removeProperty(String property)Remove the specified property identified by name
setAlpha(double value)Sets the default alpha value of the texture This is valid when the getAlphaSource is AlphaSource.PIXEL_ALPHA Default value is 1.0, valid value range is between 0 and 1
setAlphaSource(AlphaSource value)Sets whether the texture defines the alpha channel.
setContent(byte[] value)Sets the binary content of the texture.
setEnableMipMap(boolean value)Sets if the mipmap is enabled for this texture
setFileName(String value)Sets the associated texture file.
setMagFilter(TextureFilter value)Sets the filter for magnification.
setMinFilter(TextureFilter value)Sets the filter for minification.
setMipFilter(TextureFilter value)Sets the filter for mip-level sampling.
setName(String value)Sets the name.
setProperty(String property, Object value)Sets the value of specified property
setRotation(double u, double v)Sets the UV rotation.
setScale(double u, double v)Sets the UV scale.
setTranslation(double u, double v)Sets the UV translation.
setUVRotation(Vector3 value)Sets the rotation of the texture
setUVScale(Vector2 value)Sets the UV scale.
setUVTranslation(Vector2 value)Sets the UV translation.
setWrapModeU(WrapMode value)Sets the texture wrap modes in U.
setWrapModeV(WrapMode value)Sets the texture wrap modes in V.
setWrapModeW(WrapMode value)Sets the texture wrap modes in W.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Texture()

public Texture()

Initializes a new instance of the Texture class.

Texture(String name)

public Texture(String name)

Initializes a new instance of the Texture class.

Parameters:

ParameterTypeDescription
namejava.lang.StringName

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

findProperty(String propertyName)

public Property findProperty(String propertyName)

Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)

Parameters:

ParameterTypeDescription
propertyNamejava.lang.StringProperty name.

Returns: Property - The property.

getAlpha()

public double getAlpha()

Gets the default alpha value of the texture This is valid when the getAlphaSource is AlphaSource.PIXEL_ALPHA Default value is 1.0, valid value range is between 0 and 1

Returns: double

getAlphaSource()

public AlphaSource getAlphaSource()

Gets whether the texture defines the alpha channel. Default value is AlphaSource.NONE

Returns: AlphaSource

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getContent()

public byte[] getContent()

Gets the binary content of the texture. The embedded texture content is optional, user should load texture from external file if this is missing.

Returns: byte[]

getEnableMipMap()

public boolean getEnableMipMap()

Gets if the mipmap is enabled for this texture

Returns: boolean

getFileName()

public String getFileName()

Gets the associated texture file.

Returns: java.lang.String

getMagFilter()

public TextureFilter getMagFilter()

Gets the filter for magnification.

Returns: TextureFilter

getMinFilter()

public TextureFilter getMinFilter()

Gets the filter for minification.

Returns: TextureFilter

getMipFilter()

public TextureFilter getMipFilter()

Gets the filter for mip-level sampling.

Returns: TextureFilter

getName()

public String getName()

Gets the name.

Returns: java.lang.String

getProperties()

public PropertyCollection getProperties()

Gets the collection of all properties.

Returns: PropertyCollection

getProperty(String property)

public Object getProperty(String property)

Get the value of specified property

Parameters:

ParameterTypeDescription
propertyjava.lang.StringProperty name

Returns: java.lang.Object - The value of the found property

getUVRotation()

public Vector3 getUVRotation()

Gets the rotation of the texture

Returns: Vector3

getUVScale()

public Vector2 getUVScale()

Gets the UV scale.

Returns: Vector2

getUVTranslation()

public Vector2 getUVTranslation()

Gets the UV translation.

Returns: Vector2

getWrapModeU()

public WrapMode getWrapModeU()

Gets the texture wrap modes in U.

Returns: WrapMode

getWrapModeV()

public WrapMode getWrapModeV()

Gets the texture wrap modes in V.

Returns: WrapMode

getWrapModeW()

public WrapMode getWrapModeW()

Gets the texture wrap modes in W.

Returns: WrapMode

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeProperty(Property property)

public boolean removeProperty(Property property)

Removes a dynamic property.

Parameters:

ParameterTypeDescription
propertyPropertyWhich property to remove

Returns: boolean - true if the property is successfully removed

removeProperty(String property)

public boolean removeProperty(String property)

Remove the specified property identified by name

Parameters:

ParameterTypeDescription
propertyjava.lang.String

Returns: boolean

setAlpha(double value)

public void setAlpha(double value)

Sets the default alpha value of the texture This is valid when the getAlphaSource is AlphaSource.PIXEL_ALPHA Default value is 1.0, valid value range is between 0 and 1

Parameters:

ParameterTypeDescription
valuedoubleNew value

setAlphaSource(AlphaSource value)

public void setAlphaSource(AlphaSource value)

Sets whether the texture defines the alpha channel. Default value is AlphaSource.NONE

Parameters:

ParameterTypeDescription
valueAlphaSourceNew value

setContent(byte[] value)

public void setContent(byte[] value)

Sets the binary content of the texture. The embedded texture content is optional, user should load texture from external file if this is missing.

Parameters:

ParameterTypeDescription
valuebyte[]New value

setEnableMipMap(boolean value)

public void setEnableMipMap(boolean value)

Sets if the mipmap is enabled for this texture

Parameters:

ParameterTypeDescription
valuebooleanNew value

setFileName(String value)

public void setFileName(String value)

Sets the associated texture file.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setMagFilter(TextureFilter value)

public void setMagFilter(TextureFilter value)

Sets the filter for magnification.

Parameters:

ParameterTypeDescription
valueTextureFilterNew value

setMinFilter(TextureFilter value)

public void setMinFilter(TextureFilter value)

Sets the filter for minification.

Parameters:

ParameterTypeDescription
valueTextureFilterNew value

setMipFilter(TextureFilter value)

public void setMipFilter(TextureFilter value)

Sets the filter for mip-level sampling.

Parameters:

ParameterTypeDescription
valueTextureFilterNew value

setName(String value)

public void setName(String value)

Sets the name.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setProperty(String property, Object value)

public void setProperty(String property, Object value)

Sets the value of specified property

Parameters:

ParameterTypeDescription
propertyjava.lang.StringProperty name
valuejava.lang.ObjectThe value of the property

setRotation(double u, double v)

public void setRotation(double u, double v)

Sets the UV rotation.

Parameters:

ParameterTypeDescription
udoubleU.
vdoubleV.

setScale(double u, double v)

public void setScale(double u, double v)

Sets the UV scale.

Parameters:

ParameterTypeDescription
udoubleU.
vdoubleV.

setTranslation(double u, double v)

public void setTranslation(double u, double v)

Sets the UV translation.

Parameters:

ParameterTypeDescription
udoubleU.
vdoubleV.

setUVRotation(Vector3 value)

public void setUVRotation(Vector3 value)

Sets the rotation of the texture

Parameters:

ParameterTypeDescription
valueVector3New value

setUVScale(Vector2 value)

public void setUVScale(Vector2 value)

Sets the UV scale.

Parameters:

ParameterTypeDescription
valueVector2New value

setUVTranslation(Vector2 value)

public void setUVTranslation(Vector2 value)

Sets the UV translation.

Parameters:

ParameterTypeDescription
valueVector2New value

setWrapModeU(WrapMode value)

public void setWrapModeU(WrapMode value)

Sets the texture wrap modes in U.

Parameters:

ParameterTypeDescription
valueWrapModeNew value

setWrapModeV(WrapMode value)

public void setWrapModeV(WrapMode value)

Sets the texture wrap modes in V.

Parameters:

ParameterTypeDescription
valueWrapModeNew value

setWrapModeW(WrapMode value)

public void setWrapModeW(WrapMode value)

Sets the texture wrap modes in W.

Parameters:

ParameterTypeDescription
valueWrapModeNew value

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int