|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--VolumeJ.VJClassifier
This class is the superclass for all classifiers. Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.
Field Summary | |
protected java.lang.String |
description
A short description of the classifier. |
static int |
GRAYSCALE
Classifier can return a RGB VJAlphaColor. |
static int |
RGB
Classifier can return a RGB VJAlphaColor. |
protected VJClassifier |
secondaryClassifier
Contains a secondary classifier if needed in alphacolor. |
Constructor Summary | |
VJClassifier()
|
Method Summary | |
VJAlphaColor |
alphacolor(VJValue value)
This method can be overloaded as necessary. |
abstract VJAlphaColor |
alphacolor(VJValue value,
VJGradient g)
The classification method, defining how a value/gradient combination will be classified as an VJAlphaColor (argb). |
abstract int |
does()
Returns the type of VJAlphaColor this classifier generates: RGB or GRAYSCALE. |
boolean |
doesCutouts()
This method can be overloaded as necessary. |
abstract boolean |
doesIndex()
Tell renderer whether this classifier can process indices in the voxel value. |
VJClassifier |
getSecondaryClassifier()
|
abstract float |
getThreshold()
Get the classifier threshold. |
abstract boolean |
hasLUT()
Return whether or not this classifier supports a user loadable LUT. |
boolean |
setLUT(byte[] reds,
byte[] greens,
byte[] blues)
Set up a user-defined LUT. |
void |
setSecondaryClassifier(VJClassifier classifier)
Sets an alternative classifier. |
java.lang.String |
toLongString()
This method can be overloaded as necessary |
java.lang.String |
toString()
Return a String with information of this classifier. |
java.lang.String |
trace(VJValue v,
VJGradient g)
For debugging: print value, index and gradient. |
abstract boolean |
visible(VJValue value)
Tell renderer whether this voxel will be visible. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int RGB
public static final int GRAYSCALE
protected VJClassifier secondaryClassifier
protected java.lang.String description
Constructor Detail |
public VJClassifier()
Method Detail |
public abstract float getThreshold()
public abstract VJAlphaColor alphacolor(VJValue value, VJGradient g)
public abstract int does()
public abstract boolean visible(VJValue value)
public abstract boolean doesIndex()
public abstract boolean hasLUT()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean setLUT(byte[] reds, byte[] greens, byte[] blues)
public void setSecondaryClassifier(VJClassifier classifier)
public VJClassifier getSecondaryClassifier()
public java.lang.String toLongString()
public boolean doesCutouts()
public VJAlphaColor alphacolor(VJValue value)
public java.lang.String trace(VJValue v, VJGradient g)
|
BIJ API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |