# This file was automatically generated by SWIG (https://www.swig.org).
# Version 4.3.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 _ITKSpatialObjectsPython



from sys import version_info as _swig_python_version_info
# Import the low-level C/C++ module
if __package__ or "." in __name__:
    from . import _itkCastSpatialObjectFilterPython
else:
    import _itkCastSpatialObjectFilterPython

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.ITKCommonBasePython
import itk.itkMatrixPython
import itk.vnl_matrixPython
import itk.stdcomplexPython
import itk.pyBasePython
import itk.vnl_vectorPython
import itk.vnl_matrix_fixedPython
import itk.itkCovariantVectorPython
import itk.itkFixedArrayPython
import itk.vnl_vector_refPython
import itk.itkVectorPython
import itk.itkPointPython
import itk.itkPolygonSpatialObjectPython
import itk.itkPointBasedSpatialObjectPython
import itk.itkSpatialObjectBasePython
import itk.itkBoundingBoxPython
import itk.itkMapContainerPython
import itk.itkVectorContainerPython
import itk.itkOffsetPython
import itk.itkSizePython
import itk.itkArrayPython
import itk.itkContinuousIndexPython
import itk.itkIndexPython
import itk.itkAffineTransformPython
import itk.itkTransformBasePython
import itk.itkDiffusionTensor3DPython
import itk.itkSymmetricSecondRankTensorPython
import itk.itkOptimizerParametersPython
import itk.itkArray2DPython
import itk.itkVariableLengthVectorPython
import itk.itkMatrixOffsetTransformBasePython
import itk.itkImageRegionPython
import itk.itkSpatialObjectPropertyPython
import itk.itkRGBAPixelPython
import itk.itkSpatialObjectPointPython
import itk.itkArrowSpatialObjectPython
import itk.itkEllipseSpatialObjectPython
import itk.itkContourSpatialObjectPython
import itk.itkContourSpatialObjectPointPython
import itk.itkGaussianSpatialObjectPython
import itk.itkBoxSpatialObjectPython
import itk.itkSurfaceSpatialObjectPython
import itk.itkSurfaceSpatialObjectPointPython
import itk.itkLandmarkSpatialObjectPython
import itk.itkTubeSpatialObjectPython
import itk.itkTubeSpatialObjectPointPython
import itk.itkLineSpatialObjectPython
import itk.itkLineSpatialObjectPointPython
import itk.itkImageMaskSpatialObjectPython
import itk.itkImageSpatialObjectPython
import itk.itkInterpolateImageFunctionPython
import itk.itkImageFunctionBasePython
import itk.itkPhasedArray3DSpecialCoordinatesImagePython
import itk.itkImagePython
import itk.itkRGBPixelPython
import itk.itkFunctionBasePython
import itk.itkGroupSpatialObjectPython
import itk.itkBlobSpatialObjectPython

def itkCastSpatialObjectFilter2_New():
    return itkCastSpatialObjectFilter2.New()

