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 "vtkCommonDataModelModule.h" // For export macro
48 #include "vtkDataObjectTree.h"
49 
51 {
52 public:
53  static vtkMultiBlockDataSet* New();
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
59 
63  void SetNumberOfBlocks(unsigned int numBlocks);
64 
66  unsigned int GetNumberOfBlocks();
67 
71  vtkDataObject* GetBlock(unsigned int blockno);
72 
75  void SetBlock(unsigned int blockno, vtkDataObject* block);
76 
78  void RemoveBlock(unsigned int blockno);
79 
81 
82  int HasMetaData(unsigned int blockno)
83  { return this->Superclass::HasChildMetaData(blockno); }
85 
87 
90  vtkInformation* GetMetaData(unsigned int blockno)
91  { return this->Superclass::GetChildMetaData(blockno); }
93 
94  //BTX
96 
99  //ETX
101 
103 
105  { return this->Superclass::GetMetaData(iter); }
107 
109 
111  { return this->Superclass::HasMetaData(iter); }
113 
114 //BTX
115 protected:
118 
119 private:
120  vtkMultiBlockDataSet(const vtkMultiBlockDataSet&); // Not implemented.
121  void operator=(const vtkMultiBlockDataSet&); // Not implemented.
122 //ETX
123 };
124 
125 #endif
126 
127 
static vtkDataObject * New()
provides implementation for most abstract methods in the superclass vtkCompositeDataSet ...
Store vtkAlgorithm input/output information.
virtual vtkInformation * GetMetaData(vtkCompositeDataIterator *iter)
virtual int GetDataObjectType()
int HasMetaData(unsigned int blockno)
vtkInformation * GetMetaData(unsigned int blockno)
superclass for composite data iterators
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
Composite dataset that organizes datasets into blocks.
Store zero or more vtkInformation instances.
static vtkDataObjectTree * GetData(vtkInformation *info)
#define VTK_MULTIBLOCK_DATA_SET
Definition: vtkType.h:77
general representation of visualization data
Definition: vtkDataObject.h:64
virtual int HasMetaData(vtkCompositeDataIterator *iter)
#define VTKCOMMONDATAMODEL_EXPORT