public class ColorBand
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
static int | 
IPO_BSPLINE  | 
static int | 
IPO_CARDINAL  | 
static int | 
IPO_CONSTANT  | 
static int | 
IPO_EASE  | 
static int | 
IPO_LINEAR  | 
| Constructor and Description | 
|---|
ColorBand(int ipoType,
         java.util.List<ColorRGBA> colors,
         java.util.List<java.lang.Integer> positions,
         int resultSize)
A constructor used to instantiate color band by hand instead of reading it from the blend file. 
 | 
ColorBand(Structure tex,
         BlenderContext blenderContext)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
public static final int IPO_LINEAR
public static final int IPO_EASE
public static final int IPO_BSPLINE
public static final int IPO_CARDINAL
public static final int IPO_CONSTANT
public ColorBand(int ipoType,
                 java.util.List<ColorRGBA> colors,
                 java.util.List<java.lang.Integer> positions,
                 int resultSize)
ipoType - the interpolation typecolors - the colorband colorspositions - the positions for colors' cursorsresultSize - the size of the result tablepublic ColorBand(Structure tex, BlenderContext blenderContext)
tex - blenderContext - public boolean hasTransparencies()
public float[][] computeValues()