VTK  9.0.3
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 =========================================================================*/
43 #ifndef vtkCellDataToPointData_h
44 #define vtkCellDataToPointData_h
45 
46 #include "vtkDataSetAlgorithm.h"
47 #include "vtkFiltersCoreModule.h" // For export macro
48 
49 class vtkDataSet;
50 
51 class VTKFILTERSCORE_EXPORT vtkCellDataToPointData : public vtkDataSetAlgorithm
52 {
53 public:
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
60  {
61  All = 0,
62  Patch = 1,
63  DataSetMax = 2
64  };
65 
67 
72  vtkSetMacro(PassCellData, bool);
73  vtkGetMacro(PassCellData, bool);
74  vtkBooleanMacro(PassCellData, bool);
76 
78 
82  vtkSetClampMacro(ContributingCellOption, int, 0, 2);
83  vtkGetMacro(ContributingCellOption, int);
85 
87 
91  vtkSetMacro(ProcessAllArrays, bool);
92  vtkGetMacro(ProcessAllArrays, bool);
93  vtkBooleanMacro(ProcessAllArrays, bool);
95 
101  virtual void AddCellDataArray(const char* name);
102 
108  virtual void RemoveCellDataArray(const char* name);
109 
114  virtual void ClearCellDataArrays();
115 
116 protected:
119 
120  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
121  vtkInformationVector* outputVector) override;
122 
124 
131 
133 
135 
140 
142 
148 
153 
154  class Internals;
155  Internals* Implementation;
156 
157 private:
159  void operator=(const vtkCellDataToPointData&) = delete;
160 };
161 
162 #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()
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
Methods invoked by print to print information about the object including superclasses.
ContributingCellEnum
Options to choose what cells contribute to the 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:57
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ name
Definition: vtkX3D.h:225