VTK
dox/Common/DataModel/vtkMultiPieceDataSet.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkMultiPieceDataSet.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00035 #ifndef __vtkMultiPieceDataSet_h
00036 #define __vtkMultiPieceDataSet_h
00037 
00038 #include "vtkCommonDataModelModule.h" // For export macro
00039 #include "vtkDataObjectTree.h"
00040 
00041 class vtkDataSet;
00042 class VTKCOMMONDATAMODEL_EXPORT vtkMultiPieceDataSet : public vtkDataObjectTree
00043 {
00044 public:
00045   static vtkMultiPieceDataSet* New();
00046   vtkTypeMacro(vtkMultiPieceDataSet, vtkDataObjectTree);
00047   void PrintSelf(ostream& os, vtkIndent indent);
00048 
00050   virtual int GetDataObjectType() {return VTK_MULTIPIECE_DATA_SET;}
00051 
00055   void SetNumberOfPieces(unsigned int numpieces);
00056 
00058   unsigned int GetNumberOfPieces();
00059 
00061 
00062   vtkDataSet* GetPiece(unsigned int pieceno);
00063   vtkDataObject* GetPieceAsDataObject(unsigned int pieceno);
00065 
00068   void SetPiece(unsigned int pieceno, vtkDataObject* piece);
00069 
00070 
00072 
00073   int HasMetaData(unsigned int piece)
00074     { return this->Superclass::HasChildMetaData(piece); }
00076 
00078 
00081   vtkInformation* GetMetaData(unsigned int pieceno)
00082     { return this->Superclass::GetChildMetaData(pieceno); }
00084 
00085   //BTX
00087 
00088   static vtkMultiPieceDataSet* GetData(vtkInformation* info);
00089   static vtkMultiPieceDataSet* GetData(vtkInformationVector* v, int i=0);
00090   //ETX
00092 
00094 
00095   virtual vtkInformation* GetMetaData(vtkCompositeDataIterator* iter)
00096     { return this->Superclass::GetMetaData(iter); }
00098 
00100 
00101   virtual int HasMetaData(vtkCompositeDataIterator* iter)
00102     { return this->Superclass::HasMetaData(iter); }
00104 
00105 //BTX
00106 protected:
00107   vtkMultiPieceDataSet();
00108   ~vtkMultiPieceDataSet();
00109 
00110 private:
00111   vtkMultiPieceDataSet(const vtkMultiPieceDataSet&); // Not implemented.
00112   void operator=(const vtkMultiPieceDataSet&); // Not implemented.
00113 //ETX
00114 };
00115 
00116 #endif
00117 
00118