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

"""
Intrv module, see official documentation at
https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_intrv.html
"""

from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
    raise RuntimeError("Python 2.7 or later required")

# Import the low-level C/C++ module
if __package__ or "." in __name__:
    from . import _Intrv
else:
    import _Intrv

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

_swig_new_instance_method = _Intrv.SWIG_PyInstanceMethod_New
_swig_new_static_method = _Intrv.SWIG_PyStaticMethod_New

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 == "thisown":
            self.this.own(value)
        elif name == "this":
            set(self, name, 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__)


class SwigPyIterator(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 - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _Intrv.delete_SwigPyIterator
    value = _swig_new_instance_method(_Intrv.SwigPyIterator_value)
    incr = _swig_new_instance_method(_Intrv.SwigPyIterator_incr)
    decr = _swig_new_instance_method(_Intrv.SwigPyIterator_decr)
    distance = _swig_new_instance_method(_Intrv.SwigPyIterator_distance)
    equal = _swig_new_instance_method(_Intrv.SwigPyIterator_equal)
    copy = _swig_new_instance_method(_Intrv.SwigPyIterator_copy)
    next = _swig_new_instance_method(_Intrv.SwigPyIterator_next)
    __next__ = _swig_new_instance_method(_Intrv.SwigPyIterator___next__)
    previous = _swig_new_instance_method(_Intrv.SwigPyIterator_previous)
    advance = _swig_new_instance_method(_Intrv.SwigPyIterator_advance)
    __eq__ = _swig_new_instance_method(_Intrv.SwigPyIterator___eq__)
    __ne__ = _swig_new_instance_method(_Intrv.SwigPyIterator___ne__)
    __iadd__ = _swig_new_instance_method(_Intrv.SwigPyIterator___iadd__)
    __isub__ = _swig_new_instance_method(_Intrv.SwigPyIterator___isub__)
    __add__ = _swig_new_instance_method(_Intrv.SwigPyIterator___add__)
    __sub__ = _swig_new_instance_method(_Intrv.SwigPyIterator___sub__)
    def __iter__(self):
        return self

# Register SwigPyIterator in _Intrv:
_Intrv.SwigPyIterator_swigregister(SwigPyIterator)


def _dumps_object(klass):
    """ Overwrite default string output for any wrapped object.
    By default, __repr__ method returns something like:
    <OCC.Core.TopoDS.TopoDS_Shape; proxy of <Swig Object of type 'TopoDS_Shape *' at 0x02BB0758> >
    This is too much verbose.
    We prefer :
    <class 'gp_Pnt'>
    or
    <class 'TopoDS_Shape'>
    """
    klass_name = str(klass.__class__).split(".")[3].split("'")[0]
    repr_string = "<class '" + klass_name + "'"
# for TopoDS_Shape, we also look for the base type
    if klass_name == "TopoDS_Shape":
        if klass.IsNull():
            repr_string += ": Null>"
            return repr_string
        st = klass.ShapeType()
        types = {OCC.Core.TopAbs.TopAbs_VERTEX: "Vertex",
                 OCC.Core.TopAbs.TopAbs_SOLID: "Solid",
                 OCC.Core.TopAbs.TopAbs_EDGE: "Edge",
                 OCC.Core.TopAbs.TopAbs_FACE: "Face",
                 OCC.Core.TopAbs.TopAbs_SHELL: "Shell",
                 OCC.Core.TopAbs.TopAbs_WIRE: "Wire",
                 OCC.Core.TopAbs.TopAbs_COMPOUND: "Compound",
                 OCC.Core.TopAbs.TopAbs_COMPSOLID: "Compsolid"}
        repr_string += "; Type:%s" % types[st]        
    elif hasattr(klass, "IsNull"):
        if klass.IsNull():
            repr_string += "; Null"
    repr_string += ">"
    return repr_string


from six import with_metaclass
import warnings
from OCC.Wrapper.wrapper_utils import Proxy, deprecated

import OCC.Core.Standard
import OCC.Core.NCollection
Intrv_Before = _Intrv.Intrv_Before
Intrv_JustBefore = _Intrv.Intrv_JustBefore
Intrv_OverlappingAtStart = _Intrv.Intrv_OverlappingAtStart
Intrv_JustEnclosingAtEnd = _Intrv.Intrv_JustEnclosingAtEnd
Intrv_Enclosing = _Intrv.Intrv_Enclosing
Intrv_JustOverlappingAtStart = _Intrv.Intrv_JustOverlappingAtStart
Intrv_Similar = _Intrv.Intrv_Similar
Intrv_JustEnclosingAtStart = _Intrv.Intrv_JustEnclosingAtStart
Intrv_Inside = _Intrv.Intrv_Inside
Intrv_JustOverlappingAtEnd = _Intrv.Intrv_JustOverlappingAtEnd
Intrv_OverlappingAtEnd = _Intrv.Intrv_OverlappingAtEnd
Intrv_JustAfter = _Intrv.Intrv_JustAfter
Intrv_After = _Intrv.Intrv_After
class Intrv_SequenceOfInterval(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    begin = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_begin)
    end = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_end)
    cbegin = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_cbegin)
    cend = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_cend)

    def __init__(self, *args):
        _Intrv.Intrv_SequenceOfInterval_swiginit(self, _Intrv.new_Intrv_SequenceOfInterval(*args))
    Size = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_Size)
    Length = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_Length)
    Lower = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_Lower)
    Upper = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_Upper)
    IsEmpty = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_IsEmpty)
    Reverse = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_Reverse)
    Exchange = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_Exchange)
    delNode = _swig_new_static_method(_Intrv.Intrv_SequenceOfInterval_delNode)
    Clear = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_Clear)
    Assign = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_Assign)
    Set = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_Set)
    Remove = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_Remove)
    Append = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_Append)
    Prepend = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_Prepend)
    InsertBefore = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_InsertBefore)
    InsertAfter = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_InsertAfter)
    Split = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_Split)
    First = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_First)
    ChangeFirst = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_ChangeFirst)
    Last = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_Last)
    ChangeLast = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_ChangeLast)
    Value = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_Value)
    ChangeValue = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_ChangeValue)
    __call__ = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval___call__)
    SetValue = _swig_new_instance_method(_Intrv.Intrv_SequenceOfInterval_SetValue)
    __swig_destroy__ = _Intrv.delete_Intrv_SequenceOfInterval

