VTK
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 =========================================================================*/
49 #ifndef vtkCellDataToPointData_h
50 #define vtkCellDataToPointData_h
51 
52 #include "vtkFiltersCoreModule.h" // For export macro
53 #include "vtkDataSetAlgorithm.h"
54 
55 class vtkDataSet;
56 
57 class VTKFILTERSCORE_EXPORT vtkCellDataToPointData : public vtkDataSetAlgorithm
58 {
59 public:
60  static vtkCellDataToPointData *New();
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
66  All=0,
67  Patch=1,
68  DataSetMax=2
69  };
70 
72 
77  vtkSetMacro(PassCellData,bool);
78  vtkGetMacro(PassCellData,bool);
79  vtkBooleanMacro(PassCellData,bool);
81 
83 
87  vtkSetClampMacro(ContributingCellOption, int, 0, 2);
88  vtkGetMacro(ContributingCellOption, int);
90 
92 
96  vtkSetMacro(ProcessAllArrays, bool);
97  vtkGetMacro(ProcessAllArrays, bool);
98  vtkBooleanMacro(ProcessAllArrays, bool);
100 
106  virtual void AddCellDataArray(const char *name);
107 
113  virtual void RemoveCellDataArray(const char *name);
114 
119  virtual void ClearCellDataArrays();
120 
121 protected:
123  ~vtkCellDataToPointData() override;
124 
125  int RequestData(vtkInformation* request,
126  vtkInformationVector** inputVector,
127  vtkInformationVector* outputVector) override;
128 
130 
134  int RequestDataForUnstructuredData
137 
138  int InterpolatePointData(vtkDataSet *input, vtkDataSet *output);
139 
141 
146 
148 
154 
159 
160  class Internals;
161  Internals *Implementation;
162 
163 private:
165  void operator=(const vtkCellDataToPointData&) = delete;
166 };
167 
168 #endif
169 
170 
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 choose what cells contribute to the 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.