# This file was automatically generated by SWIG (https://www.swig.org).
# Version 4.4.1
#
# Do not make changes to this file unless you know what you are doing - modify
# the SWIG interface file instead.


import collections

from sys import version_info as _version_info
if _version_info < (3, 7, 0):
    raise RuntimeError("Python 3.7 or later required")

from . import _ITKCommonPython


from . import _ITKImageSourcesPython



from sys import version_info as _swig_python_version_info
# Import the low-level C/C++ module
if getattr(globals().get("__spec__"), "parent", None) or __package__ or "." in __name__:
    from . import _itkGridImageSourcePython
else:
    import _itkGridImageSourcePython

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except __builtin__.Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)


def _swig_setattr_nondynamic_instance_variable(set):
    def set_instance_attr(self, name, value):
        if name == "this":
            set(self, name, value)
        elif name == "thisown":
            self.this.own(value)
        elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add instance attributes to %s" % self)
    return set_instance_attr


def _swig_setattr_nondynamic_class_variable(set):
    def set_class_attr(cls, name, value):
        if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
            set(cls, name, value)
        else:
            raise AttributeError("You cannot add class attributes to %s" % cls)
    return set_class_attr


def _swig_add_metaclass(metaclass):
    """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
    def wrapper(cls):
        return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
    return wrapper


class _SwigNonDynamicMeta(type):
    """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
    __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)


if _swig_python_version_info[0:2] >= (3, 3):
    import collections.abc
else:
    import collections

import itk.itkImageRegionPython
import itk.itkSizePython
import itk.pyBasePython
import itk.itkIndexPython
import itk.itkOffsetPython
import itk.ITKCommonBasePython
import itk.itkMatrixPython
import itk.vnl_vectorPython
import itk.vnl_matrixPython
import itk.stdcomplexPython
import itk.vnl_matrix_fixedPython
import itk.itkVectorPython
import itk.itkFixedArrayPython
import itk.vnl_vector_refPython
import itk.itkCovariantVectorPython
import itk.itkPointPython
import itk.itkGenerateImageSourcePython
import itk.itkImagePython
import itk.itkRGBPixelPython
import itk.itkSymmetricSecondRankTensorPython
import itk.itkRGBAPixelPython
import itk.itkImageSourcePython
import itk.itkVectorImagePython
import itk.itkVariableLengthVectorPython
import itk.itkImageSourceCommonPython
import itk.itkPhasedArray3DSpecialCoordinatesImagePython

def itkGridImageSourceIF2_New():
    return itkGridImageSourceIF2.New()