# Register Intrv_SequenceOfInterval in _Intrv:
_Intrv.Intrv_SequenceOfInterval_swigregister(Intrv_SequenceOfInterval)
Intrv_SequenceOfInterval_delNode = _Intrv.Intrv_SequenceOfInterval_delNode

class Intrv_Interval(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    Bounds = _swig_new_instance_method(_Intrv.Intrv_Interval_Bounds)
    CutAtEnd = _swig_new_instance_method(_Intrv.Intrv_Interval_CutAtEnd)
    CutAtStart = _swig_new_instance_method(_Intrv.Intrv_Interval_CutAtStart)
    End = _swig_new_instance_method(_Intrv.Intrv_Interval_End)
    FuseAtEnd = _swig_new_instance_method(_Intrv.Intrv_Interval_FuseAtEnd)
    FuseAtStart = _swig_new_instance_method(_Intrv.Intrv_Interval_FuseAtStart)

    def __init__(self, *args):
        r"""
        :rtype: None:param Start:
        	:type Start: float
        	:param End:
        	:type End: float
        	:rtype: None:param Start:
        	:type Start: float
        	:param TolStart:
        	:type TolStart: Standard_ShortReal
        	:param End:
        	:type End: float
        	:param TolEnd:
        	:type TolEnd: Standard_ShortReal
        	:rtype: None
        """
        _Intrv.Intrv_Interval_swiginit(self, _Intrv.new_Intrv_Interval(*args))
    IsAfter = _swig_new_instance_method(_Intrv.Intrv_Interval_IsAfter)
    IsBefore = _swig_new_instance_method(_Intrv.Intrv_Interval_IsBefore)
    IsEnclosing = _swig_new_instance_method(_Intrv.Intrv_Interval_IsEnclosing)
    IsInside = _swig_new_instance_method(_Intrv.Intrv_Interval_IsInside)
    IsJustAfter = _swig_new_instance_method(_Intrv.Intrv_Interval_IsJustAfter)
    IsJustBefore = _swig_new_instance_method(_Intrv.Intrv_Interval_IsJustBefore)
    IsJustEnclosingAtEnd = _swig_new_instance_method(_Intrv.Intrv_Interval_IsJustEnclosingAtEnd)
    IsJustEnclosingAtStart = _swig_new_instance_method(_Intrv.Intrv_Interval_IsJustEnclosingAtStart)
    IsJustOverlappingAtEnd = _swig_new_instance_method(_Intrv.Intrv_Interval_IsJustOverlappingAtEnd)
    IsJustOverlappingAtStart = _swig_new_instance_method(_Intrv.Intrv_Interval_IsJustOverlappingAtStart)
    IsOverlappingAtEnd = _swig_new_instance_method(_Intrv.Intrv_Interval_IsOverlappingAtEnd)
    IsOverlappingAtStart = _swig_new_instance_method(_Intrv.Intrv_Interval_IsOverlappingAtStart)
    IsProbablyEmpty = _swig_new_instance_method(_Intrv.Intrv_Interval_IsProbablyEmpty)
    IsSimilar = _swig_new_instance_method(_Intrv.Intrv_Interval_IsSimilar)
    Position = _swig_new_instance_method(_Intrv.Intrv_Interval_Position)
    SetEnd = _swig_new_instance_method(_Intrv.Intrv_Interval_SetEnd)
    SetStart = _swig_new_instance_method(_Intrv.Intrv_Interval_SetStart)
    Start = _swig_new_instance_method(_Intrv.Intrv_Interval_Start)
    TolEnd = _swig_new_instance_method(_Intrv.Intrv_Interval_TolEnd)
    TolStart = _swig_new_instance_method(_Intrv.Intrv_Interval_TolStart)

    __repr__ = _dumps_object

    __swig_destroy__ = _Intrv.delete_Intrv_Interval

# Register Intrv_Interval in _Intrv:
_Intrv.Intrv_Interval_swigregister(Intrv_Interval)

class Intrv_Intervals(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    Intersect = _swig_new_instance_method(_Intrv.Intrv_Intervals_Intersect)

    def __init__(self, *args):
        r"""
        * Creates a void sequence of intervals.
        	:rtype: None* Creates a sequence of one interval.
        	:param Int:
        	:type Int: Intrv_Interval
        	:rtype: None* Creates by copying an existing sequence of intervals.
        	:param Int:
        	:type Int: Intrv_Intervals
        	:rtype: None
        """
        _Intrv.Intrv_Intervals_swiginit(self, _Intrv.new_Intrv_Intervals(*args))
    NbIntervals = _swig_new_instance_method(_Intrv.Intrv_Intervals_NbIntervals)
    Subtract = _swig_new_instance_method(_Intrv.Intrv_Intervals_Subtract)
    Unite = _swig_new_instance_method(_Intrv.Intrv_Intervals_Unite)
    Value = _swig_new_instance_method(_Intrv.Intrv_Intervals_Value)
    XUnite = _swig_new_instance_method(_Intrv.Intrv_Intervals_XUnite)

    __repr__ = _dumps_object

    __swig_destroy__ = _Intrv.delete_Intrv_Intervals

# Register Intrv_Intervals in _Intrv:
_Intrv.Intrv_Intervals_swigregister(Intrv_Intervals)



