|
||||||||||
| 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
edu.washington.biostr.sig.brainj3d.view3D.combiners.AveragingColorCombiner
public class AveragingColorCombiner
This Combiner computes color arrays for each sampled volume data set, then averages the colors at each vertex. It requires a ColorLookupTable of the same size as the number of volume data sets.
| Constructor Summary | |
|---|---|
AveragingColorCombiner()
|
|
| Method Summary | |
|---|---|
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[] values)
Computes the size of array required to hold the colors array generated by this combiner. |
String |
getName()
Returns the name of this Combiner. |
boolean |
needsManyColorTables()
Returns true if the input parameters should be an array of ColorInputTables, one for each source view. |
| Methods inherited from class edu.washington.biostr.sig.brainj3d.view3D.combiners.AbstractVolumeDataViewCombiner |
|---|
clearOutColors, computeColors, computeColorsSize, insertColorAt, intToFloatArray, isValid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AveragingColorCombiner()
| Method Detail |
|---|
public String getName()
VolumeDataViewCombiner
public int computeColorsSize(double[] values)
VolumeDataViewCombiner
values - an array containing a list of vertices
public void computeColors(double[][] valuesArray,
ColorLookupTable[] colorTables,
float[] baseColor,
BlendFunction function,
PreprocessingData prepData,
float[] outColors)
AbstractVolumeDataViewCombiner
computeColors in interface VolumeDataViewCombinercomputeColors in class AbstractVolumeDataViewCombinervaluesArray - 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 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 setsoutColors - destination of computed colors, should be the same length as computeColorsSize(valuesArray)public boolean needsManyColorTables()
VolumeDataViewCombiner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||