# 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.

"""
LProp3d module, see official documentation at
https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_lprop3d.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 _LProp3d
else:
    import _LProp3d

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

_swig_new_instance_method = _LProp3d.SWIG_PyInstanceMethod_New
_swig_new_static_method = _LProp3d.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__ = _LProp3d.delete_SwigPyIterator
    value = _swig_new_instance_method(_LProp3d.SwigPyIterator_value)
    incr = _swig_new_instance_method(_LProp3d.SwigPyIterator_incr)
    decr = _swig_new_instance_method(_LProp3d.SwigPyIterator_decr)
    distance = _swig_new_instance_method(_LProp3d.SwigPyIterator_distance)
    equal = _swig_new_instance_method(_LProp3d.SwigPyIterator_equal)
    copy = _swig_new_instance_method(_LProp3d.SwigPyIterator_copy)
    next = _swig_new_instance_method(_LProp3d.SwigPyIterator_next)
    __next__ = _swig_new_instance_method(_LProp3d.SwigPyIterator___next__)
    previous = _swig_new_instance_method(_LProp3d.SwigPyIterator_previous)
    advance = _swig_new_instance_method(_LProp3d.SwigPyIterator_advance)
    __eq__ = _swig_new_instance_method(_LProp3d.SwigPyIterator___eq__)
    __ne__ = _swig_new_instance_method(_LProp3d.SwigPyIterator___ne__)
    __iadd__ = _swig_new_instance_method(_LProp3d.SwigPyIterator___iadd__)
    __isub__ = _swig_new_instance_method(_LProp3d.SwigPyIterator___isub__)
    __add__ = _swig_new_instance_method(_LProp3d.SwigPyIterator___add__)
    __sub__ = _swig_new_instance_method(_LProp3d.SwigPyIterator___sub__)
    def __iter__(self):
        return self

# Register SwigPyIterator in _LProp3d:
_LProp3d.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
import OCC.Core.gp
import OCC.Core.Adaptor3d
import OCC.Core.Geom
import OCC.Core.GeomAbs
import OCC.Core.TColgp
import OCC.Core.TColStd
import OCC.Core.TCollection
import OCC.Core.TopAbs
import OCC.Core.Adaptor2d
import OCC.Core.Geom2d
import OCC.Core.math
import OCC.Core.Message
class LProp3d_CLProps(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    CentreOfCurvature = _swig_new_instance_method(_LProp3d.LProp3d_CLProps_CentreOfCurvature)
    Curvature = _swig_new_instance_method(_LProp3d.LProp3d_CLProps_Curvature)
    D1 = _swig_new_instance_method(_LProp3d.LProp3d_CLProps_D1)
    D2 = _swig_new_instance_method(_LProp3d.LProp3d_CLProps_D2)
    D3 = _swig_new_instance_method(_LProp3d.LProp3d_CLProps_D3)
    IsTangentDefined = _swig_new_instance_method(_LProp3d.LProp3d_CLProps_IsTangentDefined)

    def __init__(self, *args):
        r"""
        * Initializes the local properties of the curve <C> The current point and the derivatives are computed at the same time, which allows an optimization of the computation time. <N> indicates the maximum number of derivations to be done (0, 1, 2 or 3). For example, to compute only the tangent, N should be equal to 1. <Resolution> is the linear tolerance (it is used to test if a vector is null).
        	:param C:
        	:type C: Adaptor3d_HCurve
        	:param N:
        	:type N: int
        	:param Resolution:
        	:type Resolution: float
        	:rtype: None* Same as previous constructor but here the parameter is set to the value <U>. All the computations done will be related to <C> and <U>.
        	:param C:
        	:type C: Adaptor3d_HCurve
        	:param U:
        	:type U: float
        	:param N:
        	:type N: int
        	:param Resolution:
        	:type Resolution: float
        	:rtype: None* Same as previous constructor but here the parameter is set to the value <U> and the curve is set with SetCurve. the curve can have a empty constructor All the computations done will be related to <C> and <U> when the functions 'set' will be done.
        	:param N:
        	:type N: int
        	:param Resolution:
        	:type Resolution: float
        	:rtype: None
        """
        _LProp3d.LProp3d_CLProps_swiginit(self, _LProp3d.new_LProp3d_CLProps(*args))
    Normal = _swig_new_instance_method(_LProp3d.LProp3d_CLProps_Normal)
    SetCurve = _swig_new_instance_method(_LProp3d.LProp3d_CLProps_SetCurve)
    SetParameter = _swig_new_instance_method(_LProp3d.LProp3d_CLProps_SetParameter)
    Tangent = _swig_new_instance_method(_LProp3d.LProp3d_CLProps_Tangent)
    Value = _swig_new_instance_method(_LProp3d.LProp3d_CLProps_Value)

    __repr__ = _dumps_object

    __swig_destroy__ = _LProp3d.delete_LProp3d_CLProps

# Register LProp3d_CLProps in _LProp3d:
_LProp3d.LProp3d_CLProps_swigregister(LProp3d_CLProps)

class LProp3d_CurveTool(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    Continuity = _swig_new_static_method(_LProp3d.LProp3d_CurveTool_Continuity)
    D1 = _swig_new_static_method(_LProp3d.LProp3d_CurveTool_D1)
    D2 = _swig_new_static_method(_LProp3d.LProp3d_CurveTool_D2)
    D3 = _swig_new_static_method(_LProp3d.LProp3d_CurveTool_D3)
    FirstParameter = _swig_new_static_method(_LProp3d.LProp3d_CurveTool_FirstParameter)
    LastParameter = _swig_new_static_method(_LProp3d.LProp3d_CurveTool_LastParameter)
    Value = _swig_new_static_method(_LProp3d.LProp3d_CurveTool_Value)

    __repr__ = _dumps_object


    def __init__(self):
        _LProp3d.LProp3d_CurveTool_swiginit(self, _LProp3d.new_LProp3d_CurveTool())
    __swig_destroy__ = _LProp3d.delete_LProp3d_CurveTool

# Register LProp3d_CurveTool in _LProp3d:
_LProp3d.LProp3d_CurveTool_swigregister(LProp3d_CurveTool)
LProp3d_CurveTool_Continuity = _LProp3d.LProp3d_CurveTool_Continuity
LProp3d_CurveTool_D1 = _LProp3d.LProp3d_CurveTool_D1
LProp3d_CurveTool_D2 = _LProp3d.LProp3d_CurveTool_D2
LProp3d_CurveTool_D3 = _LProp3d.LProp3d_CurveTool_D3
LProp3d_CurveTool_FirstParameter = _LProp3d.LProp3d_CurveTool_FirstParameter
LProp3d_CurveTool_LastParameter = _LProp3d.LProp3d_CurveTool_LastParameter
LProp3d_CurveTool_Value = _LProp3d.LProp3d_CurveTool_Value

class LProp3d_SLProps(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    CurvatureDirections = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_CurvatureDirections)
    D1U = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_D1U)
    D1V = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_D1V)
    D2U = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_D2U)
    D2V = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_D2V)
    DUV = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_DUV)
    GaussianCurvature = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_GaussianCurvature)
    IsCurvatureDefined = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_IsCurvatureDefined)
    IsNormalDefined = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_IsNormalDefined)
    IsTangentUDefined = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_IsTangentUDefined)
    IsTangentVDefined = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_IsTangentVDefined)
    IsUmbilic = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_IsUmbilic)

    def __init__(self, *args):
        r"""
        * Initializes the local properties of the surface <S> for the parameter values (<U>, <V>). The current point and the derivatives are computed at the same time, which allows an optimization of the computation time. <N> indicates the maximum number of derivations to be done (0, 1, or 2). For example, to compute only the tangent, N should be equal to 1. <Resolution> is the linear tolerance (it is used to test if a vector is null).
        	:param S:
        	:type S: Adaptor3d_HSurface
        	:param U:
        	:type U: float
        	:param V:
        	:type V: float
        	:param N:
        	:type N: int
        	:param Resolution:
        	:type Resolution: float
        	:rtype: None* idem as previous constructor but without setting the value of parameters <U> and <V>.
        	:param S:
        	:type S: Adaptor3d_HSurface
        	:param N:
        	:type N: int
        	:param Resolution:
        	:type Resolution: float
        	:rtype: None* idem as previous constructor but without setting the value of parameters <U> and <V> and the surface. the surface can have an empty constructor.
        	:param N:
        	:type N: int
        	:param Resolution:
        	:type Resolution: float
        	:rtype: None
        """
        _LProp3d.LProp3d_SLProps_swiginit(self, _LProp3d.new_LProp3d_SLProps(*args))
    MaxCurvature = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_MaxCurvature)
    MeanCurvature = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_MeanCurvature)
    MinCurvature = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_MinCurvature)
    Normal = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_Normal)
    SetParameters = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_SetParameters)
    SetSurface = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_SetSurface)
    TangentU = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_TangentU)
    TangentV = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_TangentV)
    Value = _swig_new_instance_method(_LProp3d.LProp3d_SLProps_Value)

    __repr__ = _dumps_object

    __swig_destroy__ = _LProp3d.delete_LProp3d_SLProps

# Register LProp3d_SLProps in _LProp3d:
_LProp3d.LProp3d_SLProps_swigregister(LProp3d_SLProps)

class LProp3d_SurfaceTool(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_static_method(_LProp3d.LProp3d_SurfaceTool_Bounds)
    Continuity = _swig_new_static_method(_LProp3d.LProp3d_SurfaceTool_Continuity)
    D1 = _swig_new_static_method(_LProp3d.LProp3d_SurfaceTool_D1)
    D2 = _swig_new_static_method(_LProp3d.LProp3d_SurfaceTool_D2)
    DN = _swig_new_static_method(_LProp3d.LProp3d_SurfaceTool_DN)
    Value = _swig_new_static_method(_LProp3d.LProp3d_SurfaceTool_Value)

    __repr__ = _dumps_object


    def __init__(self):
        _LProp3d.LProp3d_SurfaceTool_swiginit(self, _LProp3d.new_LProp3d_SurfaceTool())
    __swig_destroy__ = _LProp3d.delete_LProp3d_SurfaceTool

# Register LProp3d_SurfaceTool in _LProp3d:
_LProp3d.LProp3d_SurfaceTool_swigregister(LProp3d_SurfaceTool)
LProp3d_SurfaceTool_Bounds = _LProp3d.LProp3d_SurfaceTool_Bounds
LProp3d_SurfaceTool_Continuity = _LProp3d.LProp3d_SurfaceTool_Continuity
LProp3d_SurfaceTool_D1 = _LProp3d.LProp3d_SurfaceTool_D1
LProp3d_SurfaceTool_D2 = _LProp3d.LProp3d_SurfaceTool_D2
LProp3d_SurfaceTool_DN = _LProp3d.LProp3d_SurfaceTool_DN
LProp3d_SurfaceTool_Value = _LProp3d.LProp3d_SurfaceTool_Value



