TextureBase
Inheritance: java.lang.Object, com.aspose.threed.A3DObject
public class TextureBase extends A3DObject
Base class for all concrete textures. Texture defines the look and feel of a geometry surface.
Constructors
Constructor | Description |
---|---|
TextureBase(String name) | Initializes a new instance of the TextureBase 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() | |
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. |
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) |
TextureBase(String name)
public TextureBase(String name)
Initializes a new instance of the TextureBase 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
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
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:
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
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:
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 |
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:
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 |
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 |