com.jme3.scene.plugins.blender.textures
Class ColorBand
java.lang.Object
com.jme3.scene.plugins.blender.textures.ColorBand
public class ColorBand
- extends java.lang.Object
A class constaining the colorband data.
Method Summary |
float[][] |
computeValues()
This method computes the values of the colorband. |
boolean |
hasTransparencies()
This method determines if the colorband has any transparencies or is not
transparent at all. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IPO_LINEAR
public static final int IPO_LINEAR
- See Also:
- Constant Field Values
IPO_EASE
public static final int IPO_EASE
- See Also:
- Constant Field Values
IPO_BSPLINE
public static final int IPO_BSPLINE
- See Also:
- Constant Field Values
IPO_CARDINAL
public static final int IPO_CARDINAL
- See Also:
- Constant Field Values
IPO_CONSTANT
public static final int IPO_CONSTANT
- See Also:
- Constant Field Values
ColorBand
public ColorBand(Structure tex,
BlenderContext blenderContext)
- Constructor. Loads the data from the given structure.
- Parameters:
cbdataStructure
- the colorband structure
hasTransparencies
public boolean hasTransparencies()
- This method determines if the colorband has any transparencies or is not
transparent at all.
- Returns:
- true if the colorband has transparencies and false
otherwise
computeValues
public float[][] computeValues()
- This method computes the values of the colorband.
- Returns:
- an array of 1001 elements and each element is float[4] object
containing rgba values