VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkMergeDataObjectFilter.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 =========================================================================*/ 00040 #ifndef __vtkMergeDataObjectFilter_h 00041 #define __vtkMergeDataObjectFilter_h 00042 00043 #include "vtkFiltersCoreModule.h" // For export macro 00044 #include "vtkDataSetAlgorithm.h" 00045 00046 class VTKFILTERSCORE_EXPORT vtkMergeDataObjectFilter : public vtkDataSetAlgorithm 00047 { 00048 public: 00049 static vtkMergeDataObjectFilter *New(); 00050 vtkTypeMacro(vtkMergeDataObjectFilter,vtkDataSetAlgorithm); 00051 void PrintSelf(ostream& os, vtkIndent indent); 00052 00054 00055 void SetDataObjectInputData(vtkDataObject *object); 00056 vtkDataObject *GetDataObject(); 00058 00060 00064 vtkSetMacro(OutputField,int); 00065 vtkGetMacro(OutputField,int); 00066 void SetOutputFieldToDataObjectField(); 00067 void SetOutputFieldToPointDataField(); 00068 void SetOutputFieldToCellDataField(); 00070 00071 protected: 00072 vtkMergeDataObjectFilter(); 00073 ~vtkMergeDataObjectFilter(); 00074 00075 // Usual data generation method 00076 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00077 int FillInputPortInformation(int port, vtkInformation *info); 00078 00079 int OutputField; // which output field 00080 00081 private: 00082 vtkMergeDataObjectFilter(const vtkMergeDataObjectFilter&); // Not implemented. 00083 void operator=(const vtkMergeDataObjectFilter&); // Not implemented. 00084 }; 00085 00086 #endif 00087 00088