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 =========================================================================*/
47 #ifndef vtkCellDataToPointData_h
48 #define vtkCellDataToPointData_h
49 
50 #include "vtkFiltersCoreModule.h" // For export macro
51 #include "vtkDataSetAlgorithm.h"
52 
53 class vtkDataSet;
54 
55 class VTKFILTERSCORE_EXPORT vtkCellDataToPointData : public vtkDataSetAlgorithm
56 {
57 public:
58  static vtkCellDataToPointData *New();
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
64  All=0,
65  Patch=1,
66  DataSetMax=2
67  };
68 
70 
75  vtkSetMacro(PassCellData,int);
76  vtkGetMacro(PassCellData,int);
77  vtkBooleanMacro(PassCellData,int);
79 
81 
85  vtkSetClampMacro(ContributingCellOption, int, 0, 2);
86  vtkGetMacro(ContributingCellOption, int);
88 
89 protected:
92 
93  int RequestData(vtkInformation* request,
94  vtkInformationVector** inputVector,
95  vtkInformationVector* outputVector) override;
96 
98 
102  int RequestDataForUnstructuredData
105 
106  void InterpolatePointData(vtkDataSet *input, vtkDataSet *output);
107 
109 
114 
116 
122 
123 private:
125  void operator=(const vtkCellDataToPointData&) = delete;
126 };
127 
128 #endif
129 
130 
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
int 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.
map cell data to point data
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.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkDataSetAlgorithm * New()
int ContributingCellOption
Option to specify what cells to include in the computation.