VTK  9.4.20250114
vtkPointSetToOctreeImageFilter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
29#ifndef vtkPointSetToOctreeImageFilter_h
30#define vtkPointSetToOctreeImageFilter_h
31
32#include "vtkFiltersGeometryPreviewModule.h" // For export macro
34
35VTK_ABI_NAMESPACE_BEGIN
36class VTKFILTERSGEOMETRYPREVIEW_EXPORT vtkPointSetToOctreeImageFilter
38{
39public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
43
45
51 vtkSetClampMacro(NumberOfPointsPerCell, int, 1, VTK_INT_MAX);
52 vtkGetMacro(NumberOfPointsPerCell, int);
54
56
62 vtkSetMacro(ProcessInputPointArray, bool);
63 vtkGetMacro(ProcessInputPointArray, bool);
64 vtkBooleanMacro(ProcessInputPointArray, bool);
66
68
75 vtkSetMacro(ComputeLastValue, bool);
76 vtkGetMacro(ComputeLastValue, bool);
77 vtkBooleanMacro(ComputeLastValue, bool);
79
81
86 vtkSetMacro(ComputeMin, bool);
87 vtkGetMacro(ComputeMin, bool);
88 vtkBooleanMacro(ComputeMin, bool);
90
92
97 vtkSetMacro(ComputeMax, bool);
98 vtkGetMacro(ComputeMax, bool);
99 vtkBooleanMacro(ComputeMax, bool);
101
103
108 vtkSetMacro(ComputeCount, bool);
109 vtkGetMacro(ComputeCount, bool);
110 vtkBooleanMacro(ComputeCount, bool);
112
114
119 vtkSetMacro(ComputeSum, bool);
120 vtkGetMacro(ComputeSum, bool);
121 vtkBooleanMacro(ComputeSum, bool);
123
125
133 vtkSetMacro(ComputeMean, bool);
134 vtkGetMacro(ComputeMean, bool);
135 vtkBooleanMacro(ComputeMean, bool);
137
138protected:
141
142 int FillInputPortInformation(int port, vtkInformation* info) override;
144
145private:
147 void operator=(const vtkPointSetToOctreeImageFilter&) = delete;
148
149 vtkIdType NumberOfPointsPerCell = 1;
150 bool ProcessInputPointArray = false;
151 bool ComputeLastValue = true;
152 bool ComputeMin = false;
153 bool ComputeMax = false;
154 bool ComputeCount = false;
155 bool ComputeSum = false;
156 bool ComputeMean = false;
157
158 enum class FieldFunctions
159 {
160 LAST_VALUE,
161 MIN,
162 MAX,
163 COUNT,
164 SUM,
165 MEAN
166 };
167
168 template <typename TPointsArray>
169 struct PointSetToImageFunctor;
170 struct PointSetToImageWorker;
171};
172
173VTK_ABI_NAMESPACE_END
174#endif // vtkPointSetToOctreeImageFilter_h
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce vtkPartitionedDataSetAlgorithm.
convert a point set to an octree image
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkPointSetToOctreeImageFilter * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Methods for subclasses to override to handle different pipeline requests.
~vtkPointSetToOctreeImageFilter() override
int vtkIdType
Definition vtkType.h:315
#define VTK_INT_MAX
Definition vtkType.h:144