VTK  9.1.0
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 =========================================================================*/
54 #ifndef vtkCellDataToPointData_h
55 #define vtkCellDataToPointData_h
56 
57 #include "vtkDataSetAlgorithm.h"
58 #include "vtkFiltersCoreModule.h" // For export macro
59 
60 class vtkDataSet;
61 
62 class VTKFILTERSCORE_EXPORT vtkCellDataToPointData : public vtkDataSetAlgorithm
63 {
64 public:
66 
71  void PrintSelf(ostream& os, vtkIndent indent) override;
73 
76  {
77  All = 0,
78  Patch = 1,
79  DataSetMax = 2
80  };
81 
83 
88  vtkSetMacro(PassCellData, bool);
89  vtkGetMacro(PassCellData, bool);
90  vtkBooleanMacro(PassCellData, bool);
92 
94 
98  vtkSetClampMacro(ContributingCellOption, int, 0, 2);
99  vtkGetMacro(ContributingCellOption, int);
101 
103 
107  vtkSetMacro(ProcessAllArrays, bool);
108  vtkGetMacro(ProcessAllArrays, bool);
109  vtkBooleanMacro(ProcessAllArrays, bool);
111 
117  virtual void AddCellDataArray(const char* name);
118 
124  virtual void RemoveCellDataArray(const char* name);
125 
130  virtual void ClearCellDataArrays();
131 
132 protected:
135 
136  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
137  vtkInformationVector* outputVector) override;
138 
140 
147 
149 
151 
156 
158 
164 
169 
170  class Internals;
171  Internals* Implementation;
172 
173 private:
175  void operator=(const vtkCellDataToPointData&) = delete;
176 };
177 
178 #endif
map cell data to point data
bool ProcessAllArrays
Option to activate selective processing of arrays.
int InterpolatePointData(vtkDataSet *input, vtkDataSet *output)
~vtkCellDataToPointData() override
static vtkCellDataToPointData * New()
Standard methods for instantiation, type information, and printing.
virtual void ClearCellDataArrays()
Removes all arrays to be processed from the list.
virtual void RemoveCellDataArray(const char *name)
Removes an array to be processed.
virtual void AddCellDataArray(const char *name)
Adds an array to be processed.
bool PassCellData
Option to pass cell data arrays through to the output.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information, and printing.
ContributingCellEnum
Options to specify what cells contribute to the cell-averaging calculation.
int ContributingCellOption
Option to specify what cells to include in the computation.
int RequestDataForUnstructuredData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Special algorithm for unstructured grids and polydata to make sure that we properly take into account...
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ name
Definition: vtkX3D.h:225