class itkCastSpatialObjectFilter2(itk.ITKCommonBasePython.itkObject):
    r"""Proxy of C++ itkCastSpatialObjectFilter2 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__() -> itkCastSpatialObjectFilter2_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2___New_orig__()

    def Clone(self):
        r"""Clone(self) -> itkCastSpatialObjectFilter2_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_Clone(self)

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

        Parameters
        ----------
        _arg: itkSpatialObject2 *

        """
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_SetInput(self, _arg)

    def GetInput(self):
        r"""GetInput(self) -> itkSpatialObject2"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetInput(self)

    def GetArrows(self):
        r"""GetArrows(self) -> std::list< itkArrowSpatialObject2_Pointer,std::allocator< itkArrowSpatialObject2_Pointer > > *"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetArrows(self)

    def GetBlobs(self):
        r"""GetBlobs(self) -> std::list< itkBlobSpatialObject2_Pointer,std::allocator< itkBlobSpatialObject2_Pointer > > *"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetBlobs(self)

    def GetBoxes(self):
        r"""GetBoxes(self) -> listitkBoxSpatialObject2_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetBoxes(self)

    def GetContours(self):
        r"""GetContours(self) -> listitkContourSpatialObject2_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetContours(self)

    def GetEllipses(self):
        r"""GetEllipses(self) -> listitkEllipseSpatialObject2_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetEllipses(self)

    def GetGaussians(self):
        r"""GetGaussians(self) -> listitkGaussianSpatialObject2_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetGaussians(self)

    def GetGroups(self):
        r"""GetGroups(self) -> listitkGroupSpatialObject2_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetGroups(self)

    def GetImageMasks(self):
        r"""GetImageMasks(self) -> listitkImageMaskSpatialObject2_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetImageMasks(self)

    def GetImages(self):
        r"""GetImages(self) -> listitkImageSpatialObject2UC_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetImages(self)

    def GetLandmarks(self):
        r"""GetLandmarks(self) -> listitkLandmarkSpatialObject2_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetLandmarks(self)

    def GetLines(self):
        r"""GetLines(self) -> listitkLineSpatialObject2_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetLines(self)

    def GetPointBased(self):
        r"""GetPointBased(self) -> listitkPointBasedSpatialObject2_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetPointBased(self)

    def GetPolygons(self):
        r"""GetPolygons(self) -> listitkPolygonSpatialObject2_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetPolygons(self)

    def GetSpatialObjects(self):
        r"""GetSpatialObjects(self) -> listitkSpatialObject2_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetSpatialObjects(self)

    def GetSurfaces(self):
        r"""GetSurfaces(self) -> listitkSurfaceSpatialObject2_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetSurfaces(self)

    def GetTubes(self):
        r"""GetTubes(self) -> listitkTubeSpatialObject2_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_GetTubes(self)
    __swig_destroy__ = _itkCastSpatialObjectFilterPython.delete_itkCastSpatialObjectFilter2

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

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

        """
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_cast(obj)

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

        Create a new object of the class itkCastSpatialObjectFilter2 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:

          itkCastSpatialObjectFilter2.New(reader, threshold=10)

        is (most of the time) equivalent to:

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


# Register itkCastSpatialObjectFilter2 in _itkCastSpatialObjectFilterPython:
_itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter2_swigregister(itkCastSpatialObjectFilter2)

def itkCastSpatialObjectFilter3_New():
    return itkCastSpatialObjectFilter3.New()

class itkCastSpatialObjectFilter3(itk.ITKCommonBasePython.itkObject):
    r"""Proxy of C++ itkCastSpatialObjectFilter3 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__() -> itkCastSpatialObjectFilter3_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3___New_orig__()

    def Clone(self):
        r"""Clone(self) -> itkCastSpatialObjectFilter3_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_Clone(self)

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

        Parameters
        ----------
        _arg: itkSpatialObject3 *

        """
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_SetInput(self, _arg)

    def GetInput(self):
        r"""GetInput(self) -> itkSpatialObject3"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetInput(self)

    def GetArrows(self):
        r"""GetArrows(self) -> std::list< itkArrowSpatialObject3_Pointer,std::allocator< itkArrowSpatialObject3_Pointer > > *"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetArrows(self)

    def GetBlobs(self):
        r"""GetBlobs(self) -> std::list< itkBlobSpatialObject3_Pointer,std::allocator< itkBlobSpatialObject3_Pointer > > *"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetBlobs(self)

    def GetBoxes(self):
        r"""GetBoxes(self) -> listitkBoxSpatialObject3_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetBoxes(self)

    def GetContours(self):
        r"""GetContours(self) -> listitkContourSpatialObject3_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetContours(self)

    def GetEllipses(self):
        r"""GetEllipses(self) -> listitkEllipseSpatialObject3_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetEllipses(self)

    def GetGaussians(self):
        r"""GetGaussians(self) -> listitkGaussianSpatialObject3_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetGaussians(self)

    def GetGroups(self):
        r"""GetGroups(self) -> listitkGroupSpatialObject3_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetGroups(self)

    def GetImageMasks(self):
        r"""GetImageMasks(self) -> listitkImageMaskSpatialObject3_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetImageMasks(self)

    def GetImages(self):
        r"""GetImages(self) -> listitkImageSpatialObject3UC_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetImages(self)

    def GetLandmarks(self):
        r"""GetLandmarks(self) -> listitkLandmarkSpatialObject3_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetLandmarks(self)

    def GetLines(self):
        r"""GetLines(self) -> listitkLineSpatialObject3_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetLines(self)

    def GetPointBased(self):
        r"""GetPointBased(self) -> listitkPointBasedSpatialObject3_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetPointBased(self)

    def GetPolygons(self):
        r"""GetPolygons(self) -> listitkPolygonSpatialObject3_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetPolygons(self)

    def GetSpatialObjects(self):
        r"""GetSpatialObjects(self) -> listitkSpatialObject3_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetSpatialObjects(self)

    def GetSurfaces(self):
        r"""GetSurfaces(self) -> listitkSurfaceSpatialObject3_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetSurfaces(self)

    def GetTubes(self):
        r"""GetTubes(self) -> listitkTubeSpatialObject3_Pointer"""
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_GetTubes(self)
    __swig_destroy__ = _itkCastSpatialObjectFilterPython.delete_itkCastSpatialObjectFilter3

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

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

        """
        return _itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_cast(obj)

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

        Create a new object of the class itkCastSpatialObjectFilter3 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:

          itkCastSpatialObjectFilter3.New(reader, threshold=10)

        is (most of the time) equivalent to:

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


# Register itkCastSpatialObjectFilter3 in _itkCastSpatialObjectFilterPython:
_itkCastSpatialObjectFilterPython.itkCastSpatialObjectFilter3_swigregister(itkCastSpatialObjectFilter3)

