VTK  9.2.5
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
66class vtkDataSet;
67
68class VTKFILTERSCORE_EXPORT vtkCellDataToPointData : public vtkDataSetAlgorithm
69{
70public:
72
77 void PrintSelf(ostream& os, vtkIndent indent) override;
79
82 {
83 All = 0,
84 Patch = 1,
85 DataSetMax = 2
86 };
87
89
94 vtkSetMacro(PassCellData, bool);
95 vtkGetMacro(PassCellData, bool);
96 vtkBooleanMacro(PassCellData, bool);
98
100
104 vtkSetClampMacro(ContributingCellOption, int, 0, 2);
105 vtkGetMacro(ContributingCellOption, int);
107
109
113 vtkSetMacro(ProcessAllArrays, bool);
114 vtkGetMacro(ProcessAllArrays, bool);
115 vtkBooleanMacro(ProcessAllArrays, 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 vtkInformationVector* outputVector) override;
144
146
153
155
157
162
164
170
175
176 class Internals;
177 Internals* Implementation;
178
179private:
181 void operator=(const vtkCellDataToPointData&) = delete;
182};
183
184#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.
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 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:63
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.