# 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 .vtkOpenGLRenderPass import vtkOpenGLRenderPass

class vtkValuePass(vtkOpenGLRenderPass):
    """
    vtkValuePass - Renders geometry using the values of a field array as
    fragment colors.
    
    Superclass: vtkOpenGLRenderPass
    
    The output can be used for deferred color mapping. It supports using
    arrays of either point or cell data. The target array can be selected
    by setting an array name/id and a component number. Only opaque
    geometry is supported.
    
    There are two rendering modes available:
    
    * INVERTIBLE_LUT  Encodes array values as RGB data and renders the
      result to the default framebuffer.  It uses a texture as a color
      LUT to map the values to RGB data. Texture size constraints limit
      its precision (currently 12-bit). The implementation of this mode
      is in vtkInternalsInvertible. This option is deprecated now that
      the SGI patent on floating point textures has expired and Mesa and
      other OpenGL's always supports it.
    
    * FLOATING_POINT  Renders actual array values as floating point data
      to an internal RGBA32F framebuffer.  This class binds and unbinds
      the framebuffer on each render pass. Resources are allocated on
      demand. When rendering point data values are uploaded to the GPU as
    vertex attributes. When rendering cell data values are uploaded as a
      texture buffer. Custom vertex and fragment shaders are defined in
      order to adjust its behavior for either type of data.
    
    @sa
    vtkRenderPass vtkOpenGLRenderPass
    """
    def GetFloatImageData(self, format, width, height, data): # real signature unknown; restored from __doc__
        """
        GetFloatImageData(self, format:int, width:int, height:int,
            data:Pointer) -> None
        C++: void GetFloatImageData(int const format, int const width,
            int const height, void *data)
        
        Interface to get the rendered image in FLOATING_POINT mode.  Low
        level API, a format for the internal glReadPixels call can be
        specified. 'data' is expected to be allocated and cleaned-up by
        the caller.
        """
        pass

    def GetFloatImageDataArray(self, ren): # real signature unknown; restored from __doc__
        """
        GetFloatImageDataArray(self, ren:vtkRenderer) -> vtkFloatArray
        C++: vtkFloatArray *GetFloatImageDataArray(vtkRenderer *ren)
        
        Interface to get the rendered image in FLOATING_POINT mode. 
        Returns a single component array containing the rendered values.
        \warning The returned array is owned by this class.
        """
        pass

    def GetFloatImageExtents(self): # real signature unknown; restored from __doc__
        """
        GetFloatImageExtents(self) -> Pointer
        C++: int *GetFloatImageExtents()
        
        Interface to get the rendered image in FLOATING_POINT mode. 
        Image extents of the value array.
        """
        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) -> vtkValuePass
        C++: vtkValuePass *NewInstance()
        """
        return vtkValuePass

    def ReleaseGraphicsResources(self, win): # real signature unknown; restored from __doc__
        """
        ReleaseGraphicsResources(self, win:vtkWindow) -> None
        C++: void ReleaseGraphicsResources(vtkWindow *win) override;
        
        Release graphics resources and ask components to release their
        own resources. Default implementation is empty.
        \pre w_exists: w!=0
        """
        pass

    def SafeDownCast(self, o): # real signature unknown; restored from __doc__
        """
        SafeDownCast(o:vtkObjectBase) -> vtkValuePass
        C++: static vtkValuePass *SafeDownCast(vtkObjectBase *o)
        """
        return vtkValuePass

    def SetInputArrayToProcess(self, fieldAssociation, name): # real signature unknown; restored from __doc__
        """
        SetInputArrayToProcess(self, fieldAssociation:int, name:str)
            -> None
        C++: void SetInputArrayToProcess(int fieldAssociation,
            const char *name)
        SetInputArrayToProcess(self, fieldAssociation:int, fieldId:int)
            -> None
        C++: void SetInputArrayToProcess(int fieldAssociation,
            int fieldId)
        """
        pass

    def SetInputComponentToProcess(self, component): # real signature unknown; restored from __doc__
        """
        SetInputComponentToProcess(self, component:int) -> None
        C++: void SetInputComponentToProcess(int component)
        """
        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."""


    FLOATING_POINT = 2
    INVERTIBLE_LUT = 1
    Mode = None # (!) real value is "<class 'vtkmodules.vtkRenderingOpenGL2.vtkValuePass.Mode'>"
    __dict__ = None # (!) real value is 'mappingproxy({\'__vtkname__\': \'vtkValuePass\', \'IsTypeOf\': <method \'IsTypeOf\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'IsA\': <method \'IsA\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'SafeDownCast\': <method \'SafeDownCast\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'NewInstance\': <method \'NewInstance\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'GetNumberOfGenerationsFromBaseType\': <method \'GetNumberOfGenerationsFromBaseType\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'GetNumberOfGenerationsFromBase\': <method \'GetNumberOfGenerationsFromBase\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'SetInputArrayToProcess\': <method \'SetInputArrayToProcess\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'SetInputComponentToProcess\': <method \'SetInputComponentToProcess\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'GetFloatImageDataArray\': <method \'GetFloatImageDataArray\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'GetFloatImageData\': <method \'GetFloatImageData\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'GetFloatImageExtents\': <method \'GetFloatImageExtents\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'ReleaseGraphicsResources\': <method \'ReleaseGraphicsResources\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'Mode\': <class \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass.Mode\'>, \'INVERTIBLE_LUT\': 1, \'FLOATING_POINT\': 2, \'__new__\': <built-in method __new__ of type object at 0x00007FF820608430>, \'__repr__\': <slot wrapper \'__repr__\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'__str__\': <slot wrapper \'__str__\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'__getattribute__\': <slot wrapper \'__getattribute__\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'__setattr__\': <slot wrapper \'__setattr__\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'__delattr__\': <slot wrapper \'__delattr__\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'__dict__\': <attribute \'__dict__\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'__this__\': <attribute \'__this__\' of \'vtkmodules.vtkRenderingOpenGL2.vtkValuePass\' objects>, \'__doc__\': "vtkValuePass - Renders geometry using the values of a field array as\\nfragment colors.\\n\\nSuperclass: vtkOpenGLRenderPass\\n\\nThe output can be used for deferred color mapping. It supports using\\narrays of either point or cell data. The target array can be selected\\nby setting an array name/id and a component number. Only opaque\\ngeometry is supported.\\n\\nThere are two rendering modes available:\\n\\n* INVERTIBLE_LUT  Encodes array values as RGB data and renders the\\n  result to the default framebuffer.  It uses a texture as a color\\n  LUT to map the values to RGB data. Texture size constraints limit\\n  its precision (currently 12-bit). The implementation of this mode\\n  is in vtkInternalsInvertible. This option is deprecated now that\\n  the SGI patent on floating point textures has expired and Mesa and\\n  other OpenGL\'s always supports it.\\n\\n* FLOATING_POINT  Renders actual array values as floating point data\\n  to an internal RGBA32F framebuffer.  This class binds and unbinds\\n  the framebuffer on each render pass. Resources are allocated on\\n  demand. When rendering point data values are uploaded to the GPU as\\nvertex attributes. When rendering cell data values are uploaded as a\\n  texture buffer. Custom vertex and fragment shaders are defined in\\n  order to adjust its behavior for either type of data.\\n\\n@sa\\nvtkRenderPass vtkOpenGLRenderPass\\n\\n"})'
    __vtkname__ = 'vtkValuePass'


