VTK  9.5.20250901
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
48#ifndef vtkCellDataToPointData_h
49#define vtkCellDataToPointData_h
50
51#include "vtkDataSetAlgorithm.h"
52#include "vtkFiltersCoreModule.h" // For export macro
53#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
54
55VTK_ABI_NAMESPACE_BEGIN
56class vtkDataSet;
57
59{
60public:
62
67 void PrintSelf(ostream& os, vtkIndent indent) override;
69
72 {
73 All = 0,
74 Patch = 1,
75 DataSetMax = 2
76 };
77
79
84 vtkSetMacro(PassCellData, bool);
85 vtkGetMacro(PassCellData, bool);
86 vtkBooleanMacro(PassCellData, bool);
88
90
94 vtkSetClampMacro(ContributingCellOption, int, 0, 2);
95 vtkGetMacro(ContributingCellOption, int);
97
99
103 vtkSetMacro(ProcessAllArrays, bool);
104 vtkGetMacro(ProcessAllArrays, bool);
105 vtkBooleanMacro(ProcessAllArrays, bool);
107
109
113 vtkSetMacro(PieceInvariant, bool);
114 vtkGetMacro(PieceInvariant, bool);
115 vtkBooleanMacro(PieceInvariant, bool);
117
123 virtual void AddCellDataArray(const char* name);
124
130 virtual void RemoveCellDataArray(const char* name);
131
136 virtual void ClearCellDataArrays();
137
138protected:
141
143 virtual void GetCellArraysToProcess(const char* names[]);
144
146 vtkInformationVector* outputVector) override;
148
150
157
159
161
166
168
174
179
181
182 class Internals;
183 Internals* Implementation;
184
185private:
187 void operator=(const vtkCellDataToPointData&) = delete;
188};
189
190VTK_ABI_NAMESPACE_END
191#endif
map cell data to point data
bool ProcessAllArrays
Option to activate selective processing of arrays.
int InterpolatePointData(vtkDataSet *input, vtkDataSet *output)
~vtkCellDataToPointData() override
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.
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.
Superclass for algorithms that produce output of the same type as input.
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.
int vtkIdType
Definition vtkType.h:332
#define VTK_MARSHALAUTO