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 =========================================================================*/
45 #ifndef vtkMultiBlockDataSet_h
46 #define vtkMultiBlockDataSet_h
47 
48 #include "vtkCommonDataModelModule.h" // For export macro
49 #include "vtkDataObjectTree.h"
50 
51 class VTKCOMMONDATAMODEL_EXPORT vtkMultiBlockDataSet : public vtkDataObjectTree
52 {
53 public:
56  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
57 
62  int GetDataObjectType() VTK_OVERRIDE {return VTK_MULTIBLOCK_DATA_SET;}
63 
69  void SetNumberOfBlocks(unsigned int numBlocks);
70 
74  unsigned int GetNumberOfBlocks();
75 
80  vtkDataObject* GetBlock(unsigned int blockno);
81 
86  void SetBlock(unsigned int blockno, vtkDataObject* block);
87 
91  void RemoveBlock(unsigned int blockno);
92 
96  int HasMetaData(unsigned int blockno)
97  { return this->Superclass::HasChildMetaData(blockno); }
98 
104  vtkInformation* GetMetaData(unsigned int blockno)
105  { return this->Superclass::GetChildMetaData(blockno); }
106 
108 
114 
119  { return this->Superclass::GetMetaData(iter); }
120 
124  int HasMetaData(vtkCompositeDataIterator* iter) VTK_OVERRIDE
125  { return this->Superclass::HasMetaData(iter); }
126 
127 protected:
129  ~vtkMultiBlockDataSet() VTK_OVERRIDE;
130 
131 private:
132  vtkMultiBlockDataSet(const vtkMultiBlockDataSet&) VTK_DELETE_FUNCTION;
133  void operator=(const vtkMultiBlockDataSet&) VTK_DELETE_FUNCTION;
134 
135 };
136 
137 #endif
138 
139 
superclass for composite data iterators
provides implementation for most abstract methods in the superclass vtkCompositeDataSet
general representation of visualization data
Definition: vtkDataObject.h:65
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Composite dataset that organizes datasets into blocks.
void SetNumberOfBlocks(unsigned int numBlocks)
Set the number of blocks.
void RemoveBlock(unsigned int blockno)
Remove the given block from the dataset.
int GetDataObjectType() override
Return class name of data type (see vtkType.h for definitions).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkMultiBlockDataSet() override
vtkInformation * GetMetaData(unsigned int blockno)
Returns the meta-data for the block.
static vtkMultiBlockDataSet * GetData(vtkInformationVector *v, int i=0)
vtkDataObject * GetBlock(unsigned int blockno)
Returns the block at the given index.
void SetBlock(unsigned int blockno, vtkDataObject *block)
Sets the data object as the given block.
unsigned int GetNumberOfBlocks()
Returns the number of blocks.
int HasMetaData(unsigned int blockno)
Returns true if meta-data is available for a given block.
static vtkMultiBlockDataSet * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
static vtkMultiBlockDataSet * New()
int HasMetaData(vtkCompositeDataIterator *iter) override
Unhiding superclass method.
vtkInformation * GetMetaData(vtkCompositeDataIterator *iter) override
Unhiding superclass method.
@ info
Definition: vtkX3D.h:376
#define VTK_MULTIBLOCK_DATA_SET
Definition: vtkType.h:100