1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkMergeFilter.h,v $
6 Date: $Date: 2002/01/22 15:29:30 $
7 Version: $Revision: 1.54 $
9 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
11 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notice for more information.
17 =========================================================================*/
18 // .NAME vtkMergeFilter - extract separate components of data from different datasets
19 // .SECTION Description
20 // vtkMergeFilter is a filter that extracts separate components of data from
21 // different datasets and merges them into a single dataset. The output from
22 // this filter is of the same type as the input (i.e., vtkDataSet.) It treats
23 // both cell and point data set attributes.
25 #ifndef __vtkMergeFilter_h
26 #define __vtkMergeFilter_h
28 #include "vtkDataSetToDataSetFilter.h"
32 class VTK_GRAPHICS_EXPORT vtkMergeFilter : public vtkDataSetToDataSetFilter
35 static vtkMergeFilter *New();
36 vtkTypeRevisionMacro(vtkMergeFilter,vtkDataSetToDataSetFilter);
37 void PrintSelf(ostream& os, vtkIndent indent);
40 // Specify object from which to extract geometry information.
41 void SetGeometry(vtkDataSet *input) {this->SetInput(input);};
42 vtkDataSet *GetGeometry() {return this->GetInput();};
45 // Specify object from which to extract scalar information.
46 void SetScalars(vtkDataSet *);
47 vtkDataSet *GetScalars();
50 // Set / get the object from which to extract vector information.
51 void SetVectors(vtkDataSet *);
52 vtkDataSet *GetVectors();
55 // Set / get the object from which to extract normal information.
56 void SetNormals(vtkDataSet *);
57 vtkDataSet *GetNormals();
60 // Set / get the object from which to extract texture coordinates
62 void SetTCoords(vtkDataSet *);
63 vtkDataSet *GetTCoords();
66 // Set / get the object from which to extract tensor data.
67 void SetTensors(vtkDataSet *);
68 vtkDataSet *GetTensors();
71 // Set the object from which to extract a field and the name
73 void AddField(const char* name, vtkDataSet* input);
79 // Usual data generation method
81 void ComputeInputUpdateExtents(vtkDataObject *data);
83 vtkFieldList* FieldList;
85 vtkMergeFilter(const vtkMergeFilter&); // Not implemented.
86 void operator=(const vtkMergeFilter&); // Not implemented.