VTK
vtkKdTreeSelector.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkKdTreeSelector.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
15 /*----------------------------------------------------------------------------
16  Copyright (c) Sandia Corporation
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
30 #ifndef vtkKdTreeSelector_h
31 #define vtkKdTreeSelector_h
32 
33 #include "vtkFiltersSelectionModule.h" // For export macro
34 #include "vtkSelectionAlgorithm.h"
35 
36 class vtkKdTree;
37 
39 {
40 public:
41  static vtkKdTreeSelector* New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
49  void SetKdTree(vtkKdTree* tree);
50  vtkGetObjectMacro(KdTree, vtkKdTree);
52 
54 
57  vtkSetVector6Macro(SelectionBounds, double);
58  vtkGetVector6Macro(SelectionBounds, double);
60 
62 
65  vtkSetStringMacro(SelectionFieldName);
66  vtkGetStringMacro(SelectionFieldName);
68 
70 
75  vtkSetMacro(SelectionAttribute, int);
76  vtkGetMacro(SelectionAttribute, int);
78 
80 
83  vtkSetMacro(SingleSelection, bool);
84  vtkGetMacro(SingleSelection, bool);
85  vtkBooleanMacro(SingleSelection, bool);
87 
89 
92  vtkSetMacro(SingleSelectionThreshold, double);
93  vtkGetMacro(SingleSelectionThreshold, double);
95 
96  unsigned long GetMTime();
97 
98 protected:
101 
103  double SelectionBounds[6];
109 
110  virtual int FillInputPortInformation(
111  int port, vtkInformation* info);
112 
113  int RequestData(
117 
118 private:
119  vtkKdTreeSelector(const vtkKdTreeSelector&); // Not implemented
120  void operator=(const vtkKdTreeSelector&); // Not implemented
121 };
122 
123 #endif
#define VTKFILTERSSELECTION_EXPORT
Store vtkAlgorithm input/output information.
virtual int FillInputPortInformation(int port, vtkInformation *info)
static vtkSelectionAlgorithm * New()
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
Selects point ids using a kd-tree.
Superclass for algorithms that produce only Selection as output.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
a Kd-tree spatial decomposition of a set of points
Definition: vtkKdTree.h:80
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)