open_iA 2025.6
Loading...
Searching...
No Matches
iAImageCoordConverter Class Reference

Utility class for converting (2D/)3D indices to a flat (1D) index. More...

#include <iAImageCoordinate.h>

Public Member Functions

 iAImageCoordConverter (iAVoxelIndexType width, iAVoxelIndexType height, iAVoxelIndexType depth=1, iAImageCoordinate::iAIndexOrdering ordering=iAImageCoordinate::RowColDepMajor)
 
iAImageCoordinate coordinatesFromIndex (iAFlatIndexType index) const
 
iAVoxelIndexType depth () const
 
iAVoxelIndexType height () const
 
iAFlatIndexType indexFromCoordinates (iAImageCoordinate coords) const
 
iAFlatIndexType vertexCount () const
 
iAVoxelIndexType width () const
 

Static Public Member Functions

static iAImageCoordinate coordinatesFromIndex (iAFlatIndexType index, iAVoxelIndexType width, iAVoxelIndexType height, iAVoxelIndexType depth, iAImageCoordinate::iAIndexOrdering ordering)
 
static iAFlatIndexType indexFromCoordinates (iAImageCoordinate coords, iAVoxelIndexType width, iAVoxelIndexType height, iAVoxelIndexType depth, iAImageCoordinate::iAIndexOrdering ordering)
 

Detailed Description

Utility class for converting (2D/)3D indices to a flat (1D) index.

Todo
maybe merge with stuff from DynamicVolumeLines?

Constructor & Destructor Documentation

◆ iAImageCoordConverter()

iAImageCoordConverter::iAImageCoordConverter ( iAVoxelIndexType width,
iAVoxelIndexType height,
iAVoxelIndexType depth = 1,
iAImageCoordinate::iAIndexOrdering ordering = iAImageCoordinate::RowColDepMajor )

Member Function Documentation

◆ coordinatesFromIndex() [1/2]

iAImageCoordinate iAImageCoordConverter::coordinatesFromIndex ( iAFlatIndexType index) const

◆ coordinatesFromIndex() [2/2]

iAImageCoordinate iAImageCoordConverter::coordinatesFromIndex ( iAFlatIndexType index,
iAVoxelIndexType width,
iAVoxelIndexType height,
iAVoxelIndexType depth,
iAImageCoordinate::iAIndexOrdering ordering )
static

◆ depth()

iAVoxelIndexType iAImageCoordConverter::depth ( ) const

◆ height()

iAVoxelIndexType iAImageCoordConverter::height ( ) const

◆ indexFromCoordinates() [1/2]

iAFlatIndexType iAImageCoordConverter::indexFromCoordinates ( iAImageCoordinate coords) const

◆ indexFromCoordinates() [2/2]

iAFlatIndexType iAImageCoordConverter::indexFromCoordinates ( iAImageCoordinate coords,
iAVoxelIndexType width,
iAVoxelIndexType height,
iAVoxelIndexType depth,
iAImageCoordinate::iAIndexOrdering ordering )
static

◆ vertexCount()

iAFlatIndexType iAImageCoordConverter::vertexCount ( ) const

◆ width()

iAVoxelIndexType iAImageCoordConverter::width ( ) const

The documentation for this class was generated from the following files: