VTK: Filters/GeometryPreview/vtkPointSetToOctreeImageFilter.h Source File

| VTK 9.3.1

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
33 #include "vtkPartitionedDataSetAlgorithm.h"
34
35 VTK_ABI_NAMESPACE_BEGIN
36 class VTKFILTERSGEOMETRYPREVIEW_EXPORT vtkPointSetToOctreeImageFilter
37 : public vtkPartitionedDataSetAlgorithm
38 {
39 public:
40 vtkTypeMacro(vtkPointSetToOctreeImageFilter, vtkPartitionedDataSetAlgorithm);
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42 static vtkPointSetToOctreeImageFilter* New();
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
138 protected:
139 vtkPointSetToOctreeImageFilter();
140 ~vtkPointSetToOctreeImageFilter() override;
141
142 int FillInputPortInformation(int port, vtkInformation* info) override;
143 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
144
145 private:
146 vtkPointSetToOctreeImageFilter(const vtkPointSetToOctreeImageFilter&) = delete;
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
173 VTK_ABI_NAMESPACE_END
174 #endif // vtkPointSetToOctreeImageFilter_h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkPartitionedDataSetAlgorithm
Superclass for algorithms that produce vtkPartitionedDataSetAlgorithm.
Definition: vtkPartitionedDataSetAlgorithm.h:21
vtkPointSetToOctreeImageFilter
convert a point set to an octree image
Definition: vtkPointSetToOctreeImageFilter.h:38
vtkPointSetToOctreeImageFilter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkPointSetToOctreeImageFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPointSetToOctreeImageFilter::New
static vtkPointSetToOctreeImageFilter * New()
vtkPointSetToOctreeImageFilter::vtkPointSetToOctreeImageFilter
vtkPointSetToOctreeImageFilter()
vtkPointSetToOctreeImageFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Methods for subclasses to override to handle different pipeline requests.
vtkPointSetToOctreeImageFilter::~vtkPointSetToOctreeImageFilter
~vtkPointSetToOctreeImageFilter() override
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkPartitionedDataSetAlgorithm.h
vtkIdType
int vtkIdType
Definition: vtkType.h:315
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:144