VTK  9.7.20261206
vtkCellDataToPointData.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
47
48#ifndef vtkCellDataToPointData_h
49#define vtkCellDataToPointData_h
50
51#include "vtkDataSetAlgorithm.h"
52#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_8_0
53#include "vtkFiltersCoreModule.h" // For export macro
54#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
55
56VTK_ABI_NAMESPACE_BEGIN
57class vtkDataSet;
58
60{
61public:
63
68 void PrintSelf(ostream& os, vtkIndent indent) override;
70
73 {
74 All = 0,
75 Patch = 1,
77 };
78
80
88 vtkSetMacro(EnableWeightedAverage, bool);
89 vtkGetMacro(EnableWeightedAverage, bool);
90 vtkBooleanMacro(EnableWeightedAverage, bool);
92
94
99 vtkSetMacro(PassCellData, bool);
100 vtkGetMacro(PassCellData, bool);
101 vtkBooleanMacro(PassCellData, bool);
103
105
109 vtkSetClampMacro(ContributingCellOption, int, 0, 2);
110 vtkGetMacro(ContributingCellOption, int);
112
114
118 vtkSetMacro(ProcessAllArrays, bool);
119 vtkGetMacro(ProcessAllArrays, bool);
120 vtkBooleanMacro(ProcessAllArrays, bool);
122
124
128 vtkSetMacro(PieceInvariant, bool);
129 vtkGetMacro(PieceInvariant, bool);
130 vtkBooleanMacro(PieceInvariant, bool);
132
138 virtual void AddCellDataArray(const char* name);
139
145 virtual void RemoveCellDataArray(const char* name);
146
151 virtual void ClearCellDataArrays();
152
153protected:
156
158 virtual void GetCellArraysToProcess(const char* names[]);
159
161 vtkInformationVector* outputVector) override;
163
165
172
179 int InterpolatePointData(vtkDataSet* input, vtkDataSet* output, vtkDataArray* weightArray);
180 VTK_DEPRECATED_IN_9_8_0("Use the version with the weight array")
182
184
186
191
193
199
204
206
207 class Internals;
208 Internals* Implementation;
209
210private:
212 void operator=(const vtkCellDataToPointData&) = delete;
213};
214
215VTK_ABI_NAMESPACE_END
216#endif
bool ProcessAllArrays
Option to activate selective processing of arrays.
~vtkCellDataToPointData() override
int InterpolatePointData(vtkDataSet *input, vtkDataSet *output, vtkDataArray *weightArray)
Interpolate the cell data of input to the point data of output: the value of a point is the average o...
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.
virtual void GetCellArraysToProcess(const char *names[])
virtual vtkIdType GetNumberOfCellArraysToProcess()
static vtkCellDataToPointData * New()
Standard methods for instantiation, type information, and printing.
ContributingCellEnum
Options to specify what cells contribute to the cell-averaging calculation.
@ Patch
Highest dimension cells in the patch of cells contributing to the calculation.
@ DataSetMax
Highest dimension cells in the data set.
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 RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
#define vtkDataArray
#define VTK_DEPRECATED_IN_9_8_0(reason)
int vtkIdType
Definition vtkType.h:366
#define VTK_MARSHALAUTO