"""
This type stub file was generated by pyright.
"""

from .vtkImageReader2 import vtkImageReader2

class vtkPNGReader(vtkImageReader2):
    """
    vtkPNGReader - read PNG files
    
    Superclass: vtkImageReader2
    
    vtkPNGReader is a source object that reads PNG files. It should be
    able to read most any PNG file
    
    @sa
    vtkPNGWriter
    """
    def CanReadFile(self, string):
        """
        V.CanReadFile(string) -> int
        C++: int CanReadFile(const char *fname) override;
        
        Is the given file a PNG file?
        """
        ...
    
    def GetDescriptiveName(self):
        """
        V.GetDescriptiveName() -> string
        C++: const char *GetDescriptiveName() override;
        
        Return a descriptive name for the file format that might be
        useful in a GUI.
        """
        ...
    
    def GetFileExtensions(self):
        """
        V.GetFileExtensions() -> string
        C++: const char *GetFileExtensions() override;
        
        Get the file extensions for this format. Returns a string with a
        space separated list of extensions in the format .extension
        """
        ...
    
    def GetNumberOfGenerationsFromBase(self, string):
        """
        V.GetNumberOfGenerationsFromBase(string) -> int
        C++: vtkIdType GetNumberOfGenerationsFromBase(const char *type)
            override;
        
        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.
        """
        ...
    
    def GetNumberOfGenerationsFromBaseType(self, string):
        """
        V.GetNumberOfGenerationsFromBaseType(string) -> 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.
        """
        ...
    
    def GetNumberOfTextChunks(self):
        """
        V.GetNumberOfTextChunks() -> int
        C++: size_t GetNumberOfTextChunks()
        
        Return the number of text chunks in the PNG file. Note that we
        don't process compressed or international text entries
        """
        ...
    
    def GetReadSpacingFromFile(self):
        """
        V.GetReadSpacingFromFile() -> bool
        C++: virtual bool GetReadSpacingFromFile()
        
        Set/Get if data spacing should be calculated from the PNG file.
        Use default spacing if the PNG file don't have valid pixel per
        meter parameters. Default is false.
        """
        ...
    
    def GetTextChunks(self, string, p_int=..., p_int=...):
        """
        V.GetTextChunks(string, [int, int])
        C++: void GetTextChunks(const char *key, int beginEndIndex[2])
        
        Given a 'key' for the text chunks, fills in 'beginEndIndex' with
        the begin and end indexes. Values are stored between [begin, end)
        indexes.
        """
        ...
    
    def GetTextKey(self, p_int):
        """
        V.GetTextKey(int) -> string
        C++: const char *GetTextKey(int index)
        
        Returns the text key stored at 'index'.
        """
        ...
    
    def GetTextValue(self, p_int):
        """
        V.GetTextValue(int) -> string
        C++: const char *GetTextValue(int index)
        
        Returns the text value stored at 'index'. A range of indexes that
        store values for a certain key can be obtained by calling
        GetTextChunks.
        """
        ...
    
    def IsA(self, string):
        """
        V.IsA(string) -> 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.
        """
        ...
    
    def IsTypeOf(self, string):
        """
        V.IsTypeOf(string) -> 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.
        """
        ...
    
    def NewInstance(self):
        """
        V.NewInstance() -> vtkPNGReader
        C++: vtkPNGReader *NewInstance()
        """
        ...
    
    def ReadSpacingFromFileOff(self):
        """
        V.ReadSpacingFromFileOff()
        C++: virtual void ReadSpacingFromFileOff()
        
        Set/Get if data spacing should be calculated from the PNG file.
        Use default spacing if the PNG file don't have valid pixel per
        meter parameters. Default is false.
        """
        ...
    
    def ReadSpacingFromFileOn(self):
        """
        V.ReadSpacingFromFileOn()
        C++: virtual void ReadSpacingFromFileOn()
        
        Set/Get if data spacing should be calculated from the PNG file.
        Use default spacing if the PNG file don't have valid pixel per
        meter parameters. Default is false.
        """
        ...
    
    def SafeDownCast(self, vtkObjectBase):
        """
        V.SafeDownCast(vtkObjectBase) -> vtkPNGReader
        C++: static vtkPNGReader *SafeDownCast(vtkObjectBase *o)
        """
        ...
    
    def SetReadSpacingFromFile(self, bool):
        """
        V.SetReadSpacingFromFile(bool)
        C++: virtual void SetReadSpacingFromFile(bool _arg)
        
        Set/Get if data spacing should be calculated from the PNG file.
        Use default spacing if the PNG file don't have valid pixel per
        meter parameters. Default is false.
        """
        ...
    
    def __delattr__(self, *args, **kwargs):
        """ Implement delattr(self, name). """
        ...
    
    def __getattribute__(self, *args, **kwargs):
        """ Return getattr(self, name). """
        ...
    
    def __init__(self, *args, **kwargs) -> None:
        ...
    
    @staticmethod
    def __new__(*args, **kwargs):
        """ Create and return a new object.  See help(type) for accurate signature. """
        ...
    
    def __repr__(self, *args, **kwargs):
        """ Return repr(self). """
        ...
    
    def __setattr__(self, *args, **kwargs):
        """ Implement setattr(self, name, value). """
        ...
    
    def __str__(self, *args, **kwargs) -> str:
        """ Return str(self). """
        ...
    
    __this__ = ...
    __dict__ = ...
    __vtkname__ = ...


