VTK
vtkCellDataToPointData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCellDataToPointData.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
41 #ifndef vtkCellDataToPointData_h
42 #define vtkCellDataToPointData_h
43 
44 #include "vtkFiltersCoreModule.h" // For export macro
45 #include "vtkDataSetAlgorithm.h"
46 
47 class vtkDataSet;
48 
49 class VTKFILTERSCORE_EXPORT vtkCellDataToPointData : public vtkDataSetAlgorithm
50 {
51 public:
52  static vtkCellDataToPointData *New();
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
58  All=0,
59  Patch=1,
60  DataSetMax=2
61  };
62 
64 
69  vtkSetMacro(PassCellData,vtkTypeBool);
70  vtkGetMacro(PassCellData,vtkTypeBool);
71  vtkBooleanMacro(PassCellData,vtkTypeBool);
73 
75 
79  vtkSetClampMacro(ContributingCellOption, int, 0, 2);
80  vtkGetMacro(ContributingCellOption, int);
82 
83 protected:
86 
87  int RequestData(vtkInformation* request,
88  vtkInformationVector** inputVector,
89  vtkInformationVector* outputVector) override;
90 
92 
96  int RequestDataForUnstructuredData
99 
100  void InterpolatePointData(vtkDataSet *input, vtkDataSet *output);
101 
103 
108 
110 
116 
117 private:
119  void operator=(const vtkCellDataToPointData&) = delete;
120 };
121 
122 #endif
123 
124 
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
int vtkTypeBool
Definition: vtkABI.h:69
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
map cell data to point data
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
ContributingCellEnum
Options to choose what cells contribute to the calculation.
vtkTypeBool PassCellData
Option to pass cell data arrays through to the output.
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()
int ContributingCellOption
Option to specify what cells to include in the computation.