OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / vtk / vtkPointDataToCellData.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkPointDataToCellData.h,v $
5   Language:  C++
6   Date:      $Date: 2002/01/22 15:29:34 $
7   Version:   $Revision: 1.17 $
8
9   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
10   All rights reserved.
11   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
12
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.
16
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.
25
26 // .SECTION Caveats
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.
31
32 // .SECTION See Also
33 // vtkDataSetToDataSetFilter vtkPointData vtkCellData vtkCellDataToPointData
34
35
36 #ifndef __vtkPointDataToCellData_h
37 #define __vtkPointDataToCellData_h
38
39 #include "vtkDataSetToDataSetFilter.h"
40
41 class VTK_GRAPHICS_EXPORT vtkPointDataToCellData : public vtkDataSetToDataSetFilter
42 {
43 public:
44   static vtkPointDataToCellData *New();
45   vtkTypeRevisionMacro(vtkPointDataToCellData,vtkDataSetToDataSetFilter);
46   void PrintSelf(ostream& os, vtkIndent indent);
47
48   // Description:
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);
55
56 protected:
57   vtkPointDataToCellData();
58   ~vtkPointDataToCellData() {};
59
60   void Execute();
61
62   int PassPointData;
63 private:
64   vtkPointDataToCellData(const vtkPointDataToCellData&);  // Not implemented.
65   void operator=(const vtkPointDataToCellData&);  // Not implemented.
66 };
67
68 #endif
69
70