Package com.aspose.threed
Class Texture
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.TextureBase
-
- com.aspose.threed.Texture
-
- All Implemented Interfaces:
INamedObject
public class Texture extends TextureBase
This class defines the texture from an external file.
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getContent()
Gets the binary content of the texture.boolean
getEnableMipMap()
Gets if the mipmap is enabled for this texturejava.lang.String
getFileName()
Gets the associated texture file.void
setContent(byte[] value)
Sets the binary content of the texture.void
setEnableMipMap(boolean value)
Sets if the mipmap is enabled for this texturevoid
setFileName(java.lang.String value)
Sets the associated texture file.-
Methods inherited from class com.aspose.threed.TextureBase
getAlpha, getAlphaSource, getMagFilter, getMinFilter, getMipFilter, getUVRotation, getUVScale, getUVTranslation, getWrapModeU, getWrapModeV, getWrapModeW, setAlpha, setAlphaSource, setMagFilter, setMinFilter, setMipFilter, setRotation, setScale, setTranslation, setUVRotation, setUVScale, setUVTranslation, setWrapModeU, setWrapModeV, setWrapModeW
-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Method Detail
-
getEnableMipMap
public boolean getEnableMipMap()
Gets if the mipmap is enabled for this texture
-
setEnableMipMap
public void setEnableMipMap(boolean value)
Sets if the mipmap is enabled for this texture- Parameters:
value
- New value
-
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.
-
setContent
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:
value
- New value
-
getFileName
public java.lang.String getFileName()
Gets the associated texture file.
-
setFileName
public void setFileName(java.lang.String value)
Sets the associated texture file.- Parameters:
value
- New value
-
-