# 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


class vtkGenericSubdivisionErrorMetric(__vtkmodules_vtkCommonCore.vtkObject):
    """
    vtkGenericSubdivisionErrorMetric - Objects that compute error during
    cell tessellation.
    
    Superclass: vtkObject
    
    Objects of that class answer the following question during the cell
    subdivision: "does the edge need to be subdivided?" through
    RequiresEdgeSubdivision(). The answer depends on the criterium
    actually used in the subclass of this abstract class: a
    geometric-based error metric (variation of edge from a straight
    line), an attribute-based error metric (variation of the active
    attribute/component value from a linear ramp) , a view-depend error
    metric, ... Cell subdivision is performed in the context of the
    adaptor framework: higher-order, or complex cells, are automatically
    tessellated into simplices so that they can be processed with
    conventional visualization algorithms.
    
    @sa
    vtkGenericCellTessellator
    """
    def GetDataSet(self): # real signature unknown; restored from __doc__
        """
        GetDataSet(self) -> vtkGenericDataSet
        C++: virtual vtkGenericDataSet *GetDataSet()
        """
        return vtkGenericDataSet

    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++: virtual double GetError(double *leftPoint, double *midPoint,
            double *rightPoint, double alpha)
        
        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 GetGenericCell(self): # real signature unknown; restored from __doc__
        """
        GetGenericCell(self) -> vtkGenericAdaptorCell
        C++: virtual vtkGenericAdaptorCell *GetGenericCell()
        """
        return vtkGenericAdaptorCell

    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) -> vtkGenericSubdivisionErrorMetric
        C++: vtkGenericSubdivisionErrorMetric *NewInstance()
        """
        return vtkGenericSubdivisionErrorMetric

    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++: virtual int RequiresEdgeSubdivision(double *leftPoint,
            double *midPoint, double *rightPoint, double alpha)
        
        Does the edge need to be subdivided according to the implemented
        computation? 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) -> vtkGenericSubdivisionErrorMetric
        C++: static vtkGenericSubdivisionErrorMetric *SafeDownCast(
            vtkObjectBase *o)
        """
        return vtkGenericSubdivisionErrorMetric

    def SetDataSet(self, ds): # real signature unknown; restored from __doc__
        """
        SetDataSet(self, ds:vtkGenericDataSet) -> None
        C++: void SetDataSet(vtkGenericDataSet *ds)
        
        Set/Get the dataset to be tessellated.
        """
        pass

    def SetGenericCell(self, cell): # real signature unknown; restored from __doc__
        """
        SetGenericCell(self, cell:vtkGenericAdaptorCell) -> None
        C++: void SetGenericCell(vtkGenericAdaptorCell *cell)
        
        The cell that the edge belongs to.
        """
        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__\': \'vtkGenericSubdivisionErrorMetric\', \'IsTypeOf\': <method \'IsTypeOf\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'IsA\': <method \'IsA\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'SafeDownCast\': <method \'SafeDownCast\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'NewInstance\': <method \'NewInstance\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'GetNumberOfGenerationsFromBaseType\': <method \'GetNumberOfGenerationsFromBaseType\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'GetNumberOfGenerationsFromBase\': <method \'GetNumberOfGenerationsFromBase\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'RequiresEdgeSubdivision\': <method \'RequiresEdgeSubdivision\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'GetError\': <method \'GetError\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'SetGenericCell\': <method \'SetGenericCell\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'GetGenericCell\': <method \'GetGenericCell\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'SetDataSet\': <method \'SetDataSet\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'GetDataSet\': <method \'GetDataSet\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'__new__\': <built-in method __new__ of type object at 0x00007FF81D6252D0>, \'__repr__\': <slot wrapper \'__repr__\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'__str__\': <slot wrapper \'__str__\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'__getattribute__\': <slot wrapper \'__getattribute__\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'__setattr__\': <slot wrapper \'__setattr__\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'__delattr__\': <slot wrapper \'__delattr__\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'__dict__\': <attribute \'__dict__\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'__this__\': <attribute \'__this__\' of \'vtkmodules.vtkCommonDataModel.vtkGenericSubdivisionErrorMetric\' objects>, \'__doc__\': \'vtkGenericSubdivisionErrorMetric - Objects that compute error during\\ncell tessellation.\\n\\nSuperclass: vtkObject\\n\\nObjects of that class answer the following question during the cell\\nsubdivision: "does the edge need to be subdivided?" through\\nRequiresEdgeSubdivision(). The answer depends on the criterium\\nactually used in the subclass of this abstract class: a\\ngeometric-based error metric (variation of edge from a straight\\nline), an attribute-based error metric (variation of the active\\nattribute/component value from a linear ramp) , a view-depend error\\nmetric, ... Cell subdivision is performed in the context of the\\nadaptor framework: higher-order, or complex cells, are automatically\\ntessellated into simplices so that they can be processed with\\nconventional visualization algorithms.\\n\\n@sa\\nvtkGenericCellTessellator\\n\\n\'})'
    __vtkname__ = 'vtkGenericSubdivisionErrorMetric'


