VTK  9.3.0
vtkPointSetStreamer.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 vtkPointSetStreamer_h
24 #define vtkPointSetStreamer_h
25 
26 #include "vtkFiltersGeometryPreviewModule.h" // For export macro
27 #include "vtkPolyDataAlgorithm.h"
28 
29 VTK_ABI_NAMESPACE_BEGIN
31 
32 class VTKFILTERSGEOMETRYPREVIEW_EXPORT vtkPointSetStreamer : public vtkPolyDataAlgorithm
33 {
34 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
46  vtkSetClampMacro(NumberOfPointsPerBucket, int, 1, VTK_INT_MAX);
47  vtkGetMacro(NumberOfPointsPerBucket, int);
49 
51 
57  vtkSetClampMacro(BucketId, vtkIdType, 0, VTK_ID_MAX);
58  vtkGetMacro(BucketId, vtkIdType);
60 
66  vtkGetMacro(NumberOfBuckets, vtkIdType);
67 
69 
74  vtkSetMacro(CreateVerticesCellArray, bool);
75  vtkGetMacro(CreateVerticesCellArray, bool);
76  vtkBooleanMacro(CreateVerticesCellArray, bool);
78 protected:
81 
84 
85 private:
87  void operator=(const vtkPointSetStreamer&) = delete;
88 
89  int NumberOfPointsPerBucket = 1;
90  vtkIdType BucketId = 0;
91  vtkIdType NumberOfBuckets = 0;
92  bool CreateVerticesCellArray = true;
93 
94  vtkNew<vtkStaticPointLocator> PointLocator;
95 };
96 
97 VTK_ABI_NAMESPACE_END
98 #endif // vtkPointSetStreamer_h
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
stream points as buckets
static vtkPointSetStreamer * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
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.
~vtkPointSetStreamer() override
Superclass for algorithms that produce only polydata as output.
quickly locate points in 3-space
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkIdType
Definition: vtkType.h:315
#define VTK_ID_MAX
Definition: vtkType.h:319
#define VTK_INT_MAX
Definition: vtkType.h:144