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 =========================================================================*/
36 #ifndef vtkMultiPieceDataSet_h
37 #define vtkMultiPieceDataSet_h
38 
39 #include "vtkCommonDataModelModule.h" // For export macro
40 #include "vtkDataObjectTree.h"
41 
42 class vtkDataSet;
43 class VTKCOMMONDATAMODEL_EXPORT vtkMultiPieceDataSet : public vtkDataObjectTree
44 {
45 public:
46  static vtkMultiPieceDataSet* New();
48  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
49 
54  int GetDataObjectType() VTK_OVERRIDE {return VTK_MULTIPIECE_DATA_SET;}
55 
61  void SetNumberOfPieces(unsigned int numpieces);
62 
66  unsigned int GetNumberOfPieces();
67 
69 
72  vtkDataSet* GetPiece(unsigned int pieceno);
73  vtkDataObject* GetPieceAsDataObject(unsigned int pieceno);
75 
80  void SetPiece(unsigned int pieceno, vtkDataObject* piece);
81 
82 
86  int HasMetaData(unsigned int piece)
87  { return this->Superclass::HasChildMetaData(piece); }
88 
94  vtkInformation* GetMetaData(unsigned int pieceno)
95  { return this->Superclass::GetChildMetaData(pieceno); }
96 
98 
104 
109  { return this->Superclass::GetMetaData(iter); }
110 
114  int HasMetaData(vtkCompositeDataIterator* iter) VTK_OVERRIDE
115  { return this->Superclass::HasMetaData(iter); }
116 
117 protected:
119  ~vtkMultiPieceDataSet() VTK_OVERRIDE;
120 
121 private:
122  vtkMultiPieceDataSet(const vtkMultiPieceDataSet&) VTK_DELETE_FUNCTION;
123  void operator=(const vtkMultiPieceDataSet&) VTK_DELETE_FUNCTION;
124 
125 };
126 
127 #endif
128 
129 
static vtkDataObject * New()
provides implementation for most abstract methods in the superclass vtkCompositeDataSet ...
Store vtkAlgorithm input/output information.
int HasMetaData(vtkCompositeDataIterator *iter) override
Unhiding superclass method.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
int HasMetaData(unsigned int piece)
Returns true if meta-data is available for a given piece.
vtkInformation * GetMetaData(vtkCompositeDataIterator *iter) override
Unhiding superclass method.
#define VTK_MULTIPIECE_DATA_SET
Definition: vtkType.h:112
superclass for composite data iterators
a simple class to control print indentation
Definition: vtkIndent.h:39
composite dataset to encapsulates pieces of 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.
Store zero or more vtkInformation instances.
static vtkDataObjectTree * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
general representation of visualization data
Definition: vtkDataObject.h:64
vtkInformation * GetMetaData(unsigned int pieceno)
Returns the meta-data for the piece.