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

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

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__)


import ooflib.SWIG.common.cmicrostructure
import ooflib.SWIG.common.coord
import ooflib.SWIG.common.pixelgroup
import ooflib.SWIG.common.pixelattribute
import ooflib.SWIG.common.timestamp
import ooflib.SWIG.engine.mastercoord
class CSkeletonNode(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, arg2, arg3):
        _cskeleton.CSkeletonNode_swiginit(self, _cskeleton.new_CSkeletonNode(arg2, arg3))
    __swig_destroy__ = _cskeleton.delete_CSkeletonNode

    def position(self):
        return _cskeleton.CSkeletonNode_position(self)

    def movable_x(self):
        return _cskeleton.CSkeletonNode_movable_x(self)

    def movable_y(self):
        return _cskeleton.CSkeletonNode_movable_y(self)

    def movable(self):
        return _cskeleton.CSkeletonNode_movable(self)

    def pinned(self):
        return _cskeleton.CSkeletonNode_pinned(self)

    def setMobilityX(self, arg2):
        return _cskeleton.CSkeletonNode_setMobilityX(self, arg2)

    def setMobilityY(self, arg2):
        return _cskeleton.CSkeletonNode_setMobilityY(self, arg2)

    def setPinned(self, arg2):
        return _cskeleton.CSkeletonNode_setPinned(self, arg2)

    def copyMobility(self, arg2):
        return _cskeleton.CSkeletonNode_copyMobility(self, arg2)

    def canMergeWith(self, arg2):
        return _cskeleton.CSkeletonNode_canMergeWith(self, arg2)

    def moveTo(self, Point):
        return _cskeleton.CSkeletonNode_moveTo(self, Point)

    def canMoveTo(self, Point):
        return _cskeleton.CSkeletonNode_canMoveTo(self, Point)

    def unconstrainedMoveTo(self, Point):
        return _cskeleton.CSkeletonNode_unconstrainedMoveTo(self, Point)

    def moveBy(self, Point):
        return _cskeleton.CSkeletonNode_moveBy(self, Point)

    def moveBack(self):
        return _cskeleton.CSkeletonNode_moveBack(self)
    nodemoved = property(_cskeleton.CSkeletonNode_nodemoved_get, _cskeleton.CSkeletonNode_nodemoved_set)

# Register CSkeletonNode in _cskeleton:
_cskeleton.CSkeletonNode_swigregister(CSkeletonNode)
class HomogeneityData(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    __swig_destroy__ = _cskeleton.delete_HomogeneityData

    def __init__(self):
        _cskeleton.HomogeneityData_swiginit(self, _cskeleton.new_HomogeneityData())

# Register HomogeneityData in _cskeleton:
_cskeleton.HomogeneityData_swigregister(HomogeneityData)
class CSkeletonElement(object):
    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
    __swig_destroy__ = _cskeleton.delete_CSkeletonElement

    def nnodes(self):
        return _cskeleton.CSkeletonElement_nnodes(self)

    def replaceNode(self, arg2, arg3):
        return _cskeleton.CSkeletonElement_replaceNode(self, arg2, arg3)

    def perimeter(self):
        return _cskeleton.CSkeletonElement_perimeter(self)

    def perimeterLength(self):
        return _cskeleton.CSkeletonElement_perimeterLength(self)

    def edgeLength(self, arg2):
        return _cskeleton.CSkeletonElement_edgeLength(self, arg2)

    def cosCornerAngle(self, arg2):
        return _cskeleton.CSkeletonElement_cosCornerAngle(self, arg2)

    def getRealAngle(self, arg2):
        return _cskeleton.CSkeletonElement_getRealAngle(self, arg2)

    def frommaster(self, Point, arg3):
        return _cskeleton.CSkeletonElement_frommaster(self, Point, arg3)

    def center(self):
        return _cskeleton.CSkeletonElement_center(self)

    def area(self):
        return _cskeleton.CSkeletonElement_area(self)

    def size(self):
        return _cskeleton.CSkeletonElement_size(self)

    def illegal(self):
        return _cskeleton.CSkeletonElement_illegal(self)

    def interior(self, Point):
        return _cskeleton.CSkeletonElement_interior(self, Point)

    def underlying_pixels(self, arg2):
        return _cskeleton.CSkeletonElement_underlying_pixels(self, arg2)

    def homogeneity(self, arg2, arg3):
        return _cskeleton.CSkeletonElement_homogeneity(self, arg2, arg3)

    def dominantPixel(self, arg2):
        return _cskeleton.CSkeletonElement_dominantPixel(self, arg2)

    def copyHomogeneity(self, arg2):
        return _cskeleton.CSkeletonElement_copyHomogeneity(self, arg2)

    def energyHomogeneity(self, arg2):
        return _cskeleton.CSkeletonElement_energyHomogeneity(self, arg2)

    def findHomogeneityAndDominantPixel(self, arg2, arg3):
        return _cskeleton.CSkeletonElement_findHomogeneityAndDominantPixel(self, arg2, arg3)

    def revertHomogeneity(self):
        return _cskeleton.CSkeletonElement_revertHomogeneity(self)

    def getHomogeneityData(self):
        return _cskeleton.CSkeletonElement_getHomogeneityData(self)

    def setHomogeneityData(self, arg2):
        return _cskeleton.CSkeletonElement_setHomogeneityData(self, arg2)

    def setHomogeneous(self, arg2):
        return _cskeleton.CSkeletonElement_setHomogeneous(self, arg2)

# Register CSkeletonElement in _cskeleton:
_cskeleton.CSkeletonElement_swigregister(CSkeletonElement)
class CSkeletonTriangle(CSkeletonElement):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, arg2, arg3, arg4):
        _cskeleton.CSkeletonTriangle_swiginit(self, _cskeleton.new_CSkeletonTriangle(arg2, arg3, arg4))

    def energyShape(self):
        return _cskeleton.CSkeletonTriangle_energyShape(self)
    __swig_destroy__ = _cskeleton.delete_CSkeletonTriangle

# Register CSkeletonTriangle in _cskeleton:
_cskeleton.CSkeletonTriangle_swigregister(CSkeletonTriangle)
class CSkeletonQuad(CSkeletonElement):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, arg2, arg3, arg4, arg5):
        _cskeleton.CSkeletonQuad_swiginit(self, _cskeleton.new_CSkeletonQuad(arg2, arg3, arg4, arg5))
    __swig_destroy__ = _cskeleton.delete_CSkeletonQuad

    def energyShape(self):
        return _cskeleton.CSkeletonQuad_energyShape(self)

# Register CSkeletonQuad in _cskeleton:
_cskeleton.CSkeletonQuad_swigregister(CSkeletonQuad)

def get_globalNodeCount():
    return _cskeleton.get_globalNodeCount()

def get_globalElementCount():
    return _cskeleton.get_globalElementCount()

