of3d
Class OFClassifierScintillansIx255
java.lang.Object
|
+--VolumeJ.VJClassifier
|
+--of3d.OFClassifier
|
+--of3d.OFClassifierScintillans
|
+--of3d.OFClassifierScintillansIx255
- public class OFClassifierScintillansIx255
- extends OFClassifierScintillans
This class implements a classification function of 3D optical flows that sets a scintillation
corresponding in size, color and direction to the flow vector. Only if a surface is present at the location, will
the static underlying volume be shown.
This classifier supports indexing:
index = 0 or 255: flow vector shown (if random value greater than preset value)
- See Also:
index > 0 < 255: static volume shown (depending on static classifier).
Copyright (c) 1999-2002, Michael Abramoff. All rights reserved.
Method Summary |
VJAlphaColor |
alphacolor(FlowJValue value,
VJGradient g)
Classify a flow based on the flow vector, and whether or not a static voxel is present,
into a VJAlphaColor. |
boolean |
doesIndex()
Tell renderer whether this classifier can process indices in the voxel value. |
java.lang.String |
toString()
Return a String with information of this classifier. |
boolean |
visible(FlowJValue value)
Tell calling program whether this voxel has an interesting index
(worthy to do interpolation and gradient calcs on) |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OFClassifierScintillansIx255
public OFClassifierScintillansIx255()
toString
public java.lang.String toString()
- Description copied from class:
VJClassifier
- Return a String with information of this classifier.
- Overrides:
toString
in class OFClassifierScintillans
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 OFClassifierScintillans
visible
public boolean visible(FlowJValue value)
- Tell calling program whether this voxel has an interesting index
(worthy to do interpolation and gradient calcs on)
alphacolor
public VJAlphaColor alphacolor(FlowJValue value,
VJGradient g)
- Classify a flow based on the flow vector, and whether or not a static voxel is present,
into a VJAlphaColor. Works only with indexed static volumes.
if the index at vl == 0 or 255, a random subset of the flows is displayed as a scintillation
if the 1 <= index < 255, the static volume is shown (making use of the index).
- Overrides:
alphacolor
in class OFClassifierScintillans
- Parameters:
value
- a FlowJValue containing the flow vector, the index and the voxel value, if any.g
- a VJGradient containing the voxels gradient.
Submit a bug or feature
Copyright (c) 1997-2003 Michael Abramoff
Licensing available. All Rights Reserved.