VTK  9.3.20240329
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 
54 VTK_ABI_NAMESPACE_BEGIN
55 class vtkDataSet;
56 
57 class VTKFILTERSCORE_EXPORT vtkCellDataToPointData : public vtkDataSetAlgorithm
58 {
59 public:
61 
66  void PrintSelf(ostream& os, vtkIndent indent) override;
68 
71  {
72  All = 0,
73  Patch = 1,
74  DataSetMax = 2
75  };
76 
78 
83  vtkSetMacro(PassCellData, bool);
84  vtkGetMacro(PassCellData, bool);
85  vtkBooleanMacro(PassCellData, bool);
87 
89 
93  vtkSetClampMacro(ContributingCellOption, int, 0, 2);
94  vtkGetMacro(ContributingCellOption, int);
96 
98 
102  vtkSetMacro(ProcessAllArrays, bool);
103  vtkGetMacro(ProcessAllArrays, bool);
104  vtkBooleanMacro(ProcessAllArrays, bool);
106 
108 
112  vtkSetMacro(PieceInvariant, bool);
113  vtkGetMacro(PieceInvariant, bool);
114  vtkBooleanMacro(PieceInvariant, bool);
116 
122  virtual void AddCellDataArray(const char* name);
123 
129  virtual void RemoveCellDataArray(const char* name);
130 
135  virtual void ClearCellDataArrays();
136 
137 protected:
140 
142  virtual void GetCellArraysToProcess(const char* names[]);
143 
144  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
145  vtkInformationVector* outputVector) override;
147 
149 
156 
158 
160 
165 
167 
173 
178 
180 
181  class Internals;
182  Internals* Implementation;
183 
184 private:
186  void operator=(const vtkCellDataToPointData&) = delete;
187 };
188 
189 VTK_ABI_NAMESPACE_END
190 #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.
virtual void GetCellArraysToProcess(const char *names[])
virtual vtkIdType GetNumberOfCellArraysToProcess()
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:166
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ name
Definition: vtkX3D.h:219
int vtkIdType
Definition: vtkType.h:315