Package toxi.volume

Class VolumetricSpace

java.lang.Object
toxi.volume.VolumetricSpace
Direct Known Subclasses:
VolumetricHashMap, VolumetricSpaceArray

public abstract class VolumetricSpace extends Object
  • Field Details

    • resX

      public final int resX
    • resY

      public final int resY
    • resZ

      public final int resZ
    • resX1

      public final int resX1
    • resY1

      public final int resY1
    • resZ1

      public final int resZ1
    • sliceRes

      public final int sliceRes
    • scale

      public final Vec3D scale
    • halfScale

      public final Vec3D halfScale
    • voxelSize

      public final Vec3D voxelSize
    • numCells

      public final int numCells
  • Constructor Details

    • VolumetricSpace

      public VolumetricSpace(Vec3D scale, int resX, int resY, int resZ)
  • Method Details

    • clear

      public abstract void clear()
    • closeSides

      public void closeSides()
    • getIndexFor

      public final int getIndexFor(int x, int y, int z)
    • getResolution

      public final Vec3D getResolution()
    • getScale

      public final Vec3D getScale()
      Returns:
      the scale
    • getVoxelAt

      public abstract float getVoxelAt(int index)
    • setScale

      public final void setScale(Vec3D scale)
      Parameters:
      scale - the scale to set
    • setVoxelAt

      public void setVoxelAt(int index, float value)
    • setVoxelAt

      public void setVoxelAt(int x, int y, int z, float value)