VolumeJ
Class VJShade
java.lang.Object
|
+--VolumeJ.VJShade
- public class VJShade
- extends java.lang.Object
VJShade. This is a shade, but abstracted for polymorphic volume rendering.
Shade can be single channel (normal volume rendering)
or
multichannel: then each (RGB) color has its own shade.
For other shades: subclass this class.
Copyright (c) 2001-2002, Michael Abramoff. All rights reserved.
Constructor Summary |
VJShade(float attenuation)
|
VJShade(float attenuation0,
float attenuation1,
float attenuation2)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
VJShade
public VJShade(float attenuation)
VJShade
public VJShade(float attenuation0,
float attenuation1,
float attenuation2)
get
public float get()
compute
public float compute(float contribution)
- Compute the value of contribution after shading with this shade.
- Parameters:
contribution
- the contribution [0-1]- Returns:
- a float with contribution * attenuation [0-1].
get
public float get(int i)
channels
public int channels()
singlechannel
public boolean singlechannel()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Submit a bug or feature
Copyright (c) 1997-2003 Michael Abramoff
Licensing available. All Rights Reserved.