open_iA 2025.6
Loading...
Searching...
No Matches
iASlicerMode.cpp File Reference
#include "iASlicerMode.h"
#include <array>

Functions

QColor axisColor (int mode)
 get color assigned to a specific axis
 
int & axisColorMode ()
 modifiable index of the axis color mode
 
QString axisName (int axis)
 Get the name of the given axis.
 
int mapGlobalToSliceAxis (int mode, int globalAxis)
 
int mapSliceToGlobalAxis (int mode, int localAxis)
 Map the index of an axis of the slicer to the index of the corresponding global axis.
 
iAAxisIndex nameToAxis (QString const &name)
 Convert an axis name to the iAAxisIndex enum.
 
QString slicerModeString (int mode)
 Get the "name" of the given slicer mode (i.e. the slicer plane, "XY" for iASlicerMode XY).
 

Function Documentation

◆ axisColor()

QColor axisColor ( int mode)

get color assigned to a specific axis

◆ axisColorMode()

int & axisColorMode ( )

modifiable index of the axis color mode

◆ axisName()

QString axisName ( int axis)

Get the name of the given axis.

Parameters
axisthe index of the axis (see iAAxisIndex)

◆ mapGlobalToSliceAxis()

int mapGlobalToSliceAxis ( int mode,
int globalAxis )

◆ mapSliceToGlobalAxis()

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

◆ nameToAxis()

iAAxisIndex nameToAxis ( QString const & name)

Convert an axis name to the iAAxisIndex enum.

◆ slicerModeString()

QString slicerModeString ( int mode)

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