VTK
vtkPartitionedDataSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPartitionedDataSet.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
39 #ifndef vtkPartitionedDataSet_h
40 #define vtkPartitionedDataSet_h
41 
42 #include "vtkCommonDataModelModule.h" // For export macro
43 #include "vtkDataObjectTree.h"
44 
45 class vtkDataSet;
46 class VTKCOMMONDATAMODEL_EXPORT vtkPartitionedDataSet : public vtkDataObjectTree
47 {
48 public:
49  static vtkPartitionedDataSet* New();
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
58 
64  void SetNumberOfPartitions(unsigned int numPartitions);
65 
69  unsigned int GetNumberOfPartitions();
70 
72 
75  vtkDataSet* GetPartition(unsigned int idx);
76  vtkDataObject* GetPartitionAsDataObject(unsigned int idx);
78 
83  void SetPartition(unsigned int idx, vtkDataObject* partition);
84 
85 
89  int HasMetaData(unsigned int idx)
90  { return this->Superclass::HasChildMetaData(idx); }
91 
97  vtkInformation* GetMetaData(unsigned int idx)
98  { return this->Superclass::GetChildMetaData(idx); }
99 
101 
107 
112  { return this->Superclass::GetMetaData(iter); }
113 
118  { return this->Superclass::HasMetaData(iter); }
119 
120 protected:
122  ~vtkPartitionedDataSet() override;
123 
124 private:
126  void operator=(const vtkPartitionedDataSet&) = delete;
127 
128 };
129 
130 #endif
composite dataset to encapsulates a dataset consisting of partitions.
static vtkDataObject * New()
provides implementation for most abstract methods in the superclass vtkCompositeDataSet ...
Store vtkAlgorithm input/output information.
int HasMetaData(vtkCompositeDataIterator *iter) override
Unhiding superclass method.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
int HasMetaData(unsigned int idx)
Returns true if meta-data is available for a given partition.
#define VTK_PARTITIONED_DATA_SET
Definition: vtkType.h:128
superclass for composite data iterators
vtkInformation * GetMetaData(vtkCompositeDataIterator *iter) override
Unhiding superclass method.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkInformation * GetMetaData(unsigned int idx)
Returns the meta-data for the partition.
int GetDataObjectType() override
Return class name of data type (see vtkType.h for definitions).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
static vtkDataObjectTree * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
general representation of visualization data
Definition: vtkDataObject.h:64