VTK  9.3.1
vtkPoissonDiskSampler.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
23 #ifndef vtkPoissonDiskSampler_h
24 #define vtkPoissonDiskSampler_h
25 
26 #include "vtkFiltersPointsModule.h" // For export macro
27 #include "vtkPointSetAlgorithm.h"
28 
29 VTK_ABI_NAMESPACE_BEGIN
31 class vtkIdList;
32 
33 class VTKFILTERSPOINTS_EXPORT vtkPoissonDiskSampler : public vtkPointSetAlgorithm
34 {
35 public:
37 
41  static vtkPoissonDiskSampler* New();
43  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
51  vtkSetMacro(Radius, double);
52  vtkGetMacro(Radius, double);
54 
56 
61  void SetLocator(vtkAbstractPointLocator* locator);
62  vtkGetObjectMacro(Locator, vtkAbstractPointLocator);
64 
65 protected:
67  ~vtkPoissonDiskSampler() override;
68 
72  double Radius;
73 
78 
79  // Pipeline management
83 
84 private:
86  void operator=(const vtkPoissonDiskSampler&) = delete;
87 };
88 
89 VTK_ABI_NAMESPACE_END
90 #endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
double Radius
Radius used to query point neighbors using the Locator.
Store vtkAlgorithm input/output information.
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAbstractPointLocator * Locator
Locator being used to query point neighbors.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
generate point normals using local tangent planes
a simple class to control print indentation
Definition: vtkIndent.h:28
abstract class to quickly locate points in 3-space
list of point or cell ids
Definition: vtkIdList.h:22
Superclass for algorithms that produce output of the same type as input.
static vtkPointSetAlgorithm * New()
Store zero or more vtkInformation instances.