VTK
vtkExtractHierarchicalBins.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractHierarchicalBins.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 =========================================================================*/
40 #ifndef vtkExtractHierarchicalBins_h
41 #define vtkExtractHierarchicalBins_h
42 
43 #include "vtkFiltersPointsModule.h" // For export macro
44 #include "vtkPointCloudFilter.h"
45 
47 class vtkPointSet;
48 
49 
50 class VTKFILTERSPOINTS_EXPORT vtkExtractHierarchicalBins : public vtkPointCloudFilter
51 {
52 public:
54 
60  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
64 
71  vtkSetMacro(Level,int);
72  vtkGetMacro(Level,int);
74 
76 
83  vtkSetMacro(Bin,int);
84  vtkGetMacro(Bin,int);
86 
88 
93  virtual void SetBinningFilter(vtkHierarchicalBinningFilter*);
94  vtkGetObjectMacro(BinningFilter,vtkHierarchicalBinningFilter);
96 
97 
98 protected:
100  ~vtkExtractHierarchicalBins() override;
101 
102  // Users can extract points from a particular level or bin.
103  int Level;
104  int Bin;
106 
107  // for the binning filter
108  void ReportReferences(vtkGarbageCollector*) override;
109 
110 
111  // All derived classes must implement this method. Note that a side effect of
112  // the class is to populate the PointMap. Zero is returned if there is a failure.
113  int FilterPoints(vtkPointSet *input) override;
114 
115 private:
117  void operator=(const vtkExtractHierarchicalBins&) = delete;
118 
119 };
120 
121 #endif
uniform binning of points into a hierarchical structure
vtkHierarchicalBinningFilter * BinningFilter
void ReportReferences(vtkGarbageCollector *) override
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:39
virtual int FilterPoints(vtkPointSet *input)=0
Detect and break reference loops.
static vtkPolyDataAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:33
manipulate the output of vtkHierarchicalBinningFilter
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to obtain type information, and print information.
abstract class for filtering a point cloud