open_iA  2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Enumerations | Functions
iASlicerMode.h File Reference
#include "open_iA_Core_export.h"
#include <QString>
Include dependency graph for iASlicerMode.h:
This graph shows which files directly or indirectly include this file:

Enumerations

enum  iAAxisIndex { X, Y, Z, AxisCount }
 Index of the coordinate axes, to prevent "magic numbers" in code. More...
 
enum  iASlicerMode { YZ, XZ, XY, SlicerCount }
 Constants for the three axis-aligned slicer modes. More...
 

Functions

open_iA_Core_API QString axisName (int axis)
 Get the name of the given axis. More...
 
open_iA_Core_API int mapSliceToGlobalAxis (int mode, int index)
 Map the index of an axis of the slicer to the index of the corresponding global axis. More...
 
open_iA_Core_API QString slicerModeString (int mode)
 Get the "name" of the given slicer mode (i.e. the slicer plane, "XY" for iASlicerMode XY). More...
 

Enumeration Type Documentation

◆ iAAxisIndex

Index of the coordinate axes, to prevent "magic numbers" in code.

Enumerator
AxisCount 

◆ iASlicerMode

Constants for the three axis-aligned slicer modes.

Enumerator
YZ 
XZ 
XY 
SlicerCount 

Function Documentation

◆ axisName()

open_iA_Core_API QString axisName ( int  axis)

Get the name of the given axis.

Parameters
axisthe index of the axis (see iAAxisIndex)

◆ mapSliceToGlobalAxis()

open_iA_Core_API int mapSliceToGlobalAxis ( int  mode,
int  index 
)

Map the index of an axis of the slicer to the index of the corresponding global axis.

Parameters
modethe slicer mode,
See also
iASlicerMode
Parameters
indexthe slicer axis index (x=0, y=1, z=2),
See also
iAAxisIndex
Returns
the global axis index; for values of index = 0,1,2 it returns:
  • 1, 2, 0 for mode=YZ
  • 0, 2, 1 for mode=XZ
  • 0, 1, 2 for mode=XY

◆ slicerModeString()

open_iA_Core_API QString slicerModeString ( int  mode)

Get the "name" of the given slicer mode (i.e. the slicer plane, "XY" for iASlicerMode XY).