Skip to content

API / geotoolkit3d / data / reservoir / hexahedral / voxel / CellIJKIterator / CellIJKIterator

Class: CellIJKIterator

voxel.CellIJKIterator.CellIJKIterator

Iterator to iterate over each cell IJK indices in a voxel grid. Because grid can contain million of cells, this iterator cannot fully implement geotoolkit/util/iterator

Table of contents

Constructors
  • [new CellIJKIterator(iCount, jCount, kCount)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.data-8.reservoir-1.hexahedral.voxel.cellijkiterator.cellijkiterator.md#new cellijkiterator(icount, jcount, kcount))
Methods

Contents

Constructors

new CellIJKIterator(iCount, jCount, kCount)

• new CellIJKIterator(iCount, jCount, kCount)

Constructor

Parameters

Name Type Description
iCountnumberthe grid size on the I axis.
jCountnumberthe grid size on the J axis.
kCountnumberthe grid size on the K axis.
Methods

getClassName

▸ getClassName(): string

Returns

string


hasNext

▸ hasNext(): boolean

Returns true if the iterator has another cell to iterate on.

Returns

boolean

true if the iterator has another cell to iterate on.


▸ next(): CellIndices

Iterate over the next cell, and provide the cell indices. The absolute index is a unique index number allocated to each cell, start from 0 and goes up to sizeI * sizeJ * sizeK.<br> Please note this iterator might provide indices for cells with nullvalues/NaN values, please verify the value for the resulting cell.

Returns

CellIndices

the Cell IJK indices


reset

▸ reset(): CellIJKIterator

Reset this iterator back to the first cell.

Returns

CellIJKIterator


getClassName

▸ Static getClassName(): string

Returns

string