VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALMANUAL
39 
40 VTK_ABI_NAMESPACE_BEGIN
41 class VTKCOMMONDATAMODEL_EXPORT VTK_MARSHALMANUAL vtkMultiBlockDataSet : public vtkDataObjectTree
42 {
43 public:
44  static vtkMultiBlockDataSet* New();
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
52  int GetDataObjectType() VTK_FUTURE_CONST override { return VTK_MULTIBLOCK_DATA_SET; }
53 
59  void SetNumberOfBlocks(unsigned int numBlocks);
60 
64  unsigned int GetNumberOfBlocks();
65 
70  vtkDataObject* GetBlock(unsigned int blockno);
71 
81  void SetBlock(unsigned int blockno, vtkDataObject* block);
82 
86  void RemoveBlock(unsigned int blockno);
87 
91  vtkTypeBool HasMetaData(unsigned int blockno)
92  {
93  return this->Superclass::HasChildMetaData(blockno);
94  }
95 
101  vtkInformation* GetMetaData(unsigned int blockno)
102  {
103  return this->Superclass::GetChildMetaData(blockno);
104  }
105 
107 
111  static vtkMultiBlockDataSet* GetData(vtkInformationVector* v, int i = 0);
113 
118  {
119  return this->Superclass::GetMetaData(iter);
120  }
121 
126  {
127  return this->Superclass::HasMetaData(iter);
128  }
129 
130 protected:
132  ~vtkMultiBlockDataSet() override;
133 
140 
141 private:
143  void operator=(const vtkMultiBlockDataSet&) = delete;
144 };
145 
146 VTK_ABI_NAMESPACE_END
147 #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.
int GetDataObjectType() VTK_FUTURE_CONST override
Return class name of data type (see vtkType.h for definitions).
vtkInformation * GetMetaData(unsigned int blockno)
Returns the meta-data for the block.
superclass for composite data iterators
int vtkTypeBool
Definition: vtkABI.h:64
#define VTK_MARSHALMANUAL
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.
general representation of visualization data
Definition: vtkDataObject.h:55