com.jme3.scene.plugins.blender.textures
Class ColorBand

java.lang.Object
  extended by com.jme3.scene.plugins.blender.textures.ColorBand

public class ColorBand
extends java.lang.Object

A class constaining the colorband data.


Field Summary
static int IPO_BSPLINE
           
static int IPO_CARDINAL
           
static int IPO_CONSTANT
           
static int IPO_EASE
           
static int IPO_LINEAR
           
 
Constructor Summary
ColorBand(Structure tex, BlenderContext blenderContext)
          Constructor.
 
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
 

Field Detail

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
Constructor Detail

ColorBand

public ColorBand(Structure tex,
                 BlenderContext blenderContext)
Constructor. Loads the data from the given structure.

Parameters:
cbdataStructure - the colorband structure
Method Detail

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