# encoding: utf-8
# module vtkmodules.vtkIOImage
# from C:\Users\xukai\Downloads\发票2\venv\Lib\site-packages\vtkmodules\vtkIOImage.cp311-win_amd64.pyd
# by generator 1.147
# no doc

# imports
import vtkmodules.vtkCommonCore as __vtkmodules_vtkCommonCore
import vtkmodules.vtkCommonExecutionModel as __vtkmodules_vtkCommonExecutionModel


from .vtkImageWriter import vtkImageWriter

class vtkPNGWriter(vtkImageWriter):
    """
    vtkPNGWriter - Writes PNG files.
    
    Superclass: vtkImageWriter
    
    vtkPNGWriter writes PNG files. It supports 1 to 4 component data of
    unsigned char or unsigned short
    
    @sa
    vtkPNGReader
    """
    def AddText(self, key, value): # real signature unknown; restored from __doc__
        """
        AddText(self, key:str, value:str) -> None
        C++: void AddText(const char *key, const char *value)
        
        Adds a text chunk to the PNG. More than one text chunk with the
        same key is permissible. There are a number of predefined
        keywords that should be used when appropriate. See
        http://www.libpng.org/pub/png/spec/1.2/PNG-Chunks.html for more
        information.
        """
        pass

    def ClearText(self): # real signature unknown; restored from __doc__
        """
        ClearText(self) -> None
        C++: void ClearText()
        
        Clear out any key/value pairs added through the AddText() member
        function.
        """
        pass

    def GetCompressionLevel(self): # real signature unknown; restored from __doc__
        """
        GetCompressionLevel(self) -> int
        C++: virtual int GetCompressionLevel()
        """
        return 0

    def GetCompressionLevelMaxValue(self): # real signature unknown; restored from __doc__
        """
        GetCompressionLevelMaxValue(self) -> int
        C++: virtual int GetCompressionLevelMaxValue()
        """
        return 0

    def GetCompressionLevelMinValue(self): # real signature unknown; restored from __doc__
        """
        GetCompressionLevelMinValue(self) -> int
        C++: virtual int GetCompressionLevelMinValue()
        """
        return 0

    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 GetResult(self): # real signature unknown; restored from __doc__
        """
        GetResult(self) -> vtkUnsignedCharArray
        C++: virtual vtkUnsignedCharArray *GetResult()
        """
        pass

    def GetWriteToMemory(self): # real signature unknown; restored from __doc__
        """
        GetWriteToMemory(self) -> int
        C++: virtual vtkTypeUBool GetWriteToMemory()
        """
        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) -> vtkPNGWriter
        C++: vtkPNGWriter *NewInstance()
        """
        return vtkPNGWriter

    def SafeDownCast(self, o): # real signature unknown; restored from __doc__
        """
        SafeDownCast(o:vtkObjectBase) -> vtkPNGWriter
        C++: static vtkPNGWriter *SafeDownCast(vtkObjectBase *o)
        """
        return vtkPNGWriter

    def SetCompressionLevel(self, _arg): # real signature unknown; restored from __doc__
        """
        SetCompressionLevel(self, _arg:int) -> None
        C++: virtual void SetCompressionLevel(int _arg)
        
        Set/Get the zlib compression level. The range is 0-9, with 0
        meaning no compression corresponding to the largest file size,
        and 9 meaning best compression, corresponding to the smallest
        file size. The default is 5.
        """
        pass

    def SetResult(self, __a): # real signature unknown; restored from __doc__
        """
        SetResult(self, __a:vtkUnsignedCharArray) -> None
        C++: virtual void SetResult(vtkUnsignedCharArray *)
        
        When writing to memory this is the result, it will be nullptr
        until the data is written the first time
        """
        pass

    def SetWriteToMemory(self, _arg): # real signature unknown; restored from __doc__
        """
        SetWriteToMemory(self, _arg:int) -> None
        C++: virtual void SetWriteToMemory(vtkTypeUBool _arg)
        
        Write the image to memory (a vtkUnsignedCharArray)
        """
        pass

    def Write(self): # real signature unknown; restored from __doc__
        """
        Write(self) -> None
        C++: void Write() override;
        
        The main interface which triggers the writer to start.
        """
        pass

    def WriteToMemoryOff(self): # real signature unknown; restored from __doc__
        """
        WriteToMemoryOff(self) -> None
        C++: virtual void WriteToMemoryOff()
        """
        pass

    def WriteToMemoryOn(self): # real signature unknown; restored from __doc__
        """
        WriteToMemoryOn(self) -> None
        C++: virtual void WriteToMemoryOn()
        """
        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."""


    __dict__ = None # (!) real value is "mappingproxy({'__vtkname__': 'vtkPNGWriter', 'IsTypeOf': <method 'IsTypeOf' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'IsA': <method 'IsA' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'SafeDownCast': <method 'SafeDownCast' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'NewInstance': <method 'NewInstance' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'GetNumberOfGenerationsFromBaseType': <method 'GetNumberOfGenerationsFromBaseType' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'GetNumberOfGenerationsFromBase': <method 'GetNumberOfGenerationsFromBase' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'Write': <method 'Write' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'SetCompressionLevel': <method 'SetCompressionLevel' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'GetCompressionLevelMinValue': <method 'GetCompressionLevelMinValue' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'GetCompressionLevelMaxValue': <method 'GetCompressionLevelMaxValue' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'GetCompressionLevel': <method 'GetCompressionLevel' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'SetWriteToMemory': <method 'SetWriteToMemory' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'GetWriteToMemory': <method 'GetWriteToMemory' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'WriteToMemoryOn': <method 'WriteToMemoryOn' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'WriteToMemoryOff': <method 'WriteToMemoryOff' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'SetResult': <method 'SetResult' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'GetResult': <method 'GetResult' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'AddText': <method 'AddText' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, 'ClearText': <method 'ClearText' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, '__new__': <built-in method __new__ of type object at 0x00007FF8393B96B0>, '__repr__': <slot wrapper '__repr__' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, '__str__': <slot wrapper '__str__' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, '__getattribute__': <slot wrapper '__getattribute__' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, '__setattr__': <slot wrapper '__setattr__' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, '__delattr__': <slot wrapper '__delattr__' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, '__dict__': <attribute '__dict__' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, '__this__': <attribute '__this__' of 'vtkmodules.vtkIOImage.vtkPNGWriter' objects>, '__doc__': 'vtkPNGWriter - Writes PNG files.\\n\\nSuperclass: vtkImageWriter\\n\\nvtkPNGWriter writes PNG files. It supports 1 to 4 component data of\\nunsigned char or unsigned short\\n\\n@sa\\nvtkPNGReader\\n\\n'})"
    __vtkname__ = 'vtkPNGWriter'


