Package one.empty3.library
Class ImageTexture
- java.lang.Object
-
- one.empty3.library.ITexture
-
- one.empty3.library.ImageTexture
-
- All Implemented Interfaces:
MatrixPropertiesObject
public class ImageTexture extends ITexture
-
-
Field Summary
-
Fields inherited from class one.empty3.library.ITexture
COLOR_IDENT, COLOR_MIROR_X, COLOR_MIROR_XY, COLOR_MIROR_Y, COLOR_ROT_090, COLOR_ROT_180, COLOR_ROT_270, colorMask, onTextureEnds, repeatX, repeatY
-
-
Constructor Summary
Constructors Constructor Description ImageTexture(java.io.File bif)
ImageTexture(ECBufferedImage bi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatrixPropertiesObject
copy()
protected int
couleur(double rx, double ry)
int
getColorAt(double x, double y)
Point2D
getCoord(double x, double y)
StructureMatrix
getDeclaredProperty(java.lang.String name)
java.awt.image.BufferedImage
getEcBufferedImageStructureMatrix()
ECBufferedImage
getImage()
java.lang.String
getNom()
java.lang.String
getNomFichier()
Point2D
getRepeatCords(double xr, double yr)
void
iterate()
void
setEcBufferedImageStructureMatrix(ECBufferedImage ecBufferedImageStructureMatrix)
void
setImage(ECBufferedImage bi)
void
setNom(java.lang.String nom)
void
setNomFichier(java.lang.String nomFichier)
void
setTransparent(java.awt.Color tr)
void
timeNext()
void
timeNext(long milli)
-
Methods inherited from class one.empty3.library.ITexture
declarations, declareProperties, getColorMask, getDeformMap, getRepeatX, getRepeatY, setColorMask, setDeformMap, setRepeatX, setRepeatY
-
-
-
-
Constructor Detail
-
ImageTexture
public ImageTexture(ECBufferedImage bi)
-
ImageTexture
public ImageTexture(java.io.File bif)
-
-
Method Detail
-
iterate
public void iterate() throws EOFVideoException
- Overrides:
iterate
in classITexture
- Throws:
EOFVideoException
-
getColorAt
public int getColorAt(double x, double y)
- Specified by:
getColorAt
in classITexture
-
getRepeatCords
public Point2D getRepeatCords(double xr, double yr)
-
couleur
protected int couleur(double rx, double ry)
-
getEcBufferedImageStructureMatrix
public java.awt.image.BufferedImage getEcBufferedImageStructureMatrix()
-
setEcBufferedImageStructureMatrix
public void setEcBufferedImageStructureMatrix(ECBufferedImage ecBufferedImageStructureMatrix)
-
getImage
public ECBufferedImage getImage()
-
setImage
public void setImage(ECBufferedImage bi)
-
getNom
public java.lang.String getNom()
-
setNom
public void setNom(java.lang.String nom)
-
getNomFichier
public java.lang.String getNomFichier()
-
setNomFichier
public void setNomFichier(java.lang.String nomFichier)
-
setTransparent
public void setTransparent(java.awt.Color tr)
-
getDeclaredProperty
public StructureMatrix getDeclaredProperty(java.lang.String name)
- Specified by:
getDeclaredProperty
in interfaceMatrixPropertiesObject
- Overrides:
getDeclaredProperty
in classITexture
-
copy
public MatrixPropertiesObject copy() throws CopyRepresentableError, java.lang.IllegalAccessException, java.lang.InstantiationException
- Throws:
CopyRepresentableError
java.lang.IllegalAccessException
java.lang.InstantiationException
-
-