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 =========================================================================*/
44 #ifndef __vtkMultiBlockDataSet_h
45 #define __vtkMultiBlockDataSet_h
46 
47 #include "vtkCompositeDataSet.h"
48 
50 {
51 public:
52  static vtkMultiBlockDataSet* New();
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
58 
62  void SetNumberOfBlocks(unsigned int numBlocks);
63 
65  unsigned int GetNumberOfBlocks();
66 
70  vtkDataObject* GetBlock(unsigned int blockno);
71 
74  void SetBlock(unsigned int blockno, vtkDataObject* block);
75 
77  void RemoveBlock(unsigned int blockno);
78 
80 
81  int HasMetaData(unsigned int blockno)
82  { return this->Superclass::HasChildMetaData(blockno); }
84 
86 
89  vtkInformation* GetMetaData(unsigned int blockno)
90  { return this->Superclass::GetChildMetaData(blockno); }
92 
93  //BTX
95 
98  //ETX
100 
102 
104  { return this->Superclass::GetMetaData(iter); }
106 
108 
110  { return this->Superclass::HasMetaData(iter); }
112 
113 //BTX
114 protected:
117 
118 private:
119  vtkMultiBlockDataSet(const vtkMultiBlockDataSet&); // Not implemented.
120  void operator=(const vtkMultiBlockDataSet&); // Not implemented.
121 //ETX
122 };
123 
124 #endif
125 
126 
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_FILTERING_EXPORT
virtual vtkInformation * GetMetaData(vtkCompositeDataIterator *iter)
virtual int GetDataObjectType()
int HasMetaData(unsigned int blockno)
vtkInformation * GetMetaData(unsigned int blockno)
superclass for composite data iterators
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
Definition: vtkIndent.h:37
static vtkCompositeDataSet * GetData(vtkInformation *info)
Composite dataset that organizes datasets into blocks.
Store zero or more vtkInformation instances.
#define VTK_MULTIBLOCK_DATA_SET
Definition: vtkType.h:79
helper class to get VTK data object types as string and instantiate them
virtual int HasMetaData(vtkCompositeDataIterator *iter)