VTK  9.0.3
vtkPartitionedDataSetCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPartitionedDataSetCollection.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 =========================================================================*/
27 #ifndef vtkPartitionedDataSetCollection_h
28 #define vtkPartitionedDataSetCollection_h
29 
30 #include "vtkCommonDataModelModule.h" // For export macro
31 #include "vtkDataObjectTree.h"
32 
34 
35 class VTKCOMMONDATAMODEL_EXPORT vtkPartitionedDataSetCollection : public vtkDataObjectTree
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
47 
53  void SetNumberOfPartitionedDataSets(unsigned int numDataSets);
54 
59 
65 
70  void SetPartitionedDataSet(unsigned int idx, vtkPartitionedDataSet* dataset);
71 
75  void RemovePartitionedDataSet(unsigned int idx);
76 
80  int HasMetaData(unsigned int idx) { return this->Superclass::HasChildMetaData(idx); }
81 
87  vtkInformation* GetMetaData(unsigned int idx) { return this->Superclass::GetChildMetaData(idx); }
88 
90 
96 
101  {
102  return this->Superclass::GetMetaData(iter);
103  }
104 
109  {
110  return this->Superclass::HasMetaData(iter);
111  }
112 
113 protected:
116 
117 private:
119  void operator=(const vtkPartitionedDataSetCollection&) = delete;
120 };
121 
122 #endif
superclass for composite data iterators
provides implementation for most abstract methods in the superclass vtkCompositeDataSet
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Composite dataset that groups datasets as a collection.
void RemovePartitionedDataSet(unsigned int idx)
Remove the given block from the dataset.
int HasMetaData(vtkCompositeDataIterator *iter) override
Unhiding superclass method.
unsigned int GetNumberOfPartitionedDataSets()
Returns the number of blocks.
void SetNumberOfPartitionedDataSets(unsigned int numDataSets)
Set the number of blocks.
vtkPartitionedDataSet * GetPartitionedDataSet(unsigned int idx)
Returns the block at the given index.
static vtkPartitionedDataSetCollection * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
static vtkPartitionedDataSetCollection * New()
static vtkPartitionedDataSetCollection * GetData(vtkInformationVector *v, int i=0)
void SetPartitionedDataSet(unsigned int idx, vtkPartitionedDataSet *dataset)
Sets the data object as the given block.
vtkInformation * GetMetaData(vtkCompositeDataIterator *iter) override
Unhiding superclass method.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int HasMetaData(unsigned int idx)
Returns true if meta-data is available for a given block.
vtkInformation * GetMetaData(unsigned int idx)
Returns the meta-data for the block.
int GetDataObjectType() override
Return class name of data type (see vtkType.h for definitions).
composite dataset to encapsulates a dataset consisting of partitions.
@ info
Definition: vtkX3D.h:382
#define VTK_PARTITIONED_DATA_SET_COLLECTION
Definition: vtkType.h:123