VTK  9.3.20240424
vtkExtractHierarchicalBins.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
31#ifndef vtkExtractHierarchicalBins_h
32#define vtkExtractHierarchicalBins_h
33
34#include "vtkFiltersPointsModule.h" // For export macro
35#include "vtkPointCloudFilter.h"
36
37VTK_ABI_NAMESPACE_BEGIN
39class vtkPointSet;
40
41class VTKFILTERSPOINTS_EXPORT vtkExtractHierarchicalBins : public vtkPointCloudFilter
42{
43public:
45
51 void PrintSelf(ostream& os, vtkIndent indent) override;
53
55
65 vtkSetMacro(Level, int);
66 vtkGetMacro(Level, int);
68
70
79 vtkSetMacro(Bin, int);
80 vtkGetMacro(Bin, int);
82
84
90 vtkGetObjectMacro(BinningFilter, vtkHierarchicalBinningFilter);
92
93protected:
96
97 // Users can extract points from a particular level or bin.
98 int Level;
99 int Bin;
101
102 // for the binning filter
104
105 // All derived classes must implement this method. Note that a side effect of
106 // the class is to populate the PointMap. Zero is returned if there is a failure.
107 int FilterPoints(vtkPointSet* input) override;
108
109private:
111 void operator=(const vtkExtractHierarchicalBins&) = delete;
112};
113
114VTK_ABI_NAMESPACE_END
115#endif
manipulate the output of vtkHierarchicalBinningFilter
int FilterPoints(vtkPointSet *input) override
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiating, obtaining type information, and printing information.
virtual void SetBinningFilter(vtkHierarchicalBinningFilter *)
Specify the vtkHierarchicalBinningFilter to query for relevant information.
~vtkExtractHierarchicalBins() override
void ReportReferences(vtkGarbageCollector *) override
vtkHierarchicalBinningFilter * BinningFilter
static vtkExtractHierarchicalBins * New()
Standard methods for instantiating, obtaining type information, and printing information.
Detect and break reference loops.
uniform binning of points into a hierarchical structure
a simple class to control print indentation
Definition vtkIndent.h:108
abstract class for filtering a point cloud
concrete class for storing a set of points
Definition vtkPointSet.h:98