class itkGridImageSourceIF2(itk.itkGenerateImageSourcePython.itkGenerateImageSourceIF2):
    r"""Proxy of C++ itkGridImageSourceIF2 class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined")
    __repr__ = _swig_repr

    @staticmethod
    def __New_orig__():
        r"""__New_orig__() -> itkGridImageSourceIF2_Pointer"""
        return _itkGridImageSourcePython.itkGridImageSourceIF2___New_orig__()

    def Clone(self):
        r"""Clone(self) -> itkGridImageSourceIF2_Pointer"""
        return _itkGridImageSourcePython.itkGridImageSourceIF2_Clone(self)

    def SetKernelFunction(self, _arg):
        r"""
        SetKernelFunction(self, _arg)

        Parameters
        ----------
        _arg: itk::KernelFunctionBase< > *

        """
        return _itkGridImageSourcePython.itkGridImageSourceIF2_SetKernelFunction(self, _arg)

    def GetKernelFunction(self):
        r"""GetKernelFunction(self) -> itk::SmartPointer< itk::KernelFunctionBase< > > const &"""
        return _itkGridImageSourcePython.itkGridImageSourceIF2_GetKernelFunction(self)

    def SetSigma(self, _arg):
        r"""
        SetSigma(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD2

        """
        return _itkGridImageSourcePython.itkGridImageSourceIF2_SetSigma(self, _arg)

    def GetSigma(self):
        r"""GetSigma(self) -> itkFixedArrayD2"""
        return _itkGridImageSourcePython.itkGridImageSourceIF2_GetSigma(self)

    def SetGridSpacing(self, _arg):
        r"""
        SetGridSpacing(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD2

        """
        return _itkGridImageSourcePython.itkGridImageSourceIF2_SetGridSpacing(self, _arg)

    def GetGridSpacing(self):
        r"""GetGridSpacing(self) -> itkFixedArrayD2"""
        return _itkGridImageSourcePython.itkGridImageSourceIF2_GetGridSpacing(self)

    def SetGridOffset(self, _arg):
        r"""
        SetGridOffset(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD2

        """
        return _itkGridImageSourcePython.itkGridImageSourceIF2_SetGridOffset(self, _arg)

    def GetGridOffset(self):
        r"""GetGridOffset(self) -> itkFixedArrayD2"""
        return _itkGridImageSourcePython.itkGridImageSourceIF2_GetGridOffset(self)

    def SetWhichDimensions(self, _arg):
        r"""
        SetWhichDimensions(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayB2

        """
        return _itkGridImageSourcePython.itkGridImageSourceIF2_SetWhichDimensions(self, _arg)

    def GetWhichDimensions(self):
        r"""GetWhichDimensions(self) -> itkFixedArrayB2"""
        return _itkGridImageSourcePython.itkGridImageSourceIF2_GetWhichDimensions(self)

    def SetScale(self, _arg):
        r"""
        SetScale(self, _arg)

        Parameters
        ----------
        _arg: double

        """
        return _itkGridImageSourcePython.itkGridImageSourceIF2_SetScale(self, _arg)

    def GetScale(self):
        r"""GetScale(self) -> double const &"""
        return _itkGridImageSourcePython.itkGridImageSourceIF2_GetScale(self)
    __swig_destroy__ = _itkGridImageSourcePython.delete_itkGridImageSourceIF2

    @staticmethod
    def cast(obj):
        r"""
        cast(obj) -> itkGridImageSourceIF2

        Parameters
        ----------
        obj: itkLightObject *

        """
        return _itkGridImageSourcePython.itkGridImageSourceIF2_cast(obj)

    def New(*args, **kargs):
        """New() -> itkGridImageSourceIF2

        Create a new object of the class itkGridImageSourceIF2 and set the input and the parameters if some
        named or non-named arguments are passed to that method.

        New() tries to assign all the non named parameters to the input of the new objects - the
        first non named parameter in the first input, etc.

        The named parameters are used by calling the method with the same name prefixed by 'Set'.

        Ex:

          itkGridImageSourceIF2.New(reader, threshold=10)

        is (most of the time) equivalent to:

          obj = itkGridImageSourceIF2.New()
          obj.SetInput(0, reader.GetOutput())
          obj.SetThreshold(10)
        """
        obj = itkGridImageSourceIF2.__New_orig__()
        from itk.support import template_class
        template_class.New(obj, *args, **kargs)
        return obj
    New = staticmethod(New)


# Register itkGridImageSourceIF2 in _itkGridImageSourcePython:
_itkGridImageSourcePython.itkGridImageSourceIF2_swigregister(itkGridImageSourceIF2)

def itkGridImageSourceIF3_New():
    return itkGridImageSourceIF3.New()

class itkGridImageSourceIF3(itk.itkGenerateImageSourcePython.itkGenerateImageSourceIF3):
    r"""Proxy of C++ itkGridImageSourceIF3 class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined")
    __repr__ = _swig_repr

    @staticmethod
    def __New_orig__():
        r"""__New_orig__() -> itkGridImageSourceIF3_Pointer"""
        return _itkGridImageSourcePython.itkGridImageSourceIF3___New_orig__()

    def Clone(self):
        r"""Clone(self) -> itkGridImageSourceIF3_Pointer"""
        return _itkGridImageSourcePython.itkGridImageSourceIF3_Clone(self)

    def SetKernelFunction(self, _arg):
        r"""
        SetKernelFunction(self, _arg)

        Parameters
        ----------
        _arg: itk::KernelFunctionBase< > *

        """
        return _itkGridImageSourcePython.itkGridImageSourceIF3_SetKernelFunction(self, _arg)

    def GetKernelFunction(self):
        r"""GetKernelFunction(self) -> itk::SmartPointer< itk::KernelFunctionBase< > > const &"""
        return _itkGridImageSourcePython.itkGridImageSourceIF3_GetKernelFunction(self)

    def SetSigma(self, _arg):
        r"""
        SetSigma(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD3

        """
        return _itkGridImageSourcePython.itkGridImageSourceIF3_SetSigma(self, _arg)

    def GetSigma(self):
        r"""GetSigma(self) -> itkFixedArrayD3"""
        return _itkGridImageSourcePython.itkGridImageSourceIF3_GetSigma(self)

    def SetGridSpacing(self, _arg):
        r"""
        SetGridSpacing(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD3

        """
        return _itkGridImageSourcePython.itkGridImageSourceIF3_SetGridSpacing(self, _arg)

    def GetGridSpacing(self):
        r"""GetGridSpacing(self) -> itkFixedArrayD3"""
        return _itkGridImageSourcePython.itkGridImageSourceIF3_GetGridSpacing(self)

    def SetGridOffset(self, _arg):
        r"""
        SetGridOffset(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD3

        """
        return _itkGridImageSourcePython.itkGridImageSourceIF3_SetGridOffset(self, _arg)

    def GetGridOffset(self):
        r"""GetGridOffset(self) -> itkFixedArrayD3"""
        return _itkGridImageSourcePython.itkGridImageSourceIF3_GetGridOffset(self)

    def SetWhichDimensions(self, _arg):
        r"""
        SetWhichDimensions(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayB3

        """
        return _itkGridImageSourcePython.itkGridImageSourceIF3_SetWhichDimensions(self, _arg)

    def GetWhichDimensions(self):
        r"""GetWhichDimensions(self) -> itkFixedArrayB3"""
        return _itkGridImageSourcePython.itkGridImageSourceIF3_GetWhichDimensions(self)

    def SetScale(self, _arg):
        r"""
        SetScale(self, _arg)

        Parameters
        ----------
        _arg: double

        """
        return _itkGridImageSourcePython.itkGridImageSourceIF3_SetScale(self, _arg)

    def GetScale(self):
        r"""GetScale(self) -> double const &"""
        return _itkGridImageSourcePython.itkGridImageSourceIF3_GetScale(self)
    __swig_destroy__ = _itkGridImageSourcePython.delete_itkGridImageSourceIF3

    @staticmethod
    def cast(obj):
        r"""
        cast(obj) -> itkGridImageSourceIF3

        Parameters
        ----------
        obj: itkLightObject *

        """
        return _itkGridImageSourcePython.itkGridImageSourceIF3_cast(obj)

    def New(*args, **kargs):
        """New() -> itkGridImageSourceIF3

        Create a new object of the class itkGridImageSourceIF3 and set the input and the parameters if some
        named or non-named arguments are passed to that method.

        New() tries to assign all the non named parameters to the input of the new objects - the
        first non named parameter in the first input, etc.

        The named parameters are used by calling the method with the same name prefixed by 'Set'.

        Ex:

          itkGridImageSourceIF3.New(reader, threshold=10)

        is (most of the time) equivalent to:

          obj = itkGridImageSourceIF3.New()
          obj.SetInput(0, reader.GetOutput())
          obj.SetThreshold(10)
        """
        obj = itkGridImageSourceIF3.__New_orig__()
        from itk.support import template_class
        template_class.New(obj, *args, **kargs)
        return obj
    New = staticmethod(New)


# Register itkGridImageSourceIF3 in _itkGridImageSourcePython:
_itkGridImageSourcePython.itkGridImageSourceIF3_swigregister(itkGridImageSourceIF3)

def itkGridImageSourceISS2_New():
    return itkGridImageSourceISS2.New()

class itkGridImageSourceISS2(itk.itkGenerateImageSourcePython.itkGenerateImageSourceISS2):
    r"""Proxy of C++ itkGridImageSourceISS2 class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined")
    __repr__ = _swig_repr

    @staticmethod
    def __New_orig__():
        r"""__New_orig__() -> itkGridImageSourceISS2_Pointer"""
        return _itkGridImageSourcePython.itkGridImageSourceISS2___New_orig__()

    def Clone(self):
        r"""Clone(self) -> itkGridImageSourceISS2_Pointer"""
        return _itkGridImageSourcePython.itkGridImageSourceISS2_Clone(self)

    def SetKernelFunction(self, _arg):
        r"""
        SetKernelFunction(self, _arg)

        Parameters
        ----------
        _arg: itk::KernelFunctionBase< > *

        """
        return _itkGridImageSourcePython.itkGridImageSourceISS2_SetKernelFunction(self, _arg)

    def GetKernelFunction(self):
        r"""GetKernelFunction(self) -> itk::SmartPointer< itk::KernelFunctionBase< > > const &"""
        return _itkGridImageSourcePython.itkGridImageSourceISS2_GetKernelFunction(self)

    def SetSigma(self, _arg):
        r"""
        SetSigma(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD2

        """
        return _itkGridImageSourcePython.itkGridImageSourceISS2_SetSigma(self, _arg)

    def GetSigma(self):
        r"""GetSigma(self) -> itkFixedArrayD2"""
        return _itkGridImageSourcePython.itkGridImageSourceISS2_GetSigma(self)

    def SetGridSpacing(self, _arg):
        r"""
        SetGridSpacing(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD2

        """
        return _itkGridImageSourcePython.itkGridImageSourceISS2_SetGridSpacing(self, _arg)

    def GetGridSpacing(self):
        r"""GetGridSpacing(self) -> itkFixedArrayD2"""
        return _itkGridImageSourcePython.itkGridImageSourceISS2_GetGridSpacing(self)

    def SetGridOffset(self, _arg):
        r"""
        SetGridOffset(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD2

        """
        return _itkGridImageSourcePython.itkGridImageSourceISS2_SetGridOffset(self, _arg)

    def GetGridOffset(self):
        r"""GetGridOffset(self) -> itkFixedArrayD2"""
        return _itkGridImageSourcePython.itkGridImageSourceISS2_GetGridOffset(self)

    def SetWhichDimensions(self, _arg):
        r"""
        SetWhichDimensions(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayB2

        """
        return _itkGridImageSourcePython.itkGridImageSourceISS2_SetWhichDimensions(self, _arg)

    def GetWhichDimensions(self):
        r"""GetWhichDimensions(self) -> itkFixedArrayB2"""
        return _itkGridImageSourcePython.itkGridImageSourceISS2_GetWhichDimensions(self)

    def SetScale(self, _arg):
        r"""
        SetScale(self, _arg)

        Parameters
        ----------
        _arg: double

        """
        return _itkGridImageSourcePython.itkGridImageSourceISS2_SetScale(self, _arg)

    def GetScale(self):
        r"""GetScale(self) -> double const &"""
        return _itkGridImageSourcePython.itkGridImageSourceISS2_GetScale(self)
    __swig_destroy__ = _itkGridImageSourcePython.delete_itkGridImageSourceISS2

    @staticmethod
    def cast(obj):
        r"""
        cast(obj) -> itkGridImageSourceISS2

        Parameters
        ----------
        obj: itkLightObject *

        """
        return _itkGridImageSourcePython.itkGridImageSourceISS2_cast(obj)

    def New(*args, **kargs):
        """New() -> itkGridImageSourceISS2

        Create a new object of the class itkGridImageSourceISS2 and set the input and the parameters if some
        named or non-named arguments are passed to that method.

        New() tries to assign all the non named parameters to the input of the new objects - the
        first non named parameter in the first input, etc.

        The named parameters are used by calling the method with the same name prefixed by 'Set'.

        Ex:

          itkGridImageSourceISS2.New(reader, threshold=10)

        is (most of the time) equivalent to:

          obj = itkGridImageSourceISS2.New()
          obj.SetInput(0, reader.GetOutput())
          obj.SetThreshold(10)
        """
        obj = itkGridImageSourceISS2.__New_orig__()
        from itk.support import template_class
        template_class.New(obj, *args, **kargs)
        return obj
    New = staticmethod(New)


# Register itkGridImageSourceISS2 in _itkGridImageSourcePython:
_itkGridImageSourcePython.itkGridImageSourceISS2_swigregister(itkGridImageSourceISS2)

def itkGridImageSourceISS3_New():
    return itkGridImageSourceISS3.New()

class itkGridImageSourceISS3(itk.itkGenerateImageSourcePython.itkGenerateImageSourceISS3):
    r"""Proxy of C++ itkGridImageSourceISS3 class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined")
    __repr__ = _swig_repr

    @staticmethod
    def __New_orig__():
        r"""__New_orig__() -> itkGridImageSourceISS3_Pointer"""
        return _itkGridImageSourcePython.itkGridImageSourceISS3___New_orig__()

    def Clone(self):
        r"""Clone(self) -> itkGridImageSourceISS3_Pointer"""
        return _itkGridImageSourcePython.itkGridImageSourceISS3_Clone(self)

    def SetKernelFunction(self, _arg):
        r"""
        SetKernelFunction(self, _arg)

        Parameters
        ----------
        _arg: itk::KernelFunctionBase< > *

        """
        return _itkGridImageSourcePython.itkGridImageSourceISS3_SetKernelFunction(self, _arg)

    def GetKernelFunction(self):
        r"""GetKernelFunction(self) -> itk::SmartPointer< itk::KernelFunctionBase< > > const &"""
        return _itkGridImageSourcePython.itkGridImageSourceISS3_GetKernelFunction(self)

    def SetSigma(self, _arg):
        r"""
        SetSigma(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD3

        """
        return _itkGridImageSourcePython.itkGridImageSourceISS3_SetSigma(self, _arg)

    def GetSigma(self):
        r"""GetSigma(self) -> itkFixedArrayD3"""
        return _itkGridImageSourcePython.itkGridImageSourceISS3_GetSigma(self)

    def SetGridSpacing(self, _arg):
        r"""
        SetGridSpacing(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD3

        """
        return _itkGridImageSourcePython.itkGridImageSourceISS3_SetGridSpacing(self, _arg)

    def GetGridSpacing(self):
        r"""GetGridSpacing(self) -> itkFixedArrayD3"""
        return _itkGridImageSourcePython.itkGridImageSourceISS3_GetGridSpacing(self)

    def SetGridOffset(self, _arg):
        r"""
        SetGridOffset(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD3

        """
        return _itkGridImageSourcePython.itkGridImageSourceISS3_SetGridOffset(self, _arg)

    def GetGridOffset(self):
        r"""GetGridOffset(self) -> itkFixedArrayD3"""
        return _itkGridImageSourcePython.itkGridImageSourceISS3_GetGridOffset(self)

    def SetWhichDimensions(self, _arg):
        r"""
        SetWhichDimensions(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayB3

        """
        return _itkGridImageSourcePython.itkGridImageSourceISS3_SetWhichDimensions(self, _arg)

    def GetWhichDimensions(self):
        r"""GetWhichDimensions(self) -> itkFixedArrayB3"""
        return _itkGridImageSourcePython.itkGridImageSourceISS3_GetWhichDimensions(self)

    def SetScale(self, _arg):
        r"""
        SetScale(self, _arg)

        Parameters
        ----------
        _arg: double

        """
        return _itkGridImageSourcePython.itkGridImageSourceISS3_SetScale(self, _arg)

    def GetScale(self):
        r"""GetScale(self) -> double const &"""
        return _itkGridImageSourcePython.itkGridImageSourceISS3_GetScale(self)
    __swig_destroy__ = _itkGridImageSourcePython.delete_itkGridImageSourceISS3

    @staticmethod
    def cast(obj):
        r"""
        cast(obj) -> itkGridImageSourceISS3

        Parameters
        ----------
        obj: itkLightObject *

        """
        return _itkGridImageSourcePython.itkGridImageSourceISS3_cast(obj)

    def New(*args, **kargs):
        """New() -> itkGridImageSourceISS3

        Create a new object of the class itkGridImageSourceISS3 and set the input and the parameters if some
        named or non-named arguments are passed to that method.

        New() tries to assign all the non named parameters to the input of the new objects - the
        first non named parameter in the first input, etc.

        The named parameters are used by calling the method with the same name prefixed by 'Set'.

        Ex:

          itkGridImageSourceISS3.New(reader, threshold=10)

        is (most of the time) equivalent to:

          obj = itkGridImageSourceISS3.New()
          obj.SetInput(0, reader.GetOutput())
          obj.SetThreshold(10)
        """
        obj = itkGridImageSourceISS3.__New_orig__()
        from itk.support import template_class
        template_class.New(obj, *args, **kargs)
        return obj
    New = staticmethod(New)


# Register itkGridImageSourceISS3 in _itkGridImageSourcePython:
_itkGridImageSourcePython.itkGridImageSourceISS3_swigregister(itkGridImageSourceISS3)

def itkGridImageSourceIUC2_New():
    return itkGridImageSourceIUC2.New()

class itkGridImageSourceIUC2(itk.itkGenerateImageSourcePython.itkGenerateImageSourceIUC2):
    r"""Proxy of C++ itkGridImageSourceIUC2 class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined")
    __repr__ = _swig_repr

    @staticmethod
    def __New_orig__():
        r"""__New_orig__() -> itkGridImageSourceIUC2_Pointer"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC2___New_orig__()

    def Clone(self):
        r"""Clone(self) -> itkGridImageSourceIUC2_Pointer"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC2_Clone(self)

    def SetKernelFunction(self, _arg):
        r"""
        SetKernelFunction(self, _arg)

        Parameters
        ----------
        _arg: itk::KernelFunctionBase< > *

        """
        return _itkGridImageSourcePython.itkGridImageSourceIUC2_SetKernelFunction(self, _arg)

    def GetKernelFunction(self):
        r"""GetKernelFunction(self) -> itk::SmartPointer< itk::KernelFunctionBase< > > const &"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC2_GetKernelFunction(self)

    def SetSigma(self, _arg):
        r"""
        SetSigma(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD2

        """
        return _itkGridImageSourcePython.itkGridImageSourceIUC2_SetSigma(self, _arg)

    def GetSigma(self):
        r"""GetSigma(self) -> itkFixedArrayD2"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC2_GetSigma(self)

    def SetGridSpacing(self, _arg):
        r"""
        SetGridSpacing(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD2

        """
        return _itkGridImageSourcePython.itkGridImageSourceIUC2_SetGridSpacing(self, _arg)

    def GetGridSpacing(self):
        r"""GetGridSpacing(self) -> itkFixedArrayD2"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC2_GetGridSpacing(self)

    def SetGridOffset(self, _arg):
        r"""
        SetGridOffset(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD2

        """
        return _itkGridImageSourcePython.itkGridImageSourceIUC2_SetGridOffset(self, _arg)

    def GetGridOffset(self):
        r"""GetGridOffset(self) -> itkFixedArrayD2"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC2_GetGridOffset(self)

    def SetWhichDimensions(self, _arg):
        r"""
        SetWhichDimensions(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayB2

        """
        return _itkGridImageSourcePython.itkGridImageSourceIUC2_SetWhichDimensions(self, _arg)

    def GetWhichDimensions(self):
        r"""GetWhichDimensions(self) -> itkFixedArrayB2"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC2_GetWhichDimensions(self)

    def SetScale(self, _arg):
        r"""
        SetScale(self, _arg)

        Parameters
        ----------
        _arg: double

        """
        return _itkGridImageSourcePython.itkGridImageSourceIUC2_SetScale(self, _arg)

    def GetScale(self):
        r"""GetScale(self) -> double const &"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC2_GetScale(self)
    __swig_destroy__ = _itkGridImageSourcePython.delete_itkGridImageSourceIUC2

    @staticmethod
    def cast(obj):
        r"""
        cast(obj) -> itkGridImageSourceIUC2

        Parameters
        ----------
        obj: itkLightObject *

        """
        return _itkGridImageSourcePython.itkGridImageSourceIUC2_cast(obj)

    def New(*args, **kargs):
        """New() -> itkGridImageSourceIUC2

        Create a new object of the class itkGridImageSourceIUC2 and set the input and the parameters if some
        named or non-named arguments are passed to that method.

        New() tries to assign all the non named parameters to the input of the new objects - the
        first non named parameter in the first input, etc.

        The named parameters are used by calling the method with the same name prefixed by 'Set'.

        Ex:

          itkGridImageSourceIUC2.New(reader, threshold=10)

        is (most of the time) equivalent to:

          obj = itkGridImageSourceIUC2.New()
          obj.SetInput(0, reader.GetOutput())
          obj.SetThreshold(10)
        """
        obj = itkGridImageSourceIUC2.__New_orig__()
        from itk.support import template_class
        template_class.New(obj, *args, **kargs)
        return obj
    New = staticmethod(New)


# Register itkGridImageSourceIUC2 in _itkGridImageSourcePython:
_itkGridImageSourcePython.itkGridImageSourceIUC2_swigregister(itkGridImageSourceIUC2)

def itkGridImageSourceIUC3_New():
    return itkGridImageSourceIUC3.New()

class itkGridImageSourceIUC3(itk.itkGenerateImageSourcePython.itkGenerateImageSourceIUC3):
    r"""Proxy of C++ itkGridImageSourceIUC3 class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined")
    __repr__ = _swig_repr

    @staticmethod
    def __New_orig__():
        r"""__New_orig__() -> itkGridImageSourceIUC3_Pointer"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC3___New_orig__()

    def Clone(self):
        r"""Clone(self) -> itkGridImageSourceIUC3_Pointer"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC3_Clone(self)

    def SetKernelFunction(self, _arg):
        r"""
        SetKernelFunction(self, _arg)

        Parameters
        ----------
        _arg: itk::KernelFunctionBase< > *

        """
        return _itkGridImageSourcePython.itkGridImageSourceIUC3_SetKernelFunction(self, _arg)

    def GetKernelFunction(self):
        r"""GetKernelFunction(self) -> itk::SmartPointer< itk::KernelFunctionBase< > > const &"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC3_GetKernelFunction(self)

    def SetSigma(self, _arg):
        r"""
        SetSigma(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD3

        """
        return _itkGridImageSourcePython.itkGridImageSourceIUC3_SetSigma(self, _arg)

    def GetSigma(self):
        r"""GetSigma(self) -> itkFixedArrayD3"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC3_GetSigma(self)

    def SetGridSpacing(self, _arg):
        r"""
        SetGridSpacing(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD3

        """
        return _itkGridImageSourcePython.itkGridImageSourceIUC3_SetGridSpacing(self, _arg)

    def GetGridSpacing(self):
        r"""GetGridSpacing(self) -> itkFixedArrayD3"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC3_GetGridSpacing(self)

    def SetGridOffset(self, _arg):
        r"""
        SetGridOffset(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayD3

        """
        return _itkGridImageSourcePython.itkGridImageSourceIUC3_SetGridOffset(self, _arg)

    def GetGridOffset(self):
        r"""GetGridOffset(self) -> itkFixedArrayD3"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC3_GetGridOffset(self)

    def SetWhichDimensions(self, _arg):
        r"""
        SetWhichDimensions(self, _arg)

        Parameters
        ----------
        _arg: itkFixedArrayB3

        """
        return _itkGridImageSourcePython.itkGridImageSourceIUC3_SetWhichDimensions(self, _arg)

    def GetWhichDimensions(self):
        r"""GetWhichDimensions(self) -> itkFixedArrayB3"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC3_GetWhichDimensions(self)

    def SetScale(self, _arg):
        r"""
        SetScale(self, _arg)

        Parameters
        ----------
        _arg: double

        """
        return _itkGridImageSourcePython.itkGridImageSourceIUC3_SetScale(self, _arg)

    def GetScale(self):
        r"""GetScale(self) -> double const &"""
        return _itkGridImageSourcePython.itkGridImageSourceIUC3_GetScale(self)
    __swig_destroy__ = _itkGridImageSourcePython.delete_itkGridImageSourceIUC3

    @staticmethod
    def cast(obj):
        r"""
        cast(obj) -> itkGridImageSourceIUC3

        Parameters
        ----------
        obj: itkLightObject *

        """
        return _itkGridImageSourcePython.itkGridImageSourceIUC3_cast(obj)

    def New(*args, **kargs):
        """New() -> itkGridImageSourceIUC3

        Create a new object of the class itkGridImageSourceIUC3 and set the input and the parameters if some
        named or non-named arguments are passed to that method.

        New() tries to assign all the non named parameters to the input of the new objects - the
        first non named parameter in the first input, etc.

        The named parameters are used by calling the method with the same name prefixed by 'Set'.

        Ex:

          itkGridImageSourceIUC3.New(reader, threshold=10)

        is (most of the time) equivalent to:

          obj = itkGridImageSourceIUC3.New()
          obj.SetInput(0, reader.GetOutput())
          obj.SetThreshold(10)
        """
        obj = itkGridImageSourceIUC3.__New_orig__()
        from itk.support import template_class
        template_class.New(obj, *args, **kargs)
        return obj
    New = staticmethod(New)


# Register itkGridImageSourceIUC3 in _itkGridImageSourcePython:
_itkGridImageSourcePython.itkGridImageSourceIUC3_swigregister(itkGridImageSourceIUC3)

from itk.support import helpers
import itk.support.types as itkt
from typing import Sequence, Tuple, Union

@helpers.accept_array_like_xarray_torch
def grid_image_source(*args,  kernel_function=..., sigma: Sequence[float]=..., grid_spacing: Sequence[float]=..., grid_offset: Sequence[float]=..., which_dimensions: Sequence[bool]=..., scale: float=..., use_reference_image: bool=..., size: Sequence[int]=..., spacing: Sequence[float]=..., origin: Sequence[float]=..., direction=..., start_index: Sequence[int]=..., output_parameters_from_image: itkt.ImageBase=..., reference_image: itkt.ImageBase=...,**kwargs)-> itkt.ImageSourceReturn:
    """Functional interface for GridImageSource"""
    import itk

    kwarg_typehints = { 'kernel_function':kernel_function,'sigma':sigma,'grid_spacing':grid_spacing,'grid_offset':grid_offset,'which_dimensions':which_dimensions,'scale':scale,'use_reference_image':use_reference_image,'size':size,'spacing':spacing,'origin':origin,'direction':direction,'start_index':start_index,'output_parameters_from_image':output_parameters_from_image,'reference_image':reference_image }
    specified_kwarg_typehints = { k:v for (k,v) in kwarg_typehints.items() if kwarg_typehints[k] is not ... }
    kwargs.update(specified_kwarg_typehints)


    instance = itk.GridImageSource.New(*args, **kwargs)

    return instance.__internal_call__()

def grid_image_source_init_docstring():
    import itk
    from itk.support import template_class

    filter_class = itk.ITKImageSources.GridImageSource
    grid_image_source.process_object = filter_class
    is_template = isinstance(filter_class, template_class.itkTemplate)
    if is_template:
        filter_object = filter_class.values()[0]
    else:
        filter_object = filter_class

    grid_image_source.__doc__ = filter_object.__doc__



