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=========================================================================*/
54#ifndef vtkMultiBlockDataSet_h
55#define vtkMultiBlockDataSet_h
56
57#include "vtkCommonDataModelModule.h" // For export macro
58#include "vtkDataObjectTree.h"
59
60class VTKCOMMONDATAMODEL_EXPORT vtkMultiBlockDataSet : public vtkDataObjectTree
61{
62public:
65 void PrintSelf(ostream& os, vtkIndent indent) override;
66
71 int GetDataObjectType() override { return VTK_MULTIBLOCK_DATA_SET; }
72
78 void SetNumberOfBlocks(unsigned int numBlocks);
79
83 unsigned int GetNumberOfBlocks();
84
89 vtkDataObject* GetBlock(unsigned int blockno);
90
100 void SetBlock(unsigned int blockno, vtkDataObject* block);
101
105 void RemoveBlock(unsigned int blockno);
106
110 int HasMetaData(unsigned int blockno) { return this->Superclass::HasChildMetaData(blockno); }
111
117 vtkInformation* GetMetaData(unsigned int blockno)
118 {
119 return this->Superclass::GetChildMetaData(blockno);
120 }
121
123
129
134 {
135 return this->Superclass::GetMetaData(iter);
136 }
137
142 {
143 return this->Superclass::HasMetaData(iter);
144 }
145
146protected:
149
156
157private:
159 void operator=(const vtkMultiBlockDataSet&) = delete;
160};
161
162#endif
superclass for composite data iterators
provides implementation for most abstract methods in the superclass vtkCompositeDataSet
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Composite dataset that organizes datasets into blocks.
vtkInformation * GetMetaData(unsigned int blockno)
Returns the meta-data for the block.
static vtkMultiBlockDataSet * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
void SetNumberOfBlocks(unsigned int numBlocks)
Set the number of blocks.
void RemoveBlock(unsigned int blockno)
Remove the given block from the dataset.
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.
~vtkMultiBlockDataSet() override
vtkDataObjectTree * CreateForCopyStructure(vtkDataObjectTree *other) override
Overridden to create a vtkMultiPieceDataSet whenever a vtkPartitionedDataSet is encountered.
void SetBlock(unsigned int blockno, vtkDataObject *block)
Sets the data object as the given block.
unsigned int GetNumberOfBlocks()
Returns the number of blocks.
static vtkMultiBlockDataSet * New()
int HasMetaData(unsigned int blockno)
Returns true if meta-data is available for a given block.
vtkInformation * GetMetaData(vtkCompositeDataIterator *iter) override
Unhiding superclass method.
static vtkMultiBlockDataSet * GetData(vtkInformationVector *v, int i=0)
Retrieve an instance of this class from an information object.
vtkDataObject * GetBlock(unsigned int blockno)
Returns the block at the given index.
int HasMetaData(vtkCompositeDataIterator *iter) override
Unhiding superclass method.
#define VTK_MULTIBLOCK_DATA_SET
Definition vtkType.h:90