VTK  9.2.6
vtkMultiBlockDataSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMultiBlockDataSet.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 =========================================================================*/
45 #ifndef vtkMultiBlockDataSet_h
46 #define vtkMultiBlockDataSet_h
47 
48 #include "vtkCommonDataModelModule.h" // For export macro
49 #include "vtkDataObjectTree.h"
50 
51 class VTKCOMMONDATAMODEL_EXPORT vtkMultiBlockDataSet : public vtkDataObjectTree
52 {
53 public:
54  static vtkMultiBlockDataSet* New();
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
62  int GetDataObjectType() override { return VTK_MULTIBLOCK_DATA_SET; }
63 
69  void SetNumberOfBlocks(unsigned int numBlocks);
70 
74  unsigned int GetNumberOfBlocks();
75 
80  vtkDataObject* GetBlock(unsigned int blockno);
81 
91  void SetBlock(unsigned int blockno, vtkDataObject* block);
92 
96  void RemoveBlock(unsigned int blockno);
97 
101  int HasMetaData(unsigned int blockno) { return this->Superclass::HasChildMetaData(blockno); }
102 
108  vtkInformation* GetMetaData(unsigned int blockno)
109  {
110  return this->Superclass::GetChildMetaData(blockno);
111  }
112 
114 
118  static vtkMultiBlockDataSet* GetData(vtkInformationVector* v, int i = 0);
120 
125  {
126  return this->Superclass::GetMetaData(iter);
127  }
128 
133  {
134  return this->Superclass::HasMetaData(iter);
135  }
136 
137 protected:
139  ~vtkMultiBlockDataSet() override;
140 
147 
148 private:
150  void operator=(const vtkMultiBlockDataSet&) = delete;
151 };
152 
153 #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.
int 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
a simple class to control print indentation
Definition: vtkIndent.h:39
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.
int 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:90
general representation of visualization data
Definition: vtkDataObject.h:65
int GetDataObjectType() override
Return class name of data type (see vtkType.h for definitions).