
import itkTemplate
import itkTypes

DIMS = [int(s) for s in "@ITK_WRAP_IMAGE_DIMS@".split(";") if s]
USIGN_INTS = [getattr(itkTypes, s) for s in "@WRAP_ITK_USIGN_INT@".split(";") if s]
SIGN_INTS = [getattr(itkTypes, s) for s in "@WRAP_ITK_SIGN_INT@".split(";") if s]
REALS = [getattr(itkTypes, s) for s in "@WRAP_ITK_REAL@".split(";") if s]

VECTOR_REALS = [itkTemplate.itkTemplate.__templates__[itkTemplate.normalizeName(s)] for s in "@ITK_WRAP_PYTHON_VECTOR_REAL@".split(";") if s]
COV_VECTOR_REALS = [itkTemplate.itkTemplate.__templates__[itkTemplate.normalizeName(s)] for s in "@ITK_WRAP_PYTHON_COV_VECTOR_REAL@".split(";") if s]
RGBS = [itkTemplate.itkTemplate.__templates__[itkTemplate.normalizeName(s)] for s in "@ITK_WRAP_PYTHON_RGB@".split(";") if s]
RGBAS = [itkTemplate.itkTemplate.__templates__[itkTemplate.normalizeName(s)] for s in "@ITK_WRAP_PYTHON_RGBA@".split(";") if s]
COMPLEX_REALS = [itkTemplate.itkTemplate.__templates__[itkTemplate.normalizeName(s)] for s in "@ITK_WRAP_PYTHON_COMPLEX_REAL@".split(";") if s]


INTS = SIGN_INTS + USIGN_INTS
SCALARS = INTS + REALS
VECTORS = VECTOR_REALS + COV_VECTOR_REALS
COLORS = RGBS + RGBAS
ALL_TYPES = COLORS + VECTORS + SCALARS + COMPLEX_REALS

del itkTemplate
del itkTypes
