VTK  9.2.6
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 class vtkDataSet;
67 
68 class VTKFILTERSCORE_EXPORT vtkCellDataToPointData : public vtkDataSetAlgorithm
69 {
70 public:
72 
75  static vtkCellDataToPointData* New();
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 
138 protected:
140  ~vtkCellDataToPointData() override;
141 
142  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
143  vtkInformationVector* outputVector) override;
144 
146 
150  int RequestDataForUnstructuredData(
153 
154  int InterpolatePointData(vtkDataSet* input, vtkDataSet* output);
155 
157 
162 
164 
170 
175 
176  class Internals;
177  Internals* Implementation;
178 
179 private:
181  void operator=(const vtkCellDataToPointData&) = delete;
182 };
183 
184 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
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:39
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.
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.