# encoding: utf-8
# module vtkmodules.vtkCommonDataModel
# from C:\Users\xukai\Downloads\发票2\venv\Lib\site-packages\vtkmodules\vtkCommonDataModel.cp311-win_amd64.pyd
# by generator 1.147
# no doc

# imports
import vtkmodules.vtkCommonCore as __vtkmodules_vtkCommonCore
import vtkmodules.vtkCommonMath as __vtkmodules_vtkCommonMath
import vtkmodules.vtkCommonTransforms as __vtkmodules_vtkCommonTransforms


from .vtkGenericSubdivisionErrorMetric import vtkGenericSubdivisionErrorMetric

class vtkSmoothErrorMetric(vtkGenericSubdivisionErrorMetric):
    """
    vtkSmoothErrorMetric - Objects that compute geometry-based error
    during cell tessellation according to some max angle.
    
    Superclass: vtkGenericSubdivisionErrorMetric
    
    It is a concrete error metric, based on a geometric criterium: a max
    angle between the chord passing through the midpoint and one of the
    endpoints and the other chord passing through the midpoint and the
    other endpoint of the edge. It is related to the flatness of an edge.
    
    @sa
    vtkGenericCellTessellator vtkGenericSubdivisionErrorMetric
    """
    def GetAngleTolerance(self): # real signature unknown; restored from __doc__
        """
        GetAngleTolerance(self) -> float
        C++: double GetAngleTolerance()
        
        Return the flatness threshold.
        \post positive_result: result>90 && result<180
        """
        return 0.0

    def GetError(self, leftPoint, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__ 
        """
        GetError(self, leftPoint:[float, ...], midPoint:[float, ...],
            rightPoint:[float, ...], alpha:float) -> float
        C++: double GetError(double *leftPoint, double *midPoint,
            double *rightPoint, double alpha) override;
        
        Return the error at the mid-point. It will return an error
        relative to the bounding box size if GetRelative() is true, a
        square absolute error otherwise. See RequiresEdgeSubdivision()
        for a description of the arguments.
        \pre leftPoint_exists: leftPoint!=0
        \pre midPoint_exists: midPoint!=0
        \pre rightPoint_exists: rightPoint!=0
        \pre clamped_alpha: alpha>0 && alpha<1
        \pre valid_size:
            sizeof(leftPoint)=sizeof(midPoint)=sizeof(rightPoint)
        =GetAttributeCollection()->GetNumberOfPointCenteredComponents()+6
        \post positive_result: result>=0
        """
        pass

    def GetNumberOfGenerationsFromBase(self, type): # real signature unknown; restored from __doc__
        """
        GetNumberOfGenerationsFromBase(self, type:str) -> int
        C++: vtkIdType GetNumberOfGenerationsFromBase(const char *type)
            override;
        
        Given the name of a base class of this class type, return the
        distance of inheritance between this class type and the named
        class (how many generations of inheritance are there between this
        class and the named class). If the named class is not in this
        class's inheritance tree, return a negative value. Valid
        responses will always be nonnegative. This method works in
        combination with vtkTypeMacro found in vtkSetGet.h.
        """
        return 0

    def GetNumberOfGenerationsFromBaseType(self, type): # real signature unknown; restored from __doc__
        """
        GetNumberOfGenerationsFromBaseType(type:str) -> int
        C++: static vtkIdType GetNumberOfGenerationsFromBaseType(
            const char *type)
        
        Given a the name of a base class of this class type, return the
        distance of inheritance between this class type and the named
        class (how many generations of inheritance are there between this
        class and the named class). If the named class is not in this
        class's inheritance tree, return a negative value. Valid
        responses will always be nonnegative. This method works in
        combination with vtkTypeMacro found in vtkSetGet.h.
        """
        return 0

    def IsA(self, type): # real signature unknown; restored from __doc__
        """
        IsA(self, type:str) -> int
        C++: vtkTypeBool IsA(const char *type) override;
        
        Return 1 if this class is the same type of (or a subclass of) the
        named class. Returns 0 otherwise. This method works in
        combination with vtkTypeMacro found in vtkSetGet.h.
        """
        return 0

    def IsTypeOf(self, type): # real signature unknown; restored from __doc__
        """
        IsTypeOf(type:str) -> int
        C++: static vtkTypeBool IsTypeOf(const char *type)
        
        Return 1 if this class type is the same type of (or a subclass
        of) the named class. Returns 0 otherwise. This method works in
        combination with vtkTypeMacro found in vtkSetGet.h.
        """
        return 0

    def NewInstance(self): # real signature unknown; restored from __doc__
        """
        NewInstance(self) -> vtkSmoothErrorMetric
        C++: vtkSmoothErrorMetric *NewInstance()
        """
        return vtkSmoothErrorMetric

    def RequiresEdgeSubdivision(self, leftPoint, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__ 
        """
        RequiresEdgeSubdivision(self, leftPoint:[float, ...],
            midPoint:[float, ...], rightPoint:[float, ...], alpha:float)
            -> int
        C++: int RequiresEdgeSubdivision(double *leftPoint,
            double *midPoint, double *rightPoint, double alpha) override;
        
        Does the edge need to be subdivided according to the cosine
        between the two chords passing through the mid-point and the
        endpoints? The edge is defined by its `leftPoint' and its
        `rightPoint'. `leftPoint', `midPoint' and `rightPoint' have to be
        initialized before calling RequiresEdgeSubdivision(). Their
        format is global coordinates, parametric coordinates and point
        centered attributes: xyx rst abc de... `alpha' is the normalized
        abscissa of the midpoint along the edge. (close to 0 means close
        to the left point, close to 1 means close to the right point)
        \pre leftPoint_exists: leftPoint!=0
        \pre midPoint_exists: midPoint!=0
        \pre rightPoint_exists: rightPoint!=0
        \pre clamped_alpha: alpha>0 && alpha<1
        \pre valid_size:
            sizeof(leftPoint)=sizeof(midPoint)=sizeof(rightPoint)
        =GetAttributeCollection()->GetNumberOfPointCenteredComponents()+6
        """
        pass

    def SafeDownCast(self, o): # real signature unknown; restored from __doc__
        """
        SafeDownCast(o:vtkObjectBase) -> vtkSmoothErrorMetric
        C++: static vtkSmoothErrorMetric *SafeDownCast(vtkObjectBase *o)
        """
        return vtkSmoothErrorMetric

    def SetAngleTolerance(self, value): # real signature unknown; restored from __doc__
        """
        SetAngleTolerance(self, value:float) -> None
        C++: void SetAngleTolerance(double value)
        
        Set the flatness threshold with an angle in degrees. Internally
        compute the cosine. value is supposed to be in ]90,180[, if not
        it is clamped in [90.1,179.9]. For instance 178 will give better
        result than 150.
        """
        pass

    def __delattr__(self, *args, **kwargs): # real signature unknown
        """ Implement delattr(self, name). """
        pass

    def __getattribute__(self, *args, **kwargs): # real signature unknown
        """ Return getattr(self, name). """
        pass

    def __init__(self, *args, **kwargs): # real signature unknown
        pass

    @staticmethod # known case of __new__
    def __new__(*args, **kwargs): # real signature unknown
        """ Create and return a new object.  See help(type) for accurate signature. """
        pass

    def __repr__(self, *args, **kwargs): # real signature unknown
        """ Return repr(self). """
        pass

    def __setattr__(self, *args, **kwargs): # real signature unknown
        """ Implement setattr(self, name, value). """
        pass

    def __str__(self, *args, **kwargs): # real signature unknown
        """ Return str(self). """
        pass

    __this__ = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """Pointer to the C++ object."""


    __dict__ = None # (!) real value is "mappingproxy({'__vtkname__': 'vtkSmoothErrorMetric', 'IsTypeOf': <method 'IsTypeOf' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, 'IsA': <method 'IsA' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, 'SafeDownCast': <method 'SafeDownCast' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, 'NewInstance': <method 'NewInstance' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, 'GetNumberOfGenerationsFromBaseType': <method 'GetNumberOfGenerationsFromBaseType' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, 'GetNumberOfGenerationsFromBase': <method 'GetNumberOfGenerationsFromBase' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, 'GetAngleTolerance': <method 'GetAngleTolerance' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, 'SetAngleTolerance': <method 'SetAngleTolerance' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, 'RequiresEdgeSubdivision': <method 'RequiresEdgeSubdivision' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, 'GetError': <method 'GetError' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, '__new__': <built-in method __new__ of type object at 0x00007FF81D64C610>, '__repr__': <slot wrapper '__repr__' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, '__str__': <slot wrapper '__str__' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, '__getattribute__': <slot wrapper '__getattribute__' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, '__setattr__': <slot wrapper '__setattr__' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, '__delattr__': <slot wrapper '__delattr__' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, '__dict__': <attribute '__dict__' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, '__this__': <attribute '__this__' of 'vtkmodules.vtkCommonDataModel.vtkSmoothErrorMetric' objects>, '__doc__': 'vtkSmoothErrorMetric - Objects that compute geometry-based error\\nduring cell tessellation according to some max angle.\\n\\nSuperclass: vtkGenericSubdivisionErrorMetric\\n\\nIt is a concrete error metric, based on a geometric criterium: a max\\nangle between the chord passing through the midpoint and one of the\\nendpoints and the other chord passing through the midpoint and the\\nother endpoint of the edge. It is related to the flatness of an edge.\\n\\n@sa\\nvtkGenericCellTessellator vtkGenericSubdivisionErrorMetric\\n\\n'})"
    __vtkname__ = 'vtkSmoothErrorMetric'


