VTK  9.3.1
vtkMultiBlockDataSet.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
33 #ifndef vtkMultiBlockDataSet_h
34 #define vtkMultiBlockDataSet_h
35 
36 #include "vtkCommonDataModelModule.h" // For export macro
37 #include "vtkDataObjectTree.h"
38 
39 VTK_ABI_NAMESPACE_BEGIN
40 class VTKCOMMONDATAMODEL_EXPORT vtkMultiBlockDataSet : public vtkDataObjectTree
41 {
42 public:
43  static vtkMultiBlockDataSet* New();
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
51  int GetDataObjectType() override { return VTK_MULTIBLOCK_DATA_SET; }
52 
58  void SetNumberOfBlocks(unsigned int numBlocks);
59 
63  unsigned int GetNumberOfBlocks();
64 
69  vtkDataObject* GetBlock(unsigned int blockno);
70 
80  void SetBlock(unsigned int blockno, vtkDataObject* block);
81 
85  void RemoveBlock(unsigned int blockno);
86 
90  vtkTypeBool HasMetaData(unsigned int blockno)
91  {
92  return this->Superclass::HasChildMetaData(blockno);
93  }
94 
100  vtkInformation* GetMetaData(unsigned int blockno)
101  {
102  return this->Superclass::GetChildMetaData(blockno);
103  }
104 
106 
110  static vtkMultiBlockDataSet* GetData(vtkInformationVector* v, int i = 0);
112 
117  {
118  return this->Superclass::GetMetaData(iter);
119  }
120 
125  {
126  return this->Superclass::HasMetaData(iter);
127  }
128 
129 protected:
131  ~vtkMultiBlockDataSet() override;
132 
139 
140 private:
142  void operator=(const vtkMultiBlockDataSet&) = delete;
143 };
144 
145 VTK_ABI_NAMESPACE_END
146 #endif
vtkInformation * GetMetaData(vtkCompositeDataIterator *iter) override
Unhiding superclass method.
static vtkDataObject * New()
provides implementation for most abstract methods in the superclass vtkCompositeDataSet ...
Store vtkAlgorithm input/output information.
vtkTypeBool HasMetaData(unsigned int blockno)
Returns true if meta-data is available for a given block.
vtkInformation * GetMetaData(unsigned int blockno)
Returns the meta-data for the block.
superclass for composite data iterators
int vtkTypeBool
Definition: vtkABI.h:64
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual vtkDataObjectTree * CreateForCopyStructure(vtkDataObjectTree *other)
When copying structure from another vtkDataObjectTree, this method gets called for create a new non-l...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Composite dataset that organizes datasets into blocks.
vtkTypeBool HasMetaData(vtkCompositeDataIterator *iter) override
Unhiding superclass method.
Store zero or more vtkInformation instances.
static vtkDataObjectTree * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
#define VTK_MULTIBLOCK_DATA_SET
Definition: vtkType.h:78
general representation of visualization data
Definition: vtkDataObject.h:54
int GetDataObjectType() override
Return class name of data type (see vtkType.h for definitions).