# 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 vtkAttributesErrorMetric(vtkGenericSubdivisionErrorMetric):
    """
    vtkAttributesErrorMetric - Objects that compute attribute-based error
    during cell tessellation.
    
    Superclass: vtkGenericSubdivisionErrorMetric
    
    It is a concrete error metric, based on an attribute criterium: the
    variation of the active attribute/component value from a linear ramp
    
    @sa
    vtkGenericCellTessellator vtkGenericSubdivisionErrorMetric
    """
    def GetAbsoluteAttributeTolerance(self): # real signature unknown; restored from __doc__
        """
        GetAbsoluteAttributeTolerance(self) -> float
        C++: virtual double GetAbsoluteAttributeTolerance()
        
        Absolute tolerance of the active scalar (attribute+component).
        Subdivision is required if the square distance between the real
        attribute at the mid point on the edge and the interpolated
        attribute is greater than AbsoluteAttributeTolerance. This is the
        attribute accuracy. 0.01 will give better result than 0.1.
        """
        return 0.0

    def GetAttributeTolerance(self): # real signature unknown; restored from __doc__
        """
        GetAttributeTolerance(self) -> float
        C++: virtual double GetAttributeTolerance()
        
        Relative tolerance of the active scalar (attribute+component).
        Subdivision is required if the square distance between the real
        attribute at the mid point on the edge and the interpolated
        attribute is greater than AttributeTolerance. This is the
        attribute accuracy. 0.01 will give better result than 0.1.
        """
        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. The type of error depends on
        the state of the concrete error metric. For instance, it can
        return an absolute or relative error metric. 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) -> vtkAttributesErrorMetric
        C++: vtkAttributesErrorMetric *NewInstance()
        """
        return vtkAttributesErrorMetric

    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 distance
        between the value of the active attribute/component at the
        midpoint and the mean value between 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) -> vtkAttributesErrorMetric
        C++: static vtkAttributesErrorMetric *SafeDownCast(
            vtkObjectBase *o)
        """
        return vtkAttributesErrorMetric

    def SetAbsoluteAttributeTolerance(self, value): # real signature unknown; restored from __doc__
        """
        SetAbsoluteAttributeTolerance(self, value:float) -> None
        C++: void SetAbsoluteAttributeTolerance(double value)
        
        Set the absolute attribute accuracy to `value'. See
        GetAbsoluteAttributeTolerance() for details. It is particularly
        useful when some concrete implementation of vtkGenericAttribute
        does not support GetRange() request, called internally in
        SetAttributeTolerance(). It may happen when the implementation
        support higher order attributes but cannot compute the range.
        \pre valid_range_value: value>0
        """
        pass

    def SetAttributeTolerance(self, value): # real signature unknown; restored from __doc__
        """
        SetAttributeTolerance(self, value:float) -> None
        C++: void SetAttributeTolerance(double value)
        
        Set the relative attribute accuracy to `value'. See
        GetAttributeTolerance() for details.
        \pre valid_range_value: value>0 && value<1
        """
        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__': 'vtkAttributesErrorMetric', 'IsTypeOf': <method 'IsTypeOf' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, 'IsA': <method 'IsA' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, 'SafeDownCast': <method 'SafeDownCast' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, 'NewInstance': <method 'NewInstance' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, 'GetNumberOfGenerationsFromBaseType': <method 'GetNumberOfGenerationsFromBaseType' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, 'GetNumberOfGenerationsFromBase': <method 'GetNumberOfGenerationsFromBase' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, 'GetAbsoluteAttributeTolerance': <method 'GetAbsoluteAttributeTolerance' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, 'SetAbsoluteAttributeTolerance': <method 'SetAbsoluteAttributeTolerance' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, 'GetAttributeTolerance': <method 'GetAttributeTolerance' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, 'SetAttributeTolerance': <method 'SetAttributeTolerance' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, 'RequiresEdgeSubdivision': <method 'RequiresEdgeSubdivision' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, 'GetError': <method 'GetError' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, '__new__': <built-in method __new__ of type object at 0x00007FF81D60E5A0>, '__repr__': <slot wrapper '__repr__' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, '__str__': <slot wrapper '__str__' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, '__getattribute__': <slot wrapper '__getattribute__' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, '__setattr__': <slot wrapper '__setattr__' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, '__delattr__': <slot wrapper '__delattr__' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, '__dict__': <attribute '__dict__' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, '__this__': <attribute '__this__' of 'vtkmodules.vtkCommonDataModel.vtkAttributesErrorMetric' objects>, '__doc__': 'vtkAttributesErrorMetric - Objects that compute attribute-based error\\nduring cell tessellation.\\n\\nSuperclass: vtkGenericSubdivisionErrorMetric\\n\\nIt is a concrete error metric, based on an attribute criterium: the\\nvariation of the active attribute/component value from a linear ramp\\n\\n@sa\\nvtkGenericCellTessellator vtkGenericSubdivisionErrorMetric\\n\\n'})"
    __vtkname__ = 'vtkAttributesErrorMetric'


