00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkMultiPieceDataSet.h,v $ 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 =========================================================================*/ 00032 #ifndef __vtkMultiPieceDataSet_h 00033 #define __vtkMultiPieceDataSet_h 00034 00035 #include "vtkCompositeDataSet.h" 00036 00037 class vtkDataSet; 00038 class VTK_FILTERING_EXPORT vtkMultiPieceDataSet : public vtkCompositeDataSet 00039 { 00040 public: 00041 static vtkMultiPieceDataSet* New(); 00042 vtkTypeRevisionMacro(vtkMultiPieceDataSet, vtkCompositeDataSet); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00046 virtual int GetDataObjectType() {return VTK_MULTIPIECE_DATA_SET;} 00047 00051 void SetNumberOfPieces(unsigned int numpieces); 00052 00054 unsigned int GetNumberOfPieces(); 00055 00057 vtkDataSet* GetPiece(unsigned int pieceno); 00058 00061 void SetPiece(unsigned int pieceno, vtkDataSet* piece); 00062 00064 00065 int HasMetaData(unsigned int piece) 00066 { return this->Superclass::HasChildMetaData(piece); } 00068 00070 00073 vtkInformation* GetMetaData(unsigned int pieceno) 00074 { return this->Superclass::GetChildMetaData(pieceno); } 00076 00077 //BTX 00079 00080 static vtkMultiPieceDataSet* GetData(vtkInformation* info); 00081 static vtkMultiPieceDataSet* GetData(vtkInformationVector* v, int i=0); 00082 //ETX 00084 00086 00087 virtual vtkInformation* GetMetaData(vtkCompositeDataIterator* iter) 00088 { return this->Superclass::GetMetaData(iter); } 00090 00092 00093 virtual int HasMetaData(vtkCompositeDataIterator* iter) 00094 { return this->Superclass::HasMetaData(iter); } 00096 00097 //BTX 00098 protected: 00099 vtkMultiPieceDataSet(); 00100 ~vtkMultiPieceDataSet(); 00101 00102 private: 00103 vtkMultiPieceDataSet(const vtkMultiPieceDataSet&); // Not implemented. 00104 void operator=(const vtkMultiPieceDataSet&); // Not implemented. 00105 //ETX 00106 }; 00107 00108 #endif 00109 00110