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:
54  static vtkCellDataToPointData* New();
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:
118  ~vtkCellDataToPointData() override;
119 
120  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
121  vtkInformationVector* outputVector) override;
122 
124 
128  int RequestDataForUnstructuredData(
131 
132  int InterpolatePointData(vtkDataSet* input, vtkDataSet* output);
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:35
vtkCellDataToPointData::ProcessAllArrays
bool ProcessAllArrays
Option to activate selective processing of arrays.
Definition: vtkCellDataToPointData.h:152
vtkDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkDataSetAlgorithm.h:176
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
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:48
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkDataSetAlgorithm::New
static vtkDataSetAlgorithm * New()
vtkCellDataToPointData
map cell data to point data
Definition: vtkCellDataToPointData.h:51
vtkX3D::name
@ name
Definition: vtkX3D.h:225
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkDataSetAlgorithm.h
vtkDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCellDataToPointData::ContributingCellEnum
ContributingCellEnum
Options to choose what cells contribute to the calculation.
Definition: vtkCellDataToPointData.h:59
vtkCellDataToPointData::ContributingCellOption
int ContributingCellOption
Option to specify what cells to include in the computation.
Definition: vtkCellDataToPointData.h:146