# 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 vtkUnstructuredGridPartialPreIntegration(vtkUnstructuredGridVolumeRayIntegrator):
    """
    vtkUnstructuredGridPartialPreIntegration - performs piecewise linear
    ray integration.
    
    Superclass: vtkUnstructuredGridVolumeRayIntegrator
    
    vtkUnstructuredGridPartialPreIntegration performs piecewise linear
    ray integration.  This will give the same results as
    vtkUnstructuredGridLinearRayIntegration (with potentially a error due
    to table lookup quantization), but should be notably faster.  The
    algorithm used is given by Moreland and Angel, "A Fast High Accuracy
    Volume Renderer for Unstructured Data."
    
    This class is thread safe only after the first instance is created.
    """
    def BuildPsiTable(self): # real signature unknown; restored from __doc__
        """
        BuildPsiTable() -> None
        C++: static void BuildPsiTable()
        """
        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 GetPsiTable(self, size): # real signature unknown; restored from __doc__
        """
        GetPsiTable(size:int) -> Pointer
        C++: static float *GetPsiTable(int &size)
        """
        pass

    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) -> vtkUnstructuredGridPartialPreIntegration
        C++: vtkUnstructuredGridPartialPreIntegration *NewInstance()
        """
        return vtkUnstructuredGridPartialPreIntegration

    def Psi(self, taufD, taubD): # real signature unknown; restored from __doc__
        """
        Psi(taufD:float, taubD:float) -> float
        C++: static float Psi(float taufD, float taubD)
        
        Looks up Psi (as defined by Moreland and Angel, "A Fast High
        Accuracy Volume Renderer for Unstructured Data") in a table.  The
        table must be created first, which happens on the first
        instantiation of this class or when BuildPsiTable is first
        called.
        """
        return 0.0

    def SafeDownCast(self, o): # real signature unknown; restored from __doc__
        """
        SafeDownCast(o:vtkObjectBase)
            -> vtkUnstructuredGridPartialPreIntegration
        C++: static vtkUnstructuredGridPartialPreIntegration *SafeDownCast(
            vtkObjectBase *o)
        """
        return vtkUnstructuredGridPartialPreIntegration

    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__\': \'vtkUnstructuredGridPartialPreIntegration\', \'IsTypeOf\': <method \'IsTypeOf\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'IsA\': <method \'IsA\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'SafeDownCast\': <method \'SafeDownCast\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'NewInstance\': <method \'NewInstance\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'GetNumberOfGenerationsFromBaseType\': <method \'GetNumberOfGenerationsFromBaseType\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'GetNumberOfGenerationsFromBase\': <method \'GetNumberOfGenerationsFromBase\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'Initialize\': <method \'Initialize\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'Integrate\': <method \'Integrate\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'IntegrateRay\': <method \'IntegrateRay\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'Psi\': <method \'Psi\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'GetPsiTable\': <method \'GetPsiTable\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'BuildPsiTable\': <method \'BuildPsiTable\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'__new__\': <built-in method __new__ of type object at 0x00007FF8393B6970>, \'__repr__\': <slot wrapper \'__repr__\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'__str__\': <slot wrapper \'__str__\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'__getattribute__\': <slot wrapper \'__getattribute__\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'__setattr__\': <slot wrapper \'__setattr__\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'__delattr__\': <slot wrapper \'__delattr__\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'__dict__\': <attribute \'__dict__\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'__this__\': <attribute \'__this__\' of \'vtkmodules.vtkRenderingVolume.vtkUnstructuredGridPartialPreIntegration\' objects>, \'__doc__\': \'vtkUnstructuredGridPartialPreIntegration - performs piecewise linear\\nray integration.\\n\\nSuperclass: vtkUnstructuredGridVolumeRayIntegrator\\n\\nvtkUnstructuredGridPartialPreIntegration performs piecewise linear\\nray integration.  This will give the same results as\\nvtkUnstructuredGridLinearRayIntegration (with potentially a error due\\nto table lookup quantization), but should be notably faster.  The\\nalgorithm used is given by Moreland and Angel, "A Fast High Accuracy\\nVolume Renderer for Unstructured Data."\\n\\nThis class is thread safe only after the first instance is created.\\n\\n\'})'
    __vtkname__ = 'vtkUnstructuredGridPartialPreIntegration'


