# encoding: utf-8
# module vtkmodules.vtkRenderingOpenGL2
# from C:\Users\xukai\Downloads\发票2\venv\Lib\site-packages\vtkmodules\vtkRenderingOpenGL2.cp311-win_amd64.pyd
# by generator 1.147
# no doc

# imports
import vtkmodules.vtkCommonCore as __vtkmodules_vtkCommonCore
import vtkmodules.vtkRenderingCore as __vtkmodules_vtkRenderingCore
import vtkmodules.vtkRenderingHyperTreeGrid as __vtkmodules_vtkRenderingHyperTreeGrid


from .vtkImageProcessingPass import vtkImageProcessingPass

class vtkSobelGradientMagnitudePass(vtkImageProcessingPass):
    """
    vtkSobelGradientMagnitudePass - Implement a post-processing edge
    detection with a Sobel gradient magnitude render pass.
    
    Superclass: vtkImageProcessingPass
    
    Detect the edges of the image rendered by its delegate.
    Edge-detection uses a Sobel high-pass filter (3x3 kernel).
    
    This pass expects an initialized depth buffer and color buffer.
    Initialized buffers means they have been cleared with farest z-value
    and background color/gradient/transparent color. An opaque pass may
    have been performed right after the initialization.
    
    The delegate is used once.
    
    Its delegate is usually set to a vtkCameraPass or to a
    post-processing pass.
    
    This pass requires a OpenGL context that supports texture objects
    (TO), framebuffer objects (FBO) and GLSL. If not, it will emit an
    error message and will render its delegate and return.
    
    @par Implementation: To compute the gradient magnitude, the x and y
    components of the gradient (Gx and Gy) have to be computed first.
    Each computation of Gx and Gy uses a separable filter. The first pass
    takes the image from the delegate as the single input texture. The
    first pass has two outputs, one for the first part of Gx, Gx1, result
    of a convolution with (-1 0 1), one for the first part of Gy, Gy1,
    result of a convolution with (1 2 1). The second pass has two inputs,
    Gx1 and Gy1. Kernel (1 2 1)^T is applied to Gx1 and kernel (-1 0 1)^T
    is applied to Gx2. It gives the values for Gx and Gy. Those values
    are then used to compute the magnitude of the gradient which is
    stored in the render target. The gradient computation happens per
    component (R,G,B). A is arbitrarily set to 1 (full opacity).
    
    @par Implementation:\image html
    vtkSobelGradientMagnitudePassFigure.png\image latex
    vtkSobelGradientMagnitudePassFigure.eps
    
    @sa
    vtkRenderPass
    """
    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) -> vtkSobelGradientMagnitudePass
        C++: vtkSobelGradientMagnitudePass *NewInstance()
        """
        return vtkSobelGradientMagnitudePass

    def ReleaseGraphicsResources(self, w): # real signature unknown; restored from __doc__
        """
        ReleaseGraphicsResources(self, w:vtkWindow) -> None
        C++: void ReleaseGraphicsResources(vtkWindow *w) override;
        
        Release graphics resources and ask components to release their
        own resources.
        \pre w_exists: w!=0
        """
        pass

    def SafeDownCast(self, o): # real signature unknown; restored from __doc__
        """
        SafeDownCast(o:vtkObjectBase) -> vtkSobelGradientMagnitudePass
        C++: static vtkSobelGradientMagnitudePass *SafeDownCast(
            vtkObjectBase *o)
        """
        return vtkSobelGradientMagnitudePass

    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__': 'vtkSobelGradientMagnitudePass', 'IsTypeOf': <method 'IsTypeOf' of 'vtkmodules.vtkRenderingOpenGL2.vtkSobelGradientMagnitudePass' objects>, 'IsA': <method 'IsA' of 'vtkmodules.vtkRenderingOpenGL2.vtkSobelGradientMagnitudePass' objects>, 'SafeDownCast': <method 'SafeDownCast' of 'vtkmodules.vtkRenderingOpenGL2.vtkSobelGradientMagnitudePass' objects>, 'NewInstance': <method 'NewInstance' of 'vtkmodules.vtkRenderingOpenGL2.vtkSobelGradientMagnitudePass' objects>, 'GetNumberOfGenerationsFromBaseType': <method 'GetNumberOfGenerationsFromBaseType' of 'vtkmodules.vtkRenderingOpenGL2.vtkSobelGradientMagnitudePass' objects>, 'GetNumberOfGenerationsFromBase': <method 'GetNumberOfGenerationsFromBase' of 'vtkmodules.vtkRenderingOpenGL2.vtkSobelGradientMagnitudePass' objects>, 'ReleaseGraphicsResources': <method 'ReleaseGraphicsResources' of 'vtkmodules.vtkRenderingOpenGL2.vtkSobelGradientMagnitudePass' objects>, '__new__': <built-in method __new__ of type object at 0x00007FF820605B50>, '__repr__': <slot wrapper '__repr__' of 'vtkmodules.vtkRenderingOpenGL2.vtkSobelGradientMagnitudePass' objects>, '__str__': <slot wrapper '__str__' of 'vtkmodules.vtkRenderingOpenGL2.vtkSobelGradientMagnitudePass' objects>, '__getattribute__': <slot wrapper '__getattribute__' of 'vtkmodules.vtkRenderingOpenGL2.vtkSobelGradientMagnitudePass' objects>, '__setattr__': <slot wrapper '__setattr__' of 'vtkmodules.vtkRenderingOpenGL2.vtkSobelGradientMagnitudePass' objects>, '__delattr__': <slot wrapper '__delattr__' of 'vtkmodules.vtkRenderingOpenGL2.vtkSobelGradientMagnitudePass' objects>, '__dict__': <attribute '__dict__' of 'vtkmodules.vtkRenderingOpenGL2.vtkSobelGradientMagnitudePass' objects>, '__this__': <attribute '__this__' of 'vtkmodules.vtkRenderingOpenGL2.vtkSobelGradientMagnitudePass' objects>, '__doc__': 'vtkSobelGradientMagnitudePass - Implement a post-processing edge\\ndetection with a Sobel gradient magnitude render pass.\\n\\nSuperclass: vtkImageProcessingPass\\n\\nDetect the edges of the image rendered by its delegate.\\nEdge-detection uses a Sobel high-pass filter (3x3 kernel).\\n\\nThis pass expects an initialized depth buffer and color buffer.\\nInitialized buffers means they have been cleared with farest z-value\\nand background color/gradient/transparent color. An opaque pass may\\nhave been performed right after the initialization.\\n\\nThe delegate is used once.\\n\\nIts delegate is usually set to a vtkCameraPass or to a\\npost-processing pass.\\n\\nThis pass requires a OpenGL context that supports texture objects\\n(TO), framebuffer objects (FBO) and GLSL. If not, it will emit an\\nerror message and will render its delegate and return.\\n\\n@par Implementation: To compute the gradient magnitude, the x and y\\ncomponents of the gradient (Gx and Gy) have to be computed first.\\nEach computation of Gx and Gy uses a separable filter. The first pass\\ntakes the image from the delegate as the single input texture. The\\nfirst pass has two outputs, one for the first part of Gx, Gx1, result\\nof a convolution with (-1 0 1), one for the first part of Gy, Gy1,\\nresult of a convolution with (1 2 1). The second pass has two inputs,\\nGx1 and Gy1. Kernel (1 2 1)^T is applied to Gx1 and kernel (-1 0 1)^T\\nis applied to Gx2. It gives the values for Gx and Gy. Those values\\nare then used to compute the magnitude of the gradient which is\\nstored in the render target. The gradient computation happens per\\ncomponent (R,G,B). A is arbitrarily set to 1 (full opacity).\\n\\n@par Implementation:\\\\image html\\nvtkSobelGradientMagnitudePassFigure.png\\\\image latex\\nvtkSobelGradientMagnitudePassFigure.eps\\n\\n@sa\\nvtkRenderPass\\n\\n'})"
    __vtkname__ = 'vtkSobelGradientMagnitudePass'


