VTK
vtkMultiPieceDataSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMultiPieceDataSet.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 =========================================================================*/
35 #ifndef __vtkMultiPieceDataSet_h
36 #define __vtkMultiPieceDataSet_h
37 
38 #include "vtkCompositeDataSet.h"
39 
40 class vtkDataSet;
42 {
43 public:
44  static vtkMultiPieceDataSet* New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
50 
54  void SetNumberOfPieces(unsigned int numpieces);
55 
57  unsigned int GetNumberOfPieces();
58 
60 
61  vtkDataSet* GetPiece(unsigned int pieceno);
62  vtkDataObject* GetPieceAsDataObject(unsigned int pieceno);
64 
67  void SetPiece(unsigned int pieceno, vtkDataObject* piece);
68 
70 
71  int HasMetaData(unsigned int piece)
72  { return this->Superclass::HasChildMetaData(piece); }
74 
76 
79  vtkInformation* GetMetaData(unsigned int pieceno)
80  { return this->Superclass::GetChildMetaData(pieceno); }
82 
83  //BTX
85 
88  //ETX
90 
92 
94  { return this->Superclass::GetMetaData(iter); }
96 
98 
100  { return this->Superclass::HasMetaData(iter); }
102 
103 //BTX
104 protected:
107 
108 private:
109  vtkMultiPieceDataSet(const vtkMultiPieceDataSet&); // Not implemented.
110  void operator=(const vtkMultiPieceDataSet&); // Not implemented.
111 //ETX
112 };
113 
114 #endif
115 
116 
static vtkDataObject * New()
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_FILTERING_EXPORT
int HasMetaData(unsigned int piece)
#define VTK_MULTIPIECE_DATA_SET
Definition: vtkType.h:91
superclass for composite data iterators
abstract superclass for composite (multi-block or AMR) datasets
virtual int HasMetaData(vtkCompositeDataIterator *iter)
a simple class to control print indentation
Definition: vtkIndent.h:37
composite dataset to encapsulates pieces of dataset.
static vtkCompositeDataSet * GetData(vtkInformation *info)
virtual int GetDataObjectType()
virtual vtkInformation * GetMetaData(vtkCompositeDataIterator *iter)
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:70
vtkInformation * GetMetaData(unsigned int pieceno)