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
Constructor | Description |
---|---|
Texture() | Initializes a new instance of the Texture class. |
Texture(String name) | Initializes a new instance of the Texture class. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Name |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
propertyName | java.lang.String | Property 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 - 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()
public AlphaSource getAlphaSource()
Gets whether the texture defines the alpha channel. Default value is AlphaSource.NONE
Returns: AlphaSource - whether the texture defines the alpha channel. Default value is AlphaSource.NONE
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[] - the binary content of the texture. The embedded texture content is optional, user should load texture from external file if this is missing.
getEnableMipMap()
public boolean getEnableMipMap()
Gets if the mipmap is enabled for this texture
Returns: boolean - if the mipmap is enabled for this texture
getFileName()
public String getFileName()
Gets the associated texture file.
Returns: java.lang.String - the associated texture file.
getMagFilter()
public TextureFilter getMagFilter()
Gets the filter for magnification.
Returns: TextureFilter - the filter for magnification.
getMinFilter()
public TextureFilter getMinFilter()
Gets the filter for minification.
Returns: TextureFilter - the filter for minification.
getMipFilter()
public TextureFilter getMipFilter()
Gets the filter for mip-level sampling.
Returns: TextureFilter - the filter for mip-level sampling.
getName()
public String getName()
Gets the name.
Returns: java.lang.String - the name.
getProperties()
public PropertyCollection getProperties()
Gets the collection of all properties.
Returns: PropertyCollection - the collection of all properties.
getProperty(String property)
public Object getProperty(String property)
Get the value of specified property
Parameters:
Parameter | Type | Description |
---|---|---|
property | java.lang.String | Property name |
Returns: java.lang.Object - The value of the found property
getUVRotation()
public Vector3 getUVRotation()
Gets the rotation of the texture
Returns: Vector3 - the rotation of the texture
getUVScale()
public Vector2 getUVScale()
Gets the UV scale.
Returns: Vector2 - the UV scale.
getUVTranslation()
public Vector2 getUVTranslation()
Gets the UV translation.
Returns: Vector2 - the UV translation.
getWrapModeU()
public WrapMode getWrapModeU()
Gets the texture wrap modes in U.
Returns: WrapMode - the texture wrap modes in U.
getWrapModeV()
public WrapMode getWrapModeV()
Gets the texture wrap modes in V.
Returns: WrapMode - the texture wrap modes in V.
getWrapModeW()
public WrapMode getWrapModeW()
Gets the texture wrap modes in W.
Returns: WrapMode - the texture wrap modes in W.
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:
Parameter | Type | Description |
---|---|---|
property | Property | Which 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:
Parameter | Type | Description |
---|---|---|
property | java.lang.String | Which property to remove |
Returns: boolean - true if the property is successfully removed
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:
Parameter | Type | Description |
---|---|---|
value | double | New value |
setAlphaSource(AlphaSource value)
public void setAlphaSource(AlphaSource value)
Sets whether the texture defines the alpha channel. Default value is AlphaSource.NONE
Parameters:
Parameter | Type | Description |
---|---|---|
value | AlphaSource | New 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:
Parameter | Type | Description |
---|---|---|
value | byte[] | New value |
setEnableMipMap(boolean value)
public void setEnableMipMap(boolean value)
Sets if the mipmap is enabled for this texture
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | New value |
setFileName(String value)
public void setFileName(String value)
Sets the associated texture file.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New value |
setMagFilter(TextureFilter value)
public void setMagFilter(TextureFilter value)
Sets the filter for magnification.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TextureFilter | New value |
setMinFilter(TextureFilter value)
public void setMinFilter(TextureFilter value)
Sets the filter for minification.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TextureFilter | New value |
setMipFilter(TextureFilter value)
public void setMipFilter(TextureFilter value)
Sets the filter for mip-level sampling.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TextureFilter | New value |
setName(String value)
public void setName(String value)
Sets the name.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New value |
setProperty(String property, Object value)
public void setProperty(String property, Object value)
Sets the value of specified property
Parameters:
Parameter | Type | Description |
---|---|---|
property | java.lang.String | Property name |
value | java.lang.Object | The value of the property |
setRotation(double u, double v)
public void setRotation(double u, double v)
Sets the UV rotation.
Parameters:
Parameter | Type | Description |
---|---|---|
u | double | U. |
v | double | V. |
setScale(double u, double v)
public void setScale(double u, double v)
Sets the UV scale.
Parameters:
Parameter | Type | Description |
---|---|---|
u | double | U. |
v | double | V. |
setTranslation(double u, double v)
public void setTranslation(double u, double v)
Sets the UV translation.
Parameters:
Parameter | Type | Description |
---|---|---|
u | double | U. |
v | double | V. |
setUVRotation(Vector3 value)
public void setUVRotation(Vector3 value)
Sets the rotation of the texture
Parameters:
Parameter | Type | Description |
---|---|---|
value | Vector3 | New value |
setUVScale(Vector2 value)
public void setUVScale(Vector2 value)
Sets the UV scale.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Vector2 | New value |
setUVTranslation(Vector2 value)
public void setUVTranslation(Vector2 value)
Sets the UV translation.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Vector2 | New value |
setWrapModeU(WrapMode value)
public void setWrapModeU(WrapMode value)
Sets the texture wrap modes in U.
Parameters:
Parameter | Type | Description |
---|---|---|
value | WrapMode | New value |
setWrapModeV(WrapMode value)
public void setWrapModeV(WrapMode value)
Sets the texture wrap modes in V.
Parameters:
Parameter | Type | Description |
---|---|---|
value | WrapMode | New value |
setWrapModeW(WrapMode value)
public void setWrapModeW(WrapMode value)
Sets the texture wrap modes in W.
Parameters:
Parameter | Type | Description |
---|---|---|
value | WrapMode | New value |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |