VolumeJ
Class VJThresholdedVolume

java.lang.Object
  |
  +--volume.Volume
        |
        +--VolumeJ.VJThresholdedVolume
All Implemented Interfaces:
java.io.Serializable

public class VJThresholdedVolume
extends Volume

This class creates thresholded (binary) volumes of any type of Volume. It is used in iso-surface rendering. Copyright (c) 2001-2003, Michael Abramoff. All rights reserved. Patent pending.

See Also:
Serialized Form

Field Summary
 boolean[] v
           
 
Fields inherited from class volume.Volume
aspectx, aspecty, aspectz, depth, edge, height, width
 
Constructor Summary
VJThresholdedVolume()
          creates the null volume.
VJThresholdedVolume(Volume v, VJClassifier classifier)
          Create a new thresholded volume.
 
Method Summary
 java.lang.Object get(int x, int y, int z)
          Get the threshold value as a boolean.
 void set(java.lang.Object value, int x, int y, int z)
          Set the threshold value to a boolean value.
 
Methods inherited from class volume.Volume
discreteSupport, getAspectx, getAspecty, getAspectz, getDepth, getEdge, getHeight, getWidth, in, setAspects, setEdge, toString, valid, valid
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

v

public boolean[] v
Constructor Detail

VJThresholdedVolume

public VJThresholdedVolume()
creates the null volume.

VJThresholdedVolume

public VJThresholdedVolume(Volume v,
                           VJClassifier classifier)
Create a new thresholded volume.
Parameters:
v - the volume to be thresholded
classifier - a VJClassifier that can threshold a voxel.
Method Detail

get

public java.lang.Object get(int x,
                            int y,
                            int z)
Get the threshold value as a boolean.
Overrides:
get in class Volume
Parameters:
x - the x position of the voxel
y - the y position of the voxel
z - the z position of the voxel

set

public void set(java.lang.Object value,
                int x,
                int y,
                int z)
Set the threshold value to a boolean value.
Overrides:
set in class Volume
Parameters:
value - a boolean
x - the x position of the voxel
y - the y position of the voxel
z - the z position of the voxel