Class SbImageDataAccessor.SubVolumeRegion

  • All Implemented Interfaces:
    SbImageDataAccessor.Region
    Enclosing class:
    SbImageDataAccessor

    @Deprecated(since="2023.2")
    public static class SbImageDataAccessor.SubVolumeRegion
    extends Inventor
    implements SbImageDataAccessor.Region
    Deprecated.
    As of Open Inventor 2023.2. ImageViz API is replaced by the new ImageDev toolkit.
    Region representing a 3D box. Voxels are ordered line by line, slice by slice. 1st voxel is in corner (minX, minY, minZ). 2nd voxel is in (minX+1, minY, minZ). Last voxel is in (maxX, maxY, maxZ)
    • Constructor Detail

      • SubVolumeRegion

        public SubVolumeRegion​(SbBox3i32 subVolume)
        Deprecated.
        Constructor.
    • Method Detail

      • getSize

        public SbVec4i32 getSize()
        Deprecated.
        Returns the dimensions of the region. As this region represent a 3D space, getDimension()[3] is always 1. getDimension()[0], [1] and [2] correspond to size of SbBox3i32 given in constructor.
        Specified by:
        getSize in interface SbImageDataAccessor.Region
      • getExtent

        public SbBox4i32 getExtent()
        Deprecated.
        Returns extent of region. As this region is a 3D space, the last coordinates of the extent are always 0. The 3 first coordinates correspond to the SbBox3i32 given in the constructor.
        Specified by:
        getExtent in interface SbImageDataAccessor.Region
      • getPosition

        public SbVec4i32 getPosition​(long i)
        Deprecated.
        Returns position of the ith voxel of the region. ie. getPosition(0) returns the lower left corner of box given in constructor.

        Throws out of range exception if i >= getNumVoxel()

        Specified by:
        getPosition in interface SbImageDataAccessor.Region