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 "vtkCommonDataModelModule.h" // For export macro
39 #include "vtkDataObjectTree.h"
40 
41 class vtkDataSet;
43 {
44 public:
45  static vtkMultiPieceDataSet* New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
51 
55  void SetNumberOfPieces(unsigned int numpieces);
56 
58  unsigned int GetNumberOfPieces();
59 
61 
62  vtkDataSet* GetPiece(unsigned int pieceno);
63  vtkDataObject* GetPieceAsDataObject(unsigned int pieceno);
65 
68  void SetPiece(unsigned int pieceno, vtkDataObject* piece);
69 
70 
72 
73  int HasMetaData(unsigned int piece)
74  { return this->Superclass::HasChildMetaData(piece); }
76 
78 
81  vtkInformation* GetMetaData(unsigned int pieceno)
82  { return this->Superclass::GetChildMetaData(pieceno); }
84 
85  //BTX
87 
90  //ETX
92 
94 
96  { return this->Superclass::GetMetaData(iter); }
98 
100 
102  { return this->Superclass::HasMetaData(iter); }
104 
105 //BTX
106 protected:
109 
110 private:
111  vtkMultiPieceDataSet(const vtkMultiPieceDataSet&); // Not implemented.
112  void operator=(const vtkMultiPieceDataSet&); // Not implemented.
113 //ETX
114 };
115 
116 #endif
117 
118 
static vtkDataObject * New()
provides implementation for most abstract methods in the superclass vtkCompositeDataSet ...
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
int HasMetaData(unsigned int piece)
#define VTK_MULTIPIECE_DATA_SET
Definition: vtkType.h:91
superclass for composite data iterators
void PrintSelf(ostream &os, vtkIndent indent)
virtual int HasMetaData(vtkCompositeDataIterator *iter)
a simple class to control print indentation
Definition: vtkIndent.h:38
composite dataset to encapsulates pieces of dataset.
virtual int GetDataObjectType()
virtual vtkInformation * GetMetaData(vtkCompositeDataIterator *iter)
Store zero or more vtkInformation instances.
static vtkDataObjectTree * GetData(vtkInformation *info)
general representation of visualization data
Definition: vtkDataObject.h:64
vtkInformation * GetMetaData(unsigned int pieceno)
#define VTKCOMMONDATAMODEL_EXPORT