# 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 .vtkImageReader2 import vtkImageReader2

class vtkMetaImageReader(vtkImageReader2):
    """
    vtkMetaImageReader - read binary UNC meta image data
    
    Superclass: vtkImageReader2
    
    One of the formats for which a reader is already available in the
    toolkit is the MetaImage file format. This is a fairly simple yet
    powerful format consisting of a text header and a binary data
    section. The following instructions describe how you can write a
    MetaImage header for the data that you download from the BrainWeb
    page.
    
    The minimal structure of the MetaImage header is the following:
    
    
       NDims = 3
       DimSize = 181 217 181
       ElementType = MET_UCHAR
       ElementSpacing = 1.0 1.0 1.0
       ElementByteOrderMSB = False
       ElementDataFile = brainweb1.raw
    
    * NDims indicate that this is a 3D image. ITK can handle images of
      arbitrary dimension.
    * DimSize indicates the size of the volume in pixels along each
      direction.
    * ElementType indicate the primitive type used for pixels. In this
      case is "unsigned char", implying that the data is digitized in 8
      bits / pixel.
    * ElementSpacing indicates the physical separation between the center
    of one pixel and the center of the next pixel along each direction in
    space. The units used are millimeters.
    * ElementByteOrderMSB indicates is the data is encoded in little or
      big endian order. You might want to play with this value when
      moving data between different computer platforms.
    * ElementDataFile is the name of the file containing the raw binary
      data of the image. This file must be in the same directory as the
      header.
    
    MetaImage headers are expected to have extension: ".mha" or ".mhd"
    
    Once you write this header text file, it should be possible to read
    the image into your ITK based application using the
    itk::FileIOToImageFilter class.
    """
    def CanReadFile(self, name): # real signature unknown; restored from __doc__
        """
        CanReadFile(self, name:str) -> int
        C++: int CanReadFile(const char *name) override;
        
        Test whether the file with the given name can be read by this
        reader.
        """
        return 0

    def GetAnatomicalOrientation(self): # real signature unknown; restored from __doc__
        """
        GetAnatomicalOrientation(self) -> str
        C++: virtual char *GetAnatomicalOrientation()
        """
        return ""

    def GetBitsAllocated(self): # real signature unknown; restored from __doc__
        """
        GetBitsAllocated(self) -> int
        C++: virtual int GetBitsAllocated()
        """
        return 0

    def GetDataByteOrder(self): # real signature unknown; restored from __doc__
        """
        GetDataByteOrder(self) -> int
        C++: int GetDataByteOrder(void) override;
        """
        return 0

    def GetDate(self): # real signature unknown; restored from __doc__
        """
        GetDate(self) -> str
        C++: virtual char *GetDate()
        """
        return ""

    def GetDescriptiveName(self): # real signature unknown; restored from __doc__
        """
        GetDescriptiveName(self) -> str
        C++: const char *GetDescriptiveName() override;
        
        Return a descriptive name for the file format that might be
        useful in a GUI.
        """
        return ""

    def GetDistanceUnits(self): # real signature unknown; restored from __doc__
        """
        GetDistanceUnits(self) -> str
        C++: virtual char *GetDistanceUnits()
        """
        return ""

    def GetFileExtensions(self): # real signature unknown; restored from __doc__
        """
        GetFileExtensions(self) -> str
        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
        """
        return ""

    def GetGantryAngle(self): # real signature unknown; restored from __doc__
        """
        GetGantryAngle(self) -> float
        C++: virtual double GetGantryAngle()
        """
        return 0.0

    def GetHeight(self): # real signature unknown; restored from __doc__
        """
        GetHeight(self) -> int
        C++: int GetHeight()
        """
        return 0

    def GetImageNumber(self): # real signature unknown; restored from __doc__
        """
        GetImageNumber(self) -> str
        C++: virtual char *GetImageNumber()
        """
        return ""

    def GetImagePositionPatient(self): # real signature unknown; restored from __doc__
        """
        GetImagePositionPatient(self) -> Pointer
        C++: double *GetImagePositionPatient()
        """
        pass

    def GetModality(self): # real signature unknown; restored from __doc__
        """
        GetModality(self) -> str
        C++: virtual char *GetModality()
        """
        return ""

    def GetNumberOfComponents(self): # real signature unknown; restored from __doc__
        """
        GetNumberOfComponents(self) -> int
        C++: int GetNumberOfComponents()
        """
        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 GetPatientID(self): # real signature unknown; restored from __doc__
        """
        GetPatientID(self) -> str
        C++: virtual char *GetPatientID()
        """
        return ""

    def GetPatientName(self): # real signature unknown; restored from __doc__
        """
        GetPatientName(self) -> str
        C++: virtual char *GetPatientName()
        """
        return ""

    def GetPixelRepresentation(self): # real signature unknown; restored from __doc__
        """
        GetPixelRepresentation(self) -> int
        C++: int GetPixelRepresentation()
        """
        return 0

    def GetPixelSpacing(self): # real signature unknown; restored from __doc__
        """
        GetPixelSpacing(self) -> Pointer
        C++: double *GetPixelSpacing()
        """
        pass

    def GetRescaleOffset(self): # real signature unknown; restored from __doc__
        """
        GetRescaleOffset(self) -> float
        C++: virtual double GetRescaleOffset()
        """
        return 0.0

    def GetRescaleSlope(self): # real signature unknown; restored from __doc__
        """
        GetRescaleSlope(self) -> float
        C++: virtual double GetRescaleSlope()
        """
        return 0.0

    def GetSeries(self): # real signature unknown; restored from __doc__
        """
        GetSeries(self) -> str
        C++: virtual char *GetSeries()
        """
        return ""

    def GetStudyID(self): # real signature unknown; restored from __doc__
        """
        GetStudyID(self) -> str
        C++: virtual char *GetStudyID()
        """
        return ""

    def GetStudyUID(self): # real signature unknown; restored from __doc__
        """
        GetStudyUID(self) -> str
        C++: virtual char *GetStudyUID()
        """
        return ""

    def GetTransferSyntaxUID(self): # real signature unknown; restored from __doc__
        """
        GetTransferSyntaxUID(self) -> str
        C++: virtual char *GetTransferSyntaxUID()
        """
        return ""

    def GetWidth(self): # real signature unknown; restored from __doc__
        """
        GetWidth(self) -> int
        C++: int GetWidth()
        """
        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) -> vtkMetaImageReader
        C++: vtkMetaImageReader *NewInstance()
        """
        return vtkMetaImageReader

    def SafeDownCast(self, o): # real signature unknown; restored from __doc__
        """
        SafeDownCast(o:vtkObjectBase) -> vtkMetaImageReader
        C++: static vtkMetaImageReader *SafeDownCast(vtkObjectBase *o)
        """
        return vtkMetaImageReader

    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__\': \'vtkMetaImageReader\', \'IsTypeOf\': <method \'IsTypeOf\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'IsA\': <method \'IsA\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'SafeDownCast\': <method \'SafeDownCast\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'NewInstance\': <method \'NewInstance\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetNumberOfGenerationsFromBaseType\': <method \'GetNumberOfGenerationsFromBaseType\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetNumberOfGenerationsFromBase\': <method \'GetNumberOfGenerationsFromBase\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetFileExtensions\': <method \'GetFileExtensions\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetDescriptiveName\': <method \'GetDescriptiveName\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetPixelSpacing\': <method \'GetPixelSpacing\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetWidth\': <method \'GetWidth\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetHeight\': <method \'GetHeight\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetImagePositionPatient\': <method \'GetImagePositionPatient\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetNumberOfComponents\': <method \'GetNumberOfComponents\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetPixelRepresentation\': <method \'GetPixelRepresentation\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetDataByteOrder\': <method \'GetDataByteOrder\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetRescaleSlope\': <method \'GetRescaleSlope\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetRescaleOffset\': <method \'GetRescaleOffset\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetBitsAllocated\': <method \'GetBitsAllocated\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetDistanceUnits\': <method \'GetDistanceUnits\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetAnatomicalOrientation\': <method \'GetAnatomicalOrientation\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetGantryAngle\': <method \'GetGantryAngle\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetPatientName\': <method \'GetPatientName\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetPatientID\': <method \'GetPatientID\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetDate\': <method \'GetDate\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetSeries\': <method \'GetSeries\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetImageNumber\': <method \'GetImageNumber\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetModality\': <method \'GetModality\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetStudyID\': <method \'GetStudyID\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetStudyUID\': <method \'GetStudyUID\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'GetTransferSyntaxUID\': <method \'GetTransferSyntaxUID\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'CanReadFile\': <method \'CanReadFile\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'__new__\': <built-in method __new__ of type object at 0x00007FF8393B63A0>, \'__repr__\': <slot wrapper \'__repr__\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'__str__\': <slot wrapper \'__str__\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'__getattribute__\': <slot wrapper \'__getattribute__\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'__setattr__\': <slot wrapper \'__setattr__\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'__delattr__\': <slot wrapper \'__delattr__\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'__dict__\': <attribute \'__dict__\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'__this__\': <attribute \'__this__\' of \'vtkmodules.vtkIOImage.vtkMetaImageReader\' objects>, \'__doc__\': \'vtkMetaImageReader - read binary UNC meta image data\\n\\nSuperclass: vtkImageReader2\\n\\nOne of the formats for which a reader is already available in the\\ntoolkit is the MetaImage file format. This is a fairly simple yet\\npowerful format consisting of a text header and a binary data\\nsection. The following instructions describe how you can write a\\nMetaImage header for the data that you download from the BrainWeb\\npage.\\n\\nThe minimal structure of the MetaImage header is the following:\\n\\n\\n   NDims = 3\\n   DimSize = 181 217 181\\n   ElementType = MET_UCHAR\\n   ElementSpacing = 1.0 1.0 1.0\\n   ElementByteOrderMSB = False\\n   ElementDataFile = brainweb1.raw\\n\\n* NDims indicate that this is a 3D image. ITK can handle images of\\n  arbitrary dimension.\\n* DimSize indicates the size of the volume in pixels along each\\n  direction.\\n* ElementType indicate the primitive type used for pixels. In this\\n  case is "unsigned char", implying that the data is digitized in 8\\n  bits / pixel.\\n* ElementSpacing indicates the physical separation between the center\\nof one pixel and the center of the next pixel along each direction in\\nspace. The units used are millimeters.\\n* ElementByteOrderMSB indicates is the data is encoded in little or\\n  big endian order. You might want to play with this value when\\n  moving data between different computer platforms.\\n* ElementDataFile is the name of the file containing the raw binary\\n  data of the image. This file must be in the same directory as the\\n  header.\\n\\nMetaImage headers are expected to have extension: ".mha" or ".mhd"\\n\\nOnce you write this header text file, it should be possible to read\\nthe image into your ITK based application using the\\nitk::FileIOToImageFilter class.\\n\\n\'})'
    __vtkname__ = 'vtkMetaImageReader'


