|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scilab.forge.scirenderer.texture.AbstractTexture
public class AbstractTexture
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.scilab.forge.scirenderer.texture.Texture |
---|
Texture.Filter, Texture.Wrap |
Field Summary | |
---|---|
protected TextureDataProvider |
textureDataProvider
Texture data provider. |
protected boolean |
upToDate
True if the data are up to date. |
Constructor Summary | |
---|---|
AbstractTexture()
Default constructor. |
Method Summary | |
---|---|
void |
dataUpdated()
Notify for data update. |
TextureDataProvider |
getDataProvider()
Texture data provider getter. |
Texture.Filter |
getMagnificationFilter()
Magnification filter getter. |
Texture.Filter |
getMinifyingFilter()
Minifying filter getter. |
double |
getSScaleFactor()
2D-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). |
Texture.Wrap |
getSWrappingMode()
Wrapping mode on the first texture coordinate getter. |
double |
getTScaleFactor()
2D-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). |
Texture.Wrap |
getTWrappingMode()
Wrapping mode on the second dimension getter. |
boolean |
isValid()
Texture validity getter. |
void |
setDataProvider(TextureDataProvider provider)
Texture data provider setter. |
void |
setDrawer(TextureDrawer textureDrawer)
Set the texture data provider as a drawn texture data provider. |
void |
setMagnificationFilter(Texture.Filter magnificationFilter)
Magnification filter mode setter. |
void |
setMinifyingFilter(Texture.Filter minifyingFilter)
Minifying filter mode setter. |
void |
setSWrappingMode(Texture.Wrap sWrappingMode)
Wrapping mode on the first texture coordinate. |
void |
setTWrappingMode(Texture.Wrap tWrappingMode)
Wrapping mode on the second texture coordinate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TextureDataProvider textureDataProvider
protected boolean upToDate
Constructor Detail |
---|
public AbstractTexture()
Method Detail |
---|
public boolean isValid()
Texture
isValid
in interface Texture
public Texture.Wrap getSWrappingMode()
Texture
getSWrappingMode
in interface Texture
public void setSWrappingMode(Texture.Wrap sWrappingMode)
Texture
setSWrappingMode
in interface Texture
sWrappingMode
- the new wrapping mode on the first texture coordinate.public Texture.Wrap getTWrappingMode()
Texture
null
.
For more information on wrapping mode {see Wrap}.
getTWrappingMode
in interface Texture
public void setTWrappingMode(Texture.Wrap tWrappingMode)
Texture
setTWrappingMode
in interface Texture
tWrappingMode
- the new wrapping mode on the second texture coordinate.public Texture.Filter getMinifyingFilter()
Texture
getMinifyingFilter
in interface Texture
public void setMinifyingFilter(Texture.Filter minifyingFilter)
Texture
setMinifyingFilter
in interface Texture
minifyingFilter
- the new minifying filter mode.public Texture.Filter getMagnificationFilter()
Texture
getMagnificationFilter
in interface Texture
public void setMagnificationFilter(Texture.Filter magnificationFilter)
Texture
setMagnificationFilter
in interface Texture
magnificationFilter
- the new minifying filter mode.public TextureDataProvider getDataProvider()
Texture
getDataProvider
in interface Texture
public void setDataProvider(TextureDataProvider provider)
Texture
setDataProvider
in interface Texture
provider
- the new texture data provider.public void setDrawer(TextureDrawer textureDrawer)
Texture
setDrawer
in interface Texture
textureDrawer
- the given texture drawer.public void dataUpdated()
DataUser
dataUpdated
in interface DataUser
public double getSScaleFactor()
Texture
getSScaleFactor
in interface Texture
public double getTScaleFactor()
Texture
getTScaleFactor
in interface Texture
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |