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 =========================================================================*/
33 #ifndef vtkMultiPieceDataSet_h
34 #define vtkMultiPieceDataSet_h
35 
36 #include "vtkCommonDataModelModule.h" // For export macro
37 #include "vtkDataObjectTree.h"
38 
39 class vtkDataSet;
40 class VTKCOMMONDATAMODEL_EXPORT vtkMultiPieceDataSet : public vtkDataObjectTree
41 {
42 public:
43  static vtkMultiPieceDataSet* New();
45  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46 
51  int GetDataObjectType() VTK_OVERRIDE {return VTK_MULTIPIECE_DATA_SET;}
52 
58  void SetNumberOfPieces(unsigned int numpieces);
59 
63  unsigned int GetNumberOfPieces();
64 
66 
69  vtkDataSet* GetPiece(unsigned int pieceno);
70  vtkDataObject* GetPieceAsDataObject(unsigned int pieceno);
72 
77  void SetPiece(unsigned int pieceno, vtkDataObject* piece);
78 
79 
83  int HasMetaData(unsigned int piece)
84  { return this->Superclass::HasChildMetaData(piece); }
85 
91  vtkInformation* GetMetaData(unsigned int pieceno)
92  { return this->Superclass::GetChildMetaData(pieceno); }
93 
95 
101 
106  { return this->Superclass::GetMetaData(iter); }
107 
111  int HasMetaData(vtkCompositeDataIterator* iter) VTK_OVERRIDE
112  { return this->Superclass::HasMetaData(iter); }
113 
114 protected:
116  ~vtkMultiPieceDataSet() VTK_OVERRIDE;
117 
118 private:
119  vtkMultiPieceDataSet(const vtkMultiPieceDataSet&) VTK_DELETE_FUNCTION;
120  void operator=(const vtkMultiPieceDataSet&) VTK_DELETE_FUNCTION;
121 
122 };
123 
124 #endif
125 
126 
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:56
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:116
superclass for composite data iterators
a simple class to control print indentation
Definition: vtkIndent.h:33
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:58
vtkInformation * GetMetaData(unsigned int pieceno)
Returns the meta-data for the piece.