VTK  9.0.20210117
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 =========================================================================*/
39 #ifndef vtkMultiBlockDataSet_h
40 #define vtkMultiBlockDataSet_h
41 
42 #include "vtkCommonDataModelModule.h" // For export macro
43 #include "vtkDataObjectTree.h"
44 
45 class VTKCOMMONDATAMODEL_EXPORT vtkMultiBlockDataSet : public vtkDataObjectTree
46 {
47 public:
48  static vtkMultiBlockDataSet* New();
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
56  int GetDataObjectType() override { return VTK_MULTIBLOCK_DATA_SET; }
57 
63  void SetNumberOfBlocks(unsigned int numBlocks);
64 
68  unsigned int GetNumberOfBlocks();
69 
74  vtkDataObject* GetBlock(unsigned int blockno);
75 
85  void SetBlock(unsigned int blockno, vtkDataObject* block);
86 
90  void RemoveBlock(unsigned int blockno);
91 
95  int HasMetaData(unsigned int blockno) { return this->Superclass::HasChildMetaData(blockno); }
96 
102  vtkInformation* GetMetaData(unsigned int blockno)
103  {
104  return this->Superclass::GetChildMetaData(blockno);
105  }
106 
108 
112  static vtkMultiBlockDataSet* GetData(vtkInformationVector* v, int i = 0);
114 
119  {
120  return this->Superclass::GetMetaData(iter);
121  }
122 
127  {
128  return this->Superclass::HasMetaData(iter);
129  }
130 
131 protected:
133  ~vtkMultiBlockDataSet() override;
134 
141 
142 private:
144  void operator=(const vtkMultiBlockDataSet&) = delete;
145 };
146 
147 #endif
vtkDataObjectTree
provides implementation for most abstract methods in the superclass vtkCompositeDataSet
Definition: vtkDataObjectTree.h:46
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:45
vtkMultiBlockDataSet::GetMetaData
vtkInformation * GetMetaData(unsigned int blockno)
Returns the meta-data for the block.
Definition: vtkMultiBlockDataSet.h:102
vtkCompositeDataIterator
superclass for composite data iterators
Definition: vtkCompositeDataIterator.h:35
vtkDataObjectTree::CreateForCopyStructure
virtual vtkDataObjectTree * CreateForCopyStructure(vtkDataObjectTree *other)
When copying structure from another vtkDataObjectTree, this method gets called for create a new non-l...
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkDataObjectTree::GetData
static vtkDataObjectTree * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
vtkMultiBlockDataSet::GetMetaData
vtkInformation * GetMetaData(vtkCompositeDataIterator *iter) override
Unhiding superclass method.
Definition: vtkMultiBlockDataSet.h:118
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
Definition: vtkX3D.h:382
vtkMultiBlockDataSet::HasMetaData
int HasMetaData(vtkCompositeDataIterator *iter) override
Unhiding superclass method.
Definition: vtkMultiBlockDataSet.h:126
VTK_MULTIBLOCK_DATA_SET
#define VTK_MULTIBLOCK_DATA_SET
Definition: vtkType.h:90
vtkMultiBlockDataSet::GetDataObjectType
int GetDataObjectType() override
Return class name of data type (see vtkType.h for definitions).
Definition: vtkMultiBlockDataSet.h:56
vtkMultiBlockDataSet::HasMetaData
int HasMetaData(unsigned int blockno)
Returns true if meta-data is available for a given block.
Definition: vtkMultiBlockDataSet.h:95
vtkDataObjectTree::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObjectTree.h
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:59
vtkDataObject::New
static vtkDataObject * New()