VTK  9.3.1
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 
64  static vtkCellDataToPointData* New();
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:
139  ~vtkCellDataToPointData() override;
140 
141  virtual vtkIdType GetNumberOfCellArraysToProcess();
142  virtual void GetCellArraysToProcess(const char* names[]);
143 
144  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
145  vtkInformationVector* outputVector) override;
147 
149 
153  int RequestDataForUnstructuredData(
156 
157  int InterpolatePointData(vtkDataSet* input, vtkDataSet* output);
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
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
int vtkIdType
Definition: vtkType.h:315
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
bool PassCellData
Option to pass cell data arrays through to the output.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
ContributingCellEnum
Options to specify what cells contribute to the cell-averaging calculation.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
bool ProcessAllArrays
Option to activate selective processing of arrays.
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.