# encoding: utf-8
# module vtkmodules.vtkCommonDataModel
# from C:\Users\xukai\Downloads\发票2\venv\Lib\site-packages\vtkmodules\vtkCommonDataModel.cp311-win_amd64.pyd
# by generator 1.147
# no doc

# imports
import vtkmodules.vtkCommonCore as __vtkmodules_vtkCommonCore
import vtkmodules.vtkCommonMath as __vtkmodules_vtkCommonMath
import vtkmodules.vtkCommonTransforms as __vtkmodules_vtkCommonTransforms


from .vtkDataObjectTree import vtkDataObjectTree

class vtkPartitionedDataSet(vtkDataObjectTree):
    """
    vtkPartitionedDataSet - composite dataset to encapsulates a dataset
    consisting of partitions.
    
    Superclass: vtkDataObjectTree
    
    A vtkPartitionedDataSet dataset groups multiple datasets together.
    For example, say a simulation running in parallel on 16 processes
    generated 16 datasets that when considering together form a whole
    dataset. These are referred to as the partitions of the whole
    dataset. Now imagine that we want to load a volume of 16 partitions
    in a visualization cluster of 4 nodes. Each node could get 4
    partitions, not necessarily forming a whole rectangular region. In
    this case, it is not possible to append the 4 partitions together
    into a vtkImageData. We can then collect these 4 partitions together
    using a vtkPartitionedDataSet.
    
    It is required that all non-empty partitions have the same arrays and
    that they can be processed together as a whole by the same kind of
    filter. However, it is not required that they are of the same type.
    For example, it is possible to have structured datasets together with
    unstructured datasets as long as they are compatible meshes (i.e. can
    be processed together for the same kind of filter).
    """
    def GetData(self, info): # real signature unknown; restored from __doc__
        """
        GetData(info:vtkInformation) -> vtkPartitionedDataSet
        C++: static vtkPartitionedDataSet *GetData(vtkInformation *info)
        GetData(v:vtkInformationVector, i:int=0) -> vtkPartitionedDataSet
        C++: static vtkPartitionedDataSet *GetData(
            vtkInformationVector *v, int i=0)
        
        Retrieve an instance of this class from an information object.
        """
        return vtkPartitionedDataSet

    def GetDataObjectType(self): # real signature unknown; restored from __doc__
        """
        GetDataObjectType(self) -> int
        C++: int GetDataObjectType() override;
        
        Return class name of data type (see vtkType.h for definitions).
        """
        return 0

    def GetMetaData(self, idx): # real signature unknown; restored from __doc__
        """
        GetMetaData(self, idx:int) -> vtkInformation
        C++: vtkInformation *GetMetaData(unsigned int idx)
        GetMetaData(self, iter:vtkCompositeDataIterator) -> vtkInformation
        C++: vtkInformation *GetMetaData(vtkCompositeDataIterator *iter)
            override;
        
        Returns the meta-data for the partition. If none is already
        present, a new vtkInformation object will be allocated. Use
        HasMetaData to avoid allocating vtkInformation objects.
        """
        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 GetNumberOfPartitions(self): # real signature unknown; restored from __doc__
        """
        GetNumberOfPartitions(self) -> int
        C++: unsigned int GetNumberOfPartitions()
        
        Returns the number of partitions.
        """
        return 0

    def GetPartition(self, idx): # real signature unknown; restored from __doc__
        """
        GetPartition(self, idx:int) -> vtkDataSet
        C++: vtkDataSet *GetPartition(unsigned int idx)
        
        Returns the partition at the given index.
        """
        return vtkDataSet

    def GetPartitionAsDataObject(self, idx): # real signature unknown; restored from __doc__
        """
        GetPartitionAsDataObject(self, idx:int) -> vtkDataObject
        C++: vtkDataObject *GetPartitionAsDataObject(unsigned int idx)
        """
        return vtkDataObject

    def HasMetaData(self, idx): # real signature unknown; restored from __doc__
        """
        HasMetaData(self, idx:int) -> int
        C++: int HasMetaData(unsigned int idx)
        HasMetaData(self, iter:vtkCompositeDataIterator) -> int
        C++: int HasMetaData(vtkCompositeDataIterator *iter) override;
        
        Returns true if meta-data is available for a given partition.
        """
        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) -> vtkPartitionedDataSet
        C++: vtkPartitionedDataSet *NewInstance()
        """
        return vtkPartitionedDataSet

    def RemoveNullPartitions(self): # real signature unknown; restored from __doc__
        """
        RemoveNullPartitions(self) -> None
        C++: void RemoveNullPartitions()
        
        Removes all partitions that have null datasets and resizes the
        dataset. Note any meta data associated with the null datasets
        will get lost.
        """
        pass

    def SafeDownCast(self, o): # real signature unknown; restored from __doc__
        """
        SafeDownCast(o:vtkObjectBase) -> vtkPartitionedDataSet
        C++: static vtkPartitionedDataSet *SafeDownCast(vtkObjectBase *o)
        """
        return vtkPartitionedDataSet

    def SetNumberOfPartitions(self, numPartitions): # real signature unknown; restored from __doc__
        """
        SetNumberOfPartitions(self, numPartitions:int) -> None
        C++: void SetNumberOfPartitions(unsigned int numPartitions)
        
        Set the number of partitions. This will cause allocation if the
        new number of partitions is greater than the current size. All
        new partitions are initialized to null.
        """
        pass

    def SetPartition(self, idx, partition): # real signature unknown; restored from __doc__
        """
        SetPartition(self, idx:int, partition:vtkDataObject) -> None
        C++: void SetPartition(unsigned int idx, vtkDataObject *partition)
        
        Sets the data object as the given partition. The total number of
        partitions will be resized to fit the requested partition no.
        """
        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__': 'vtkPartitionedDataSet', 'IsTypeOf': <method 'IsTypeOf' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, 'IsA': <method 'IsA' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, 'SafeDownCast': <method 'SafeDownCast' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, 'NewInstance': <method 'NewInstance' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, 'GetNumberOfGenerationsFromBaseType': <method 'GetNumberOfGenerationsFromBaseType' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, 'GetNumberOfGenerationsFromBase': <method 'GetNumberOfGenerationsFromBase' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, 'GetDataObjectType': <method 'GetDataObjectType' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, 'SetNumberOfPartitions': <method 'SetNumberOfPartitions' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, 'GetNumberOfPartitions': <method 'GetNumberOfPartitions' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, 'GetPartition': <method 'GetPartition' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, 'GetPartitionAsDataObject': <method 'GetPartitionAsDataObject' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, 'SetPartition': <method 'SetPartition' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, 'HasMetaData': <method 'HasMetaData' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, 'GetMetaData': <method 'GetMetaData' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, 'GetData': <method 'GetData' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, 'RemoveNullPartitions': <method 'RemoveNullPartitions' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, '__new__': <built-in method __new__ of type object at 0x00007FF81D63D4C0>, '__repr__': <slot wrapper '__repr__' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, '__str__': <slot wrapper '__str__' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, '__getattribute__': <slot wrapper '__getattribute__' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, '__setattr__': <slot wrapper '__setattr__' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, '__delattr__': <slot wrapper '__delattr__' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, '__dict__': <attribute '__dict__' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, '__this__': <attribute '__this__' of 'vtkmodules.vtkCommonDataModel.vtkPartitionedDataSet' objects>, '__doc__': 'vtkPartitionedDataSet - composite dataset to encapsulates a dataset\\nconsisting of partitions.\\n\\nSuperclass: vtkDataObjectTree\\n\\nA vtkPartitionedDataSet dataset groups multiple datasets together.\\nFor example, say a simulation running in parallel on 16 processes\\ngenerated 16 datasets that when considering together form a whole\\ndataset. These are referred to as the partitions of the whole\\ndataset. Now imagine that we want to load a volume of 16 partitions\\nin a visualization cluster of 4 nodes. Each node could get 4\\npartitions, not necessarily forming a whole rectangular region. In\\nthis case, it is not possible to append the 4 partitions together\\ninto a vtkImageData. We can then collect these 4 partitions together\\nusing a vtkPartitionedDataSet.\\n\\nIt is required that all non-empty partitions have the same arrays and\\nthat they can be processed together as a whole by the same kind of\\nfilter. However, it is not required that they are of the same type.\\nFor example, it is possible to have structured datasets together with\\nunstructured datasets as long as they are compatible meshes (i.e. can\\nbe processed together for the same kind of filter).\\n\\n'})"
    __vtkname__ = 'vtkPartitionedDataSet'


