# encoding: utf-8
# module vtkmodules.vtkRenderingVolume
# from C:\Users\xukai\Downloads\发票2\venv\Lib\site-packages\vtkmodules\vtkRenderingVolume.cp311-win_amd64.pyd
# by generator 1.147
# no doc

# imports
import vtkmodules.vtkCommonCore as __vtkmodules_vtkCommonCore
import vtkmodules.vtkCommonExecutionModel as __vtkmodules_vtkCommonExecutionModel
import vtkmodules.vtkRenderingCore as __vtkmodules_vtkRenderingCore


from .vtkUnstructuredGridVolumeRayIntegrator import vtkUnstructuredGridVolumeRayIntegrator

class vtkUnstructuredGridLinearRayIntegrator(vtkUnstructuredGridVolumeRayIntegrator):
    """
    vtkUnstructuredGridLinearRayIntegrator - performs piecewise linear
    ray integration.
    
    Superclass: vtkUnstructuredGridVolumeRayIntegrator
    
    vtkUnstructuredGridLinearRayIntegrator performs piecewise linear ray
    integration.  Considering that transfer functions in VTK are
    piecewise linear, this class should give the "correct" integration
    under most circumstances.  However, the computations performed are
    fairly hefty and should, for the most part, only be used as a
    benchmark for other, faster methods.
    
    @sa
    vtkUnstructuredGridPartialPreIntegration
    """
    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 Initialize(self, volume, scalars): # real signature unknown; restored from __doc__
        """
        Initialize(self, volume:vtkVolume, scalars:vtkDataArray) -> None
        C++: void Initialize(vtkVolume *volume, vtkDataArray *scalars)
            override;
        
        Set up the integrator with the given properties and scalars.
        """
        pass

    def Integrate(self, intersectionLengths, nearIntersections, farIntersections, color, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__ 
        """
        Integrate(self, intersectionLengths:vtkDoubleArray,
            nearIntersections:vtkDataArray, farIntersections:vtkDataArray,
             color:[float, float, float, float]) -> None
        C++: void Integrate(vtkDoubleArray *intersectionLengths,
            vtkDataArray *nearIntersections,
            vtkDataArray *farIntersections, float color[4]) override;
        
        Given a set of intersections (defined by the three arrays),
        compute the piecewise integration of the array in front to back
        order. /c intersectionLengths holds the lengths of each piecewise
        segment. /c nearIntersections and /c farIntersections hold the
        scalar values at the front and back of each segment.  /c color
        should contain the RGBA value of the volume in front of the
        segments passed in, and the result will be placed back into /c
        color.
        """
        pass

    def IntegrateRay(self, length, intensity_front, attenuation_front, intensity_back, attenuation_back, color, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__ 
        """
        IntegrateRay(length:float, intensity_front:float,
            attenuation_front:float, intensity_back:float,
            attenuation_back:float, color:[float, float, float, float])
            -> None
        C++: static void IntegrateRay(double length,
            double intensity_front, double attenuation_front,
            double intensity_back, double attenuation_back,
            float color[4])
        IntegrateRay(length:float, color_front:(float, float, float),
            attenuation_front:float, color_back:(float, float, float),
            attenuation_back:float, color:[float, float, float, float])
            -> None
        C++: static void IntegrateRay(double length,
            const double color_front[3], double attenuation_front,
            const double color_back[3], double attenuation_back,
            float color[4])
        
        Integrates a single ray segment.  color is blended with the
        result (with color in front).  The result is written back into
        color.
        """
        pass

    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) -> vtkUnstructuredGridLinearRayIntegrator
        C++: vtkUnstructuredGridLinearRayIntegrator *NewInstance()
        """
        return vtkUnstructuredGridLinearRayIntegrator

    def Psi(self, length, attenuation_front, attenuation_back): # real signature unknown; restored from __doc__
        """
        Psi(length:float, attenuation_front:float, attenuation_back:float)
             -> float
        C++: static float Psi(float length, float attenuation_front,
            float attenuation_back)
        
        Computes Psi (as defined by Moreland and Angel, "A Fast High
        Accuracy Volume Renderer for Unstructured Data").
        """
        return 0.0

    def SafeDownCast(self, o): # real signature unknown; restored from __doc__
        """
        SafeDownCast(o:vtkObjectBase)
            -> vtkUnstructuredGridLinearRayIntegrator
        C++: static vtkUnstructuredGridLinearRayIntegrator *SafeDownCast(
            vtkObjectBase *o)
        """
        return vtkUnstructuredGridLinearRayIntegrator

    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__\': \'vtkUnstructuredGridLinearRayIntegrator\', \'IsTypeOf\': <method \'IsTypeOf\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'IsA\': <method \'IsA\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'SafeDownCast\': <method \'SafeDownCast\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'NewInstance\': <method \'NewInstance\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'GetNumberOfGenerationsFromBaseType\': <method \'GetNumberOfGenerationsFromBaseType\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'GetNumberOfGenerationsFromBase\': <method \'GetNumberOfGenerationsFromBase\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'Initialize\': <method \'Initialize\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'Integrate\': <method \'Integrate\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'IntegrateRay\': <method \'IntegrateRay\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'Psi\': <method \'Psi\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'__new__\': <built-in method __new__ of type object at 0x00007FF8393B65C0>, \'__repr__\': <slot wrapper \'__repr__\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'__str__\': <slot wrapper \'__str__\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'__getattribute__\': <slot wrapper \'__getattribute__\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'__setattr__\': <slot wrapper \'__setattr__\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'__delattr__\': <slot wrapper \'__delattr__\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'__dict__\': <attribute \'__dict__\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'__this__\': <attribute \'__this__\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridLinearRayIntegrator\' objects>, \'__doc__\': \'vtkUnstructuredGridLinearRayIntegrator - performs piecewise linear\\nray integration.\\n\\nSuperclass: vtkUnstructuredGridVolumeRayIntegrator\\n\\nvtkUnstructuredGridLinearRayIntegrator performs piecewise linear ray\\nintegration.  Considering that transfer functions in VTK are\\npiecewise linear, this class should give the "correct" integration\\nunder most circumstances.  However, the computations performed are\\nfairly hefty and should, for the most part, only be used as a\\nbenchmark for other, faster methods.\\n\\n@sa\\nvtkUnstructuredGridPartialPreIntegration\\n\\n\'})'
    __vtkname__ = 'vtkUnstructuredGridLinearRayIntegrator'


