VTK  9.1.0
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 =========================================================================*/
54 #ifndef vtkCellDataToPointData_h
55 #define vtkCellDataToPointData_h
56 
57 #include "vtkDataSetAlgorithm.h"
58 #include "vtkFiltersCoreModule.h" // For export macro
59 
60 class vtkDataSet;
61 
62 class VTKFILTERSCORE_EXPORT vtkCellDataToPointData : public vtkDataSetAlgorithm
63 {
64 public:
66 
71  void PrintSelf(ostream& os, vtkIndent indent) override;
73 
76  {
77  All = 0,
78  Patch = 1,
79  DataSetMax = 2
80  };
81 
83 
88  vtkSetMacro(PassCellData, bool);
89  vtkGetMacro(PassCellData, bool);
90  vtkBooleanMacro(PassCellData, bool);
92 
94 
98  vtkSetClampMacro(ContributingCellOption, int, 0, 2);
99  vtkGetMacro(ContributingCellOption, int);
101 
103 
107  vtkSetMacro(ProcessAllArrays, bool);
108  vtkGetMacro(ProcessAllArrays, bool);
109  vtkBooleanMacro(ProcessAllArrays, bool);
111 
117  virtual void AddCellDataArray(const char* name);
118 
124  virtual void RemoveCellDataArray(const char* name);
125 
130  virtual void ClearCellDataArrays();
131 
132 protected:
135 
136  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
137  vtkInformationVector* outputVector) override;
138 
140 
147 
149 
151 
156 
158 
164 
169 
170  class Internals;
171  Internals* Implementation;
172 
173 private:
175  void operator=(const vtkCellDataToPointData&) = delete;
176 };
177 
178 #endif
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
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.
vtkCellDataToPointData::ProcessAllArrays
bool ProcessAllArrays
Option to activate selective processing of arrays.
Definition: vtkCellDataToPointData.h:168
vtkCellDataToPointData::PassCellData
bool PassCellData
Option to pass cell data arrays through to the output.
Definition: vtkCellDataToPointData.h:154
vtkCellDataToPointData::Implementation
Internals * Implementation
Definition: vtkCellDataToPointData.h:170
vtkCellDataToPointData::vtkCellDataToPointData
vtkCellDataToPointData()
vtkCellDataToPointData::InterpolatePointData
int InterpolatePointData(vtkDataSet *input, vtkDataSet *output)
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:49
vtkCellDataToPointData::RequestDataForUnstructuredData
int RequestDataForUnstructuredData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Special algorithm for unstructured grids and polydata to make sure that we properly take into account...
vtkCellDataToPointData::New
static vtkCellDataToPointData * New()
Standard methods for instantiation, type information, and printing.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkCellDataToPointData::~vtkCellDataToPointData
~vtkCellDataToPointData() override
vtkCellDataToPointData::AddCellDataArray
virtual void AddCellDataArray(const char *name)
Adds an array to be processed.
vtkCellDataToPointData::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information, and printing.
vtkCellDataToPointData
map cell data to point data
Definition: vtkCellDataToPointData.h:63
vtkX3D::name
@ name
Definition: vtkX3D.h:225
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkDataSetAlgorithm.h
vtkCellDataToPointData::ContributingCellEnum
ContributingCellEnum
Options to specify what cells contribute to the cell-averaging calculation.
Definition: vtkCellDataToPointData.h:76
vtkCellDataToPointData::RemoveCellDataArray
virtual void RemoveCellDataArray(const char *name)
Removes an array to be processed.
vtkCellDataToPointData::ContributingCellOption
int ContributingCellOption
Option to specify what cells to include in the computation.
Definition: vtkCellDataToPointData.h:162
vtkCellDataToPointData::ClearCellDataArrays
virtual void ClearCellDataArrays()
Removes all arrays to be processed from the list.