VTK  9.6.20260226
vtkVoronoi2D.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
82
83#ifndef vtkVoronoi2D_h
84#define vtkVoronoi2D_h
85
86#include "vtkDeprecation.h" // For deprecation macro
87#include "vtkFiltersCoreModule.h" // For export macro
89#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
90
91VTK_ABI_NAMESPACE_BEGIN
94class vtkPointSet;
95class vtkSpheres;
96
98 "Please use vtkVoronoiFlower2D.") VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkVoronoi2D
100{
101public:
103
106 static vtkVoronoi2D* New();
108 void PrintSelf(ostream& os, vtkIndent indent) override;
110
112
118 vtkSetClampMacro(Padding, double, 0.001, 0.25);
119 vtkGetMacro(Padding, double);
121
128
130
135 vtkSetMacro(GenerateScalars, int);
136 vtkGetMacro(GenerateScalars, int);
141
143
153 vtkGetObjectMacro(Transform, vtkAbstractTransform);
155
162
164
173 vtkGetMacro(ProjectionPlaneMode, int);
183
184
186
199 vtkSetClampMacro(PointOfInterest, vtkIdType, -1, VTK_ID_MAX);
204
206
213
215
228
230
237 vtkGetObjectMacro(Spheres, vtkSpheres);
239
245
250
251protected:
253 ~vtkVoronoi2D() override;
254
256 double Padding;
257 double Tolerance;
258 int ProjectionPlaneMode; // selects the plane in 3D where the tessellation will be computed
266
267 // Satisfy pipeline-related API
270
271private:
272 vtkVoronoi2D(const vtkVoronoi2D&) = delete;
273 void operator=(const vtkVoronoi2D&) = delete;
274};
275
276VTK_ABI_NAMESPACE_END
277#endif
superclass for all geometric transformations
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete class for storing a set of points
Definition vtkPointSet.h:98
implicit function for a set of spheres
Definition vtkSpheres.h:32
quickly locate points in 2-space
vtkSpheres * Spheres
void SetGenerateScalarsToNone()
Indicate whether to create a scalar array as part of the output.
vtkStaticPointLocator2D * GetLocator()
Retrieve the internal locator to manually configure it, for example specifying the number of points p...
virtual void SetGenerateScalars(int)
Indicate whether to create a scalar array as part of the output.
vtkAbstractTransform * Transform
void SetProjectionPlaneModeToSpecifiedTransformPlane()
Define the method to project the input 3D points into a 2D plane for tessellation.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information, and printing.
vtkIdType MaximumNumberOfTileClips
~vtkVoronoi2D() override
virtual void SetProjectionPlaneMode(int)
Define the method to project the input 3D points into a 2D plane for tessellation.
void SetGenerateScalarsToPointIds()
Indicate whether to create a scalar array as part of the output.
@ SPECIFIED_TRANSFORM_PLANE
void SetProjectionPlaneModeToBestFittingPlane()
Define the method to project the input 3D points into a 2D plane for tessellation.
void SetProjectionPlaneModeToXYPlane()
Define the method to project the input 3D points into a 2D plane for tessellation.
int NumberOfThreadsUsed
static vtkVoronoi2D * New()
Standard methods for instantiation, type information, and printing.
vtkStaticPointLocator2D * Locator
int GetNumberOfThreadsUsed()
Return the number of threads actually used during execution.
vtkIdType PointOfInterest
int ProjectionPlaneMode
virtual void SetTransform(vtkAbstractTransform *)
Set / get the transform which is applied to points to generate a 2D problem.
vtkMTimeType GetMTime() override
Get the MTime of this object also considering the locator.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkTypeBool GenerateVoronoiFlower
void SetGenerateScalarsToThreadIds()
Indicate whether to create a scalar array as part of the output.
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_DEPRECATED_IN_9_7_0(reason)
int vtkIdType
Definition vtkType.h:363
#define VTK_ID_MAX
Definition vtkType.h:367
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:318
#define VTK_MARSHALAUTO