VTK: Filters/Core/vtkCellDataToPointData.h Source File

| 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();
65 vtkTypeMacro(vtkCellDataToPointData, vtkDataSetAlgorithm);
66 void PrintSelf(ostream& os, vtkIndent indent) override;
68
70 enum ContributingCellEnum
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:
138 vtkCellDataToPointData();
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;
146 int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
147
149
153 int RequestDataForUnstructuredData(
154 vtkInformation*, vtkInformationVector**, vtkInformationVector*);
156
157 int InterpolatePointData(vtkDataSet* input, vtkDataSet* output);
158
160
163 bool PassCellData;
165
167
171 int ContributingCellOption;
173
177 bool ProcessAllArrays;
178
179 bool PieceInvariant;
180
181 class Internals;
182 Internals* Implementation;
183
184 private:
185 vtkCellDataToPointData(const vtkCellDataToPointData&) = delete;
186 void operator=(const vtkCellDataToPointData&) = delete;
187 };
188
189 VTK_ABI_NAMESPACE_END
190 #endif
vtkCellDataToPointData
map cell data to point data
Definition: vtkCellDataToPointData.h:58
vtkCellDataToPointData::ProcessAllArrays
bool ProcessAllArrays
Option to activate selective processing of arrays.
Definition: vtkCellDataToPointData.h:177
vtkCellDataToPointData::InterpolatePointData
int InterpolatePointData(vtkDataSet *input, vtkDataSet *output)
vtkCellDataToPointData::~vtkCellDataToPointData
~vtkCellDataToPointData() override
vtkCellDataToPointData::New
static vtkCellDataToPointData * New()
Standard methods for instantiation, type information, and printing.
vtkCellDataToPointData::ClearCellDataArrays
virtual void ClearCellDataArrays()
Removes all arrays to be processed from the list.
vtkCellDataToPointData::vtkCellDataToPointData
vtkCellDataToPointData()
vtkCellDataToPointData::RemoveCellDataArray
virtual void RemoveCellDataArray(const char *name)
Removes an array to be processed.
vtkCellDataToPointData::AddCellDataArray
virtual void AddCellDataArray(const char *name)
Adds an array to be processed.
vtkCellDataToPointData::PassCellData
bool PassCellData
Option to pass cell data arrays through to the output.
Definition: vtkCellDataToPointData.h:163
vtkCellDataToPointData::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information, and printing.
vtkCellDataToPointData::PieceInvariant
bool PieceInvariant
Definition: vtkCellDataToPointData.h:179
vtkCellDataToPointData::GetCellArraysToProcess
virtual void GetCellArraysToProcess(const char *names[])
vtkCellDataToPointData::GetNumberOfCellArraysToProcess
virtual vtkIdType GetNumberOfCellArraysToProcess()
vtkCellDataToPointData::ContributingCellEnum
ContributingCellEnum
Options to specify what cells contribute to the cell-averaging calculation.
Definition: vtkCellDataToPointData.h:71
vtkCellDataToPointData::ContributingCellOption
int ContributingCellOption
Option to specify what cells to include in the computation.
Definition: vtkCellDataToPointData.h:171
vtkCellDataToPointData::RequestDataForUnstructuredData
int RequestDataForUnstructuredData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Special algorithm for unstructured grids and polydata to make sure that we properly take into account...
vtkCellDataToPointData::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
vtkCellDataToPointData::Implementation
Internals * Implementation
Definition: vtkCellDataToPointData.h:181
vtkCellDataToPointData::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:38
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkDataSetAlgorithm.h
vtkIdType
int vtkIdType
Definition: vtkType.h:315