VTK  9.2.6
vtkPoissonDiskSampler.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPoissonDiskSampler.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See LICENSE file 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 =========================================================================*/
35 #ifndef vtkPoissonDiskSampler_h
36 #define vtkPoissonDiskSampler_h
37 
38 #include "vtkFiltersPointsModule.h" // For export macro
39 #include "vtkPointSetAlgorithm.h"
40 
42 class vtkIdList;
43 
44 class VTKFILTERSPOINTS_EXPORT vtkPoissonDiskSampler : public vtkPointSetAlgorithm
45 {
46 public:
48 
52  static vtkPoissonDiskSampler* New();
54  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
58 
62  vtkSetMacro(Radius, double);
63  vtkGetMacro(Radius, double);
65 
67 
72  void SetLocator(vtkAbstractPointLocator* locator);
73  vtkGetObjectMacro(Locator, vtkAbstractPointLocator);
75 
76 protected:
78  ~vtkPoissonDiskSampler() override;
79 
83  double Radius;
84 
89 
90  // Pipeline management
94 
95 private:
97  void operator=(const vtkPoissonDiskSampler&) = delete;
98 };
99 
100 #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:39
abstract class to quickly locate points in 3-space
list of point or cell ids
Definition: vtkIdList.h:33
Superclass for algorithms that produce output of the same type as input.
static vtkPointSetAlgorithm * New()
Store zero or more vtkInformation instances.