VTK
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 
80  void SetBlock(unsigned int blockno, vtkDataObject* block);
81 
85  void RemoveBlock(unsigned int blockno);
86 
90  int HasMetaData(unsigned int blockno)
91  { return this->Superclass::HasChildMetaData(blockno); }
92 
98  vtkInformation* GetMetaData(unsigned int blockno)
99  { return this->Superclass::GetChildMetaData(blockno); }
100 
102 
108 
113  { return this->Superclass::GetMetaData(iter); }
114 
119  { return this->Superclass::HasMetaData(iter); }
120 
121 protected:
123  ~vtkMultiBlockDataSet() override;
124 
125 private:
127  void operator=(const vtkMultiBlockDataSet&) = delete;
128 
129 };
130 
131 #endif
132 
133 
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:33
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:104
general representation of visualization data
Definition: vtkDataObject.h:58
int GetDataObjectType() override
Return class name of data type (see vtkType.h for definitions).