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) { return this->Superclass::HasChildMetaData(blockno); }
91 
97  vtkInformation* GetMetaData(unsigned int blockno)
98  {
99  return this->Superclass::GetChildMetaData(blockno);
100  }
101 
103 
107  static vtkMultiBlockDataSet* GetData(vtkInformationVector* v, int i = 0);
109 
114  {
115  return this->Superclass::GetMetaData(iter);
116  }
117 
122  {
123  return this->Superclass::HasMetaData(iter);
124  }
125 
126 protected:
128  ~vtkMultiBlockDataSet() override;
129 
130 private:
132  void operator=(const vtkMultiBlockDataSet&) = delete;
133 };
134 
135 #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:97
vtkCompositeDataIterator
superclass for composite data iterators
Definition: vtkCompositeDataIterator.h:35
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:113
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:64
vtkX3D::info
Definition: vtkX3D.h:382
vtkMultiBlockDataSet::HasMetaData
int HasMetaData(vtkCompositeDataIterator *iter) override
Unhiding superclass method.
Definition: vtkMultiBlockDataSet.h:121
VTK_MULTIBLOCK_DATA_SET
#define VTK_MULTIBLOCK_DATA_SET
Definition: vtkType.h:98
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:90
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:58
vtkDataObject::New
static vtkDataObject * New()