VTK  9.2.20230320
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 =========================================================================*/
60 #ifndef vtkCellDataToPointData_h
61 #define vtkCellDataToPointData_h
62 
63 #include "vtkDataSetAlgorithm.h"
64 #include "vtkFiltersCoreModule.h" // For export macro
65 
66 VTK_ABI_NAMESPACE_BEGIN
67 class vtkDataSet;
68 
69 class VTKFILTERSCORE_EXPORT vtkCellDataToPointData : public vtkDataSetAlgorithm
70 {
71 public:
73 
78  void PrintSelf(ostream& os, vtkIndent indent) override;
80 
83  {
84  All = 0,
85  Patch = 1,
86  DataSetMax = 2
87  };
88 
90 
95  vtkSetMacro(PassCellData, bool);
96  vtkGetMacro(PassCellData, bool);
97  vtkBooleanMacro(PassCellData, bool);
99 
101 
105  vtkSetClampMacro(ContributingCellOption, int, 0, 2);
106  vtkGetMacro(ContributingCellOption, int);
108 
110 
114  vtkSetMacro(ProcessAllArrays, bool);
115  vtkGetMacro(ProcessAllArrays, bool);
116  vtkBooleanMacro(ProcessAllArrays, bool);
118 
120 
124  vtkSetMacro(PieceInvariant, bool);
125  vtkGetMacro(PieceInvariant, bool);
126  vtkBooleanMacro(PieceInvariant, bool);
128 
134  virtual void AddCellDataArray(const char* name);
135 
141  virtual void RemoveCellDataArray(const char* name);
142 
147  virtual void ClearCellDataArrays();
148 
149 protected:
152 
154  virtual void GetCellArraysToProcess(const char* names[]);
155 
156  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
157  vtkInformationVector* outputVector) override;
159 
161 
168 
170 
172 
177 
179 
185 
190 
192 
193  class Internals;
194  Internals* Implementation;
195 
196 private:
198  void operator=(const vtkCellDataToPointData&) = delete;
199 };
200 
201 VTK_ABI_NAMESPACE_END
202 #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:174
a simple class to control print indentation
Definition: vtkIndent.h:120
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ name
Definition: vtkX3D.h:231
int vtkIdType
Definition: vtkType.h:327