|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.biostr.sig.brainj3d.view3D.combiners.AbstractVolumeDataViewCombiner
public abstract class AbstractVolumeDataViewCombiner
Base class for implementing VolumeDataViewCombiner.
| Constructor Summary | |
|---|---|
AbstractVolumeDataViewCombiner()
|
|
| Method Summary | |
|---|---|
protected static void |
clearOutColors(float[] outColors)
Sets all entries in outColors to zero |
float[] |
computeColors(double[][] valuesArray,
ColorLookupTable[] colorTables,
float[] baseColor,
BlendFunction function,
PreprocessingData prepData)
Computes colors given the specified inputs and returns an array holding the computed colors. |
abstract void |
computeColors(double[][] valuesArray,
ColorLookupTable[] colorTables,
float[] baseColor,
BlendFunction function,
PreprocessingData prepData,
float[] outColors)
Computes colors given the specified inputs and modified outColors to hold the computed colors. |
int |
computeColorsSize(double[][] valuesArray)
Computes the size of array required to hold the colors array generated by this combiner. |
protected static void |
insertColorAt(float[] arrayOfColors,
int index,
float[] color)
Inserts the specified color at the specifed index into the array of colors. |
protected static void |
intToFloatArray(int byteColor,
float[] outColor)
Converts the ARGB 4-byte word into a float array representing the same color |
protected boolean |
isValid(double[][] valuesArray)
Returns true if this values array meets the minimum requirements for processing (does not perform null testing): |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.washington.biostr.sig.brainj3d.view3D.combiners.VolumeDataViewCombiner |
|---|
computeColorsSize, getName, needsManyColorTables |
| Constructor Detail |
|---|
public AbstractVolumeDataViewCombiner()
| Method Detail |
|---|
public int computeColorsSize(double[][] valuesArray)
VolumeDataViewCombiner
computeColorsSize in interface VolumeDataViewCombinervaluesArray - An array of arrays of values for which a colors array would be generated for
public final float[] computeColors(double[][] valuesArray,
ColorLookupTable[] colorTables,
float[] baseColor,
BlendFunction function,
PreprocessingData prepData)
VolumeDataViewCombiner
computeColors in interface VolumeDataViewCombinervaluesArray - should be in the format of [view index][vertex index]colorTables - an array of ColorLookupTables, should be length one if needsManyColorTables() returns false,
or the same length at the number of views in the valuesArray if needsManyColorTables() returns truebaseColor - the base color to be used in the blend function: [r, g, b] or
[r, g, b, a] (if this combiner supports alpha)function - the blend function to use to blend the base color with the mapped color from the
ColorLookupTable(s).prepData - the preprocessing data computed across each of the full sampled data sets
[r0, g0, b0, a0, r1, g1, b1, a1, ...] if
this combiner supports alpha values or of the form [r0, g0, b0, r1, g1, b1, ...] if this
combiner does not support alpha values; The size of this array is the same as the size returned by
computeColorsSize(valuesArray)
public abstract void computeColors(double[][] valuesArray,
ColorLookupTable[] colorTables,
float[] baseColor,
BlendFunction function,
PreprocessingData prepData,
float[] outColors)
computeColors in interface VolumeDataViewCombinervaluesArray - should be in the format of [view index][vertex index]outColors - destination of computed colors, should be the same length as computeColorsSize(valuesArray)colorTables - an array of ColorLookupTables, should be length one if needsManyColorTables() returns false,
or the same length at the number of views in the valuesArray if needsManyColorTables() returns truebaseColor - the base color to be used in the blend functionfunction - the blend function to use to blend the base color with the mapped color from the
ColorLookupTable(s).prepData - the preprocessing data computed across each of the full sampled data setsprotected boolean isValid(double[][] valuesArray)
Returns true if this values array meets the minimum requirements for processing (does not perform null testing):
valuesArray -
protected static final void insertColorAt(float[] arrayOfColors,
int index,
float[] color)
arrayOfColors - index - color will be inserted as the index-th colorcolor -
protected static final void intToFloatArray(int byteColor,
float[] outColor)
byteColor - outColor - protected static final void clearOutColors(float[] outColors)
outColors -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||