# 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 vtkGeometricErrorMetric(vtkGenericSubdivisionErrorMetric):
    """
    vtkGeometricErrorMetric - Objects that compute geometry-based error
    during cell tessellation.
    
    Superclass: vtkGenericSubdivisionErrorMetric
    
    It is a concrete error metric, based on a geometric criterium: the
    variation of the edge from a straight line.
    
    @sa
    vtkGenericCellTessellator vtkGenericSubdivisionErrorMetric
    """
    def GetAbsoluteGeometricTolerance(self): # real signature unknown; restored from __doc__
        """
        GetAbsoluteGeometricTolerance(self) -> float
        C++: virtual double GetAbsoluteGeometricTolerance()
        
        Return the squared absolute geometric accuracy. See
        SetAbsoluteGeometricTolerance() for details.
        \post positive_result: result>0
        """
        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 GetRelative(self): # real signature unknown; restored from __doc__
        """
        GetRelative(self) -> int
        C++: int GetRelative()
        
        Return the type of output of GetError()
        """
        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) -> vtkGeometricErrorMetric
        C++: vtkGeometricErrorMetric *NewInstance()
        """
        return vtkGeometricErrorMetric

    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 line passing through its endpoints and the mid point?
        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) -> vtkGeometricErrorMetric
        C++: static vtkGeometricErrorMetric *SafeDownCast(
            vtkObjectBase *o)
        """
        return vtkGeometricErrorMetric

    def SetAbsoluteGeometricTolerance(self, value): # real signature unknown; restored from __doc__
        """
        SetAbsoluteGeometricTolerance(self, value:float) -> None
        C++: void SetAbsoluteGeometricTolerance(double value)
        
        Set the geometric accuracy with a squared absolute value. This is
        the geometric object-based accuracy. Subdivision will be required
        if the square distance between the real point and the straight
        line passing through the vertices of the edge is greater than
        `value'. For instance 0.01 will give better result than 0.1.
        \pre positive_value: value>0
        """
        pass

    def SetRelativeGeometricTolerance(self, value, ds): # real signature unknown; restored from __doc__
        """
        SetRelativeGeometricTolerance(self, value:float,
            ds:vtkGenericDataSet) -> None
        C++: void SetRelativeGeometricTolerance(double value,
            vtkGenericDataSet *ds)
        
        Set the geometric accuracy with a value relative to the length of
        the bounding box of the dataset. Internally compute the absolute
        tolerance. For instance 0.01 will give better result than 0.1.
        \pre valid_range_value: value>0 && value<1
        \pre ds_exists: ds!=0
        """
        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__': 'vtkGeometricErrorMetric', 'IsTypeOf': <method 'IsTypeOf' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, 'IsA': <method 'IsA' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, 'SafeDownCast': <method 'SafeDownCast' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, 'NewInstance': <method 'NewInstance' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, 'GetNumberOfGenerationsFromBaseType': <method 'GetNumberOfGenerationsFromBaseType' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, 'GetNumberOfGenerationsFromBase': <method 'GetNumberOfGenerationsFromBase' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, 'GetAbsoluteGeometricTolerance': <method 'GetAbsoluteGeometricTolerance' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, 'SetAbsoluteGeometricTolerance': <method 'SetAbsoluteGeometricTolerance' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, 'SetRelativeGeometricTolerance': <method 'SetRelativeGeometricTolerance' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, 'RequiresEdgeSubdivision': <method 'RequiresEdgeSubdivision' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, 'GetError': <method 'GetError' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, 'GetRelative': <method 'GetRelative' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, '__new__': <built-in method __new__ of type object at 0x00007FF81D625620>, '__repr__': <slot wrapper '__repr__' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, '__str__': <slot wrapper '__str__' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, '__getattribute__': <slot wrapper '__getattribute__' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, '__setattr__': <slot wrapper '__setattr__' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, '__delattr__': <slot wrapper '__delattr__' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, '__dict__': <attribute '__dict__' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, '__this__': <attribute '__this__' of 'vtkmodules.vtkCommonDataModel.vtkGeometricErrorMetric' objects>, '__doc__': 'vtkGeometricErrorMetric - Objects that compute geometry-based error\\nduring cell tessellation.\\n\\nSuperclass: vtkGenericSubdivisionErrorMetric\\n\\nIt is a concrete error metric, based on a geometric criterium: the\\nvariation of the edge from a straight line.\\n\\n@sa\\nvtkGenericCellTessellator vtkGenericSubdivisionErrorMetric\\n\\n'})"
    __vtkname__ = 'vtkGeometricErrorMetric'


