VolumeJ
Class VJClassifierIsosurface
java.lang.Object
|
+--VolumeJ.VJClassifier
|
+--VolumeJ.VJClassifierIsosurface
- Direct Known Subclasses:
- VJClassifierIsosurfaceGrayscale
- public class VJClassifierIsosurface
- extends VJClassifier
This class implements the classifier for colored isosurface rendering.
Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.
Method Summary |
VJAlphaColor |
alphacolor(VJValue v,
VJGradient g)
Classify the voxel value into RGB. |
int |
does()
Returns the type of VJAlphaColor this classifier generates: RGB or GRAYSCALE. |
boolean |
doesCutouts()
This method can be overloaded as necessary. |
boolean |
doesIndex()
Tell renderer whether this classifier can process indices in the voxel value. |
float |
getThreshold()
Get the classifier threshold. |
boolean |
hasLUT()
Tell renderer that this classifier does not have a LUT. |
boolean |
overThreshold(float value)
|
void |
setThreshold(float threshold)
|
java.lang.String |
toLongString()
This method can be overloaded as necessary |
java.lang.String |
trace(VJValue v,
VJGradient g)
For debugging: print value, index and gradient. |
boolean |
visible(VJValue v)
Tell renderer whether this voxel will be visible. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
threshold
protected float threshold
VJClassifierIsosurface
public VJClassifierIsosurface()
VJClassifierIsosurface
public VJClassifierIsosurface(float threshold)
setThreshold
public void setThreshold(float threshold)
getThreshold
public float getThreshold()
- Description copied from class:
VJClassifier
- Get the classifier threshold.
- Overrides:
getThreshold
in class VJClassifier
overThreshold
public boolean overThreshold(float value)
alphacolor
public VJAlphaColor alphacolor(VJValue v,
VJGradient g)
- Classify the voxel value into RGB.
- Overrides:
alphacolor
in class VJClassifier
- Parameters:
v
- the VJValue, an interpolated value.g
- the interpolated gradient at the same location- Returns:
- an VJAlphaColor
visible
public boolean visible(VJValue v)
- Description copied from class:
VJClassifier
- Tell renderer whether this voxel will be visible. Used for optimizations.
- Overrides:
visible
in class VJClassifier
does
public int does()
- Description copied from class:
VJClassifier
- Returns the type of VJAlphaColor this classifier generates: RGB or GRAYSCALE.
- Overrides:
does
in class VJClassifier
hasLUT
public boolean hasLUT()
- Tell renderer that this classifier does not have a LUT.
- Overrides:
hasLUT
in class VJClassifier
doesIndex
public boolean doesIndex()
- Description copied from class:
VJClassifier
- Tell renderer whether this classifier can process indices in the voxel value.
- Overrides:
doesIndex
in class VJClassifier
doesCutouts
public boolean doesCutouts()
- Description copied from class:
VJClassifier
- This method can be overloaded as necessary.
Tell renderer whether this classifier can process cutout (slice faces).
- Overrides:
doesCutouts
in class VJClassifier
trace
public java.lang.String trace(VJValue v,
VJGradient g)
- Description copied from class:
VJClassifier
- For debugging: print value, index and gradient.
- Overrides:
trace
in class VJClassifier
toLongString
public java.lang.String toLongString()
- Description copied from class:
VJClassifier
- This method can be overloaded as necessary
- Overrides:
toLongString
in class VJClassifier
Submit a bug or feature
Copyright (c) 1997-2003 Michael Abramoff
Licensing available. All Rights Reserved.