Package com.aspose.threed
Class TextureBase
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.TextureBase
-
- All Implemented Interfaces:
INamedObject
- Direct Known Subclasses:
Texture
public class TextureBase extends A3DObject
Base class for all concrete textures. Texture defines the look and feel of a geometry surface.
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Constructor Summary
Constructors Constructor Description TextureBase(java.lang.String name)
Initializes a new instance of theTextureBase
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAlpha()
Gets the default alpha value of the texture This is valid when thegetAlphaSource()
isAlphaSource.PIXEL_ALPHA
Default value is 1.0, valid value range is between 0 and 1AlphaSource
getAlphaSource()
Gets whether the texture defines the alpha channel.TextureFilter
getMagFilter()
Gets the filter for magnification.TextureFilter
getMinFilter()
Gets the filter for minification.TextureFilter
getMipFilter()
Gets the filter for mip-level sampling.Vector3
getUVRotation()
Gets the rotation of the textureVector2
getUVScale()
Gets the UV scale.Vector2
getUVTranslation()
Gets the UV translation.WrapMode
getWrapModeU()
Gets the texture wrap modes in U.WrapMode
getWrapModeV()
Gets the texture wrap modes in V.WrapMode
getWrapModeW()
Gets the texture wrap modes in W.void
setAlpha(double value)
Sets the default alpha value of the texture This is valid when thegetAlphaSource()
isAlphaSource.PIXEL_ALPHA
Default value is 1.0, valid value range is between 0 and 1void
setAlphaSource(AlphaSource value)
Sets whether the texture defines the alpha channel.void
setMagFilter(TextureFilter value)
Sets the filter for magnification.void
setMinFilter(TextureFilter value)
Sets the filter for minification.void
setMipFilter(TextureFilter value)
Sets the filter for mip-level sampling.void
setRotation(double u, double v)
Sets the UV rotation.void
setScale(double u, double v)
Sets the UV scale.void
setTranslation(double u, double v)
Sets the UV translation.void
setUVRotation(Vector3 value)
Sets the rotation of the texturevoid
setUVScale(Vector2 value)
Sets the UV scale.void
setUVTranslation(Vector2 value)
Sets the UV translation.void
setWrapModeU(WrapMode value)
Sets the texture wrap modes in U.void
setWrapModeV(WrapMode value)
Sets the texture wrap modes in V.void
setWrapModeW(WrapMode value)
Sets the texture wrap modes in W.-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Constructor Detail
-
TextureBase
public TextureBase(java.lang.String name)
Initializes a new instance of theTextureBase
class.- Parameters:
name
- Name.
-
-
Method Detail
-
getAlpha
public double getAlpha()
Gets the default alpha value of the texture This is valid when thegetAlphaSource()
isAlphaSource.PIXEL_ALPHA
Default value is 1.0, valid value range is between 0 and 1
-
setAlpha
public void setAlpha(double value)
Sets the default alpha value of the texture This is valid when thegetAlphaSource()
isAlphaSource.PIXEL_ALPHA
Default value is 1.0, valid value range is between 0 and 1- Parameters:
value
- New value
-
getAlphaSource
public AlphaSource getAlphaSource()
Gets whether the texture defines the alpha channel. Default value isAlphaSource.NONE
-
setAlphaSource
public void setAlphaSource(AlphaSource value)
Sets whether the texture defines the alpha channel. Default value isAlphaSource.NONE
- Parameters:
value
- New value
-
getWrapModeU
public WrapMode getWrapModeU()
Gets the texture wrap modes in U.
-
setWrapModeU
public void setWrapModeU(WrapMode value)
Sets the texture wrap modes in U.- Parameters:
value
- New value
-
getWrapModeV
public WrapMode getWrapModeV()
Gets the texture wrap modes in V.
-
setWrapModeV
public void setWrapModeV(WrapMode value)
Sets the texture wrap modes in V.- Parameters:
value
- New value
-
getWrapModeW
public WrapMode getWrapModeW()
Gets the texture wrap modes in W.
-
setWrapModeW
public void setWrapModeW(WrapMode value)
Sets the texture wrap modes in W.- Parameters:
value
- New value
-
getMinFilter
public TextureFilter getMinFilter()
Gets the filter for minification.
-
setMinFilter
public void setMinFilter(TextureFilter value)
Sets the filter for minification.- Parameters:
value
- New value
-
getMagFilter
public TextureFilter getMagFilter()
Gets the filter for magnification.
-
setMagFilter
public void setMagFilter(TextureFilter value)
Sets the filter for magnification.- Parameters:
value
- New value
-
getMipFilter
public TextureFilter getMipFilter()
Gets the filter for mip-level sampling.
-
setMipFilter
public void setMipFilter(TextureFilter value)
Sets the filter for mip-level sampling.- Parameters:
value
- New value
-
getUVRotation
public Vector3 getUVRotation()
Gets the rotation of the texture
-
setUVRotation
public void setUVRotation(Vector3 value)
Sets the rotation of the texture- Parameters:
value
- New value
-
getUVScale
public Vector2 getUVScale()
Gets the UV scale.
-
setUVScale
public void setUVScale(Vector2 value)
Sets the UV scale.- Parameters:
value
- New value
-
getUVTranslation
public Vector2 getUVTranslation()
Gets the UV translation.
-
setUVTranslation
public void setUVTranslation(Vector2 value)
Sets the UV translation.- Parameters:
value
- New value
-
setTranslation
public void setTranslation(double u, double v)
Sets the UV translation.- Parameters:
u
- U.v
- V.
-
setScale
public void setScale(double u, double v)
Sets the UV scale.- Parameters:
u
- U.v
- V.
-
setRotation
public void setRotation(double u, double v)
Sets the UV rotation.- Parameters:
u
- U.v
- V.
-
-