1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkPointDataToCellData.h,v $
6 Date: $Date: 2002/01/22 15:29:34 $
7 Version: $Revision: 1.17 $
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 vtkPointDataToCellData - map point data to cell data
19 // .SECTION Description
20 // vtkPointDataToCellData is a filter that transforms point data (i.e., data
21 // specified per point) into cell data (i.e., data specified per cell).
22 // The method of transformation is based on averaging the data
23 // values of all points defining a particular cell. Optionally, the input point
24 // data can be passed through to the output as well.
27 // This filter is an abstract filter, that is, the output is an abstract type
28 // (i.e., vtkDataSet). Use the convenience methods (e.g.,
29 // vtkGetPolyDataOutput(), GetStructuredPointsOutput(), etc.) to get the type
30 // of output you want.
33 // vtkDataSetToDataSetFilter vtkPointData vtkCellData vtkCellDataToPointData
36 #ifndef __vtkPointDataToCellData_h
37 #define __vtkPointDataToCellData_h
39 #include "vtkDataSetToDataSetFilter.h"
41 class VTK_GRAPHICS_EXPORT vtkPointDataToCellData : public vtkDataSetToDataSetFilter
44 static vtkPointDataToCellData *New();
45 vtkTypeRevisionMacro(vtkPointDataToCellData,vtkDataSetToDataSetFilter);
46 void PrintSelf(ostream& os, vtkIndent indent);
49 // Control whether the input point data is to be passed to the output. If
50 // on, then the input point data is passed through to the output; otherwise,
51 // only generated point data is placed into the output.
52 vtkSetMacro(PassPointData,int);
53 vtkGetMacro(PassPointData,int);
54 vtkBooleanMacro(PassPointData,int);
57 vtkPointDataToCellData();
58 ~vtkPointDataToCellData() {};
64 vtkPointDataToCellData(const vtkPointDataToCellData&); // Not implemented.
65 void operator=(const vtkPointDataToCellData&); // Not implemented.