VTK: Filters/Points/vtkExtractHierarchicalBins.h Source File

| VTK 9.3.1

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
37 VTK_ABI_NAMESPACE_BEGIN
38 class vtkHierarchicalBinningFilter;
39 class vtkPointSet;
40
41 class VTKFILTERSPOINTS_EXPORT vtkExtractHierarchicalBins : public vtkPointCloudFilter
42 {
43 public:
45
49 static vtkExtractHierarchicalBins* New();
50 vtkTypeMacro(vtkExtractHierarchicalBins, vtkPointCloudFilter);
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
89 virtual void SetBinningFilter(vtkHierarchicalBinningFilter*);
90 vtkGetObjectMacro(BinningFilter, vtkHierarchicalBinningFilter);
92
93 protected:
94 vtkExtractHierarchicalBins();
95 ~vtkExtractHierarchicalBins() override;
96
97 // Users can extract points from a particular level or bin.
98 int Level;
99 int Bin;
100 vtkHierarchicalBinningFilter* BinningFilter;
101
102 // for the binning filter
103 void ReportReferences(vtkGarbageCollector*) override;
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
109 private:
110 vtkExtractHierarchicalBins(const vtkExtractHierarchicalBins&) = delete;
111 void operator=(const vtkExtractHierarchicalBins&) = delete;
112 };
113
114 VTK_ABI_NAMESPACE_END
115 #endif
vtkExtractHierarchicalBins
manipulate the output of vtkHierarchicalBinningFilter
Definition: vtkExtractHierarchicalBins.h:42
vtkExtractHierarchicalBins::FilterPoints
int FilterPoints(vtkPointSet *input) override
vtkExtractHierarchicalBins::Level
int Level
Definition: vtkExtractHierarchicalBins.h:98
vtkExtractHierarchicalBins::Bin
int Bin
Definition: vtkExtractHierarchicalBins.h:99
vtkExtractHierarchicalBins::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiating, obtaining type information, and printing information.
vtkExtractHierarchicalBins::SetBinningFilter
virtual void SetBinningFilter(vtkHierarchicalBinningFilter *)
Specify the vtkHierarchicalBinningFilter to query for relevant information.
vtkExtractHierarchicalBins::~vtkExtractHierarchicalBins
~vtkExtractHierarchicalBins() override
vtkExtractHierarchicalBins::vtkExtractHierarchicalBins
vtkExtractHierarchicalBins()
vtkExtractHierarchicalBins::ReportReferences
void ReportReferences(vtkGarbageCollector *) override
vtkExtractHierarchicalBins::New
static vtkExtractHierarchicalBins * New()
Standard methods for instantiating, obtaining type information, and printing information.
vtkExtractHierarchicalBins::BinningFilter
vtkHierarchicalBinningFilter * BinningFilter
Definition: vtkExtractHierarchicalBins.h:100
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:80
vtkHierarchicalBinningFilter
uniform binning of points into a hierarchical structure
Definition: vtkHierarchicalBinningFilter.h:73
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkPointCloudFilter
abstract class for filtering a point cloud
Definition: vtkPointCloudFilter.h:56
vtkPointSet
concrete class for storing a set of points
Definition: vtkPointSet.h:68
vtkPointCloudFilter.h