com.metsci.glimpse.support.texture
Class ColorTextureProjected2D
java.lang.Object
com.metsci.glimpse.support.texture.TextureProjected2D
com.metsci.glimpse.support.texture.FloatTextureProjected2D
com.metsci.glimpse.support.texture.ColorTextureProjected2D
- All Implemented Interfaces:
- DrawableTexture, Texture
public class ColorTextureProjected2D
- extends FloatTextureProjected2D
A texture class which stores 4 channel RGBA colors. Each color channel
contains 8 bit fixed point values (capped from 0 to 1).
Does not require a shader to display color values.
- Author:
- ulman
Method Summary |
void |
setData(java.awt.image.BufferedImage image)
|
void |
setData(double[][] data)
Updates this texture with new data values. |
void |
setData(double[][][] data)
Updates this texture with new data values. |
void |
setData(float[][] data)
Updates this texture with new data values. |
void |
setData(float[][][] data)
|
void |
setData(java.io.InputStream in)
|
Methods inherited from class com.metsci.glimpse.support.texture.TextureProjected2D |
dispose, draw, getDataValue, getDataValue, getDimensionSize, getMaxGLTextureSize, getNumDimension, getProjection, isDirty, isResident, makeDirty, makeProjectionDirty, prepare, resize, setProjection |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FLOATS_PER_PIXEL
public static final int FLOATS_PER_PIXEL
- See Also:
- Constant Field Values
ColorTextureProjected2D
public ColorTextureProjected2D()
ColorTextureProjected2D
public ColorTextureProjected2D(int dataSizeX,
int dataSizeY)
ColorTextureProjected2D
public ColorTextureProjected2D(int dataSizeX,
int dataSizeY,
boolean useVertexZCoord)
setData
public void setData(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
setData
public void setData(java.awt.image.BufferedImage image)
setData
public void setData(float[][][] data)
setData
public void setData(double[][][] data)
- Updates this texture with new data values. The dimensions of the data
array should be float[n0][n1][4] where n0 and n1 are the first and second
arguments provided to resize( ) or to the Texture constructor. The last
dimension contains the r, g, b, and a channels.
- Parameters:
data
- the new data values to load into this texture.
setData
public void setData(float[][] data)
- Description copied from class:
FloatTextureProjected2D
- Updates this texture with new data values. The dimensions of the data
array should be float[n0][n1] where n0 and n1 are the first and second
arguments provided to resize( ) or to the Texture constructor.
- Overrides:
setData
in class FloatTextureProjected2D
- Parameters:
data
- the new data values to load into this texture.
setData
public void setData(double[][] data)
- Description copied from class:
FloatTextureProjected2D
- Updates this texture with new data values. The dimensions of the data
array should be float[n0][n1] where n0 and n1 are the first and second
arguments provided to resize( ) or to the Texture constructor.
- Overrides:
setData
in class FloatTextureProjected2D
- Parameters:
data
- the new data values to load into this texture.
Copyright © 2012 Metron, Inc.. All Rights Reserved.