toxi.volume
Class VolumetricHashMap
java.lang.Object
toxi.volume.VolumetricSpace
toxi.volume.VolumetricHashMap
public class VolumetricHashMap
- extends VolumetricSpace
Fields inherited from class toxi.volume.VolumetricSpace |
halfScale, numCells, resX, resX1, resY, resY1, resZ, resZ1, scale, sliceRes, voxelSize |
Constructor Summary |
VolumetricHashMap(toxi.geom.Vec3D scale,
int resX,
int resY,
int resZ,
float density)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VolumetricHashMap
public VolumetricHashMap(toxi.geom.Vec3D scale,
int resX,
int resY,
int resZ,
float density)
clear
public void clear()
- Specified by:
clear
in class VolumetricSpace
closeSides
public void closeSides()
- Overrides:
closeSides
in class VolumetricSpace
getData
public java.util.HashMap<java.lang.Integer,java.lang.Float> getData()
getDensity
public float getDensity()
getVoxelAt
public final float getVoxelAt(int index)
- Specified by:
getVoxelAt
in class VolumetricSpace
getVoxelAt
public final float getVoxelAt(int x,
int y,
int z)
setVolumeSidesTo
public void setVolumeSidesTo(float density)
setVoxelAt
public final void setVoxelAt(int index,
float value)
- Overrides:
setVoxelAt
in class VolumetricSpace
setVoxelAt
public final void setVoxelAt(int x,
int y,
int z,
float value)
- Overrides:
setVoxelAt
in class VolumetricSpace