# 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


class vtkTextureUnitManager(__vtkmodules_vtkCommonCore.vtkObject):
    """
    vtkTextureUnitManager - allocate/free texture units.
    
    Superclass: vtkObject
    
    vtkTextureUnitManager is a central place used by shaders to reserve a
    texture unit ( Allocate() ) or release it ( Free() ).
    
    Don't create a vtkTextureUnitManager, query it from the
    vtkOpenGLRenderWindow
    
    @sa
    vtkOpenGLRenderWindow
    """
    def Allocate(self): # real signature unknown; restored from __doc__
        """
        Allocate(self) -> int
        C++: virtual int Allocate()
        Allocate(self, unit:int) -> int
        C++: virtual int Allocate(int unit)
        
        Reserve a texture unit. It returns its number. It returns -1 if
        the allocation failed (because there are no more texture units
        left).
        \post valid_result: result==-1 || result>=0 &&
            result<this->GetNumberOfTextureUnits())
        \post allocated: result==-1 || this->IsAllocated(result)
        """
        return 0

    def Free(self, textureUnitId): # real signature unknown; restored from __doc__
        """
        Free(self, textureUnitId:int) -> None
        C++: virtual void Free(int textureUnitId)
        
        Release a texture unit.
        \pre valid_textureUnitId: textureUnitId>=0 &&
            textureUnitId<this->GetNumberOfTextureUnits()
        \pre allocated_textureUnitId: this->IsAllocated(textureUnitId)
        """
        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 GetNumberOfTextureUnits(self): # real signature unknown; restored from __doc__
        """
        GetNumberOfTextureUnits(self) -> int
        C++: int GetNumberOfTextureUnits()
        
        Number of texture units supported by the OpenGL context.
        """
        return 0

    def Initialize(self): # real signature unknown; restored from __doc__
        """
        Initialize(self) -> None
        C++: void Initialize()
        
        Update the number of hardware texture units for the current
        context
        """
        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 IsAllocated(self, textureUnitId): # real signature unknown; restored from __doc__
        """
        IsAllocated(self, textureUnitId:int) -> bool
        C++: bool IsAllocated(int textureUnitId)
        
        Tell if texture unit `textureUnitId' is already allocated.
        \pre valid_textureUnitId_range : textureUnitId>=0 &&
        textureUnitId<this->GetNumberOfTextureUnits()
        """
        return False

    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) -> vtkTextureUnitManager
        C++: vtkTextureUnitManager *NewInstance()
        """
        return vtkTextureUnitManager

    def SafeDownCast(self, o): # real signature unknown; restored from __doc__
        """
        SafeDownCast(o:vtkObjectBase) -> vtkTextureUnitManager
        C++: static vtkTextureUnitManager *SafeDownCast(vtkObjectBase *o)
        """
        return vtkTextureUnitManager

    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__\': \'vtkTextureUnitManager\', \'IsTypeOf\': <method \'IsTypeOf\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'IsA\': <method \'IsA\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'SafeDownCast\': <method \'SafeDownCast\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'NewInstance\': <method \'NewInstance\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'GetNumberOfGenerationsFromBaseType\': <method \'GetNumberOfGenerationsFromBaseType\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'GetNumberOfGenerationsFromBase\': <method \'GetNumberOfGenerationsFromBase\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'Initialize\': <method \'Initialize\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'GetNumberOfTextureUnits\': <method \'GetNumberOfTextureUnits\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'Allocate\': <method \'Allocate\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'IsAllocated\': <method \'IsAllocated\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'Free\': <method \'Free\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'__new__\': <built-in method __new__ of type object at 0x00007FF820606F50>, \'__repr__\': <slot wrapper \'__repr__\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'__str__\': <slot wrapper \'__str__\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'__getattribute__\': <slot wrapper \'__getattribute__\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'__setattr__\': <slot wrapper \'__setattr__\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'__delattr__\': <slot wrapper \'__delattr__\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'__dict__\': <attribute \'__dict__\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'__this__\': <attribute \'__this__\' of \'vtkmodules.vtkRenderingOpenGL2.vtkTextureUnitManager\' objects>, \'__doc__\': "vtkTextureUnitManager - allocate/free texture units.\\n\\nSuperclass: vtkObject\\n\\nvtkTextureUnitManager is a central place used by shaders to reserve a\\ntexture unit ( Allocate() ) or release it ( Free() ).\\n\\nDon\'t create a vtkTextureUnitManager, query it from the\\nvtkOpenGLRenderWindow\\n\\n@sa\\nvtkOpenGLRenderWindow\\n\\n"})'
    __vtkname__ = 'vtkTextureUnitManager'


