Class AbstractTexture
java.lang.Object
org.scilab.forge.scirenderer.texture.AbstractTexture
- Direct Known Subclasses:
G2DTextureManager.G2DTexture,JoGLTextureManager.JoGLTexture
- Author:
- Pierre Lando
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.scilab.forge.scirenderer.texture.Texture
Texture.Filter, Texture.Wrap -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TextureDataProviderTexture data provider.protected booleanTrue if the data are up to date. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNotify for data update.Texture data provider getter.Magnification filter getter.Minifying filter getter.double2D-Texture coordinates must be modified according to the real texture dimension which can differ from the textureSize (with certains GC, a texture must have a size which is a power-of-two).Wrapping mode on the first texture coordinate getter.double2D-Texture coordinates must be modified according to the real texture dimension which can differ from the textureSize (with certains GC, a texture must have a size which is a power-of-two).Wrapping mode on the second dimension getter.booleanisValid()Texture validity getter.voidsetDataProvider(TextureDataProvider provider) Texture data provider setter.voidsetDrawer(TextureDrawer textureDrawer) Set the texture data provider as a drawn texture data provider.voidsetMagnificationFilter(Texture.Filter magnificationFilter) Magnification filter mode setter.voidsetMinifyingFilter(Texture.Filter minifyingFilter) Minifying filter mode setter.voidsetSWrappingMode(Texture.Wrap sWrappingMode) Wrapping mode on the first texture coordinate.voidsetTWrappingMode(Texture.Wrap tWrappingMode) Wrapping mode on the second texture coordinate.
-
Field Details
-
textureDataProvider
Texture data provider. -
upToDate
protected boolean upToDateTrue if the data are up to date.
-
-
Constructor Details
-
AbstractTexture
public AbstractTexture()Default constructor.
-
-
Method Details
-
isValid
public boolean isValid()Description copied from interface:TextureTexture validity getter. -
getSWrappingMode
Description copied from interface:TextureWrapping mode on the first texture coordinate getter. For more information on wrapping mode {see Wrap}.- Specified by:
getSWrappingModein interfaceTexture- Returns:
- the wrapping mode on the first texture coordinate.
-
setSWrappingMode
Description copied from interface:TextureWrapping mode on the first texture coordinate.- Specified by:
setSWrappingModein interfaceTexture- Parameters:
sWrappingMode- the new wrapping mode on the first texture coordinate.
-
getTWrappingMode
Description copied from interface:TextureWrapping mode on the second dimension getter. If the texture dimension is 1, this method will returnnull. For more information on wrapping mode {see Wrap}.- Specified by:
getTWrappingModein interfaceTexture- Returns:
- the wrapping mode on the second dimension.
-
setTWrappingMode
Description copied from interface:TextureWrapping mode on the second texture coordinate.- Specified by:
setTWrappingModein interfaceTexture- Parameters:
tWrappingMode- the new wrapping mode on the second texture coordinate.
-
getMinifyingFilter
Description copied from interface:TextureMinifying filter getter.- Specified by:
getMinifyingFilterin interfaceTexture- Returns:
- the used minifying filter.
-
setMinifyingFilter
Description copied from interface:TextureMinifying filter mode setter.- Specified by:
setMinifyingFilterin interfaceTexture- Parameters:
minifyingFilter- the new minifying filter mode.
-
getMagnificationFilter
Description copied from interface:TextureMagnification filter getter.- Specified by:
getMagnificationFilterin interfaceTexture- Returns:
- the used magnification filter.
-
setMagnificationFilter
Description copied from interface:TextureMagnification filter mode setter.- Specified by:
setMagnificationFilterin interfaceTexture- Parameters:
magnificationFilter- the new minifying filter mode.
-
getDataProvider
Description copied from interface:TextureTexture data provider getter.- Specified by:
getDataProviderin interfaceTexture- Returns:
- the texture data provider.
-
setDataProvider
Description copied from interface:TextureTexture data provider setter. The texture is set to 'no up to date'.- Specified by:
setDataProviderin interfaceTexture- Parameters:
provider- the new texture data provider.
-
setDrawer
Description copied from interface:TextureSet the texture data provider as a drawn texture data provider. -
dataUpdated
public void dataUpdated()Description copied from interface:DataUserNotify for data update.- Specified by:
dataUpdatedin interfaceDataUser
-
getSScaleFactor
public double getSScaleFactor()Description copied from interface:Texture2D-Texture coordinates must be modified according to the real texture dimension which can differ from the textureSize (with certains GC, a texture must have a size which is a power-of-two).- Specified by:
getSScaleFactorin interfaceTexture- Returns:
- the scale factor for the s-coordinate
-
getTScaleFactor
public double getTScaleFactor()Description copied from interface:Texture2D-Texture coordinates must be modified according to the real texture dimension which can differ from the textureSize (with certains GC, a texture must have a size which is a power-of-two).- Specified by:
getTScaleFactorin interfaceTexture- Returns:
- the scale factor for the t-coordinate
-