# 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 vtkMetaImageWriter(vtkImageWriter):
    """
    vtkMetaImageWriter - write a binary UNC meta image data
    
    Superclass: vtkImageWriter
    
    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.
    
    @sa
    vtkImageWriter vtkMetaImageReader
    """
    def GetCompression(self): # real signature unknown; restored from __doc__
        """
        GetCompression(self) -> bool
        C++: virtual bool GetCompression(void)
        """
        return False

    def GetFileName(self): # real signature unknown; restored from __doc__
        """
        GetFileName(self) -> str
        C++: char *GetFileName() override;
        """
        return ""

    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 GetRAWFileName(self): # real signature unknown; restored from __doc__
        """
        GetRAWFileName(self) -> str
        C++: virtual char *GetRAWFileName()
        """
        return ""

    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) -> vtkMetaImageWriter
        C++: vtkMetaImageWriter *NewInstance()
        """
        return vtkMetaImageWriter

    def SafeDownCast(self, o): # real signature unknown; restored from __doc__
        """
        SafeDownCast(o:vtkObjectBase) -> vtkMetaImageWriter
        C++: static vtkMetaImageWriter *SafeDownCast(vtkObjectBase *o)
        """
        return vtkMetaImageWriter

    def SetCompression(self, compress): # real signature unknown; restored from __doc__
        """
        SetCompression(self, compress:bool) -> None
        C++: virtual void SetCompression(bool compress)
        """
        pass

    def SetFileName(self, fname): # real signature unknown; restored from __doc__
        """
        SetFileName(self, fname:str) -> None
        C++: void SetFileName(const char *fname) override;
        
        Specify file name of meta file
        """
        pass

    def SetRAWFileName(self, fname): # real signature unknown; restored from __doc__
        """
        SetRAWFileName(self, fname:str) -> None
        C++: virtual void SetRAWFileName(const char *fname)
        
        Specify the file name of the raw image data.
        """
        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 __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__\': \'vtkMetaImageWriter\', \'IsTypeOf\': <method \'IsTypeOf\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'IsA\': <method \'IsA\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'SafeDownCast\': <method \'SafeDownCast\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'NewInstance\': <method \'NewInstance\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'GetNumberOfGenerationsFromBaseType\': <method \'GetNumberOfGenerationsFromBaseType\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'GetNumberOfGenerationsFromBase\': <method \'GetNumberOfGenerationsFromBase\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'SetFileName\': <method \'SetFileName\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'GetFileName\': <method \'GetFileName\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'SetRAWFileName\': <method \'SetRAWFileName\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'GetRAWFileName\': <method \'GetRAWFileName\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'SetCompression\': <method \'SetCompression\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'GetCompression\': <method \'GetCompression\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'Write\': <method \'Write\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'__new__\': <built-in method __new__ of type object at 0x00007FF8393B6710>, \'__repr__\': <slot wrapper \'__repr__\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'__str__\': <slot wrapper \'__str__\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'__getattribute__\': <slot wrapper \'__getattribute__\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'__setattr__\': <slot wrapper \'__setattr__\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'__delattr__\': <slot wrapper \'__delattr__\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'__dict__\': <attribute \'__dict__\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'__this__\': <attribute \'__this__\' of \'vtkmodules.vtkIOImage.vtkMetaImageWriter\' objects>, \'__doc__\': \'vtkMetaImageWriter - write a binary UNC meta image data\\n\\nSuperclass: vtkImageWriter\\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@sa\\nvtkImageWriter vtkMetaImageReader\\n\\n\'})'
    __vtkname__ = 'vtkMetaImageWriter'


