Texture

Overview

Texture is a class in Aspose.3D FOSS for Java. Inherits from: TextureBase.

This class defines the texture from an external file.

This class provides 42 methods for working with Texture objects in Java programs. Available methods include: A3DObject, Texture, TextureBase, findProperty, getAlpha, getAlphaSource, getContent, getFileName, getMagFilter, getMinFilter, getMipFilter, getName, and 29 additional methods. All public members are accessible to any Java application after installing the Aspose.3D FOSS for Java package. Properties: alpha, alphaSource, content, enableMipMap, fileName, magFilter, and 10 more.

Properties

NameTypeAccessDescription
enableMipMapbooleanReadGets or sets if the mipmap is enabled for this texture.
contentbyte[]ReadGets or sets the binary content of the texture.
fileNameStringReadGets or sets the associated texture file.
alphadoubleReadGets or sets the default alpha value of the texture.
alphaSourceAlphaSourceReadGets or sets whether the texture defines the alpha channel.
wrapModeUWrapModeReadGets or sets the texture wrap modes in U.
wrapModeVWrapModeReadGets or sets the texture wrap modes in V.
wrapModeWWrapModeReadGets or sets the texture wrap modes in W.
minFilterTextureFilterReadGets or sets the filter for minification.
magFilterTextureFilterReadGets or sets the filter for magnification.
mipFilterTextureFilterReadGets or sets the filter for mip-level sampling.
uVRotationVector3ReadGets or sets the rotation of the texture.
uVScaleVector2ReadGets or sets the UV scale.
uVTranslationVector2ReadGets or sets the UV translation.
nameStringReadGets the name.
propertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
Texture()Initializes a new instance of the Texture class.
Texture(name: String)Initializes a new instance of the Texture class.
isEnableMipMap()booleanGets or sets if the mipmap is enabled for this texture.
setEnableMipMap(enableMipMap: boolean)Sets the enable mip map value.
getContent()byte[]Gets or sets the binary content of the texture.
setContent(content: byte[])Sets the content value.
getFileName()StringGets or sets the associated texture file.
setFileName(fileName: String)Sets the file name value.
TextureBase(name: String)Initializes a new instance of the TextureBase class.
getAlpha()doubleGets or sets the default alpha value of the texture.
setAlpha(alpha: double)Gets or sets the binary content of the texture. The embedded texture content is optional, user should load texture from external file if this is missing.
getAlphaSource()AlphaSourceGets or sets whether the texture defines the alpha channel.
setAlphaSource(alphaSource: AlphaSource)Sets the alpha source value.
getWrapModeU()WrapModeGets or sets the texture wrap modes in U.
setWrapModeU(wrapModeU: WrapMode)Sets the wrap mode u value.
getWrapModeV()WrapModeGets or sets the texture wrap modes in V.
setWrapModeV(wrapModeV: WrapMode)Sets the wrap mode v value.
getWrapModeW()WrapModeGets or sets the texture wrap modes in W.
setWrapModeW(wrapModeW: WrapMode)Sets the wrap mode w value.
getMinFilter()TextureFilterGets or sets the filter for minification.
setMinFilter(minFilter: TextureFilter)Sets the min filter value.
getMagFilter()TextureFilterGets or sets the filter for magnification.
setMagFilter(magFilter: TextureFilter)Sets the mag filter value.
getMipFilter()TextureFilterGets or sets the filter for mip-level sampling.
setMipFilter(mipFilter: TextureFilter)Sets the mip filter value.
getUVRotation()Vector3Gets or sets the rotation of the texture.
setUVRotation(uvRotation: Vector3)Sets the uv rotation value.
getUVScale()Vector2Gets or sets the UV scale.
setUVScale(uvScale: Vector2)Sets the uv scale value.
getUVTranslation()Vector2Gets or sets the UV translation.
setUVTranslation(uvTranslation: Vector2)Sets the uv translation value.
setTranslation(u: double, v: double)Sets the UV translation.
setScale(u: double, v: double)Sets the UV scale.
setRotation(u: double, v: double)Sets the UV rotation.
A3DObject()Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero.
getName()StringThe segments of the curve.
setName(name: String)Constructs a CircleShape profile with specified radius.
getProperties()PropertyCollectionInitializes a new instance of Cylinder class.
findProperty(name: String)PropertyInitializes a new instance of the Bone class.
getProperty(name: String)ObjectGets the transform matrix of the node in current pose.
setProperty(name: String, value: Object)Gets the width segments.
removeProperty(name: String)booleanGets flip coordinate system of control points/normal during importing/exporting.

See Also

 English