VTK  9.0.1
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
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:36
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:152
vtkCellDataToPointData::PassCellData
bool PassCellData
Option to pass cell data arrays through to the output.
Definition: vtkCellDataToPointData.h:138
vtkCellDataToPointData::Implementation
Internals * Implementation
Definition: vtkCellDataToPointData.h:154
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()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
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
Methods invoked by print to print information about the object including superclasses.
vtkCellDataToPointData
map cell data to point data
Definition: vtkCellDataToPointData.h:52
vtkX3D::name
@ name
Definition: vtkX3D.h:225
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:65
vtkDataSetAlgorithm.h
vtkCellDataToPointData::ContributingCellEnum
ContributingCellEnum
Options to choose what cells contribute to the calculation.
Definition: vtkCellDataToPointData.h:60
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:146
vtkCellDataToPointData::ClearCellDataArrays
virtual void ClearCellDataArrays()
Removes all arrays to be processed from the list.